
       

.slider-container {
    position: relative;
    width: 85%;
    
    margin: auto;
    overflow: hidden;
}

.slider {
    display: flex;
    transition: transform 0.5s ease;
}

.slide {
    min-width: 100%;
    position: relative;
}

.slide img {
    width: 100%;
    height: auto;
}

/* Caption styling */
.caption {
    position: absolute;
    top: 80%;
    left: 50%;
    transform: translateX(-50%);
    background-color: rgba(127, 212, 244, 0.6);
    color: white;
    padding: 20px;
    font-size: 16px;
    text-align: center;
    max-width: 90%;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.5);
}

/* Navigation buttons */
button {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    font-size: 18px;
    padding: 10px;
    cursor: pointer;
}

.prev {
    left: 10px;
}

.next {
    right: 10px;
}

button:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* Responsive design */
@media (max-width: 900px) {
    .slider-container {
        max-width: 100%;
    }

    .caption {
        font-size: 16px;
        bottom: 10px;
        left: 10px;
    }
}
@media (max-width: 600px) {
    .slider-container {
        max-width: 100%;
    }

    .caption {
        font-size: 16px;
        bottom: 10px;
        left: 10px;
    }
}