/* ==========================================================================
   FAQ — PAGE-SPECIFIC STYLES
   Shared base/reveal: /assets/css/base.css
   Shared navbar/footer/mobile shell: /assets/css/nav-footer.css
   ========================================================================== */

/* =========================================
   PAGE LAYOUT
   ========================================= */
.faq-wrapper {
    max-width: 1400px;
    margin: 0 auto;
    padding: 140px 24px 80px;
    position: relative;
    z-index: 1;
}

/* Background Decoration (Subtle dot grid) */
.faq-wrapper::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 600px;
    background-image:
        radial-gradient(var(--brand-primary) 0.5px, transparent 0.5px),
        radial-gradient(var(--brand-primary) 0.5px, transparent 0.5px);
    background-size: 24px 24px;
    background-position: 0 0, 12px 12px;
    opacity: 0.03;
    z-index: -1;
    mask-image: linear-gradient(to bottom, black, transparent);
    -webkit-mask-image: linear-gradient(to bottom, black, transparent);
}

/* =========================================
   PAGE INTRO
   ========================================= */
.page-intro {
    text-align: center;
    margin-bottom: 70px;
    position: relative;
}

.innovative-tag {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(33, 40, 66, 0.04);
    color: var(--brand-primary);
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    border: 1px solid rgba(33, 40, 66, 0.08);
    margin-bottom: 24px;
    backdrop-filter: blur(10px);
}

.innovative-tag::before {
    content: "";
    width: 6px;
    height: 6px;
    background: var(--brand-primary);
    border-radius: 50%;
    box-shadow: 0 0 10px var(--brand-primary);
}

.innovative-title {
    font-size: 4rem;
    color: var(--brand-primary);
    line-height: 1.1;
    font-weight: 700;
    letter-spacing: -0.03em;
    background: linear-gradient(180deg, var(--brand-primary) 0%, rgba(33, 40, 66, 0.6) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
    margin: 0 0 16px;
}

.intro-subtitle {
    font-size: 1.15rem;
    color: rgba(33, 40, 66, 0.6);
    max-width: 500px;
    margin: 0 auto;
    line-height: 1.7;
}


/* =========================================
   CATEGORY FILTER TABS
   ========================================= */
.faq-categories {
    display: flex;
    justify-content: center;
    gap: 10px;
    flex-wrap: wrap;
    margin-bottom: 60px;
}

.cat-btn {
    border: 1.5px solid rgba(33, 40, 66, 0.1);
    background: rgba(255, 255, 255, 0.7);
    padding: 10px 22px;
    border-radius: 100px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: rgba(33, 40, 66, 0.6);
    font-family: inherit;
    transition: all var(--transition-base);
    backdrop-filter: blur(10px);
    display: flex;
    align-items: center;
    gap: 8px;
}

.cat-btn i {
    font-size: 0.85rem;
}

.cat-btn:hover {
    color: var(--brand-primary);
    border-color: rgba(33, 40, 66, 0.25);
    background: rgba(255, 255, 255, 0.95);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

.cat-btn.active {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    box-shadow: 0 6px 20px rgba(33, 40, 66, 0.25);
    transform: translateY(-2px);
}

/* =========================================
   FAQ CONTENT LAYOUT
   ========================================= */
.faq-content {
    display: grid;
    grid-template-columns: 1fr;
    gap: 48px;
    align-items: start;
}


/* =========================================
   FAQ ACCORDION AREA
   ========================================= */
.faq-main {
    display: flex;
    flex-direction: column;
    gap: 48px;
}

.faq-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-group[data-cat]:not(.visible) {
    display: none;
}

.group-header {
    display: flex;
    align-items: center;
    gap: 14px;
    margin-bottom: 8px;
    padding-bottom: 18px;
    border-bottom: 1px solid rgba(33, 40, 66, 0.07);
}

.group-icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
    background: var(--brand-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.1rem;
    flex-shrink: 0;
    box-shadow: 0 6px 16px rgba(33, 40, 66, 0.2);
}

.group-header h2 {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--brand-primary);
    letter-spacing: -0.02em;
}

.group-count {
    margin-left: auto;
    background: rgba(33, 40, 66, 0.05);
    color: rgba(33, 40, 66, 0.5);
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 100px;
    border: 1px solid rgba(33, 40, 66, 0.08);
    text-align: center;
}

/* =========================================
   ACCORDION ITEM
   ========================================= */
.faq-item {
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 20px;
    border: 1.5px solid rgba(33, 40, 66, 0.07);
    overflow: hidden;
    transition: all var(--transition-base);
    box-shadow: var(--shadow-sm);
    position: relative;
}

/* Gradient border on hover/open */
.faq-item::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: 20px;
    padding: 1.5px;
    background: linear-gradient(135deg, var(--brand-primary), #667eea, var(--brand-light));
    -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
    -webkit-mask-composite: xor;
    mask-composite: exclude;
    opacity: 0;
    transition: opacity var(--transition-base);
    pointer-events: none;
}

.faq-item:hover::before,
.faq-item.open::before {
    opacity: 1;
}

.faq-item:hover {
    border-color: transparent;
    box-shadow: var(--shadow-md);
    transform: translateY(-2px);
}

.faq-item.open {
    border-color: transparent;
    box-shadow: 0 12px 40px rgba(33, 40, 66, 0.12);
    background: rgba(255, 255, 255, 0.92);
}

.faq-question {
    width: 100%;
    background: none;
    border: none;
    padding: 22px 28px;
    display: flex;
    align-items: center;
    gap: 16px;
    cursor: pointer;
    font-family: inherit;
    text-align: left;
    transition: all var(--transition-base);
}

.q-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    background: rgba(33, 40, 66, 0.05);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
    font-weight: 800;
    color: var(--brand-primary);
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.faq-item.open .q-icon {
    background: var(--brand-primary);
    color: #fff;
    box-shadow: 0 4px 12px rgba(33, 40, 66, 0.2);
}

.faq-question span {
    flex: 1;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--brand-primary);
    line-height: 1.4;
}

