/* Counter Animation Styles */
.count-number h4 {
    display: inline-block;
    margin: 0;
}

/* Counter animation fix */
.counter {
    transition: all 0.3s ease;
    min-width: 50px; /* Prevent layout shift */
    display: inline-block;
}

.counter-section .single-box {
    opacity: 1;
}

/* Ensure counter doesn't flicker */
.counter[data-counter-animated="true"] {
    animation: none !important;
}

/* Custom counter animation */
.counter-animating {
    animation: none !important;
}

/* Counter section styling */
.counter-section {
    position: relative;
}

.counter-section .single-box {
    transition: transform 0.3s ease;
}

.counter-section .single-box:hover {
    transform: translateY(-5px);
}

/* Responsive counter styling */
@media (max-width: 768px) {
    .counter {
        font-size: 1.5rem;
    }
    
    .count-number h4 {
        font-size: 1.5rem;
    }
}

@media (max-width: 480px) {
    .counter {
        font-size: 1.2rem;
    }
    
    .count-number h4 {
        font-size: 1.2rem;
    }
}
