@import url('https://fonts.googleapis.com/css2?family=Aladin&family=DM+Serif+Text:ital@0;1&family=Libre+Bodoni:ital,wght@0,400..700;1,400..700&family=Oleo+Script:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Libre+Bodoni:ital,wght@0,400..700;1,400..700&family=Oleo+Script:wght@400;700&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alfa+Slab+One&display=swap');

:root {
            --primary-color: #26c19e;
            --dark-green: #1a8e74;
            --text-light: #f8f9fa;
            /* Warna teks khusus untuk efek glass */
            --glass-text: #ffffff;
            --glass-desc: #e0e0e0;
}


* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

body {
    background-color: #f4f4f4;
}

/* Navbar Glassmorphism */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px 50px;
    background: transparent; /* Awalnya transparan */
    transition: all 0.4s ease-in-out; /* Animasi perubahan warna */
    z-index: 1000;
    color: white;
}

.navbar.scrolled {
    background: linear-gradient(120deg, #00648c, #04bcc9);
    padding: 10px 60px; /* Navbar sedikit menyusut agar lebih modern */
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.1);
    backdrop-filter: blur(5px);
}

.navbar .logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    font-size: 1.2rem;
}

.logo-sub
{
    display: flex;
    flex-direction: column;
    align-items:self-start;
    margin-left: 10px;
}

.logo-sub span
{
    font-size: 19px;
}

.logo-sub p
{
    font-size: 15px;
    color: #00f7ff;
}

.navbar ul {
    display: flex;
    list-style: none;
    gap: 25px;
}

.navbar ul li a {
    text-decoration: none;
    color: white;
    font-weight: 500;
}

.navbar ul li a:hover {
    opacity: 0.7;
}


/* ==========================================================================
   INTEGRASI BURGER MENU & SLIDE FROM RIGHT (KANAN KE KIRI)
   ========================================================================== */

/* --- Tombol Burger Kustom (Tetap berada di luar media query / global) --- */
.burger-menu {
    display: none; /* Sembunyikan di desktop */
    flex-direction: column;
    justify-content: space-between;
    width: 26px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    z-index: 1001;
}

.burger-menu span {
    width: 100%;
    height: 3px;
    background-color: white; 
    border-radius: 2px;
    transition: all 0.3s cubic-bezier(0.25, 1, 0.3, 1);
}

/* Animasi Transformasi Jalur Garis Burger ke Silang (X) */
.burger-menu.open span:nth-child(1) {
    transform: translateY(7.5px) rotate(45deg);
}
.burger-menu.open span:nth-child(2) {
    opacity: 0;
}
.burger-menu.open span:nth-child(3) {
    transform: translateY(-7.5px) rotate(-45deg);
}

/* Animasi Putar Panah Menu Utama */
.caret-icon {
    transition: transform 0.3s ease;
}
.has-dropdown.open-dropdown .caret-icon {
    transform: rotate(180deg);
}


/* ==========================================================================
   BREAKPOINT RESPONSIVE LAPTOP KECIL / TABLET / HP (MAX-WIDTH: 992PX)
   ========================================================================== */
@media screen and (max-width: 992px) {
    /* Mencegah halaman utama bisa digeser ke kanan secara tidak sengaja kawan */
    body {
        overflow-x: hidden;
    }

    /* 1. Pengaman Layout Utama Header */
    .navbar {
        padding: 15px 20px !important; 
        box-sizing: border-box;
    }
    
    .navbar.scrolled {
        padding: 10px 20px !important;
    }

    /* Munculkan tombol pemicu menu */
    .burger-menu {
        display: flex;
    }

    /* Penyesuaian Ukuran Teks Identitas Logo Kelurahan Lembang */
    .logo-sub span {
        font-size: 15px; 
    }
    .logo-sub p {
        font-size: 12px;
    }

    /* 2. SOLUSI DRAWER KANAN-KIRI: Mengganti sistem slide-down lama */
    .nav-menu {
        position: fixed; 
        top: 0;
        right: 0; /* Kunci posisi menempel di sisi kanan layar */
        width: 280px; /* Lebar laci menu drawer kawan */
        height: 100vh; /* Tinggi penuh ke bawah penjelajah HP */
        background: #00567a; 
        padding-top: 80px; /* Beri ruang di atas agar menu pertama tidak tertutup logo header */
        box-shadow: -5px 0 25px rgba(0,0,0,0.3);
        box-sizing: border-box;
        
        /* Reset property slide-down lama kawan */
        max-height: none !important; 
        overflow-y: auto; /* Laci menu bisa di-scroll vertikal jika link sangat banyak */
        
        /* KUNCI STRUKTUR: Sembunyikan laci sejauh 100% ke arah kanan luar layar */
        transform: translateX(100%); 
        transition: transform 0.4s cubic-bezier(0.25, 1, 0.3, 1);
        z-index: 700;
    }

    /* Sembunyikan rule top transisi scrolled desktop karena drawer menggunakan tinggi full 100vh */
    .navbar.scrolled .nav-menu {
        top: 0; 
    }

    /* Trigger Aktif: Saat Burger Di-klik, geser masuk kembali ke koordinat asli (0) */
    .nav-menu.active {
        transform: translateX(0);
    }

    /* Susun Vertikal Menu Ul Tautan */
    .navbar ul {
        flex-direction: column;
        width: 100%;
        gap: 0; 
        padding: 10px 0;
    }

    .navbar ul li {
        width: 100%;
    }

    /* Tombol Tautan Baris Menu Utama */
    .navbar ul li a.nav-link {
        display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 14px 25px;
        width: 100%;
        box-sizing: border-box;
        border-bottom: 1px solid rgba(255, 255, 255, 0.05);
        color: white;
    }

    /* --------------------------------------------------- */
    /* INTEGRASI STRUKTUR ACORDION MEGA MENU MOBILE        */
    /* --------------------------------------------------- */
    .mega-menu {
        position: static;
        width: 100%;
        opacity: 1 !important;
        visibility: visible !important;
        pointer-events: auto !important;
        max-height: 0;
        overflow: hidden;
        transition: max-height 0.4s ease-in-out;
        background: rgba(0, 0, 0, 0.2); 
    }

    /* Terbuka secara akordeon ke bawah di dalam laci */
    .has-dropdown.open-dropdown .mega-menu {
        max-height: 1200px; 
    }

    .mega-container {
        display: flex;
        flex-direction: column;
        padding: 12px;
        gap: 12px;
    }

    .mega-sidebar {
        width: 100%;
    }

    .mega-sidebar .toggle-switch button {
        width: 100%;
        font-size: 12px;
        padding: 8px;
        background: rgba(255, 255, 255, 0.1);
        color: #fff;
        border: none;
        border-radius: 4px;
    }

    /* Kunci Pilihan Tab ke Sistem Grid 2 Kolom */
    .side-nav {
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 6px !important;
        padding: 10px 0 0 0 !important;
        list-style: none;
    }

    .side-nav .nav-tab {
        padding: 10px 5px !important;
        font-size: 11px; /* Dikecilkan 1px agar teks tab muat di laci 280px */
        text-align: center;
        border-radius: 6px;
        background: rgba(255, 255, 255, 0.05);
        border: 1px solid rgba(255, 255, 255, 0.08) !important;
        cursor: pointer;
        color: #ddd;
    }

    .side-nav .nav-tab.active {
        background: #04bcc9 !important; 
        color: #fff !important;
        font-weight: bold;
    }

    /* Area Panel Tautan */
    .mega-content {
        width: 100%;
    }

    .category-pane {
        display: none;
    }
    .category-pane.active {
        display: block;
    }

    .category-grid {
        display: flex;
        flex-direction: column;
        gap: 8px;
    }

    .category-grid .col {
        display: flex;
        flex-direction: column;
        gap: 8px;
        width: 100%;
    }

    /* Kotak Desain Tombol Link Pemerintah Modern */
    .category-grid a {
        background: rgba(255, 255, 255, 0.04);
        padding: 12px 15px !important;
        border-radius: 6px;
        border-left: 3px solid #00f7ff; 
        font-size: 13px;
        display: block;
    }

    .category-grid a p {
        display: none !important;
    }
}


