/* --- 1. VARIABEL WARNA --- */
:root {
    /* Warna diambil dari Logo Kemenkes (Tosca & Lime) */
    --color-primary: #00a89d;    /* Warna Tosca Logo */
    --color-secondary: #a4c616;  /* Warna Hijau Lime Logo */
    --color-dark: #2d3e50;       /* Warna teks gelap */
    --color-sky: #eaf6fa;        /* Warna langit background sangat muda */
    --color-white: #ffffff;
    --shadow: 0 5px 20px rgba(0,0,0,0.08);
}
/* --- 2. RESET DASAR --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Poppins', sans-serif;
}

body {
    background-color: var(--color-sky);
    color: var(--color-dark);
    overflow-x: hidden;
}

/* Container agar isi website rapi di tengah */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

a { text-decoration: none; color: inherit; transition: 0.3s; }

/* --- 3. NAVBAR --- */
nav {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 1rem 5%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 15px rgba(0,0,0,0.05);
}

.nav-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.nav-logo {
    height: 45px; /* Ukuran Logo */
    width: auto;
}

.brand-text {
    font-weight: 700;
    font-size: 1.2rem;
    color: #333;
    letter-spacing: 0.5px;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 25px;
}

.nav-links a {
    font-size: 0.9rem;
    font-weight: 500;
    color: #555;
}

.nav-links a:hover, .nav-links a.active {
    color: var(--color-primary);
}

.btn-aduan {
    background-color: #d32f2f; /* Merah untuk tombol aduan agar mencolok */
    color: white !important;
    padding: 8px 20px;
    border-radius: 20px;
}

