/* =============================================================================
 * FAQ Archive
 * ========================================================================== */

/* Hero */
.faq-hero {
    background: var(--secondary, #083350);
    padding: 60px 0 70px;
}

.faq-hero__title {
    font-family: var(--font1);
    font-size: 2.5rem;
    color: #fff;
    margin: 0 0 12px;
}

.faq-hero__description {
    color: rgba(255, 255, 255, 0.7);
    font-size: 1.05rem;
    margin: 0;
    max-width: 550px;
}

/* Archive Layout */
.faq-archive {
    padding: 50px 0 80px;
}

.faq-archive__layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: 60px;
    align-items: start;
}

/* Sidebar */
.faq-sidebar {
    position: sticky;
    top: 120px;
}

.faq-sidebar__heading {
    font-size: 0.72rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #999;
    margin: 0 0 14px;
    padding: 0 0 10px;
    border-bottom: 1px solid #e5e5e5;
}

.faq-sidebar__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.faq-sidebar__link {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    padding: 10px 12px;
    border-radius: 4px;
    text-decoration: none;
    color: #444;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.15s ease;
}

.faq-sidebar__link:hover {
    background: #f5f5f5;
    color: var(--secondary, #083350);
}

.faq-sidebar__link.active {
    background: var(--secondary, #083350);
    color: #fff;
}

.faq-sidebar__link.active .faq-sidebar__count {
    background: rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.8);
}

.faq-sidebar__count {
    font-size: 0.72rem;
    font-weight: 600;
    background: #eee;
    color: #888;
    padding: 2px 8px;
    border-radius: 10px;
    min-width: 24px;
    text-align: center;
}

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

.faq-empty {
    text-align: center;
    padding: 60px 0;
}

.faq-empty h2 {
    font-size: 1.5rem;
    margin-bottom: 8px;
}

.faq-empty p {
    color: #666;
}

/* Section */
.faq-section {
    margin-bottom: 50px;
    scroll-margin-top: 110px;
}

.faq-section:last-child {
    margin-bottom: 0;
}

.faq-section__heading {
    font-family: var(--font1);
    font-size: 1.4rem;
    font-weight: 600;
    color: var(--secondary, #083350);
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid var(--secondary, #083350);
}

/* FAQ Item */
.faq-section__list {
    display: flex;
    flex-direction: column;
}

.faq-item {
    border-bottom: 1px solid #e8e8e8;
}

.faq-item__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
    padding: 20px 4px;
    margin: 0;
    border: none;
    background: none;
    font-family: var(--font2);
    font-size: 1rem;
    font-weight: 500;
    color: #1a1a1a;
    text-align: left;
    cursor: pointer;
    transition: color 0.2s ease;
    line-height: 1.45;
}

.faq-item__question:hover {
    color: var(--primary, #cb292b);
}

/* Plus/Minus Icon */
.faq-item__icon {
    flex-shrink: 0;
    color: #aaa;
    transition: color 0.2s ease;
}

.faq-item__icon-v {
    transition: opacity 0.2s ease, transform 0.2s ease;
    transform-origin: center;
}

.faq-item__question[aria-expanded="true"] .faq-item__icon {
    color: var(--primary, #cb292b);
}

.faq-item__question[aria-expanded="true"] .faq-item__icon-v {
    opacity: 0;
    transform: scaleY(0);
}

/* Answer */
.faq-item__answer[hidden] {
    display: none;
}

.faq-item__answer-inner {
    padding: 0 4px 22px;
    font-size: 0.95rem;
    line-height: 1.8;
    color: #555;
    animation: faqFadeIn 0.25s ease;
}

.faq-item__answer-inner p {
    color: #555;
    font-size: 0.95rem;
    line-height: 1.8;
}

.faq-item__answer-inner p:last-child {
    margin-bottom: 0;
}

.faq-item__answer-inner a {
    color: var(--primary, #cb292b);
    text-decoration: underline;
    text-underline-offset: 2px;
}

@keyframes faqFadeIn {
    from { opacity: 0; transform: translateY(-4px); }
    to { opacity: 1; transform: translateY(0); }
}

/* =============================================================================
 * Responsive
 * ========================================================================== */

@media (max-width: 991px) {
    .faq-archive__layout {
        grid-template-columns: 200px 1fr;
        gap: 40px;
    }
}

@media (max-width: 767px) {
    .faq-hero {
        padding: 40px 0 50px;
    }

    .faq-hero__title {
        font-size: 2rem;
    }

    .faq-archive {
        padding: 30px 0 60px;
    }

    .faq-archive__layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .faq-sidebar {
        position: static;
        margin-bottom: 30px;
        padding-bottom: 25px;
        border-bottom: 1px solid #e5e5e5;
    }

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

    .faq-sidebar__link {
        padding: 7px 12px;
        font-size: 0.82rem;
        background: #f5f5f5;
        border-radius: 20px;
    }

    .faq-section {
        scroll-margin-top: 80px;
    }

    .faq-section__heading {
        font-size: 1.2rem;
    }

    .faq-item__question {
        font-size: 0.92rem;
        padding: 16px 4px;
    }
}
