/* FAQ Section — Bootstrap 4.6 compatible */

/* Bootstrap CSS is not loaded globally; provide the one collapse rule the accordion needs */
#faqAccordion .collapse:not(.show) {
    display: none;
}

/* Override global /static/css/pages/faq.css which hides .faq-category by default */
#faq .faq-category {
    display: block !important;
    opacity: 1 !important;
}

.faq-section {
    background: #f8f9fa;
}

.faq-category-header {
    font-weight: 600;
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6c757d;
    padding: 0.5rem 0 0.75rem;
    border-bottom: 2px solid #e9ecef;
    margin-bottom: 0.75rem;
    display: flex;
    align-items: center;
}

.faq-item {
    border-radius: 10px !important;
    box-shadow: 0 1px 6px rgba(0, 0, 0, 0.07);
    overflow: hidden;
}

.faq-item-question {
    background: #fff;
    border: none !important;
    padding: 0;
}

.faq-toggle {
    padding: 1rem 1.25rem;
    font-weight: 500;
    font-size: 0.95rem;
    color: #343a40;
    display: flex !important;
    align-items: center;
    text-decoration: none !important;
    white-space: normal;
    border-radius: 0 !important;
}

.faq-toggle:focus {
    box-shadow: none;
    outline: none;
}

.faq-toggle:hover {
    color: #0056b3;
    background-color: #f8f9ff;
    text-decoration: none !important;
}

.faq-q-text {
    flex: 1;
    text-align: left;
}

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.25s ease;
    color: #adb5bd;
    font-size: 0.8rem;
}

.faq-toggle[aria-expanded="true"] .faq-chevron {
    transform: rotate(-180deg);
    color: #0056b3;
}

.faq-item-answer {
    background: #fff;
    border-top: 1px solid #f0f0f0 !important;
    font-size: 0.93rem;
    color: #495057;
    line-height: 1.7;
    padding: 1rem 1.25rem;
}

.faq-item-answer p:last-child {
    margin-bottom: 0;
}

@media (max-width: 767px) {
    .faq-toggle {
        padding: 0.85rem 1rem;
        font-size: 0.9rem;
    }
    .faq-item-answer {
        padding: 0.85rem 1rem;
    }
}
