/* Hero Image Responsive Fix - Complete Mobile & Tablet Optimization */

/* Base hero image styling for all devices */
.hero-1 .hero-bg-image,
.hero-bg-image {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    z-index: 1 !important;
    overflow: hidden !important;
}

.hero-1 .hero-bg-image img,
.hero-main-image {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    transition: transform 0.3s ease !important;
}

/* Desktop and Large Screens (1200px+) */
@media (min-width: 1200px) {
    .hero-1,
    .hero-wrapper {
        min-height: 100vh !important;
    }
    
    .hero-1 .hero-bg-image img,
    .hero-main-image {
        object-position: center center !important;
        transform: scale(1) !important;
    }
}

/* Large Tablets and Small Desktops (992px - 1199px) */
@media (min-width: 992px) and (max-width: 1199px) {
    .hero-1,
    .hero-wrapper {
        min-height: 90vh !important;
    }
    
    .hero-1 .hero-bg-image img,
    .hero-main-image {
        object-position: center center !important;
        min-height: 90vh !important;
    }
}

/* Tablets (768px - 991px) */
@media (min-width: 768px) and (max-width: 991px) {
    .hero-1,
    .hero-wrapper {
        min-height: 80vh !important;
    }
    
    .hero-1 .hero-bg-image img,
    .hero-main-image {
        object-position: center center !important;
        min-height: 80vh !important;
        object-fit: cover !important;
    }
    
    .hero-1 .container {
        height: auto !important;
        min-height: 80vh !important;
        display: flex !important;
        align-items: center !important;
    }
}

/* Small Tablets and Large Phones (576px - 767px) */
@media (min-width: 576px) and (max-width: 767px) {
    .hero-1,
    .hero-wrapper {
        min-height: 70vh !important;
    }
    
    .hero-1 .hero-bg-image img,
    .hero-main-image {
        object-position: center top !important;
        min-height: 70vh !important;
        object-fit: cover !important;
        transform: scale(1.05) !important; /* Slight zoom for better mobile view */
    }
    
    .hero-1 .container {
        height: auto !important;
        min-height: 70vh !important;
        display: flex !important;
        align-items: center !important;
        padding: 20px 15px !important;
    }
    
    .hero-style1 {
        min-height: 70vh !important;
        padding: 60px 0 40px !important;
    }
}

/* Mobile Phones (up to 575px) */
@media (max-width: 575px) {
    .hero-1,
    .hero-wrapper {
        min-height: 60vh !important;
    }
    
    .hero-1 .hero-bg-image img,
    .hero-main-image {
        object-position: center top !important;
        min-height: 60vh !important;
        object-fit: cover !important;
        transform: scale(1.1) !important; /* More zoom for mobile */
    }
    
    .hero-1 .container {
        height: auto !important;
        min-height: 60vh !important;
        display: flex !important;
        align-items: center !important;
        padding: 15px 10px !important;
    }
    
    .hero-style1 {
        min-height: 60vh !important;
        padding: 50px 0 30px !important;
    }
}

/* Extra Small Mobile (up to 480px) */
@media (max-width: 480px) {
    .hero-1,
    .hero-wrapper {
        min-height: 55vh !important;
    }
    
    .hero-1 .hero-bg-image img,
    .hero-main-image {
        object-position: center top !important;
        min-height: 55vh !important;
        object-fit: cover !important;
        transform: scale(1.15) !important; /* Maximum zoom for small screens */
    }
    
    .hero-1 .container {
        height: auto !important;
        min-height: 55vh !important;
        display: flex !important;
        align-items: center !important;
        padding: 10px 8px !important;
    }
    
    .hero-style1 {
        min-height: 55vh !important;
        padding: 40px 0 20px !important;
    }
}

/* Very Small Mobile (up to 360px) */
@media (max-width: 360px) {
    .hero-1,
    .hero-wrapper {
        min-height: 50vh !important;
    }
    
    .hero-1 .hero-bg-image img,
    .hero-main-image {
        object-position: center top !important;
        min-height: 50vh !important;
        object-fit: cover !important;
        transform: scale(1.2) !important; /* Maximum zoom for very small screens */
    }
    
    .hero-1 .container {
        height: auto !important;
        min-height: 50vh !important;
        display: flex !important;
        align-items: center !important;
        padding: 8px 5px !important;
    }
    
    .hero-style1 {
        min-height: 50vh !important;
        padding: 30px 0 15px !important;
    }
}

/* Landscape orientation fixes for mobile */
@media (max-width: 767px) and (orientation: landscape) {
    .hero-1,
    .hero-wrapper {
        min-height: 100vh !important;
    }
    
    .hero-1 .hero-bg-image img,
    .hero-main-image {
        object-position: center center !important;
        min-height: 100vh !important;
        object-fit: cover !important;
        transform: scale(1) !important;
    }
    
    .hero-1 .container {
        min-height: 100vh !important;
    }
}

/* Ensure proper aspect ratio maintenance */
.hero-1 .hero-bg-image::before {
    content: '' !important;
    display: block !important;
    width: 100% !important;
    height: 0 !important;
    padding-bottom: 56.25% !important; /* 16:9 aspect ratio */
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: -1 !important;
}

/* High DPI/Retina display optimizations */
@media (-webkit-min-device-pixel-ratio: 2), (min-resolution: 192dpi) {
    .hero-1 .hero-bg-image img,
    .hero-main-image {
        image-rendering: -webkit-optimize-contrast !important;
        image-rendering: crisp-edges !important;
    }
}