/* =====================================================
   ALMOALLAM STATS
===================================================== */

.almoallam-stats {
    position: relative;

    width: 100%;

    padding: 45px 0 50px;

    overflow: visible;
}


/* =====================================================
   STATS GRID
===================================================== */

.almoallam-stats-grid {
    display: flex;

    align-items: flex-start;
    justify-content: center;

    width: 100%;

    margin: 0 auto;
}


.almoallam-stat {
    flex: 0 1 200px;

    width: 200px;
    max-width: 200px;
    min-width: 0;

    text-align: center;
}


/* =====================================================
   NUMBER
===================================================== */

.almoallam-stat-number {
    display: flex;

    justify-content: center;
    align-items: center;
    min-height: 40px;
    font-size: 45px;
    font-family: var(--wd-alternative-font);
    line-height: 1;
    color: #df6c27;
    white-space: nowrap;
}

.almoallam-stat-animated-number {
    display: inline-flex;

    align-items: center;
}


/* =====================================================
   ROLLING DIGIT
===================================================== */

.almoallam-rolling-digit {
    position: relative;

    display: inline-block;

    width: 0.62em;
    height: 1em;

    overflow: hidden;
}

.almoallam-rolling-track {
    display: flex;

    flex-direction: column;

    transform: translateY(0);

    transition-property: transform;

    transition-duration: 1.8s;

    transition-timing-function: cubic-bezier(
        0.16,
        1,
        0.3,
        1
    );

    will-change: transform;
}

.almoallam-rolling-number {
    display: flex;

    align-items: center;
    justify-content: center;

    width: 0.62em;
    height: 1em;

    line-height: 1;

    flex: 0 0 1em;
}


/* =====================================================
   NUMBER SEPARATOR
===================================================== */

.almoallam-number-separator {
    display: inline-block;

    width: 0.28em;

    text-align: center;
}


/* =====================================================
   SUFFIX
===================================================== */

.almoallam-stat-suffix {
    display: inline-block;

    margin-left: 2px;
}


/* =====================================================
   LABEL
===================================================== */

.almoallam-stat-label {
    margin-top: 44px;
    padding: 0 10px;
    font-size: 18px;
    font-weight: 400;
    line-height: 1.4;
    color: #414042;
}


/* =====================================================
   FULL SCREEN DIVIDER
===================================================== */

.almoallam-stats-divider {
    position: absolute;

    top: 106px;
    left: 50%;

    width: 100vw;
    height: 2px;

    margin: 0;

    transform: translateX(-50%);

    background: #f4a51c;

    pointer-events: none;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 991px) and (min-width: 768px) {

    .almoallam-stats {
        padding: 40px 0 45px;
    }

    .almoallam-stat-number {
        min-height: 34px;

        font-size: 34px;
    }

    .almoallam-stat-label {
        margin-top: 40px;

        padding: 0 6px;

        font-size: 15px;
        line-height: 1.35;
    }

    .almoallam-stats-divider {
        top: 96px;
    }

}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 767px) {

    .almoallam-stats {
        padding: 10px 0px 40px;
    }


    /* -------------------------------------------------
       2 COLUMNS
    ------------------------------------------------- */

    .almoallam-stats-grid {
        display: grid !important;

        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;

        width: 100%;

        column-gap: 20px;
        row-gap: 35px;

        justify-content: initial;
        align-items: start;
    }


    /* -------------------------------------------------
       STAT
    ------------------------------------------------- */

    .almoallam-stat {
        display: flex;

        flex-direction: column;

        align-items: center;
        justify-content: flex-start;

        width: 100% !important;
        max-width: none !important;
        min-width: 0;

        flex: none;

        text-align: center;
    }


    /* -------------------------------------------------
       NUMBER
    ------------------------------------------------- */

    .almoallam-stat-number {
        min-height: 32px;

        font-size: 32px;
    }


    /* -------------------------------------------------
       LABEL
    ------------------------------------------------- */

    .almoallam-stat-label {
        margin-top: 10px;

        padding: 0 5px;

        font-size: 15px;
        line-height: 1.3;
    }


    /* -------------------------------------------------
       DESKTOP LINE OFF
    ------------------------------------------------- */

    .almoallam-stats-divider {
        display: none;
    }

}

/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 400px) {

    .almoallam-stats-grid {
        column-gap: 12px;
        row-gap: 30px;
    }

    .almoallam-stat-number {
        font-size: 29px;
    }

    .almoallam-stat-label {
        font-size: 14px;
    }

}


/* =====================================================
   REDUCED MOTION
===================================================== */

@media (prefers-reduced-motion: reduce) {

    .almoallam-rolling-track {
        transition-duration: 0.01ms;
    }

}