.section-header {
  text-align: center;
  margin-bottom: 24px;
}

.section-title {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 800;
  color: #0c1222;
  margin: 0;
}

/* Grid */
.faq-grid {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* Item */
.about-text,
.faq-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
  overflow: hidden;
  transition:
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.faq-item.active {
  box-shadow: 0 2px 12px rgba(37, 99, 235, 0.08);
}

/* Question button */
.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 18px 20px;
  background: none;
  border: none;
  cursor: pointer;
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  color: #0c1222;
  text-align: left;
  line-height: 1.35;
}

.faq-icon {
  flex-shrink: 0;
  min-width: 22px;
  min-height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  font-weight: 300;
  color: #6b7280;
  line-height: 1;
  transition: color 0.2s ease;
}

.faq-item.active .faq-icon::after {
  background: #2563eb;
  transform: rotate(90deg);
  opacity: 0;
}

/* Answer */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 800px;
}

.faq-answer-inner {
  padding: 0 20px 18px;
  font-size: 14px;
  line-height: 1.65;
  color: #4e5a72;
}

/* Reveal animation */
.reveal {
  opacity: 0;
  transform: translateY(20px);
  transition:
    opacity 0.5s ease,
    transform 0.5s ease;
}

.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Responsive */
@media (max-width: 768px) {
  .index-faq-inline {
    padding: 40px 20px;
  }
}

@media (max-width: 480px) {
  .index-faq-inline {
    padding: 30px 16px;
  }

  .section-title {
    font-size: 1.35rem;
  }

  .faq-question {
    font-size: 0.88rem;
    padding: 14px;
  }

  .faq-answer-inner {
    padding: 0px 14px 14px;
    font-size: 0.84rem;
  }
}

/* Rich HTML inside FAQ answers */

.faq-answer-inner p {
  margin: 0 0 1rem;
}

.faq-answer-inner p:last-child {
  margin-bottom: 0;
}

.faq-answer-inner ul,
.faq-answer-inner ol {
  list-style-position: outside;
  margin: 1rem 0;
  padding-left: 1.75rem;
}

.faq-answer-inner ul {
  list-style-type: disc;
}

.faq-answer-inner ol {
  list-style-type: decimal;
}

.faq-answer-inner li {
  display: list-item;
  margin-bottom: 0.75rem;
  line-height: 1.6;
}

.faq-answer-inner li:last-child {
  margin-bottom: 0;
}

.faq-answer-inner strong {
  font-weight: 700;
}

.faq-answer-inner a {
  color: inherit;
  text-decoration: underline;
}

.faq-answer-inner h3,
.faq-answer-inner h4 {
  margin: 1.25rem 0 0.75rem;
  font-size: 1rem;
  font-weight: 700;
}
