/* ================= ROOT (DESIGN SYSTEM) ================= */
:root {
    --primary: #667eea;
    --primary-dark: #764ba2;

    --blue: #0984e3;
    --green: #27ae60;
    --red: #eb4d4b;
    --orange: #e67e22;

    --dark: #2d3436;
    --light: #f8f9fa;
    --muted: #b2bec3;

    --border-radius: 12px;
    --shadow-soft: 0 10px 30px rgba(0,0,0,0.05);
    --shadow-hover: 0 15px 40px rgba(0,0,0,0.1);

    --transition: all 0.3s ease;
}

/* ================= RESET ================= */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Inter', sans-serif;
    background: #f8fafc;
    color: var(--dark);
}

/* ================= HEADER ================= */
.header-banner-hukum {
    width: 100%;
    height: 300px;
    overflow: hidden;
    position: relative;
}

.header-banner-hukum img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.header-box.overlay-box {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: rgba(9, 132, 227, 0.9);
    color: #fff;
    padding: 15px 40px;
    font-weight: 800;
    border-radius: 50px;
    font-size: 22px;
    text-transform: uppercase;
}

/* ================= BADGE ================= */
.badge-instansi {
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 10px;
    font-weight: 800;
    color: #fff;
}

.bg-bws { background: var(--blue); }
.bg-admin { background: var(--dark); }
.bg-bmkg { background: var(--orange); }
.bg-dinas { background: var(--green); }

.badge-status {
    font-size: 11px;
    font-weight: 700;
}

/* ================= BUTTON ================= */
.btn-dl {
    background: var(--primary);
    color: #fff;
    border-radius: var(--border-radius);
    font-weight: 700;
    transition: var(--transition);
}

.btn-dl:hover {
    background: var(--primary-dark);
}

/* ================= CARD ================= */
.card-stat {
    border-radius: var(--border-radius);
    border-top: 4px solid var(--dark);
    transition: var(--transition);
}

.card-stat:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-hover);
}

.card-news {
    border-radius: var(--border-radius);
    border: none;
    box-shadow: var(--shadow-soft);
}

/* ================= TELEMETRY CARD (OPTIMIZED) ================= */
.card-telemetry {
    border-radius: var(--border-radius);
    background: #fff;
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    height: 100%; /* Memaksa card mengisi tinggi slick-slide */
    overflow: hidden;
    border: none;
    transition: var(--transition);
}
.card-telemetry .card-header-dark {
    background: #34495e;
    color: #fff;
    padding: 20px;
}

.pos-title {
    font-size: 18px;
    font-weight: 800;
}

.pos-subtitle {
    font-size: 11px;
    opacity: 0.8;
    text-transform: uppercase;
}

/* VALUE */
.card-telemetry .reading-box {
    padding: 30px 10px;
    text-align: center;
    border-bottom: 1px solid #f1f2f6;
    background: #fdfdfd;
}

.value-text {
    font-size: 42px;
    font-weight: 800;
    color: var(--dark);
}

.unit-text {
    font-size: 12px;
    font-weight: 700;
    color: var(--muted);
}

/* INFO */
.card-telemetry .info-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 20px;
    border-bottom: 1px solid #f1f2f6;
    font-size: 13px;
}

.info-label {
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
}

.info-value {
    color: var(--dark);
    font-weight: 700;
}

/* STATUS */
.status-online { color: var(--green); }
.status-offline { color: var(--red); }

.status-indicator {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    display: inline-block;
}

.online-pulse {
    background: var(--green);
    animation: pulse-green 2s infinite;
}

.offline-dot {
    background: var(--red);
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(39,174,96,0.7); }
    70% { box-shadow: 0 0 0 10px rgba(39,174,96,0); }
    100% { box-shadow: 0 0 0 0 rgba(39,174,96,0); }
}

/* FOOTER */
.card-telemetry .update-footer {
    font-size: 11px;
    font-style: italic;
    color: var(--muted);
    padding: 10px;
    text-align: center;
}

/* ================= SLICK CUSTOM SCALE (DESKTOP NORMAL, MOBILE 2-CARD) ================= */

/* Container Utama */
.carousel-pos-container {
    width: 100%;
    overflow: hidden;
    padding: 10px 0;
}

