/* ============================================
   STATS COUNTER - Vision Global School
   Animated achievement counters
   ============================================ */

.stats-counter {
    padding: var(--section-padding);
    background: var(--gradient-primary);
    position: relative;
    overflow: hidden;
}

.stats-counter::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(225, 213, 191, 0.1) 0%, transparent 100%);
    pointer-events: none;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 3rem;
    position: relative;
    z-index: 1;
}

.stat-item {
    text-align: center;
    padding: 2rem 1rem;
    position: relative;
}

.stat-item::after {
    content: '';
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 1px;
    height: 60%;
    background: rgba(255, 255, 255, 0.2);
}

.stat-item:last-child::after {
    display: none;
}

.stat-number {
    font-size: var(--font-size-6xl);
    font-weight: var(--font-weight-extrabold);
    font-family: var(--font-display);
    color: var(--color-bg-white);
    line-height: 1;
    margin-bottom: 0.5rem;
    display: block;
    letter-spacing: var(--letter-spacing-tight);
}

.stat-label {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.9);
    font-weight: var(--font-weight-medium);
    text-transform: uppercase;
    letter-spacing: var(--letter-spacing-wide);
}

/* Animation */
.stat-number.counting {
    animation: countUp 0.3s ease-out;
}

@keyframes countUp {
    from {
        transform: scale(1.2);
        opacity: 0.5;
    }

    to {
        transform: scale(1);
        opacity: 1;
    }
}

/* Mobile Responsive */
@media (max-width: 991px) {
    .stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 2rem;
    }

    .stat-item:nth-child(2)::after {
        display: none;
    }
}

@media (max-width: 575px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .stat-item::after {
        display: none;
    }

    .stat-item {
        padding: 1.5rem 1rem;
    }

    .stat-number {
        font-size: var(--font-size-5xl);
    }

    .stat-label {
        font-size: var(--font-size-base);
    }
}