/* FAQ Page Specific Styles */

/* FAQ Main */
.faq-main {
  background-color: #ffffff;
  min-height: calc(100vh - 80px);
}

/* FAQ Hero Section */
.faq-hero {
  background: linear-gradient(135deg, #f8fafc 0%, #ffffff 100%);
  padding: 80px 0 60px 0;
  text-align: center;
}

.faq-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.faq-title {
  font-family: var(--font-roobert);
  font-size: 56px;
  font-weight: 700;
  color: #111827;
  margin-bottom: 20px;
  line-height: 1.1;
}

.faq-subtitle {
  font-size: 20px;
  color: #6b7280;
  font-weight: 400;
  margin-bottom: 40px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

/* FAQ Search */
.faq-search {
  max-width: 600px;
  margin: 0 auto;
}

.faq-search .search-input-wrapper {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
}

.faq-search .search-icon {
  position: absolute;
  left: 20px;
  z-index: 1;
  pointer-events: none;
}

.faq-search .search-input {
  width: 100%;
  height: 56px;
  padding: 16px 20px 16px 56px;
  border: 2px solid #e5e7eb;
  border-radius: 16px;
  background-color: #ffffff;
  font-family: var(--font-roobert);
  font-size: 16px;
  color: #374151;
  outline: none;
  transition: all 0.3s ease;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
}

.faq-search .search-input::placeholder {
  color: #9ca3af;
  font-family: var(--font-roobert);
}

.faq-search .search-input:focus {
  border-color: #3d15ce;
  background-color: #ffffff;
  box-shadow: 0 0 0 4px rgba(61, 21, 206, 0.1), 0 4px 6px rgba(0, 0, 0, 0.05);
  transform: translateY(-2px);
}

.faq-search .search-input:hover {
  border-color: #d1d5db;
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.08);
}

/* FAQ Categories */
.faq-categories {
  background-color: #ffffff;
  padding: 40px 0 0 0;
  border-bottom: 1px solid #e5e7eb;
}

.faq-categories-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.category-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  border-bottom: 1px solid #e5e7eb;
}

.category-tab {
  background: none;
  border: none;
  padding: 16px 24px;
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.3s ease;
  border-bottom: 2px solid transparent;
  font-family: var(--font-roobert);
  position: relative;
  overflow: hidden;
}

.category-tab::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(61, 21, 206, 0.1), transparent);
  transition: left 0.6s ease;
}

.category-tab:hover::before {
  left: 100%;
}

.category-tab:hover {
  color: #3d15ce;
  background-color: #f8fafc;
}

.category-tab.active {
  color: #3d15ce;
  border-bottom-color: #3d15ce;
  background-color: #f8fafc;
}

.category-tab:focus {
  outline: 2px solid #3d15ce;
  outline-offset: 2px;
}

/* FAQ Content */
.faq-content {
  background-color: #ffffff;
  padding: 60px 0;
}

.faq-content-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 0 24px;
}

/* FAQ Categories */
.faq-category {
  margin-bottom: 60px;
  opacity: 1;
  transition: all 0.3s ease;
}

.faq-category.hidden {
  display: none;
}

.category-title {
  font-family: var(--font-roobert);
  font-size: 28px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 32px;
  padding-bottom: 16px;
  border-bottom: 2px solid #e5e7eb;
  position: relative;
}

.category-title::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 60px;
  height: 2px;
  background-color: #3d15ce;
}