.toggle-icon {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: rgba(33, 40, 66, 0.05);
    border: 1px solid rgba(33, 40, 66, 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(33, 40, 66, 0.5);
    font-size: 0.85rem;
    flex-shrink: 0;
    transition: all var(--transition-base);
}

.faq-item.open .toggle-icon {
    background: var(--brand-primary);
    color: #fff;
    border-color: var(--brand-primary);
    transform: rotate(45deg);
    box-shadow: 0 4px 12px rgba(33, 40, 66, 0.2);
}

.faq-item:hover .toggle-icon {
    border-color: var(--brand-primary);
    color: var(--brand-primary);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.45s cubic-bezier(0.4, 0, 0.2, 1),
        padding 0.3s ease;
}

.faq-item.open .faq-answer {
    max-height: 600px;
}

.faq-answer-inner {
    padding: 0 28px 26px 80px;
    font-size: 0.97rem;
    color: rgba(33, 40, 66, 0.7);
    line-height: 1.8;
    border-top: 1px solid rgba(33, 40, 66, 0.06);
    padding-top: 20px;
}

.faq-answer-inner a {
    color: var(--brand-primary);
    font-weight: 600;
    text-underline-offset: 3px;
}

.faq-answer-inner ul {
    margin-top: 10px;
    padding-left: 20px;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.faq-answer-inner ul li {
    position: relative;
}

/* =========================================
   NO RESULTS
   ========================================= */
.no-results {
    text-align: center;
    padding: 80px 20px;
    display: none;
}

.no-results i {
    font-size: 3rem;
    color: rgba(33, 40, 66, 0.15);
    margin-bottom: 20px;
    display: block;
}

.no-results p {
    font-size: 1.1rem;
    color: rgba(33, 40, 66, 0.4);
}

/* =========================================
   REVEAL ANIMATION
   ========================================= */


/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
    .faq-content {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 768px) {
    .faq-wrapper {
        padding: 130px 16px 60px;
    }

    .innovative-title {
        font-size: 2.8rem;
    }


    .faq-categories {
        gap: 8px;
    }

    .cat-btn {
        padding: 8px 16px;
        font-size: 0.85rem;
    }

    .faq-answer-inner {
        padding-left: 28px;
    }

    .group-header h2 {
        font-size: 1.3rem;
    }
}

@media (max-width: 480px) {
    .innovative-title {
        font-size: 2.2rem;
    }

    .faq-question span {
        font-size: 0.95rem;
    }
}


/* ==========================================================================
   FAQ MOBILE V2 — PAGE CONTENT
   Shared mobile navigation is intentionally defined in nav-footer.css.
   ========================================================================== */


/* FAQ search — desktop + mobile */
.faq-search-wrap {
    width: min(560px, 100%);
    min-height: 50px;
    margin: 24px auto 0;
    padding: 7px 8px 7px 17px;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr) 36px;
    align-items: center;
    gap: 9px;
    border: 1.5px solid rgba(33, 40, 66, .09);
    border-radius: 16px;
    background: rgba(255, 255, 255, .82);
    box-shadow: 0 5px 20px rgba(33, 40, 66, .055);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
}

.faq-search-wrap > i {
    color: rgba(33, 40, 66, .35);
    font-size: .88rem;
}

.faq-search-input {
    width: 100%;
    min-width: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: #212842;
    font-family: inherit;
    font-size: .88rem;
    font-weight: 500;
}

.faq-search-input::placeholder {
    color: rgba(33, 40, 66, .34);
}

.faq-search-clear {
    width: 36px;
    height: 36px;
    border: 0;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: rgba(33, 40, 66, .42);
    background: rgba(33, 40, 66, .05);
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transition: opacity .2s ease, background .2s ease;
}

.faq-search-clear.is-visible {
    opacity: 1;
    visibility: visible;
}

.faq-search-clear:hover {
    background: rgba(33, 40, 66, .09);
}


@media (max-width: 768px) {

    :root {
        --faq-mobile-pad: 12px;
        --faq-mobile-border: rgba(33, 40, 66, .08);
        --faq-mobile-shadow: 0 8px 24px rgba(33, 40, 66, .075);
    }

    

    body {
        
        
        
        
        
        background:
            radial-gradient(circle at 100% 0%, rgba(89, 103, 232, .07), transparent 26%),
            linear-gradient(180deg, #f8f9fc 0%, #f1f3f8 56%, #eceff5 100%);
    }

    

    /* ------------------------------------------------------------------
       MOBILE TOP BAR
       ------------------------------------------------------------------ */

    

    

    

    

    

    

    

    /* ------------------------------------------------------------------
       MOBILE BOTTOM NAV
       ------------------------------------------------------------------ */

    

    

    

    

    /* ------------------------------------------------------------------
       PROFILE SHEET
       ------------------------------------------------------------------ */

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    

    /* ------------------------------------------------------------------
       FAQ PAGE SHELL
       ------------------------------------------------------------------ */

    .faq-wrapper {
        width: 100%;
        max-width: 100%;
        margin: 0;
        padding:
            calc(82px + env(safe-area-inset-top))
            var(--faq-mobile-pad)
            28px;
        overflow: hidden;
    }

    .faq-wrapper::before {
        height: 420px;
        background-size: 20px 20px;
        opacity: .025;
    }

    .page-intro {
        width: 100%;
        margin-bottom: 16px;
        text-align: left;
    }

    .innovative-tag {
        margin-bottom: 8px;
        padding: 5px 9px;
        gap: 6px;
        border-radius: 9px;
        font-size: .49rem;
        letter-spacing: 1.1px;
    }

    .innovative-tag::before {
        width: 4px;
        height: 4px;
        box-shadow: none;
    }

    .innovative-title {
        max-width: 100%;
        margin-bottom: 7px;
        font-size: clamp(1.85rem, 9.8vw, 2.65rem);
        line-height: 1;
        letter-spacing: -1.2px;
    }

    .intro-subtitle {
        max-width: 100%;
        margin: 0;
        font-size: .71rem;
        line-height: 1.5;
    }

    /* Search */
    .faq-search-wrap {
        width: 100%;
        min-height: 42px;
        margin: 12px 0 0;
        padding: 6px 6px 6px 12px;
        grid-template-columns: auto minmax(0, 1fr) 31px;
        gap: 7px;
        border-radius: 12px;
        box-shadow: 0 4px 14px rgba(33, 40, 66, .045);
    }

    .faq-search-wrap > i {
        font-size: .70rem;
    }

    .faq-search-input {
        font-size: .69rem;
    }

    .faq-search-clear {
        width: 31px;
        height: 31px;
        border-radius: 8px;
        font-size: .68rem;
    }

    /* ------------------------------------------------------------------
       CATEGORY TABS — horizontal swipe
       ------------------------------------------------------------------ */

    .faq-categories {
        width: 100%;
        margin-bottom: 18px;
        padding: 2px 0 4px;
        display: flex;
        justify-content: flex-start;
        flex-wrap: nowrap;
        gap: 5px;
        overflow-x: auto;
        overscroll-behavior-x: contain;
        scroll-snap-type: x proximity;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
    }

    .faq-categories::-webkit-scrollbar {
        display: none;
    }

    .cat-btn {
        flex: 0 0 auto;
        min-height: 34px;
        padding: 7px 10px;
        gap: 5px;
        border-radius: 10px;
        scroll-snap-align: start;
        font-size: .59rem;
        white-space: nowrap;
        backdrop-filter: none;
    }

    .cat-btn i {
        font-size: .62rem;
    }

    .cat-btn:hover,
    .cat-btn.active {
        transform: none;
    }

    /* ------------------------------------------------------------------
       FAQ GROUPS
       ------------------------------------------------------------------ */

    .faq-content {
        width: 100%;
        gap: 0;
    }

    .faq-main {
        width: 100%;
        gap: 26px;
    }

    .faq-group {
        width: 100%;
        gap: 7px;
    }

    .group-header {
        width: 100%;
        margin-bottom: 2px;
        padding: 0 1px 9px;
        display: grid;
        grid-template-columns: 36px minmax(0, 1fr) auto;
        align-items: center;
        gap: 8px;
    }

    .group-icon {
        width: 36px;
        height: 36px;
        border-radius: 10px;
        font-size: .76rem;
        box-shadow: 0 4px 12px rgba(33, 40, 66, .16);
    }

    .group-header h2 {
        min-width: 0;
        font-size: .75rem;
        line-height: 1.24;
        letter-spacing: -.01em;
    }

    .group-count {
        margin: 0;
        padding: 3px 6px;
        border-radius: 7px;
        font-size: .47rem;
        white-space: nowrap;
    }

    /* ------------------------------------------------------------------
       ACCORDION
       ------------------------------------------------------------------ */

    .faq-item {
        width: 100%;
        border-radius: 13px;
        box-shadow: 0 4px 14px rgba(33, 40, 66, .045);
        backdrop-filter: none;
    }

    .faq-item::before {
        border-radius: 13px;
    }

    .faq-item:hover {
        transform: none;
        box-shadow: 0 4px 14px rgba(33, 40, 66, .045);
    }

    .faq-item.open {
        box-shadow: 0 7px 20px rgba(33, 40, 66, .07);
    }

    .faq-question {
        min-height: 58px;
        padding: 9px 10px;
        gap: 8px;
        align-items: center;
    }

    .q-icon {
        width: 30px;
        height: 30px;
        border-radius: 9px;
        font-size: .65rem;
    }

    .faq-question span {
        min-width: 0;
        font-size: .70rem;
        line-height: 1.38;
    }

    .toggle-icon {
        width: 28px;
        height: 28px;
        border-radius: 9px;
        font-size: .62rem;
    }

    .faq-item.open .toggle-icon {
        transform: rotate(45deg);
    }

    /*
     * max-height is intentionally generous because some answers are longer
     * than the old 600px cap on small screens.
     */
    .faq-item.open .faq-answer {
        max-height: 1600px;
    }

    .faq-answer-inner {
        padding:
            10px
            11px
            12px
            48px;
        font-size: .65rem;
        line-height: 1.62;
    }

    .faq-answer-inner ul {
        margin-top: 7px;
        padding-left: 14px;
        gap: 4px;
    }

    /* ------------------------------------------------------------------
       NO RESULTS
       ------------------------------------------------------------------ */

    .no-results {
        padding: 34px 12px;
    }

    .no-results i {
        margin-bottom: 8px;
        font-size: 1.6rem;
    }

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

    /* ------------------------------------------------------------------
       FOOTER
       ------------------------------------------------------------------ */

    

    

    
}


@media (max-width: 420px) {

    :root {
        --faq-mobile-pad: 9px;
    }

    

    .innovative-title {
        font-size: clamp(1.72rem, 9.8vw, 2.25rem);
    }

    .group-header {
        grid-template-columns: 34px minmax(0, 1fr);
    }

    .group-count {
        grid-column: 2;
        width: fit-content;
        margin-top: -4px;
    }

    .faq-question {
        padding-inline: 8px;
        gap: 7px;
    }

    .faq-answer-inner {
        padding-left: 45px;
    }
}
