﻿/* Eligibility page
   ==================================== */

.elig-container {
    max-width: 1120px;
    margin: 0 auto;
    padding: 0 1rem;
}

.elig-hero {
    position: relative;
    overflow: hidden;
    padding: 4.25rem 1rem 2.75rem;
    text-align: center;
}

.elig-hero-inner {
    max-width: 980px;
    margin: 0 auto;
}

.elig-title {
    margin: 0.6rem 0 0.9rem;
}

.elig-subtitle {
    opacity: 0.92;
    max-width: 860px;
    margin: 0 auto;
}

.elig-hero-actions {
    display: flex;
    gap: 0.85rem;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: 1.35rem;
}

.elig-chipset {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 0.55rem;
}

.elig-chip {
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.70);
    border: 1px solid rgba(0,0,0,0.08);
}

.elig-stats {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 0.9rem;
    margin: 2.15rem auto 0;
    max-width: 980px;
}

@media (max-width: 900px) {
    .elig-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

.elig-stat {
    border-radius: 18px;
    padding: 0.9rem 1rem;
    background: rgba(255,255,255,0.78);
    border: 1px solid rgba(0,0,0,0.06);
    box-shadow: 0 10px 26px rgba(0,0,0,0.05);
    backdrop-filter: blur(10px);
}

.elig-stat-k {
    font-size: 0.82rem;
    opacity: 0.78;
}

.elig-stat-v {
    font-size: 1.1rem;
    font-weight: 700;
    margin-top: 0.15rem;
}

/* Bands */

.elig-band {
    position: relative;
    padding: 2.25rem 0;
}

.elig-band-a {
    background: linear-gradient(to right, rgba(255,255,255,1), rgba(245,245,245,1));
}

.elig-band-b {
    background: #ffffff;
}

/* Glow pop surface */

.elig-card {
    border-radius: 22px;
    padding: 1.25rem 1.25rem;
    border: 1px solid rgba(0,0,0,0.06);
    background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(245,245,245,0.88));
    box-shadow: 0 14px 34px rgba(0,0,0,0.07);
    backdrop-filter: blur(10px);
}

.elig-card-glow {
    position: relative;
    transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

    .elig-card-glow::before {
        content: "";
        position: absolute;
        inset: -2px;
        border-radius: 24px;
        background: radial-gradient(circle at 20% 20%, rgba(187,169,108,0.35), transparent 55%), radial-gradient(circle at 85% 25%, rgba(108,99,255,0.22), transparent 55%), radial-gradient(circle at 50% 90%, rgba(187,169,108,0.18), transparent 60%);
        opacity: 0.55;
        filter: blur(18px);
        pointer-events: none;
        z-index: 0;
    }

    .elig-card-glow > * {
        position: relative;
        z-index: 1;
    }

    .elig-card-glow:hover {
        transform: translateY(-2px);
        box-shadow: 0 18px 44px rgba(0,0,0,0.09);
        border-color: rgba(0,0,0,0.09);
    }

/* Sticky sidebar */

.elig-card-sticky {
    position: sticky;
    top: 92px;
}

@media (max-width: 960px) {
    .elig-card-sticky {
        position: static;
        top: auto;
    }
}

/* Typography helpers */

.elig-card-title {
    margin-bottom: 0.75rem;
}

.elig-mini-title {
    margin-bottom: 0.65rem;
    opacity: 0.88;
}

.elig-muted {
    opacity: 0.82;
}

.elig-divider {
    height: 1px;
    background: rgba(0,0,0,0.08);
    margin: 1.05rem 0;
}

/* Suitability rows */

.elig-suitability {
    display: grid;
    gap: 0.7rem;
}

.elig-s-row {
    display: grid;
    grid-template-columns: 140px 1fr 72px;
    gap: 0.75rem;
    align-items: center;
}

@media (max-width: 520px) {
    .elig-s-row {
        grid-template-columns: 110px 1fr 62px;
    }
}

.elig-s-label {
    font-weight: 600;
    opacity: 0.9;
}

.elig-s-bar {
    padding-top: 2px;
}

.elig-s-value {
    text-align: right;
    font-weight: 700;
    opacity: 0.9;
}

/* Bullets */

.elig-bullet {
    margin: 0.25rem 0;
    opacity: 0.9;
}

/* FAQ */

.elig-faq {
    margin-top: 0.4rem;
}

.elig-faq-panels {
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0,0,0,0.06);
    margin-bottom: 0.75rem;
}

/* CTA */

.elig-cta-stack {
    display: grid;
    gap: 0.75rem;
    margin-top: 1rem;
}

.elig-final-cta {
    padding-top: 0.5rem;
}

/* Cost band pill */
.elig-cost-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.38rem 0.8rem;
    margin-top: 0.4rem;
    border-radius: 999px;
    font-size: 0.78rem;
    font-weight: 600;
    background: linear-gradient(135deg, rgba(187,169,108,0.18), rgba(187,169,108,0.08));
    border: 1px solid rgba(187,169,108,0.45);
    color: #6e5e2a;
    backdrop-filter: blur(6px);
    box-shadow: 0 4px 12px rgba(187,169,108,0.25), inset 0 0 8px rgba(255,255,255,0.4);
}

/* Theme overrides specific to the markdown content */
.mud-typography-h5, .mud-typography-h6 {
    margin-bottom: 1rem !important;
}

/* Render markdown <ul> like a MudBlazor list */
.elig-card .mud-markdown-body ul {
    list-style: none;
    margin: 0.5rem 0 0;
    padding: 0;
}

    .elig-card .mud-markdown-body ul li {
        position: relative;
        margin: 0;
        padding: 0.5rem 0.75rem 0.5rem 2.5rem;
        line-height: 1.5;
        border-radius: 12px;
    }

        .elig-card .mud-markdown-body ul li + li {
            margin-top: 0.25rem;
        }

        /* Avatar/icon slot feel */
        .elig-card .mud-markdown-body ul li::before {
            content: "•";
            position: absolute;
            left: 0.85rem;
            top: 0.55rem;
            width: 1.25rem;
            height: 1.25rem;
            display: grid;
            place-items: center;
            border-radius: 999px;
            font-weight: 700;
            font-size: 1rem;
            color: rgba(0, 0, 0, 0.55);
            background: rgba(0, 0, 0, 0.06);
        }

    /* Nested lists */
    .elig-card .mud-markdown-body ul ul {
        margin-top: 0.35rem;
        margin-left: 0;
    }

        .elig-card .mud-markdown-body ul ul li {
            border-bottom: none;
            padding-left: 2.5rem;
            border-radius: 10px;
        }

            .elig-card .mud-markdown-body ul ul li::before {
                content: "–";
                font-weight: 700;
                background: rgba(0, 0, 0, 0.04);
            }
