/**
 * Hero Images Fix - Ensure hero image displays properly
 * This file addresses z-index and specificity issues
 */

/* Ensure main element doesn't block hero background */
.home #primary.site-main {
    position: relative;
    z-index: auto;
}

/* Fix hero image display with higher specificity and important flags */
body.home .page-header {
    position: relative !important;
    min-height: 400px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    overflow: visible !important; /* Changed from hidden to visible */
    margin-bottom: 40px !important;
    width: 100% !important;
    padding: 60px 20px !important;
    background-color: transparent !important; /* Ensure no background color blocks the image */
}

body.home .page-header::before {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background-image: url('/wp-content/uploads/2025/06/IMG_1809-optimized.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-repeat: no-repeat !important;
    z-index: -1 !important; /* Changed from -2 to -1 */
    pointer-events: none !important;
    display: block !important;
}

body.home .page-header::after {
    content: '' !important;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    right: 0 !important;
    bottom: 0 !important;
    background: linear-gradient(to bottom, rgba(0,0,0,0.4) 0%, rgba(0,0,0,0.6) 100%) !important;
    z-index: 0 !important; /* Changed from -1 to 0 */
    pointer-events: none !important;
}

/* Ensure title is visible above the overlays */
body.home .page-header .page-title {
    color: white !important;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7) !important;
    font-size: 4rem !important;
    font-weight: 700 !important;
    margin: 0 !important;
    z-index: 1 !important;
    position: relative !important;
}

/* Alternative approach if z-index doesn't work */
@supports not (z-index: -1) {
    body.home .page-header {
        background-image: url('/wp-content/uploads/2025/06/IMG_1809-optimized.jpg') !important;
        background-size: cover !important;
        background-position: center !important;
        background-repeat: no-repeat !important;
    }
    
    body.home .page-header::before {
        display: none !important;
    }
}

/* Mobile responsive adjustments */
@media (max-width: 768px) {
    body.home .page-header {
        min-height: 300px !important;
        padding: 40px 20px !important;
    }
    
    body.home .page-header .page-title {
        font-size: 2.5rem !important;
    }
}