/* FAQ hero */
.faq-hero {
    position: relative;
    min-height: 620px;
    display: flex;
    align-items: center;
    overflow: hidden;
    background:
        linear-gradient(
            90deg,
            rgba(255, 255, 255, 0.96) 0%,
            rgba(255, 255, 255, 0.90) 34%,
            rgba(255, 255, 255, 0.62) 52%,
            rgba(255, 255, 255, 0.08) 76%
        ),
        url('../images/medicare-faq-hero.webp') 72% center / cover no-repeat;
}

/* FAQ hero divider */
.faq-hero::after {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    height: 5px;
    content: "";
    background: linear-gradient(
        90deg,
        var(--color-primary),
        var(--color-secondary),
        var(--color-accent)
    );
}

/* FAQ hero content */
.faq-hero-content {
    position: relative;
    z-index: 1;
    max-width: 680px;
    padding-block: 5rem;
    transform: translateY(-45px);
}

/* FAQ hero heading */
.faq-hero-content h1 {
    max-width: 720px;
    margin-bottom: 1.5rem;
    color: var(--color-heading);
    font-size: clamp(2.75rem, 4.5vw, 4.5rem);
    line-height: 1.05;
}

/* FAQ hero text */
.faq-hero-text {
    max-width: 640px;
    margin-bottom: 0;
    color: var(--color-text-light);
    font-size: 1.15rem;
    line-height: 1.75;
}

/* FAQ hero CTA */
.faq-hero-content .cta-group {
    margin-top: 1.75rem;
}


/* FAQ introduction */
.faq-intro {
    background:
        radial-gradient(
            circle at top right,
            rgba(233, 168, 37, 0.05),
            transparent 28%
        ),
        var(--color-white);
}

/* FAQ introduction content */
.faq-intro-inner {
    max-width: 820px;
    margin-inline: auto;
    text-align: center;
}

/* FAQ introduction heading */
.faq-intro-inner h2 {
    max-width: 720px;
    margin-right: auto;
    margin-left: auto;
    color: var(--color-heading);
}

/* FAQ introduction text */
.faq-intro-inner > p {
    max-width: 700px;
    margin-right: auto;
    margin-left: auto;
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.8;
}


/* FAQ main area */
.faq-main {
    position: relative;
    overflow: visible;
    background:
        radial-gradient(
            circle at top left,
            rgba(11, 95, 165, 0.06),
            transparent 32%
        ),
        linear-gradient(
            135deg,
            rgba(11, 95, 165, 0.03),
            rgba(22, 125, 141, 0.035)
        ),
        var(--color-light);
}

/* FAQ layout */
.faq-layout {
    display: grid;
    grid-template-columns: 0.34fr 0.66fr;
    gap: 4rem;
    align-items: start;
}

/* FAQ sidebar */
.faq-sidebar {
    position: sticky;
    top: 8rem;
    overflow: hidden;
    padding: 2rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-large);
    box-shadow: var(--shadow-small);
}

/* FAQ sidebar accent */
.faq-sidebar::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: linear-gradient(
        90deg,
        var(--color-primary),
        var(--color-secondary),
        var(--color-accent)
    );
}

/* FAQ sidebar heading */
.faq-sidebar h2 {
    margin-bottom: 1rem;
    color: var(--color-heading);
    font-size: 1.6rem;
}

/* FAQ sidebar text */
.faq-sidebar > p:not(.eyebrow) {
    color: var(--color-text-light);
    line-height: 1.7;
}

/* FAQ sidebar links */
.faq-sidebar-links {
    display: grid;
    gap: 0.5rem;
    margin-top: 1.5rem;
}

/* FAQ sidebar link */
.faq-sidebar-links a {
    position: relative;
    overflow: hidden;
    padding: 0.85rem 1rem 0.85rem 1.15rem;
    color: var(--color-heading);
    background:
        linear-gradient(
            90deg,
            rgba(11, 95, 165, 0.04),
            rgba(22, 125, 141, 0.025)
        ),
        var(--color-light);
    border: 1px solid rgba(11, 95, 165, 0.08);
    border-radius: var(--border-radius);
    font-weight: 700;
    transition:
        color var(--transition),
        background var(--transition),
        border-color var(--transition),
        transform var(--transition);
}

