   /* --- CSS VARIABLES & RESET --- */
      :root {
        /* Warna diubah agar lebih "Deep" dan "Official" */
        --primary-color: #0f5132; /* Dark Emerald Green */
        --accent-color: #198754; /* Fresh Green for buttons/icons */
        --gold-color: #d4af37; /* Emas Mewah */
        --text-dark: #2c3e50;
        --text-muted: #6c757d;
        --bg-light: #f8f9fa;
        --white: #ffffff;
        --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.05);
        --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.1);
        --shadow-hover: 0 15px 30px rgba(0, 0, 0, 0.15);
      }

      * {
        margin: 0;
        padding: 0;
        box-sizing: border-box;
      }
      html {
        scroll-behavior: smooth;
      }
      body {
        font-family: "Poppins", sans-serif;
        color: var(--text-dark);
        line-height: 1.7;
        background-color: var(--bg-light);
        overflow-x: hidden;
      }
      h1,
      h2,
      h3,
      h4 {
        font-family: "Playfair Display", serif;
        color: var(--primary-color);
        font-weight: 700;
      }
      a {
        text-decoration: none;
        color: inherit;
        transition: all 0.3s ease;
      }
      ul {
        list-style: none;
      }
      img {
        max-width: 100%;
        display: block;
      }

      /* --- UTILITIES --- */
      .container {
        max-width: 1200px;
        margin: 0 auto;
        padding: 0 25px;
      }
      .section-padding {
        padding: 100px 0;
      }
      .text-center {
        text-align: center;
      }

      /* Tombol Modern */
      .btn {
        display: inline-block;
        padding: 12px 30px;
        border-radius: 50px;
        cursor: pointer;
        font-weight: 600;
        border: none;
        font-size: 15px;
        letter-spacing: 0.5px;
        transition: all 0.3s ease;
        position: relative;
        overflow: hidden;
        z-index: 1;
      }
      .btn-primary {
        background: linear-gradient(
          45deg,
          var(--primary-color),
          var(--accent-color)
        );
        color: var(--white);
        box-shadow: 0 4px 15px rgba(15, 81, 50, 0.3);
      }
      .btn-primary:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(15, 81, 50, 0.4);
      }
      .btn-gold {
        background: linear-gradient(45deg, var(--gold-color), #f0c45c);
        color: var(--primary-color);
        box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
      }
      .btn-gold:hover {
        transform: translateY(-3px);
        box-shadow: 0 8px 20px rgba(212, 175, 55, 0.4);
      }
      .btn-danger {
        background: #dc3545;
        color: white;
        border-radius: 5px;
        padding: 5px 15px;
        font-size: 12px;
      }
      .btn-secondary {
        background: #6c757d;
        color: white;
        border-radius: 50px;
        padding: 8px 20px;
        font-size: 14px;
      }
      .btn-secondary:hover {
        background: #5a6268;
      }

      /* Judul Section dengan Garis */
      .section-title {
        margin-bottom: 60px;
        position: relative;
        display: inline-block;
        font-size: 2.5rem;
      }
      .section-title::after {
        content: "";
        display: block;
        width: 80px;
        height: 4px;
        background: var(--gold-color);
        margin: 15px auto 0;
        border-radius: 2px;
        transition: width 0.3s;
      }
      .section-title:hover::after {
        width: 120px;
      }

      /* --- ANIMATION CLASSES (SCROLL REVEAL) --- */
      .reveal {
        opacity: 0;
        transform: translateY(30px);
        transition: all 0.8s ease-out;
      }
      .reveal.active {
        opacity: 1;
        transform: translateY(0);
      }

      /* --- NAVBAR --- */
      .navbar {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        background: transparent;
        z-index: 1000;
        padding: 20px 0;
        transition: all 0.4s ease;
      }
      .navbar.scrolled {
        background: rgba(15, 81, 50, 0.95);
        padding: 10px 0;
        box-shadow: var(--shadow-md);
        backdrop-filter: blur(5px);
      }

      .nav-container {
        display: flex;
        justify-content: space-between;
        align-items: center;
      }
      /* Perubahan di sini untuk menampung gambar atau ikon */
      .logo {
        color: var(--white);
        font-size: 26px;
        font-weight: 700;
        display: flex;
        align-items: center;
        gap: 12px;
        font-family: "Playfair Display", serif;
      }
      /* Logo Image Style */
      .logo img {
        height: 35px;
        width: auto;
        object-fit: contain;
      }

      .nav-links {
        display: flex;
        gap: 30px;
      }
      .nav-links a {
        color: rgba(255, 255, 255, 0.9);
        font-size: 16px;
        font-weight: 500;
        position: relative;
      }
      .nav-links a::after {
        content: "";
        position: absolute;
        width: 0;
        height: 2px;
        bottom: -5px;
        left: 0;
        background-color: var(--gold-color);
        transition: width 0.3s;
      }
      .nav-links a:hover::after {
        width: 100%;
      }
      .menu-toggle {
        display: none;
        color: white;
        font-size: 24px;
        cursor: pointer;
      }

      /* --- HERO CAROUSEL --- */
      .hero {
        height: 100vh;
        position: relative;
        overflow: hidden;
        display: flex;
        align-items: center;
        justify-content: center;
        color: var(--white);
        text-align: center;
      }
      .hero-slide {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        opacity: 0;
        transition: opacity 1.5s ease-in-out;
        transform: scale(1.1);
        transition: transform 6s, opacity 1.5s;
      }
      .hero-slide.active {
        opacity: 1;
        transform: scale(1);
      }

      /* Overlay Gradient untuk keterbacaan teks lebih baik */
      .hero-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background-image:url('uploads/about/desa.jpg');
        z-index: 1;
      }

      .hero-content {
        position: relative;
        z-index: 2;
        max-width: 900px;
        padding: 20px;
      }
      
      .-content h1 {
        font-size: 4rem;
        color: var(--white);
        margin-bottom: 20px;
        text-shadow: 0 4px 10px rgba(0, 0, 0, 0.5);
        line-height: 1.2;
      }
      .-content p {
        font-size: 1.4rem;
        margin-bottom: 40px;
        font-weight: 300;
        letter-spacing: 1px;
      }

      /* --- ABOUT & PROFIL (Card Style) --- */
      .about-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 60px;
        align-items: center;
      }
      .about-img img {
        border-radius: 15px;
        box-shadow: var(--shadow-md);
        border: 5px solid var(--white);
        transform: rotate(-2deg);
        transition: transform 0.3s;
      }
      .about-img:hover img {
        transform: rotate(0deg);
      }

      .stats-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
        gap: 30px;
        margin-top: 40px;
      }
      .stat-card {
        background: var(--white);
        padding: 40px 30px;
        border-radius: 15px;
        box-shadow: var(--shadow-sm);
        text-align: center;
        border-bottom: 5px solid var(--gold-color);
        transition: 0.3s;
        position: relative;
        overflow: hidden;
      }
      .stat-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-hover);
      }
      .stat-card i {
        font-size: 45px;
        color: var(--accent-color);
        margin-bottom: 20px;
        background: #e8f5e9;
        padding: 20px;
        border-radius: 50%;
        width: 90px;
        height: 90px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
      }
      .stat-card h3 {
        font-size: 2.5rem;
        margin-bottom: 5px;
        color: var(--primary-color);
      }
      .stat-card p {
        font-size: 0.9rem;
        letter-spacing: 1px;
      }

      /* --- KEPALA DESA --- */
      .kades-section {
        background: linear-gradient(to right, #f8f9fa, #e9ecef);
        position: relative;
      }
      .kades-container {
        max-width: 800px;
        margin: 0 auto;
        position: relative;
        z-index: 2;
          display: flex;
  flex-direction: column;
  align-items: center;
      }
      .kades-img {
        width: 220px;
        height: 220px;
        border-radius: 50%;
        object-fit: cover;
        border: 8px solid var(--white);
        margin-bottom: 25px;
        box-shadow: var(--shadow-md);
      }
      .kades-quote {
        position: relative;
        font-size: 1.25rem;
        color: var(--text-dark);
        font-style: italic;
        line-height: 1.8;
        padding: 0 20px;
      }
      .kades-quote::before {
        content: "\f10d";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        font-size: 3rem;
        color: rgba(212, 175, 55, 0.2);
        position: absolute;
        top: -20px;
        left: -10px;
      }

      /* --- STRUKTUR ORGANISASI (HANYA GAMBAR) --- */
      .org-chart-image-container {
        padding: 20px;
        background: var(--white);
        border-radius: 15px;
        box-shadow: var(--shadow-sm);
      }

      /* --- GALERI --- */
      .gallery-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
        gap: 25px;
      }
      .gallery-item {
        position: relative;
        overflow: hidden;
        border-radius: 15px;
        height: 280px;
        box-shadow: var(--shadow-md);
        cursor: pointer;
      }
      .gallery-item img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        transition: transform 0.5s;
      }
      .gallery-item:hover img {
        transform: scale(1.15);
      }
      .gallery-overlay {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0, 0, 0, 0.4);
        opacity: 0;
        transition: 0.3s;
        display: flex;
        align-items: center;
        justify-content: center;
      }
      .gallery-item:hover .gallery-overlay {
        opacity: 1;
      }
      .lightbox {
        position: fixed;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        background: rgba(0,0,0,0.8);
        display: none;
        align-items: center;
        justify-content: center;
        z-index: 9999;
      }
      
      .lightbox img {
        max-width: 90%;
        max-height: 90%;
        border-radius: 10px;
        animation: zoomIn 0.3s ease;
      }
      
      @keyframes zoomIn {
        from { transform: scale(0.7); opacity: 0; }
        to   { transform: scale(1); opacity: 1; }
      }
      
      .delete-btn-abs {
        position: absolute;
        top: 15px;
        right: 15px;
        z-index: 10;
      }

      /* --- BERITA --- */
      .news-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 40px;
      }
      .news-card {
        background: var(--white);
        border-radius: 15px;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        display: flex;
        flex-direction: column;
        height: 100%;
        transition: all 0.3s;
        border: 1px solid #f0f0f0;
      }
      .news-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-hover);
      }
      .news-img {
        height: 220px;
        width: 100%;
        object-fit: cover;
      }
      .news-content {
        padding: 25px;
        flex-grow: 1;
        display: flex;
        flex-direction: column;
      }
      .news-date {
        font-size: 0.85rem;
        color: var(--gold-color);
        margin-bottom: 10px;
        font-weight: 600;
        text-transform: uppercase;
      }
      .news-title {
        font-size: 1.3rem;
        margin-bottom: 15px;
        line-height: 1.4;
        color: var(--text-dark);
      }
      .news-excerpt {
        font-size: 0.95rem;
        color: var(--text-muted);
        margin-bottom: 20px;
        flex-grow: 1;
      }

      /* --- PENGADUAN & PERMINTAAN LAYANAN --- */
      .complaint-wrapper {
        display: grid;
        grid-template-columns: 1fr 1.2fr;
        gap: 50px;
        align-items: start;
      }
      .complaint-action {
        text-align: center;
      }
      .complaint-box {
        background: var(--white);
        padding: 50px 30px;
        border-radius: 20px;
        box-shadow: var(--shadow-md);
        border-top: 6px solid var(--primary-color);
      }

      /* List Style */
      .list-box {
        background: var(--white);
        padding: 30px;
        border-radius: 20px;
        box-shadow: var(--shadow-sm);
        max-height: 500px;
        overflow-y: auto;
      }
      .list-item {
        border-left: 4px solid var(--accent-color);
        padding: 15px 20px;
        background: #f9f9f9;
        margin-bottom: 15px;
        border-radius: 0 10px 10px 0;
      }
      .list-item.new {
        border-left-color: #dc3545;
      }
      .list-item .status-label {
        display: inline-block;
        padding: 4px 8px;
        font-size: 0.7rem;
        border-radius: 4px;
        font-weight: 600;
        margin-top: 5px;
      }
      .list-item .status-label.baru {
        background-color: #fce8e9;
        color: #dc3545;
      }
      .list-item .status-label.diproses {
        background-color: #fff3cd;
        color: #ffc107;
      }
      .list-item .status-label.selesai {
        background-color: #d4edda;
        color: #198754;
      }

      /* --- NEW CSS FOR LAYANAN, POTENSI, & AGENDA --- */
      .service-wrapper {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 50px;
        align-items: start;
      }
      .service-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
      }

      /* Service Card (Layanan Publik) */
      .service-card {
        background: var(--white);
        padding: 30px;
        border-radius: 15px;
        box-shadow: var(--shadow-sm);
        text-align: center;
        border-top: 4px solid var(--primary-color);
        transition: 0.3s;
        display: flex;
        flex-direction: column;
        justify-content: space-between;
      }
      .service-card:hover {
        transform: translateY(-5px);
        box-shadow: var(--shadow-md);
        border-top-color: var(--gold-color);
      }
      .service-card i {
        font-size: 40px;
        color: var(--accent-color);
        margin-bottom: 15px;
      }
      .service-card h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: var(--primary-color);
      }
      .service-card .btn {
        margin-top: 20px;
        padding: 8px 20px;
        font-size: 14px;
        width: 100%;
      }

      /* Potential Card (Potensi Desa) */
      .potential-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
        gap: 30px;
        margin-top: 40px;
      }
      .potential-card {
        background: var(--white);
        border-radius: 15px;
        overflow: hidden;
        box-shadow: var(--shadow-sm);
        transition: all 0.3s;
        display: flex;
        flex-direction: column;
        height: 100%;
      }
      .potential-card:hover {
        transform: translateY(-10px);
        box-shadow: var(--shadow-hover);
      }
      .potential-img {
        height: 200px;
        width: 100%;
        object-fit: cover;
      }
      .potential-content {
        padding: 20px;
        flex-grow: 1;
      }
      .potential-content h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        color: var(--primary-color);
      }
      .potential-content p {
        font-size: 0.9rem;
        color: var(--text-muted);
      }
      .potential-tag {
        display: inline-block;
        background: var(--gold-color);
        color: var(--primary-color);
        padding: 5px 10px;
        border-radius: 5px;
        font-size: 0.75rem;
        font-weight: 600;
        margin-bottom: 10px;
      }

      /* Agenda Card (Agenda Desa) */
      .agenda-grid {
        display: grid;
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 30px;
      }
      .agenda-card {
        background: var(--white);
        padding: 25px;
        border-radius: 15px;
        box-shadow: var(--shadow-sm);
        border-left: 5px solid var(--accent-color);
        transition: all 0.3s;
        position: relative;
      }
      .agenda-card:hover {
        box-shadow: var(--shadow-md);
        border-left-color: var(--gold-color);
      }
      .agenda-date-box {
        background: var(--primary-color);
        color: var(--white);
        padding: 8px 15px;
        border-radius: 8px;
        font-weight: 600;
        display: inline-block;
        margin-bottom: 15px;
        font-size: 0.9rem;
      }
      .agenda-card h4 {
        font-size: 1.2rem;
        margin-bottom: 10px;
        line-height: 1.4;
      }
      .agenda-detail {
        font-size: 0.9rem;
        color: var(--text-dark);
        margin-bottom: 8px;
      }

      /* --- KONTAK & MAPS --- */
      .contact-grid {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 50px;
      }
      .contact-info div {
        display: flex;
        align-items: flex-start;
        margin-bottom: 25px;
        padding: 20px;
        background: var(--white);
        border-radius: 10px;
        box-shadow: var(--shadow-sm);
        transition: 0.3s;
      }
      .contact-info div:hover {
        transform: translateX(10px);
        border-left: 4px solid var(--gold-color);
      }
      .contact-info i {
        font-size: 24px;
        color: var(--primary-color);
        margin-right: 20px;
        margin-top: 5px;
      }
      .contact-info h4 {
        line-height: 1.2;
      }
      .map-container iframe {
        width: 100%;
        height: 400px;
        border-radius: 20px;
        border: none;
        box-shadow: var(--shadow-md);
      }