/* FAQ Items */
.faq-item {
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  margin-bottom: 16px;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

.faq-item:hover {
  border-color: #d1d5db;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.faq-item.highlighted {
  border-color: #3d15ce;
  box-shadow: 0 4px 20px rgba(61, 21, 206, 0.15);
  transform: translateY(-2px);
}

/* FAQ Questions */
.faq-question {
  width: 100%;
  background: none;
  border: none;
  padding: 24px;
  text-align: left;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 18px;
  font-weight: 600;
  color: #111827;
  transition: all 0.3s ease;
  font-family: var(--font-roobert);
  line-height: 1.4;
}

.faq-question:hover {
  background-color: #f9fafb;
}

.faq-question[aria-expanded="true"] {
  background-color: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
  color: #3d15ce;
}

.faq-question[aria-expanded="true"] .faq-icon {
  transform: rotate(180deg);
  color: #3d15ce;
}

.faq-icon {
  color: #6b7280;
  transition: all 0.3s ease;
  flex-shrink: 0;
  margin-left: 16px;
}

/* FAQ Answers */
.faq-answer {
  padding: 0 24px;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  background-color: #ffffff;
}

.faq-answer.expanded {
  max-height: 300px;
  padding: 16px 24px 24px 24px;
}

.faq-answer p {
  margin: 0;
  font-size: 16px;
  color: #6b7280;
  line-height: 1.7;
  font-weight: 400;
}

/* Search Results */
.search-results-info {
  margin-bottom: 32px;
  padding: 16px 20px;
  background-color: #f0f9ff;
  border: 1px solid #bae6fd;
  border-radius: 8px;
  color: #0369a1;
  font-weight: 500;
}

.no-results {
  text-align: center;
  padding: 60px 20px;
  color: #6b7280;
}

.no-results h3 {
  font-size: 24px;
  margin-bottom: 12px;
  color: #374151;
}

.no-results p {
  font-size: 16px;
  margin-bottom: 24px;
}

.no-results .cta-btn {
  display: inline-block;
  padding: 12px 24px;
  background-color: #3d15ce;
  color: #ffffff;
  text-decoration: none;
  border-radius: 8px;
  font-weight: 500;
  transition: all 0.3s ease;
}

.no-results .cta-btn:hover {
  background-color: #2b0f9a;
  transform: translateY(-2px);
}

/* FAQ Contact CTA */
.faq-contact-cta {
  background: linear-gradient(135deg, #3d15ce 0%, #2b0f9a 100%);
  padding: 80px 0;
  text-align: center;
  color: #ffffff;
}

.faq-contact-container {
  max-width: 800px;
  margin: 0 auto;
  padding: 0 24px;
}

.cta-title {
  font-family: var(--font-roobert);
  font-size: 36px;
  font-weight: 700;
  margin-bottom: 16px;
  line-height: 1.2;
}

.cta-description {
  font-size: 18px;
  margin-bottom: 40px;
  opacity: 0.9;
  font-weight: 400;
}

.cta-buttons {
  display: flex;
  gap: 16px;
  justify-content: center;
  flex-wrap: wrap;
}

.cta-btn {
  padding: 16px 32px;
  border-radius: 12px;
  font-size: 16px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.3s ease;
  display: inline-block;
  border: 2px solid transparent;
}

.cta-btn.primary {
  background-color: #ffffff;
  color: #3d15ce;
  border-color: #ffffff;
}

.cta-btn.primary:hover {
  background-color: #f9fafb;
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.cta-btn.secondary {
  background-color: transparent;
  color: #ffffff;
  border-color: #ffffff;
}

.cta-btn.secondary:hover {
  background-color: #ffffff;
  color: #3d15ce;
  transform: translateY(-2px);
}

/* Active Navigation Link */
.nav-link.active {
  color: #000000;
  font-weight: 400;
  background-color: transparent;
}

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

  .faq-title {
    font-size: 48px;
  }

  .faq-subtitle {
    font-size: 18px;
  }

  .category-tabs {
    gap: 4px;
  }

  .category-tab {
    padding: 14px 20px;
    font-size: 15px;
  }
}

@media (max-width: 768px) {
  .faq-hero {
    padding: 40px 0 30px 0;
  }

  .faq-hero-container {
    padding: 0 16px;
  }

  .faq-title {
    font-size: 36px;
  }

  .faq-subtitle {
    font-size: 16px;
    margin-bottom: 30px;
  }

  .faq-search .search-input {
    height: 48px;
    padding: 12px 16px 12px 48px;
    font-size: 15px;
  }

  .faq-search .search-icon {
    left: 16px;
  }

  .faq-categories {
    padding: 30px 0 0 0;
  }

  .faq-categories-container {
    padding: 0 16px;
  }

  .category-tabs {
    justify-content: flex-start;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
    padding-bottom: 8px;
  }

  .category-tabs::-webkit-scrollbar {
    display: none;
  }

  .category-tab {
    padding: 12px 16px;
    font-size: 14px;
    white-space: nowrap;
    flex-shrink: 0;
  }

  .faq-content {
    padding: 40px 0;
  }

  .faq-content-container {
    padding: 0 16px;
  }

  .faq-category {
    margin-bottom: 40px;
  }

  .category-title {
    font-size: 24px;
    margin-bottom: 24px;
  }

  .faq-question {
    padding: 20px;
    font-size: 16px;
  }

  .faq-answer.expanded {
    padding: 16px 20px 20px 20px;
  }

  .faq-answer p {
    font-size: 15px;
  }

  .cta-title {
    font-size: 28px;
  }

  .cta-description {
    font-size: 16px;
  }

  .cta-buttons {
    flex-direction: column;
    align-items: center;
  }

  .cta-btn {
    width: 100%;
    max-width: 280px;
  }
}

@media (max-width: 480px) {
  .faq-title {
    font-size: 28px;
  }

  .faq-subtitle {
    font-size: 15px;
  }

  .faq-search .search-input {
    height: 44px;
    padding: 10px 14px 10px 44px;
    font-size: 14px;
  }

  .faq-search .search-icon {
    left: 14px;
    width: 18px;
    height: 18px;
  }

  .category-tab {
    padding: 10px 14px;
    font-size: 13px;
  }

  .category-title {
    font-size: 20px;
  }

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

  .faq-answer.expanded {
    padding: 16px 16px 16px 16px;
  }

  .faq-answer p {
    font-size: 14px;
  }

  .cta-title {
    font-size: 24px;
  }

  .cta-description {
    font-size: 15px;
  }

  .cta-btn {
    padding: 14px 24px;
    font-size: 15px;
  }
}

/* Animation for FAQ items */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.faq-item {
  animation: fadeInUp 0.6s ease-out;
}

.faq-item:nth-child(1) { animation-delay: 0.1s; }
.faq-item:nth-child(2) { animation-delay: 0.2s; }
.faq-item:nth-child(3) { animation-delay: 0.3s; }
.faq-item:nth-child(4) { animation-delay: 0.4s; }
.faq-item:nth-child(5) { animation-delay: 0.5s; }

/* Focus states for accessibility */
.faq-question:focus {
  outline: 2px solid #3d15ce;
  outline-offset: 2px;
}

.faq-search .search-input:focus {
  outline: none;
}

.cta-btn:focus {
  outline: 2px solid #ffffff;
  outline-offset: 2px;
}

/* Smooth transitions */
* {
  transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
}

/* Highlight matched text in search */
.highlight {
  background-color: #fef3c7;
  padding: 2px 4px;
  border-radius: 3px;
  font-weight: 600;
}

/* Loading state */
.loading {
  opacity: 0.6;
  pointer-events: none;
}

/* Category indicator */
.category-tab::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 2px;
  background-color: #3d15ce;
  transition: width 0.3s ease;
}

.category-tab.active::after {
  width: 100%;
}