.btn-aduan:hover { background-color: #b71c1c; transform: scale(1.05); }

/* --- 4. HERO SECTION --- */
.hero {
    /* Naik satu folder (..) lalu masuk ke img */
    background: linear-gradient(to right, rgba(255,255,255,0.9) 30%, rgba(255,255,255,0.4)), url('../img/background.png');
    background-size: cover;
    background-position: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
}
hero {
    /* DEFAULT: Background SIANG */
    background: linear-gradient(to right, rgba(255,255,255,0.9) 30%, rgba(255,255,255,0.4)), url('../img/background.png');
    background-size: cover;
    background-position: center;
    min-height: 90vh;
    display: flex;
    align-items: center;
    position: relative;
    /* Tambahkan transisi agar perubahan background mulus */
    transition: background 0.5s ease-in-out; 
}
.hero-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.hero-text {
    flex: 1;
    max-width: 600px;
}

.badge {
    background-color: var(--color-secondary);
    color: white;
    display: inline-block;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.hero-text h1 {
    font-size: 3.5rem;
    line-height: 1.1;
    margin-bottom: 15px;
    color: #1a2a3a;
}

.hero-text h1 span {
    color: var(--color-primary);
}

.hero-text p {
    font-size: 1.1rem;
    color: #555;
    margin-bottom: 30px;
    line-height: 1.6;
}

.hero-buttons {
    display: flex;
    gap: 15px;
}

.btn-primary {
    background-color: var(--color-primary);
    color: white;
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
    box-shadow: 0 5px 15px rgba(0, 168, 157, 0.3);
}

.btn-secondary {
    background-color: white;
    color: var(--color-primary);
    border: 2px solid var(--color-primary);
    padding: 12px 30px;
    border-radius: 50px;
    font-weight: 600;
}

.btn-primary:hover { transform: translateY(-3px); background-color: #008f85; }
.btn-secondary:hover { background-color: var(--color-sky); }

.hero-image {
    flex: 1;
    display: flex;
    justify-content: flex-end;
}

.hero-image img {
    max-height: 75vh; /* Mengatur tinggi GIF agar proporsional */
    width: auto;
    filter: drop-shadow(0 10px 30px rgba(0,0,0,0.15));
}
/* assets/css/style.css (di bagian dark-mode overrides) */

/* 1. OVERRIDE HERO SECTION KE GAMBAR MALAM */
.dark-mode .hero {
    /* Background MALAM */
    background: linear-gradient(to right, rgba(30, 43, 52, 0.95) 30%, rgba(30, 43, 52, 0.5)), url('../img/background_malam.png');
    background-size: cover;
    background-position: center;
}

/* 2. OVERRIDE TEKS DI HERO SECTION MENJADI TERANG/PUTIH */
.dark-mode .hero-text h1,
.dark-mode .hero-text p {
    color: var(--color-dark) !important; /* Gunakan --color-dark (yang nilainya putih di dark mode) */
}

/* Pastikan span highlight tetap kontras */
.dark-mode .hero-text h1 span {
    color: var(--color-primary) !important; /* Warna primer (tosca) akan lebih terang di dark mode */
}


/* Jangan lupa hapus/revisi kode override yang bermasalah sebelumnya: */
/* Hapus/Revisi kode ini: */
.dark-mode .section-header h2,
.dark-mode .service-card h3 {
    color: var(--color-dark); /* Biarkan kode ini ada, karena di bagian lain h2 dan h3 memang harus terang */
}

/* --- 5. SECTION UMUM --- */
.section-padding { padding: 5rem 0; }
.bg-light { background-color: #f8fbfd; }

.section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.section-header h2 {
    font-size: 2.2rem;
    color: var(--color-dark);
    margin-bottom: 10px;
}

.section-header p { color: #666; }

/* --- 6. LAYANAN CARDS --- */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.service-card {
    background: white;
    padding: 2.5rem;
    border-radius: 20px;
    box-shadow: var(--shadow);
    transition: 0.3s;
    border: 1px solid #eee;
}

.service-card:hover {
    transform: translateY(-10px);
    border-color: var(--color-primary);
}

.icon-box {
    font-size: 3rem;
    margin-bottom: 1rem;
    background: var(--color-sky);
    width: 80px;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: var(--color-primary);
}

.service-card h3 { margin-bottom: 10px; color: var(--color-dark); }
.service-card p { color: #666; font-size: 0.95rem; margin-bottom: 20px; }
.link-arrow { color: var(--color-primary); font-weight: 600; font-size: 0.9rem; }

/* assets/css/style.css */

/* assets/css/style.css */


/* Dark Mode Overrides */
.dark-mode .feed-column {
    background: #263440; /* Latar belakang dark mode */
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
.dark-mode .feed-title {
    color: var(--color-primary);
    border-bottom-color: #3e5060;
}
.dark-mode .news-item {
    background: #1e2b34;
}
.dark-mode .news-desc h4 {
    color: var(--color-light);
}

/* --- 8. RESPONSIVE (HP) --- */
@media (max-width: 768px) {
    .nav-links { display: none; } /* Mobile Menu belum dibuat */
    
    .hero-content {
        flex-direction: column-reverse;
        text-align: center;
    }
    
    .hero-text { margin-top: 2rem; }
    .hero-image img { max-height: 40vh; }
    
    .news-grid { grid-template-columns: 1fr; }
}
/* --- 9. ANTI KORUPSI SECTION --- */
.anti-corruption-section {
    padding: 6rem 0;
    background-color: var(--color-white); /* Selalu putih di light mode */
}

.anti-corruption-content {
    display: flex;
    align-items: center;
    gap: 40px;
}

.ac-left {
    flex: 1;
    text-align: center;
}

.ac-gif {
    max-width: 100%;
    height: auto;
    max-height: 400px;
}

.ac-right {
    flex: 1;
}

.ac-right h2 {
    font-size: 2rem;
    color: var(--color-primary);
    margin-bottom: 15px;
}

.ac-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.ac-link-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 15px 10px;
    border: 1px solid #ddd;
    border-radius: 10px;
    transition: 0.3s;
    text-align: center;
    background-color: #f7f9fc;
}

.ac-link-card:hover {
    background-color: var(--color-sky);
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 168, 157, 0.1);
}

.ac-link-card img {
    width: 60px;
    height: 60px;
    margin-bottom: 10px;
}

.ac-link-card span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-dark);
}

/* --- 10. DARK MODE TOGGLE (Tombol di Navbar) --- */
.theme-toggle {
    background: var(--color-sky);
    border: none;
    cursor: pointer;
    font-size: 1.2rem;
    padding: 8px 10px;
    border-radius: 50%;
    transition: 0.3s;
    width: 40px;
    height: 40px;
}

.theme-toggle:hover {
    background: #e0eaf0;
    transform: rotate(10deg);
}

/* --- 11. DARK MODE STYLING (Theming) --- */
/* Tema gelap diterapkan pada elemen yang memiliki class 'dark-mode' */

.dark-mode {
    --color-primary: #5edbce; /* Warna primer lebih terang untuk kontras */
    --color-dark: #f0f0f0;    /* Teks terang */
    --color-sky: #2a3c4a;     /* Background sangat gelap */
    --color-white: #1e2b34;   /* Background putih gelap */
}

.dark-mode body {
    background-color: #1e2b34; /* Warna background utama gelap */
    color: var(--color-dark);
}

.dark-mode nav {
    background: rgba(30, 43, 52, 0.95); /* Navbar transparan gelap */
    box-shadow: 0 2px 15px rgba(0,0,0,0.5);
}

.dark-mode .nav-links a {
    color: #b0c4d4;
}
.dark-mode .brand-text {
    color: var(--color-dark);
}

.dark-mode .section-header h2,
.dark-mode .service-card h3,
.dark-mode .hero-text h1 {
    color: var(--color-dark);
}

.dark-mode .service-card,
.dark-mode .news-item,
.dark-mode .ac-link-card {
    background: var(--color-white);
    border-color: #3e5060;
    box-shadow: 0 5px 20px rgba(0,0,0,0.3);
}

.dark-mode .bg-light {
    background-color: #1a242c;
}

.dark-mode .ac-link-card:hover {
    background-color: #2a3c4a;
}
.dark-mode footer {
    background-color: #111a21;
}
/* --- 12. PAGE HEADER (Untuk Halaman Selain Beranda) --- */
.page-header {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 6rem 0 3rem;
    text-align: center;
    border-bottom-left-radius: 50% 10%;
    border-bottom-right-radius: 50% 10%;
    margin-bottom: 3rem;
    box-shadow: 0 5px 20px rgba(0, 168, 157, 0.4);
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
}

.page-header p {
    opacity: 0.9;
}

/* --- 13. WILAYAH KERJA GRID --- */
.work-area-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 30px;
}

.area-card {
    background: var(--color-white);
    padding: 2rem;
    border-left: 5px solid var(--color-secondary); /* Aksen Hijau Lime */
    border-radius: 10px;
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.area-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.area-card h3 {
    color: var(--color-dark);
    font-size: 1.2rem;
    margin-bottom: 10px;
}

/* --- 14. STRUKTUR ORGANISASI --- */
.org-chart-placeholder {
    background-color: var(--color-white);
    padding: 3rem;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
}

/* Dark Mode Overrides for Profile Page */
.dark-mode .page-header {
    background-color: var(--color-white);
    color: var(--color-dark);
    box-shadow: 0 5px 20px rgba(0,0,0,0.5);
}
/* assets/css/style.css */
/* --- 10. LOTTIE THEME TOGGLE (Tombol di Navbar) --- */
.lottie-toggle {
    cursor: pointer;
    width: 60px; /* Diperkecil dari 40px menjadi 30px */
    height: 60px; /* Diperkecil dari 40px menjadi 30px */
    background: transparent; /* Ubah background menjadi transparan agar menyatu */
    border-radius: 50%;
    padding: 0; /* Hapus padding agar lebih ramping */
    /* Hapus box-shadow agar tidak terlalu mencolok seperti tombol utama */
    transition: 0.3s;
    transform: translateZ(0); 
}

.lottie-toggle:hover {
    transform: scale(1.1);
}
/* --- 15. MAKLUMAT PELAYANAN --- */
/* assets/css/style.css */

/* --- 10. PELAYANAN (Maklumat) --- */
.maklumat-container {
    padding: 20px;
    background-color: var(--color-white); /* Latar belakang untuk memisahkan dari background section */
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center; /* Memastikan gambar berada di tengah jika ukurannya tidak 100% */
}

.maklumat-img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 0 auto;
    border-radius: 8px; /* Sudut halus untuk gambar */
}

/* Dark Mode Override */
.dark-mode .maklumat-container {
    background-color: var(--color-white); 
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
.maklumat-card {
    background: var(--color-white);
    padding: 3rem 4rem;
    border-radius: 15px;
    box-shadow: var(--shadow);
    max-width: 900px;
    margin: 0 auto;
    border-top: 5px solid var(--color-primary);
}

.maklumat-header {
    text-align: center;
    margin-bottom: 2.5rem;
    border-bottom: 2px dashed #ccc;
    padding-bottom: 20px;
}

.maklumat-header h2 {
    color: var(--color-primary);
    font-size: 1.8rem;
}

.maklumat-list {
    list-style-type: none;
    padding: 0;
    counter-reset: item;
}

.maklumat-list li {
    counter-increment: item;
    margin-bottom: 1.5rem;
    line-height: 1.8;
    position: relative;
    padding-left: 40px;
}

.maklumat-list li::before {
    content: counter(item, decimal-leading-zero); /* 01, 02, 03... */
    position: absolute;
    left: 0;
    top: 0;
    width: 30px;
    height: 30px;
    background-color: var(--color-secondary); /* Hijau Lime */
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 1rem;
}

.maklumat-footer {
    text-align: right;
    margin-top: 3rem;
}

.signature-placeholder {
    height: 80px;
    width: 200px;
    margin-left: auto;
    background-color: #eee;
    border: 1px dashed #ccc;
    margin-top: 10px;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.maklumat-link-services {
    text-align: center;
    margin-top: 2rem;
    font-size: 0.95rem;
}

/* Dark Mode Overrides for Maklumat */
.dark-mode .maklumat-card {
    background: var(--color-white);
    border-top: 5px solid var(--color-primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
/* --- 16. ACCORDION INFORMASI PUBLIK --- */
.accordion-container {
    max-width: 900px;
    margin: 0 auto;
    border: 1px solid #ddd;
    border-radius: 10px;
    overflow: hidden; /* Penting untuk menyatukan border antar item */
    box-shadow: var(--shadow);
}

.accordion-item {
    border-bottom: 1px solid #eee;
}

.accordion-item:last-child {
    border-bottom: none;
}

.accordion-header {
    background-color: var(--color-white);
    color: var(--color-dark);
    cursor: pointer;
    padding: 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    transition: background-color 0.4s ease;
    font-size: 1.1rem;
    font-weight: 600;
    position: relative;
}

.accordion-header:hover, .accordion-header.active {
    background-color: var(--color-sky);
    color: var(--color-primary);
}

/* Icon panah buka/tutup */
.accordion-header::after {
    content: '\002B'; /* Tanda Plus */
    color: var(--color-dark);
    font-weight: bold;
    font-size: 1.5rem;
    float: right;
    margin-left: 5px;
    transition: transform 0.3s;
}

.accordion-header.active::after {
    content: '\2212'; /* Tanda Minus */
    color: var(--color-primary);
}

/* Konten yang akan dibuka/tutup */
.accordion-content {
    background-color: #fcfcfc;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.4s ease-in-out;
}

.accordion-content ul {
    list-style: none;
    padding: 20px 1.5rem 20px 1.5rem;
}

.accordion-content li {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

.accordion-content li:last-child {
    border-bottom: none;
}

.accordion-content a {
    color: var(--color-dark);
    font-weight: 400;
}

.accordion-content a:hover {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Dark Mode Overrides for Accordion */
.dark-mode .accordion-container {
    border-color: #3e5060;
}

.dark-mode .accordion-header {
    background-color: var(--color-white);
    color: var(--color-dark);
    border-color: #3e5060;
}

.dark-mode .accordion-header:hover, .dark-mode .accordion-header.active {
    background-color: #2a3c4a;
    color: var(--color-primary);
}

.dark-mode .accordion-content {
    background-color: #263440;
}

.dark-mode .accordion-content li {
    border-color: #3e5060;
}

.dark-mode .accordion-header::after {
    color: var(--color-dark);
}
/* assets/css/style.css */

/* assets/css/style.css */

/* --- 19. PAGE TRANSITION OVERLAY --- */
#page-transition-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* DEFAULT: Warna Light Mode (HARDCODED UNTUK KECEPATAN) */
    background-color: #ffffff; /* Warna putih murni */
    z-index: 9999;
    opacity: 0; 
    visibility: hidden;
    transition: opacity 0.4s ease-in-out; 
}
/* ... kode lainnya ... */

/* OVERRIDE WARNA OVERLAY JIKA DARK MODE AKTIF */
.dark-mode #page-transition-overlay {
    /* HARDCODED: Nilai HEX dari --color-white di Dark Mode. Ini menghilangkan LAG. */
    background-color: #1e2b34; 
}
/* --- 20. PPID PAGE --- */
.ppid-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 40px;
}

.ppid-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    border-top: 4px solid var(--color-secondary);
}

.ppid-card h3 {
    color: var(--color-primary);
    font-size: 1.5rem;
    margin-bottom: 20px;
    border-bottom: 1px solid #eee;
    padding-bottom: 10px;
}

.contact-item {
    margin-bottom: 20px;
}

.contact-item .label {
    font-weight: 600;
    color: var(--color-dark);
    margin-bottom: 5px;
    font-size: 1rem;
}

.link-card p {
    margin-bottom: 15px;
    font-size: 0.95rem;
}

.btn-ppid-link {
    display: block;
    background-color: var(--color-primary);
    color: white;
    text-align: center;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
    margin-bottom: 15px;
}

.btn-ppid-link:hover {
    background-color: #00887a;
}

.btn-ppid-download {
    display: block;
    background-color: var(--color-secondary);
    color: var(--color-dark);
    text-align: center;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
}

.btn-ppid-download:hover {
    background-color: #90b30a;
}

.alur-placeholder {
    background-color: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    text-align: center;
    box-shadow: var(--shadow);
}

/* Dark Mode Overrides for PPID */
.dark-mode .ppid-card {
    background: var(--color-white);
    border-top-color: var(--color-primary);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
.dark-mode .ppid-card h3 {
    color: var(--color-primary);
    border-bottom-color: #3e5060;
}
.dark-mode .alur-placeholder {
    background-color: #263440;
}
.dark-mode .btn-ppid-download {
    background-color: var(--color-secondary);
    color: white;
}
/* --- 21. ADUAN MASYARAKAT PAGE --- */
.aduan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 40px;
    margin-bottom: 3rem;
}

.aduan-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    text-align: center;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.icon-aduan {
    font-size: 3rem;
    margin-bottom: 15px;
}

.aduan-card h3 {
    color: var(--color-primary);
    font-size: 1.6rem;
    margin-bottom: 15px;
}

.aduan-card p {
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 25px;
    flex-grow: 1;
}

.contact-detail {
    margin-top: 10px;
    margin-bottom: 20px;
    padding: 15px;
    background-color: var(--color-sky);
    border-radius: 5px;
}

.contact-detail p {
    margin: 5px 0;
    color: var(--color-dark);
}

.btn-lapor {
    display: block;
    background-color: #CC0000; /* Warna Merah khas Lapor */
    color: white;
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
}
.btn-lapor:hover {
    background-color: #a30000;
}

.btn-email {
    display: block;
    background-color: var(--color-secondary);
    color: var(--color-dark);
    padding: 12px 20px;
    border-radius: 5px;
    font-weight: 600;
}
.btn-email:hover {
    background-color: #90b30a;
}

.info-note {
    text-align: center;
    padding: 15px;
    background-color: #fff3cd; /* Warna kuning muda */
    border: 1px solid #ffeeba;
    border-radius: 5px;
    color: #856404; /* Warna teks gelap */
}

/* Dark Mode Overrides for Aduan */
.dark-mode .aduan-card {
    background: var(--color-white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
.dark-mode .aduan-card p {
    color: #b0c4d4;
}
.dark-mode .contact-detail {
    background-color: #2a3c4a;
}
.dark-mode .info-note {
    background-color: #584b05;
    border-color: #856404;
    color: #fff;
}
/* --- 17. BULETIN FILTER BAR --- */
.buletin-filter-bar {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 20px;
    margin-bottom: 3rem;
    padding: 1rem 0;
    border-bottom: 1px solid #ddd;
}

.buletin-filter-bar h3 {
    font-size: 1.1rem;
    color: var(--color-dark);
}

.filter-buttons {
    display: flex;
    gap: 10px;
}

.filter-btn {
    background-color: var(--color-white);
    color: var(--color-dark);
    padding: 8px 15px;
    border: 1px solid #ddd;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: 0.3s;
}

.filter-btn:hover, .filter-btn.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}


/* --- 18. BULETIN CARD GRID --- */
.buletin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.buletin-card {
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    box-shadow: var(--shadow);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s;
}

.buletin-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0,0,0,0.15);
}

.cover-placeholder {
    background: var(--color-sky);
    height: 200px; /* Tinggi Cover Buletin */
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    color: #555;
    border-bottom: 3px solid var(--color-secondary);
}

.buletin-info {
    padding: 1.5rem;
    flex-grow: 1; /* Agar konten mengisi ruang yang tersisa */
    display: flex;
    flex-direction: column;
}

.buletin-info h3 {
    font-size: 1.2rem;
    margin-bottom: 5px;
}

.buletin-info .tag {
    font-size: 0.85rem;
    color: var(--color-primary);
    margin-bottom: 10px;
    font-weight: 600;
}

.buletin-info p {
    color: #666;
    font-size: 0.95rem;
    margin-bottom: 20px;
    flex-grow: 1; /* Mendorong tombol download ke bawah */
}

.btn-download {
    background-color: var(--color-secondary); /* Hijau Lime */
    color: white;
    padding: 10px 15px;
    border-radius: 5px;
    text-align: center;
    display: block;
    font-weight: 600;
}

.btn-download:hover {
    background-color: #90b30a;
}

/* Dark Mode Overrides for Buletin */
.dark-mode .buletin-filter-bar {
    border-color: #3e5060;
}
.dark-mode .filter-btn {
    background-color: #2a3c4a;
    color: #b0c4d4;
    border-color: #3e5060;
}
.dark-mode .filter-btn:hover, .dark-mode .filter-btn.active {
    background-color: var(--color-primary);
    color: white;
    border-color: var(--color-primary);
}
.dark-mode .buletin-card {
    background: var(--color-white);
    box-shadow: 0 5px 20px rgba(0,0,0,0.4);
}
.dark-mode .cover-placeholder {
    background: #2a3c4a;
    color: #b0c4d4;
    border-bottom-color: var(--color-secondary);
}
.dark-mode .buletin-info p {
    color: #b0c4d4;
}
/* --- Tambahkan ini di assets/css/style.css Anda --- */

/* Parent card harus memiliki positioning relatif */
.area-card {
    position: relative; /* Penting agar area-image dapat di-absolute */
    overflow: hidden; /* Memastikan gambar tidak keluar dari batas kartu */
    cursor: pointer; /* Menandakan bahwa kartu interaktif */
}

/* Style untuk Gambar Overlay */
.area-card .area-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memastikan gambar menutupi seluruh area tanpa distorsi */
    z-index: 5; /* Di atas konten teks, tetapi di bawah overlay */
    opacity: 0; /* Mulai tersembunyi */
    transition: opacity 0.3s ease-in-out; /* Transisi untuk efek fade */
}

/* Style untuk konten teks di dalam kartu */
.area-card h3, .area-card p {
    position: relative;
    z-index: 10; /* Pastikan teks di atas gambar */
    color: inherit; /* Pertahankan warna teks normal */
    /* Untuk tampilan yang lebih baik, Anda bisa menambahkan sedikit latar belakang transparan ke teks
    agar lebih jelas saat gambar muncul di belakangnya. */
    padding: 15px; 
    background-color: rgba(var(--card-bg-rgb, 255, 255, 255), 0.7); 
}

/* Efek Hover (CSS MURNI - TAPI KITA AKAN GUNAKAN JS UNTUK KONTROL YANG LEBIH BAIK) */
/* .area-card:hover .area-image {
    opacity: 1; 
} */
 /* assets/css/style.css (TAMBAHKAN/MODIFIKASI INI) */

.area-card {
    /* ... style lama ... */
}

/* Style untuk Gambar Overlay */
.area-card .area-image {
    /* ... style lama (opasitas 0 secara default) ... */
    opacity: 0; 
    transition: opacity 0.3s ease-in-out;
}

/* 🚀 BARU: Gaya untuk menghilangkan teks saat kartu di-hover */
.area-card.is-hovered .area-image {
    opacity: 1; /* Gambar ditampilkan */
}

.area-card.is-hovered h3, 
.area-card.is-hovered p {
    /* Menghilangkan teks */
    opacity: 0;
    transition: opacity 0.3s ease-in-out; 
}

/* Jika Anda ingin teks berada di tengah saat tidak di-hover: */
.area-card h3, .area-card p {
    /* ... style lama ... */
    /* Pastikan transisi untuk teks juga ada */
    transition: opacity 0.3s ease-in-out; 
}
/* HAPUS SEMUA KODE YANG BERHUBUNGAN DENGAN .news-split-grid SEBELUMNYA */

/* --- BAGIAN GALERI (Image Slider) --- */
.image-slider-full {
    margin-bottom: 40px; /* Jarak antara slider dan bagian YouTube di bawahnya */
}

.slider-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden; 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.slider-wrapper {
    display: flex; /* PENTING: Membuat slide berjejer horizontal */
    transition: transform 0.5s ease-in-out; /* Animasi geser */
}

.slide {
    min-width: 100%; /* PENTING: Setiap slide mengisi lebar penuh container */
    flex-shrink: 0;
    position: relative;
}

.slider-image {
    width: 100%;
    /* Atur tinggi yang proporsional untuk tampilan banner penuh */
    height: auto; 
    max-height: 500px; 
    object-fit: contain; /* Menggunakan 'contain' agar gambar penuh terlihat di dalam area */
}
/* --- A. Perbaikan Posisi Panah Slider --- */

.slider-prev, .slider-next {
    cursor: pointer;
    position: absolute;
    top: 50%; /* Pindahkan ke tengah vertikal */
    transform: translateY(-50%); /* Geser ke atas 50% dari tingginya sendiri */
    width: auto;
    padding: 15px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 10;
}

.slider-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}
/* --- B. Perbaikan Posisi Caption Slider --- */

.caption {
    position: absolute;
    bottom: 0; 
    left: 50%; /* Pindahkan ke tengah horizontal */
    transform: translateX(-50%); /* Geser ke kiri 50% dari lebarnya sendiri */
    width: 100%; /* Memastikan lebar penuh */
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}

/* ... (Pertahankan/Tambahkan styling untuk Panah dan Dots) ... */


/* --- BAGIAN YOUTUBE (2 Kolom Berjejer) --- */

.youtube-feed-column {
    /* Hanya sebagai wrapper, tidak perlu lebar spesifik karena menggunakan grid di dalamnya */
    margin-top: 30px; 
}

.youtube-feed-grid {
    display: grid;
    /* Membuat 2 kolom dengan lebar yang sama */
    grid-template-columns: 1fr 1fr; 
    gap: 30px;
}

.news-item.yt-post {
    background-color: var(--card-bg); 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.video-container {
    position: relative;
    width: 100%;
    /* Rasio 16:9 untuk video YouTube */
    padding-bottom: 56.25%; 
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Responsif untuk Layar Kecil: YouTube menjadi 1 kolom */
@media (max-width: 768px) {
    .youtube-feed-grid {
        /* Kembali ke 1 kolom saat di layar mobile */
        grid-template-columns: 1fr; 
    }
}
/* --- C.


/* Penyesuaian responsif agar di layar kecil kembali menjadi 1 kolom */
@media (max-width: 768px) {
    .youtube-feed-grid {
        grid-template-columns: 1fr; 
    }
}
/* HAPUS SEMUA KODE YANG BERHUBUNGAN DENGAN .news-split-grid SEBELUMNYA */

/* --- BAGIAN GALERI (Image Slider: 1 Kolom Penuh) --- */

.image-slider-full {
    margin-bottom: 40px; /* Jarak antara slider dan bagian YouTube di bawahnya */
}

.slider-container {
    position: relative;
    max-width: 100%;
    margin: auto;
    overflow: hidden; 
    border-radius: 8px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.slider-wrapper {
    display: flex; /* Membuat slide berjejer horizontal */
    transition: transform 0.5s ease-in-out; /* Animasi geser */
}

.slide {
    min-width: 100%; /* Setiap slide mengisi lebar penuh container */
    flex-shrink: 0;
    position: relative;
}

.slider-image {
    width: 100%;
    height: auto; 
    max-height: 500px; 
    object-fit: contain; /* Agar gambar penuh terlihat di dalam area */
}

/* 🎯 PENTING: Perbaikan Posisi Panah Slider (Centering Vertikal) */
.slider-prev, .slider-next {
    cursor: pointer;
    position: absolute;
    top: 50%; /* Pindah ke tengah vertikal */
    transform: translateY(-50%); /* Geser ke atas 50% dari tingginya sendiri */
    width: auto;
    padding: 15px;
    color: white;
    font-weight: bold;
    font-size: 24px;
    transition: 0.6s ease;
    border: none;
    border-radius: 0 3px 3px 0;
    user-select: none;
    background-color: rgba(0, 0, 0, 0.5); 
    z-index: 10;
}

.slider-next {
    right: 0;
    border-radius: 3px 0 0 3px;
}

.slider-prev:hover, .slider-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

/* 🎯 PENTING: Perbaikan Posisi Caption Slider (Centering Horizontal di Bawah) */
.caption {
    position: absolute;
    bottom: 0; 
    left: 50%; /* Pindah ke tengah horizontal */
    transform: translateX(-50%); /* Geser ke kiri 50% dari lebarnya sendiri */
    width: 100%; /* Memastikan lebar penuh */
    background-color: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 10px 15px;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
    z-index: 9;
}

/* Styling Dot Indicators */
.dots-container {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 10;
}

.dot {
    height: 10px;
    width: 10px;
    background-color: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: background-color 0.3s;
}

.dot.active, .dot:hover {
    background-color: white;
}


/* --- BAGIAN YOUTUBE (2 Kolom Berjejer di Bawah Slider) --- */

/* --- BAGIAN YOUTUBE (Tampilan 100% Vertikal Rapi) --- */

.youtube-feed-column {
    margin-top: 30px; 
}

/* CONTAINER YOUTUBE - Kembalikan ke tampilan default (block) */
.youtube-feed-grid {
    display: block; /* Memastikan setiap item berada di baris baru (vertikal) */
    margin-top: 20px;
}

/* ITEM YOUTUBE - Pastikan setiap item mengambil lebar penuh dan diberi jarak */
.news-item.yt-post {
    width: 100%; /* Memaksa item video mengambil 100% lebar */
    margin-bottom: 30px; /* Memberi jarak di bawah setiap video */
    background-color: var(--color-white); 
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Video Container untuk Rasio 16:9 (INI HARUS TETAP ADA) */
.video-container {
    position: relative;
    width: 100%;
    padding-bottom: 56.25%; /* Rasio 16:9 */
    height: 0;
    overflow: hidden;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}
/* Responsif untuk Layar Kecil: YouTube menjadi 1 kolom */
@media (max-width: 768px) {
    .youtube-feed-grid {
        grid-template-columns: 1fr; /* Kembali ke 1 kolom saat di layar mobile */
    }
}
/* Pastikan blok ini ada di assets/css/style.css */


/* Tambahan: Pastikan ini juga ada untuk responsif di layar kecil */
@media (max-width: 768px) {
    .youtube-feed-grid {
        grid-template-columns: 1fr; /* Kembali ke 1 kolom di HP/tablet */
    }
}
/* --- 7. INDEKS SURVEY (Kepuasan, Kualitas, Anti Korupsi) --- */

/* Parent Container: Menggunakan Grid 3 Kolom */
.survey-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* Membuat 3 kolom sama lebar */
    gap: 25px; /* Jarak antar kolom */
    margin-top: 30px;
}

/* Styling setiap kartu survey */
.survey-card {
    background-color: var(--color-white); /* Latar putih untuk kontras di bg-light */
    border-radius: 12px;
    overflow: hidden; /* Penting agar gambar membulat di sudut atas */
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08); /* Efek bayangan halus */
    transition: transform 0.3s ease;
}

.survey-card:hover {
    transform: translateY(-5px); /* Efek naik saat di-hover */
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.1);
}

.survey-img {
    width: 100%;
    height: auto;
    display: block;
}

.survey-caption {
    padding: 15px 20px 20px 20px;
}

.survey-caption h3 {
    font-size: 1.15em;
    margin-top: 0;
    margin-bottom: 5px;
    color: var(--color-heading);
}

.survey-caption p {
    font-size: 0.9em;
    color: var(--color-text-secondary);
    line-height: 1.4;
}

/* Responsif: Menjadi 1 kolom di layar kecil dan 2 kolom di tablet */
@media (max-width: 992px) {
    .survey-grid {
        grid-template-columns: 1fr 1fr; /* 2 kolom di tablet/desktop kecil */
    }
}

@media (max-width: 600px) {
    .survey-grid {
        grid-template-columns: 1fr; /* 1 kolom di mobile */
    }
}
/* --- Profil Page: Justify Text --- */

/* Menargetkan Paragraf di Header Page (Bagian "Tentang Kami:") */
.page-header p {
    text-align: justify; /* Kunci untuk rata kiri dan kanan */
    margin-bottom: 1em; /* Menambah sedikit jarak antar paragraf */
    line-height: 1.6; /* Opsional: Menambah jarak baris agar lebih mudah dibaca */
    max-width: 900px; /* Opsional: Batasi lebar maksimum agar mata nyaman membaca */
    margin-left: auto;
    margin-right: auto;
}
/* Menargetkan Paragraf di dalam Kartu Wilayah Kerja */
.work-area-grid .area-card p {
    text-align: justify;
    line-height: 1.5;
}
/* --- HOMEPAGE REFINEMENT (style.css) --- */

/* 1. ANTI-KORUPSI SECTION (Membuat Rapi dan Sejajar) */
.anti-corruption-content {
    display: flex;
    align-items: center; /* Konten di tengah vertikal */
    gap: 40px;
    padding: 30px 0; /* Tambah padding vertikal */
}

.ac-left {
    flex-shrink: 0; 
    max-width: 250px; /* Batasi lebar GIF */
    text-align: center;
}

.ac-right {
    flex-grow: 1;
}

.ac-links-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 kolom untuk link */
    gap: 20px;
    margin-top: 25px;
}

.ac-link-card {
    display: block;
    text-align: center;
    padding: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: all 0.2s ease;
    background-color: var(--color-white);
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05); /* Shadow halus */
}