/* FAQ sidebar link accent */
.faq-sidebar-links a::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 3px;
    content: "";
    background: linear-gradient(
        180deg,
        var(--color-primary),
        var(--color-secondary),
        var(--color-accent)
    );
}

/* FAQ sidebar hover */
.faq-sidebar-links a:hover {
    color: var(--color-primary);
    background: rgba(11, 95, 165, 0.07);
    border-color: rgba(11, 95, 165, 0.16);
    transform: translateX(3px);
}


/* FAQ category */
.faq-category {
    margin-bottom: 4rem;
    scroll-margin-top: 8rem;
}

/* FAQ category heading */
.faq-category-heading {
    margin-bottom: 1.5rem;
}

/* FAQ category title */
.faq-category-heading h2 {
    margin-bottom: 0;
    color: var(--color-heading);
}


/* FAQ item */
.faq-item {
    position: relative;
    overflow: hidden;
    margin-bottom: 1rem;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
    box-shadow: var(--shadow-small);
    transition:
        border-color var(--transition),
        box-shadow var(--transition),
        transform var(--transition);
}

/* FAQ item accent */
.faq-item::before {
    position: absolute;
    top: 0;
    bottom: 0;
    left: 0;
    width: 4px;
    content: "";
    background: linear-gradient(
        180deg,
        var(--color-primary),
        var(--color-secondary),
        var(--color-accent)
    );
    opacity: 0.7;
}

/* FAQ item hover */
.faq-item:hover {
    border-color: rgba(22, 125, 141, 0.22);
    box-shadow: var(--shadow-medium);
    transform: translateY(-1px);
}

/* FAQ question */
.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    width: 100%;
    padding: 1.25rem 1.4rem 1.25rem 1.55rem;
    color: var(--color-heading);
    background: transparent;
    border: 0;
    cursor: pointer;
    font: inherit;
    font-size: 1.05rem;
    font-weight: 700;
    text-align: left;
    transition:
        color var(--transition),
        background var(--transition);
}

/* FAQ question hover */
.faq-question:hover {
    color: var(--color-primary);
    background:
        linear-gradient(
            90deg,
            rgba(11, 95, 165, 0.035),
            rgba(22, 125, 141, 0.02)
        );
}

/* FAQ expanded question */
.faq-question[aria-expanded="true"] {
    color: var(--color-primary);
    background:
        linear-gradient(
            90deg,
            rgba(11, 95, 165, 0.055),
            rgba(22, 125, 141, 0.03)
        );
}

/* FAQ icon */
.faq-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    flex-shrink: 0;
    color: var(--color-white);
    background: linear-gradient(
        135deg,
        var(--color-primary),
        var(--color-secondary)
    );
    border-radius: 50%;
    box-shadow: 0 4px 10px rgba(11, 95, 165, 0.14);
    transition: transform var(--transition);
}

/* FAQ expanded icon */
.faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(45deg);
}

/* FAQ answer */
.faq-answer {
    padding: 0 1.4rem 1.4rem 1.55rem;
}

/* FAQ answer text */
.faq-answer p {
    margin-bottom: 0;
    color: var(--color-text-light);
    line-height: 1.75;
}

/* FAQ answer links */
.faq-answer a {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    margin-top: 1rem;
    color: var(--color-primary);
    font-weight: 700;
}

/* FAQ answer link hover */
.faq-answer a:hover {
    color: var(--color-secondary);
}


/* FAQ CTA */
.faq-cta {
    position: relative;
    overflow: hidden;
    text-align: center;
    background:
        radial-gradient(
            circle at bottom right,
            rgba(233, 168, 37, 0.06),
            transparent 28%
        ),
        linear-gradient(
            135deg,
            rgba(11, 95, 165, 0.045),
            rgba(22, 125, 141, 0.05)
        ),
        var(--color-white);
}

