/* ===========================
   FAQ Section - Collapsible
   =========================== */
.faqs {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.faqs h2 {
    margin-bottom: 1rem;
}

.faq-item {
    border-bottom: 1px solid var(--color-muted);
}

.faq-question {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
    padding: 1rem 0;
    transition: color 0.2s ease;
}

/* .faq-question:hover {
    color: var(--jumbo-blue);
} */

.faq-question h3 {
    margin: 0;
    font-size: 1rem;
    font-weight: 500;
}

.faq-icon {
    flex-shrink: 0;
    width: 1.5rem;
    height: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 300;
    color: var(--color-muted);
    transition: color 0.2s ease, transform 0.2s ease;
}

/* .faq-question:hover .faq-icon {
    color: var(--jumbo-blue);
} */

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease, padding 0.3s ease;
    padding-left: 2.5rem;
}

.faq-answer .body-l {
    max-width: none;
    padding-bottom: 1rem;
}

.faq-answer a {
    color: var(--jumbo-blue);
}

/* Active state */
/* .faq-item.active .faq-icon {
    color: var(--jumbo-blue);
} */

.faq-item.active .faq-icon::before {
    content: '-';
}

.faq-item.active .faq-icon {
    font-size: 1.5rem;
}

/* Hide the + when active by using content replacement */
.faq-icon::before {
    content: '+';
}

.faq-item.active .faq-answer {
    max-height: 300px;
}

@media (max-width: 768px) {
    .faq-question h3 {
        font-size: 0.95rem;
    }

    .faq-answer {
        padding-left: 2rem;
    }
}
