/* Stats Section Styles */

/* Ensure no horizontal scroll issues */
body {
    overflow-x: hidden;
}

/* Override any parent container constraints */
.stats-section,
section.stats-section,
div.stats-section {
    width: 100vw !important;
    position: relative;
    left: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    max-width: none !important;
    box-sizing: border-box !important;
}

.stats-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    margin: 0 auto;
    padding: 20px;
    max-width: 1200px;
}

.stats-column {
    width: 25%;
    text-align: center;
    margin-bottom: 20px;
}

.stats-widget {
    background-color: #ffffff;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.stats-widget:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 10px rgba(0, 0, 0, 0.15);
}

.stats-title {
    font-size: 18px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333333;
}

.stats-number {
    font-size: 36px;
    font-weight: bold;
    color: #ff4081;
}

/* Full-width background for stats section */
.stats-section {
    width: 100vw !important; /* Full viewport width */
    position: relative;
    left: 50% !important; /* Move to center */
    right: 50% !important; /* Move to center */
    margin-left: -50vw !important; /* Pull back to edge */
    margin-right: -50vw !important; /* Pull back to edge */
    /* Background controlled by customizer - removed hardcoded background */
    background-size: cover;
    background-position: center;
    background-attachment: fixed;
    background-repeat: no-repeat;
    padding: clamp(40px, 6vw, 80px) 0; /* Reduced padding for less height */
    display: flex;
    align-items: center;
    overflow-x: hidden; /* Prevent horizontal scrollbar */
    min-height: 400px;
    box-sizing: border-box !important;
    /* Additional overrides to ensure full width */
    max-width: none !important;
    transform: translateX(0) !important;
}

.stats-overlay {
    background-color: rgba(0, 0, 0, 0.6);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Ensure container content is properly centered within full-width section */
.stats-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
    width: 100%;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .stats-section {
        background-attachment: scroll !important;
        padding: clamp(25px, 5vw, 50px) 0; /* Reduced height on mobile */
        width: 100vw !important; /* Maintain full width */
        left: 50% !important; /* Maintain centering */
        right: 50% !important; /* Maintain centering */
        margin-left: -50vw !important; /* Maintain full width */
        margin-right: -50vw !important; /* Maintain full width */
        box-sizing: border-box !important;
    }
    
    .stats-section .container {
        flex-direction: column !important;
        gap: 30px;
    }
    
    .stats-content,
    .stats-video {
        max-width: 100% !important;
        padding-right: 0 !important;
    }
}

@media (max-width: 480px) {
    .stats-section {
        padding: clamp(20px, 4vw, 35px) 0; /* Further reduced height on small screens */
        width: 100vw !important; /* Maintain full width */
        left: 50% !important; /* Maintain centering */
        right: 50% !important; /* Maintain centering */
        margin-left: -50vw !important; /* Maintain full width */
        margin-right: -50vw !important; /* Maintain full width */
        box-sizing: border-box !important;
        margin-left: -50vw; /* Maintain full width */
        margin-right: -50vw; /* Maintain full width */
    }
    
    .stats-overlay {
        background-color: rgba(0, 0, 0, 0.7);
    }
}