/* =========================================================
   SLIDE.CSS — HERO SLIDER NJA EXPRESS (SCROLL-X + DOTS)
   Dipakai di welcome.blade.php
========================================================= */

/* =========================================================
   1) SECTION + WRAPPER
========================================================= */
.hero-section {
    margin: 0;
    padding: 0;
    scroll-margin-top: 80px; /* supaya anchor tidak ketutup navbar */
}

.hero-slider-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    max-height: 620px;
    overflow: hidden;
    background: #ffffff;
}

/* =========================================================
   2) CONTAINER SCROLL-X
========================================================= */
.hero-slider.scroll-x {
    display: flex;
    width: 100%;
    height: 100%;
    overflow-x: auto;
    overflow-y: hidden;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;

    /* hide scrollbar */
    -ms-overflow-style: none;
    scrollbar-width: none;
}
.hero-slider.scroll-x::-webkit-scrollbar {
    display: none;
}

/* =========================================================
   3) SLIDE BASE
   - Jangan pakai "background:" di sini, cukup background-* saja
========================================================= */
.hero-slider.scroll-x .hero-slide {
    position: relative;
    flex: 0 0 100%;
    height: 100%;
    scroll-snap-align: start;

    /* fallback warna jika gambar gagal load */
    background-color: #e9eef5;

    background-position: center;
    background-size: cover;
    background-repeat: no-repeat;
}

/* ✅ Set gambar via class (REKOMENDASI)
   Pastikan file benar-benar ada di: public/img/...
*/
.hero-slide--1 {
    background-image: url("/img/nja_slide.png");
}
.hero-slide--2 {
    background-image: url("/img/collage2.png");
}
.hero-slide--3 {
    background-image: url("/img/nja4.png");
}
.hero-slide--4 {
    background-image: url("/img/nja5.png");
}

/* =========================================================
   4) OVERLAY (lebih soft, tidak terlalu hitam)
========================================================= */
.hero-overlay {
    position: absolute;
    inset: 0;

    /* lebih transparan & rapi, tetap bantu teks kebaca */

    background: transparent;

    z-index: 1;
}

/* =========================================================
   5) CONTENT CARD (kotak teks)
   - dibuat lebih transparan & shadow tidak berlebihan
========================================================= */
.hero-content {
    position: absolute;
    left: 6%;
    top: 12%;
    z-index: 3;

    width: min(580px, 88vw);

    /* pastikan teks tetap putih */
    color: #ffffff;

    /* glass yang lebih elegan (tidak terlalu hitam) */
    background: rgba(30, 30, 30, 0.267);

    border: 1px solid rgba(19, 8, 8, 0.068);
    border-radius: 16px;
    padding: 22px 26px;

    /* shadow diperkecil biar tidak “berat” */
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.226);
}

/* Pastikan typography global tidak menimpa jadi gelap */
.hero-content h1,
.hero-content p,
.hero-content a {
    color: #fff !important;
}

/* judul */
.hero-content h1 {
    font-size: 44px;
    font-weight: 900;
    line-height: 1.1;
    margin: 0 0 10px;
    letter-spacing: -0.02em;

    /* text-shadow lebih halus */
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
}

/* paragraf */
.hero-content p {
    font-size: 15px;
    line-height: 1.65;
    margin: 0 0 18px;
    opacity: 0.95;

    /* text-shadow lebih halus */
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.25);
}

/* =========================================================
   6) BUTTONS
========================================================= */
.hero-btn-group {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.hero-btn {
    background: var(--accent, #ff1b1c);
    padding: 12px 20px;
    border-radius: 999px;
    color: #fff;
    font-weight: 800;
    font-size: 14px;

    box-shadow: 0 10px 24px rgba(255, 27, 28, 0.3);
    transition: transform 0.22s ease, box-shadow 0.22s ease, filter 0.22s ease;
}
.hero-btn:hover {
    transform: translateY(-2px);
    filter: brightness(1.03);
    box-shadow: 0 14px 30px rgba(255, 27, 28, 0.45);
}

.hero-btn-outline {
    border: 2px solid rgba(255, 255, 255, 0.85);
    padding: 11px 20px;
    border-radius: 999px;

    color: #fff;
    font-weight: 800;
    font-size: 14px;

    background: rgba(255, 255, 255, 0.06);
    transition: transform 0.22s ease, background 0.22s ease,
        border-color 0.22s ease;
}
.hero-btn-outline:hover {
    transform: translateY(-2px);
    background: rgba(255, 255, 255, 0.14);
    border-color: rgba(255, 255, 255, 0.92);
}

/* =========================================================
   7) DOTS (lebih clean, tidak hitam berat)
========================================================= */
.slider-dots {
    position: absolute;
    bottom: 16px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 10px;
    z-index: 10;
}

.slider-dot {
    width: 10px;
    height: 10px;
    border-radius: 999px;
    cursor: pointer;

    background: rgba(255, 255, 255, 0.68);
    border: 2px solid rgba(0, 0, 0, 0.22);

    /* shadow lebih halus */
    box-shadow: 0 0 8px rgba(0, 0, 0, 0.18);

    transition: transform 0.22s ease, background 0.22s ease,
        border-color 0.22s ease, box-shadow 0.22s ease;
}

.slider-dot.active {
    background: var(--accent, #ff1b1c);
    border-color: var(--accent, #ff1b1c);
    transform: scale(1.25);

    box-shadow: 0 0 12px rgba(255, 27, 28, 0.55);
}

/* =========================================================
   8) RESPONSIVE
========================================================= */
@media (max-width: 768px) {
    .hero-slider-wrapper {
        height: 56vh;
        max-height: 520px;
    }

    .hero-content {
        left: 12px;
        right: 12px;
        top: 10%;
        width: auto;
        padding: 16px 16px;
        border-radius: 14px;
        background: rgba(30, 30, 30, 0.22); /* sedikit lebih tipis di mobile */
    }

    .hero-content h1 {
        font-size: 28px;
    }

    .hero-content p {
        font-size: 13px;
        margin-bottom: 14px;
    }

    .slider-dots {
        bottom: 12px;
    }
}
