/* FAQ Page Styles */
.faq-hero {
  background-color: #f8f9fa;
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
}

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

.faq-breadcrumbs {
  background-color: #f1f1f1;
  padding: 15px 0;
}

.faq-main {
  padding: 60px 0;
}

.faq-container {
  max-width: 1000px;
  margin: 0 auto;
}

/* FAQ Search */
.faq-search {
  margin-bottom: 40px;
}

.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto 15px;
}

.search-input {
  width: 100%;
  padding: 15px 20px;
  border: 1px solid #ddd;
  border-radius: 50px;
  font-size: 1rem;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

.search-btn {
  position: absolute;
  right: 5px;
  top: 5px;
  background: #3498db;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background 0.3s;
}

.search-btn:hover {
  background: #2980b9;
}

.cancel-btn {
  position: absolute;
  right: 50px;
  top: 5px;
  background: #e74c3c;
  color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  cursor: pointer;
  transition: background 0.3s;
}

.cancel-btn:hover {
  background: #c0392b;
}

.search-suggestion {
  text-align: center;
  color: #7f8c8d;
  font-size: 0.9rem;
}

.search-suggestion a {
  color: #3498db;
  text-decoration: none;
}

.search-suggestion a:hover {
  text-decoration: underline;
}

/* Search Results Styles */
.search-results-container {
  margin-top: 20px;
  display: none;
}

.search-feedback {
  padding: 15px;
  background: #f8f9fa;
  border-radius: 8px;
  margin-bottom: 15px;
  color: #2c3e50;
  font-weight: 500;
}

.search-results-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.search-results-list li {
  padding: 15px;
  margin-bottom: 10px;
  background: white;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  border-left: 3px solid #3498db;
}

.search-results-list li a {
  color: #2c3e50;
  text-decoration: none;
  display: block;
  font-weight: 500;
}

.search-results-list li a:hover {
  color: #3498db;
}

.search-results-list li .result-category {
  display: block;
  font-size: 0.8rem;
  color: #7f8c8d;
  margin-top: 5px;
}

/* Loading indicator */
.search-loading {
  display: none;
  text-align: center;
  padding: 15px;
  color: #7f8c8d;
}

.search-loading i {
  animation: spin 1s linear infinite;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* FAQ Categories */
.faq-categories {
  margin: 40px auto;
  border-bottom: 1px solid #eee;
}

.category-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin: 1rem auto;
}

.category-link {
  padding: 10px 20px;
  margin: 0 5px 10px;
  color: #7f8c8d;
  text-decoration: none;
  font-weight: 500;
  border-radius: 50px;
  transition: all 0.3s;
}

.category-link:hover,
.category-link.active {
  color: white;
  background: #3498db;
}

/* FAQ Sections */
.faq-sections {
  margin-bottom: 60px;
}

.faq-section {
  display: none;
}

.faq-section.active {
  display: block;
}

.faq-section-title {
  color: #2c3e50;
  margin-bottom: 30px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee;
}

.faq-item {
  margin-bottom: 15px;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.faq-question {
  width: 100%;
  text-align: left;
  padding: 20px;
  background: white;
  border: 1px solid #eee;
  border-radius: 8px;
  font-size: 1.05rem;
  font-weight: 500;
  color: #2c3e50;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  transition: all 0.3s;
}

.faq-question:hover {
  background: #f8f9fa;
}

.faq-question i {
  transition: transform 0.3s;
}

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

.faq-answer {
  padding: 0;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out, padding 0.3s ease;
  background: white;
  border-left: 1px solid #eee;
  border-right: 1px solid #eee;
  border-bottom: 1px solid #eee;
  border-radius: 0 0 8px 8px;
}

.faq-answer.active {
  padding: 20px;
  max-height: 1000px;
}

.faq-answer p,
.faq-answer ol,
.faq-answer ul {
  margin-bottom: 15px;
  color: #34495e;
}

.faq-answer ol,
.faq-answer ul {
  padding-left: 20px;
}

.faq-answer li {
  margin-bottom: 8px;
}

.faq-answer a {
  color: #3498db;
  text-decoration: none;
}

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

/* Still Need Help */
.faq-help {
  background: #f8f9fa;
  border-radius: 8px;
  padding: 40px;
  text-align: center;
  margin-top: 60px;
}

.help-content h3 {
  color: #2c3e50;
  margin-bottom: 15px;
}

.help-content p {
  color: #7f8c8d;
  max-width: 600px;
  margin: 0 auto 25px;
}

.help-buttons {
  display: flex;
  justify-content: center;
  gap: 15px;
}

/* Responsive Styles */
@media (max-width: 768px) {
  .faq-hero {
    padding: 60px 0 40px;
  }

  .faq-hero-background {
    width: 100%;
    opacity: 0.2;
    clip-path: none;
  }

  .faq-question {
    padding: 15px;
    font-size: 1rem;
  }

  .faq-answer.active {
    padding: 15px;
  }

  .faq-help {
    padding: 30px 20px;
  }

  .help-buttons {
    flex-direction: column;
    gap: 10px;
  }

  .help-buttons .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .category-list {
    justify-content: flex-start;
    overflow-x: auto;
    white-space: nowrap;
    padding-bottom: 10px;
  }

  .category-link {
    margin: 0 5px 5px 0;
  }
}
