/* =========================================================
   VEIC 2027 — STATISTICS SECTION
   File: assets/css/stats.css
   ========================================================= */

.veic-stats-outer{
    width: 100%;
    max-width: 1400px;
    background: var(--veic-primary);
    background: linear-gradient(120deg, #0A2E73 0%, #0d3a8f 100%);
    padding: 40px 20px;
    box-sizing: border-box;
    margin: 20px auto 40px;
}

.veic-stats-inner{
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    align-items: center;
}

.veic-stat-item{
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    text-align: left;
    padding: 0 10px;
    border-right: 1px solid rgba(255,255,255,0.15);
    min-width: 0; /* allow icon/text to shrink inside grid cell instead of overflowing */
}

/* remove the right border on the last column of every row */
.veic-stat-item:last-child{
    border-right: none;
}

.veic-stat-icon{
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    color: var(--veic-accent);
}

.veic-stat-icon svg{
    width: 100%;
    height: 100%;
    display: block;
}

.veic-stat-number{
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 28px;
    color: var(--veic-white);
    line-height: 1.1;
    white-space: nowrap;
}

.veic-stat-label{
    display: block;
    font-family: 'Poppins', sans-serif;
    font-weight: 400;
    font-size: 12px;
    color: rgba(255,255,255,0.75);
    margin-top: 2px;
    line-height: 1.3;
}

/* Standalone label (no counted number above it) — e.g. "Eminent National
   Faculty" — sized/weighted a bit closer to the number treatment so it
   doesn't look like an afterthought next to the counted stats. */
.veic-stat-label-standalone{
    font-size: 16px;
    font-weight: 600;
    color: #ffffff;
    margin-top: 0;
    white-space: normal;
}


/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1200px){
    .veic-stat-number{ font-size: 24px; }
    .veic-stat-icon{ width: 28px; height: 28px; }
}

/* 3 columns — last row (item 4-5) has 2 items, centered via grid span */
@media (max-width: 991px){
    .veic-stats-inner{
        grid-template-columns: repeat(3, 1fr);
        row-gap: 24px;
    }
    .veic-stat-item{
        justify-content: flex-start;
        border-right: 1px solid rgba(255,255,255,0.15);
    }
    /* right column of each row: no border */
    .veic-stat-item:nth-child(3n){
        border-right: none;
    }
    /* 5th item is last overall — no trailing border */
    .veic-stat-item:nth-child(5){
        border-right: none;
    }
}

/* 2 columns x 3 rows */
@media (max-width: 768px){
    .veic-stats-outer{ padding: 30px 15px; margin: 10px 0 30px; }
    .veic-stats-inner{
        grid-template-columns: repeat(2, 1fr);
        row-gap: 20px;
        column-gap: 10px;
    }
    .veic-stat-item{
        border-right: 1px solid rgba(255,255,255,0.15);
    }
    /* right column of each row: no border */
    .veic-stat-item:nth-child(2n){
        border-right: none;
    }
    .veic-stat-number{ font-size: 20px; }
    .veic-stat-icon{ width: 24px; height: 24px; }
    .veic-stat-label{ font-size: 11px; }
}

/* 1 column, stacked */
@media (max-width: 480px){
    .veic-stats-inner{
        grid-template-columns: 1fr;
        row-gap: 18px;
        justify-items: center;
    }
    .veic-stat-item{
        border-right: none;
        justify-content: flex-start;
        width: 100%;
        max-width: 280px;
    }
}
