.slider-container {
    width: 800px;
    height: 400px;
    margin: 30px auto;
    position: relative;
    overflow: hidden;
    border-radius: 15px;
    box-shadow: 0 6px 12px rgba(0,0,0,0.3);
    background-color: transparent;
}

.slider {
    display: flex;
    /* OPTIMASI: Gunakan transform saja (lebih ringan dari all) */
    transition: transform 0.5s ease-in-out;
    width: 100%;
    height: 100%;
    /* OPTIMASI: GPU acceleration */
    will-change: transform;
}

.slide {
    min-width: 100%;
    height: 400px;
    background-color: transparent;
    background-size: cover;
    background-position: center;
    position: relative;
    flex-shrink: 0;
}

.slide::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0); /* Transparan atau putih sangat tipis */
}

/* Kontrol Navigasi */
.slider-controls {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: calc(100% - 40px);
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
    z-index: 2;
}

.slider-arrow {
    background: rgba(0,0,0,0.4); /* Warna gelap dengan transparansi 40% */
    border: none;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    /* OPTIMASI: Hanya transition yang diperlukan */
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 24px;
    color: #fff; /* Warna teks putih */
}

.slider-arrow:hover {
    background: rgba(0,0,0,0.6); /* Warna gelap dengan transparansi 60% saat hover */
    transform: scale(1.1);
}

.play-pause-controls {
    position: absolute;
    bottom: 20px;
    right: 20px;
    z-index: 2;
}

.play-pause-btn {
    background: rgba(0,0,0,0.4); /* Warna gelap dengan transparansi 40% */
    border: none;
    border-radius: 5px;
    padding: 8px 12px;
    cursor: pointer;
    /* OPTIMASI: Hanya transition yang diperlukan */
    transition: background 0.3s ease, transform 0.3s ease;
    font-size: 16px;
    color: #fff; /* Warna teks putih */
    display: flex;
    align-items: center;
}

.play-pause-btn:hover {
    background: rgba(0,0,0,0.6); /* Warna gelap dengan transparansi 60% saat hover */
    transform: scale(1.1);
}

.play-pause-btn .pause-icon,
.play-pause-btn .play-icon {
    transition: opacity 0.3s ease;
}

.play-pause-btn.paused .pause-icon {
    display: none;
}

.play-pause-btn.paused .play-icon {
    display: inline;
}

.play-pause-btn:not(.paused) .pause-icon {
    display: inline;
}

.play-pause-btn:not(.paused) .play-icon {
    display: none;
}

/* Navigasi Dot */
.slider-dots {
    position: absolute;
    bottom: 25px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 12px;
    z-index: 2;
}

.dot {
    width: 14px;
    height: 14px;
    background: rgba(0,0,0,0.4); /* Warna gelap dengan transparansi 40% */
    border-radius: 50%;
    cursor: pointer;
    /* OPTIMASI: Hanya transition yang diperlukan */
    transition: background 0.3s ease, transform 0.3s ease, border 0.3s ease;
    border: 1px solid transparent;
}

.dot:hover {
    transform: scale(1.2);
}

.dot.active {
    background: rgba(0, 51, 102, 0.8); /* Warna biru gelap transparan */
    border: 2px solid #ffffffb9; /* Pinggir kuning */
}

/* Responsive untuk Mobile */
@media (max-width: 768px) {
    .slider-container {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        min-height: 200px;
        margin: 10px 0 !important;
        padding: 0 !important;
        border-radius: 0;
        overflow: hidden;
        box-shadow: none;
        position: relative;
        left: 0;
        right: 0;
        box-sizing: border-box !important;
        background-color: transparent !important;
    }

    .slider {
        width: 100% !important;
        height: 100%;
        display: flex;
        margin: 0;
        padding: 0;
        box-sizing: border-box !important;
    }

    .slide {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 0;
        padding-bottom: 52%;
        background-color: transparent !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        position: relative;
        flex-shrink: 0;
        box-sizing: border-box !important;
        margin: 0;
    }
    
    .slide::before {
        display: none;
    }

    .slider-arrow {
        width: 30px;
        height: 30px;
        font-size: 20px;
    }

    .play-pause-btn {
        padding: 6px 10px;
        font-size: 14px;
    }

    .slider-dots {
        bottom: 15px;
    }

    .dot {
        width: 10px;
        height: 10px;
    }
}

@media (max-width: 480px) {
    .slider-container {
        width: 100% !important;
        max-width: 100% !important;
        height: auto;
        min-height: 180px;
        margin: 8px 0 !important;
        padding: 0 !important;
        border-radius: 0;
        overflow: hidden;
        box-shadow: none;
        position: relative;
        left: 0;
        right: 0;
        box-sizing: border-box !important;
        background-color: transparent !important;
    }

    .slider {
        width: 100% !important;
        height: 100%;
        display: flex;
        margin: 0;
        padding: 0;
        box-sizing: border-box !important;
    }

    .slide {
        width: 100% !important;
        min-width: 100% !important;
        max-width: 100% !important;
        height: 0;
        padding-bottom: 50%;
        background-color: transparent !important;
        background-size: cover !important;
        background-repeat: no-repeat !important;
        background-position: center center !important;
        position: relative;
        flex-shrink: 0;
        box-sizing: border-box !important;
        margin: 0;
    }
    
    .slide::before {
        display: none;
    }

    .slider-arrow {
        width: 25px;
        height: 25px;
        font-size: 16px;
    }

    .play-pause-btn {
        padding: 5px 8px;
        font-size: 12px;
    }

    .slider-dots {
        bottom: 10px;
        gap: 8px;
    }

    .dot {
        width: 8px;
        height: 8px;
    }
}
