/* === HERO SECTION STYLES === */

/* Hero section container */
.hero-home-section {
    height: 800px;
    overflow: hidden;
    position: relative;
    background-color: #f8f9fa;
}

/* Background image slider inside each column */
.individual-slider-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
    overflow: hidden;
}

/* Each individual slider image */
.slider-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0;
    transition: opacity 1.5s ease-in-out;
}

.slider-image.active {
    opacity: 1;
}

/* Overlay content over slider */
.hero-content-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    display: flex;
    min-height: 300px;
}

/* Individual column inside hero */
.hero-column {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    height: 100%;
    overflow: hidden;
}

/* Text/content on top of each image */
.image-overlay-content {
    position: relative;
    z-index: 2;
    color: white;
    text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
    padding: 20px;
    border-radius: 8px;
    background-color: transparent;
}

.image-overlay-content a {
    color: inherit;
    text-decoration: none;
}

.image-overlay-content a:hover {
    text-decoration: underline;
}

.image-title {
    font-size: 2.5rem;
    font-weight: bold;
    line-height: 1.2;
    margin-bottom: 0;
}

/* === NAVBAR STYLES === */

.custom-navbar-transparent {
    background-color: rgba(255, 255, 255, 0.9);
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    transition: background-color 0.3s ease-in-out;
}

.custom-navbar-transparent .navbar-brand img {
    height: 40px;
}

.custom-navbar-transparent .nav-link {
    color: #333;
    font-weight: 600;
    padding: 10px 15px;
}

.custom-navbar-transparent .nav-link:hover {
    color: #DBA63B;
}

.custom-navbar-transparent .nav-link.active {
    color: #DBA63B;
}

.custom-navbar-transparent .dropdown-menu {
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.custom-navbar-transparent .dropdown-item:hover {
    background-color: #ffffff;
}

/* === RESPONSIVE STYLES (FIXED) === */
@media (max-width: 767.98px) {
    .hero-home-section {
        height: auto; /* Allow section height to adjust to its content */
    }

    .hero-content-overlay {
        /* This element already has `flex-column` from Bootstrap classes on mobile. */
        /* We just need to put it back into the normal document flow. */
        position: relative; 
        height: auto;
    }

    .hero-column {
        /* The `col-md-4` class makes it 100% width by default on small screens. */
        /* We just need to define a height for each section. */
        width: 100%;
        height: 300px; /* Give each stacked section a clear height */
    }
    
    /* NOTE: The complex and problematic nth-child rules have been removed. */
    /* The slider will now work correctly on mobile as well. */

    .image-overlay-content {
        padding: 15px;
    }

    .image-title {
        font-size: 1.8rem; /* Adjust font size for smaller screens */
    }
}
