 .header .mini-nav, .copyright {
    background-color: #009c48 !important;
}

.header .site-logo {
    max-width: 70px !important;
}

.carousel-img-desktop {
    width: 100%;
    /* Use aspect-ratio to keep proportions consistent on wide screens */
    aspect-ratio: 16 / 9; 
    
    /* Set a floor: it will NEVER be shorter than 500px (prevents the "squashed" look) */
    min-height: 500px; 
    
    /* Set a ceiling (optional): prevents it from being too tall on ultra-wide monitors */
    max-height: 80vh; 
    height: 500px !important;
}

.carousel-img-desktop img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Ensures the image fills the space without stretching */
}

.carousel-img-mobile {
    background-position: top !important;
}

@media (min-width: 1600px) {
    .carousel-img-desktop {
        height: 600px !important; /* Or use a wider aspect-ratio */
    }
}

/* --- Mobile Hero Carousel Fixes --- */
@media (max-width: 768px) {
    /* 1. Prevent the container from collapsing if height is 0 */
    .hero-section, 
    .carousel, 
    .carousel-inner, 
    .hero-carousel {
        min-height: 400px !important; /* Adjust height as needed */
        height: auto !important;
        overflow: hidden !important;
        display: block !important;
    }

    /* 2. Ensure slides take up the full width of the mobile viewport */
    .carousel-item, 
    .swiper-slide, 
    .slick-slide {
        width: 100% !important;
        height: 100% !important;
        min-height: 400px !important;
    }

    /* 3. Force images to fill the space without stretching */
    .hero-carousel img, 
    .carousel-item img {
        width: 100% !important;
        /*height: 400px !important;  Matches the container height */
        object-fit: cover !important;
        object-position: center !important;
    }

    /* 4. Fix for iOS/Safari "fixed background" jumpiness */
    .hero-carousel-item, 
    [class*="hero-"] {
        background-attachment: scroll !important;
        background-size: cover !important;
        background-position: center !important;
    }

    /* 5. Ensure text/content overlays stay centered and visible */
    .carousel-caption {
        bottom: 20px !important;
    }
    
    .carousel-img-mobile {
        background-size: 100% !important;
    }
}


/* Target only the mobile div that contains a GIF in its background URL */
.carousel-img-mobile[style*=".gif"] {
    /* 1. Show the whole GIF without cropping the edges */
    background-size: contain !important; 
    background-repeat: no-repeat !important;
    background-position: center center !important;

    /* 2. Force the container to have a visible height */
    /* Since background images don't 'push' a div open, we must set this */
    height: 0 !important;
    padding-top: 133%; /* This creates a 3:4 aspect ratio; adjust % for your GIF */
    width: 100% !important;
    
    /* 3. Ensure it's not hidden by a parent height limit */
    min-height: 400px !important; 
}

@media only screen and (min-width: 1200px) {
    .page-carousel {
        margin-top: 264px;
    }
    
    .header .site-logo {
        max-width: 240px !important;
    }
}

/* --- Mobile Logo --- */
@media (max-width: 991px) {
    .header .site-logo {
        max-width: 140px !important;
    }
    .page-carousel {
        margin-top: 129px !important;
    }
}