/**
 * Best FAQ Section Styles
 */

.best-faq-section {
    margin-top: 60px;
    margin-bottom: 60px;
}

.faq-section-title {
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 30px;
    color: var(--text-color);
}

.best-faqs-accordion {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.best-faq-item {
    background: var(--glass-bg, rgba(255, 255, 255, 0.02));
    border: 1.5px solid var(--glass-border, rgba(var(--primary-rgb), 0.1));
    border-radius: 16px;
    /* Slightly more rounded */
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.best-faq-item:hover,
.best-faq-item:focus-within {
    border-color: rgba(var(--primary-rgb), 0.3);
    background: rgba(var(--primary-rgb), 0.04);
    box-shadow: 0 8px 16px rgba(var(--primary-rgb), 0.08);
    transform: translateY(-2px);
}

.best-faq-toggle {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: transparent;
    border: none;
    padding: 20px 24px;
    cursor: pointer;
    text-align: left;
    color: var(--text-color);
    transition: background 0.2s ease;
}

.best-faq-toggle:hover {
    background: rgba(0, 0, 0, 0.02);
}

[data-theme="dark"] .best-faq-toggle:hover {
    background: rgba(255, 255, 255, 0.02);
}

.best-faq-question {
    font-size: 1.15rem;
    font-weight: 600;
    line-height: 1.4;
    padding-right: 16px;
}

.best-faq-icon {
    flex-shrink: 0;
    color: var(--text-muted);
    transition: transform 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.best-faq-toggle[aria-expanded="true"] .best-faq-icon {
    transform: rotate(180deg);
    color: var(--primary);
}

.best-faq-answer {
    padding: 0 24px 24px 24px;
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.6;
}

.best-faq-answer[hidden] {
    display: none;
}

/* =========================================================
   CONTEXT VARIANTS — Key Takeaways vs. End FAQ
   ========================================================= */

/* Key Takeaways (FAQ items 1-5) */
.best-faq-section.best-faq-kt {
    margin-top: 0;
    margin-bottom: 32px;
}

.best-faq-section.best-faq-kt .faq-section-title {
    font-size: 1.4rem;
    display: flex;
    align-items: center;
    gap: 10px;
}

.best-faq-section.best-faq-kt .faq-section-title::before {
    content: '';
    display: inline-block;
    width: 4px;
    height: 20px;
    background: var(--primary);
    border-radius: 4px;
    flex-shrink: 0;
}

/* End FAQ (items 6-10) */
.best-faq-section.best-faq-end {
    margin-top: 48px;
}

.best-faq-section.best-faq-end .faq-section-title {
    font-size: 1.6rem;
}

/* =========================================================
   MOBILE RESPONSIVENESS
   ========================================================= */

@media (max-width: 768px) {
    .best-faq-section {
        margin-top: 24px;
        margin-bottom: 24px;
    }

    .faq-section-title {
        font-size: 1.25rem;
        /* Reduced from 1.4rem */
        margin-bottom: 16px;
    }

    .best-faq-toggle {
        padding: 14px 18px;
        /* Reduced from 16px 20px */
    }

    .best-faq-question {
        font-size: 0.95rem;
        /* Reduced from 1rem */
    }

    .best-faq-answer {
        padding: 0 18px 16px 18px;
        /* Reduced from 20px */
        font-size: 0.9rem;
        /* Reduced from 0.95rem */
    }

    .best-faq-section.best-faq-kt .faq-section-title {
        font-size: 1.15rem;
    }

    .best-faq-section.best-faq-end .faq-section-title {
        font-size: 1.2rem;
    }
}

@media (max-width: 480px) {
    .best-faq-toggle {
        padding: 12px 14px;
    }

    .best-faq-answer {
        padding: 0 14px 14px 14px;
        font-size: 0.85rem;
        /* Reduced from 0.9rem */
    }

    .best-faq-question {
        font-size: 0.9rem;
        /* Reduced from 0.95rem */
    }
}