/* Stats Section Styles */
.stats-section {
    background: #f5f6f7;
    padding: 60px 0;
    position: relative;
    overflow: hidden;
}

.stats-section .section-header {
    text-align: center;
    margin-bottom: 40px;
}

.stats-section .section-header h2 {
    font-size: 36px;
    font-weight: 700;
    color: var(--color-primary);
    text-transform: uppercase;
    position: relative;
    margin-bottom: 20px;
    padding-bottom: 20px;
}

.stats-section .section-header h2:after {
    content: "";
    position: absolute;
    display: block;
    width: 50px;
    height: 3px;
    background: var(--color-primary);
    left: 0;
    right: 0;
    bottom: 0;
    margin: auto;
}

.stats-section .section-header p {
    margin-bottom: 0;
    color: #6f6f6f;
}

.stats-container {
    position: relative;
}

.stats-card {
    text-align: center;
    background: #fff;
    padding: 40px 20px;
    margin-bottom: 30px;
    border-radius: 5px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.05);
    transition: all 0.5s ease;
    height: 100%;
    position: relative;
    overflow: hidden;
    border-bottom: 5px solid var(--color-primary);
}

.stats-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

.stats-card:before {
    content: "";
    position: absolute;
    width: 100px;
    height: 100px;
    background: rgba(var(--color-primary-rgb), 0.05);
    border-radius: 50%;
    top: -30px;
    right: -30px;
}

.stats-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 20px;
    background: rgba(var(--color-primary-rgb), 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.5s ease;
}

.stats-card:hover .stats-icon {
    background: var(--color-primary);
}

.stats-icon i {
    color: var(--color-primary);
    font-size: 36px;
    transition: all 0.5s ease;
}

.stats-card:hover .stats-icon i {
    color: #fff;
}

/* Custom counter animation */
@keyframes countUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Responsive styles */
@media (max-width: 991px) {
    .stats-card {
        padding: 30px 15px;
    }
    
    .stats-info .stats-count {
        font-size: 40px;
    }
    
    .stats-icon {
        width: 70px;
        height: 70px;
    }
    
    .stats-icon i {
        font-size: 30px;
    }
}

@media (max-width: 768px) {
    .stats-section {
        padding: 40px 0;
    }
    
    .stats-header h2 {
        font-size: 28px;
    }
    
    .stats-header p {
        font-size: 16px;
    }
}

@media (max-width: 576px) {
    .stats-number {
        font-size: 30px;
    }
    
    .stats-title {
        font-size: 16px;
    }
}
