/* =================================================
   STATISTICS SECTION
   Minimal CSS - Bootstrap handles layout
   ================================================= */
.statistics {
    background: var(--gradient-black);
    color: var(--primary-white);
    position: relative;
    overflow: hidden;
}

/* Flex container for statistics */
.stats-grid {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
    align-items: stretch;
    gap: 1.5rem;
    width: 100%;
}

.stat-item {
    /* Uses unified-card base styles */
    flex: 0 0 auto;
    width: calc(33.333% - 1rem);
    min-width: 280px;
    max-width: 350px;
    height: auto;
    min-height: 320px;
}

.stat-content {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
    height: 100%;
}

.stat-number-section {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    width: 100%;
}

.stat-number {
    font-family: var(--font-primary);
    font-size: 4.5rem;
    font-weight: 900;
    background: var(--gradient-magenta);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    line-height: 1;
    text-align: center;
    margin-bottom: 0.5rem;
}

.stat-unit {
    font-size: 1.8rem;
    color: var(--magenta-subtle);
    font-weight: 600;
    text-align: center;
}

.stat-desc-section {
    flex: 0 0 auto;
    width: 100%;
    padding-top: 1rem;
    border-top: 1px solid rgba(199, 21, 133, 0.2);
}

.stat-desc {
    color: rgba(255, 255, 255, 0.85);
    line-height: 1.5;
    font-size: 0.9rem;
    text-align: center;
    margin: 0;
}

.stat-accent {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 60px;
    height: 60px;
    background: var(--gradient-magenta);
    border-radius: 60px 0 25px 0;
    opacity: 0.1;
}

/* =================================================
   RESPONSIVE
   ================================================= */
@media (max-width: 991.98px) {
    .stat-item {
        width: calc(50% - 0.75rem);
        min-width: 250px;
    }
    
    .stat-number {
        font-size: 4rem;
    }
    
    .stat-unit {
        font-size: 1.6rem;
    }
    
    .stat-number-section {
        min-height: 160px;
    }
}

@media (max-width: 767.98px) {
    .stats-grid {
        flex-direction: column;
        align-items: center;
    }
    
    .stat-item {
        width: 100%;
        max-width: 400px;
        min-width: auto;
    }
    
    .stat-number {
        font-size: 3.5rem;
    }
    
    .stat-unit {
        font-size: 1.4rem;
    }
    
    .stat-number-section {
        min-height: 150px;
    }
    
    .stat-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 575.98px) {
    .stat-item {
        max-width: 100%;
        min-width: auto;
        min-height: 260px;
    }
    
    .stat-number {
        font-size: 3rem;
    }
    
    .stat-unit {
        font-size: 1.2rem;
    }
    
    .stat-number-section {
        min-height: 130px;
    }
    
    .stat-desc {
        font-size: 0.85rem;
    }
}

@media (max-width: 479.98px) {
    .stat-item {
        min-height: 240px;
        padding: 1.25rem;
    }
    
    .stat-number {
        font-size: 2.5rem;
    }
    
    .stat-unit {
        font-size: 1rem;
    }
    
    .stat-number-section {
        min-height: 110px;
    }
}

/* Extra small devices (320px and below) */
@media (max-width: 320px) {
    .stat-item {
        min-height: 220px;
        padding: 1rem;
    }
    
    .stat-number {
        font-size: 2.2rem;
    }
    
    .stat-unit {
        font-size: 0.95rem;
    }
    
    .stat-desc {
        font-size: 0.8rem;
    }
}
