/* ============================================================
   Bariatric Nepal FAQ — bn-faq.css  v2.0.0
   Matches site palette: blue hero, green/red buttons, gold bar
============================================================ */
@import url('https://fonts.googleapis.com/css2?family=Nunito:wght@400;500;600;700;800&display=swap');

/* ── CSS Variables (overridden via inline style from admin) ── */
.bn-faq-wrapper {
    --bn-blue:    #3a5cbf;
    --bn-green:   #2db84b;
    --bn-red:     #e02020;
    --bn-gold:    #e8a020;
    --bn-accent:  #2db84b;
    --bn-navy:    #1a2f6b;
    --bn-white:   #ffffff;
    --bn-text:    #1e293b;
    --bn-muted:   #64748b;
    --bn-border:  #e2e8f0;
    --bn-surface: #f4f7ff;
    --bn-radius:  10px;
    --bn-shadow:  0 2px 16px rgba(58,92,191,0.10);
    font-family: 'Nunito', system-ui, sans-serif;
    color: var(--bn-text);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

*, *::before, *::after { box-sizing: border-box; }

/* ═══════════════════════════════════════════════════════════
   HERO
═══════════════════════════════════════════════════════════ */
.bn-hero {
    background: var(--bn-blue);
    padding: 48px 32px 0;
    overflow: hidden;
    position: relative;
}

/* zero left/right gap on mobile */
@media (max-width: 600px) {
    .bn-hero { padding: 36px 0 0; }
}

.bn-hero__content {
    max-width: 900px;
    margin: 0 auto;
    padding-bottom: 40px;
}

@media (max-width: 600px) {
    .bn-hero__content { padding: 0 16px 32px; }
}

.bn-hero__badge {
    display: inline-block;
    background: rgba(255,255,255,0.15);
    border: 1px solid rgba(255,255,255,0.30);
    color: var(--bn-white);
    font-size: 11.5px;
    font-weight: 700;
    letter-spacing: 0.07em;
    text-transform: uppercase;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 16px;
}

.bn-hero__title {
    font-size: clamp(28px, 5vw, 46px);
    font-weight: 800;
    color: var(--bn-white);
    line-height: 1.18;
    margin: 0 0 16px;
}

.bn-hero__title-accent {
    color: var(--bn-accent);
}

.bn-hero__subtitle {
    font-size: 16px;
    color: rgba(255,255,255,0.78);
    margin: 0 0 28px;
    max-width: 520px;
    line-height: 1.7;
}

/* Buttons */
.bn-hero__btns {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.bn-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 14px 28px;
    border-radius: var(--bn-radius);
    font-size: 15px;
    font-weight: 700;
    font-family: inherit;
    text-decoration: none;
    cursor: pointer;
    transition: transform 0.18s, opacity 0.18s;
    border: 2px solid transparent;
    white-space: nowrap;
}

.bn-btn:hover { transform: translateY(-2px); opacity: 0.92; }

.bn-btn--green {
    background: var(--bn-green);
    color: var(--bn-white);
}

.bn-btn--red {
    background: var(--bn-red);
    color: var(--bn-white);
}

.bn-btn--outline {
    border-color: var(--bn-blue);
    color: var(--bn-blue);
    background: transparent;
}

.bn-btn--outline:hover {
    background: var(--bn-blue);
    color: var(--bn-white);
}

@media (max-width: 480px) {
    .bn-hero__btns { flex-direction: column; }
    .bn-btn { justify-content: center; }
}

/* Stats Bar */
.bn-stats-bar {
    background: rgba(0,0,0,0.18);
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    border-top: 1px solid rgba(255,255,255,0.10);
}

.bn-stat-item {
    flex: 1 1 120px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-right: 1px solid rgba(255,255,255,0.10);
    min-width: 120px;
}

.bn-stat-item:last-child { border-right: none; }

.bn-stat-item strong {
    font-size: 22px;
    font-weight: 800;
    color: var(--bn-white);
    display: block;
    line-height: 1;
}

.bn-stat-item span {
    font-size: 11.5px;
    color: rgba(255,255,255,0.70);
    font-weight: 600;
    display: block;
}

@media (max-width: 600px) {
    .bn-stats-bar { display: grid; grid-template-columns: 1fr 1fr; }
    .bn-stat-item { border-right: 1px solid rgba(255,255,255,0.10); border-bottom: 1px solid rgba(255,255,255,0.10); }
    .bn-stat-item:nth-child(2) { border-right: none; }
    .bn-stat-item:nth-child(3),
    .bn-stat-item:nth-child(4) { border-bottom: none; }
    .bn-stat-item:nth-child(4) { border-right: none; }
}

/* Gold Bar */
.bn-gold-bar {
    background: var(--bn-gold);
    text-align: center;
    padding: 14px 16px;
}

.bn-gold-bar a {
    color: var(--bn-navy);
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
}

.bn-gold-bar a:hover { text-decoration: underline; }

/* ═══════════════════════════════════════════════════════════
   FAQ SECTION
═══════════════════════════════════════════════════════════ */
.bn-faq-section {
    background: var(--bn-surface);
    padding: 48px 0 72px;
}

/* ZERO side gap on mobile — full width */
.bn-faq-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 24px;
}

@media (max-width: 600px) {
    .bn-faq-section { padding: 28px 0 48px; }
    .bn-faq-inner   { padding: 0; }
}