.footer {
  background: var(--primary-color);;
  color: #e5e7eb;
  padding-top: 60px;
}

.footer-container {
  max-width: 1200px;
  margin: auto;
  padding: 0 20px 40px;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 30px;
}

.footer-col h4 {
  margin-bottom: 15px;
  color: #facc15;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.footer-brand img {
  width: 50px;
}

.footer-brand h3 {
  margin: 0;
  font-size: 18px;
}

.footer-desc {
  margin-top: 12px;
  font-size: 14px;
  color: #facc15;
  line-height: 1.6;
}

.footer-menu,
.footer-contact {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-menu li,
.footer-contact li {
  margin-bottom: 10px;
  font-size: 14px;
}

.footer-menu a {
  color: #e5e7eb;
  text-decoration: none;
  transition: color 0.3s;
}

.footer-menu a:hover {
  color: #facc15;
}

.footer iframe {
  width: 100%;
  height: 100%;
  border-radius: 8px;
  border: none;
}

.footer-bottom {
  text-align: center;
  padding: 15px;
  background: var(--primary-color);;
  font-size: 13px;
}

/* Responsive */
@media (max-width: 900px) {
  .footer-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 500px) {
  .footer-container {
    grid-template-columns: 1fr;
  }

  .footer {
    text-align: center;
  }

  .footer-brand {
    justify-content: center;
  }
}

      @keyframes slideUp {
        from {
          transform: translateY(50px);
          opacity: 0;
        }
        to {
          transform: translateY(0);
          opacity: 1;
        }
      }
      @keyframes fadeIn {
        from {
          opacity: 0;
        }
        to {
          opacity: 1;
        }
      }

      .form-group {
        margin-bottom: 15px;
      }
      .form-group label {
        font-weight: 600;
        color: var(--text-dark);
        margin-bottom: 8px;
        display: block;
      }
      .form-group input,
      .form-group textarea,
      .form-group select {
        padding: 15px;
        border: 2px solid #eee;
        border-radius: 10px;
        transition: 0.3s;
        width: 100%;
      }
      .form-group input:focus,
      .form-group textarea:focus,
      .form-group select:focus {
        border-color: var(--primary-color);
        outline: none;
        box-shadow: 0 0 0 3px rgba(15, 81, 50, 0.1);
      }

      .admin-only {
        display: none !important;
      }
      .show-admin .admin-only {
        display: inline-block !important;
      }

      /* --- FILE UPLOAD CSS --- */
      .file-drop-area {
        border: 2px dashed #ccc;
        padding: 25px;
        text-align: center;
        border-radius: 10px;
        cursor: pointer;
        background: #f9f9f9;
        transition: 0.2s;
        position: relative;
        color: var(--text-muted);
      }
      .file-drop-area i {
        font-size: 30px;
        color: var(--accent-color);
        margin-bottom: 10px;
      }
      .file-drop-area:hover {
        border-color: var(--accent-color);
        background: #f0fff0;
      }
      .file-drop-area input {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        opacity: 0;
        cursor: pointer;
      }
      .preview-image {
        width: 100%;
        height: 150px;
        object-fit: contain;
        border-radius: 10px;
        margin-top: 15px;
        display: none;
        border: 1px solid #ddd;
        padding: 5px;
      }

      /* Hero Image List in Modal */
      .hero-image-item {
        display: flex;
        justify-content: space-between;
        align-items: center;
        margin-bottom: 10px;
        padding: 10px;
        border: 1px solid #eee;
        border-radius: 8px;
      }
      .hero-image-item img {
        width: 80px;
        height: 50px;
        object-fit: cover;
        border-radius: 5px;
        margin-right: 15px;
      }

      /* --- RESPONSIVE --- */
      @media (max-width: 768px) {
        .navbar.scrolled {
          padding: 15px 0;
        }
        .nav-links {
          display: none;
          position: absolute;
          top: 70px;
          left: 0;
          width: 100%;
          background: var(--primary-color);
          flex-direction: column;
          padding: 30px;
          text-align: center;
          border-radius: 0 0 20px 20px;
          box-shadow: var(--shadow-md);
        }
        .nav-links.active {
          display: flex;
        }
        .menu-toggle {
          display: block;
        }
        .hero-content h1 {
          font-size: 2.5rem;
        }
        .about-grid,
        .complaint-wrapper,
        .contact-grid,
        .service-wrapper {
          grid-template-columns: 1fr;
        }
        .section-title {
          font-size: 2rem;
        }

   

        /* Styling untuk gambar struktur di mobile */
        .org-chart-image-container {
          padding: 10px;
        }

        /* Ubah tata letak layanan di mobile */
        .service-wrapper .list-box {
          margin-top: 30px;
        }
      }