/* Hilangkan putih-putih saat loading dengan memberi min-height */
.slick-carousel {
    min-height: 250px; 
}

/* Jarak antar card */
.slick-carousel .px-2 {
    padding-left: 8px !important;
    padding-right: 8px !important;
}

/* ================= CSS FIX LOADING KOSONG (MOBILE) ================= */
@media (max-width: 768px) {
    /* 1. Paksa 2 Card Berjajar */
    .slick-slide {
        width: calc(100vw / 2 - 12px) !important;
        padding: 0 5px !important;
    }

    /* 2. Kunci Tinggi Card agar Elemen Bawah Tidak Kosong/Putih */
    .card-telemetry {
        min-height: 380px !important; /* Tinggi rata-rata card AWS di mobile */
        display: flex;
        flex-direction: column;
    }

    /* 3. Beri Placeholder Area AWS Grid */
    .aws-weather-grid {
        min-height: 120px; /* Booking tempat untuk grid weather */
        background: rgba(0,0,0,0.02); /* Warna tipis biar gak terlihat 'blank' */
        display: grid !important;
        grid-template-columns: repeat(2, 1fr) !important;
    }

    /* 4. Font Kecil Khusus Mobile */
    .pos-subtitle { 
        font-size: 10px !important; 
        white-space: normal !important; /* Biar nama pos turun ke bawah kalau panjang */
        line-height: 1.2;
    }
    .value-text { font-size: 26px !important; }
    .aws-w-item .w-label { font-size: 7px !important; }
    .aws-w-item .w-val { font-size: 9px !important; }
}

/* ================= LINK ================= */
.latlong-link {
    color: var(--dark);
    font-weight: 700;
    text-decoration: none;
}

.latlong-link:hover {
    color: var(--blue);
    text-decoration: underline;
}

/* ================= FOOTER ================= */
footer {
    background: #001f54;
    color: #fff;
    padding: 40px 0;
}

/* ================= WARNA STATUS AWLR ================= */
.status-indicator {
    width: 14px;
    height: 14px;
    border-radius: 50%;
    display: inline-block;
}

.status-normal { 
    background: #27ae60; 
    box-shadow: 0 0 0 rgba(39, 174, 96, 0.4);
    animation: pulse-green 2s infinite;
}
.status-waspada { background: #f1c40f; } /* Kuning */
.status-siaga { background: #e67e22; }   /* Orange */
.status-awas { background: #eb4d4b; }    /* Merah */

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(39,174,96,0.7); }
    70% { box-shadow: 0 0 0 8px rgba(39,174,96,0); }
    100% { box-shadow: 0 0 0 0 rgba(39,174,96,0); }
}

/* ================= AWS GRID SENSOR ================= */
.aws-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    border-bottom: 1px solid #f1f2f6;
    background: #fff;
}

