/* ==========================================================================
   NEXTGEN FAQ PAGE STYLES (CATEGORY ACCORDION + AEO FRIENDLY)
   ========================================================================== */

.ng-faq-page-wrapper {
  width: min(100% - 2rem, 900px);
  margin: 7.5rem auto 5rem auto;
  position: relative;
  z-index: 2;
}

/* Page Header & Single H1 */
.ng-faq-page-header {
  text-align: center;
  margin-bottom: 3.5rem;
}

.ng-faq-page-header .ng-caption {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ng-coral, #FEAC97);
  text-transform: uppercase;
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
}

.ng-faq-main-title {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: clamp(2.2rem, 4.5vw, 3.4rem);
  font-weight: 900;
  color: #080d20;
  line-height: 1.15;
  letter-spacing: -0.035em;
  margin: 0 0 1rem 0;
}

.ng-faq-main-title .ng-highlight {
  color: var(--ng-coral, #FEAC97);
}

.ng-faq-lead-text {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 1.05rem;
  line-height: 1.6;
  color: #4a5568;
  max-width: 720px;
  margin: 0 auto 2.5rem auto;
}

/* Category Filter Tabs */
.ng-faq-category-tabs {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.ng-faq-tab-btn {
  background: #ffffff;
  color: #080d20;
  border: 1px solid rgba(0, 0, 0, 0.1);
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.6rem 1.25rem;
  border-radius: 999px;
  cursor: pointer;
  box-shadow: 0 4px 12px rgba(0,0,0,0.04);
  transition: all 0.25s ease;
}

.ng-faq-tab-btn:hover,
.ng-faq-tab-btn.active {
  background: var(--ng-coral, #FEAC97);
  color: #000000;
  border-color: var(--ng-coral, #FEAC97);
  transform: translateY(-2px);
}

/* Category Sections & H2 Titles */
.ng-faq-category-block {
  margin-bottom: 3.5rem;
}

.ng-faq-cat-title {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 1.4rem;
  font-weight: 800;
  color: #080d20;
  letter-spacing: -0.02em;
  margin-bottom: 1.25rem;
  padding-bottom: 0.5rem;
  border-bottom: 2px solid rgba(254, 172, 151, 0.3);
}

/* Accordion Item Container */
.faq-item {
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.08);
  margin-bottom: 1rem;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.03);
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
}

.faq-item.active {
  border-color: var(--ng-coral, #FEAC97);
  box-shadow: 0 8px 25px rgba(254, 172, 151, 0.12);
}

/* Accordion Toggle Header Button & H3 */
.faq-toggle-btn {
  width: 100%;
  background: transparent;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-align: left;
  cursor: pointer;
  gap: 1rem;
}

.faq-toggle-btn h3 {
  font-family: var(--ng-font-heading, 'Montserrat', sans-serif);
  font-size: 1.05rem;
  font-weight: 700;
  color: #080d20;
  margin: 0;
  line-height: 1.35;
}

.faq-chevron-icon {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--ng-coral, #FEAC97);
  transition: transform 0.3s ease;
  line-height: 1;
}

.faq-item.active .faq-chevron-icon {
  transform: rotate(45deg); /* Converts '+' to '×' */
}

/* AEO Visible Content Box (CSS Transitions for Smooth Expanding) */
.faq-answer {
  max-height: 0;
  overflow: hidden;
  padding: 0 1.5rem;
  transition: max-height 0.4s cubic-bezier(0, 1, 0, 1), padding 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 500px;
  padding: 0 1.5rem 1.35rem 1.5rem;
  transition: max-height 0.4s cubic-bezier(1, 0, 1, 0), padding 0.3s ease;
}

.faq-answer p {
  font-family: var(--ng-font-body, 'Inter', sans-serif);
  font-size: 0.95rem;
  line-height: 1.65;
  color: #4a5568;
  margin: 0;
  font-weight: 500;
}

.faq-answer a {
  color: #e07050;
  font-weight: 700;
  text-decoration: underline;
}

/* Mobile Adjustments */
@media (max-width: 768px) {
  .ng-faq-page-wrapper {
    margin-top: 6rem;
    padding: 0 0.5rem;
  }
  .faq-toggle-btn {
    padding: 1rem;
  }
  .faq-toggle-btn h3 {
    font-size: 0.95rem;
  }
  .ng-faq-tab-btn {
    font-size: 0.78rem;
    padding: 0.5rem 1rem;
  }
}