/**
 * Counter Cards Mobile Layout
 * 2x2 grid layout for counter cards
 */

/* Mobile 2x2 grid for counter cards */
@media (max-width: 767px) {
    /* Main grid container */
    .vtc-cnt-7x9m2-grid {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px !important;
        padding: 0 10px !important;
        margin: 0 !important;
    }
    
    /* Counter cards */
    .vtc-cnt-7x9m2-card {
        width: 100% !important;
        margin: 0 !important;
        padding: 20px 10px !important;
        min-height: 150px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        text-align: center !important;
        background: rgba(255, 255, 255, 0.95) !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1) !important;
    }
    
    /* Icon wrapper */
    .vtc-cnt-7x9m2-icon-wrap {
        margin-bottom: 10px !important;
        position: relative !important;
        width: 50px !important;
        height: 50px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    /* Icon background */
    .vtc-cnt-7x9m2-icon-bg {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 50px !important;
        height: 50px !important;
        background: var(--color-primary, #FFC107) !important;
        border-radius: 50% !important;
        opacity: 0.15 !important;
    }
    
    /* Icon */
    .vtc-cnt-7x9m2-icon {
        position: relative !important;
        z-index: 1 !important;
        font-size: 24px !important;
        color: var(--color-primary, #FFC107) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .vtc-cnt-7x9m2-icon i {
        font-size: 24px !important;
    }
    
    /* Number wrapper */
    .vtc-cnt-7x9m2-number-wrap {
        margin-bottom: 8px !important;
    }
    
    /* Number */
    .vtc-cnt-7x9m2-number {
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        font-size: 28px !important;
        font-weight: 700 !important;
        color: #333 !important;
        line-height: 1 !important;
    }
    
    .vtc-cnt-7x9m2-number-value {
        font-size: 28px !important;
        font-weight: 700 !important;
    }
    
    .vtc-cnt-7x9m2-suffix {
        font-size: 20px !important;
        font-weight: 600 !important;
        margin-left: 2px !important;
        color: var(--color-primary, #FFC107) !important;
    }
    
    /* Label */
    .vtc-cnt-7x9m2-label {
        font-size: 13px !important;
        color: #666 !important;
        font-weight: 500 !important;
        line-height: 1.3 !important;
        text-transform: uppercase !important;
        letter-spacing: 0.5px !important;
    }
    
    /* Section adjustments */
    .vtc-cnt-7x9m2-section {
        padding: 40px 0 !important;
    }
    
    /* Header adjustments */
    .vtc-cnt-7x9m2-header {
        margin-bottom: 30px !important;
        text-align: center !important;
    }
    
    .vtc-cnt-7x9m2-subtitle {
        font-size: 12px !important;
        margin-bottom: 10px !important;
    }
    
    .vtc-cnt-7x9m2-title {
        font-size: 24px !important;
        margin-bottom: 0 !important;
    }
}

/* Extra small devices */
@media (max-width: 480px) {
    .vtc-cnt-7x9m2-grid {
        gap: 12px !important;
        padding: 0 5px !important;
    }
    
    .vtc-cnt-7x9m2-card {
        padding: 15px 8px !important;
        min-height: 130px !important;
    }
    
    .vtc-cnt-7x9m2-icon-bg {
        width: 45px !important;
        height: 45px !important;
    }
    
    .vtc-cnt-7x9m2-icon i {
        font-size: 20px !important;
    }
    
    .vtc-cnt-7x9m2-number-value {
        font-size: 24px !important;
    }
    
    .vtc-cnt-7x9m2-suffix {
        font-size: 18px !important;
    }
    
    .vtc-cnt-7x9m2-label {
        font-size: 12px !important;
    }
}

/* Very small screens */
@media (max-width: 360px) {
    .vtc-cnt-7x9m2-grid {
        gap: 10px !important;
    }
    
    .vtc-cnt-7x9m2-card {
        min-height: 120px !important;
        padding: 12px 5px !important;
    }
    
    .vtc-cnt-7x9m2-number-value {
        font-size: 22px !important;
    }
    
    .vtc-cnt-7x9m2-label {
        font-size: 11px !important;
    }
}

/* Landscape mode - 4 columns */
@media (max-width: 767px) and (orientation: landscape) {
    .vtc-cnt-7x9m2-grid {
        grid-template-columns: repeat(4, 1fr) !important;
        gap: 12px !important;
    }
    
    .vtc-cnt-7x9m2-card {
        min-height: 120px !important;
        padding: 15px 8px !important;
    }
    
    .vtc-cnt-7x9m2-icon-bg {
        width: 40px !important;
        height: 40px !important;
    }
    
    .vtc-cnt-7x9m2-icon i {
        font-size: 18px !important;
    }
    
    .vtc-cnt-7x9m2-number-value {
        font-size: 22px !important;
    }
    
    .vtc-cnt-7x9m2-suffix {
        font-size: 16px !important;
    }
    
    .vtc-cnt-7x9m2-label {
        font-size: 11px !important;
    }
}

/* Background overlay adjustments for mobile */
@media (max-width: 767px) {
    .vtc-cnt-7x9m2-bg-pattern {
        background: rgba(0, 0, 0, 0.3) !important;
    }
    
    .vtc-cnt-7x9m2-section {
        background-attachment: scroll !important;
        background-size: cover !important;
        position: relative !important;
    }
}

/* Ensure cards are equal height */
@media (max-width: 767px) {
    .vtc-cnt-7x9m2-grid {
        align-items: stretch !important;
    }
    
    .vtc-cnt-7x9m2-card {
        height: 100% !important;
    }
}

/* Remove any conflicting styles */
@media (max-width: 767px) {
    .vtc-cnt-7x9m2-grid > * {
        flex: unset !important;
        width: 100% !important;
        max-width: 100% !important;
    }
}

/* Animation disabled on mobile for performance */
@media (max-width: 767px) {
    .vtc-cnt-7x9m2-animate {
        animation: none !important;
        opacity: 1 !important;
        transform: none !important;
    }
}