/**
 * FAQ page — matches instructors/courses brand (green)
 */

.faq-hero {
    background:
        linear-gradient(135deg,
            rgba(15, 83, 45, 0.94) 0%,
            rgba(40, 199, 111, 0.82) 50%,
            rgba(30, 64, 110, 0.88) 100%),
        var(--faq-hero-image, url('https://images.unsplash.com/photo-1434030216411-0b793f4b4173?w=1920&q=80')) center/cover no-repeat;
    color: #fff;
    padding: 4.5rem 0 3.75rem;
    position: relative;
    overflow: hidden;
}

.faq-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 70% 55% at 50% 25%, rgba(255, 255, 255, 0.1) 0%, transparent 60%);
    pointer-events: none;
}

.faq-hero .container {
    position: relative;
    z-index: 1;
    text-align: center;
}

.faq-breadcrumb {
    margin-bottom: 1rem;
}

.faq-breadcrumb .breadcrumb {
    justify-content: center;
    background: transparent;
    padding: 0;
    margin: 0;
}

.faq-breadcrumb .breadcrumb-item a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
}

.faq-breadcrumb .breadcrumb-item a:hover {
    color: #fff;
    text-decoration: underline;
}

.faq-breadcrumb .breadcrumb-item.active {
    color: rgba(255, 255, 255, 0.85);
}

.faq-breadcrumb .breadcrumb-item + .breadcrumb-item::before {
    color: rgba(255, 255, 255, 0.55);
}

.faq-hero-kicker {
    display: inline-block;
    margin: 0 0 0.75rem;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, 0.92);
}

.faq-hero-title {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: clamp(1.85rem, 4.5vw, 2.75rem);
    font-weight: 700;
    margin: 0 0 0.75rem;
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.2);
}

.faq-hero-desc {
    margin: 0 auto;
    max-width: 34rem;
    font-size: 1.08rem;
    line-height: 1.55;
    color: rgba(255, 255, 255, 0.92);
}

.faq-content {
    padding: 3.25rem 0 4.5rem;
    background:
        radial-gradient(ellipse 80% 50% at 50% 0%, rgba(40, 199, 111, 0.08), transparent 55%),
        linear-gradient(180deg, #f8fafc 0%, #eef7f2 100%);
}

.faq-accordion {
    --bs-accordion-border-width: 0;
    --bs-accordion-btn-focus-box-shadow: none;
}

.faq-item {
    background: #fff;
    border: 1px solid rgba(15, 83, 45, 0.08) !important;
    border-radius: 14px !important;
    margin-bottom: 0.85rem;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.04);
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.faq-item:hover {
    border-color: rgba(40, 199, 111, 0.28) !important;
    box-shadow: 0 12px 28px rgba(15, 83, 45, 0.08);
}

.faq-button {
    gap: 0.85rem;
    padding: 1.05rem 1.2rem;
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-weight: 650;
    font-size: 1.02rem;
    color: #0f172a;
    background: #fff !important;
    box-shadow: none !important;
}

.faq-button:not(.collapsed) {
    color: #0f532d;
    background: rgba(40, 199, 111, 0.1) !important;
}

.faq-button::after {
    margin-left: 0.5rem;
    background-size: 1.05rem;
    filter: none;
}

.faq-button-icon {
    flex-shrink: 0;
    width: 2.35rem;
    height: 2.35rem;
    border-radius: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(40, 199, 111, 0.12);
    color: #28c76f;
    font-size: 1.1rem;
}

.faq-button:not(.collapsed) .faq-button-icon {
    background: #28c76f;
    color: #fff;
}

.faq-button-text {
    flex: 1;
    text-align: left;
    line-height: 1.35;
}

.faq-body {
    padding: 0 1.2rem 1.2rem 4.4rem;
    color: #475569;
    line-height: 1.65;
    font-size: 0.98rem;
}

.faq-help {
    margin-top: 2.25rem;
    padding: 1.75rem 1.5rem;
    border-radius: 16px;
    background:
        linear-gradient(135deg, rgba(15, 83, 45, 0.95), rgba(40, 199, 111, 0.88));
    color: #fff;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 1.25rem;
    box-shadow: 0 16px 40px rgba(15, 83, 45, 0.2);
}

.faq-help-title {
    font-family: 'Plus Jakarta Sans', 'Poppins', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin: 0 0 0.35rem;
}

.faq-help-text {
    margin: 0;
    max-width: 28rem;
    color: rgba(255, 255, 255, 0.92);
    font-size: 0.95rem;
    line-height: 1.5;
}

.faq-help-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.faq-help-btn,
.faq-help-btn-outline {
    border-radius: 999px;
    font-weight: 650;
    padding: 0.65rem 1.25rem;
}

.faq-help-btn {
    background: #fff;
    color: #0f532d;
    border: none;
}

.faq-help-btn:hover {
    background: #f0fdf4;
    color: #0f532d;
}

.faq-help-btn-outline {
    background: transparent;
    color: #fff;
    border: 1.5px solid rgba(255, 255, 255, 0.75);
}

.faq-help-btn-outline:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    border-color: #fff;
}

@media (max-width: 575.98px) {
    .faq-hero {
        padding: 3.5rem 0 3rem;
    }

    .faq-body {
        padding-left: 1.2rem;
    }

    .faq-help {
        text-align: center;
        justify-content: center;
    }

    .faq-help-actions {
        width: 100%;
        justify-content: center;
    }
}

[data-bs-theme="dark"] .faq-content {
    background: linear-gradient(180deg, #0f172a 0%, #14532d 140%);
}

[data-bs-theme="dark"] .faq-item {
    background: rgba(30, 41, 59, 0.9);
    border-color: rgba(255, 255, 255, 0.08) !important;
}

[data-bs-theme="dark"] .faq-button {
    background: transparent !important;
    color: #f1f5f9;
}

[data-bs-theme="dark"] .faq-button:not(.collapsed) {
    background: rgba(40, 199, 111, 0.18) !important;
    color: #86efac;
}

[data-bs-theme="dark"] .faq-body {
    color: #cbd5e1;
}
