/* =====================================================================
   KDAY — Public FAQ page (DB-driven categories + accordion)
   Scoped styles (prefix .faq-). Reuses global --kday-* palette.
   ===================================================================== */
.faq-page {
    --faq-dark: #163a1f;
    --faq-mid:  #1f4a27;
    --faq-top:  #2c5f34;
    font-family: 'Poppins', 'Noto Sans Devanagari', system-ui, sans-serif;
}

/* ---------------------------------------------------------------- HERO */
.faq-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    padding: 3.2rem 0 5.2rem;
    border-radius: 0 0 26px 26px;
    background:
        radial-gradient(120% 95% at 82% 26%, rgba(249, 168, 37, .5) 0%, rgba(249, 168, 37, 0) 44%),
        linear-gradient(180deg, var(--faq-top) 0%, var(--faq-mid) 55%, var(--faq-dark) 100%);
}
.faq-hero::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
    pointer-events: none;
    background:
        repeating-linear-gradient(100deg, rgba(255,255,255,.045) 0 2px, transparent 2px 26px),
        linear-gradient(180deg, transparent, rgba(11,32,15,.42));
    -webkit-mask-image: linear-gradient(180deg, transparent, #000 70%);
            mask-image: linear-gradient(180deg, transparent, #000 70%);
}
.faq-hero .container { position: relative; z-index: 2; max-width: 1140px; }
.faq-hero-title {
    font-weight: 800; margin: 0; line-height: 1.12;
    font-size: clamp(1.9rem, 4.2vw, 3rem);
    text-shadow: 0 2px 14px rgba(0,0,0,.25);
    max-width: 640px;
}
.faq-hero-title .faq-gold { color: var(--kday-gold-2); }
.faq-hero-sub { margin: .9rem 0 0; max-width: 620px; font-size: 1.02rem; color: rgba(255,255,255,.9); }

/* ------------------------------------------------------- FEATURE BADGES */
.faq-features {
    position: relative;
    z-index: 5;
    margin-top: -3rem;
    background: var(--kday-surface);
    -webkit-backdrop-filter: blur(10px);
            backdrop-filter: blur(10px);
    border: 1px solid var(--kday-surface-border);
    border-radius: 18px;
    box-shadow: 0 18px 40px -20px rgba(20, 60, 30, .45);
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    overflow: hidden;
}
.faq-feature {
    display: flex; align-items: center; gap: .8rem;
    padding: 1.15rem 1.3rem;
    border-right: 1px solid var(--kday-surface-border);
}
.faq-feature:last-child { border-right: 0; }
.faq-feature-ico {
    flex: 0 0 auto; width: 46px; height: 46px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.15rem; color: #fff;
    background: linear-gradient(135deg, var(--kday-green), var(--kday-green-2));
}
.faq-feature-t { font-weight: 700; font-size: .96rem; color: var(--kday-text); line-height: 1.2; }
.faq-feature-d { font-size: .78rem; color: color-mix(in srgb, var(--kday-text) 62%, transparent); }

/* --------------------------------------------------------- CAT HEADER */
.faq-cat-head { text-align: center; margin: 2.6rem 0 1.3rem; }
.faq-cat-head h2 {
    display: inline-flex; align-items: center; gap: .6rem;
    font-weight: 700; font-size: 1.5rem; color: var(--kday-green); margin: 0;
}
.faq-cat-head h2 i { color: var(--kday-gold); font-size: .85em; }
[data-bs-theme="dark"] .faq-cat-head h2 { color: var(--kday-green-light); }

/* ------------------------------------------------------------- TABS */
.faq-tabs {
    display: flex; flex-wrap: wrap; justify-content: center;
    gap: .55rem; margin-bottom: 2rem;
}
.faq-tab {
    display: inline-flex; align-items: center; gap: .5rem;
    border: 1px solid var(--kday-surface-border);
    background: var(--kday-surface);
    color: var(--kday-text);
    font-weight: 500; font-size: .9rem;
    padding: .55rem 1.05rem; border-radius: 999px;
    cursor: pointer; white-space: nowrap;
    transition: all .18s ease;
}
.faq-tab i { color: var(--kday-green-2); }
.faq-tab:hover { border-color: var(--kday-green-2); }
.faq-tab.active { background: linear-gradient(135deg, var(--kday-green), var(--kday-green-2)); color: #fff; border-color: transparent; }
.faq-tab.active i { color: #fff; }

/* ------------------------------------------------------------- GRID */
.faq-grid { column-count: 2; column-gap: 1.4rem; }
@media (max-width: 860px) { .faq-grid { column-count: 1; } }

.faq-card {
    break-inside: avoid;
    margin: 0 0 1.4rem;
    background: var(--kday-surface);
    border: 1px solid var(--kday-surface-border);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 26px -20px rgba(20, 60, 30, .4);
}
.faq-card-head {
    display: flex; align-items: center; gap: .6rem;
    padding: 1rem 1.2rem;
    font-weight: 700; font-size: 1.08rem; color: var(--kday-green);
    border-bottom: 1px solid var(--kday-surface-border);
}
.faq-card-head i { color: var(--kday-green-2); }
[data-bs-theme="dark"] .faq-card-head { color: var(--kday-green-light); }

.faq-item { border-bottom: 1px solid var(--kday-surface-border); }
.faq-item:last-child { border-bottom: 0; }
.faq-q {
    width: 100%; text-align: start;
    display: flex; align-items: center; gap: .6rem;
    background: transparent; border: 0;
    padding: .85rem 1.2rem;
    font-size: .93rem; font-weight: 500; color: var(--kday-text);
    cursor: pointer;
}
.faq-q .faq-qmark { color: var(--kday-green); font-weight: 700; flex: 0 0 auto; }
.faq-q .faq-qtext { flex: 1; }
.faq-q .faq-chev {
    flex: 0 0 auto; color: var(--kday-green); transition: transform .25s ease; font-size: .85rem;
}
.faq-item.open .faq-q .faq-chev { transform: rotate(180deg); }
.faq-item.open .faq-q { color: var(--kday-green); font-weight: 600; }

.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a-inner {
    padding: 0 1.2rem 1rem 2.15rem;
    font-size: .88rem; line-height: 1.6;
    color: color-mix(in srgb, var(--kday-text) 78%, transparent);
}

.faq-empty { display: none; text-align: center; padding: 2.5rem 0; color: color-mix(in srgb, var(--kday-text) 60%, transparent); }
.faq-empty.show { display: block; }

/* ---------------------------------------------------------- CONTACT */
.faq-contact {
    margin-top: 1rem;
    background: var(--kday-surface);
    border: 1px solid var(--kday-surface-border);
    border-radius: 18px;
    padding: 1.6rem 1.8rem;
    display: grid;
    grid-template-columns: 1.4fr 1fr auto;
    gap: 1.6rem;
    align-items: center;
}
.faq-contact-lead { display: flex; align-items: center; gap: 1rem; }
.faq-contact-ava {
    flex: 0 0 auto; width: 76px; height: 76px; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.9rem; color: #fff;
    background: linear-gradient(135deg, var(--kday-green), var(--kday-green-2));
}
.faq-contact-lead h4 { font-weight: 700; margin: 0 0 .25rem; font-size: 1.12rem; color: var(--kday-text); }
.faq-contact-lead p { margin: 0 0 .6rem; font-size: .86rem; color: color-mix(in srgb, var(--kday-text) 65%, transparent); }
.faq-contact-btn {
    display: inline-flex; align-items: center; gap: .5rem;
    background: linear-gradient(135deg, var(--kday-green), var(--kday-green-2));
    color: #fff; font-weight: 600; font-size: .88rem;
    border-radius: 999px; padding: .5rem 1.1rem; border: 0;
}
.faq-contact-btn:hover { color: #fff; filter: brightness(1.05); }

.faq-channels { display: flex; flex-direction: column; gap: .9rem; }
.faq-channel { display: flex; align-items: center; gap: .7rem; }
.faq-channel i {
    flex: 0 0 auto; width: 38px; height: 38px; border-radius: 50%;
    display: grid; place-items: center; font-size: .9rem;
    background: rgba(46, 125, 50, .12); color: var(--kday-green);
}
.faq-channel .faq-ch-l { font-size: .74rem; color: color-mix(in srgb, var(--kday-text) 60%, transparent); }
.faq-channel .faq-ch-v { font-size: .92rem; font-weight: 600; color: var(--kday-text); }
.faq-channel .faq-ch-v small { font-weight: 400; font-size: .72rem; color: color-mix(in srgb, var(--kday-text) 55%, transparent); }

.faq-secure { text-align: center; }
.faq-secure-badge {
    width: 74px; height: 74px; margin: 0 auto .5rem; border-radius: 20px;
    display: grid; place-items: center; font-size: 2rem; color: #fff;
    background: linear-gradient(135deg, var(--kday-green), var(--kday-green-2));
    box-shadow: 0 10px 22px -10px rgba(46,125,50,.7);
}
.faq-secure b { display: block; color: var(--kday-green); font-size: 1rem; }
[data-bs-theme="dark"] .faq-secure b { color: var(--kday-green-light); }
.faq-secure span { font-size: .74rem; color: color-mix(in srgb, var(--kday-text) 62%, transparent); }

/* ------------------------------------------------------------- CTA */
.faq-cta {
    position: relative; overflow: hidden; color: #fff; margin-top: 2.4rem;
    background:
        radial-gradient(90% 130% at 95% 40%, rgba(249,168,37,.28), transparent 46%),
        linear-gradient(120deg, #12331a 0%, var(--kday-green) 135%);
}
.faq-cta-inner { display: flex; align-items: center; gap: 1.6rem; flex-wrap: wrap; padding: 2rem 0; }
.faq-cta-text { flex: 1 1 300px; }
.faq-cta-text h3 { font-weight: 800; font-size: clamp(1.3rem, 2.4vw, 1.9rem); margin: 0; }
.faq-cta-text p { margin: .3rem 0 0; color: rgba(255,255,255,.85); font-size: .95rem; }
.faq-cta-actions { display: flex; gap: .7rem; flex-wrap: wrap; }
.faq-cta-btn {
    background: linear-gradient(135deg, var(--kday-gold), var(--kday-gold-2)); color: #3d2c00;
    font-weight: 700; border: 0; border-radius: 999px; padding: .7rem 1.4rem;
    display: inline-flex; align-items: center; gap: .5rem; box-shadow: 0 8px 20px -8px rgba(249,168,37,.7);
    transition: transform .2s ease;
}
.faq-cta-btn:hover { transform: translateY(-2px); color: #3d2c00; }
.faq-cta-btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.6); box-shadow: none; }
.faq-cta-btn.ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.faq-cta-benefits { display: flex; gap: 1.3rem; flex-wrap: wrap; }
.faq-cta-benefit { text-align: center; width: 84px; }
.faq-cta-benefit i {
    width: 50px; height: 50px; margin: 0 auto .4rem; border-radius: 50%;
    display: grid; place-items: center; font-size: 1.1rem;
    background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); color: var(--kday-gold-2);
}
.faq-cta-benefit span { font-size: .74rem; line-height: 1.25; display: block; color: rgba(255,255,255,.9); }

@media (max-width: 991px) {
    .faq-features { grid-template-columns: repeat(2, 1fr); }
    .faq-feature:nth-child(2) { border-right: 0; }
    .faq-feature:nth-child(1), .faq-feature:nth-child(2) { border-bottom: 1px solid var(--kday-surface-border); }
    .faq-contact { grid-template-columns: 1fr; text-align: center; }
    .faq-contact-lead { flex-direction: column; text-align: center; }
    .faq-channels { align-items: center; }
}
@media (max-width: 575px) {
    .faq-features { grid-template-columns: 1fr; }
    .faq-feature { border-right: 0; border-bottom: 1px solid var(--kday-surface-border); }
    .faq-cta-inner { justify-content: center; text-align: center; }
    .faq-cta-benefits, .faq-cta-actions { justify-content: center; }
}
