/* ============================================================
   Homepage — Assessment Impact & Statistics
   ============================================================ */

.statistics-section {
    --stats-pad-y: clamp(2.5rem, 5vw, 4rem);
    --stats-pad-x: clamp(0.85rem, 3vw, 1.5rem);
    --stats-gap: clamp(0.75rem, 2vw, 1.25rem);
    position: relative;
    padding: var(--stats-pad-y) 0;
    background: linear-gradient(145deg, var(--govt-navy-dark, #072a57) 0%, var(--govt-navy, #0b3d7c) 55%, var(--govt-navy-light, #0e4a94) 100%);
    color: #fff;
    overflow: hidden;
}

.statistics-section::before,
.statistics-section::after {
    content: "";
    position: absolute;
    border-radius: 50%;
    pointer-events: none;
}

.statistics-section::before {
    width: min(520px, 70vw);
    height: min(520px, 70vw);
    top: -35%;
    right: -12%;
    background: radial-gradient(circle, rgba(255, 255, 255, 0.09) 0%, transparent 68%);
}

.statistics-section::after {
    width: min(380px, 55vw);
    height: min(380px, 55vw);
    bottom: -30%;
    left: -10%;
    background: radial-gradient(circle, rgba(232, 133, 12, 0.12) 0%, transparent 70%);
}

.stats-container {
    position: relative;
    z-index: 1;
    width: 100%;
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 var(--stats-pad-x);
    box-sizing: border-box;
}

.stats-header {
    text-align: center;
    max-width: 44rem;
    margin: 0 auto clamp(1.5rem, 3vw, 2.25rem);
}

.stats-header .section-eyebrow.on-dark {
    margin-bottom: 0.55rem;
}

.stats-title {
    margin: 0 0 0.5rem;
    font-size: clamp(1.4rem, 1.5vw + 0.95rem, 2.1rem);
    font-weight: 800;
    color: #fff;
    line-height: 1.2;
    letter-spacing: -0.02em;
}

.stats-subtitle {
    margin: 0;
    font-size: clamp(0.86rem, 0.45vw + 0.72rem, 1.02rem);
    color: rgba(255, 255, 255, 0.88);
    line-height: 1.5;
}

/* No red underline bar on dark stats title */
.statistics-section .section-title::after,
.stats-title::after {
    display: none !important;
    content: none !important;
}

.statistics-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: var(--stats-gap);
    margin: 0;
    padding: 0;
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: clamp(9rem, 16vw, 11rem);
    padding: clamp(1.1rem, 2vw, 1.5rem) clamp(0.75rem, 1.5vw, 1rem);
    background: rgba(255, 255, 255, 0.09);
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 14px;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
    transition: transform 0.22s ease, background 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.stat-item:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.28);
    box-shadow: 0 14px 32px rgba(0, 0, 0, 0.18);
}

.stat-item__icon {
    width: clamp(2.35rem, 4vw, 2.75rem);
    height: clamp(2.35rem, 4vw, 2.75rem);
    margin-bottom: 0.65rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.12);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: var(--govt-saffron, #e8850c);
    font-size: clamp(0.95rem, 1.5vw, 1.15rem);
    flex-shrink: 0;
}

.statistics-section .stat-number {
    display: block;
    margin: 0 0 0.35rem;
    font-size: clamp(1.65rem, 2.8vw + 0.85rem, 2.75rem) !important;
    font-weight: 800;
    color: #fff !important;
    line-height: 1.1;
    letter-spacing: -0.02em;
    font-variant-numeric: tabular-nums;
}

.statistics-section .stat-label {
    margin: 0;
    font-size: clamp(0.78rem, 0.4vw + 0.68rem, 0.95rem);
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    line-height: 1.35;
    max-width: 12rem;
}

/* Tablet — 2×2 grid */
@media (max-width: 991px) {
    .statistics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Mobile — 2 columns, tighter cards */
@media (max-width: 575px) {
    .statistics-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 0.65rem;
    }

    .stat-item {
        min-height: 8.25rem;
        padding: 0.9rem 0.55rem;
        border-radius: 12px;
    }

    .stat-item__icon {
        width: 2.1rem;
        height: 2.1rem;
        margin-bottom: 0.5rem;
        font-size: 0.85rem;
    }

    .statistics-section .stat-number {
        font-size: clamp(1.35rem, 5vw, 1.75rem) !important;
    }

    .statistics-section .stat-label {
        font-size: 0.72rem;
        max-width: none;
    }
}

@media (max-width: 380px) {
    .statistics-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        min-height: auto;
        flex-direction: row;
        align-items: center;
        text-align: left;
        gap: 0.85rem;
        padding: 0.85rem 1rem;
    }

    .stat-item__icon {
        margin: 0;
    }

    .stat-item__body {
        flex: 1;
        min-width: 0;
    }

    .statistics-section .stat-number {
        margin-bottom: 0.15rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .stat-item {
        transition: none;
    }

    .stat-item:hover {
        transform: none;
    }
}