.ac-link-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.1);
}

.ac-link-card img {
    height: 40px; 
    margin-bottom: 8px;
}

/* 2. KABAR TERKINI - 2 KOLOM RAPIH */
.feed-layout {
    display: grid;
    grid-template-columns: 2fr 1fr; /* Slider 2/3 lebar, YouTube 1/3 lebar */
    gap: 40px; 
    margin-top: 40px;
}

/* Enhancing Slider Look */
.slider-container {
    position: relative;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1); 
    border-radius: 12px;
    overflow: hidden;
}

.caption {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 15px 20px;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), rgba(0, 0, 0, 0.4)); /* Gradient overlay modern */
    color: white;
    font-weight: 500;
    font-size: 1.1em;
}

/* Enhancing YouTube Card Look */
.news-item.yt-post {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 20px;
}

/* Responsiveness for Kabar Terkini */
@media (max-width: 992px) {
    /* Stack Anti-Corruption Content */
    .anti-corruption-content {
        flex-direction: column;
        text-align: center;
    }
    .ac-right {
        text-align: center;
    }

    /* Stack Feed Content */
    .feed-layout {
        grid-template-columns: 1fr; 
        gap: 30px;
    }
}

@media (max-width: 600px) {
    /* Stack Link Cards on Mobile */
    .ac-links-grid {
        grid-template-columns: 1fr; 
    }
}
/* --- Lottie Background Styling --- */

