.slider-custom {
    width: 100vw; /* Lebar slider sesuai dengan ukuran layar */
    height: 600px; /* Tinggi slider */
    margin: auto;
    position: relative;
    overflow: hidden;
    cursor: pointer; /* Menambahkan pointer cursor saat hover */
}

.slider-custom .list-custom {
    position: absolute;
    width: max-content; /* Mengatur lebar konten sesuai dengan jumlah item */
    height: 100%;
    left: 0;
    top: 0;
    display: flex;
    transition: left 1s ease; /* Efek transisi saat slider bergerak */
}

.slider-custom .list-custom .item {
    position: relative;
    width: 100vw; /* Mengatur lebar item agar sesuai dengan lebar layar */
}

.slider-custom .image-container {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
}

.slider-custom .image-container img {
    width: 100vw; /* Gambar mengisi seluruh lebar layar */
    height: 100%; /* Gambar mengisi seluruh tinggi slider */
    object-fit: cover; /* Menjaga proporsi gambar */
}

.slider-custom .image-container::before {
    content: ""; /* Membuat elemen pseudo untuk efek gradasi */
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        /* Gradasi horizontal dari kiri ke kanan */ rgba(0, 174, 0, 0.3),
        /* Hijau transparan */ rgba(4, 4, 106, 0.3) /* Navy transparan */
    ); /* Gradasi dari hijau ke navy dengan transparansi */
    opacity: 0.9; /* Opasitas untuk membuat gradasi lebih kabur */
    pointer-events: none; /* Pastikan elemen gradasi tidak menghalangi interaksi pengguna */
}

.slider-custom .buttons-custom {
    position: absolute;
    top: 50%; /* Menempatkan tombol di tengah vertikal */
    left: 5%;
    width: 90%;
    display: flex;
    justify-content: space-between;
    transform: translateY(
        -50%
    ); /* Menyelaraskan tombol agar berada di tengah secara vertikal */
}

.slider-custom .buttons-custom button {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: rgba(
        255,
        255,
        255,
        0.5
    ); /* Warna tombol putih transparan */
    color: #fff;
    border: none;
    font-family: monospace;
    font-weight: bold;
    cursor: pointer; /* Menambahkan pointer cursor saat hover tombol */
    transition: background-color 0.3s ease; /* Animasi perubahan warna saat hover */
}

.slider-custom .buttons-custom button:hover {
    background-color: rgba(255, 255, 255, 0.8); /* Warna tombol saat hover */
}

.slider-custom .dots-custom {
    position: absolute;
    bottom: 10px;
    left: 0;
    color: #fff;
    width: 100%;
    margin: 0;
    padding: 0;
    display: flex;
    justify-content: center;
}

.slider-custom .dots-custom li {
    list-style: none;
    width: 13px;
    height: 13px;
    background-color: transparent;
    margin: 13px;
    border-radius: 50%;
    border: 2px solid #fff;
    transition: width 0.5s, background-color 0.5s, border 0.5s;
}

.slider-custom .dots-custom li.active {
    width: 13px;
    background-color: #fff;
    border: none;
}

.slider-custom .dots-custom li:not(.active):hover {
    background-color: #fff;
    border: none;
}

@media screen and (max-width: 768px) {
    .slider-custom {
        height: 400px;
    }

    .slider-custom .buttons-custom {
        top: 50%;
        left: 0;
        width: 100%;
    }

    .slider-custom .buttons-custom button {
        width: 40px;
        height: 40px;
    }
}
