﻿/* ========== Hero Slide Base ========== */
.hero-slide {
    min-height: 100vh;
    position: relative;
    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* ========== Slide Backgrounds (PNG-only) ========== */
/* Desktop default (≥ 992px) */
.slide-1 {
    background: #000 url('/images/hero/slide1-1920.jpg') center/cover no-repeat;
}

.slide-2 {
    background: #000 url('/images/hero/slide2-1920.jpg') center/cover no-repeat;
}

.slide-3 {
    background: #000 url('/images/hero/slide3-1920.jpg') center/cover no-repeat;
}

/* Tablet (768–991px) */
@media (max-width: 991.98px) {
    .slide-1 {
        background-image: url('/images/hero/slide1-1280.jpg');
    }

    .slide-2 {
        background-image: url('/images/hero/slide2-1280.jpg');
    }

    .slide-3 {
        background-image: url('/images/hero/slide3-1280.jpg');
    }
}

/* Mobile (≤ 767px) */
@media (max-width: 767.98px) {
    .slide-1 {
        background-image: url('/images/hero/slide1-768.jpg');
    }

    .slide-2 {
        background-image: url('/images/hero/slide2-768.jpg');
    }

    .slide-3 {
        background-image: url('/images/hero/slide3-768.jpg');
    }
}


/* ========== Overlay Styling ========== */
.slide-overlay {
    position: absolute;
    inset: 0;
    background-color: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    padding-top: 80px;
    padding-bottom: 80px;
    justify-content: center;
}

/* Container layering and padding */
.hero-slide .container {
    position: relative;
    z-index: 2;
    padding-left: 15px;
    padding-right: 15px;
    max-width: 1140px;
    margin: auto;
}

/* Typography Enhancements */
.hero-slide .text-white h1,
.hero-slide .text-white h2 {
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

/* ========== Responsive Behavior ========== */
@media (max-width: 767.98px) {
    .slide-overlay {
        padding: 40px 20px;
        text-align: center;
        flex-direction: column;
    }

    .hero-slide .text-white {
        text-align: center !important;
    }

    .btn-orange {
        width: 100%;
        margin-bottom: 12px;
    }
    .hero-slide .row {
        flex-direction: column-reverse;
        gap: 1.5rem;
    }

    .hero-slide .col-md-6 {
        width: 100%;
    }
   
}
 @media (min-width: 992px) {
        .navbar-nav {
            justify-content: center;
            width: 100%;
        }
    }

/* Keep navbar above hero layers on small screens */
.navbar {
    position: relative;
    z-index: 1100;
}

/* Optional: if hero content touches the header on very small devices */
@media (max-width: 991.98px) {
    .hero-slide {
        padding-top: 72px;
    }
    /* match your header height if needed */
}

/* Make sure header is always on top of hero images/overlays */
.navbar {
    position: relative;
    z-index: 1100;
}
