/* _hero_slider.css */

/* --- Hero Slider Section --- */
.hero-slider {
    position: relative;
    width: 100%;
    height: 650px; /* Standard height for large hero */
    overflow: hidden;
    background-color: #f0f0f0; /* Light fallback background if images don't load */
    border-radius: 0 0 2rem 2rem; /* Consistent bottom rounding */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 1.2s ease-in-out; /* Smooth fade transition */
    display: flex; /* Use flexbox for content centering */
    align-items: center;
    justify-content: center;
    text-align: center;
    z-index: 1; /* Ensure slides are layered correctly */
}

.hero-slide.active {
    opacity: 1;
    z-index: 2; /* Active slide on top */
}

.hero-slide .hero-img {
    position: absolute; /* Added: Position the image absolutely within its parent slide */
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Cover the entire slide area */
    z-index: -1; /* Added: Place the image behind the content */
    transition: transform 1.2s ease-in-out; /* Subtle zoom on active slide */
}

.hero-slide.active .hero-img {
    transform: scale(1.05); /* Gentle zoom for active slide */
}

.hero-content {
    position: relative; /* Ensure z-index works correctly relative to hero-slide */
    z-index: 4; /* On top of the image */
    padding: 2.5rem 3.5rem; /* Generous padding for the content box */
    max-width: 700px; /* Constrain content box width */
    background: rgba(255, 255, 255, 0.3) !important; /* Force override with high transparency */
    color: #1E1F25; /* Dark text for readability on translucent background */
    border-radius: 1.5rem; /* Rounded corners for the content box */
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.3); /* Stronger shadow for the box */
    display: flex; /* Ensure content inside is centered */
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(0, 0, 0, 0.1); /* Subtle border for definition */
}

.hero-content h1 {
    font-size: 2rem; /* Larger, more impactful heading */
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #0A3D62; /* Blue heading for brand consistency */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for definition on light bg */
}

.hero-content p {
    font-size: 1.4rem; /* Prominent subheading */
    max-width: 700px;
    margin: 0 auto 2.5rem auto; /* Space before button */
    opacity: 1; /* Full opacity for readability */
    color: #444; /* Darker grey text for readability */
    text-shadow: 1px 1px 2px rgba(0,0,0,0.1); /* Subtle shadow for definition on light bg */
}

.hero-content .btn {
    padding: 1.2rem 3rem;
    font-size: 1.3rem;
    font-weight: 700;
    background-color: #0A3D62; /* Blue button */
    color: #fff; /* White text */
    border: none;
    border-radius: 0.75rem;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease, box-shadow 0.3s ease;
    box-shadow: 0 5px 15px rgba(0,0,0,0.2);
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.hero-content .btn:hover {
    background-color: #0056b3; /* Darker blue on hover */
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

/* Responsive Adjustments for Hero Slider */
@media (max-width: 992px) {
    .hero-slider {
        height: 550px;
    }
    .hero-content {
        padding: 1rem 2.5rem;
    }
    .hero-content h1 {
        font-size: 3rem;
    }
    .hero-content p {
        font-size: 1.2rem;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 450px;
    }
    .hero-content {
        padding: 2rem;
        max-width: 90%;
    }
    .hero-content h1 {
        font-size: 2.5rem;
        margin-bottom: 1rem;
    }
    .hero-content p {
        font-size: 1rem;
        margin-bottom: 2rem;
    }
}

@media (max-width: 480px) {
    .hero-slider {
        height: 400px;
    }
    .hero-content {
        padding: 1.5rem;
        max-width: 95%;
    }
    .hero-content h1 {
        font-size: 2rem;
    }
    .hero-content p {
        font-size: 0.9rem;
    }
    .hero-content .btn {
        padding: 0.8rem 2rem;
        font-size: 1rem;
    }
}
