/* ── Public FAQs Page ─────────────────────────────────────── */

.faq-page-hero {
  background: linear-gradient(150deg, #0b1a2e 0%, #1A4B89 100%);
  padding: 64px 20px 48px;
  text-align: center;
}

.faq-page-hero-inner {
  max-width: 680px;
  margin: 0 auto;
}

.faq-page-title {
  font-family: 'Oswald', sans-serif;
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 700;
  color: #fff;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0 0 14px;
  line-height: 1.15;
}

.faq-page-title em {
  font-style: italic;
  font-family: 'Cormorant Garamond', Georgia, serif;
  font-weight: 600;
  color: #FBA504;
  text-transform: none;
  letter-spacing: 0;
}

.faq-page-sub {
  font-family: 'Poppins', sans-serif;
  font-size: 14.5px;
  color: rgba(255,255,255,.75);
  line-height: 1.7;
  margin: 0;
}

/* ── Body wrapper ─────────────────────────────────────────── */

.faq-page-body {
  background: #f0f4f8;
  padding: 40px 24px 64px;
  min-height: 60vh;
  overflow: visible; /* must be visible — overflow:auto breaks position:sticky on children */
}

.faq-page-body-inner {
  max-width: 1160px;
  margin: 0 auto;
}

/* ── App shell (sidebar + panel) ─────────────────────────── */

.faq-app {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 24px;
  align-items: start;
}

/* ── Sidebar ─────────────────────────────────────────────── */

.faq-sidebar {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  position: sticky;
  top: 100px;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.faq-sidebar-list {
  list-style: none;
  margin: 0;
  padding: 8px 0;
}

.faq-sidebar-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 16px;
  border: none;
  background: transparent;
  cursor: pointer;
  font-family: 'Poppins', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #374151;
  text-align: left;
  transition: background .15s, color .15s;
  border-left: 3px solid transparent;
}

.faq-sidebar-item:hover {
  background: #f5f8fc;
  color: #16314f;
}

.faq-sidebar-item.active {
  background: #eef5ff;
  color: #1A4B89;
  font-weight: 600;
  border-left-color: #1A4B89;
}

.faq-sidebar-icon {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  opacity: .65;
  display: flex;
  align-items: center;
}

.faq-sidebar-item.active .faq-sidebar-icon {
  opacity: 1;
}

.faq-sidebar-icon svg {
  width: 18px;
  height: 18px;
}

.faq-sidebar-label {
  line-height: 1.3;
}

/* ── Content panel ───────────────────────────────────────── */

.faq-panel {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
  overflow: hidden;
}

.faq-panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 28px 18px;
  border-bottom: 1px solid #e8ecf2;
}

.faq-panel-title {
  font-family: 'Oswald', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  color: #1A4B89;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin: 0;
}

.faq-expand-all {
  font-family: 'Poppins', sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #1A4B89;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
  opacity: .8;
  transition: opacity .15s;
  white-space: nowrap;
}

.faq-expand-all:hover { opacity: 1; }

/* ── Category section (all-at-once layout) ───────────────── */

.faq-cat-section {
  border-top: 1px solid #e8ecf2;
}

.faq-cat-section:first-child {
  border-top: none;
}

.faq-cat-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 18px 28px 12px;
  font-family: 'Oswald', sans-serif;
  font-size: .9rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .1em;
  color: #FBA504;
}

.faq-cat-heading-icon {
  display: flex;
  align-items: center;
  opacity: .75;
}

/* ── Accordion ───────────────────────────────────────────── */

.faq-accordion {
  padding: 4px 0;
}

.faq-acc-item {
  border-bottom: 1px solid #eef2f7;
}

.faq-acc-item:last-child { border-bottom: none; }

.faq-acc-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 28px;
  background: none;
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background .15s;
}

.faq-acc-btn:hover { background: #f8fafc; }

.faq-acc-q {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #16314f;
  line-height: 1.45;
}

.faq-acc-chevron {
  width: 18px;
  height: 18px;
  flex-shrink: 0;
  color: #9aa7b4;
  transition: transform .25s;
}

.faq-acc-item.open .faq-acc-chevron {
  transform: rotate(180deg);
  color: #1A4B89;
}

.faq-acc-item.open .faq-acc-q {
  color: #1A4B89;
  font-weight: 600;
}

.faq-acc-body {
  overflow: hidden;
  max-height: 0;
  transition: max-height .3s ease;
}

.faq-acc-body-inner {
  padding: 0 28px 18px;
}

.faq-acc-body-inner p {
  font-family: 'Poppins', sans-serif;
  font-size: 13.5px;
  color: #4b5563;
  line-height: 1.75;
  margin: 0;
}

/* ── CTA strip at bottom of panel ───────────────────────── */

.faq-panel-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding: 20px 28px;
  background: #f8fafc;
  border-top: 1px solid #e8ecf2;
}

.faq-panel-cta p {
  font-family: 'Poppins', sans-serif;
  font-size: 14px;
  font-weight: 600;
  color: #16314f;
  margin: 0;
}

.faq-panel-cta-btns {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

/* ── Shared link buttons ─────────────────────────────────── */

.btn-primary-link {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 8px;
  background: #1A4B89;
  color: #fff;
  font-family: 'Poppins', sans-serif;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s;
}

.btn-primary-link:hover { background: #153d71; }

.btn-ghost-link {
  display: inline-block;
  padding: 9px 22px;
  border-radius: 8px;
  border: 1px solid #1A4B89;
  color: #1A4B89;
  font-family: 'Poppins', sans-serif;
  font-size: .84rem;
  font-weight: 600;
  text-decoration: none;
  transition: background .18s, color .18s;
}

.btn-ghost-link:hover { background: #1A4B89; color: #fff; }

/* ── Responsive ──────────────────────────────────────────── */

@media (max-width: 860px) {
  .faq-app {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .faq-sidebar {
    position: static;
  }
  .faq-sidebar-list {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    padding: 12px;
  }
  .faq-sidebar-item {
    width: auto;
    flex-shrink: 0;
    padding: 7px 14px;
    border-radius: 20px;
    border-left: none;
    border: 1.5px solid #e2e8f0;
    font-size: 12px;
  }
  .faq-sidebar-item.active {
    background: #1A4B89;
    color: #fff;
    border-color: #1A4B89;
  }
  .faq-sidebar-icon { display: none; }
}

@media (max-width: 600px) {
  .faq-page-hero { padding: 48px 16px 36px; }
  .faq-page-body  { padding: 24px 12px 48px; }
  .faq-acc-btn, .faq-panel-head { padding-left: 18px; padding-right: 18px; }
  .faq-acc-body-inner { padding: 0 18px 16px; }
  .faq-panel-cta { padding: 16px 18px; flex-direction: column; align-items: flex-start; }
}