.drawer-header-mobile {
    display: none; /* Desktop tidak akan pernah melihat ini kawan */
}

/* ==========================================================================
   KHUSUS MODE MOBILE (HANYA AKTIF DI BAWAH 992PX)
   ========================================================================== */
@media screen and (max-width: 992px) {
    
    /* 1. Paksa Tampilan Header Image Muncul di Paling Atas Drawer Mobile */
    .drawer-header-mobile {
        display: flex !important;
        position: relative;
        width: 100%;
        height: 150px;
        background: url('https://images.unsplash.com/photo-1618005182384-a83a8bd57fbe?q=80&w=600') center/cover no-repeat;
        align-items: flex-end;
        padding: 15px;
        box-sizing: border-box;
    }

    .drawer-banner-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: linear-gradient(to bottom, rgba(0,0,0,0.1), #0d1b2a);
        z-index: 1;
    }

    .drawer-profile-box {
        position: relative;
        z-index: 2;
        display: flex;
        align-items: center;
        gap: 12px;
    }

    .drawer-avatar {
        width: 48px;
        height: 48px;
        border-radius: 50%;
        object-fit: cover;
        border: 2px solid #04bcc9;
    }

    .drawer-meta h4 {
        color: #ffffff !important;
        font-size: 14px !important;
        font-weight: 700 !important;
        margin: 0 0 2px 0 !important;
    }

    .drawer-meta p {
        color: #a2a8bc !important;
        font-size: 11px !important;
        margin: 0 0 4px 0 !important;
    }

    .status-badge {
        display: inline-flex;
        align-items: center;
        gap: 4px;
        background: rgba(4, 188, 201, 0.2);
        color: #00f7ff;
        font-size: 9px;
        padding: 1px 6px;
        border-radius: 10px;
        font-weight: bold;
    }

    .status-badge .dot {
        width: 5px;
        height: 5px;
        background-color: #00f7ff;
        border-radius: 50%;
    }

    /* 2. Sesuaikan Wadah Nav Menu bawaanmu agar Menjadi Laci Samping yang Rapi */
    nav.nav-menu {
        position: fixed !important;
        top: 0 !important;
        right: 0 !important;
        width: 290px !important;
        height: 100vh !important;
        background: #0d1b2a !important; /* Latar belakang laci mobile biar kontras */
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
        align-items: stretch !important;
        transform: translateX(100%);
        transition: transform 0.3s ease-in-out;
        box-shadow: -5px 0 15px rgba(0,0,0,0.3);
        padding: 0 !important; /* Reset padding agar image banner pas di pojok */
    }

    /* Ketika burger di-klik, kelas aktif digeser masuk */
    nav.nav-menu.active {
        transform: translateX(0) !important;
    }

    /* Tata Letak List Menu UL bawaanmu khusus di mobile */
    nav.nav-menu > ul {
        flex-direction: column !important;
        padding: 15px 10px !important;
        gap: 8px !important;
        margin: 0 !important;
        width: 100% !important;
        box-sizing: border-box;
    }

    nav.nav-menu > ul > li {
        width: 100% !important;
    }

    nav.nav-menu > ul > li > a.nav-link {
        display: block !important;
        padding: 10px 15px !important;
        color: #ffffff !important;
        border-radius: 6px !important;
        font-size: 14px !important;
        text-decoration: none !important;
    }

    nav.nav-menu > ul > li > a.nav-link:hover {
        background: rgba(255, 255, 255, 0.08) !important;
    }
}


/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    /* Pastikan tidak ada margin/padding sama sekali */
    margin: 0;
    padding: 0;
}


.slide-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Gambar di dalam slide juga harus mengisi 100% tinggi */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Pastikan overlay juga menempel ke atas */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(120, 0, 120, 0.4));
    z-index: 1;
}



.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    line-height: 2px;
}

.hero-content h1{
    font-family: "Alfa Slab One", serif;
    font-weight: 400;
    font-style: normal;
    color: red;

}

.hero-content span{
    color: #fff;
    font-family: "Alfa Slab One", serif;
    font-weight: 400;
    font-style: normal;
}

.hero-logo {
    width: 380px;
    height: 380px;
    margin-bottom: 0px;
    padding-top: 5px;
}

.logo img {
    display: block;
    object-fit: contain;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Search Bar */
.search-container {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.search-container input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    outline: none;
}

.search-container button {
    background: #004d8c;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: 0.3s;
}

.search-container button:hover {
    background: #003366;
}


/* ==========================================================================
   KHUSUS RESPONSIVE BREAKPOINTS (MOBILE & TABLET)
   ========================================================================== */

/* --- Tablet & HP Android/iOS Umum (Layar di bawah 768px) --- */
@media (max-width: 768px) {
    /* Reset line-height bawaan desktop yang terlalu rapat */
    .hero-content {
        line-height: normal; 
        display: flex;
        flex-direction: column;
        align-items: center;
        padding: 0 24px;
    }

    /* Ukuran font h1 & p yang lebih proporsional di tablet */
    .hero-content h1 {
        font-size: 1.8rem;
        line-height: 1.3;
        margin-bottom: 10px;
    }

    .hero p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    /* Perkecil ukuran kontainer logo agar tidak dominan */
    .hero-logo {
        width: 240px; 
        height: 240px;
        margin-bottom: 10px;
    }

    /* Search Bar gaya Glassmorphism untuk Tablet */
    .search-container {
        width: 95%;
        max-width: 500px;
        
        padding: 5px;
    }

    .search-container input {
        color: #fff;
        padding: 12px 15px;
        font-size: 0.95rem;
    }
    
    .search-container input::placeholder {
        color: rgba(255, 255, 255, 0.7);
    }
}

/* --- HP Layar Kecil / Mode Potret (Layar di bawah 480px) --- */
@media (max-width: 480px) {
    /* Teks sub-logo disesuaikan */
    .logo-sub span { font-size: 14px; }
    .logo-sub p { font-size: 11px; }

    /* Logo dibuat minimalis namun tetap tegas */
    .hero-logo {
        width: 160px;
        height: 160px;
    }

    /* Font h1 dibuat tegas dan pas di satu/dua baris layar HP */
    .hero-content h1 {
        font-size: 1.4rem;
        line-height: 1.2;
    }

    .hero p {
        font-size: 0.9rem;
        opacity: 0.85;
    }

    /* PERUBAHAN UTAMA: Search Bar Bertumpuk yang Modern (Bukan Kotak Kaku) */
    .search-container {
        flex-direction: column; 
        background: rgba(255, 255, 255, 0.08); /* Efek kaca super soft */
        border-radius: 20px;
        padding: 8px;
        gap: 8px; /* Jarak antara input dan tombol */
        box-shadow: 0 10px 25px rgba(0,0,0,0.2);
    }

    /* Input dibuat transparan melengkung di dalam container */
    .search-container input {
        background: rgba(255, 255, 255, 0.1);
        border-radius: 14px;
        text-align: center; /* Teks placeholder di tengah agar lebih estetik */
        padding: 12px;
        width: 100%;
        color: #fff;
    }

    /* Tombol kirim full-width yang nyaman ditekan jempol */
    .search-container button {
        background: #0066cc;
        border-radius: 14px;
        padding: 12px;
        width: 100%;
        font-weight: 600;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 12px rgba(0, 102, 204, 0.3);
    }
    
    .search-container button:hover {
        background: #0052a3;
    }
}


/* Hero Section */
.hero {
    height: 100vh;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
    overflow: hidden;
    /* Pastikan tidak ada margin/padding sama sekali */
    margin: 0;
    padding: 0;
}


.slide-wrapper {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Gambar di dalam slide juga harus mengisi 100% tinggi */
.slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}

.slide.active {
    opacity: 1;
}

/* Pastikan overlay juga menempel ke atas */
.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(120, 0, 120, 0.4));
    z-index: 1;
}



.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 20px;
    line-height: 2px;
}

.hero-content h1{
    font-family: "Alfa Slab One", serif;
    font-weight: 400;
    font-style: normal;
    color: red;

}

