/* =====================================================
   FINAL MOBILE AUTOSLIDE BERANDA - DESA BAJUH
   Selamat Datang + Berita Terbaru
===================================================== */

@media (min-width: 769px) {
    .dt-mobile-slider-section {
        display: none !important;
    }
}

@media (max-width: 768px) {
    body.dt-home-slider-ready .um-home-section,
    body.dt-home-slider-ready .mb-home-wrap,
    body.dt-home-slider-ready .hero-card,
    body.dt-home-slider-ready .hero-slide,
    body.dt-home-slider-ready .beranda-hero,
    body.dt-home-slider-ready .home-hero,
    body.dt-home-slider-ready .desa-hero,
    body.dt-home-slider-ready .welcome-hero,
    body.dt-home-slider-ready section.hero,
    body.dt-home-slider-ready .hero:not(.dt-slide-card) {
        display: none !important;
        height: 0 !important;
        min-height: 0 !important;
        max-height: 0 !important;
        overflow: hidden !important;
        opacity: 0 !important;
        visibility: hidden !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .dt-mobile-slider-section {
        width: 100%;
        background: linear-gradient(180deg, #f6fbf7 0%, #edf8ef 100%);
        padding: 14px 0 18px;
        overflow: hidden;
    }

    .dt-mobile-slider-title {
        padding: 0 16px 10px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 10px;
    }

    .dt-mobile-slider-title h2 {
        margin: 0;
        font-size: 16px;
        line-height: 1.2;
        font-weight: 950;
        color: #0f172a;
    }

    .dt-mobile-slider-title a {
        font-size: 11px;
        font-weight: 850;
        color: #047857;
        text-decoration: none;
        white-space: nowrap;
    }

    .dt-slider-track {
        display: flex;
        gap: 12px;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        padding: 0 14px 6px;
        scrollbar-width: none;
        scroll-behavior: smooth;
    }

    .dt-slider-track::-webkit-scrollbar {
        display: none;
    }

    .dt-slide-card {
        position: relative;
        flex: 0 0 84%;
        height: 198px;
        border-radius: 20px;
        overflow: hidden;
        scroll-snap-align: start;
        background: #064e3b;
        box-shadow: 0 14px 30px rgba(15, 23, 42, .13);
        text-decoration: none !important;
        color: #ffffff !important;
        isolation: isolate;
    }

    .dt-slide-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        object-position: center center;
        display: block;
        filter: brightness(.76) contrast(1.04);
        transform: scale(1.01);
    }

    .dt-slide-card::after {
        content: "";
        position: absolute;
        inset: 0;
        z-index: 1;
        background:
            linear-gradient(
                180deg,
                rgba(0, 0, 0, .05) 0%,
                rgba(0, 0, 0, .26) 42%,
                rgba(0, 0, 0, .72) 100%
            );
        pointer-events: none;
    }

    .dt-slide-content {
        position: absolute;
        left: 16px;
        right: 16px;
        bottom: 16px;
        z-index: 2;
        color: #ffffff;
    }

    .dt-slide-badge {
        display: inline-flex;
        align-items: center;
        width: max-content;
        max-width: 100%;
        margin-bottom: 8px;
        padding: 5px 10px;
        border-radius: 999px;
        background: rgba(255, 255, 255, .20);
        color: #ffffff;
        font-size: 9.5px;
        line-height: 1;
        font-weight: 900;
        letter-spacing: .2px;
        backdrop-filter: blur(8px);
        -webkit-backdrop-filter: blur(8px);
    }

    .dt-slide-title {
        margin: 0 0 7px;
        color: #ffffff;
        font-size: 17px;
        line-height: 1.14;
        font-weight: 950;
        letter-spacing: -.25px;
        text-shadow: 0 2px 9px rgba(0, 0, 0, .42);

        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .dt-slide-desc {
        margin: 0;
        max-width: 96%;
        color: rgba(255, 255, 255, .96);
        font-size: 11.2px;
        line-height: 1.42;
        font-weight: 700;
        text-shadow: 0 2px 8px rgba(0, 0, 0, .40);

        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .dt-slider-dots {
        display: flex;
        justify-content: center;
        align-items: center;
        gap: 7px;
        margin-top: 10px;
    }

    .dt-slider-dot {
        width: 7px;
        height: 7px;
        border-radius: 999px;
        background: #cbd5e1;
        transition: .25s ease;
        cursor: pointer;
    }

    .dt-slider-dot.active {
        width: 24px;
        background: #059669;
    }

    @media (max-width: 430px) {
        .dt-mobile-slider-section {
            padding-top: 12px;
        }

        .dt-slide-card {
            flex: 0 0 84%;
            height: 190px;
            border-radius: 18px;
        }

        .dt-slide-content {
            left: 14px;
            right: 14px;
            bottom: 14px;
        }

        .dt-slide-badge {
            font-size: 9px;
            padding: 5px 9px;
            margin-bottom: 7px;
        }

        .dt-slide-title {
            font-size: 15.5px;
            line-height: 1.14;
            margin-bottom: 6px;
        }

        .dt-slide-desc {
            font-size: 10.6px;
            line-height: 1.38;
            -webkit-line-clamp: 3;
        }
    }
}