/* About Us: stat cards. */

/*1. about us card*/
.about-card__wrapper {
    display: grid;
    grid-template-columns: var(--columns-4);
    gap: var(--space-xs);
    width: 100%;
}

@media (max-width: 48rem) {
    .about-card__wrapper {
        grid-template-columns: var(--columns-2);
    }
}

.about-card {
    display: flex;
    align-items: center;
    justify-content: center;
}

.about-card p {
    font-size: var(--text-s);
}

.about-card p span:first-child {
    display: inline-block;
    font-size: var(--text-2xl);
}

/* phones / small tablets: smaller headline + figures so the copy leaves room
   for the Malaysia map below it */
@media (max-width: 48rem) {
    #about-us .section__wrapper > div:first-child p {
        font-size: clamp(1.75rem, 8vw, 2.25rem);
        line-height: 1.15;
    }

    .about-card p span:first-child {
        font-size: clamp(2rem, 8.5vw, 2.75rem);
    }
}

/* small phones: keep the big figures inside their cards */
@media (max-width: 26rem) {
    .about-card {
        min-height: 5rem;
        padding: var(--space-xs);
    }

    .about-card p span:first-child {
        font-size: clamp(2rem, 9.5vw, 2.5rem);
    }

    .about-card p {
        font-size: 0.875rem;
    }
}

/* short laptop screens (e.g. 1366×768, 1440×800 with browser bars): slimmer
   cards and figures so the Malaysia map below keeps its room */
@media (min-width: 48.0625rem) and (max-height: 56rem) {
    .about-card {
        min-height: 0;
        padding: clamp(0.75rem, 2.2vh, 1.25rem) var(--space-s);
    }

    .about-card p span:first-child {
        font-size: clamp(2.25rem, 7.5vh, 4.5rem);
        line-height: 1.05;
    }

    #about-us .section__wrapper > div:first-child p {
        font-size: clamp(2rem, 6.5vh, 3.5rem);
    }
}

/* tablets: the site is scaled up a step, so keep the figures inside their cards */
@media (min-width: 40rem) and (max-width: 86rem) and (pointer: coarse) {
    .about-card p span:first-child {
        font-size: clamp(2rem, 5.2vw, 2.75rem);
    }
}
