.hero-background {
  position: absolute;
  top: 0rem;
  left: 0;
  width: 100%;
  height: 100%;
  background: url("../assets/background/stfx_bg_7.jpg") no-repeat center
    center/cover;
  z-index: -1;
  opacity: 0.5;
  background-attachment: fixed;
}

/* FAQ Page Styles */
.faq-search-section {
  background-color: #1a1a1a;
  padding: 3rem 0;
  position: relative;
}

.search-container {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  display: flex;
}

#faq-search {
  width: 100%;
  padding: 1rem 1.5rem;
  border-radius: 50px;
  border: none;
  background: #2a2a2a;
  color: #f0f8ff;
  font-size: 1.1rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
}

#faq-search:focus {
  outline: none;
  box-shadow: 0 0 0 2px #00ff88;
}

#search-button {
  position: absolute;
  right: 15px;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  border: none;
  color: #00ff88;
  font-size: 1.2rem;
  cursor: pointer;
}

.search-results-info {
  text-align: center;
  margin-top: 1rem;
  color: #aaa;
  font-size: 0.9rem;
}

#results-count {
  color: #00ff88;
  font-weight: 600;
}

.faq-categories {
  background-color: #0a0a0a;
  padding: 2rem 0;
}

.category-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
}

.category-btn {
  padding: 0.8rem 1.5rem;
  border-radius: 50px;
  background: #2a2a2a;
  color: #f0f8ff;
  border: none;
  cursor: pointer;
  transition: all 0.3s ease;
  font-weight: 600;
  font-size: 0.9rem;
}

.category-btn:hover {
  background: #333;
}

.category-btn.active {
  background: #00ff88;
  color: #0a0a0a;
}

.faq-section {
  padding: 4rem 0;
  background-color: #1a1a1a;
}

.faq-section:nth-child(even) {
  background-color: #0a0a0a;
}

.faq-items {
  max-width: 900px;
  margin: 2rem auto 0;
}

.faq-item {
  background: #2a2a2a;
  border-radius: 8px;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-item:hover {
  box-shadow: 0 5px 15px rgba(0, 255, 136, 0.1);
}

.faq-question {
  padding: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
}

.faq-question h3 {
  margin: 0;
  font-size: 1.2rem;
  color: #f0f8ff;
}

.faq-question i {
  color: #00ff88;
  transition: transform 0.3s ease;
}

.faq-item.active .faq-question i {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
  padding: 0 1.5rem;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.5rem;
}

.faq-answer p {
  margin-top: 0;
  line-height: 1.7;
  color: #ddd;
}

.faq-answer ul {
  padding-left: 1.5rem;
}

.faq-answer li {
  margin-bottom: 0.5rem;
  line-height: 1.6;
}

.faq-answer a {
  color: #00ff88;
  text-decoration: none;
}

.faq-answer a:hover {
  text-decoration: underline;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
  .faq-question h3 {
    font-size: 1.1rem;
  }

  .category-buttons {
    gap: 0.5rem;
  }

  .category-btn {
    padding: 0.6rem 1rem;
    font-size: 0.8rem;
  }
}

@media (max-width: 576px) {
  .faq-question {
    padding: 1rem;
  }

  .faq-answer {
    padding: 0 1rem;
  }

  .faq-item.active .faq-answer {
    padding: 0 1rem 1rem;
  }

  #faq-search {
    font-size: 1rem;
    padding: 0.8rem 1.2rem;
  }
}
