/* --- DESKTOP DEFAULTS --- */
.image-container {
   position: relative;
    display: inline-block;   /* 🔥 makes it fit the image size */
    margin: 0 auto;          /* center horizontally */
}

.image-container img {
    display: block;
    max-width: 100%;
    height: auto;
}

.image-container::after {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1;
    pointer-events: none;
}

.centered-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90%;
    max-width: 1100px;
    z-index: 10;
    text-align: center;
}

/* THE LINKS (Desktop) */
.centered-text .nav.navbar-nav {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 20px auto 0 auto !important;
}

.centered-text .nav.navbar-nav li {
    list-style: none !important;
    display: inline-block !important;
}

.centered-text .nav.navbar-nav li a {
    color: #ffffff !important;
    text-decoration: none !important;
    font-weight: bold;
    padding: 10px 20px !important; /* Increased spacing */
    text-shadow: 1px 1px 4px rgba(0,0,0,0.8);
}

/* --- MOBILE MODE (Fixes the disappearance) --- */
@media (max-width: 768px) {
    /* Force the menu to show even if Bootstrap wants to hide it */
    #main-nav {
        display: block !important;
        visibility: visible !important;
    }

    .centered-text .nav.navbar-nav {
        flex-direction: column !important; /* Vertical stack for mobile */
        align-items: center !important;
    }

    .centered-text .nav.navbar-nav li {
        width: 100%;
        margin: 5px 0 !important;
    }

    .centered-text .nav.navbar-nav li a {
        font-size: 14px;
        padding: 12px !important;
        border: 1px solid rgba(255,255,255,0.2); /* Makes them look like buttons */
        border-radius: 4px;
    }

    /* Ensure the image doesn't get too small for the vertical menu */
    .image-container img {
        min-height: 450px;
        object-fit: cover;
    }
}

/* 1. Reset the UL to be a centered row */
.hero-list {
    display: flex !important;
    flex-direction: row !important;
    justify-content: center !important;
    list-style: none !important;      /* Removes bullets */
    padding: 0 !important;
    margin: 0 !important;
    width: 100%;
}

/* 2. Space out the items */
.hero-list li {
    margin: 0 20px !important;       /* Space between links */
    list-style: none !important;
}

/* 3. Style the links white */
.hero-list li a {
    color: white !important;
    text-decoration: none !important;
    font-weight: bold;

    font-size: 16px;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
}

/* 4. Mobile: Stack them vertically if they get too cramped */
@media (max-width: 768px) {
    .hero-list {
        flex-direction: column !important;
        align-items: center !important;
    }
    .hero-list li {
        margin: 10px 0 !important;
    }

    .col-md-3 col-sm-6 {
    margin-top: 30px !important; /* Adjust '50px' to whatever height you need */
    }
}