/* FAQ Page Styles */
.faq-page {
  min-height: 100vh;
  background: var(--bg-gradient-primary);
  padding: 0;
  display: flex;
  flex-direction: column;
}

.faq-page .container {
  max-width: none;
  width: 100%;
  margin: 0;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-radius: 0;
  box-shadow: none;
  padding: 60px 80px;
  flex: 1;
}

.faq-page .header {
  margin-bottom: 32px;
  text-align: center;
  position: relative;
}

.faq-page .back-link {
  position: absolute;
  left: 0;
  top: 0;
  color: var(--primary-700);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--primary-50);
  border: 1px solid var(--primary-100);
  transition: all 0.3s ease;
  font-size: 0.9rem;
}

.faq-page .back-link:hover {
  background: var(--primary-100);
  transform: translateX(-2px);
}

.faq-page .page-title {
  font-size: 2.25rem;
  color: #2c3e50;
  margin: 0;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.faq-content {
  text-align: left;
  line-height: 1.65;
  color: var(--text-primary);
}

.faq-intro {
  margin-bottom: 32px;
  padding: 16px 20px;
  background: var(--primary-50);
  border-radius: 12px;
  border-left: 4px solid var(--primary-500);
  color: var(--text-secondary);
  font-style: italic;
  text-align: center;
}

.faq-controls {
  margin-top: 16px;
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

.control-button {
  background: var(--primary-600);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 6px;
  font-size: 0.875rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  font-style: normal;
}

.control-button:hover {
  background: var(--primary-700);
  transform: translateY(-1px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.control-button:active {
  transform: translateY(0);
}

/* Collapsible Section Styles */
.collapsible-section {
  margin-bottom: 16px;
  border: 1px solid var(--primary-100);
  border-radius: 12px;
  background: white;
  overflow: hidden;
  transition: all 0.3s ease;
}

.collapsible-section:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.collapsible-section.expanded {
  border-color: var(--primary-200);
}

.section-header {
  width: 100%;
  padding: 18px 20px;
  background: var(--primary-50);
  border: none;
  cursor: pointer;
  display: flex;
  justify-content: between;
  align-items: center;
  transition: all 0.2s ease;
  border-radius: 12px 12px 0 0;
}

.section-header:hover {
  background: var(--primary-100);
}

.collapsible-section.expanded .section-header {
  background: var(--primary-100);
  border-bottom: 1px solid var(--primary-200);
  border-radius: 12px 12px 0 0;
}

.collapsible-section.collapsed .section-header {
  border-radius: 12px;
}

.section-header h2 {
  color: var(--primary-800);
  font-size: 1.25rem;
  margin: 0;
  border: none;
  padding: 0;
  flex: 1;
  text-align: left;
}

.toggle-icon {
  color: var(--primary-600);
  font-size: 1.2rem;
  transition: transform 0.2s ease;
  display: flex;
  align-items: center;
  margin-left: 16px;
}

.collapsible-section.expanded .toggle-icon {
  transform: rotate(0deg);
}

.collapsible-section.collapsed .toggle-icon {
  transform: rotate(-90deg);
}

.section-content {
  padding: 20px 24px 24px;
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
  }
  to {
    opacity: 1;
    max-height: 1000px;
    padding-top: 20px;
    padding-bottom: 24px;
  }
}

/* Legacy section styles for non-collapsible sections */
.faq-section:not(.collapsible-section) {
  margin-bottom: 28px;
}

.faq-section:not(.collapsible-section) h2 {
  color: var(--primary-800);
  font-size: 1.4rem;
  margin-bottom: 12px;
  border-bottom: 2px solid var(--primary-100);
  padding-bottom: 8px;
}

.qa {
  margin: 14px 0 18px 0;
}

.qa h3 {
  font-size: 1.05rem;
  color: var(--primary-700);
  margin: 0 0 6px 0;
}

.qa p {
  margin: 0 0 8px 0;
  color: var(--text-secondary);
}

/* Links within content */
.faq-content a {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 500;
}

.faq-content a:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

/* Contact Section */
.contact-section {
  margin: 32px 0;
  padding: 32px 24px;
  background: var(--primary-50);
  border-radius: 12px;
  border: 1px solid var(--primary-100);
}

.contact-section h2 {
  color: var(--primary-800);
  font-size: 1.4rem;
  margin-bottom: 16px;
  border-bottom: 2px solid var(--primary-200);
  padding-bottom: 8px;
}

.contact-section p {
  margin-bottom: 16px;
  color: var(--text-secondary);
}

.contact-list {
  margin: 12px 0 0 0;
  padding-left: 20px;
}

.contact-list li {
  margin-bottom: 6px;
}

.faq-footer {
  margin-top: 48px;
  padding: 32px 24px;
  background: var(--primary-50);
  border-radius: 12px;
  text-align: center;
  color: var(--text-secondary);
  border: 1px solid var(--primary-100);
}

.faq-footer p {
  margin: 0 0 12px 0;
  color: var(--text-secondary);
}

/* Links in the footer with normal styling */
.faq-footer a,
.faq-footer a:visited {
  color: var(--primary-600);
  text-decoration: none;
  font-weight: 500;
}

.faq-footer a:hover {
  color: var(--primary-700);
  text-decoration: underline;
}

.back-link-bottom {
  color: var(--primary-700);
  text-decoration: none;
  font-weight: 500;
  padding: 8px 16px;
  border: 1px solid var(--primary-100);
  border-radius: 8px;
  transition: all 0.3s ease;
  display: inline-block;
  background: var(--primary-50);
}

.back-link-bottom:hover {
  background: var(--primary-100);
  color: var(--primary-700);
  transform: translateX(-2px);
}

/* Responsive */
@media (max-width: 1200px) {
  .faq-page .container {
    padding: 50px 60px;
  }
}

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

  .faq-page .container {
    padding: 30px 24px;
  }

  .faq-page .page-title {
    font-size: 1.9rem;
  }

  .faq-page .back-link {
    position: static;
    margin-bottom: 16px;
    display: inline-block;
    font-size: 0.85rem;
    padding: 6px 12px;
  }

  .section-header {
    padding: 14px 16px;
  }

  .section-header h2 {
    font-size: 1.1rem;
  }

  .section-content {
    padding: 16px 18px 20px;
  }

  .toggle-icon {
    font-size: 1rem;
    margin-left: 12px;
  }

  .faq-intro {
    padding: 12px 16px;
    margin-bottom: 24px;
    font-size: 0.9rem;
  }

  .contact-section {
    margin: 24px 0;
    padding: 24px 20px;
  }

  .contact-section h2 {
    font-size: 1.2rem;
  }

  .faq-footer {
    margin-top: 32px;
    padding: 24px 20px;
  }
}

@media (max-width: 480px) {
  .faq-page .container {
    padding: 24px 16px;
  }
}


