/* ===== FAQ PAGE ===== */

/* --- Hero --- */
.faq-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    overflow: hidden;
    background: url('https://images.unsplash.com/photo-1521737604893-d14cc237f11d?w=1400&auto=format&fit=crop&q=60') center/cover no-repeat;
}

.faq-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(10, 22, 40, 0.88) 0%, rgba(26, 45, 80, 0.82) 100%);
    z-index: 1;
}

.faq-hero-inner {
    position: relative;
    z-index: 2;
    max-width: 620px;
    padding: 80px 24px 60px;
}

.faq-hero-pill {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: var(--brand-primary-soft, rgba(242, 166, 90, 0.15));
    color: var(--brand-primary, #F2A65A);
    border: 1px solid var(--brand-primary-mid, rgba(242, 166, 90, 0.25));
    border-radius: 50px;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 6px 16px;
    margin-bottom: 1.25rem;
}

.faq-hero-inner h1 {
    font-size: clamp(2rem, 5vw, 3rem);
    font-weight: 800;
    color: #fff;
    letter-spacing: -0.5px;
    line-height: 1.15;
    margin-bottom: 1rem;
}

.faq-hero-inner h1 span {
    color: var(--brand-primary, #F2A65A);
}

.faq-hero-inner p {
    font-size: 1rem;
    color: rgba(255, 255, 255, 0.65);
    max-width: 460px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}

/* Search */
.faq-search-wrap {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: rgba(255, 255, 255, 0.08);
    border: 1.5px solid rgba(255, 255, 255, 0.18);
    border-radius: 50px;
    padding: 0 1.25rem;
    max-width: 480px;
    margin: 0 auto;
    backdrop-filter: blur(8px);
    transition: border-color 0.2s, background 0.2s;
}

.faq-search-wrap:focus-within {
    border-color: var(--brand-primary, #F2A65A);
    background: rgba(255, 255, 255, 0.12);
}

.faq-search-wrap>i {
    color: rgba(255, 255, 255, 0.5);
    font-size: 1.1rem;
    flex-shrink: 0;
}

.faq-search-input {
    flex: 1;
    background: transparent;
    border: none;
    outline: none;
    color: #fff;
    font-size: 0.97rem;
    padding: 0.85rem 0;
}

.faq-search-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.faq-search-clear {
    background: none;
    border: none;
    color: rgba(255, 255, 255, 0.5);
    font-size: 1rem;
    cursor: pointer;
    padding: 0;
    display: none;
    line-height: 1;
}

.faq-search-clear.show {
    display: block;
}

/* --- Stats Bar --- */
.faq-stats-bar {
    background: #f8f9fb;
    border-bottom: 1px solid #eaecf0;
}

.faq-stats-inner {
    max-width: 960px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-stat {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 18px 36px;
    border-right: 1px solid #eaecf0;
    flex: 1;
    min-width: 150px;
    justify-content: center;
}

.faq-stat:last-child {
    border-right: none;
}

.faq-stat-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand-primary-soft, rgba(242, 166, 90, 0.12));
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary, #F2A65A);
    font-size: 1rem;
    flex-shrink: 0;
}

.faq-stat-text strong {
    display: block;
    font-size: 0.97rem;
    font-weight: 800;
    color: #1a2035;
    line-height: 1.2;
}

.faq-stat-text span {
    font-size: 0.74rem;
    color: #8a94a6;
    font-weight: 500;
}

/* --- Main Layout --- */
.faq-page-wrap {
    max-width: 1100px;
    margin: 0 auto;
    padding: 56px 24px 96px;
    display: flex;
    /* grid-template-columns: 240px 1fr; */
    gap: 40px;
    align-items: start;
    overflow: visible;
}

/* --- Sidebar --- */
.faq-sidebar {
    position: sticky;
    /* min-width: 0; */
    width: 240px;
    /* width: 100%; */
    /* overflow: hidden; */
    align-self: flex-start;
    top: calc(var(--header-height, 70px)+20px);
    height: fit-content;
}

.faq-sidebar-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #8a94a6;
    margin-bottom: 10px;
    padding-left: 12px;
}

.faq-sidebar-nav {
    display: flex;
    flex-direction: column;
    gap: 2px;
    width: 100%;
}

.faq-nav-item {
    display: flex;
    align-items: center;
    gap: 9px;
    padding: 10px 12px;
    border-radius: 10px;
    font-size: 0.84rem;
    font-weight: 500;
    color: #5a6478;
    cursor: pointer;
    text-align: left;
    transition: all 0.18s;
    border: none;
    background: none;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
}

.faq-nav-item i {
    font-size: 1rem;
    width: 18px;
    text-align: center;
    flex-shrink: 0;
}

.faq-nav-item>span:first-of-type {
    flex: 1;
}

.faq-nav-item:hover {
    background: #f0f2f7;
    color: var(--brand-primary, #F2A65A);
}

.faq-nav-item.active {
    background: var(--brand-primary-soft, rgba(242, 166, 90, 0.12));
    color: var(--brand-primary, #F2A65A);
    font-weight: 700;
}

.faq-count {
    margin-left: auto;
    flex-shrink: 0;
    background: #eaecf0;
    color: #5a6478;
    font-size: 0.68rem;
    font-weight: 700;
    padding: 2px 7px;
    border-radius: 100px;
    min-width: 20px;
    max-width: 40px;
    text-align: center;
    transition: all 0.18s;
}

.faq-nav-item.active .faq-count {
    background: var(--brand-primary-mid, rgba(242, 166, 90, 0.25));
    color: var(--brand-primary, #F2A65A);
}

/* --- FAQ Main Content --- */
.faq-main {
    flex: 1;
    min-width: 0;
}

.faq-no-results {
    display: none;
    text-align: center;
    padding: 64px 24px;
    color: #8a94a6;
}

.faq-no-results i {
    font-size: 2.5rem;
    margin-bottom: 12px;
    display: block;
}

.faq-no-results p {
    font-size: 0.9rem;
}

.faq-no-results.show {
    display: block;
}

/* --- FAQ Section Block --- */
.faq-section-block {
    margin-bottom: 48px;
    animation: faqSectionIn 0.4s ease both;
}

.faq-section-block.hidden {
    display: none;
}

@keyframes faqSectionIn {
    from {
        opacity: 0;
        transform: translateY(14px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.faq-section-block:nth-child(2) {
    animation-delay: 0.04s;
}

.faq-section-block:nth-child(3) {
    animation-delay: 0.08s;
}

.faq-section-block:nth-child(4) {
    animation-delay: 0.12s;
}

.faq-section-block:nth-child(5) {
    animation-delay: 0.16s;
}

.faq-section-block:nth-child(6) {
    animation-delay: 0.20s;
}

.faq-section-block:nth-child(7) {
    animation-delay: 0.24s;
}

.faq-section-block:nth-child(8) {
    animation-delay: 0.28s;
}

.faq-section-head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 14px;
    border-bottom: 1.5px solid #f0f2f7;
}

.faq-section-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: var(--brand-primary, #F2A65A);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1rem;
    flex-shrink: 0;
}

.faq-section-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a2035;
}

.faq-section-count {
    margin-left: auto;
    font-size: 0.72rem;
    font-weight: 600;
    color: #8a94a6;
    background: #f0f2f7;
    padding: 3px 10px;
    border-radius: 100px;
}

/* --- Accordion --- */
.faq-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.faq-item {
    border: 1.5px solid #eaecf0;
    border-radius: 14px;
    overflow: hidden;
    transition: border-color 0.22s, box-shadow 0.22s;
}

.faq-item:hover {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}

.faq-item.open {
    border-color: var(--brand-primary-mid, rgba(242, 166, 90, 0.35));
    box-shadow: 0 4px 20px var(--brand-primary-soft, rgba(242, 166, 90, 0.10));
}

.faq-item.highlight {
    border-color: var(--brand-primary, #F2A65A);
    box-shadow: 0 0 0 3px var(--brand-primary-soft, rgba(242, 166, 90, 0.10));
}

.faq-q {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 18px 20px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background 0.18s;
}

.faq-q:hover {
    background: #fafbfc;
}

.faq-item.open .faq-q {
    background: #fafbfc;
}

.faq-q-text {
    flex: 1;
    font-size: 0.92rem;
    font-weight: 600;
    color: #1a2035;
    line-height: 1.45;
}

.faq-chevron {
    width: 28px;
    height: 28px;
    border-radius: 8px;
    background: #f0f2f7;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    color: #8a94a6;
    font-size: 0.95rem;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
    background: var(--brand-primary-soft, rgba(242, 166, 90, 0.15));
    color: var(--brand-primary, #F2A65A);
}

.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.36s cubic-bezier(0.4, 0, 0.2, 1);
}

.faq-body-inner {
    padding: 16px 20px 20px;
    font-size: 0.9rem;
    color: #5a6478;
    line-height: 1.75;
    border-top: 1px solid #f0f2f7;
}

/* Search highlight */
mark {
    background: var(--brand-primary-soft, rgba(242, 166, 90, 0.2));
    color: var(--brand-primary, #F2A65A);
    border-radius: 3px;
    padding: 0 2px;
    font-weight: 700;
}

/* --- Contact Card --- */
.faq-contact-card {
    background: linear-gradient(135deg, #0a1628 0%, #1a2d50 100%);
    border-radius: 20px;
    padding: 40px 36px;
    text-align: center;
    position: relative;
    overflow: hidden;
    margin-top: 8px;
}

.faq-contact-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 24px 24px;
}

.faq-contact-inner {
    position: relative;
    z-index: 1;
}

.faq-contact-icon {
    width: 52px;
    height: 52px;
    border-radius: 14px;
    background: var(--brand-primary-soft, rgba(242, 166, 90, 0.15));
    border: 1px solid var(--brand-primary-mid, rgba(242, 166, 90, 0.25));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--brand-primary, #F2A65A);
    margin: 0 auto 18px;
}

.faq-contact-card h3 {
    font-size: 1.15rem;
    font-weight: 800;
    color: #fff;
    margin-bottom: 8px;
}

.faq-contact-card p {
    font-size: 0.87rem;
    color: rgba(255, 255, 255, 0.55);
    line-height: 1.65;
    max-width: 320px;
    margin: 0 auto 24px;
}

.faq-contact-btns {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.faq-btn-primary {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    border-radius: 50px;
    background: var(--brand-primary, #F2A65A);
    color: #fff;
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.2s;
}

.faq-btn-primary:hover {
    opacity: 0.88;
    transform: translateY(-1px);
}

.faq-btn-ghost {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 11px 22px;
    border-radius: 50px;
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.8);
    border: 1px solid rgba(255, 255, 255, 0.14);
    font-weight: 700;
    font-size: 0.85rem;
    text-decoration: none;
    transition: background 0.2s;
}

.faq-btn-ghost:hover {
    background: rgba(255, 255, 255, 0.14);
}

/* --- Responsive --- */
@media (max-width: 820px) {
    .faq-page-wrap {
        grid-template-columns: 1fr;
        gap: 24px;
        padding-top: 32px;
        overflow: visible;
    }

    .faq-sidebar {
        position: static;
    }

    .faq-sidebar-nav {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 6px;
    }

    .faq-nav-item {
        flex: none;
        padding: 7px 12px;
        font-size: 0.78rem;
        border-radius: 50px;
        border: 1.5px solid #eaecf0;
    }

    .faq-nav-item.active {
        border-color: var(--brand-primary, #F2A65A);
    }

    .faq-count {
        display: none;
    }

    .faq-sidebar-label {
        display: none;
    }
}

@media (max-width: 600px) {
    .faq-stat {
        padding: 14px 18px;
        min-width: 120px;
    }

    .faq-contact-card {
        padding: 28px 20px;
    }
}

@media (max-width: 480px) {
    .faq-stat {
        min-width: 50%;
        border-right: none;
        border-bottom: 1px solid #eaecf0;
    }

    .faq-stat:nth-child(odd) {
        border-right: 1px solid #eaecf0;
    }

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