/* FAQ CTA divider */
.faq-cta::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 4px;
    content: "";
    background: linear-gradient(
        90deg,
        var(--color-primary),
        var(--color-secondary),
        var(--color-accent)
    );
}

/* FAQ CTA content */
.faq-cta-inner {
    position: relative;
    z-index: 1;
    max-width: 800px;
    margin-inline: auto;
}

/* FAQ CTA icon */
.faq-cta-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    color: var(--color-white);
    background: linear-gradient(
        135deg,
        var(--color-primary),
        var(--color-secondary)
    );
    border: 3px solid rgba(233, 168, 37, 0.5);
    border-radius: 50%;
    box-shadow: 0 6px 16px rgba(11, 95, 165, 0.16);
    font-size: 1.7rem;
}

/* FAQ CTA heading */
.faq-cta-inner h2 {
    color: var(--color-heading);
}

/* FAQ CTA text */
.faq-cta-inner > p:not(.eyebrow) {
    max-width: 650px;
    margin-right: auto;
    margin-left: auto;
    color: var(--color-text-light);
    font-size: 1.05rem;
    line-height: 1.75;
}

/* FAQ CTA buttons */
.faq-cta-inner .cta-group {
    justify-content: center;
    margin-top: 2rem;
}


/* Tablet FAQ */
@media (max-width: 900px) {

    .faq-hero {
        min-height: 560px;
    }

    .faq-hero-content {
        transform: translateY(-30px);
    }

    .faq-layout {
        grid-template-columns: 1fr;
        gap: 2.5rem;
    }

    .faq-sidebar {
        position: static;
    }

    .faq-sidebar-links {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}


/* Mobile FAQ */
@media (max-width: 600px) {

    .faq-hero {
        min-height: auto;
        align-items: flex-end;
        background:
            linear-gradient(
                180deg,
                rgba(255, 255, 255, 0.12) 0%,
                rgba(255, 255, 255, 0.72) 40%,
                rgba(255, 255, 255, 0.98) 70%,
                rgba(255, 255, 255, 1) 100%
            ),
            url('../images/medicare-faq-hero-mobile.webp') 72% top / cover no-repeat;
    }

    .faq-hero-content {
        padding-top: 15rem;
        padding-bottom: 3rem;
        transform: none;
    }

    .faq-hero-content h1 {
        font-size: clamp(2.3rem, 10vw, 3.25rem);
    }

    .faq-hero-text {
        font-size: 1.05rem;
    }

    .faq-hero-content .cta-group {
        width: 100%;
    }

    .faq-hero-content .btn {
        width: 100%;
    }

    .faq-sidebar {
        padding: 1.5rem;
    }

    .faq-sidebar-links {
        grid-template-columns: 1fr;
    }

    .faq-sidebar-links a:hover {
        transform: none;
    }

    .faq-item:hover {
        transform: none;
    }

    .faq-question {
        padding: 1.1rem 1.1rem 1.1rem 1.35rem;
        font-size: 1rem;
    }

    .faq-answer {
        padding: 0 1.1rem 1.1rem 1.35rem;
    }

    .faq-cta-inner .cta-group {
        width: 100%;
    }

    .faq-cta-inner .btn {
        width: 100%;
    }
}


/* Small mobile */
@media (max-width: 420px) {

    .faq-hero-content {
        padding-top: 13rem;
    }

    .faq-sidebar {
        padding: 1.25rem;
    }

    .faq-question {
        gap: 1rem;
    }
}


/* Reduced motion */
@media (prefers-reduced-motion: reduce) {

    .faq-item,
    .faq-sidebar-links a,
    .faq-icon {
        transition: none;
    }

    .faq-item:hover,
    .faq-sidebar-links a:hover {
        transform: none;
    }
}

