
.slider {
    position: relative;
    width: 100%;
    max-width: 1200px;
    margin: 3px auto;
    overflow: hidden;
    border-radius: 12px;
}

.slides {
    position: relative;
    width: 100%;
    height: 400px;
}

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* overlay gelap biar teks terbaca */
.slide::after {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.35);
}

/* teks di atas gambar */
.slide-text {
    position: absolute;
    top: 50%;
    left: 10%;
    transform: translateY(-50%);
    color: white;
    z-index: 2;

    max-width: 500px;
}

/* animasi teks */
.slide-text h2 {
    font-size: 42px;
    margin-bottom: 10px;
}

.slide-text p {
    font-size: 18px;
    opacity: 0.9;
}

/* fade active slide */
.slide.active {
    opacity: 1;
}

/* tombol */
.prev, .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 10px 15px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 18px;
}

.prev { left: 15px; }
.next { right: 15px; }

.prev:hover, .next:hover {
    background: rgba(0,0,0,0.8);
}