/**
 * Counter Icons Fix
 * Fixes icon positioning and ensures different icons are displayed
 */

/* Fix icon positioning on all devices */
.vtc-cnt-7x9m2-icon-wrap {
    position: relative !important;
    width: 60px !important;
    height: 60px !important;
    margin: 0 auto 15px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

.vtc-cnt-7x9m2-icon-bg {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: var(--color-primary, #FFC107) !important;
    opacity: 0.1 !important;
    border-radius: 50% !important;
}

.vtc-cnt-7x9m2-icon {
    position: relative !important;
    z-index: 2 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
}

.vtc-cnt-7x9m2-icon i {
    font-size: 28px !important;
    color: var(--color-primary, #FFC107) !important;
    line-height: 1 !important;
}

/* Specific icon adjustments for Font Awesome */
.vtc-cnt-7x9m2-icon .fas,
.vtc-cnt-7x9m2-icon .far,
.vtc-cnt-7x9m2-icon .fab {
    display: inline-block !important;
    font-style: normal !important;
    font-variant: normal !important;
    text-rendering: auto !important;
    -webkit-font-smoothing: antialiased !important;
}

/* Mobile specific fixes */
@media (max-width: 767px) {
    .vtc-cnt-7x9m2-icon-wrap {
        width: 50px !important;
        height: 50px !important;
        margin-bottom: 10px !important;
    }
    
    .vtc-cnt-7x9m2-icon i {
        font-size: 24px !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .vtc-cnt-7x9m2-icon-wrap {
        width: 45px !important;
        height: 45px !important;
    }
    
    .vtc-cnt-7x9m2-icon i {
        font-size: 20px !important;
    }
}

/* Icon colors for variety */
#vtc-counter-0 .vtc-cnt-7x9m2-icon i {
    color: #007bff !important; /* Blue for users */
}

#vtc-counter-1 .vtc-cnt-7x9m2-icon i {
    color: #28a745 !important; /* Green for experience */
}

#vtc-counter-2 .vtc-cnt-7x9m2-icon i {
    color: #ffc107 !important; /* Yellow for success */
}

#vtc-counter-3 .vtc-cnt-7x9m2-icon i {
    color: #dc3545 !important; /* Red for support */
}

/* Background colors to match icons */
#vtc-counter-0 .vtc-cnt-7x9m2-icon-bg {
    background: #007bff !important;
}

#vtc-counter-1 .vtc-cnt-7x9m2-icon-bg {
    background: #28a745 !important;
}

#vtc-counter-2 .vtc-cnt-7x9m2-icon-bg {
    background: #ffc107 !important;
}

#vtc-counter-3 .vtc-cnt-7x9m2-icon-bg {
    background: #dc3545 !important;
}

/* Ensure Font Awesome loads properly */
.vtc-cnt-7x9m2-icon .fa-users::before {
    content: "\f0c0" !important;
}

.vtc-cnt-7x9m2-icon .fa-calendar-alt::before {
    content: "\f073" !important;
}

.vtc-cnt-7x9m2-icon .fa-check-circle::before {
    content: "\f058" !important;
}

.vtc-cnt-7x9m2-icon .fa-headset::before {
    content: "\f590" !important;
}

/* Alternative: Use emoji if Font Awesome fails */
.vtc-cnt-7x9m2-icon.icon-fallback-users::before {
    content: "👥" !important;
    font-size: 30px !important;
}

.vtc-cnt-7x9m2-icon.icon-fallback-calendar::before {
    content: "📅" !important;
    font-size: 30px !important;
}

.vtc-cnt-7x9m2-icon.icon-fallback-check::before {
    content: "✅" !important;
    font-size: 30px !important;
}

.vtc-cnt-7x9m2-icon.icon-fallback-support::before {
    content: "🎧" !important;
    font-size: 30px !important;
}