.banner {
    margin-top: 90px;
}

.slider {
    width: 100%;
    max-width: 100vw;
    height: 800px;
    margin: auto;
    position: relative;
    overflow: hidden;
}

.slider .list {
    position: absolute;
    width: max-content;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    transition: 1s;
}

.slider .list img {
    width: 1900px;
    max-width: 100vw;
    height: 100%;
    object-fit: cover;
}

.slider .item {
    position: relative; 
}

.slider .item .text {
    position: absolute;
    bottom: 50px; 
    left: 50%; 
    transform: translateX(-50%);
    color: white; 
    font-size: 45px; 
    font-weight: bold;
    background-color: rgba(0, 0, 0, 0.5); /* Optional background for text to make it stand out */
    padding: 30px ; /* Padding around the text */
    border-radius: 5px; /* Rounded corners for the text background */
}

.slider .buttons {
    position: absolute;
    top: 45%;
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
}

.slider .buttons button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: #fff5;
    color: #fff;
    border: none;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer;
}

.slider .buttons button:hover {
    background-color: rgba(0, 0, 0, 0.7);
}

.slider .dots {
    position: absolute;
    bottom: 10px;
    left: 0;
    color: #fff;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.slider .dots li {
    list-style: none;
    width: 10px;
    height: 10px;
    background-color: #fff;
    margin: 10px;
    border-radius: 20px;
    transition: 0.5s;
}

.slider .dots li.active {
    width: 30px;
}

@media screen and (max-width: 768px) {
    .slider {
        height: 600px; /* Reduce height for tablets */
    }

    .slider .item .text {
        font-size: 30px; /* Smaller text for tablets */
        bottom: 30px; /* Move text closer to the bottom */
        left: 50%; /* Center horizontally */
        transform: translateX(-50%); /* Center horizontally */
        padding: 10px 10px;
    }
}


@media screen and (orientation: landscape) and (max-width: 576px) {
    .slider {
        height: 30px; /* Adjust height for landscape mobile */
    }

    .slider .item .text {
        font-size: 18px; /* Reduce font size for landscape mobile */
        bottom: 15px;
        padding: 5px;
    }

    .slider .buttons button {
        width: 35px; /* Smaller buttons for landscape */
        height: 35px;
    }

    .slider .dots li {
        width: 6px;
        height: 6px;
    }

    .slider .dots li.active {
        width: 15px;
    }
}