/* styles.css */

body, html {
    margin: 0;
    padding: 0;
}

.slider-container {
    padding-top: 80px;
    width: 100%;
    height: 500px;
    overflow: hidden;
}

.slider {
    position: relative; /* Ensure slides stay within container */
    width: 100%;
    height: 100%; /* Fill the height of the container */
    display: flex;
    overflow: hidden; /* Hide overflow beyond the container */
}

.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: none; /* Initially hide all slides */
}

.slide.active {
    display: block; /* Show only the active slide */
}

.slider img {
    width: 100%;
    height: auto;
    display: block;
}

.text-overlay {
    position: absolute;
    bottom: 20px; /* Adjust as needed */
    left: 20px; /* Adjust as needed */
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    padding: 10px;
    width: calc(100% - 40px); /* Adjust padding */
    box-sizing: border-box;
    opacity: 1; /* Text overlay is always visible */
}

.text-overlay h2, .text-overlay p {
    margin: 0;
}


/* Mobile-only styles */

@media only screen and (max-width: 768px) {

    .slider-container {
        padding-top: 80px;
        width: 100%;
        height: 250px;
        overflow: hidden;
    }
    
    .slider {
        position: relative; /* Ensure slides stay within container */
        width: 100%;
        height: 100%; /* Fill the height of the container */
        display: flex;
        overflow: hidden; /* Hide overflow beyond the container */
    }
    
    .slide {
        position: relative;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        display: none; /* Initially hide all slides */
    }
    
    .slide.active {
        display: block; /* Show only the active slide */
    }
    
    .slider img {
        width: 100%;
        height: auto;
        display: block;
    }

}