/* Filter Tabs */
.bn-filter-tabs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 36px;
}

@media (max-width: 600px) {
    .bn-filter-tabs { padding: 0 12px; margin-bottom: 24px; gap: 6px; }
}

.bn-filter-tab {
    padding: 8px 16px;
    border-radius: 100px;
    border: 2px solid var(--bn-border);
    background: var(--bn-white);
    font-family: inherit;
    font-size: 13px;
    font-weight: 600;
    color: var(--bn-muted);
    cursor: pointer;
    transition: all 0.18s;
}

.bn-filter-tab:hover {
    border-color: var(--bn-blue);
    color: var(--bn-blue);
}

.bn-filter-tab--active {
    background: var(--bn-blue);
    border-color: var(--bn-blue);
    color: var(--bn-white);
}

/* FAQ Groups */
.bn-faq-groups {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

@media (max-width: 600px) {
    .bn-faq-groups { gap: 24px; }
}

.bn-faq-group--hidden { display: none; }

.bn-group-heading {
    font-size: 19px;
    font-weight: 800;
    color: var(--bn-navy);
    margin: 0 0 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding-bottom: 10px;
    border-bottom: 2px solid rgba(58,92,191,0.12);
}

@media (max-width: 600px) {
    .bn-group-heading { padding: 0 12px 10px; margin-bottom: 0; font-size: 17px; }
}

/* Accordion */
.bn-accordion {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

@media (max-width: 600px) {
    .bn-accordion { gap: 0; border-top: 1px solid var(--bn-border); }
}

.bn-accordion__item {
    background: var(--bn-white);
    border: 1px solid var(--bn-border);
    border-radius: var(--bn-radius);
    overflow: hidden;
    transition: border-color 0.2s, box-shadow 0.2s;
}

@media (max-width: 600px) {
    .bn-accordion__item {
        border-radius: 0;
        border-left: none;
        border-right: none;
        border-top: none;
    }
}

.bn-accordion__item:hover {
    border-color: var(--bn-blue);
    box-shadow: var(--bn-shadow);
}

.bn-accordion__item--open {
    border-color: var(--bn-blue);
    box-shadow: var(--bn-shadow);
}

.bn-accordion__trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100%;
    padding: 18px 20px;
    background: transparent;
    border: none;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
}

@media (max-width: 600px) {
    .bn-accordion__trigger { padding: 16px 14px; }
}

.bn-accordion__q {
    font-size: 15.5px;
    font-weight: 700;
    color: var(--bn-text);
    line-height: 1.4;
    transition: color 0.2s;
}

.bn-accordion__item--open .bn-accordion__q { color: var(--bn-blue); }

@media (max-width: 600px) {
    .bn-accordion__q { font-size: 14.5px; }
}

.bn-accordion__chevron {
    flex-shrink: 0;
    color: var(--bn-muted);
    transition: transform 0.3s, color 0.2s;
    display: flex;
    align-items: center;
}

.bn-accordion__item--open .bn-accordion__chevron {
    transform: rotate(-180deg);
    color: var(--bn-blue);
}

/* Panel animation */
.bn-accordion__panel {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease;
}

.bn-accordion__panel:not([hidden]) {
    max-height: 1500px;
}

.bn-accordion__panel[hidden] {
    display: block !important;
    max-height: 0;
    visibility: hidden;
}

.bn-accordion__panel:not([hidden]) {
    visibility: visible;
}

.bn-accordion__body {
    padding: 4px 20px 20px;
    border-top: 2px solid rgba(58,92,191,0.08);
}

@media (max-width: 600px) {
    .bn-accordion__body { padding: 4px 14px 18px; }
}

/* Stars */
.bn-stars {
    color: #f59e0b;
    font-size: 16px;
    letter-spacing: 2px;
    margin: 10px 0 8px;
}

/* Answer text */
.bn-answer-text {
    font-size: 14.5px;
    line-height: 1.8;
    color: var(--bn-muted);
}

@media (max-width: 600px) {
    .bn-answer-text { font-size: 14px; }
}

/* ═══════════════════════════════════════════════════════════
   BOTTOM CTA STRIP
═══════════════════════════════════════════════════════════ */
.bn-cta-strip {
    margin-top: 48px;
    background: var(--bn-blue);
    border-radius: var(--bn-radius);
    padding: 32px 36px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
}

@media (max-width: 600px) {
    .bn-cta-strip {
        border-radius: 0;
        flex-direction: column;
        text-align: center;
        padding: 24px 16px;
        margin-top: 32px;
    }
}

.bn-cta-strip__text strong {
    display: block;
    font-size: 18px;
    color: var(--bn-white);
    font-weight: 800;
    margin-bottom: 4px;
}

.bn-cta-strip__text span {
    font-size: 14px;
    color: rgba(255,255,255,0.70);
}

.bn-cta-strip__actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

@media (max-width: 480px) {
    .bn-cta-strip__actions { flex-direction: column; width: 100%; }
    .bn-cta-strip__actions .bn-btn { justify-content: center; }
    .bn-btn--outline { border-color: rgba(255,255,255,0.5); color: var(--bn-white); }
    .bn-btn--outline:hover { background: rgba(255,255,255,0.15); }
}

/* ── Reduced motion ── */
@media (prefers-reduced-motion: reduce) {
    .bn-accordion__panel,
    .bn-accordion__chevron,
    .bn-btn { transition: none; }
}