/* Service Cards Mobile Optimization - Enhanced Image Display */

/* Mobile First Approach for Service Cards */
@media (max-width: 768px) {
    .service-cards {
        display: grid !important;
        grid-template-columns: repeat(1, 1fr) !important;
        gap: 1.5rem !important;
        padding: 0 15px !important;
        max-width: 100% !important;
        margin: 0 auto !important;
    }
    
    .service-card {
        background: white !important;
        border-radius: 15px !important;
        box-shadow: 0 8px 25px rgba(0,0,0,0.1) !important;
        overflow: hidden !important;
        border: 2px solid #2c5282 !important;
        padding: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        min-height: auto !important;
    }
    
    .service-image {
        width: 100% !important;
        height: 220px !important;
        overflow: hidden !important;
        display: flex !important;
        justify-content: center !important;
        align-items: center !important;
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%) !important;
        padding: 5px 0px !important;
    }
    
    .service-icon {
        width: 90% !important;
        max-width: 350px !important;
        height: 210px !important;
        border-radius: 15px !important;
        overflow: hidden !important;
        box-shadow: 0 6px 20px rgba(44, 82, 130, 0.15) !important;
        transition: all 0.3s ease !important;
        background: white !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
    }
    
    .service-icon img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 13px !important;
        display: block !important;
    }
    
    .service-card h3 {
        font-size: 1.3rem !important;
        color: #2c5282 !important;
        margin: 20px 15px 10px 15px !important;
        font-weight: 700 !important;
        line-height: 1.3 !important;
        text-align: center !important;
    }
    
    .service-card p {
        font-size: 0.95rem !important;
        color: #555 !important;
        line-height: 1.6 !important;
        margin: 0 15px 20px 15px !important;
        text-align: center !important;
        flex-grow: 1 !important;
    }
    
    /* Hover effects for mobile touch */
    .service-card:active {
        transform: scale(0.98) !important;
        box-shadow: 0 4px 15px rgba(0,0,0,0.15) !important;
    }
    
    .service-card:active .service-icon {
        transform: scale(1.05) !important;
    }
}

/* Small Mobile Phones */
@media (max-width: 480px) {
    .service-cards {
        gap: 1rem !important;
        padding: 0 10px !important;
    }
    
    .service-image {
        height: 200px !important;
        padding: 5px 0px !important;
    }
    
    .service-icon {
        width: 85% !important;
        max-width: 300px !important;
        height: 190px !important;
    }
    
    .service-card h3 {
        font-size: 1.2rem !important;
        margin: 15px 10px 8px 10px !important;
    }
    
    .service-card p {
        font-size: 0.9rem !important;
        margin: 0 10px 15px 10px !important;
    }
}

/* Tablet Portrait */
@media (min-width: 769px) and (max-width: 992px) {
    .service-cards {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 2rem !important;
        padding: 0 20px !important;
    }
    
    .service-image {
        height: 200px !important;
        padding: 8px 5px !important;
    }
    
    .service-icon {
        width: 88% !important;
        max-width: 320px !important;
        height: 184px !important;
    }
}

/* Remove any conflicting desktop force styles for service cards on mobile */
@media (max-width: 768px) {
    .service-cards {
        min-width: auto !important;
    }
    
    .service-card {
        min-width: auto !important;
    }
}