.slider {
    width: 100%;
    height: 600px; /* Fixed height for desktop */
    margin: auto;
    position: relative;
    overflow: hidden;
}

.slider .list {
    display: flex;
    transition: transform 1s;
    width: 100%;
    height: 100%;
}

.slider .item {
    flex: 0 0 100%;
    height: 100%;
}

.slider .item img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Ensure the image covers the entire slider area */
}

.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: rgba(19, 99, 198, 0.4); /* Updated color with 40% opacity */
    color: #fff;
    border: none;
    font-family: monospace;
    font-weight: bold;
}

.slider .dots {
    position: absolute;
    bottom: 30px;
    left: 0;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.slider .dots li {
    list-style: none;
    width: 10px;
    height: 10px;
    background-color: rgba(19, 99, 198, 0.932); /* Updated color with 40% opacity */
    margin: 10px;
    border-radius: 20px;
    transition: 0.5s;
}

.slider .dots li.active {
    width: 30px;
    background-color: rgba(19, 99, 198, 0.4); /* Updated color with 40% opacity */
}

@media screen and (max-width: 768px) {
    .slider {
        height: auto; /* Auto height to accommodate varying content */
    }

    .slider .item img {
        height: 100%;
        width: 100%;
        object-fit: cover; /* Cover the entire viewport width */
    }
}
