/* ============================================================
   BMTNYRU Hero Slider — slider.css
   ============================================================ */

/* --- Container Utama --- */
.bmtnyru-hero-slider {
    position: relative;
    width: 100%;
    overflow: hidden;
    background: #000;
    /* height diset dari shortcode / settings admin */
}

/* --- Setiap Slide --- */
.bmtnyru-slide {
    position: absolute;
    inset: 0;                       /* top:0 right:0 bottom:0 left:0 */
    opacity: 0;
    /* durasi fade dioverride oleh JS via CSS variable */
    transition: opacity var(--bmtnyru-fade-duration, 800ms) ease-in-out;
    pointer-events: none;           /* slide tersembunyi tidak bisa diklik */
}

.bmtnyru-slide.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 1;
}

/* --- Background Image --- */
.bmtnyru-slide__bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    /* Ken Burns effect — zoom halus, bisa di-comment jika tidak diinginkan */
    animation: bmtnyru-ken-burns 8s ease-in-out infinite alternate;
}

@keyframes bmtnyru-ken-burns {
    from { transform: scale(1);    }
    to   { transform: scale(1.05); }
}

/* Nonaktifkan animasi bagi pengguna yang prefer reduced motion */
@media (prefers-reduced-motion: reduce) {
    .bmtnyru-slide__bg {
        animation: none;
    }
    .bmtnyru-slide {
        transition: none;
    }
}

/* --- Overlay Gelap --- */
.bmtnyru-slide__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
}

/* --- Konten Teks & CTA --- */
.bmtnyru-slide__content {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 2rem;
    gap: 1rem;
}

.bmtnyru-slide__judul {
    font-size: clamp(2rem, 5vw, 4rem); /* responsif otomatis */
    font-weight: 700;
    color: #fff;
    margin: 0;
    line-height: 1.15;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.4);
    /* Animasi masuk saat slide aktif */
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s 0.3s ease, transform 0.6s 0.3s ease;
}

.bmtnyru-slide__subjudul {
    font-size: clamp(0.95rem, 2vw, 1.25rem);
    color: rgba(255, 255, 255, 0.88);
    margin: 0;
    max-width: 600px;
    line-height: 1.6;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s 0.5s ease, transform 0.6s 0.5s ease;
}

.bmtnyru-slide__cta {
    display: inline-block;
    margin-top: 0.5rem;
    padding: 0.75rem 2rem;
    background: transparent;
    border: 2px solid #fff;
    color: #fff;
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    border-radius: 4px;
    letter-spacing: 0.05em;
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s 0.7s ease,
        transform 0.6s 0.7s ease,
        background 0.25s ease,
        color 0.25s ease;
}

.bmtnyru-slide__cta:hover {
    background: #fff;
    color: #1a1a2e;
}

/* Animasi masuk saat slide aktif */
.bmtnyru-slide.active .bmtnyru-slide__judul,
.bmtnyru-slide.active .bmtnyru-slide__subjudul,
.bmtnyru-slide.active .bmtnyru-slide__cta {
    opacity: 1;
    transform: translateY(0);
}

/* --- Tombol Panah Navigasi --- */
.bmtnyru-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.15);
    border: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 50%;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #fff;
    transition: background 0.25s ease;
    padding: 0;
}

.bmtnyru-arrow:hover {
    background: rgba(255, 255, 255, 0.3);
}

.bmtnyru-arrow svg {
    width: 22px;
    height: 22px;
}

.bmtnyru-arrow--prev { left: 1.25rem;  }
.bmtnyru-arrow--next { right: 1.25rem; }

/* --- Dots Navigasi --- */
.bmtnyru-dots {
    position: absolute;
    bottom: 1.5rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
    align-items: center;
}

.bmtnyru-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    border: 2px solid rgba(255, 255, 255, 0.6);
    background: transparent;
    cursor: pointer;
    padding: 0;
    transition: background 0.3s ease, border-color 0.3s ease, transform 0.3s ease;
}

.bmtnyru-dot.active {
    background: #fff;
    border-color: #fff;
    transform: scale(1.3);
}

/* --- Responsive Mobile --- */
@media (max-width: 768px) {
    .bmtnyru-arrow {
        width: 38px;
        height: 38px;
    }
    .bmtnyru-arrow svg {
        width: 18px;
        height: 18px;
    }
    .bmtnyru-slide__content {
        padding: 1.5rem 1rem;
    }
}

@media (max-width: 480px) {
    .bmtnyru-arrow {
        display: none; /* sembunyikan panah di HP kecil, pakai swipe saja */
    }
}
