.slider {
    width: 1050px;
    max-width: 100vw;
    height: 466px;
    margin: auto;
    position: relative;
    overflow: hidden;
    border-radius: 25px;
}
.slider .list {
    position: absolute;
    width: max-content;
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    transition: 1s;
}
.slider .list img {
    width: 1050px;
    max-width: 100vw;
    height: 100%;
    object-fit: cover;
}
.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;
}
.slider .dots {
    position: absolute;
    top: 10px;
    left: 0;
    color: #fff;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}
.slider .dots li {
    position: relative;
    list-style: none;
    width: 120px;
    margin: 10px;
    cursor: pointer;
    display: flex;
    justify-content: center;
    transition: color 0.5s, background-color 0.5s;
}
.slider .dots li.active {
    color: #ffffff;
}
.slider .dots li:hover {
    color: #000000;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: 8px;
}
/* General style for dots */
.slider .dots li::after {
    content: "";
    display: block;
    width: 0;
    height: 1px;
    background: #ffffff; /* Default color for dots */
    transition: width 0.3s ease, transform 0.3s ease;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    transform-origin: center;
}

/* Specific style for "top" carousel dots */
#carousel-top .dots li::after {
    background: #ffffff; /* White color */
}

/* Specific style for "spec" carousel dots */
#carousel-spec .dots li::after {
    background: #000000; /* Black color */
}



.slider .dots li.active::after {
    width: 90%;
}
@media screen and (max-width: 768px) {
    .slider .list img {
        width: 400px;
        height: auto;
        object-fit: cover;
    }
    .slider {
        width: 400px;
        height: 180px;
    }
    
    .slider .dots li {
        font-size: 10px;
        width: auto;
    }
}