.anti-corruption-section {
    /* PENTING: Untuk memosisikan Lottie di dalamnya secara absolut */
    position: relative; 
    overflow: hidden; /* Memastikan Lottie tidak keluar dari section */
    
    /* Warna Background baru: Kontras dan Elegan */
    background-color: #1a222c; 
    color: #f0f0f0; 
}

/* Memastikan konten utama (maskot, teks, tautan) tetap di atas Lottie */
.anti-corruption-content {
    position: relative;
    z-index: 2; /* Lebih tinggi dari Lottie */
}

/* Styling untuk Container Lottie */
#lottie-ac-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%; /* Sedikit lebih besar dari section untuk mengisi penuh */
    height: 120%;
    z-index: 1; /* Di bawah konten utama */
    
    /* Kunci kehalusan: Mengatur Opacity sangat rendah */
    opacity: 0.08; /* Nilai antara 0.05 hingga 0.15 sangat direkomendasikan */
    
    /* Memastikan animasi tidak mengganggu mouse */
    pointer-events: none; 
}

/* Memastikan teks di ac-right dan ac-links-grid juga berwarna terang */
.anti-corruption-content h2, 
.anti-corruption-content p {
    color: #f0f0f0; 
}

/* KARTU TAJUK PENTING (DIAMBIL DARI SARAN SEBELUMNYA) */
.anti-corruption-content h2 {
    font-size: 2.2em;
    padding-bottom: 5px;
    /* Gunakan variabel warna merah Anda, atau ganti dengan #e74c3c jika belum ada */
    border-bottom: 3px solid var(--color-red, #e74c3c); 
    display: inline-block;
}

.ac-link-card {
    background-color: #27313e; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    padding: 20px 15px; 
    border-radius: 10px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); 
    transition: all 0.3s ease;
    color: #cccccc; 
    font-weight: 500;
}

