/*==========================================================
KWARA STATE MINISTRY OF LIVESTOCK DEVELOPMENT
STATISTICS SECTION
File: assets/css/statistics.css
==========================================================*/



/*==========================================================
STATISTICS SECTION
==========================================================*/

.statistics-section{

    position:relative;

    padding:110px 0;

    background:linear-gradient(
        135deg,
        var(--primary-dark),
        var(--primary)
    );

    overflow:hidden;

}



/*==========================================================
BACKGROUND DECORATION
==========================================================*/

.statistics-section::before{

    content:"";

    position:absolute;

    top:-180px;

    right:-180px;

    width:450px;

    height:450px;

    border-radius:50%;

    background:rgba(255,255,255,.05);

}

.statistics-section::after{

    content:"";

    position:absolute;

    bottom:-150px;

    left:-150px;

    width:320px;

    height:320px;

    border-radius:50%;

    background:rgba(255,255,255,.04);

}



/*==========================================================
SECTION HEADER
==========================================================*/

.statistics-section .section-header{

    text-align:center;

    max-width:720px;

    margin:0 auto 70px;

}

.statistics-section .section-label{

    color:var(--secondary-light);

}

.statistics-section .section-title{

    color:var(--white);

}

.statistics-section .section-description{

    color:rgba(255,255,255,.85);

}



/*==========================================================
STATISTIC CARD
==========================================================*/

.stat-card{

    position:relative;

    background:rgba(255,255,255,.10);

    backdrop-filter:blur(12px);

    border:1px solid rgba(255,255,255,.15);

    border-radius:var(--radius-lg);

    padding:40px 30px;

    text-align:center;

    height:100%;

    transition:var(--transition);

}

.stat-card:hover{

    transform:translateY(-8px);

    background:rgba(255,255,255,.18);

    box-shadow:var(--shadow-lg);

}

/*==========================================================
STATISTIC ICON
==========================================================*/

.stat-icon{

    width:85px;

    height:85px;

    margin:0 auto 25px;

    display:flex;

    align-items:center;

    justify-content:center;

    border-radius:50%;

    background:rgba(255,255,255,.15);

    color:var(--secondary);

    font-size:36px;

    transition:var(--transition);

}

.stat-card:hover .stat-icon{

    background:var(--secondary);

    color:var(--white);

    transform:rotateY(180deg);

}



/*==========================================================
COUNTER
==========================================================*/

.counter{

    display:block;

    font-family:var(--font-heading);

    font-size:54px;

    font-weight:800;

    line-height:1;

    color:var(--white);

    margin-bottom:10px;

}



/*==========================================================
COUNTER SYMBOL
==========================================================*/

.counter-symbol{

    display:inline-block;

    font-size:28px;

    font-weight:700;

    color:var(--secondary);

    margin-left:4px;

}



/*==========================================================
TITLE
==========================================================*/

.stat-title{

    font-size:18px;

    font-weight:700;

    color:var(--white);

    margin-bottom:15px;

}



/*==========================================================
DESCRIPTION
==========================================================*/

.stat-description{

    font-size:15px;

    line-height:1.8;

    color:rgba(255,255,255,.82);

    margin:0;

}



/*==========================================================
DECORATIVE DIVIDER
==========================================================*/

.stat-divider{

    width:55px;

    height:4px;

    margin:18px auto 22px;

    border-radius:50px;

    background:var(--secondary);

}



/*==========================================================
HOVER EFFECT
==========================================================*/

.stat-card:hover{

    border-color:rgba(212,175,55,.40);

}

.stat-card:hover .counter{

    color:#FFF7D6;

}



/*==========================================================
CARD ANIMATION
==========================================================*/

.stat-card{

    animation:statFade .6s ease both;

}

@keyframes statFade{

    from{

        opacity:0;

        transform:translateY(30px);

    }

    to{

        opacity:1;

        transform:translateY(0);

    }

}

/*==========================================================
GRID SPACING
==========================================================*/

.statistics-section .row{

    row-gap:30px;

}



/*==========================================================
CARD BORDER EFFECT
==========================================================*/

.stat-card::before{

    content:"";

    position:absolute;

    left:0;

    top:0;

    width:100%;

    height:5px;

    background:var(--secondary);

    transform:scaleX(0);

    transform-origin:left;

    transition:var(--transition);

}

.stat-card:hover::before{

    transform:scaleX(1);

}



/*==========================================================
TABLET
==========================================================*/

@media (max-width:991.98px){

    .statistics-section{

        padding:90px 0;

    }

    .statistics-section .section-header{

        margin-bottom:55px;

    }

    .counter{

        font-size:46px;

    }

    .stat-card{

        padding:35px 25px;

    }

}



/*==========================================================
MOBILE
==========================================================*/

@media (max-width:767.98px){

    .statistics-section{

        padding:70px 0;

    }

    .statistics-section .section-header{

        margin-bottom:45px;

    }

    .counter{

        font-size:40px;

    }

    .counter-symbol{

        font-size:22px;

    }

    .stat-icon{

        width:72px;

        height:72px;

        font-size:30px;

    }

    .stat-title{

        font-size:17px;

    }

}



/*==========================================================
SMALL MOBILE
==========================================================*/

@media (max-width:575.98px){

    .statistics-section{

        padding:60px 0;

    }

    .counter{

        font-size:34px;

    }

    .counter-symbol{

        font-size:18px;

    }

    .stat-card{

        padding:30px 22px;

    }

    .stat-icon{

        width:65px;

        height:65px;

        font-size:28px;

        margin-bottom:20px;

    }

    .stat-title{

        font-size:16px;

    }

    .stat-description{

        font-size:14px;

        line-height:1.7;

    }

}



/*==========================================================
ACCESSIBILITY
==========================================================*/

.stat-card:focus-within{

    outline:3px solid rgba(212,175,55,.35);

    outline-offset:4px;

}



/*==========================================================
REDUCED MOTION
==========================================================*/

@media (prefers-reduced-motion:reduce){

    .stat-card,

    .stat-icon,

    .counter{

        transition:none;

        animation:none;

    }

}