.hero-content span{
    color: #fff;
    font-family: "Alfa Slab One", serif;
    font-weight: 400;
    font-style: normal;
}

.hero-logo {
    width: 380px;
    height: 380px;
    margin-bottom: 0px;
    padding-top: 5px;
}

.logo img {
    display: block;
    object-fit: contain;
}

.hero h1 {
    font-size: 2rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.hero p {
    font-size: 1.1rem;
    margin-bottom: 30px;
    line-height: 1.6;
    opacity: 0.9;
}

/* Search Bar */
.search-container {
    display: flex;
    background: white;
    border-radius: 50px;
    overflow: hidden;
    max-width: 600px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

.search-container input {
    flex: 1;
    border: none;
    padding: 15px 25px;
    font-size: 1rem;
    outline: none;
}

.search-container button {
    background: #004d8c;
    color: white;
    border: none;
    padding: 0 25px;
    cursor: pointer;
    transition: 0.3s;
}

.search-container button:hover {
    background: #003366;
}



/* bagian mega menu */
.nav-item {
    position: static; /* Penting untuk Mega Menu Full Width */
    padding-bottom: 25px; /* Jembatan area hover */
    margin-bottom: -25px;
}

/* Mega Menu Container */
.mega-menu {
    position: absolute;
    top: 100%;
    left: 10px; 
    right: 10px;
    width: calc(100% - 20px); /* Total lebar dikurangi margin kiri+kanan (10px + 10px) */
    background: #fff;
    backdrop-filter: blur(15px);
    border-top: 1px solid #eee;
    box-shadow: 0 15px 30px rgba(0,0,0,0.1);
    display: none; /* Sembunyikan awal */
    z-index: 999;
    padding: 10px 0;
    color: #333;
    animation: fadeIn 0.3s ease;
    border-bottom-left-radius: 15px;
    border-bottom-right-radius: 15px;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* Tampilkan saat Hover pada Link */
.nav-item:hover .mega-menu {
    display: block;
}

.mega-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 40px;
    padding: 0 20px;
}

/* Sidebar Kiri */
.mega-sidebar {
    border-right: 1px solid #eee;
    padding-right: 20px;
}

.toggle-switch {
    
    border-radius: 25px;
    display: flex;
    padding: 4px;
    margin-bottom: 25px;
}

.toggle-switch button {
    flex: 1;
    border: none;
    padding: 8px;
    border-radius: 5px;
    cursor: pointer;
    font-size: 0.9rem;
    background: transparent;
    transition: 0.3s;
    color: #000;
}

.toggle-switch button.active {
    background: #dadada;
    color: white;
}

.side-nav {
    display: flex;
    flex-direction: column; /* MEMAKSA MENU KE BAWAH */
    list-style: none;
    padding: 0;
    margin-top: 15px;
}

.side-nav li {
    padding: 12px 15px;
    cursor: pointer;
    font-size: 1rem;
    color: #666;
    border-radius: 5px;
    transition: all 0.3s ease;
    width: 100%; /* Memenuhi lebar sidebar */
    display: block; /* Menghindari display inline dari style navbar luar */
}

.side-nav li:hover {
    background: rgba(21, 148, 148, 0.63);
    color: #000;
}

/* State Saat Aktif (Setelah Diklik) */
.side-nav li.active {
    color: #fff;
    font-weight: bold;
    background: rgba(11, 117, 117, 0.63);

}

.side-nav li.bold { font-weight: bold; color: #000; }
.side-nav i{font-size: 18px;font-weight: 600;color: #48ff00;}


/* Grid Konten Kategori */
.category-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    padding: 5px;
}

.category-grid .col a {
    display: block;
    text-decoration: none;
    color: #000;
    font-weight: 600;
    font-size: 1.05rem;
    margin-bottom: 45px; /* Jarak renggang sesuai gambar */
    transition: 0.2s;
    padding: 12px 15px;
    border-radius: 5px;
}

.category-grid .col a i{
    margin-right: 8px;
    font-size: 18px;
    color: #fe0000;
}

.category-grid .col a p{
    margin-left: 28px;
    margin-top: 5px;
    font-size: 11px;
    color: #979797;

}

.category-grid .col a:hover {
    color: #004d8c;
    background: #eee;
    padding: 12px 15px; 
    border-radius: 5px;
}


.category-pane {
    display: none;
    animation: fadeIn 0.3s ease;
}

.category-pane.active {
    display: block; /* Hanya tampil jika ada class active */
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateX(10px); }
    to { opacity: 1; transform: translateX(0); }
}






/* Floating Sidebar */
.social-sidebar {
    position: absolute;
    right: 30px;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    flex-direction: column;
    gap: 20px;
    z-index: 10;
}



.social-sidebar a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    background: #f5f5f5; /* Warna dasar abu-abu terang */
    color: #333;         /* Warna ikon dasar */
    border-radius: 50%;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-sidebar a:nth-child(1):hover {
    color: #fff;
    background: #0061ff;
    transform: scale(1.1);
}

/* Instagram - Oranye/Pink */
.social-sidebar a:nth-child(2):hover {
    color: #fff;
    background: #ff3300;
    transform: scale(1.1);
}

/* Youtube - Merah */
.social-sidebar a:nth-child(3):hover {
    color: #fff;
    background: #ff0000;
    transform: scale(1.1);
}


/* Definisikan Warna Utama tiap Item */
.item-prasarana:nth-child(1) { --main-color: #0061ff; }
.item-prasarana:nth-child(2) { --main-color: #ff3300; }
.item-prasarana:nth-child(3) { --main-color: #5eff00; }
.item-prasarana:nth-child(4) { --main-color: #00ffff; }
.item-prasarana:nth-child(5) { --main-color: #e100ff; }
.item-prasarana:nth-child(6) { --main-color: #ffc400; }

/* Satu aturan hover untuk semua */
.item-prasarana:hover {
    border-color: var(--main-color);
    background-color: #f9f9f9; /* Opsional: background agak terang saat hover */
    transform: translateY(-5px);
}

.item-prasarana:hover p {
    color: var(--main-color);
}

.item-prasarana:hover i {
    background: var(--main-color); /* Lingkaran icon berubah warna */
    color: #fff;
}

/* Ribbon juga mengikuti warna item jika mau */
.item-prasarana:hover .ribbon {
    filter: brightness(1.2); /* Membuat ribbon sedikit lebih terang saat hover */
}

/* Footer 4 Kolom */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 60px 0 20px;
    font-family: sans-serif;
}

.footer-container {
    display: flex;
    flex-direction: column; /* Memastikan peta di atas, menu di bawah */
    max-width: 1200px;
    margin: 0 auto;
    gap: 40px;
    padding: 0 20px;
}

.footer-container h4
{
    text-align: center;
    font-size: 22px;
}

.footer-container span{
    color: #ffee00;
}

.footer_sub {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    width: 100%;
}


/* KODE BAGIAN PETA*/
.peta-birkas {
    width: 100%;
}

#peta-footer {
    width: 100%;
    height: 350px; 
    border-radius: 12px;
    filter: hue-rotate(180px) brightness(0.8) contrast(1.2);
}

        .radio-container {
            position: absolute;
            width: 0;
            height: 0;
            display: block; 
        }

        /* Elemen Foto Bangunan Kantor sebagai Titik Pusat */
        .center-image {
            width: 32px;        /* Ukuran lingkaran foto dinaikkan agar jelas terlihat */
            height: 32px;
            border: 2px solid white;
            border-radius: 50%;
            position: absolute;
            z-index: 10;
            box-shadow: 0 2px 8px rgba(0,0,0,0.3);
            object-fit: cover;  /* Memastikan gambar tidak gepeng */
            
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); 
        }

        /* Efek Gelombang Lingkaran Sempurna (Memancar dari belakang foto) */
        .wave {
            position: absolute;
            border: 2px solid #4285F4;
            border-radius: 50%;
            opacity: 0;
            box-sizing: border-box;
            z-index: 1; /* Di bawah foto */
            
            top: 50%;
            left: 50%;
            transform: translate(-50%, -50%); 
            animation: radioWave 3s infinite linear; 
        }

        .wave:nth-child(2) { animation-delay: 0.75s; }
        .wave:nth-child(3) { animation-delay: 1.5s; }
        .wave:nth-child(4) { animation-delay: 2.25s; }

        @keyframes radioWave {
            0% {
                width: 32px;
                height: 32px;
                opacity: 1;
            }
            100% {
                width: 140px; 
                height: 140px; 
                opacity: 0;
            }
        }

        
/* ======================================================= */
/* LABELS & JAM OPERASIONAL       */
/* ======================================================= */

.label-peta {
    background: white !important;
    border: 1px solid #ccd1d9 !important;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
    border-radius: 8px;
    padding: 10px 12px;
    font-family: Arial, sans-serif;
    overflow: visible !important; /* Memastikan segitiga tidak terpotong */
}

/* Menyembunyikan panah bawaan Leaflet agar tidak double */
.label-peta::before {
    display: none !important;
}

/* Membuat Segitiga Kecil Kustom di Bawah Kotak Label */
.label-peta::after {
    content: "";
    position: absolute;
    bottom: -8px; /* Menggeser segitiga ke bawah batas kotak */
    left: 50%;
    transform: translateX(-50%); /* Memastikan segitiga berada tepat di tengah horizontal */
    
    /* Teknik CSS Triangle */
    border-width: 8px 8px 0; /* Ukuran segitiga (lebar & tinggi) */
    border-style: solid;
    border-color: white transparent transparent; /* Warna putih mengikuti background label */
    display: block;
    width: 0;
    z-index: 11;
}

/* Membuat Bayangan Tipis di Belakang Segitiga agar Selaras dengan Box-Shadow Label */
.label-peta-shadow {
    display: none !important; /* Mematikan shadow bawaan leaflet agar tidak merusak estetika */
}

        .tooltip-title-kelurahan {
            color: #1a73e8 !important;
            font-size: 13px;
            font-weight: bold;
            margin-bottom: 6px;
            display: block;
            border-bottom: 1px solid #eee;
            padding-bottom: 4px;
        }

        .jam-operasional-table {
            font-size: 11px;
            color: #5f6368;
            border-collapse: collapse;
            width: 100%;
        }

        .jam-operasional-table td {
            padding: 2px 0;
        }

        .jam-operasional-table .hari {
            font-weight: bold;
            padding-right: 15px;
            color: #3c4043;
        }

        .status-buka {
            color: #137333 !important; /* Warna hijau khas Google Maps untuk status buka */
            font-weight: bold;
            font-size: 11px;
            margin-top: 4px;
            display: block;
        }

/* Header Footer & Efek Underline */
.footer-column h3 {
    font-size: 1.1rem;
    margin-bottom: 20px;
    color: #f1f1f1;
    position: relative;
    padding-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.footer-column h3::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 50px; /* Panjang garis underline */
    height: 3px;  /* Ketebalan garis */
    background: #004d8c; /* Warna aksen biru */
    border-radius: 2px;
}

.footer-column ul {
    list-style: none;
    padding: 0;
}

.footer-column ul li {
    margin-bottom: 12px;
}

.footer-column ul li a {
    color: #bbb;
    text-decoration: none;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.footer-column ul li a:hover {
    color: white;
    padding-left: 8px; /* Efek geser saat hover */
}

.footer-column p {
    font-size: 0.9rem;
    color: #bbb;
    line-height: 1.6;
}

.footer-socials {
    margin-top: 20px;
    display: flex;
    gap: 20px;
}

.footer-socials a {
    color: white;
    font-size: 1.3rem;
    transition: transform 0.3s;
}

.footer-socials a:hover {
    transform: translateY(-3px);
    color: #004d8c;
}

.footer-bottom {
    text-align: center;
    margin-top: 60px;
    padding-top: 25px;
    border-top: 1px solid #333;
    font-size: 0.85rem;
    color: #666;
}



/* ANIMASI */
@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cubeLoop {
    0%, 13%    { transform: translateZ(-70px) rotateX(0deg); }
    16%, 29%   { transform: translateZ(-70px) rotateX(60deg); }
    33%, 46%   { transform: translateZ(-70px) rotateX(120deg); }
    50%, 63%   { transform: translateZ(-70px) rotateX(180deg); }
    66%, 79%   { transform: translateZ(-70px) rotateX(240deg); }
    83%, 96%   { transform: translateZ(-70px) rotateX(300deg); }
    100%       { transform: translateZ(-70px) rotateX(360deg); }
}



.penduk_lembang{
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 40px 0 50px;
    width: 100%;
    background: #fff;
}


/* ==========================================================================
   KHUSUS RESPONSIVE FOOTER & PETA LEAFLET (MODE 2 KOLOM DI MOBILE)
   ========================================================================== */

/* --- Layar Tablet / iPad (Max Width: 992px) --- */
@media (max-width: 992px) {
    .footer {
        padding: 40px 0 20px; /* Kurangi padding atas footer desktop */
    }

    .footer-container {
        gap: 30px;
    }

    /* Setel menu footer menjadi 2 kolom di tablet */
    .footer_sub {
        grid-template-columns: repeat(2, 1fr);
        gap: 30px;
    }

    #peta-footer {
        height: 300px; /* Sedikit rampingkan peta di tablet */
    }
}

/* --- Layar HP Android & iOS Umum (Max Width: 768px) --- */
@media (max-width: 768px) {
    .footer {
        padding: 30px 0 15px;
    }

    .footer-container h4 {
        font-size: 18px; /* Sesuaikan ukuran judul utama footer */
    }

    /* SOLUSI: Mengunci area menu link info agar SELALU TAMPIL 2 KOLOM di HP */
    .footer_sub {
        grid-template-columns: repeat(2, 1fr);
        gap: 25px 15px; /* Jarak horizontal 15px agar tidak meluber, vertikal 25px */
    }

    /* Rampingkan tinggi peta Leaflet agar ramah jempol saat scroll di HP */
    #peta-footer {
        height: 240px; 
        border-radius: 8px;
    }

    /* Animasi lingkaran gelombang radio disesuaikan skalanya di HP */
    @keyframes radioWave {
        0% {
            width: 24px;
            height: 24px;
            opacity: 1;
        }
        100% {
            width: 90px; /* Diturunkan dari 140px agar gelombang pas di layar kecil */
            height: 90px;
            opacity: 0;
        }
    }

    /* --------------------------------------------------- */
    /* OPTIMASI TOOLTIP JAM OPERASIONAL DI DALAM HP        */
    /* --------------------------------------------------- */
    .label-peta {
        padding: 8px 10px;
        max-width: 180px; /* Batasi lebar kotak agar tidak melebihi layar HP */
    }

    .tooltip-title-kelurahan {
        font-size: 11px;
        margin-bottom: 4px;
    }

    .jam-operasional-table {
        font-size: 10px; /* Kecilkan teks tabel sedikit agar tidak patah berantakan */
    }

    .jam-operasional-table .hari {
        padding-right: 8px;
    }

    .status-buka {
        font-size: 10px;
        margin-top: 2px;
    }

    /* --------------------------------------------------- */
    /* PENYUSUNAN STRUKTUR TEKS MENU FOOTER                */
    /* --------------------------------------------------- */
    .footer-column h3 {
        font-size: 0.95rem; /* Perkecil judul kolom (Hubungi Kami, Link, dll) */
        margin-bottom: 15px;
    }

    .footer-column h3::after {
        width: 35px; /* Pendekkan garis dekorasi underline */
        height: 2px;
    }

    .footer-column ul li {
        margin-bottom: 8px; /* Lebih rapat agar ringkas */
    }

    .footer-column ul li a, 
    .footer-column p {
        font-size: 0.8rem; /* Font tautan & deskripsi disesuaikan ke standar mobile */
    }

    .footer-socials {
        gap: 15px;
        margin-top: 15px;
    }

    .footer-socials a {
        font-size: 1.15rem;
    }

    /* Hak Cipta / Copyright bawah */
    .footer-bottom {
        margin-top: 40px;
        padding-top: 20px;
        font-size: 0.75rem;
    }
}

/* --- Layar HP Sangat Mungil (Max Width: 360px) --- */
@media (max-width: 360px) {
    /* Jika layar terlampau sempit, perkecil ruang gap menu */
    .footer_sub {
        gap: 20px 10px;
    }
    
    .footer-column h3 {
        font-size: 0.85rem;
    }
    
    #peta-footer {
        height: 200px;
    }
}


.slider-dots {
    position: absolute;
    bottom: 10px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 4;
}

.dot {
    width: 8px;
    height: 8px;
    background: rgba(255, 255, 255, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: #fff;
    transform: scale(1.3); /* Sedikit membesar saat aktif */
}

.nav-link i{
    margin-left: 5px;
    font-size: 12px;
}

.nav-tab {
    padding: 12px 15px;
    cursor: pointer;
    border-radius: 8px;
    transition: 0.3s;
    color: #555;
    font-weight: 500;
}

/* Efek Hover */
.nav-tab:hover {
    background: rgba(0, 0, 0, 0.05);
    padding-left: 20px; /* Efek bergeser sedikit */
}

.nav-tab.active {
    background: #004d8c;
    color: white;
}

.nav-tab i
{
    margin-right: 8px;
    font-size: 12px;
}

/* BAGIAN INFO SEMBAKO */
.info-sembako {
    display: flex;
    justify-content: center;
    padding: 20px;
    /* Hilangkan margin-top negatif jika tidak ingin menimpa elemen atas */
    position: relative;
}

.panel-info-sembako {
   width: 90%;
    height: 80px;
    background: linear-gradient(135deg, #0f0c29, #302b63, #24243e);
    backdrop-filter: blur(10px); /* Efek blur kaca */
    -webkit-backdrop-filter: blur(10px); /* Dukungan Safari */
    border: 1px solid rgba(255, 255, 255, 0.1); /* Garis tepi halus agar efek kaca terasa */
    
    border-radius: 6px;
    position: absolute;
    top: -40px;
    left: 50%; /* Tambahkan ini agar center jika absolute */
    transform: translateX(-50%); /* Tambahkan ini agar center jika absolute */
    overflow: hidden; 
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.5);
    z-index: 5;
    perspective: 1000px; 
    display: flex;
    align-items: center;
}

.label-sembako {
    background: #fff; /* Warna kuning kontras */
    color: #bb5a00;    /* Warna coklat sesuai tema */
    height: 100%;
    display: flex;
    align-items: center;
    text-align: center;
    padding: 0 20px;
    font-weight: 800;
    font-size: 14px;
    white-space: nowrap;
    text-transform: uppercase;
    clip-path: polygon(0 0, 90% 0, 100% 100%, 0% 100%); /* Efek miring di ujung kanan */
    z-index: 10;
    box-shadow: 5px 0 15px rgba(0,0,0,0.2);
}

.cube-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    /* Durasi total: makin banyak baris, tambahkan sedikit detiknya agar bisa terbaca */
    animation: cubeLoop 18s infinite cubic-bezier(0.85, 0, 0.15, 1);
}

.sembako-row {
    position: absolute;
    width: 100%;
    height: 80px;
    backface-visibility: hidden;
    /* Kita atur agar semua baris menumpuk di tengah sebelum diputar */
    top: 0;
    left: 0;
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    align-items: center;
}



.sembako-row:nth-child(1) { transform: rotateX(0deg) translateZ(60px); }
.sembako-row:nth-child(2) { transform: rotateX(-60deg) translateZ(60px); }
.sembako-row:nth-child(3) { transform: rotateX(-120deg) translateZ(60px); }
.sembako-row:nth-child(4) { transform: rotateX(-180deg) translateZ(60px); }
.sembako-row:nth-child(5) { transform: rotateX(-240deg) translateZ(60px); }
.sembako-row:nth-child(6) { transform: rotateX(-300deg) translateZ(60px); }

/* ANIMASI PUTARAN 6 TAHAP */
@keyframes cubeLoop {
    0%, 13% { transform: translateZ(-60px) rotateX(0deg); }
    16%, 30% { transform: translateZ(-60px) rotateX(60deg); }
    33%, 46% { transform: translateZ(-60px) rotateX(120deg); }
    50%, 63% { transform: translateZ(-60px) rotateX(180deg); }
    66%, 80% { transform: translateZ(-60px) rotateX(240deg); }
    83%, 96% { transform: translateZ(-60px) rotateX(300deg); }
    100% { transform: translateZ(-60px) rotateX(360deg); }
}

/* Styling Detail Item agar rapi di 6 kolom */
.sembako-item {
    display: flex;
    align-items: center;
    gap: 8px;
    border-right: 1px solid rgba(255, 255, 255, 0.1); /* Border pemisah transparan */
    overflow: hidden;
}

.sembako-item:last-child { border-right: none; }

.sembako-item img {
    width: 45px;
    height: 45px;
    border-radius: 5px;
    background: #fff;
    padding: 2px;
    flex-shrink: 0;
}

.sembako-detail .nama {
    display: block;
    font-size: 12px; /* Ukuran diperkecil agar muat 6 kolom */
    color: rgba(255, 255, 255, 0.9) !important;
    text-transform: uppercase;
    white-space: nowrap;
    color: white;
    font-weight: 600;
}

.sembako-detail .harga {
    font-size: 12px;
    color: #ffee00;
    font-weight: bold;
}

/* Berhenti saat hover */
.panel-info-sembako:hover .cube-container {
    animation-play-state: paused;
}


/* Hitungan Jarak translateZ untuk 6 sisi dengan tinggi 80px adalah sekitar 70px agar sambungan pas */
.sembako-row:nth-child(1) { transform: rotateX(0deg) translateZ(70px); }
.sembako-row:nth-child(2) { transform: rotateX(-60deg) translateZ(70px); }
.sembako-row:nth-child(3) { transform: rotateX(-120deg) translateZ(70px); }
.sembako-row:nth-child(4) { transform: rotateX(-180deg) translateZ(70px); }
.sembako-row:nth-child(5) { transform: rotateX(-240deg) translateZ(70px); }
.sembako-row:nth-child(6) { transform: rotateX(-300deg) translateZ(70px); }

@keyframes cubeLoop {
    /* Setiap step naik 60 derajat */
    0%, 13%    { transform: translateZ(-70px) rotateX(0deg); }
    16%, 29%   { transform: translateZ(-70px) rotateX(60deg); }
    33%, 46%   { transform: translateZ(-70px) rotateX(120deg); }
    50%, 63%   { transform: translateZ(-70px) rotateX(180deg); }
    66%, 79%   { transform: translateZ(-70px) rotateX(240deg); }
    83%, 96%   { transform: translateZ(-70px) rotateX(300deg); }
    100%       { transform: translateZ(-70px) rotateX(360deg); }
}

/* Update cube-container untuk durasi yang lebih pas dengan 6 baris */
.cube-container {
    width: 100%;
    height: 100%;
    position: relative;
    transform-style: preserve-3d;
    animation: cubeLoop 18s infinite cubic-bezier(0.85, 0, 0.15, 1);
}


/* BAGIAN DATA KELURAHAN*/
.data-kelurahan {
    display: grid;
    padding: 30px 60px;
    width: 100%;
    position: relative;
}

.data-kelurahan .head-kelurahan
{
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 10px;
}

.data-kelurahan .image-kelurahan
{
    width:160px;
    height:150px;
    border-radius:50%;  
}

.data-kelurahan .image-kelurahan-kiri
{
    width:150px;
    height:150px;
    border-radius:50%;  
}



/* BAGIAN ACCORDION SLIDER */
.accordion {
    width: 100%;
    height: 350px;
    overflow: hidden;
    margin: 10px auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.accordion ul {
    width: 100%;
    display: table;
    table-layout: fixed;
    margin: 0;
    padding: 0;
}

.accordion li {
   display: table-cell;
    vertical-align: bottom;
    position: relative;
    width: 16.66%;
    height: 350px;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    
    /* PERBAIKAN: Gunakan durasi lebih lama dan timing function yang lebih smooth */
    transition: width 700ms cubic-bezier(0.25, 1, 0.3, 1);
}

/* Link & Content Styling */
.accordion li div {
    display: block;
    overflow: hidden;
    width: 100%;
}

.accordion li div a {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    height: 350px;
    width: 100%;
    padding: 30px; /* Tambah padding agar lebih lega */
    box-sizing: border-box;
    text-decoration: none;
    background: linear-gradient(to bottom, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 100%);
    
    /* Overlay transisi */
    transition: background 500ms ease;
}

/* Grouping Teks (H2 & P) */
.text-content {
    display: flex;
    flex-direction: column; /* Membuat h2 di atas, p di bawah */
    align-items: flex-start; /* INI KUNCINYA: Memaksa semua anak ke kiri */
    text-align: left;        /* Memastikan teks tidak center */
    margin: 0;
    padding: 0;
}

.text-content h4 {
    font-family: "Oleo Script", system-ui;
    font-weight: 700;
    font-style: normal;
    font-size: 33px; 
    font-weight: bolder;
    color: #00e1ff;
    margin: 0;
    opacity: 0;
    transform: translateX(-30px); /* Ganti arah dari samping agar lebih keren */
    transition: all 600ms cubic-bezier(0.25, 1, 0.3, 1) 200ms; /* Delay muncul */
}

.text-content p {
    font-size: 15px;
    line-height: 1.5;
    color: rgba(255,255,255,0.8);
    max-width: 400px; /* Batasi lebar teks agar rapi */
    margin: 10px 0 0 0;
    opacity: 0;
    transform: translateX(-30px);
    transition: all 600ms cubic-bezier(0.25, 1, 0.3, 1) 300ms; /* Delay lebih lama dari judul */
}


.isi-data-penduduk {
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
            padding: 60px 0;
            
        }

        .carousel-wrapper {
            position: relative;
            width: 95%;
            max-width: 1300px;
            margin: 0 auto;
            min-height: 450px; /* Menjaga tinggi agar tidak goyang saat ganti grup */
        }

        /* CONTAINER GRUP */
        .stats-container {
            position: relative;
            width: 100%;
            height: 100%;
            cursor: pointer;
        }

        /* GRID SYSTEM (5 Kolom x 2 Baris) */
        .stats-page-group {
            display: grid;
            grid-template-columns: repeat(5, 1fr);
            width: 100%;
            transition: opacity 0.5s ease, transform 0.5s ease;
            border-left: 1px solid #eee;
            border-top: 1px solid #eee;
        }

        /* LOGIKA TUKAR GRUP */
        .group-active {
            position: relative;
            opacity: 1;
            visibility: visible;
            transform: translateX(0);
            z-index: 2;
        }

        .group-hidden {
            position: absolute;
            top: 0;
            left: 0;
            opacity: 0;
            visibility: hidden;
            transform: translateX(20px); /* Efek sedikit geser saat hilang */
            z-index: 1;
        }

        /* STYLE CARD & HOVER ASLI */
        .stat-card {
            background-color: #ffffff;
            padding: 40px 20px;
            text-align: center;
            position: relative;
            border-right: 1px solid #eee;
            border-bottom: 1px solid #eee;
            cursor: pointer;
            overflow: hidden;
        }

        /* Animasi Garis Hijau dari Tengah */
        .stat-card::after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            width: 0;
            height: 4px;
            background-color: #26c19e;
            transition: width 0.4s ease, left 0.4s ease;
        }

        .stat-card:hover::after {
            width: 100%;
            left: 0;
        }

        .stat-card:hover {
            background-color: #f9fdfb;
        }
        
        .icon img {
            width: 65px;
            height: 65px;
            border-radius: 50%;
            padding: 5px;
            border: 1px dashed #757575;
            margin-bottom: 15px;
        }

        .count {
            font-size: 38px;
            font-weight: 800;
            color: #256148;
            display: inline-block;
            transition: all 0.3s ease;
             font-family: "Libre Bodoni", serif;
            font-style: normal;
        }

        .count-laki {
            font-size: 38px;
            font-weight: 800;
            color: #00bdbd;
            display: inline-block;
            transition: all 0.3s ease;
             font-family: "Libre Bodoni", serif;
            font-style: normal;
        }

        .count-perempuan {
            font-size: 38px;
            font-weight: 800;
            color: #ff00c8;
            display: inline-block;
            transition: all 0.3s ease;
             font-family: "Libre Bodoni", serif;
            font-style: normal;
        }

        .count-total {
            font-size: 38px;
            font-weight: 800;
            color: #ff0077;
            display: inline-block;
            transition: all 0.3s ease;
            font-family: "Libre Bodoni", serif;
            font-style: normal;
        }

        .unit {
            font-size: 14px;
            font-weight: 600;
            color: #1b4332;
            margin-left: 5px;
        }

        .label {
            font-size: 11px;
            font-weight: 700;
            color: #6c757d;
            text-transform: uppercase;
            letter-spacing: 1.2px;
        }

        /* TOMBOL NAVIGASI */
        .nav-btn {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
            width: 45px;
            height: 45px;
            background-color: var(--dark-green);
            color: #fff;
            border: none;
            border-radius: 50%;
            cursor: pointer;
            z-index: 100;
            display: flex;
            align-items: center;
            justify-content: center;
            box-shadow: 0 4px 10px rgba(0,0,0,0.3);
            transition: all 0.3s ease;
        }

        .nav-btn:hover { background-color: #26c19e; transform: translateY(-50%) scale(1.1);}

        /* Sembunyikan Tombol */
        .btn-hide {
            opacity: 0;
            visibility: hidden;
            pointer-events: none;
        }

        .prev { left: -22px; }
        .next { right: -22px; }

        .nav-btn svg { width: 20px; height: 20px; fill: currentColor; }

        /* --- Layar Tablet / iPad (Max Width: 992px) --- */
@media (max-width: 992px) {
    /* 1. Data Kelurahan */
    .data-kelurahan {
        padding: 20px 30px;
    }
    
    /* 2. Transformasi Accordion ke Mode Stack */
    .accordion {
        height: auto; /* Lepas batasan tinggi kaku desktop */
    }
    
    .accordion ul {
        display: flex;
        flex-direction: column; /* Ubah tabel horizontal menjadi baris vertikal */
    }
    
    .accordion li {
        display: block;
        width: 100% !important; /* Paksa lebar penuh */
        height: 200px; /* Tinggi yang ideal untuk tiap slide di HP */
    }
    
    .accordion li div a {
        height: 200px;
        padding: 20px;
    }
    
    /* Buat animasi teks konten langsung muncul di mobile tanpa nunggu hover */
    .text-content h4 {
        font-size: 24px;
        opacity: 1;
        transform: translateX(0);
    }
    
    .text-content p {
        font-size: 13px;
        opacity: 1;
        transform: translateX(0);
        max-width: 100%;
        margin-top: 5px;
    }

    /* 3. Grid Data Penduduk */
    .stats-page-group { 
        grid-template-columns: repeat(3, 1fr); /* Setel 3 kolom di tablet */
    }
}

/* --- Layar HP Android & iOS Umum (Max Width: 768px) --- */
@media (max-width: 768px) {
    /* 1. Penyesuaian Header Data Kelurahan (Foto Kiri & Kanan) */
    .data-kelurahan .head-kelurahan {
        flex-direction: column; /* Tumpuk foto ke bawah */
        gap: 15px;
        text-align: center;
    }

    .data-kelurahan .image-kelurahan,
    .data-kelurahan .image-kelurahan-kiri {
        width: 120px;  /* Perkecil sedikit ukuran foto agar proporsional */
        height: 120px;
    }

    /* 2. Optimasi Grid Data Penduduk Mobile */
    .isi-data-penduduk {
        padding: 30px 0;
    }

    .carousel-wrapper {
        min-height: auto; /* Lepas min-height agar tidak menyisakan ruang kosong */
    }

    .stats-page-group { 
        grid-template-columns: repeat(2, 1fr); /* Kunci 2 kolom agar rapi dan seimbang */
    }

    .stat-card {
        padding: 25px 15px; /* Rampingkan padding dalam kartu */
    }

    /* Penyesuaian Komponen Angka Statistik */
    .count, .count-laki, .count-perempuan, .count-total {
        font-size: 28px; /* Turunkan dari 38px agar angka tidak patah/meluber */
    }

    .icon img {
        width: 50px; /* Perkecil icon sedikit */
        height: 50px;
        margin-bottom: 10px;
    }

    .label {
        font-size: 10px;
        letter-spacing: 0.5px;
    }
}

/* --- Layar HP Kecil / Mode Potret Maksimal (Max Width: 480px) --- */
/* --- Layar HP Kecil / Mode Potret Maksimal (Max Width: 480px) --- */
@media (max-width: 480px) {
    /* 1. Area Data Kelurahan */
    .data-kelurahan {
        padding: 15px;
    }

    /* 2. SOLUSI DATA PENDUDUK: Kunci grid agar TETAP 2 KOLOM di HP kecil */
    .stats-page-group { 
        grid-template-columns: repeat(2, 1fr); 
    }
    
    /* Rampingkan padding kartu agar ruang untuk angka dan teks lebih luas */
    .stat-card {
        padding: 20px 10px;
    }

    /* Perkecil sedikit ukuran ikon di dalam kartu */
    .icon img {
        width: 45px;
        height: 45px;
        margin-bottom: 8px;
    }

    /* Kalibrasi ukuran angka agar pas dan tidak meluber keluar kotak */
    .count, .count-laki, .count-perempuan, .count-total {
        font-size: 22px; /* Skala diturunkan agar angka ribuan tetap aman dalam 1 baris */
    }

    .unit {
        font-size: 11px;
        margin-left: 3px;
    }

    .label {
        font-size: 9px;
        letter-spacing: 0.3px;
        line-height: 1.2;
    }

    /* 3. Penyesuaian Ukuran Accordion Slider di HP Kecil */
    .accordion li {
        height: 160px; /* Sedikit lebih pendek agar hemat ruang scroll */
    }

    .accordion li div a {
        height: 160px;
        padding: 15px;
    }
    
    .text-content h4 {
        font-size: 18px;
    }
    
    .text-content p {
        font-size: 12px;
    }
}
        
        
        
        
        
/*BAGIAN SARANA*/
.harga_komoditas {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 40px 60px;
    width: 100%;
    box-sizing: border-box; /* Memastikan padding tidak merusak lebar 100% */
}

.prasarana {
    display: flex;
    justify-content: center; /* Diubah ke center agar lebih rapi jika item sedikit */
    align-items: stretch;
    gap: 15px;
    width: 100%;
}

.item-prasarana {
    display: flex; /* Menggunakan flex lebih mudah untuk centering konten kartu */
    flex-direction: column;
    align-items: center; 
    justify-content: center;
    width: 100%;
    padding: 20px 50px;
    border: 1px solid #cecece;
    border-radius: 10px;
    gap: 20px;
    position: relative;
    text-align: center;
    transition: all 0.3s ease; /* Transisi halus untuk hover */

    position: relative; /* Pastikan ini ada */
    overflow: hidden;   /* Opsional: agar ribbon tidak keluar batas jika diinginkan */
    padding-top: 40px;
}

.ribbon {
    position: absolute;
    top: -5px; /* Sedikit naik ke atas untuk efek 'menyangkut' */
    right: 10px;
    background: linear-gradient(135deg, #ff416c, #ff4b2b); /* Warna gradasi modern */
    color: white;
    width: 50px;
    height: 40px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-weight: bold;
    font-size: 14px;
    z-index: 10;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
    
    /* Efek melengkung di bagian bawah */
    border-radius: 0 0 10px 10px; 
}

/* Efek Lipatan Ribbon di bagian atas (Membuat tampak seperti melipat dari belakang) */
.ribbon::before {
    content: "";
    position: absolute;
    top: 0;
    left: -8px;
    border-left: 8px solid transparent;
    border-bottom: 5px solid #b31217; /* Warna lebih gelap untuk bayangan lipatan */
}

.ribbon span {
    margin-top: 5px; /* Menyesuaikan posisi angka agar pas di tengah lengkungan */
    font-weight: 700;
}

/* Variasi warna berbeda jika ingin membedakan tiap kategori */
.item-prasarana:nth-child(2) .ribbon {
    background: linear-gradient(135deg, #4facfe, #00f2fe); /* Warna Biru */
}
.item-prasarana:nth-child(3) .ribbon {
    background: linear-gradient(135deg, #667eea, #764ba2); /* Warna Ungu */
}

.item-prasarana:nth-child(4) .ribbon {
    background: linear-gradient(135deg, #66dbea, #ec2c2c); /* Warna Ungu */
}

.item-prasarana:nth-child(5) .ribbon {
    background: linear-gradient(135deg, #07b91f, #dad600); /* Warna Ungu */
}

.item-prasarana:nth-child(6) .ribbon {
    background: linear-gradient(135deg, #920697, #c00b41); /* Warna Ungu */
}

/* Memperbaiki padding agar tidak tertutup ribbon */
.item-prasarana {
    padding: 35px 20px 20px 20px; /* Sesuaikan kembali padding atas */
}

.item-prasarana span{
    font-size: 11px;
    width: 100%;
}

.item-prasarana p {
    font-size: 12px;
    margin: 0; /* Menghapus margin default p */
    display: flex; /* Mengaktifkan flexbox */
    align-items: center; /* Menyejajarkan teks & ikon secara vertikal */
    justify-content: center; /* Memastikan keduanya berada di tengah kartu */
    gap: 8px; /* Memberikan jarak antara ikon dan teks */
    cursor: pointer;
}

.item-prasarana i {
    font-size: 10px;
    height: 30px;
    width: 30px;
    /* Gunakan flex pada i juga agar icon di dalamnya tepat di tengah lingkaran */
    display: flex;
    align-items: center;
    justify-content: center;
    
    border-radius: 50%;
    background: #000;
    color: #fff;
    flex-shrink: 0;
}

.item-prasarana img {
    width: 80px;
    height: 80px;
    object-fit: contain; /* Menjaga rasio gambar agar tidak penyok */
    display: block;
    margin: 0 auto; /* Memastikan posisi gambar di tengah secara horizontal */
}

.item-prasarana h3 {
    font-size: 15px;
    font-weight: 600;
    margin: 0; /* Menghapus margin bawaan agar gap lebih akurat */
}

.item-prasarana p {
    margin: 0 0 10px 0;
    /* align-items: end dihapus karena tidak berfungsi di sini */
}

.item-prasarana:hover {
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    transform: translateY(-5px); /* Efek angkat sedikit saat hover */
}


/* ==========================================================================
   KHUSUS RESPONSIVE HARGA KOMODITAS & PRASARANA (2 KOLOM DI MOBILE)
   ========================================================================== */

/* --- Layar Tablet / iPad (Max Width: 992px) --- */
@media (max-width: 992px) {
    .harga_komoditas {
        padding: 30px 20px; /* Kurangi padding utama agar lebih hemat ruang */
    }

    .prasarana {
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Layar tablet muat 3 kolom */
        gap: 12px;
    }
}

/* --- Layar HP Android & iOS Umum (Max Width: 768px) --- */
@media (max-width: 768px) {
    /* Kunci kontainer utama prasarana menjadi 2 kolom di HP */
    .prasarana {
        display: grid;
        grid-template-columns: repeat(2, 1fr); 
        gap: 10px; /* Jarak antar kartu komoditas sedikit dirapatkan */
    }

    /* Rampingkan padding dalam kartu agar teks dan gambar mendapat ruang maksimal */
    .item-prasarana {
        padding: 35px 10px 15px 10px; /* Kompres padding kiri-kanan jadi 10px */
        gap: 12px; /* Rapatkan jarak antar elemen di dalam kartu */
    }

    /* Sesuaikan ukuran gambar produk komoditas pasar murah */
    .item-prasarana img {
        width: 60px; /* Turunkan dari 80px agar pas dalam format 2 kolom HP */
        height: 60px;
    }

    /* Optimasi Tipografi Judul & Teks Harga */
    .item-prasarana h3 {
        font-size: 13px; /* Sedikit diperkecil agar nama komoditas tidak patah berantakan */
        line-height: 1.3;
    }

    .item-prasarana p {
        font-size: 11px;
        gap: 5px;
        margin-bottom: 5px;
    }

    /* Ukuran lingkaran icon penunjuk tren harga */
    .item-prasarana i {
        width: 24px;
        height: 24px;
        font-size: 9px;
    }

    .item-prasarana span {
        font-size: 10px;
    }

    /* Minimalisir ukuran pita ribbon penunjuk nomor/kategori di pojok kanan atas */
    .ribbon {
        width: 38px;  /* Perkecil dari 50px */
        height: 32px; /* Perkecil dari 40px */
        font-size: 11px;
        right: 6px;
    }
    
    .ribbon span {
        margin-top: 2px;
    }
}

/* --- Layar HP Sangat Kecil (Max Width: 360px) --- */
@media (max-width: 360px) {
    /* Untuk HP super mungil, turunkan sedikit ukuran font agar tetap muat 2 kolom */
    .item-prasarana h3 {
        font-size: 12px;
    }
    .item-prasarana p {
        font-size: 10px;
    }
    .item-prasarana img {
        width: 50px;
        height: 50px;
    }
}


/* KODE HALAMAN LOGIN*/

.modal-overlay {
    position: fixed;
    top: 0; left: 0;
    width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(5px);
    display: none; /* Sembunyi awal */
    justify-content: center;
    align-items: center;
    z-index: 9999;
}

/* Card Utama */
.login-card {
    width: 850px;
    height: 420px;
    background: white;
    border-radius: 10px;
    display: flex;
    overflow: hidden;
    animation: zoomIn 0.3s ease;
}

.login-text{
    display: flex;
    justify-content: end;
    align-items: center;
    width: 100%;
    flex-direction: column;
    gap: 10px;
    padding-top: 10px;   
}

.foto-login
{
    height: 150px;
    width: 150px;
    border-radius: 50%;
    border: 2px dashed #000;
    padding: 3px;
}

.login-text h2{
    color: #fff;
    padding-top: 5px;
}

.login-text p{
    text-align: center;
    color: #eeff00;
    font-weight: 600;
    padding-top: 10px;
    font-size: 16px;
}

.login-text h4{
    text-align: center;
    color: #ffffff;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 10px;
}

@keyframes zoomIn {
    from { transform: scale(0.8); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

/* Sisi Kiri */
.login-left {
    flex: 1;
    background: linear-gradient(135deg, #0061ff, #00c6ff);
    position: relative;
    padding: 60px;
    color: white;
    display: flex;
    align-items: center;
    overflow: hidden;
    flex-direction: column;
}

.login-left h2{
    font-size: 25px;
    color: #ffffff;
    font-weight: 700;
}

.login-left span{
    font-size: 25px;
    color: #00f7ff;
    font-weight: 700;
}

.circle-top {
    position: absolute;
    width: 200px; height: 200px;
    background: rgba(255, 255, 255, 0.226);
    border-radius: 50%;
    top: -50px; left: -50px;
}

.circle-bottom {
    position: absolute;
    width: 100px; height: 100px;
    background: rgba(0, 0, 0, 0.14);
    border-radius: 50%;
    bottom: 50px; right: 50px;
}

/* Sisi Kanan */
.login-right {
    flex: 1.2;
    padding: 50px;
    position: relative;
}

.close-modal {
    position: absolute;
    top: 20px; right: 25px;
    font-size: 28px;
    cursor: pointer;
    color: #666;
}

.login-right h3 { font-size: 32px; margin-bottom: 5px; }
.subtitle { color: #888; font-size: 13px; margin-bottom: 30px; }

/* Form Elements */
.input-group {
    background: #f0f2f5;
    padding: 12px 15px;
    border-radius: 8px;
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.input-group input {
    background: transparent;
    border: none;
    outline: none;
    width: 100%;
}

.show-pass { font-size: 12px; font-weight: bold; color: #0061ff; cursor: pointer; }

.form-options {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    margin-bottom: 25px;
}

.form-options{
    text-decoration: none;
}

.form-options a{
    text-decoration: none;
    list-style: none;
    color: #00c6ff;
}


.btn-signin {
    width: 100%;
    padding: 14px;
    background: #004282;
    color: white;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    cursor: pointer;
}

.divider { text-align: center; margin: 15px 0; color: #888; font-size: 12px; }

.btn-other {
    width: 100%;
    padding: 12px;
    background: white;
    border: 1px solid #333;
    border-radius: 8px;
    cursor: pointer;
}

.signup-link { text-align: center; margin-top: 25px; font-size: 13px; color: #666; }


/* BAGIAN NOTIF LOGIN*/
@keyframes shake {
  0%, 100% { transform: translateX(0); }
  25% { transform: translateX(-5px); }
  75% { transform: translateX(5px); }
}

.shake {
  animation: shake 0.2s ease-in-out 0s 2;
}

#error-msg {
    border: 1px solid #fab1a0;
    font-weight: 500;
}



/* Sembunyikan secara default di tampilan desktop */
.bottom-nav {
    display: none; 
}

@media screen and (max-width: 992px) {
    .bottom-nav {
        display: flex;
        position: fixed;
        bottom: 0;
        left: 0;
        width: 100%;
        height: 70px; /* Dipertinggi sedikit agar lebih lega */
        background: linear-gradient(120deg, #004d6c, #039ba5); /* Perpaduan warna Birkas modern */
        box-shadow: 0 -8px 24px rgba(0, 0, 0, 0.2);
        z-index: 999; 
        justify-content: space-around;
        align-items: center;
        border-radius: 20px 20px 0 0; /* Lengkungan modern di sudut atas navbar kawan */
    }

    .bottom-nav-item {
        flex: 1;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
        height: 100%;
        text-decoration: none;
        color: rgba(255, 255, 255, 0.6); 
        font-family: 'Sunflower', sans-serif;
        transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
        gap: 2px;
        position: relative;
    }

    /* Gaya Icon Boxicons Default */
    .bottom-nav-icon i {
        font-size: 24px;
        color: rgba(255, 255, 255, 0.6);
        transition: all 0.3s ease;
    }

    .bottom-nav-item span {
        font-size: 10px;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    /* ==========================================================================
       LOGIKA TOMBOL TENGAH YANG MENONJOL (CENTER FAB)
       ========================================================================== */
    .center-item {
        overflow: visible; /* Penting agar tombol yang keluar batas tidak terpotong */
        justify-content: flex-end;
        padding-bottom: 6px;
    }

    .center-fab {
        width: 56px;
        height: 56px;
        background: linear-gradient(135deg, #00f7ff, #04bcc9); /* Warna menyala kekinian */
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        position: absolute;
        top: -24px; /* Menarik tombol ke atas melewati garis navbar */
        left: 50%;
        transform: translateX(-50%);
        box-shadow: 0 8px 20px rgba(4, 188, 201, 0.4);
        text-decoration: none;
        transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    }

    .center-fab i {
        font-size: 28px !important;
        color: #ffffff !important;
    }

    /* Efek Hover / Klik pada Tombol Tengah */
    .center-fab:hover, .center-item.active .center-fab {
        transform: translateX(-50%) translateY(-3px) scale(1.05);
        box-shadow: 0 12px 24px rgba(4, 188, 201, 0.6);
    }

    .center-label {
        color: rgba(255, 255, 255, 0.6);
    }

    /* ==========================================================================
       STATE AKTIF KEKINIAN
       ========================================================================== */
    .bottom-nav-item.active {
        color: #00f7ff; /* Teks berubah cyan menyala saat aktif */
    }

    .bottom-nav-item.active .bottom-nav-icon i {
        color: #00f7ff;
        transform: translateY(-2px); /* Efek sedikit mengangkat saat aktif */
    }

    .bottom-nav-item.active span {
        font-weight: 700;
    }
    
    /* Warna teks label tombol tengah ketika aktif */
    .center-item.active .center-label {
        color: #00f7ff;
        font-weight: 700;
    }

    /* KOMPENSASI BODY FOOTER */
    body {
        padding-bottom: 75px; 
    }
}