.ac-link-card:hover {
    background-color: #334050; 
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

.ac-link-card img {
    height: 50px; 
    filter: drop-shadow(0 0 5px rgba(0, 0, 0, 0.4)); 
}
/* ========================================================= */
/* --- LIGHT MODE (Tampilan Default, tidak ada class dark-mode) --- */
/* ========================================================= */

.anti-corruption-section {
    position: relative; 
    overflow: hidden; 
    
    /* 1. WARNA LIGHT MODE: Latar belakang terang (Asumsi variabel Anda) */
    background-color: var(--color-light, #f8f8f8); 
    color: var(--color-dark, #333); /* Teks gelap */
}

/* KARTU TAJUK LIGHT MODE */
.ac-link-card {
    background-color: white; 
    border: 1px solid #ddd; 
    padding: 20px 15px; 
    border-radius: 10px;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05); 
    transition: all 0.3s ease;
    color: #333; /* Teks gelap */
    font-weight: 500;
}
.ac-link-card:hover {
    background-color: #f0f0f0; 
    transform: translateY(-2px); 
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
}

/* LOTTIE LIGHT MODE */
#lottie-ac-bg {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    z-index: 1; 
    pointer-events: none; 
    
    /* 2. SOLUSI: Balikkan warna agar hitam (Lottie) jadi putih (terlihat di latar terang) */
    filter: invert(1); 
    opacity: 0.05; /* Dibuat lebih tipis */
}
/* ========================================================= */
/* --- DARK MODE (Aktif saat body memiliki class="dark-mode") --- */
/* ========================================================= */

body.dark-mode .anti-corruption-section {
    /* WARNA DARK MODE: Latar belakang gelap */
    background-color: #1a222c; 
    color: #f0f0f0; /* Teks terang */
}

/* KARTU TAJUK DARK MODE */
body.dark-mode .ac-link-card {
    background-color: #27313e; 
    border: 1px solid rgba(255, 255, 255, 0.1); 
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3); 
    color: #cccccc; 
}
body.dark-mode .ac-link-card:hover {
    background-color: #334050; 
    transform: translateY(-5px); 
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.5);
}

