/* ============================================================
 * home.css — Styles khusus halaman home
 * Diload via $extra_css = ['assets/css/home.css'] di home.php
 * File ini di-cache oleh browser (tidak inline seperti sebelumnya)
 * ============================================================ */

    #header, .header {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        z-index: 99999 !important;
        background-color: rgba(21, 34, 43, 0.95) !important;
    }

    /* ── Hero Image Slider ── */
    #home-hero {
        position: relative !important;
        width: 100% !important;
        height: 500px !important;
        overflow: hidden !important;
        z-index: 0 !important;
    }
    #home-hero .hero-swiper {
        width: 100% !important;
        height: 100% !important;
    }
    #home-hero .swiper-slide {
        position: relative;
        overflow: hidden;
    }
    #home-hero .swiper-slide img,
    #home-hero .swiper-slide video {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 6s ease;
    }
    #home-hero .swiper-slide.swiper-slide-active img {
        transform: scale(1.05);
    }
    #home-hero .swiper-slide::after {
        content: "";
        position: absolute;
        inset: 0;
        background: rgba(0,0,0,0.20);
        z-index: 1;
    }
    #home-hero .hero-text {
        position: absolute !important;
        top: 50% !important;
        left: 50% !important;
        transform: translate(-50%, -50%) !important;
        z-index: 10 !important;
        text-align: center !important;
        width: 90% !important;
        color: #fff !important;
        pointer-events: none;
    }
    #home-hero .hero-text h2 {
        font-size: 48px;
        font-weight: 700;
        text-transform: uppercase;
        text-shadow: 4px 4px 12px rgba(0,0,0,0.7);
        color: #fff !important;
        margin-bottom: 10px;
    }
    #home-hero .hero-text p {
        font-size: 24px;
        text-shadow: 4px 4px 12px rgba(0,0,0,0.7);
        color: rgba(255,255,255,0.95) !important;
        margin: 0;
    }
    #home-hero .swiper-button-prev,
    #home-hero .swiper-button-next {
        color: #fff !important;
        background: rgba(0,0,0,0.3);
        width: 44px !important;
        height: 44px !important;
        border-radius: 50%;
        z-index: 20;
        transition: background 0.3s;
    }
    #home-hero .swiper-button-prev:hover,
    #home-hero .swiper-button-next:hover {
        background: rgba(30,144,255,0.75);
    }
    #home-hero .swiper-button-prev::after,
    #home-hero .swiper-button-next::after {
        font-size: 18px !important;
    }
    #home-hero .swiper-pagination {
        z-index: 20;
        bottom: 16px !important;
    }
    #home-hero .swiper-pagination-bullet {
        background: #fff;
        opacity: 0.65;
        width: 10px;
        height: 10px;
    }
    #home-hero .swiper-pagination-bullet-active {
        background: #1E90FF;
        opacity: 1;
        width: 28px;
        border-radius: 5px;
        transition: width 0.3s;
    }

    /* ── Keunggulan Section ── */
    #keunggulan {
        padding: 60px 0 40px;
        background: #f4f7fb;
    }
    .keunggulan-card {
        position: relative;
        border-radius: 20px;
        overflow: hidden;
        height: 300px;
        cursor: pointer;
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        transition: transform 0.4s ease, box-shadow 0.4s ease;
    }
    .keunggulan-card:hover {
        transform: translateY(-6px);
        box-shadow: 0 18px 48px rgba(0,0,0,0.22);
    }
    .keunggulan-card img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
        transition: transform 0.6s ease;
    }
    .keunggulan-card:hover img {
        transform: scale(1.07);
    }
    .keunggulan-card .k-overlay {
        position: absolute;
        inset: 0;
        background: linear-gradient(
            to top,
            rgba(10,25,47,0.82) 0%,
            rgba(10,25,47,0.35) 55%,
            rgba(10,25,47,0.05) 100%
        );
        transition: background 0.4s ease;
    }
    .keunggulan-card:hover .k-overlay {
        background: linear-gradient(
            to top,
            rgba(10,25,47,0.90) 0%,
            rgba(10,25,47,0.50) 60%,
            rgba(10,25,47,0.10) 100%
        );
    }
    .keunggulan-card .k-icon {
        position: absolute;
        top: 20px;
        left: 20px;
        width: 46px;
        height: 46px;
        background: rgba(21,34,43,0.80);
        border-radius: 12px;
        display: flex;
        align-items: center;
        justify-content: center;
        color: #fff;
        font-size: 1.2rem;
        backdrop-filter: blur(4px);
        transition: background 0.3s;
        z-index: 3;
    }
    .keunggulan-card:hover .k-icon {
        background: #1E90FF;
    }
    .keunggulan-card .k-content {
        position: absolute;
        bottom: 0;
        left: 0;
        right: 0;
        padding: 20px 22px;
        z-index: 2;
    }
    .keunggulan-card .k-content h2 {
        margin: 0 0 4px;
        font-size: 1.25rem;
        font-weight: 700;
        color: #fff;
        letter-spacing: 0.5px;
        line-height: 1.3;
        text-shadow:
            0 1px 2px rgba(0,0,0,0.9),
            0 4px 16px rgba(0,0,0,0.6);
    }
    .keunggulan-card .k-content p {
        margin: 0;
        font-size: 0.87rem;
        color: rgba(255,255,255,0.88);
        text-shadow: 0 1px 4px rgba(0,0,0,0.4);
    }