.aws-item {
    padding: 10px 5px;
    text-align: center;
    border-right: 1px solid #f1f2f6;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.aws-item:last-child { border-right: none; }

.aws-item i { font-size: 14px; margin-bottom: 4px; }
.aws-item .label { font-size: 8px; color: var(--muted); text-transform: uppercase; font-weight: 700; }
.aws-item .val { font-size: 10px; color: var(--dark); font-weight: 800; }

@media (max-width: 600px) {
    .slick-list { overflow: visible !important; }
    .aws-item .val { font-size: 9px; } /* Biar teks di HP gak pecah */
}

.card-telemetry {
    border: none;
    border-radius: 15px;
    box-shadow: 0 5px 5px rgba(0,0,0,0.05);
    transition: 0.3s;
}

.card-telemetry:hover { transform: translateY(-5px); }

/* Badge Khusus Siaga (Orange) */
.bg-orange { background-color: #e67e22 !important; }

/* Grid AWS Style Weather App */
.aws-weather-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f8fafc;
    border-top: 1px solid #f1f2f6;
    border-bottom: 1px solid #f1f2f6;
}

.aws-w-item {
    padding: 10px 2px;
    text-align: center;
    border-right: 1px solid #f1f2f6;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

/* Hero Reading Box */
.weather-icon-main { opacity: 0.8; }

/* Badge Khusus Siaga (Orange) */
.bg-orange { background-color: #e67e22 !important; }

/* Grid AWS Style Weather App */
.aws-weather-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    background: #f8fafc;
    border-top: 1px solid #f1f2f6;
    border-bottom: 1px solid #f1f2f6;
}

.aws-w-item:last-child { border-right: none; }

.aws-w-item i { font-size: 14px; margin-bottom: 5px; }
.aws-w-item .w-val { font-size: 10px; font-weight: 800; color: #2d3436; display: block; }
.aws-w-item .w-label { font-size: 8px; font-weight: 600; color: #b2bec3; text-transform: uppercase; }

/* Hero Reading Box */
.weather-icon-main { opacity: 0.8; }

.bg-orange { background-color: #e67e22 !important; color: #fff !important; }

/* Card Berita */
.card-news {
    transition: all 0.3s ease;
    border-radius: 12px;
}

.card-news:hover {
    transform: translateY(-8px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.1) !important;
}

.bg-soft-primary {
    background-color: rgba(13, 110, 253, 0.1);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.object-fit-cover {
    object-fit: cover;
}

/* Card Berita Style Home */
.card-news-home {
    border-radius: 15px !important;
    transition: all 0.3s ease;
}

.card-news-home:hover {
    transform: translateY(-10px);
    box-shadow: 0 15px 30px rgba(0,0,0,0.1) !important;
}

.card-news-home .transition-img {
    transition: transform 0.5s ease;
}

.card-news-home:hover .transition-img {
    transform: scale(1.1);
}

.line-clamp-2 {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.line-clamp-3 {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;  
    overflow: hidden;
}

.object-fit-cover {
    object-fit: cover;
}

.badge {
    letter-spacing: 0.5px;
    font-weight: 700;
    backdrop-filter: blur(4px); /* Efek blur dikit di belakang badge */
    -webkit-backdrop-filter: blur(4px);
}

.card-news-home {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.card-news-home:hover {
    transform: translateY(-5px);
}

/* --- GAYA UNTUK DESKTOP (Default) --- */
.header-box.overlay-box {
  background: rgba(0, 0, 0, 0.5); /* Background overlay */
  color: white;
  padding: 40px;           /* Padding lebar untuk desktop */
  font-size: 48px;         /* Ukuran teks besar */
  text-align: center;
  font-weight: bold;
  
  /* Membuat box berada di tengah layar desktop */
  width: auto;             /* Lebar mengikuti isi teks */
  min-width: 400px;        /* Batas lebar minimal agar tidak terlalu ciut */
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
}

/* --- GAYA KHUSUS MOBILE (Hanya aktif di layar kecil) --- */
@media screen and (max-width: 768px) {
  .header-box.overlay-box {
    font-size: 24px;       /* Teks mengecil di HP */
    padding: 15px;         /* Padding mengecil agar tidak makan tempat */
    width: 85%;            /* Mengatur lebar box jadi 85% layar HP */
    min-width: unset;      /* Menghapus batas minimal lebar desktop */
    line-height: 1.2;
  }
}

        :root { --brand-dark: #0f172a; --brand-blue: #2563eb; }
        body { font-family: 'Inter', sans-serif; background: #fff; }
        h1, h2, h3, .navbar-brand { font-family: 'Plus Jakarta Sans', sans-serif; }

		/* Navigasi */
		.navbar { 
		    transition: all 0.4s ease; 
		    padding: 25px 0; 
		    background: transparent; 
		}
		
		/* Saat di-scroll: Berikan background putih tipis (Glassmorphism) */
		.navbar.scrolled { 
		    background: rgba(255, 255, 255, 0.95) !important; 
		    backdrop-filter: blur(10px); 
		    padding: 12px 0; 
		    box-shadow: 0 4px 20px rgba(0,0,0,0.08); 
		}
		
		/* Warna teks saat navbar transparan (di atas hero) */
		.nav-link, .navbar-brand { 
		    color: #fff !important; 
		    font-weight: 600; 
		    text-shadow: 0 2px 10px rgba(0,0,0,0.3); 
		}
		
		/* Warna teks saat navbar putih (setelah scroll) */
		.navbar.scrolled .nav-link, 
		.navbar.scrolled .navbar-brand { 
		    color: var(--brand-dark) !important; 
		    text-shadow: none; 
		}
		
		/* MOBILE FIX */
		@media (max-width: 991px) {
		
		    .navbar-collapse {
		        background: rgba(15, 23, 42, 0.95);
		        padding: 20px;
		        border-radius: 12px;
		        margin-top: 10px;
		        color: white;
		    }
		
		    .dropdown-menu {
		        background: transparent;
		        box-shadow: none;
		        padding-left: 15px;
		        margin-top: 5px;
		    }
		
		    .dropdown-item {
		        color: #cbd5e1;
		        padding: 6px 0;
		    }
		
		    .dropdown-item:hover {
		        background: transparent;
		        color: #2563eb;
		    }
		}

        /* Hero */
        .carousel-item { height: 100vh; background: #000; }
        .carousel-item img { height: 100%; object-fit: cover; opacity: 0.6; }
        .carousel-caption { bottom: 25%; text-align: left; left: 10%; }
        
        /* Partners */
        .partner-section { padding: 40px 0; background: #f8fafc; border-bottom: 1px solid #e2e8f0; }
        .partner-logo { height: 50px; width: auto; filter: grayscale(100%); opacity: 0.6; transition: 0.3s; object-fit: contain; }
        .partner-logo:hover { filter: grayscale(0%); opacity: 1; }
		
		/* Update Card News agar lebih 'berbentuk' */
		.card-news { 
		    border: 1px solid rgba(0, 0, 0, 0.08); /* Garis hitam sangat tipis untuk membentuk outline */
		    border-radius: 24px; /* Sudut lebih melengkung agar modern */
		    background: #ffffff;
		    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
		    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03); /* Bayangan dasar tipis */
		    overflow: hidden;
		}
		
		.card-news:hover { 
		    transform: translateY(-8px); /* Melayang sedikit saat kursor di atasnya */
		    border-color: rgba(0, 0, 0, 0.15); /* Garis jadi sedikit lebih tegas saat hover */
		    /* Bayangan 'hitam tipis' yang lebih menyebar saat hover agar efek card menonjol */
		    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); 
		}
		
		/* Tambahan: Memberikan pemisah halus antara area gambar dan teks di dalam card */
		.card-news .p-4 {
		    border-top: 1px solid rgba(0, 0, 0, 0.05);
		}
        
        
        .type-badge {
            position: absolute; top: 15px; left: 15px; padding: 6px 12px; border-radius: 8px;
            font-size: 10px; font-weight: bold; color: white; background: rgba(15, 23, 42, 0.8);
            z-index: 5; text-transform: uppercase; backdrop-filter: blur(4px);
        }

        /* Footer Stying */
        footer { background: #0f172a; color: #cbd5e1; }
        footer .footer-title { color: #ffffff !important; font-weight: 700; margin-bottom: 25px; }
        footer p, footer li, footer a { color: #94a3b8 !important; text-decoration: none; transition: 0.3s; }
        footer a:hover { color: #ffffff !important; }
        .copyright-bar { background: #020617 !important; border-top: 1px solid rgba(255,255,255,0.05); color: #64748b !important; }

		/* DROPDOWN PREMIUM */
		.dropdown-menu {
		    border-radius: 12px;
		    border: none;
		    padding: 10px;
		    margin-top: 10px;
		    box-shadow: 0 10px 25px rgba(0,0,0,0.08);
		    animation: fadeIn 0.25s ease;
		}
		
		.dropdown-item {
		    border-radius: 8px;
		    padding: 8px 14px;
		    font-size: 0.9rem;
		    transition: all 0.2s ease;
		}
		
		.dropdown-item:hover {
		    background: #2563eb;
		    color: #fff;
		}
		
		/* ANIMASI HALUS */
		@keyframes fadeIn {
		    from {
		        opacity: 0;
		        transform: translateY(8px);
		    }
		    to {
		        opacity: 1;
		        transform: translateY(0);
		    }
		}
		
/* ================= CSS RESPONSIVE PADDING (ANTI-FULL) ================= */

/* Kondisi Default / Desktop (Normal) */
.content-padding {
    padding-top: 30px;
    padding-bottom: 50px;
}

/* KHUSUS TAMPILAN MOBILE (HP) */
@media (max-width: 768px) {
    .container.content-padding {
        /* Memberikan jarak 15px dari pinggir layar HP */
        padding-left: 15px !important;
        padding-right: 15px !important;
        
        /* Opsional: Jika ingin container sedikit lebih masuk lagi */
        width: 95% !important; 
        margin: 0 auto !important;
    }

    /* Menghilangkan margin negatif row bawaan bootstrap agar tidak meluber */
    .row {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }

    /* Memastikan kolom di dalamnya juga punya jarak */
    .col-lg-11 {
        padding-left: 0 !important;
        padding-right: 0 !important;
    }
}

        body { font-family: 'Inter', sans-serif; background-color: #f8fafc; }
        .content-padding { padding-top: -120px; min-height: 100vh; }
        .header-box { background: linear-gradient(135deg, #0089ff 0%, #0056b3 100%); color: white; padding: 20px; border-radius: 50px; text-align: center; font-weight: 800; letter-spacing: 1px; box-shadow: 0 10px 20px rgba(0,137,255,0.2); margin-bottom: 50px; }
        .hukum-container { background: white; border-radius: 20px; padding: 30px; box-shadow: 0 4px 20px rgba(0,0,0,0.02); border: 1px solid #eef2f6; }
        .cat-title { background: #f1f5f9; font-weight: 700; padding: 12px 20px; border-left: 5px solid #0089ff; color: #1e293b; margin-top: 30px; }
        .search-input { border-radius: 10px; border: 1px solid #e2e8f0; padding: 12px 15px; width: 100%; transition: 0.3s; }
        .search-input:focus { outline: none; border-color: #0089ff; box-shadow: 0 0 0 4px rgba(0,137,255,0.1); }
        .btn-dl { background: #2563eb; color: white; border-radius: 10px; padding: 8px 20px; text-decoration: none; font-size: 13px; font-weight: 600; transition: 0.3s; }
        .btn-dl:hover { background: #1d4ed8; transform: translateY(-2px); color: white; }

        
        .header-image {
		    width: 100%;
		    height: 180px; /* sesuai permintaan */
		    overflow: hidden;
 
		}
		
		.header-image img {
		    width: 100%;
		    height: 100%;
		    object-fit: cover; /* biar gambar tetap proporsional */
		    filter: brightness(0.7); /* agak gelap biar elegan */
		}
        
		.header-banner-hukum {
		    position: relative;
		    width: 100%;
		    height: 200px;
		    overflow: hidden;
		}
		
		.header-banner-hukum img {
		    width: 100%;
		    height: 100%;
		    

		    object-fit: cover;
		    filter: brightness(0.6);
		}
		
		/* BOX BIRU JADI OVERLAY */
		.overlay-box {
		    position: absolute;
		    left: 50%;
 		    margin-top: -120px;
		    transform: translateX(-50%);
		    z-index: 10;
		
		    width: 80%;
		    max-width: 900px;
		
		    text-align: center;
		}

        :root {
            --primary: #667eea;
            --secondary: #764ba2;
            --bg: #f5f7fa;
            --text: #333;
        }

        * { margin: 0; padding: 0; box-sizing: border-box; }
        
        body { 
            font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; 
            background-color: var(--bg); 
            color: var(--text);
            line-height: 1.8;
        }

        /* Navigation */
        nav {
            background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
            color: white; padding: 15px 30px;
            display: flex; justify-content: space-between; align-items: center;
            box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
            position: sticky; top: 0; z-index: 1000;
        }
        .nav-brand { font-size: 20px; font-weight: bold; text-decoration: none; color: white; display: flex; align-items: center; gap: 10px; }

   

        .back-btn {
            display: inline-flex;
            align-items: center;
            gap: 8px;
            text-decoration: none;
            color: var(--primary);
            font-weight: 600;
            margin-bottom: 20px;
            transition: 0.3s;
        }
        .back-btn:hover { transform: translateX(-5px); }

        .content-wrapper {
            background: white;
            padding: 40px;
            border-radius: 20px;
            box-shadow: 0 10px 30px rgba(0,0,0,0.05);
        }

        /* Meta Data */
        .meta-header {
            margin-bottom: 30px;
        }
        .badge-group { display: flex; gap: 10px; margin-bottom: 15px; }
        .badge {
            padding: 5px 15px; border-radius: 50px; font-size: 11px; font-weight: bold; color: white; text-transform: uppercase;
        }
        .bg-BWS { background: #f39c12; }
        .bg-BMKG { background: #3498db; }
        .bg-DINAS { background: #27ae60; }
        .bg-ADMIN { background: #764ba2; }
        .badge-type { background: #eee; color: #666; }

        .timestamp { color: #999; font-size: 14px; }

        h1 { font-size: 32px; color: #2c3e50; line-height: 1.3; margin-bottom: 20px; }

        /* Featured Content */
        .featured-media {
            margin: 30px 0;
            border-radius: 15px;
            overflow: hidden;
            background: #eee;
            text-align: center;
        }
        .featured-media img {
            width: 100%;
            display: block;
            max-height: 600px;
            object-fit: contain;
            background: #f0f0f0;
        }

        /* PDF Section */
        .pdf-download-box {
            background: #f8f9fa;
            border: 2px dashed #cbd5e0;
            padding: 40px;
            text-align: center;
            border-radius: 15px;
            margin: 30px 0;
        }
        .pdf-icon { font-size: 60px; color: #e74c3c; margin-bottom: 20px; }
        .btn-download {
            display: inline-flex;
            align-items: center;
            gap: 10px;
            background: #e74c3c;
            color: white;
            padding: 15px 35px;
            text-decoration: none;
            border-radius: 10px;
            font-weight: bold;
            box-shadow: 0 4px 15px rgba(231, 76, 60, 0.3);
            transition: 0.3s;
        }
        .btn-download:hover { transform: translateY(-3px); box-shadow: 0 8px 20px rgba(231, 76, 60, 0.4); }

        /* Article Body */
        .article-body {
            font-size: 18px;
            color: #4a5568;
            white-space: pre-line; /* Menjaga line break dari database */
        }

        footer { text-align: center; color: #999; font-size: 14px; }

        @media (max-width: 768px) {
            .content-wrapper { padding: 25px; }
            h1 { font-size: 24px; }
        }
        
		#map-stats {
		    position: absolute;
		    top: 250px;
		    left: 50%;
		    transform: translateX(-50%);
		    z-index: 1000;
		    display: flex;
		    gap: 10px;
		    background: rgba(255, 255, 255, 0.9);
		    padding: 10px 20px;
		    border-radius: 50px;
		    box-shadow: 0 4px 15px rgba(0,0,0,0.2);
		    border: 1px solid #ddd;
		}
		.stat-item {
		    text-align: center;
		    font-size: 12px;
		    font-weight: bold;
		    padding: 0 10px;
		}
		.stat-item:not(:last-child) {
		    border-right: 1px solid #ddd;
		}
		.stat-count {
		    display: block;
		    font-size: 18px;
		    margin-bottom: -5px;
		}

        body { font-family: 'Inter', sans-serif; background: #f8fafc; }
        .content-wrapper { padding-top: 100px; }
        
        #map { 
            height: 75vh; 
            width: 100%; 
            border-radius: 20px; 
            box-shadow: 0 10px 30px rgba(0,0,0,0.1);
            border: 4px solid white;
            z-index: 1;
        }

        .map-header {
            background: linear-gradient(135deg, #0089ff 0%, #0056b3 100%);
            color: white;
            padding: 30px;
            border-radius: 20px;
            margin-bottom: -40px;
            position: relative;
            z-index: 2;
            box-shadow: 0 10px 20px rgba(0,137,255,0.2);
        }

        /* Legend Style */
        .info.legend {
            background: white;
            padding: 15px;
            border-radius: 10px;
            box-shadow: 0 0 15px rgba(0,0,0,0.1);
            line-height: 24px;
        }
        
        /* Kondisi awal: Transparan */
.navbar {
    background-color: transparent !important;
    transition: background-color 0.4s ease, box-shadow 0.4s ease; /* Efek halus */
}

/* Kondisi saat di-scroll: Solid/Berwarna */
.navbar.scrolled {
    background-color: #2c3e50 !important; /* Ganti dengan warna tema SIH3 kamu */
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* Pastikan konten di bawah navbar tidak tertutup jika diperlukan */
body {
    padding-top: 0 !important;
}

/* ================= CSS PRODUK HUKUM OPTIMIZATION ================= */

/* Efek Hover untuk Desktop */
.data-item {
    transition: all 0.2s ease;
}
.data-item:hover {
    background-color: #f8faff;
}

/* Pengaturan Filter Box agar rapi di HP */
@media (max-width: 768px) {
    .content-padding {
        padding-left: 10px !important;
        padding-right: 10px !important;
    }

    /* Membuat filter bertumpuk rapi di HP */
    .card-body .row.g-2 .col-md-2, 
    .card-body .row.g-2 .col-md-4, 
    .card-body .row.g-2 .col-md-5 {
        margin-bottom: 8px;
    }

    /* Transformasi Baris Tabel menjadi Card di HP */
    .data-item {
        flex-direction: column;
        align-items: flex-start !important;
        padding: 15px !important;
        position: relative;
    }

    .text-tahun {
        font-size: 11px !important;
        margin-bottom: 5px;
        display: block;
    }

    .text-judul {
        font-size: 13px !important;
        line-height: 1.4;
        margin-bottom: 10px;
    }

    .text-desc {
        font-size: 11px !important;
        background: #fdfdfd;
        padding: 8px !important;
        border-radius: 8px;
        width: 100%;
        margin-bottom: 15px !important;
    }

    /* Tombol Download Jadi Lebar di HP agar mudah diklik */
    .data-item .col-md-2.text-center {
        width: 100%;
        text-align: left !important;
        display: flex;
        justify-content: space-between;
        align-items: center;
        border-top: 1px dashed #eee;
        padding-top: 10px;
    }

    .data-item .btn-danger {
        width: auto;
        padding: 8px 20px !important;
    }
}

/* Transisi Halus */
.transition {
    transition: 0.3s;
}

/* ================= CSS WEATHER CARD MOBILE OPTIMIZATION ================= */

/* Pastikan row pembungkus tidak meluber keluar */
.weather-section {
    overflow: hidden;
    width: 100%;
}

@media (max-width: 768px) {
    /* 1. Ubah Row menjadi Scrollable Horizontal */
    .weather-section .row {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        -webkit-overflow-scrolling: touch;
        gap: 0; /* Gap diatur via padding kolom */
        padding-bottom: 15px;
        margin-left: -5px;
        margin-right: -5px;
    }

    /* 2. Hilangkan Scrollbar agar bersih */
    .weather-section .row::-webkit-scrollbar {
        display: none;
    }

    /* 3. Paksa Lebar Card (Tampil 1.5 atau 2 card di layar) */
    .weather-section .col-md-6 {
        /* Kita set 75% supaya card berikutnya 'mengintip' (user tau bisa digeser) */
        flex: 0 0 75% !important;
        max-width: 75% !important;
        padding-left: 8px !important;
        padding-right: 8px !important;
    }

    /* 4. Perkecil Padding dalam Card agar pas di HP */
    .weather-section .card-body {
        padding: 12px !important;
    }

    /* 5. Perkecil Teks & Icon Cuaca */
    .weather-section h3 {
        font-size: 24px !important;
    }
    
    .weather-section img.weather-icon-animate {
        width: 45px !important;
    }

    /* List Jam di dalam card (yang kecil-kecil) */
    .weather-section .d-flex.overflow-auto {
        gap: 5px !important;
    }
    
    .weather-section .rounded-3 {
        min-width: 45px !important;
        padding: 5px !important;
    }
}

@media (max-width: 768px) {
    /* 1. Paksa Row jadi satu baris panjang ke kanan */
    .scroll-cuaca {
        display: flex !important;
        flex-wrap: nowrap !important;
        overflow-x: auto !important;
        overflow-y: hidden !important;
        -webkit-overflow-scrolling: touch;
        padding-bottom: 20px !important;
        margin-left: -10px !important;
        margin-right: -10px !important;
    }

    /* 2. Sembunyikan garis scrollbar biar rapi */
    .scroll-cuaca::-webkit-scrollbar {
        display: none !important;
    }

    /* 3. Paksa Lebar Card (Tampil 1.5 card agar user tahu bisa digeser) */
    .col-card-cuaca {
        flex: 0 0 75% !important; /* Card ambil 75% lebar layar HP */
        max-width: 75% !important;
        padding: 0 8px !important;
    }

    /* 4. Pastikan kartu tidak gepeng */
    .scroll-cuaca .card {
        height: 100% !important;
        min-width: 200px !important;
    }
}

