html, body {
    width: 100%;
    overflow-x: hidden;
}

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* Header */

.header-content {
    width: 100%;
    padding: 40px 40px 20px 40px;
    background: rgba(255,255,255,0.3); /* transparan */
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

/* Geser header-top agar konten lebih ke tengah */
.header-top {
    width: 90%;              /* Lebar lebih kecil dari 100% */
    margin-left: 5%;         /* Geser ke kiri */
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nama-desa {
    color: #fff;
    font-size: 2.8rem;
    font-family: 'Playfair Display', serif;
    font-weight: bold;
    margin: 0;
    letter-spacing: 2px;
    padding-left: 40px;      /* Geser ke kanan */
    background: linear-gradient(90deg, #27ae60 0%, #229954 100%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    animation: fadeInRight 1s;
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(-40px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.logo-desa {
    height: 70px;
    margin-right: 20px;
}

/* Navbar */
.navbar {
  display: flex;
  align-items: center;
  background: #fff;
  padding: 0 40px;
  height: 56px;
  box-shadow: 0 2px 12px rgba(39,174,96,0.07);
  border-bottom: 1px solid #eafaf1;
}
.navbar-links {
  display: flex;
  gap: 18px;
}
.navbar-link {
  color: #229954;
  font-weight: 600;
  text-decoration: none;
  padding: 0 12px;
  font-size: 1.08rem;
  line-height: 56px;
  border-radius: 6px;
  transition: background 0.2s;
}
.navbar-link:hover {
  background: #eafaf1;
}
.navbar-dropdown {
  position: relative;
  display: inline-block;
}
.navbar-dropbtn {
  background: none;
  border: none;
  color: #229954;
  font-weight: 600;
  font-size: 1.08rem;
  padding: 0 12px;
  line-height: 56px;
  border-radius: 6px;
  cursor: pointer;
  transition: background 0.2s;
}
.navbar-dropbtn:hover {
  background: #eafaf1;
}
.navbar-dropdown-content {
  display: none;
  position: absolute;
  left: 0;
  top: 56px;
  background: #fff;
  min-width: 180px;
  box-shadow: 0 2px 12px rgba(39,174,96,0.07);
  border-radius: 0 0 8px 8px;
  z-index: 1000;
  padding: 8px 0;
}
.navbar-dropdown:hover .navbar-dropdown-content {
  display: block;
}
.navbar-dropdown-content a {
  color: #229954;
  padding: 10px 18px;
  text-decoration: none;
  display: block;
  font-size: 1.02rem;
  border-bottom: 1px solid #eafaf1;
  transition: background 0.2s;
}
.navbar-dropdown-content a:last-child {
  border-bottom: none;
}
.navbar-dropdown-content a:hover {
  background: #eafaf1;
}

/* Responsive: Hide navbar on mobile, show on desktop */
@media (max-width: 900px) {
  .navbar { display: none !important; }
}
@media (min-width: 901px) {
  .navbar { display: flex !important; }
}

.navbar {
    width: 800px; /* Lebar tetap, tidak terlalu panjang */
    max-width: 90vw;
    margin: 0 auto; /* Posisikan di tengah */
    background: rgba(4, 179, 48, 0.85); /* Biru transparan */
    box-shadow: 0 4px 16px rgba(52,152,219,0.12);
    border-radius: 16px;
    padding: 10px 20px;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.navbar-links {
    display: flex;
    align-items: center;
    gap: 18px;
    background: none;
    box-shadow: none;
    flex-wrap: nowrap; /* Pastikan tidak pindah baris */
}

.navbar-link, .navbar-dropbtn {
    color: #fff;
    background: none;
    border: none;
    font-size: 1rem; /* Ukuran font lebih kecil dan seragam */
    padding: 10px 16px; /* Padding lebih kecil agar tidak terlalu besar */
    cursor: pointer;
    font-family: 'Merriweather', serif;
    transition: background 0.3s, color 0.3s, transform 0.3s, box-shadow 0.3s;
    text-decoration: none;
    border-radius: 8px;
    display: block;
    position: relative;
    white-space: nowrap; /* Tidak pindah baris */
}

.navbar-link:hover, .navbar-dropbtn:hover {
    background: rgba(255,255,255,0.18);
    color: #ffd700;
    box-shadow: 0 2px 8px rgba(52,152,219,0.18);
    transform: translateY(-2px) scale(1.07);
}

.navbar-dropdown {
    position: relative;
}

.navbar-dropdown-content {
    display: none;
    position: absolute;
    top: 110%;
    left: 0;
    background: #fff;
    min-width: 180px;
    border-radius: 10px;
    box-shadow: 0 8px 24px rgba(52,152,219,0.18);
    z-index: 10;
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.3s, transform 0.3s;
    pointer-events: none;
    overflow: hidden;
}

.navbar-dropdown-content .navbar-link {
    color: grey;
    padding: 12px 20px;
    text-align: left;
    font-size: 1rem;
    border-radius: 0;
    background: none;
    box-shadow: none;
}

.navbar-dropdown-content .navbar-link:hover {
    background: #f0f8ff;
    color: #27ae60;
}

.navbar-dropdown:hover .navbar-dropdown-content,
.navbar-dropdown:focus-within .navbar-dropdown-content {
    display: block;
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.menu-toggle {
    display: none;
    margin-left: 20px;
    font-size: 24px;
    cursor: pointer;
}

/* Icon style */
.fa-chevron-down {
    font-size: 12px; 
    margin-left: 6px;
    vertical-align: middle;
}

/* Sidebar */
.sidebar {
    height: 100%;
    width: 250px;
    position: fixed;
    z-index: 1;
    top: 0;
    left: -250px;
    background-color: #111;
    overflow-x: hidden;
    transition: 0.5s;
    padding-top: 60px;
}

.sidebar.open {
    left: 0;
}

.sidebar a {
    padding: 8px 8px 8px 32px;
    text-decoration: none;
    font-size: 25px;
    color: white;
    display: block;
    transition: 0.3s;
}

.sidebar a:hover {
    color: #f1f1f1;
}

.sidebar .closebtn {
    position: absolute;
    top: 20px;
    right: 25px;
    font-size: 36px;
}

.dropdown-btn {
    background-color: inherit;
    color: white;
    padding: 8px 8px 8px 32px;
    font-size: 25px;
    border: none;
    text-align: left;
    cursor: pointer;
    outline: none;
    transition: 0.3s;
}

.dropdown-container {
    display: none;
    padding-left: 30px;
    transition: max-height 0.4s cubic-bezier(0.77,0,0.175,1), opacity 0.4s;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
}

.dropdown-btn.active + .dropdown-container {
    max-height: 500px;
    opacity: 1;
}

/* Main Content */
.main-content {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.main-img {
    width: 100%;
    max-width: 900px;
    height: 350px;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
    margin-bottom: 30px;
}

.main-img-full {
    width: 100%;
    position: relative;
    overflow: hidden;
}

.main-img-full-img {
    width: 100%;
    height: 90vh;
    display: block;
}

.main-img-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: #fff;
    text-align: center;
    padding: 32px 48px;
    border-radius: 18px;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 600;
    letter-spacing: 1px;
    text-shadow: 0 2px 16px rgba(0,0,0,0.45), 0 1px 0 #229954;
}

.main-img-text h1 {
    margin-bottom: 18px;
    font-size: 2.7rem;
    font-family: 'Playfair Display', 'Montserrat', serif;
    font-weight: 700;
    letter-spacing: 2px;
    text-shadow: 0 4px 24px #229954, 0 1px 0 #333;
}

.main-img-text p {
    font-size: 1.25rem;
    margin-bottom: 10px;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 500;
    text-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

/* Section Visimisi */
.section-visimisi {
    max-width: 900px;
    margin: 40px auto 60px auto;
    padding: 32px 24px;
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(52,152,219,0.08);
}

.section-visimisi h2 {
    color: #3498db;
    font-size: 2rem;
    margin-bottom: 18px;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
}

.section-visimisi h3 {
    color: #2980b9;
    margin-top: 18px;
    font-size: 1.3rem;
}

.section-visimisi p, .section-visimisi ul {
    color: #222;
    font-size: 1.1rem;
    line-height: 1.7;
}

.section-visimisi ul {
    padding-left: 20px;
    margin-top: 10px;
}

/* Section Struktur */
.section-struktur {
    max-width: 900px;
    margin: 40px auto 60px auto;
    padding: 32px 24px;
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(52,152,219,0.08);
    text-align: center;
}

.struktur-img-container {
    margin: 24px 0;
}

.struktur-img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(52,152,219,0.12);
}

/* Footer */
footer {
    background: #2c3e50;
    color: #fff;
    text-align: center;
    padding: 20px 0;
    width: 100%;
    margin-top: auto;
}

.footer-links a {
    color: #fff;
    margin: 0 10px;
    text-decoration: none;
}

.footer-links a:hover {
    text-decoration: underline;
}


/* Responsive */
@media screen and (max-width: 768px) {
    .navbar-links {
        display: none;
    }
    .menu-toggle {
        display: block;
    }
    .sidebar {
        width: 100%;
    }
    .header-content {
        padding: 20px;
    }
    .header-desa {
        min-height: 200px;
    }
}

.section-sejarah-visimisi {
    max-width: 1100px;
    margin: 40px auto 60px auto;
    padding: 32px 24px;
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(52,152,219,0.08);
}

.sejarah-visimisi-container {
    display: flex;
    gap: 32px;
    flex-wrap: wrap;
}

.sejarah-box, .visimisi-box {
    flex: 1 1 400px;
    background: #f8faff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(52,152,219,0.07);
    padding: 24px 18px;
    min-width: 280px;
}

.sejarah-box h2, .visimisi-box h2 {
    color: #3498db;
    font-size: 1.5rem;
    margin-bottom: 12px;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
}

.visimisi-box h3 {
    color: #2980b9;
    margin-top: 12px;
    font-size: 1.15rem;
}

.sejarah-box p, .visimisi-box p, .visimisi-box ul {
    color: #222;
    font-size: 1.05rem;
    line-height: 1.7;
}

.visimisi-box ul {
    padding-left: 20px;
    margin-top: 8px;
}

@media (max-width: 900px) {
    .sejarah-visimisi-container {
        flex-direction: column;
        gap: 24px;
    }
}

/* Leadership Partner Section */
.section-leadership {
    max-width: 1300px; /* diperbesar dari 1100px */
    margin: 40px auto 60px auto;
    padding: 32px 24px;
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(52,152,219,0.08);
    text-align: center;
}

/* Container tetap sejajar */
.leadership-container {
    display: flex;
    gap: 32px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: nowrap; /* Pastikan tidak pindah baris selama cukup lebar */
}

.leader-card {
    flex: 0 0 300px;           /* Card lebih besar */
    background: #f8faff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(52,152,219,0.07);
    padding: 24px 16px;
    min-width: 220px;
    max-width: 300px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-start;
}

.leader-img {
    width: 220px;
    height: 300px;
    object-fit: cover;
    border-radius: 8px;
    box-shadow: none;
    border: none;
    margin-bottom: 16px;
    background: #eee;
    display: block;
}

/* Responsive untuk mobile */
@media (max-width: 1000px) {
    .leadership-container {
        flex-wrap: wrap;
    }
    .leader-card {
        max-width: 100%;
        flex: 1 1 300px;
    }
    .leader-img {
        width: 100%;
        max-width: 220px;
        height: 220px;
    }
}

/* Section Peta */
.section-peta {
    max-width: 900px;
    margin: 40px auto 60px auto;
    padding: 32px 24px;
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(52,152,219,0.08);
    text-align: center;
}

.section-peta h2 {
    color: #3498db;
    font-size: 2rem;
    margin-bottom: 24px;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
}

.peta-container {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(52,152,219,0.07);
}

/* Section Artikel */
.section-artikel {
    max-width: 1100px;
    margin: 40px auto 60px auto;
    padding: 32px 24px;
    background: rgba(255,255,255,0.95);
    border-radius: 16px;
    box-shadow: 0 4px 24px rgba(52,152,219,0.08);
    text-align: center;
}

.section-artikel h2 {
    color: #3498db;
    font-size: 2rem;
    margin-bottom: 28px;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 700;
}

.artikel-container {
    display: flex;
    gap: 32px;
    justify-content: center;
    flex-wrap: wrap;
}

.artikel-card {
    background: #f8faff;
    border-radius: 12px;
    box-shadow: 0 2px 12px rgba(52,152,219,0.07);
    padding: 18px 12px;
    min-width: 260px;
    max-width: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.artikel-card:hover {
    box-shadow: 0 6px 24px rgba(52,152,219,0.18);
    transform: translateY(-4px) scale(1.03);
}

.artikel-img {
    width: 100%;
    height: 160px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 12px;
    background: #eee;
}

.artikel-info h3 {
    margin: 0 0 8px 0;
    font-size: 1.15rem;
    color: #2980b9;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
    font-weight: 600;
}

.artikel-preview {
    color: #555;
    font-size: 1rem;
    margin-bottom: 0;
    font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
}

/* Modal Style */
.artikel-modal {
    display: none;
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.45);
    justify-content: center;
    align-items: center;
}

.artikel-modal-content {
    background: #fff;
    padding: 32px 24px;
    border-radius: 16px;
    max-width: 600px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(52,152,219,0.18);
    position: relative;
}

.artikel-modal .close {
    position: absolute;
    top: 16px; right: 24px;
    font-size: 2rem;
    color: #3498db;
    cursor: pointer;
    font-weight: bold;
}

.login-admin-container {
    width: 100%;
    text-align: center;
    margin: 40px 0 20px 0;
}

.login-admin-btn {
    display: inline-block;
    padding: 12px 32px;
    background: #3498db;
    color: #fff;
    font-size: 1.1rem;
    font-family: 'Montserrat', Arial, sans-serif;
    font-weight: 600;
    border-radius: 8px;
    text-decoration: none;
    box-shadow: 0 2px 12px rgba(52,152,219,0.12);
    transition: background 0.2s, transform 0.2s;
}

.login-admin-btn:hover {
    background: #2980b9;
    transform: translateY(-2px) scale(1.04);
}

/* ADMIN */
.admin-container {
            max-width: 700px;
            margin: 40px auto;
            padding: 32px 24px;
            background: rgba(255,255,255,0.97);
            border-radius: 16px;
            box-shadow: 0 4px 24px rgba(52,152,219,0.12);
        }
        .admin-container h2 {
            color: #3498db;
            margin-bottom: 24px;
            font-family: 'Montserrat', 'Segoe UI', Arial, sans-serif;
            font-weight: 700;
            text-align: center;
        }
        .form-group {
            margin-bottom: 18px;
        }
        .form-group label {
            display: block;
            margin-bottom: 6px;
            font-weight: 600;
            color: #2980b9;
        }
        .form-group input[type="text"],
        .form-group textarea {
            width: 100%;
            padding: 10px;
            border: 1px solid #ccc;
            border-radius: 8px;
            font-size: 1rem;
            font-family: 'Montserrat', Arial, sans-serif;
        }
        .form-group input[type="file"] {
            margin-top: 8px;
        }
        .admin-btn {
            padding: 12px 32px;
            background: #3498db;
            color: #fff;
            font-size: 1.1rem;
            font-family: 'Montserrat', Arial, sans-serif;
            font-weight: 600;
            border-radius: 8px;
            border: none;
            cursor: pointer;
            transition: background 0.2s, transform 0.2s;
        }
        .admin-btn:hover {
            background: #2980b9;
            transform: translateY(-2px) scale(1.04);
        }
        .info-upload {
            margin-top: 18px;
            color: #888;
            font-size: 0.95rem;
            text-align: center;
        }

.modal-berita {
    position: fixed;
    z-index: 999;
    left: 0; top: 0;
    width: 100vw; height: 100vh;
    background: rgba(0,0,0,0.45);
    display: flex;
    justify-content: center;
    align-items: center;
}
.modal-berita-content {
    background: #fff;
    padding: 32px 24px;
    border-radius: 16px;
    max-width: 700px;
    width: 90vw;
    box-shadow: 0 8px 32px rgba(52,152,219,0.18);
    position: relative;
}
.close-modal {
    position: absolute;
    top: 16px; right: 24px;
    font-size: 2rem;
    color: #3498db;
    cursor: pointer;
    font-weight: bold;
}

.hero-image-desa {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    overflow: hidden;
    max-height: 420px;
}
.hero-image-desa img {
    width: 100vw;
    height: 420px;
    object-fit: cover;
    display: block;
}

/* Tambahkan di file CSS Anda, misal di assets/css/style.css */
.section-data-warga h2 {
    font-size: 2.2rem;
    font-weight: 700;
}

#tabelWarga th, #tabelWarga td {
    font-size: 1.15rem;
    padding: 16px 12px;
}

#searchInput, #filterUsia {
    font-size: 1.1rem;
    padding: 12px 18px;
}

.datawarga-keterangan {
    font-size: 1.18rem !important;
}

/* Nonaktifkan sidebar lama untuk mobile */
@media (max-width: 900px) {
    .sidebar,
    .sidebar.open,
    .menu-toggle {
        display: none !important;
        visibility: hidden !important;
        pointer-events: none !important;
        height: 0 !important;
        width: 0 !important;
        opacity: 0 !important;
        position: absolute !important;
        left: -9999px !important;
    }
}

/* Aktifkan sidebar mobile baru */
.mobile-sidebar {
    display: block !important;
    position: fixed;
    top: 0;
    left: 0;
    width: 80vw;
    max-width: 340px;
    height: 100vh;
    background: #fff;
    box-shadow: 0 4px 24px rgba(39,174,96,0.12);
    z-index: 9999;
    transform: translateX(-100%);
    transition: transform 0.3s;
    padding: 0;
    overflow-y: auto;
}
#mobileMenuBtn {
    display: block !important;
}
@media (min-width: 901px) {
    #mobileMenuBtn { display: none !important; }
}
@media (max-width: 900px) {
    .section-sejarah-visimisi .sejarah-visimisi-container {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 8px !important;
    }
    .sejarah-box, .visimisi-box {
        max-width: 100% !important;
        margin-bottom: 24px !important;
        padding: 18px 10px !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 8px rgba(39,174,96,0.07);
    }
    .section-leadership .leadership-container {
        flex-direction: column !important;
        gap: 0 !important;
        align-items: center !important;
    }
    .leader-card {
        max-width: 96vw !important;
        margin-bottom: 18px !important;
        padding: 12px 8px !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 8px rgba(39,174,96,0.07);
    }
    .leader-img {
        width: 80px !important;
        height: 80px !important;
        margin-bottom: 8px !important;
    }
    .section-peta-sejajar .peta-sejajar-container {
        flex-direction: column !important;
        gap: 0 !important;
        padding: 0 !important;
    }
    .peta-box {
        max-width: 100% !important;
        margin-bottom: 18px !important;
        padding: 14px 8px !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 8px rgba(39,174,96,0.07);
    }
    .section-artikel .artikel-container {
        flex-direction: column !important;
        gap: 0 !important;
        align-items: center !important;
        padding: 0 !important;
    }
    .artikel-card {
        min-width: 0 !important;
        max-width: 98vw !important;
        margin-bottom: 18px !important;
        padding: 14px 8px !important;
        border-radius: 10px !important;
        box-shadow: 0 2px 8px rgba(52,152,219,0.07);
    }
    .artikel-img {
        height: 120px !important;
    }
    .pagination {
        margin: 18px 0 0 0 !important;
    }
    .login-admin-container {
        margin: 24px 0 12px 0 !important;
    }
    .login-admin-btn {
        padding: 10px 18px !important;
        font-size: 1rem !important;
        border-radius: 7px !important;
    }
}

/* Tambahan untuk responsive image dan teks di beranda */
@media (max-width: 900px) {
    .main-img-full-img {
        width: 100vw !important;
        height: auto !important;
        max-height: 220px !important;
        object-fit: cover !important;
        border-radius: 0 !important;
        display: block !important;
    }
    .main-img-text {
        position: absolute;
        top: 18px;
        left: 0;
        width: 100vw;
        text-align: center;
        color: #fff;
        font-size: 1.1rem;
        text-shadow: 0 2px 8px rgba(39,174,96,0.18);
        padding: 0 8px;
    }
    .main-img-text h1 {
        font-size: 1.4rem !important;
        margin-bottom: 8px !important;
    }
    .main-img-text p {
        font-size: 1rem !important;
        margin-bottom: 0 !important;
    }
    .main-content {
        padding: 0 8px !important;
        margin-top: 12px !important;
    }
}

@media (max-width: 900px) {
    .navbar, .navbar-links, .navbar-dropdown, .menu-toggle {
        display: none !important;
    }
}

/* Nama desa pada header beranda agar di tengah dan responsif di mobile */
@media (max-width: 900px) {
  .header-desa .header-top .nama-desa,
  .header-desa .header-top h2.nama-desa {
    text-align: center !important;
    width: 100%;
    font-size: 1.08rem !important;
    font-weight: 700;
    margin-left: 0 !important;
    margin-right: 0 !important;
    white-space: normal;
    overflow: visible;
    text-overflow: unset;
    display: block;
  }
  .header-desa .header-top {
    flex-direction: column !important;
    align-items: center !important;
    padding: 12px 0 !important;
  }
  .header-desa .header-top img {
    margin-left: 0 !important;
    margin-bottom: 8px !important;
  }
}

.mside-link {
    padding: 10px 0 10px 18px;
    color: #229954;
    font-weight: 500;
    text-decoration: none;
    border-bottom: 1px solid #eafaf1;
    font-size: 1rem;
    display: block;
}
.mside-link:hover {
    background: #eafaf1;
}
.mside-btn {
    font-size: 1rem;
    background: none;
    border: none;
    color: #229954;
    font-weight: 600;
    text-align: left;
    padding: 12px 0;
    width: 100%;
    border-bottom: 1px solid #eafaf1;
    cursor: pointer;
}
.mside-dropdown {
    padding-left: 12px;
}
@media (min-width: 901px) {
    #mobileSidebar, #mobileMenuBtn { display: none !important; }
}

/* Geser logo dan nama desa ke kiri pada sidebar mobile */
@media (max-width: 900px) {
  .header-top {
    justify-content: center;     /* Logo + teks ada di tengah */
    gap: 10px;                   /* Jarak logo dan teks */
  }

  .header-top img {
    margin-left: 0 !important;   /* Hilangkan margin default */
    width: 38px;
    height: 38px;
  }

  .nama-desa {
    font-size: 1rem;             /* Supaya muat di layar kecil */
    white-space: normal;         /* Bisa pindah baris */
    word-break: break-word;      /* Kalau terlalu panjang, bisa pecah */
    text-align: center;
  }
}

/* Berita Desa di mobile: card dan detail di tengah */
@media (max-width: 700px) {
  .section-berita-desa {
    padding: 16px 4px !important;
    text-align: center !important;
  }
  .berita-list {
    flex-direction: column !important;
    align-items: center !important;
    gap: 14px !important;
  }
  .berita-card {
    width: 96vw !important;
    min-width: 0 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    text-align: center !important;
    align-items: center !important;
    padding: 14px 6px !important;
  }
  .berita-info h3,
  .berita-preview {
    text-align: center !important;
  }
  .detail-berita-card {
    max-width: 98vw !important;
    margin: 24px auto !important;
    padding: 14px 8px !important;
    text-align: center !important;
  }
  .detail-berita-card h2 {
    text-align: center !important;
    font-size: 1.15rem !important;
  }
  .detail-berita-card img {
    margin-left: auto !important;
    margin-right: auto !important;
    display: block !important;
    max-width: 96vw !important;
    height: auto !important;
  }
  .detail-berita-card p {
    text-align: center !important;
    font-size: 1.05rem !important;
  }
}

