/* Responsive Hero Images CSS */
/* Enhanced responsive behavior for hero section background images */

.hero-section-enhanced {
    position: relative;
    overflow: hidden;
}

.hero-responsive-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    transition: all 0.3s ease;
}

/* Default: Large screens (1440px+) */
@media (min-width: 1440px) {
    .hero-responsive-bg {
        object-fit: cover;
        object-position: center center;
    }
}

/* Medium-Large screens (1200px - 1439px) */
@media (max-width: 1439px) and (min-width: 1200px) {
    .hero-responsive-bg {
        object-fit: cover;
        object-position: center center;
        /* Slightly scale down to show more content */
        transform: scale(0.98);
    }
}

/* Medium screens (1024px - 1199px) */
@media (max-width: 1199px) and (min-width: 1024px) {
    .hero-responsive-bg {
        object-fit: cover;
        object-position: center center;
        /* Scale down more to prevent cropping */
        transform: scale(0.95);
    }
}

/* Small desktop/Large tablet (768px - 1023px) */
@media (max-width: 1023px) and (min-width: 768px) {
    .hero-responsive-bg {
        object-fit: contain;
        object-position: center center;
        /* Show full image on smaller screens */
        background-color: transparent;
    }
    
    /* Add background color to hero section for better contrast */
    .hero-section-enhanced {
        background-color: #f8f9fa !important;
    }
}

/* Mobile screens (up to 767px) */
@media (max-width: 767px) {
    .hero-responsive-bg {
        object-fit: contain;
        object-position: center center;
        /* Ensure full image is visible on mobile */
        padding: 10px;
        box-sizing: border-box;
    }
    
    .hero-section-enhanced {
        background-color: #f8f9fa !important;
        min-height: 400px !important;
    }
}

/* Ultra-wide screens (2560px+) */
@media (min-width: 2560px) {
    .hero-responsive-bg {
        object-fit: cover;
        object-position: center center;
        /* Perfect fit for ultra-wide */
    }
}

/* Specific breakpoint for your issue (1440px) */
@media (max-width: 1440px) and (min-width: 1200px) {
    .hero-responsive-bg {
        object-fit: cover;
        object-position: center center;
        /* Slight scale to prevent side cropping */
        transform: scale(0.96);
        transform-origin: center center;
    }
}

/* Animation for smooth transitions */
.hero-responsive-bg {
    transition: transform 0.3s ease, object-fit 0.3s ease;
}

/* Hover effects for better interaction */
.hero-section-enhanced:hover .hero-responsive-bg {
    transform: scale(1.02);
}

@media (max-width: 1440px) and (min-width: 1200px) {
    .hero-section-enhanced:hover .hero-responsive-bg {
        transform: scale(0.98);
    }
}

@media (max-width: 1199px) {
    .hero-section-enhanced:hover .hero-responsive-bg {
        transform: scale(0.97);
    }
}
