/* FAQ Section Styles */
.faq-section {
  background-color: #f9fafb;
  padding: 5rem 0;
  font-family: "Assistant Regular", sans-serif;
}

.faq-section > div {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.faq-title {
  font-size: 3rem;
  font-weight: 800;
  text-align: center;
  margin-bottom: 1rem;
  color: #1f2937;
}

.faq-title .highlights {
  color: #2563eb;
}

.faq-description {
  font-size: 1.125rem;
  text-align: center;
  color: #6b7280;
  max-width: 800px;
  margin: 0 auto 3rem;
  line-height: 1.6;
}

/* FAQ Container */
.faq-section > div > div:last-child {
  max-width: 1000px;
  margin: 0 auto;
}

/* FAQ Item */
.faq-section > div > div:last-child > div {
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  margin-bottom: 1rem;
  overflow: hidden;
  transition: all 0.3s ease;
}

.faq-section > div > div:last-child > div:hover {
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* FAQ Question Button */
.faq-question {
  width: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 1.5rem;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.125rem;
  font-weight: 600;
  color: #1f2937;
  text-align: right;
  transition: all 0.3s ease;
  position: relative;
}

.faq-question:hover {
  background-color: #f9fafb;
  color: #2563eb;
}

.faq-question::after {
  content: "";
  width: 1.5rem;
  height: 1.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='currentColor'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
  background-size: contain;
  background-repeat: no-repeat;
  background-position: center;
  transition: transform 0.3s ease;
  flex-shrink: 0;
}

.faq-question.active::after {
  transform: rotate(180deg);
}

/* FAQ Answer */
.faq-section > div > div:last-child > div > div:last-child {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease-in-out, padding 0.4s ease-in-out;
  padding-left: 1.5rem;
  padding-right: 1.5rem;
  padding-top: 0;
  padding-bottom: 0;
}

.faq-section > div > div:last-child > div > div:last-child.active {
  max-height: 500px;
  padding-top: 0.5rem;
  padding-bottom: 1rem;
}

.faq-section > div > div:last-child > div > div:last-child p {
  color: #6b7280;
  line-height: 1.6;
  margin: 0;
  font-size: 1rem;
}

/* Animation for scroll reveal */
.animate-on-scroll {
  opacity: 0;
  transform: translateY(30px);
  transition: all 0.6s ease;
}

.animate-on-scroll.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive Design */
@media (max-width: 768px) {
  .faq-title {
    font-size: 2rem;
  }

  .faq-description {
    font-size: 1rem;
  }

  .faq-question {
    font-size: 1rem;
    padding: 1rem;
  }

  .faq-section > div > div:last-child > div > div:last-child {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}





/* Loading state */
.faq-section.loading {
  opacity: 0.7;
  pointer-events: none;
}


.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: all 0.6s ease;
  }
  
  .animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0);
  }
/* Search highlighting */
.faq-highlight {
  background-color: #fef3c7;
  color: #2563eb;
  padding: 0.125rem 0.25rem;
  border-radius: 0.25rem;
  font-weight: 600;
}

/* Loading spinner */
.faq-section.loading::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 40px;
  height: 40px;
  margin: -20px 0 0 -20px;
  border: 4px solid #f3f4f6;
  border-top: 4px solid #2563eb;
  border-radius: 50%;
  animation: spin 1s linear infinite;
  z-index: 10;
}

@keyframes spin {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}

/* Focus visible for better accessibility */
.faq-question:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  background-color: #fef3c7;
}

/* Print styles */
@media print {
  .faq-section > div > div:last-child > div > div:last-child {
    max-height: none !important;
    padding: 1rem !important;
  }

  .faq-question::after {
    display: none;
  }

  .faq-question {
    background-color: #f9fafb !important;
    border-bottom: 1px solid #e5e7eb;
  }
}
