/* Counter Section "Perfect Look" Enhanced Styles */

.counter-section-modern {
    background: #ffffff;
    padding: 120px 0;
    position: relative;
    z-index: 1;
}

/* Add a subtle background container for the row */
.counter-container-wrap {
    background: #f8fafc;
    padding: 60px 40px;
    border-radius: 40px;
    border: 1px solid #f1f5f9;
}

.counter-card-modern {
    background: transparent;
    padding: 20px;
    text-align: center;
    transition: all 0.4s ease;
    position: relative;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.counter-card-modern:hover {
    transform: translateY(-5px);
}

/* Icon Box Enhancement */
.counter-icon-box {
    width: 80px;
    height: 80px;
    background: #ffffff;
    border-radius: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.05);
    border: 1px solid #f1f5f9;
}

.counter-icon-box i {
    font-size: 2rem;
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    transition: all 0.4s ease;
}

.counter-card-modern:hover .counter-icon-box {
    background: linear-gradient(135deg, #3b82f6 0%, #8b5cf6 100%);
    transform: scale(1.1) rotate(8deg);
    box-shadow: 0 15px 35px rgba(59, 130, 246, 0.25);
    border-color: transparent;
}

.counter-card-modern:hover .counter-icon-box i {
    -webkit-text-fill-color: #ffffff;
}

/* Number Styling */
.counter-number {
    display: block;
    font-size: 3.5rem; /* Larger for impact */
    font-weight: 900;
    color: #0f172a;
    line-height: 1;
    margin-bottom: 12px;
    letter-spacing: -1px;
}

.counter-label {
    font-size: 1.1rem;
    font-weight: 700;
    color: #64748b;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* Vertical Divider for Desktop */
@media (min-width: 992px) {
    .counter-card-modern:not(:last-child)::after {
        content: '';
        position: absolute;
        right: -15px;
        top: 20%;
        height: 60%;
        width: 1px;
        background: linear-gradient(to bottom, transparent, #e2e8f0, transparent);
    }
}

@media (max-width: 991px) {
    .counter-container-wrap {
        padding: 40px 20px;
        border-radius: 30px;
    }
    .counter-number {
        font-size: 2.75rem;
    }
}