/* LOTTIE DARK MODE */
body.dark-mode #lottie-ac-bg {
    /* 3. SOLUSI: Hapus filter invert. Lottie kembali ke warna aslinya (gelap) */
    filter: none; 
    opacity: 0.08; /* Dibuat sedikit lebih tebal di latar gelap */
}

/* Pastikan elemen lain yang diubah warnanya juga ditimpa: */
body.dark-mode .anti-corruption-content h2, 
body.dark-mode .anti-corruption-content p {
    color: #f0f0f0; 
}
/* --- Default Teks Color (LIGHT MODE) --- */

/* Menargetkan semua teks di dalam section anti-korupsi */
.anti-corruption-section {
    /* ... properti lain (background-color: var(--color-light); dll) */
    color: var(--color-dark, #333); /* <-- Teks utama di section harus gelap */
}

/* Menargetkan Judul dan Paragraf di dalam konten */
.anti-corruption-content h2, 
.anti-corruption-content p {
    color: var(--color-dark, #333); /* <-- Pastikan teks Judul dan P gelap */
}

/* Menargetkan teks di dalam kartu */
.ac-link-card span {
    color: var(--color-dark, #333); /* <-- Pastikan teks link card juga gelap di Light Mode */
}
/* --- DARK MODE Teks Color (Saat class dark-mode aktif) --- */

body.dark-mode .anti-corruption-section {
    /* ... properti lain (background-color: #1a222c; dll) */
    color: #f0f0f0; /* <-- Teks utama di section harus terang */
}

body.dark-mode .anti-corruption-content h2, 
body.dark-mode .anti-corruption-content p {
    color: #f0f0f0; /* <-- Pastikan teks Judul dan P terang */
}

body.dark-mode .ac-link-card span {
    color: #cccccc; /* <-- Pastikan teks link card juga terang di Dark Mode */
}
/* LOTTIE LIGHT MODE (Default - Tanpa class dark-mode) */
#lottie-ac-bg {
    position: absolute;
    /* GANTI INI: Pindahkan Lottie ke Atas */
    top: 20%; /* Ganti dari 50% atau 40% */
    
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    z-index: 1; 
    pointer-events: none; 
    
    filter: invert(1); /* Tetap di sini agar warna Lottie putih di Light Mode */
    opacity: 0.05; 
}
/* LOTTIE DARK MODE (Saat class dark-mode aktif) */
body.dark-mode #lottie-ac-bg {
    /* GANTI INI: Pindahkan Lottie ke Atas (Nilai harus sama dengan Light Mode) */
    top: 20%; 
    
    filter: none; 
    opacity: 0.08; 
}
/* ========================================================= */
/* --- PERBAIKAN TAMPILAN AREA CARD (PROFIL.HTML) --- */
/* ========================================================= */

.work-area-grid .area-card p,
.work-area-grid .area-card h3 {
    /* 1. Hapus Background Highlight */
    /* Ini menimpa background-color yang mungkin diwarisi */
    background-color: transparent !important; 
    
    /* 2. Hapus Box Shadow pada Teks (Jika digunakan untuk highlight) */
    text-shadow: none !important; 
    
    /* 3. Pastikan Warna Teks Hitam (Light Mode) atau Putih (Dark Mode) */
    /* Kita gunakan warna default tema */
    color: var(--color-dark, #333); 
    transition: color 0.3s ease; /* Jaga transisi warna */
}

/* Penyesuaian Dark Mode agar warna teks tetap putih */
body.dark-mode .work-area-grid .area-card p,
body.dark-mode .work-area-grid .area-card h3 {
    color: var(--color-light, #f0f0f0); 
}
/* --- SECTION KONTAK --- */
.contact-wrapper {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr; /* Kontak sedikit lebih lebar dari map */
    gap: 30px;
    margin-top: 40px;
    align-items: stretch;
}

/* Flexbox untuk menaruh maskot di samping kartu */
.contact-flex-container {
    display: flex;
    align-items: flex-end; /* Maskot seolah berdiri di lantai yang sama dengan kartu */
    gap: 15px;
    height: 100%;
}

.contact-text-side {
    flex: 1;
}

.contact-card {
    background: white;
    padding: 30px;
    border-radius: 20px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    height: 100%; /* Menyamakan tinggi dengan container */
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    color: #333;
}

.contact-item .icon { font-size: 1.5rem; }
.contact-item h4 { margin: 0 0 5px 0; color: #007bff; }
.contact-item p { margin: 0; font-size: 0.95rem; line-height: 1.4; }

/* Maskot Side */
.contact-maskot-side {
    display: flex;
    align-items: flex-end;
}

.webp-model {
    width: 140px; /* Ukuran ideal untuk di samping teks */
    height: auto;
    filter: drop-shadow(0 10px 15px rgba(0,0,0,0.1));
    animation: float 3s ease-in-out infinite;
}

/* Map Container */
.contact-map-container {
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
    min-height: 350px;
}

/* Dark Mode Adaptation */
body.dark-mode .contact-card {
    background: #27313e;
    color: #f0f0f0;
}
body.dark-mode .contact-item { color: #f0f0f0; }
body.dark-mode .contact-item h4 { color: #4dabff; }

/* Responsive */
@media (max-width: 992px) {
    .contact-wrapper {
        grid-template-columns: 1fr; /* Stack vertikal di tablet/HP */
    }
    .contact-flex-container {
        flex-direction: column;
        align-items: center;
    }
    .contact-maskot-side {
        order: -1; /* Maskot pindah ke atas teks di layar kecil */
        margin-bottom: 20px;
    }
}
/* --- ADUAN HERO SECTION --- */
.aduan-hero {
    background: linear-gradient(135deg, #1a222c 0%, #2c3e50 100%);
    color: white;
    padding: 100px 0 60px 0;
    overflow: hidden;
}

.aduan-hero-flex {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.aduan-hero h1 span {
    color: #4dabff;
}

.hero-maskot .webp-model {
    width: 250px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.5));
}

.webp-model {
    width: 250px;
    height: auto;
    /* Memberikan efek kedalaman tanpa harus bergerak */
    filter: drop-shadow(0 15px 25px rgba(0,0,0,0.3)); 
}

/* --- ADUAN CARDS --- */
.aduan-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 30px;
    margin-top: -50px; /* Membuat kartu agak naik ke area hero */
}

.aduan-card-modern {
    background: white;
    padding: 40px;
    border-radius: 24px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    position: relative;
    transition: transform 0.3s ease;
}

.aduan-card-modern:hover {
    transform: translateY(-10px);
}

.card-tag {
    position: absolute;
    top: 20px;
    right: 20px;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.icon-circle {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.btn-modern {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    margin-top: 20px;
    transition: 0.3s;
}

.btn-red {
    background: #e74c3c;
    color: white;
}

.btn-red:hover {
    background: #c0392b;
    box-shadow: 0 5px 15px rgba(231, 76, 60, 0.4);
}

.internal-links {
    margin-top: 20px;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.internal-links a {
    color: #333;
    text-decoration: none;
    font-weight: 500;
}

.warning-box {
    margin-top: 40px;
    padding: 20px;
    background: #fff3cd;
    border-left: 5px solid #ffc107;
    border-radius: 8px;
    color: #856404;
    font-size: 0.95rem;
}

/* --- DARK MODE --- */
body.dark-mode .aduan-card-modern {
    background: #27313e;
    color: white;
}

body.dark-mode .internal-links a {
    color: #f0f0f0;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .aduan-hero-flex {
        flex-direction: column;
        text-align: center;
    }
    .aduan-grid {
        margin-top: 20px;
    }
}
/* --- 1. DEFAULT (LIGHT MODE) --- */
/* Kita buat Hero menjadi cerah sebagai setelan awal */
.aduan-hero {
    background: linear-gradient(135deg, #f0f4f8 0%, #d9e2ec 100%); /* Warna biru-abu sangat muda */
    color: #333; /* Teks gelap agar terbaca di background terang */
    padding: 100px 0 60px 0;
    overflow: hidden;
}

.aduan-hero h1 span {
    color: #007bff; /* Warna biru cerah untuk aksen span di Light Mode */
}

.aduan-hero p {
    color: #555;
}

/* Memastikan background section di bawahnya juga terang */
.bg-light {
    background-color: #f8f9fa !important;
}

/* --- 2. DARK MODE OVERRIDE --- */
/* Saat body memiliki class .dark-mode, baru kita ubah warnanya jadi gelap */
body.dark-mode .aduan-hero {
    background: linear-gradient(135deg, #1a222c 0%, #2c3e50 100%);
    color: white;
}

body.dark-mode .aduan-hero h1 span {
    color: #4dabff; /* Biru muda yang menyala di background gelap */
}

body.dark-mode .aduan-hero p {
    color: #cbd5e0;
}

body.dark-mode .bg-light {
    background-color: #1a222c !important; /* Background section bawah jadi gelap di Dark Mode */
}

/* Badge Styling */
.badge {
    display: inline-block;
    background: rgba(0, 123, 255, 0.1);
    color: #007bff;
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 15px;
}

body.dark-mode .badge {
    background: rgba(77, 171, 255, 0.2);
    color: #4dabff;
}
/* ========================================================= */
/* --- CHATBOT WIDGET FINAL (MODERN & MASKOT ICON) --- */
/* ========================================================= */

/* 1. Kontainer Utama (Posisi di Pojok) */
#chatbot-container {
    position: fixed;
    bottom: 25px;
    right: 25px;
    z-index: 9999;
    font-family: 'Poppins', sans-serif;
}

/* 2. Tombol Toggle (Sekarang menggunakan Ikon Maskot) */
#chat-toggle-btn {
    width: 150px; 
    height: 150px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
    transition: transform 0.3s ease;
}

.chat-btn-img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: drop-shadow(0 8px 20px rgba(0, 123, 255, 0.4));
}

#chat-toggle-btn:hover {
    transform: scale(1.1);
}

/* 3. Jendela Chat (Kotak Pesan) */
#chat-window {
    width: 330px;
    height: 450px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.15);
    display: flex;
    flex-direction: column;
    position: absolute;
    bottom: 90px; /* Jarak dari ikon maskot */
    right: 0;
    overflow: hidden;
    transition: all 0.3s ease;
}

#chat-window.hidden {
    display: none;
    opacity: 0;
    transform: translateY(20px);
}

/* 4. Bagian Dalam Jendela Chat */
.chat-header {
    background: #007bff;
    color: white;
    padding: 15px 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.online-dot {
    height: 8px;
    width: 8px;
    background: #2ecc71;
    border-radius: 50%;
    display: inline-block;
    margin-right: 8px;
}

#chat-body {
    flex: 1;
    padding: 20px;
    overflow-y: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
    background: #f8f9fa;
}

.bot-msg, .user-msg {
    padding: 10px 15px;
    border-radius: 15px;
    font-size: 0.9rem;
    max-width: 85%;
    line-height: 1.4;
}

.bot-msg { background: #e9ecef; color: #333; align-self: flex-start; }
.user-msg { background: #007bff; color: white; align-self: flex-end; }

.chat-footer {
    padding: 15px;
    display: flex;
    gap: 10px;
    border-top: 1px solid #eee;
    background: white;
}

#chat-input {
    flex: 1;
    border: 1px solid #ddd;
    padding: 8px 15px;
    border-radius: 20px;
    outline: none;
}

#send-chat {
    background: none;
    border: none;
    font-size: 1.2rem;
    cursor: pointer;
}

#close-chat {
    background: none;
    border: none;
    color: white;
    font-size: 1.5rem;
    cursor: pointer;
}

/* 5. Adaptasi Dark Mode */
body.dark-mode #chat-window { background: #27313e; }
body.dark-mode #chat-body { background: #1a222c; }
body.dark-mode .bot-msg { background: #34495e; color: white; }
body.dark-mode .chat-footer { background: #27313e; border-color: #444; }
body.dark-mode #chat-input { background: #34495e; border-color: #444; color: white; }


/* Responsif: Agar di HP tidak terlalu menutupi layar */
@media (max-width: 600px) {
    #chat-toggle-btn {
        width: 80px; /* Sedikit lebih kecil di perangkat mobile */
        height: 80px;
        bottom: 15px;
        right: 15px;
    }
}
/* Container Cover Buletin */
.buletin-cover {
    width: 100%;
    height: 250px; /* Atur tinggi seragam untuk semua cover */
    overflow: hidden;
    background-color: #f0f0f0;
}

.buletin-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* Memastikan gambar memenuhi area tanpa gepeng */
    object-position: top; /* Fokus pada bagian atas gambar (judul buletin) */
    transition: transform 0.5s ease;
}

/* Efek zoom saat kartu di-hover */
.buletin-card:hover .buletin-cover img {
    transform: scale(1.1);
}

/* Style tambahan untuk placeholder yang belum ada gambarnya */
.cover-placeholder {
    width: 100%;
    height: 250px;
    background: linear-gradient(135deg, #e0e0e0, #f5f5f5);
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #888;
    font-weight: bold;
    padding: 20px;
}
.typing-indicator {
    font-style: italic;
    font-size: 0.85rem;
    color: #888;
    background: transparent !important; /* Agar tidak berbentuk kotak pesan dulu */
    margin-bottom: 10px;
}
/* SATU BLOK RESPONSIVE HP (VERSI FINAL & BERSIH) */
@media (max-width: 768px) {
    nav {
        flex-direction: column;
        padding: 10px;
        height: auto;
    }

    .nav-brand {
        margin-bottom: 5px;
    }

    .nav-links {
        display: flex;
        align-items: center;
        overflow-x: auto;
        width: 100%;
        padding: 10px 5px;
        gap: 20px;
        justify-content: flex-start;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .nav-links::-webkit-scrollbar {
        display: none;
    }

    .nav-links a {
        white-space: nowrap;
        font-size: 0.9rem;
        flex-shrink: 0;
    }

    #lottie-theme-toggle {
        width: 40px !important; 
        height: 40px !important;
        min-width: 40px; 
        flex-shrink: 0;
        margin-left: 10px;
        display: inline-block;
    }

    /* FIX CHATBOT: TANPA BULATAN & UKURAN PROPOSIONAL */
    #chat-toggle-btn {
        width: 90px !important;   /* Ukuran area tombol */
        height: 90px !important;  
        bottom: 15px !important;   
        right: 15px !important;
        background: transparent !important; /* MENGHILANGKAN WARNA TEAL */
        background-color: transparent !important; /* DOUBLE CHECK AGAR HILANG */
        border: none !important;            
        box-shadow: none !important;        /* HILANGKAN BAYANGAN BULAT */
        display: flex !important;
        align-items: center !important;
        justify-content: center !important;
        z-index: 99999 !important;
    }

    .chat-btn-img {
        width: 80px !important;    /* Ukuran maskot di dalam tombol */
        height: auto !important;
        display: block !important;
        filter: drop-shadow(2px 4px 6px rgba(0,0,0,0.3)); /* Bayangan pada maskot saja */
    }

    #chat-window {
        width: 90vw !important;   
        bottom: 110px !important;
        right: 5vw !important;
        height: 500px !important; 
    }
} /* PENUTUP MEDIA QUERY HANYA DI SINI */