/* ============================================================
 * FutureLearn — Stat strip
 * Version: v1.1.0
 * ============================================================ */

.stats-strip {
    position: relative;
    overflow: hidden;
    padding-block: 1.25rem 3.25rem;
    background-color: var(--white);
}

.stats-strip__inner {
    position: relative;
}

.stats-strip__title {
    max-width: 52rem;
    margin: 0 auto 2rem;
    font-family: var(--font-display);
    font-size: clamp(1.65rem, 4.5vw, 2.5rem);
    font-weight: 700;
    line-height: 1.25;
    text-align: center;
    color: var(--primary-blue-1);
    text-wrap: balance;
}

.stats-strip__list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2.5rem 1rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.stats-strip__item {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.stats-strip__item:nth-child(odd)::after {
    content: "";
    position: absolute;
    top: 0.75rem;
    right: -0.5rem;
    width: 1px;
    height: calc(100% - 1.5rem);
    background-color: rgba(113, 206, 255, 0.45);
}

.stats-strip__icon {
    position: relative;
    z-index: 1;
    display: inline-grid;
    width: 4rem;
    height: 4rem;
    place-items: center;
    margin-bottom: 0.9rem;
    border: 1px solid var(--secondary-cyan);
    border-radius: 50%;
    color: var(--primary-blue-1);
    background-color: var(--white);
    box-shadow: 0 8px 24px rgba(0, 125, 211, 0.1);
}

.stats-strip__icon::after {
    content: "";
    position: absolute;
    inset: 0.35rem;
    z-index: -1;
    border-radius: inherit;
    background-color: var(--secondary-cyan-light);
}

.stats-strip__icon i {
    font-size: 1.35rem;
}

.stats-strip__icon--highlight {
    border-color: var(--accent-orange);
    color: var(--accent-orange);
}

.stats-strip__icon--highlight::after {
    background-color: rgba(255, 138, 0, 0.1);
}

.stats-strip__value {
    margin: 0;
    font-family: var(--font-display);
    font-size: clamp(1.8rem, 7vw, 2.15rem);
    font-weight: 700;
    line-height: 1.1;
    color: var(--primary-blue-1);
    font-variant-numeric: tabular-nums;
}

.stats-strip__label {
    max-width: 13.5rem;
    margin: 0.55rem auto 0;
    font-size: 0.95rem;
    font-weight: 500;
    line-height: 1.4;
    color: var(--natural-black-2);
}

@media (min-width: 768px) {
    .stats-strip {
        padding-block: 1.5rem 4rem;
    }

    .stats-strip__title {
        margin-bottom: 2.5rem;
    }

    .stats-strip__list {
        position: relative;
        grid-template-columns: repeat(4, minmax(0, 1fr));
        gap: 0;
    }

    .stats-strip__list::before {
        content: "";
        position: absolute;
        top: 2.35rem;
        right: 12.5%;
        left: 12.5%;
        height: 1px;
        background: linear-gradient(
            90deg,
            var(--secondary-cyan),
            var(--primary-blue-1) 50%,
            var(--accent-orange)
        );
    }

    .stats-strip__item {
        padding-inline: 1rem;
    }

    .stats-strip__item:nth-child(odd)::after {
        content: none;
    }

    .stats-strip__icon {
        width: 4.75rem;
        height: 4.75rem;
        margin-bottom: 1.1rem;
    }

    .stats-strip__icon i {
        font-size: 1.6rem;
    }

    .stats-strip__label {
        font-size: 1rem;
    }
}

@media (min-width: 1200px) {
    .stats-strip__item {
        padding-inline: 2rem;
    }

    .stats-strip__value {
        font-size: 2rem;
    }
}
