/* ==========================================================
   MERITZA CLASSES
   HOME - STATS
   Version : 1.0.0
========================================================== */


/* ==========================================================
   STATS SECTION
========================================================== */

.mc-home-stats {
    position: relative;

    padding-top: 0;
    padding-bottom: 0;
}


/* ==========================================================
   STATS CARD
========================================================== */

.mc-stats-card {

    display: grid;

    grid-template-columns:
        repeat(4, minmax(0, 1fr));

    width: 100%;

    max-width: 1080px;

    margin:
        0 auto;

    overflow: hidden;

    border-radius:
        18px;

    background:
        linear-gradient(
            135deg,
            #0A1946 0%,
            #10265B 52%,
            #12376A 100%
        );

    border:
        1px solid
        rgba(212,175,55,.30);

    box-shadow:
        0 12px 32px
        rgba(10,25,70,.12);

}


/* ==========================================================
   INDIVIDUAL STAT
========================================================== */

.mc-stats-card .mc-stat-item {

    position: relative;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    min-height: 92px;

    padding:
        16px 18px;

    text-align: center;

}


/* ==========================================================
   VERTICAL DIVIDERS
========================================================== */

.mc-stats-card .mc-stat-item + .mc-stat-item::before {

    content: "";

    position: absolute;

    left: 0;

    top: 22%;

    width: 1px;

    height: 56%;

    background:
        rgba(255,255,255,.16);

}


/* ==========================================================
   STAT NUMBER
========================================================== */

.mc-stats-card .mc-stat-item strong {

    display: block;

    margin: 0;

    color:
        #D4AF37;

    font-size:
        1.55rem;

    font-weight:
        800;

    line-height:
        1.05;

    letter-spacing:
        -.3px;

}


/* ==========================================================
   STAT LABEL
========================================================== */

.mc-stats-card .mc-stat-item span {

    display: block;

    margin-top:
        6px;

    color:
        rgba(255,255,255,.86);

    font-size:
        .70rem;

    font-weight:
        600;

    line-height:
        1.3;

}


/* ==========================================================
   SUBTLE HOVER
========================================================== */

.mc-stats-card .mc-stat-item {

    transition:
        background .25s ease;

}


.mc-stats-card .mc-stat-item:hover {

    background:
        rgba(255,255,255,.035);

}

/* ==========================================================
   TABLET
========================================================== */

@media (max-width: 991.98px) {

    .mc-home-stats {

        padding-top:
            18px;

        padding-bottom:
            18px;

    }


    .mc-stats-card {

        max-width:
            900px;

    }


    .mc-stats-card .mc-stat-item {

        min-height:
            86px;

        padding:
            14px 12px;

    }


    .mc-stats-card .mc-stat-item strong {

        font-size:
            1.35rem;

    }


    .mc-stats-card .mc-stat-item span {

        font-size:
            .64rem;

    }

}


/* ==========================================================
   MOBILE
========================================================== */

@media (max-width: 767.98px) {

    .mc-home-stats {

        padding-top:
            14px;

        padding-bottom:
            14px;

    }


    .mc-stats-card {

        grid-template-columns:
            repeat(2, minmax(0, 1fr));

        border-radius:
            15px;

    }


    .mc-stats-card .mc-stat-item {

        min-height:
            76px;

        padding:
            12px 8px;

    }


    .mc-stats-card .mc-stat-item strong {

        font-size:
            1.15rem;

    }


    .mc-stats-card .mc-stat-item span {

        max-width:
            120px;

        margin-top:
            4px;

        font-size:
            .59rem;

    }


    /* ----------------------------------------------
       Mobile horizontal separators
    ---------------------------------------------- */

    .mc-stats-card
    .mc-stat-item:nth-child(3)::before,
    .mc-stats-card
    .mc-stat-item:nth-child(4)::before {

        top:
            0;

        left:
            0;

        width:
            100%;

        height:
            1px;

    }


    /* ----------------------------------------------
       Prevent vertical divider on second column
       when it is a new row
    ---------------------------------------------- */

    .mc-stats-card
    .mc-stat-item:nth-child(3)::before,
    .mc-stats-card
    .mc-stat-item:nth-child(4)::before {

        background:
            rgba(255,255,255,.14);

    }

}