/* ── Navbar Mobile Fix ── */
@media (max-width: 1199px) {

    /* Hamburger icon warna putih agar terlihat di background gelap */
    .mobile-nav-toggle {
        color: #fff !important;
    }

    /* Overlay gelap saat mobile nav aktif */
    .mobile-nav-active .navmenu {
        background: rgba(10, 20, 28, 0.92) !important;
    }

    /* Background menu mobile gelap sesuai tema navbar */
    .navmenu ul {
        background-color: #15222b !important;
        border-color: rgba(255,255,255,0.1) !important;
    }

    /* ── Samakan ukuran & style semua item menu ── */

    /* <a> items: Home, Produk, Layanan */
    .navmenu a,
    .navmenu a:focus {
        font-size: 15px !important;
        font-weight: 500 !important;
        padding: 12px 20px !important;
        color: #e5eaee !important;
        font-family: 'Inter', sans-serif !important;
        border-bottom: 1px solid rgba(255,255,255,0.07) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
    }

    /* <span> items: Tentang, Laporan, Informasi */
    .navmenu ul li > span {
        font-size: 15px !important;
        font-weight: 500 !important;
        padding: 12px 20px !important;
        color: #e5eaee !important;
        font-family: 'Inter', sans-serif !important;
        border-bottom: 1px solid rgba(255,255,255,0.07) !important;
        display: flex !important;
        align-items: center !important;
        justify-content: space-between !important;
        cursor: pointer;
        width: 100%;
        box-sizing: border-box;
    }

    /* Icon chevron pada dropdown */
    .navmenu ul li > span i.toggle-dropdown,
    .navmenu a i.toggle-dropdown {
        color: #e5eaee !important;
        background-color: rgba(30,144,255,0.15) !important;
        width: 28px !important;
        height: 28px !important;
        font-size: 12px !important;
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        border-radius: 50% !important;
        flex-shrink: 0;
    }

    /* Sub-menu dropdown */
    .navmenu .dropdown ul {
        background-color: #1a2d3a !important;
        margin: 0 10px 4px 10px !important;
        border-radius: 6px !important;
        border: none !important;
        padding: 4px 0 !important;
    }

    /* Item dalam sub-menu — sedikit lebih kecil */
    .navmenu .dropdown ul a,
    .navmenu .dropdown ul a:focus {
        font-size: 14px !important;
        font-weight: 400 !important;
        padding: 10px 20px !important;
        color: rgba(229,234,238,0.85) !important;
        border-bottom: 1px solid rgba(255,255,255,0.05) !important;
    }

    /* Hover & active state */
    .navmenu a:hover,
    .navmenu .active,
    .navmenu .active:focus {
        color: #1E90FF !important;
    }

    .navmenu .dropdown ul a:hover {
        color: #1E90FF !important;
    }

    /* Chevron aktif (dropdown terbuka) */
    .navmenu .active i,
    .navmenu .active:focus i {
        background-color: #1E90FF !important;
        color: #fff !important;
        transform: rotate(180deg);
    }
}

/* ── Responsive Hero ── */
@media (max-width: 767px) {
    #home-hero { height: 260px !important; }
    #home-hero .hero-text h2 { font-size: 22px; }
    #home-hero .hero-text p  { font-size: 14px; }
    #home-hero .swiper-button-prev,
    #home-hero .swiper-button-next { display: none; }
    .keunggulan-card { height: 220px; }
    .keunggulan-card .k-content h4 { font-size: 1rem; }
}

@media (max-width: 1199px) and (min-width: 768px) {
    #home-hero { height: 380px !important; }
    #home-hero .hero-text h2 { font-size: 34px; }
    #home-hero .hero-text p  { font-size: 18px; }
}