/* input(113,1): run-time error CSS1019: Unexpected token, found '@' */
/* FAQ specific styles - kept scoped for easier dark/light theming */

/* The intro now uses the shared .scr-intro pattern (eyebrow + title + lead) for
   consistency with the screening / application pages. The search + toolbar live
   in a shared .scr-card; this just spaces the toolbar from the search field. */
.faq-search-card .faq-toolbar { margin-top: .85rem; }

.faq-search-input {
    padding-left: 2.5rem;
}

.faq-search-wrapper {
    position: relative;
}

    .faq-search-wrapper .bi-search {
        position: absolute;
        top: .6rem;
        left: .75rem;
        font-size: 1.05rem;
        color: #6c757d;
    }
/* Removed category sidebar */
.faq-empty {
    opacity: .7;
    font-style: italic;
}

.faq-question {
    cursor: pointer;
    display: block;
    position: relative;
    width: 100%;
    text-align: left;
    background: none;
    border: 0;
    color: inherit;
    font-family: inherit;
    padding: 0 1.5rem 0 0;
}

    .faq-question:after {
        content: '\f282';
        font-family: 'bootstrap-icons';
        position: absolute;
        right: .25rem;
        top: 0;
        transition: transform .2s;
    }

.faq-item.show-answer .faq-question:after {
    transform: rotate(90deg);
}

.faq-item-answer {
    display: none;
    animation: faqFade .25s ease-in;
}

.faq-item.show-answer .faq-item-answer {
    display: block;
}

/* Enhanced accordion look */
.accordion-item {
    border: 0;
    margin-bottom: .85rem;
    border-radius: .85rem;
    box-shadow: 0 6px 18px -8px rgba(0,0,0,.15);
    overflow: hidden;
    background: #fff;
}
.accordion-button {
    font-weight: 600;
    background: linear-gradient(90deg,#ffffff,var(--c-primary-50));
}
.accordion-button:not(.collapsed) {
    background: linear-gradient(90deg,var(--c-primary-100),#ffffff);
    box-shadow: inset 0 -1px 0 rgba(0,0,0,.06);
}
.accordion-button:focus { box-shadow: 0 0 0 .15rem rgba(30,71,123,.25); }

/* List layout */
.faq-list { display: flex; flex-direction: column; gap: .75rem; }

/* Individual question item styling (striped instead of bordered) */
.faq-item {
    background:#ffffff;
    border:0;
    border-radius:.5rem;
    padding:.75rem .9rem .6rem;
    transition:background .18s ease, box-shadow .18s ease;
    position:relative;
}
.faq-item:nth-child(even){ background:#f4f8fc; }
.faq-item:hover { box-shadow:0 4px 14px -6px rgba(0,0,0,.12); }
.faq-item.show-answer { box-shadow:0 4px 18px -6px rgba(0,0,0,.18); }
.faq-item.show-answer:before {
    content:""; position:absolute; left:0; top:0; bottom:0; width:4px; background:var(--bs-primary); border-radius:.5rem 0 0 .5rem;
}

.faq-question { font-size: .95rem; }
.faq-item-answer { padding-top: .55rem; border-top: 1px solid #e5e7eb; font-size: .9rem; line-height: 1.4; }

.dark-theme .accordion-item { background:#1f2327; box-shadow:0 6px 18px -8px rgba(0,0,0,.6); }
.dark-theme .faq-item { background:#252b31; }
.dark-theme .faq-item:nth-child(even){ background:#2d343b; }
.dark-theme .faq-item:hover { background:#30373e; }
.dark-theme .faq-item.show-answer { background:#30373e; }
.dark-theme .faq-item.show-answer:before { background:#5fa8d6; }
.dark-theme .faq-item-answer { border-top-color:#3a4149; }

@@keyframes faqFade {
    from {
        opacity: 0;
        transform: translateY(-4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

mark.faq-hilite {
    background: #fff3cd;
    padding: 0 .15em;
    border-radius: .25rem;
}

.faq-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    align-items: center;
    margin-top: .5rem;
}

    .faq-toolbar .btn {
        padding: .35rem .75rem;
        font-size: .8rem;
    }

.no-match {
    display: none;
}

.dark-theme mark.faq-hilite {
    background: #664d03;
    color: #fff;
}

/* The accordion-button gradients + search icon hardcode light values. */
.dark-theme .accordion-button {
    background: linear-gradient(90deg, var(--c-surface), rgba(91,145,214,.10));
    color: var(--c-text);
}
.dark-theme .accordion-button:not(.collapsed) {
    background: linear-gradient(90deg, rgba(91,145,214,.20), var(--c-surface));
    color: var(--c-primary-700);
    box-shadow: inset 0 -1px 0 rgba(255,255,255,.06);
}
.dark-theme .faq-search-wrapper .bi-search { color: #9aa3ad; }
