/* ====================================
   0. CSS Variab les & Reset
   ==================================== */
:root {
  --brand: #000080;
  --accent: #ffc107;
  --danger: #dc3545;
  --muted: #6c757d;
  --bg-light: #f4f7ff;
  --bg-white: #ffffff;
  --gradient-blue: var(--brand), white;
  --max-width: 1200px;
  --shadow-light: 0 4px 15px rgba(0, 0, 0, 0.05);

  --max-width: 90%;
  --nav-height: 60px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: "Poppins", sans-serif;
  color: #333;
  background-color: var(--bg-light);
  line-height: 1.6;
}

a {
  text-decoration: none;
  color: var(--brand);
  transition: color 0.3s;
}

a:hover {
  color: var(--accent);
}

h1,
h2,
h3,
h4 {
  line-height: 1.2;
  color: #333;
  margin-top: 0;
}

.section {
  padding: 40px 20px;
  max-width: var(--max-width);
  margin: 0 auto 30px;
  background-color: var(--bg-white);
  border-radius: 10px;
  box-shadow: var(--shadow-light);
}

.section h2 {
  font-size: 2em;
  margin-bottom: 25px;
  text-align: center;
  color: var(--brand);
  border-bottom: 3px solid var(--accent);
  padding-bottom: 8px;
  display: inline-block;
}

.truncate {
  display: -webkit-box;
  -webkit-line-clamp: 1; /* jumlah baris */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
.truncate-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2; /* jumlah baris */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
.truncate-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3; /* jumlah baris */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}
.truncate-4 {
  display: -webkit-box;
  -webkit-line-clamp: 4; /* jumlah baris */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
}

.not_data {
  text-align: center !important;
  margin: auto;
  font-weight: 600;
  font-size: 1.1rem !important;
}
.perbarui {
  margin-top: 20px;
  color: rgb(118, 117, 117);
  font-size: 0.9rem;
}
.nego {
  background-color: var(--brand);
  font-size: 0.6rem;
  color: white;
  padding: 0.1rem 0.3rem;
  border-radius: 5px;
}
article img {
  max-width: 100%;
}

.btn-mod {
  cursor: pointer;
  width: fit-content;
  text-align: center;
  border-radius: 7px;
  padding: 6px 10px;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.2);
  font-weight: 600;

  background-image: linear-gradient(
    to right,
    var(--brand) 50%,
    var(--brand) 50%
  );
  background-size: 0% 100%;
  background-repeat: no-repeat;
  background-position: left;

  transition: 0.4s ease-in-out;
}
.btn-mod.btn-category {
  font-size: 0.8rem;
  background-color: var(--brand);
  background-image: linear-gradient(to right, white 50%, white 50%);
  color: white;
}
.btn-mod:hover.btn-category {
  color: var(--brand);
}

.btn-mod:hover {
  background-size: 100% 100%;
  color: #fff;
}
.btn-mod:hover a {
  color: white;
}
.btn-mod.btn-jumbtron {
  background-color: white;
}

.terms-section,
.sdgs-sec,
.lapak-sec,
.berita-sec,
.peta-sec,
.gallery-sec {
  max-width: 100%;
  width: var(--max-width);
  margin: 0 auto 60px;
  padding: 25px 3%;
  background-color: white;
  border-radius: 10px;
  box-shadow: 0 5px 20px rgba(0, 0, 0, 0.08);
  line-height: 1.8;
  position: relative;
  z-index: 50;
}

li.last-tag a,
li.first-tag a {
  width: 70px;
}
/* untuk active */
.nav-links .nav-item.active a::after {
  content: "";
  width: 100%;
}
.nav-links .nav-item.active a {
  font-weight: 600;
}

/* ====================================
   1. Navigation (Disesuaikan ke Kanan)
   ==================================== */
.nav {
  background-color: var(--bg-white);
  box-shadow: 0 2px 5px rgba(247, 244, 244, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.5em;
  font-weight: bold;
  color: var(--brand);
}

.brand img {
  width: 80px;
  height: 80px;
  object-fit: cover;
}

.brand .name {
  display: none;
}

/* Penyesuaian: Nav Center dipindahkan ke Kanan */
.nav-center {
  flex-grow: 1;
  display: flex;
  justify-content: flex-end; /* Semua menu didorong ke kanan */
}

.nav-links {
  display: flex;
  flex-wrap: wrap;
  margin-left: 20px;
  padding: 20px 0;
  /* gap: 25px; */
}

.nav-links a {
  color: #333;
  font-weight: 500;
  display: block;
  font-size: 1rem;
  position: relative;
}
.nav-links a:hover {
  color: var(--brand);
}
.nav-links a::after {
  content: "";
  width: 0%;
  height: 2px;
  background-color: var(--brand);
  display: inline-block;
  position: absolute;
  left: 0;
  bottom: -2px;
  transition: width 0.3s ease-in-out;
}
.nav-links a:hover::after {
  content: "";
  width: 100%;
}

/* Gaya Dropdown */
.dropdown {
  position: relative;
  display: inline-block;
  /* Hapus margin dan atur padding agar sejajar dengan link biasa */
  padding: 0;
}

.dropdown a {
  display: flex;
  align-items: center;
}
.dropdown a i {
  font-size: 13px;
  transition: all 0.5s ease-in-out;
}
/* Pastikan link utama di dropdown juga punya padding vertikal */
.dropdown > a {
  display: block;
  /* padding: 20px 0;  */
  text-decoration: none;
  color: #333;
  font-weight: 500;
}
.dropdown:hover a i:first-child {
  transform: rotate(180deg);
}

/* mengatur dropdown content muncul */
.dropdown-content {
  /* display: none; */
  max-height: 700px !important;
  overflow-y: auto;
  opacity: 0;
  visibility: hidden;
  transform: scale(0);
  transition: 0.6s ease-in-out;
  transform-origin: center top;
  position: absolute;
  background-color: white;
  border-top: 3px solid var(--brand);
  background-color: #fff;
  min-width: 160px;
  box-shadow: 0px 8px 16px 0px rgba(0, 0, 0, 0.2);
  z-index: 10;
  top: 100%; /* Turun ke bawah link utama */
  left: 0;
  border-radius: 4px;
  padding: 8px 0;
}

.dropdown:hover .dropdown-content {
  /* display: block; */
  opacity: 1;
  visibility: visible;
  transform: scale(1);
}

.dropdown-content a {
  color: black;
  width: 200px;
  padding: 10px 16px;
  text-decoration: none;
  display: block;
  transition: background-color 0.2s;
  font-weight: 400;
}

.dropdown-content a:hover {
  background-color: #f1f1f1;
  color: var(--brand);
}

.navbar-toggler,
.hamburger {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  font-size: 1.5em;
  color: #333;
}

/* ====================================
   2. Hero Section (Background Foto)
   ==================================== */
.hero {
  position: relative;
  height: 75vh;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: var(--brand);
  margin-bottom: 40px;
}

.hero-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  z-index: 0;

  background-attachment: fixed;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  background-image: linear-gradient(rgba(0, 0, 0, 0.259), rgba(0, 0, 0, 0.374));
}

.hero-inner {
  position: relative;
  z-index: 2;
  max-width: var(--max-width);
  width: 100%;
  padding: 0 20px;
  /* Penyesuaian: Konten didorong ke kiri agar ada efek kontras dengan background */
  justify-content: flex-start;
}

.hero-left {
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  width: 100%;
  width: 100%;
  text-align: center;
  justify-content: center;
}

.circle-wrap {
  width: 290px;
  height: 280px;
  border-radius: 50%;
  overflow: hidden;
  border: 5px solid var(--accent);
  box-shadow: 0 0 0 10px rgba(255, 193, 7, 0.3);
}
.circle-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.hero-copy h1 {
  font-size: 2em;
  color: white;
  margin-bottom: 6px;
}
.hero-copy p {
  font-size: 1rem;
  color: white;
  margin-bottom: 20px;
}

.services-grid-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 40px auto; /* Diposisikan di tengah */
  padding: 0 20px;
}
.service-box {
  text-align: center;
  padding: 25px;
  background-color: var(--bg-white);
  border-radius: 8px;
  box-shadow: var(--shadow-light);
  overflow: hidden; /* Penting untuk menampung gelombang */
  position: relative;
  height: 250px; /* Tinggi tetap */
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.service-box > * {
  position: relative;
  z-index: 2; /* Pastikan konten di atas gelombang */
  color: rgb(3, 1, 1);
  text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
}

.service-box::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 200%;
  height: 200%;
  background: radial-gradient(
      circle at 50% 100%,
      rgba(255, 255, 255, 0.5) 20%,
      transparent 20%
    ),
    linear-gradient(to top, var(--brand) 60%, transparent 60%);
  background-size: 50% 100%;
  background-repeat: repeat-x;
  transform: rotate(10deg);
  animation: wave 10s linear infinite alternate;
  z-index: 1;
}

.service-box i {
  font-size: 2.5em;
  color: var(--accent); /* Warna ikon di atas gelombang */
  margin-bottom: 10px;
}
.service-box h3 {
  font-size: 1.1em;
  color: rgb(255, 255, 255); /* Warna teks di atas gelombang */
}
.counter {
  font-size: 3em;
  font-weight: bold;
  color: var(--accent); /* Warna angka */
  display: block;
  margin: 5px 0;
}
.service-box p {
  font-size: 0.9em;
  color: #f1f1f1;
}

/* ====================================
   4. Quick Links / Layanan Cepat (Formasi 3x2)
   ==================================== */
#layanan-tambahan {
  background: linear-gradient(to bottom right, var(--gradient-blue));
}
.services-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* 3 Kolom */
  gap: 20px;
  max-width: var(--max-width);
  margin: 40px auto;
  padding: 0 20px;
}

.service-card {
  background-color: rgba(255, 255, 255, 0.671);
  padding: 40px;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  transition: transform 0.3s, box-shadow 0.3s;
  backdrop-filter: blur(20px);
  border-bottom: 4px solid var(--brand);
  /* Tinggi dibuat sama */
  min-height: 150px;
}
.service-card:hover {
  transform: translateY(-5px);
  color: var(--brand);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.service-card h3 {
  font-size: 1.2em;
  margin: 5px 0;
}
.service-card p {
  font-size: 0.9em;
  color: black;
}
.service-card i {
  font-size: 2rem;
  color: var(--brand);
}
/* ====================================
   STYLE SWIPER
   ==================================== */
#lapak_desa,
#perangkat_desa {
  background: linear-gradient(to top left, var(--gradient-blue));
}

#lapak_desa .lapak_desa,
#perangkat_desa .perangkat_desa {
  width: 100%;
  height: 300px;
  background-color: #ffffff5a;
  box-shadow: 3px 1px 10px rgba(0, 0, 0, 0.421);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  padding: 8px;
  position: relative;
}

#lapak_desa .swiper-slide a,
#perangkat_desa .swiper-slide a {
  height: 100%;
  text-align: center;
  font-size: 18px;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow: hidden;
  border-radius: 9px;
  position: relative;
  color: white;
}
#lapak_desa .list-info,
#perangkat_desa .list-info {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 80px;
  background-color: rgba(27, 27, 27, 0.686);
  padding: 5px 0 3px 0;
}

#lapak_desa .swiper-slide img,
#perangkat_desa .swiper-slide img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
}
#lapak_desa .swiper-nav,
#perangkat_desa .swiper-nav {
  position: absolute;
  z-index: 2;
  width: 100%;
  display: flex;
  justify-content: space-between;
  padding: 0 5px;
  top: 50%;
  left: 0;
  right: 0;
}
#lapak_desa .btn-prev,
#lapak_desa .btn-next,
#perangkat_desa .btn-prev,
#perangkat_desa .btn-next {
  padding: 10px 16px;
  border: none;
  background: linear-gradient(to top left, var(--gradient-blue));
  opacity: 0.7;
  color: #fff;
  border-radius: 50%;
  cursor: pointer;
  transition: 0.3s ease-in-out;
}
#lapak_desa .btn-prev i,
#lapak_desa .btn-next i,
#perangkat_desa .btn-prev i,
#perangkat_desa .btn-next i {
  font-size: 20px;
  color: black;
}

#lapak_desa .btn-prev:hover,
#lapak_desa .btn-next:hover,
#perangkat_desa .btn-prev:hover,
#perangkat_desa .btn-next:hover {
  opacity: 1;
  transform: scale(1.1);
}

.pelayanan-container {
  display: flex;
  gap: 20px;
  padding: 20px;
}

.sidebar {
  width: 300px;
  text-align: center;
  padding: 20px;
  background-color: #ffffff5a;
  box-shadow: 3px 1px 10px rgba(0, 0, 0, 0.421);
  backdrop-filter: blur(10px);
  border-radius: 8px;
  color: var(--brand);
  display: flex;
  justify-content: center;
  flex-direction: column;
}
.sidebar i {
  font-size: 3em;
  margin-bottom: 10px;
}
.sidebar p {
  font-size: 1.2em;
  font-weight: bold;
}

.carousel-container {
  flex-grow: 1;
  display: flex;
  align-items: center;
  gap: 15px;
}

.arrow {
  background: var(--brand);
  color: white;
  padding: 10px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.5em;
  transition: background 0.3s;
}
.arrow:hover {
  background: var(--accent);
  color: #333;
}

.card {
  flex-grow: 1;
  width: 1005;
  max-width: 400px;
  overflow: hidden;
  height: 240px;
  max-height: 260px;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  background-color: var(--bg-white);
  position: relative;
}
.card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card::before {
  content: "";
  width: 100%;
  height: 50px;
  background: #000;
  position: absolute;
}
.card i {
  font-size: 3em;
  color: var(--danger);
  margin-bottom: 10px;
}
.card h3 {
  color: var(--brand);
}

/* ====================================
   6. Jadwal Dokter
   ==================================== */
.jadwal-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
.jadwal-wrap .jadwal-left {
  flex: 2;
  border-radius: 7px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 0.7rem 1rem;
}

.jadwal-wrap .box-img {
  float: left;
  width: 220px;
  height: auto;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  margin: 0 20px 8px 0;
}
.jadwal-wrap .box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.jadwal-wrap .jadwal-right {
  flex: 1;
  border-radius: 7px;
  height: 450px;
  overflow: auto;
  background: linear-gradient(to top left, var(--gradient-blue));
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  padding: 0.7rem 1rem;
}
.jadwal-wrap .jadwal-right .head-adk {
  display: flex;
  width: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  overflow: hidden;
  backdrop-filter: blur(20px);
  background-color: rgba(255, 255, 255, 0.466);
}
.jadwal-wrap .jadwal-right .head-adk .tab-btn {
  flex: 1;
  text-align: center;
  font-size: 1rem;
  font-weight: bold;
  cursor: pointer;
  padding: 6px;
}
.jadwal-wrap .jadwal-right .head-adk .tab-btn.active {
  background: var(--brand);
  color: white;
}

.jadwal-wrap .jadwal-right .body-adk {
  width: 100%;
  height: 380px;
  padding: 10px;
  margin-top: 10px;
  border-radius: 4px;
  backdrop-filter: blur(20px);
  background-color: rgba(255, 255, 255, 0.466);
}
.jadwal-wrap .jadwal-right .list-agenda {
  width: 100%;
  margin-bottom: 8px;
  border-radius: 4px;
  padding: 5px;
  box-shadow: 1px 2px 4px rgba(0, 0, 0, 0.489);
}
.jadwal-wrap .list-agenda .date-agenda {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  margin-bottom: 4px;
  font-weight: 600;
}
.jadwal-wrap .list-agenda .isi-agenda {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 1rem;
  margin-bottom: 2px;
}
.no-agenda {
  text-align: center;
  opacity: 0.7;
  margin-top: 5px;
}

.jadwal-wrap .panels {
  display: none;
}
.jadwal-wrap .panels.active {
  display: block;
}
/* kalender */
.calendar {
  width: 100%;
  height: 100%;
  margin-bottom: 8px;
  border-radius: 4px;
  padding: 5px;
}

.calendar .header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}

.calendar .header button {
  border: none;
  background: transparent;
  font-size: 18px;
  cursor: pointer;
}

.calendar .header button:hover {
  opacity: 0.7;
}

.calendar .month-year {
  font-weight: 600;
}

.calendar .days,
.calendar .dates {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  text-align: center;
}

.calendar .days div {
  font-weight: 600;
  padding: 6px 0;
}
.date.sunday,
.inactive.sunday {
  color: red;
  font-weight: 600;
}

.calendar .dates div {
  padding: 10px 0;
  border-radius: 8px;
  position: relative;
}

.calendar .dates .inactive {
  opacity: 0.35;
}

.calendar .dates .active {
  background: #2563eb;
  color: #fff;
  font-weight: 600;
}

.calendar .dates .holiday {
  background: rgba(240, 4, 4, 0.916);
  color: #fecaca;
  position: relative;
}
.calendar .dates .date {
  height: 46px;
}

.calendar .dates .date:hover {
  background: rgba(250, 250, 250, 0.416);
  cursor: pointer;
  color: black;
}
.calendar .dates .date:hover.holiday {
  background: rgba(240, 4, 4, 0.716);
  color: #fecaca;
}
.calendar .hover-dropdown {
  z-index: 2000;
  transform: scale(0);
  opacity: 0;
  position: absolute;
  bottom: -12px;
  background: #0a0d13;
  color: #fff;
  font-size: 12px;
  padding: 4px 6px;
  border-radius: 6px;
  /* white-space: nowrap; */
  padding: 5px;
}

.calendar .date:hover .hover-dropdown {
  transform: scale(1);
  opacity: 1;
}
/* ====================================
   7. Berita Terbaru
   ==================================== */
.berita-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.berita-grid-selengkapnya {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.berita-grid-home {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 20px;
}
.lapak-grid {
  display: grid !important;
  grid-template-columns: repeat(3, 1fr) !important;
  gap: 20px;
  margin-bottom: 20px;
}

.berita-section {
  padding: 0 5% 40px;
  max-width: 1200px;
  margin: 0 auto;
}
.section-title {
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
  color: var(--brand);
  font-weight: 600;
}
.berita-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
}
.berita-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.berita-thumbnail {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
  background-color: #ccc;
}
.berita-content {
  padding: 20px;
  flex-grow: 1;
}
.berita-meta {
  font-size: 0.8em;
  color: #6c757d;
  margin-bottom: 10px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.berita-content .body-berita {
  height: 140px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.berita-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  margin: 0 !important;
  line-height: 1.4;
}
.berita-content h3 {
  margin: 0 0 10px 0;
  font-size: 1.2em;
  margin: 0 !important;
  line-height: 1.4;
}
.berita-content p {
  font-size: 0.9em;
  color: #666;
  line-height: 1.5;
  margin-bottom: 15px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.berita-readmore {
  color: var(--brand);
  font-weight: bold;
  font-size: 0.9em;
}
.date-berita {
  color: black;
}
.date-berita:hover {
  color: var(--brand);
  text-decoration: underline;
}
/* ====================================
   8. Temukan Kami 
   ==================================== */
#temukan-kami .temukan-wrap .map {
  width: 100%;
  height: 100%;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.293);
}
/* ====================================
   9. Footer & Copyright
   ==================================== */
.overflow-easydes-footer {
  position: fixed;
  bottom: 20px;
  width: 100%;
  z-index: 99999;
  padding: 0 2rem;
}
.overflow-easydes-footer img {
  width: 50px;
  height: 50px;
}
.overflow-easydes-footer .tooltiptext {
  visibility: hidden;
  width: 160px;
  background-color: #333; /* warna latar */
  color: #fff; /* warna teks */
  text-align: center;
  padding: 5px 10px;
  border-radius: 5px;
  transition: 0.6s ease-in-out;

  /* Posisi tooltip */
  position: absolute;
  z-index: 1;
  bottom: 15%; /* muncul di atas */
  left: 4.7%;
}

.easydes:hover .tooltiptext {
  visibility: visible;
  opacity: 1;
}

.site-footer {
  background-color: #343a3f;
  color: white;
}
.footer-wrap {
  padding: 30px 20px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0 auto;
  gap: 14px;
}
.footer-wrap .footer-col {
  flex: 1 1 200px;
  padding: 10px;
}
.footer-wrap .footer-col .list-media {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 10px;
  opacity: 0.8;
}
.footer-wrap .footer-col strong {
  color: var(--accent);
  font-size: 1.1em;
}
.footer-wrap .footer-col a {
  color: white;
  opacity: 0.8;
}
.footer-wrap .footer-col a:hover {
  color: var(--accent);
  opacity: 1;
}

.footer-wrap .footer-col .stat-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-wrap .footer-col .stat-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  border-top: 1px solid #e5e7eb;
}

.footer-wrap .footer-col .stat-list li:first-child {
  border-top: none;
}

.footer-wrap .footer-col .label {
  font-weight: 600;
  color: white !important;
  opacity: 0.7;
}

.footer-wrap .footer-col .value {
  opacity: 0.7;
  color: white !important;
}

.copyright-strip {
  background-color: #212529;
  color: var(--muted);
  text-align: center;
  padding: 10px 20px;
}

.stat-center {
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70vh;
  background: linear-gradient(to bottom, #f8e8d8 0%, #ffffff 70%);
  font-family: "Poppins", sans-serif;
}
/* ====================================
   1.1. BURGER MENU CSS
   ==================================== */
.burger-menu {
  display: none; /* Sembunyikan di layar besar (desktop) */
  background: transparent;
  border: none;
  font-size: 1.8rem;
  color: var(--brand);
  cursor: pointer;
}

/* -------------------------------------- */
/* 1. Global Nav Styles (Mobile/Default) */
/* -------------------------------------- */
.nav {
  background-color: white;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  position: sticky;
  top: 0;
  z-index: 1000;
}

.nav-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 8px 16px; /* Padding untuk mobile */
  min-height: var(--nav-height);
}

.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  color: #333;
}

/* Sembunyikan Navigasi Utama dan Tombol Toggler Bootstrap di Mobile */
.nav-center,
.navbar-toggler,
.nav-right {
  display: none;
}

/* Tampilkan Hamburger Menu di Mobile */
.hamburger {
  display: block; /* Tampilkan di mobile */
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  width: 30px;
  height: 30px;
  color: var(--brand);
}

.hamburger svg {
  width: 100%;
  height: 100%;
}

/* Gaya untuk Mobile Menu (Konten yang di-toggle) */
#mobileMenu {
  /* Gaya yang ada di HTML sudah cukup baik,
       ini hanya memastikan tampilan default mobile menu */
  display: none;
  border-top: 1px solid #eee;
  padding-top: 8px;
  padding-bottom: 8px;
  overflow-y: auto;
}

#mobileMenu a {
  padding: 4px 0;
  text-decoration: none;
  color: #333;
  display: block;
  font-weight: 500;
  font-size: 0.8rem;
}

#mobileMenu details {
  padding: 6px 0;
  border-bottom: 1px solid #f8f8f8;
}

#mobileMenu details summary {
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  list-style: none; /* Hapus ikon default */
}

#mobileMenu details a {
  padding-left: 20px; /* Indent untuk sub-menu */
  font-weight: 400;
  color: var(--muted);
  border-top: none;
}

/* =====================================
        PAGE STATIS HERO/HEADER
===================================== */
.header-background {
  background-image: url("/assets/img/bg.jpeg");
  background-size: cover;
  background-position: center 60%;
  height: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  margin-bottom: 40px;
  position: relative;
}
.header-background::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 1;
}
.header-background h1 {
  font-size: 3em;
  margin: 0;
  z-index: 2;
  color: white;
}

/* =====================================
Terms & Conditions Content Styling (ASLI)
===================================== */
.tanggal-info {
  color: black;
}
.tanggal-info:hover {
  text-decoration: underline;
}
.terms-section .body-artikel {
  background: white;
}
.terms-section h3 {
  font-size: 1.3em;
  color: #555;
  margin-top: 30px;
  margin-bottom: 15px;
}
.terms-section h4 {
  font-size: 1.1em;
  color: #555;
  margin-top: 15px;
  margin-bottom: 10px;
}

.terms-section p,
.terms-section ul,
.terms-section ol {
  color: #555;
  font-size: 1em;
  margin-bottom: 15px;
  padding-left: 0;
}
.terms-section ol li,
.terms-section ul li {
  margin-bottom: 10px;
  padding-left: 5px;
  margin-left: 20px;
}
.highlight {
  font-weight: bold;
  color: var(--brand);
}

/* =====================================
            ARTICLE STYLE
===================================== */
.top-article {
  display: flex;
  padding: 10px 0;
  margin-bottom: 20px;
  flex-direction: column;
  border-bottom: 3px solid rgba(0, 0, 0, 0.379);
}
.top-article h2 {
  font-size: 2rem;
}
.info_page {
  margin: 6px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.info_page ul {
  list-style: none;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}
.info_page li {
  margin: 0 !important;
}

/* -------------------------------------- */
/* SHARE */
/* -------------------------------------- */
.share {
  display: flex;
  margin-top: 30px;
}
.share ul {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-left: 6px;
}
.share li {
  margin: 0 !important;
}
.btn-mod.btn-share {
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.492);
  color: black;
  background-image: linear-gradient(to right, black 50%, black 50%);
  font-size: 0.8rem;
}
.btn-mod:hover.btn-share {
  color: white;
}

/* -------------------------------------- */
/* TABLE PEMERINTAHAN */
/* -------------------------------------- */
.overflow-table {
  width: 100%;
  height: 100%;
  overflow: auto;
}
.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}

.data-table th,
.data-table td {
  border: 1px solid #d1d5db;
  padding: 10px 12px;
  vertical-align: top;
}

.data-table thead th {
  background: #f3f4f6;
  font-weight: 700;
  text-align: left;
}

.data-table td:first-child,
.data-table th:first-child {
  width: 50px;
  text-align: center;
}

.data-table th:nth-child(4) {
  text-align: center;
}

.data-table td:nth-child(5) {
  text-align: center;
  width: 70px;
}

.data-table td:nth-child(6) {
  line-height: 1.4;
}

/* =====================================
              BERITA DINAMIS
  ===================================== */
.terms-section.berita_dinamis {
  width: 90%;
  margin: 0 auto 60px;
  padding: 15px 1%;
  display: flex;
  box-shadow: none;
  background: transparent;
  gap: 30px;
}
/* =====================================
                  KIRI
  ===================================== */
.terms-section.berita_dinamis .body-artikel.kiri {
  flex: 2.8;
  padding: 30px 2%;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.204);
  border-radius: 9px;
  background-color: white;
}
.berita_dinamis .img-berita {
  width: 100%;
  max-height: auto;
  overflow: hidden;
  margin-bottom: 5px;
  border-radius: 7px;
}
.berita_dinamis .img-berita img,
video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================================
            PAGINATION BERITA
  ===================================== */
.berita_dinamis .paginationber {
  margin-top: 2.5rem;
  display: flex;
  gap: 15px;
}
.berita_dinamis .paginationber .colber {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  color: black;
}
.berita_dinamis .paginationber .colber:hover {
  color: rgb(206, 134, 0);
}
.berita_dinamis .paginationber .colber span:nth-child(1) {
  display: block;
  font-weight: 600;
}
.berita_dinamis .paginationber .colber:nth-child(1) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.berita_dinamis .paginationber .colber:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: end;
}
.berita_dinamis .paginationber .imgber {
  width: 220px;
  height: 200px;
  max-height: 130px;
  margin-top: 10px;
  border-radius: 5px;
  box-shadow: 2px 0 4px rgba(0, 0, 0, 0.492);
  overflow: hidden;
}
.berita_dinamis .paginationber img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* =====================================
            SEC HEADER
===================================== */
.sec-header {
  display: flex;
  justify-content: space-between;
  align-items: center;

  background-color: #f0f4f8;
  padding: 15px 25px;
  border-radius: 8px;
  max-width: 1000px;
  margin: 20px auto;
}

.title-wrapper {
  display: flex;
  flex-direction: column;
}

.news-title {
  color: #001d3d; /* Biru gelap modern */
  font-size: 24px;
  font-weight: 700;
  margin: 0;
  padding-bottom: 5px;
}

/* Garis bawah gradasi */
.underline-gradient {
  height: 4px;
  width: 100%; /* Menyesuaikan lebar teks di atasnya */
  background: linear-gradient(to right, black, black);
  border-radius: 2px;
}

.view-all {
  color: black; /* Warna teal untuk link */
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.view-all:hover {
  text-decoration: underline;
}
/* =====================================
              BERITA TERIKAIT
===================================== */
.berita-terkait {
  border-top: 3px solid rgba(70, 70, 70, 0.333);
  margin: 40px 0 20px 0;
}
.berita-terkait .grid-berita {
  display: grid;
  gap: 20px;
  margin-top: 20px;
  grid-template-columns: repeat(2, 1fr);
}
.berita-terkait .grid-berita .col-ber {
  width: 100%;
  max-height: 100%;
  position: relative;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.314);
}
.berita-terkait .grid-berita .card-img .btn-mod.btn-category {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 5;
  background-color: black;
}
.berita-terkait .grid-berita .card-img .btn-mod.btn-category:hover {
  color: black;
}
.berita-terkait .grid-berita .col-ber .card-img {
  width: 100%;
  height: 100%;
  max-height: 300px;
  position: relative;
  border-radius: 7px;
  overflow: hidden;
}
.berita-terkait .grid-berita .col-ber .card-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(rgba(0, 0, 0, 0.2), rgba(0, 0, 0, 0.2));
}
.berita-terkait .grid-berita .col-ber img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.berita-terkait .grid-berita .card-body-ber {
  padding: 10px 10px 8px 10px;
  color: white;
  background-color: rgba(0, 0, 0, 0.282);
  backdrop-filter: blur(7px);
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
}
.berita-terkait .grid-berita .card-body-ber h4 {
  font-size: 1.2rem;
  margin-top: 7px;
  color: white;
}

.berita-terkait .grid-berita .card-body-ber .date {
  font-size: 0.8rem;
  font-weight: 600;
  display: flex;
  justify-content: end;
  margin-top: 6px;
  align-items: center;
  color: white;
}

/* =====================================
              BERITA TERIKAIT
===================================== */
.komentar {
  margin-top: 3rem;
}
.comment-container {
  width: 100%;
  padding: 0 20px 20px 20px;
}

.comment-item {
  background-color: #ffffff;
  border-bottom: 1px solid #e2e8f0; /* Garis pemisah tipis */
  padding: 0 16px 0 16px 0;
  margin-bottom: 8px;
}

.comment-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 6px;
}

.comment-name {
  font-weight: 600;
  color: #1e293b; /* Biru gelap netral */
  font-size: 14px;
}

.comment-date {
  font-size: 12px;
  color: #94a3b8; /* Abu-abu muda untuk tanggal */
}

.comment-text {
  font-size: 15px;
  line-height: 1.6;
  color: #334155; /* Warna teks utama yang nyaman dibaca */
  margin: 0;
}

/* Efek sedikit hover agar terasa interaktif */
.comment-item:hover {
  background-color: #fafafa;
}
/* form komentar */
.form-wrapper {
  background: #fff;
  border-radius: 10px;
  padding: 25px;
  border: 1px solid #e6e6e6;
}

.form-group {
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
}

.form-wrapper label {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 6px;
}

.form-wrapper label span {
  color: #d32f2f;
}

.form-wrapper input,
.form-wrapper textarea {
  border: 1px solid #dcdcdc;
  font-family: "Poppins", sans-serif;
  border-radius: 8px;
  padding: 10px 12px;
  font-size: 14px;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  background: #ffffff;
}

.form-wrapper input:focus,
.form-wrapper textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 2px rgba(0, 126, 129, 0.12);
}

.form-wrapper textarea {
  min-height: 130px;
  resize: vertical;
}

/* Grid untuk baris pertama (Nama & HP) */
.form-wrapper .row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-gap: 14px;
}

.form-wrapper .btn-mod.btn-submit {
  padding: 0.4rem 1.2rem;
}

/* =====================================
                  kanan
  ===================================== */
/* Container Utama */
.terms-section.berita_dinamis .kanan {
  flex: 1.2;
  padding: 20px;
  border-radius: 9px;
  box-shadow: 0 2px 7px rgba(0, 0, 0, 0.204);
  background-color: white;
  height: fit-content;
}

.berpop {
  margin-bottom: 30px;
}
/* Judul dengan garis bawah hijau */
.title-populer {
  font-size: 1.5rem;
  font-weight: bold;
  margin-bottom: 20px;
  position: relative;
  padding-bottom: 10px;
  border-bottom: 3px solid var(--brand); /* Warna hijau seperti gambar */
  display: inline-block;
}

/* Card Berita */
.card-populer {
  display: flex;
  gap: 15px;
  padding: 8px;
  border-radius: 7px;
  margin-bottom: 15px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  background-color: rgba(224, 224, 224, 0.656);
  transition: 0.6s ease-in-out;
}
.card-populer:hover {
  box-shadow: 0 6px 10px rgba(0, 0, 0, 0.25);
}

.img-container {
  flex: 0 0 100px; /* Lebar foto tetap */
  height: 80px;
  border-radius: 8px;
  overflow: hidden;
}

.img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.img-container.placeholder {
  background: #e9ecef;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #adb5bd;
  font-size: 0.8rem;
}

/* Isi Konten */
.content-populer {
  display: flex;
  width: 100%;
  flex-direction: column;
  justify-content: space-between;
  overflow: auto;
}
.content-populer .juber-pop {
  color: black;
  margin: 0 !important;
  margin-bottom: 4px;
  font-size: 0.9rem !important;
}
.content-populer .date {
  color: black;
  margin: 0 !important;
  margin-bottom: 4px;
  font-size: 0.8rem !important;
}

.meta-populer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}
.meta-populer .btn-mod.btn-category {
  font-size: 0.7rem;
  padding: 4px 6px;
  background-color: black;
  border-radius: 5px;
}
.meta-populer .btn-mod.btn-category:hover {
  color: black;
}

/* kategori list */
.kategori-list .categories {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

/* =====================================
           STATUS IDM
===================================== */

.content-wrapper-center {
  max-width: 90%;
  margin: 40px auto;
  padding: 0 20px;
  display: flex;
  gap: 30px;
  align-items: flex-start;
}

/* Quick Links - Di KIRI (Sticky Sidebar) */
.quick-links-container {
  flex: 0 0 300px;
  width: 100%;
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}

.quick-links-container .item-idm:nth-child(1) {
  margin-bottom: 2rem;
}

.quick-links-container h2 {
  font-size: 1.4rem;
  color: black;
  margin-bottom: 15px;
  border-bottom: 2px solid rgba(0, 0, 0, 0.311);
  padding-bottom: 8px;
}

.service-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 10px;
  font-weight: 600;
  color: #333;
  transition: 0.3s;
  margin-bottom: 5px;
  background: var(--bg-light);
  border-radius: 6px;
}
.service-link i {
  font-size: 1.1em;
}

.service-link.active {
  background: linear-gradient(to left top, var(--gradient-blue));
  color: white;
  pointer-events: none;
}
.service-link.active:hover {
  color: white;
}

/* Deskripsi - Di Kanan */
.content-description {
  flex-grow: 1;
  width: 100%;
  height: 100%;
  min-height: 100vh;
  overflow: hidden;
  background: white;
  padding: 20px 30px 20px 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.content-description .selecTahun {
  width: 100%;
  margin: 0 0 15px 0;
  padding: 10px;
  background-color: transparent;
  font-size: 1rem;
  border-radius: 8px;
  border-color: rgba(0, 0, 0, 0.133);
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.226);
}

.description h2 {
  color: var(--brand);
  margin-bottom: 20px;
  font-size: 1.8rem;
}

.description p {
  font-size: 1rem;
  color: #374151;
  line-height: 1.8;
  margin-bottom: 15px;
  text-align: justify;
}

.description i {
  color: var(--brand);
}

/* Gaya List Poliklinik */
.description ul {
  margin-left: 20px;
  padding-left: 0;
  list-style-type: none;
}
.description ul li {
  position: relative;
  margin-bottom: 8px;
  color: #333;
  padding-left: 20px;
}
.description ul li::before {
  content: "\f46e"; /* Bi icon check-circle */
  color: var(--accent);
  position: absolute;
  left: 0;
  font-size: 1em;
}
#status_idm table {
  font-size: 0.8rem;
}
#status_idm table th {
  text-align: center;
}

/* =====================================
           SDGS SKOR
===================================== */
.sdgs-wrapper {
  padding: 20px 8px;
}

/* Header Section */
.sdgs-main-header {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-bottom: 40px;
}

.total-score-card {
  background: white;
  padding: 30px;
  border-radius: 12px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.319);
  text-align: center;
  min-width: 200px;
  border-top: 5px solid #2d3436;
}

.total-score-card h1 {
  font-size: 3rem;
  margin: 0;
  color: var(--text-dark);
}

.total-score-card p {
  margin: 5px 0 0;
  color: #636e72;
  font-weight: 600;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.header-title h2 {
  font-size: 2.5rem;
  margin: 0;
  letter-spacing: 2px;
  color: var(--text-dark);
}

.header-title .line {
  height: 4px;
  width: 60px;
  background: #fab1a0;
  margin-top: 10px;
}

/* Grid System */
.sdgs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}

/* Card Style */
.sdg-card {
  background: white;
  display: flex;
  align-items: center;
  padding: 15px;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.319);
  border: 1px solid var(--border-color);
  transition: transform 0.2s;
}

.sdg-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.1);
}

.sdg-icon {
  width: 60px;
  height: 60px;
  margin-right: 15px;
  flex-shrink: 0;
}

.sdg-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 4px;
}

.sdg-info {
  flex-grow: 1;
}

.sdg-name {
  display: block;
  font-size: 0.75rem;
  font-weight: 700;
  color: #636e72;
  text-transform: uppercase;
  margin-bottom: 4px;
}

.sdg-value-group {
  display: flex;
  align-items: baseline;
  gap: 8px;
}

.sdg-number {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-dark);
}

.sdg-label {
  font-size: 0.7rem;
  color: #b2bec3;
  font-weight: 600;
}

/* =====================================
              LAPAK & BERITA DESA
  ===================================== */
.lapak-main-header,
.berita-main-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 30px;
}
/* Container Pencarian */
.search-wrapper {
  display: flex;
  justify-content: center;
  margin: 20px 0;
}

/* Container utama pencarian */
.search-container-standard {
  width: 100%;
  max-width: 600px; /* Lebar maksimal agar tidak terlalu panjang */
  margin: 0 auto 30px auto; /* Tengah secara horizontal */
}

.search-group {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 2px solid #e2e8f0; /* Border abu-abu halus */
  border-radius: 8px; /* Sudut sedikit membulat, kesan formal */
  overflow: hidden;
  transition: border-color 0.3s ease;
  position: relative;
}

/* Fokus saat input diklik */
.search-group:focus-within {
  border-color: black; /* Berubah jadi biru saat aktif */
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Input teks */
.search-input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  outline: none;
  font-size: 15px;
  color: #334155;
  width: 300px;
}

.search-input::placeholder {
  color: #94a3b8;
}

/* Tombol Cari */
.search-button {
  border: none;
  background-color: transparent;
  width: 30px;
  height: 100%;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.2s ease;
  position: absolute;
  right: 0;
}
.search-button i {
  font-size: 1rem;
}

/* search berita */
.search-ber {
  display: flex;
  gap: 20px;
  justify-content: space-between;
  margin-top: 10px;
}
.search-ber h4 {
  font-size: 0.9rem;
  font-weight: 600;
}

/* =====================================
            Detail LAPAK
===================================== */
.lapak-sec .thumbnail-produk {
  width: 100%;
  min-height: 0px;
  max-height: 500px;
  max-height: 600px;
  overflow: hidden;
  border-radius: 7px;
}
.lapak-sec .thumbnail-produk img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lapak-sec .body-produk {
  margin-top: 1.4rem;
}
.body-produk .info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 0;
}
.body-produk .info .btn-mod.btn-category-produk {
  padding: 4px 10px;
}
.body-produk .info .date {
  font-size: 0.9rem;
}
.body-produk .isi-produk h2 {
  font-size: 2rem;
}

.product-table {
  width: 100%;
  border-collapse: collapse; /* Menghilangkan jarak antar border */
  margin-top: 20px;
  font-size: 1rem;
}

.product-table tr {
  border-bottom: 1px solid #e0e0e0; /* Garis horizontal abu-abu */
}

/* Menghilangkan garis di baris terakhir agar rapi */
.product-table tr:last-child {
  border-bottom: none;
}

.product-table td {
  padding: 15px 0; /* Memberi ruang atas dan bawah pada teks */
  vertical-align: top; /* Teks rata atas jika deskripsi panjang */
}

.label {
  width: 200px; /* Lebar kolom label */
  font-weight: bold;
  color: #333;
}

.value {
  color: #555;
  line-height: 1.5;
}

.price {
  font-weight: 800;
  color: #000;
}

.footer-produk {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 20px;
}
.footer-produk .btn-mod.btn-co {
  font-size: 0.9rem;
}
.footer-produk .share {
  margin-top: 0;
}

/* =====================================
              PETA DESA
  ===================================== */
.peta-sec iframe {
  height: 600px !important;
}

/* =====================================
            Detail LAPAK
===================================== */
#gallery .gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
#gallery .gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease-in-out;
}
#gallery .gallery-item img,
#gallery .gallery-item iframe {
  width: 100%;
  height: 300px !important;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
#gallery .gallery-item iframe {
  height: 300px;
}

/* Hover Effect */
#gallery .gallery-item:hover img {
  transform: scale(1.05);
}

/* Overlay/Teks di Item Galeri */
.gallery-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.6);
  text-align: center;
  padding: 15px;
  transform: translateY(100%);
  transition: transform 0.3s ease;
}
#gallery .gallery-item:hover .gallery-overlay {
  transform: translateY(0);
}
#gallery .gallery-item[data-category="video"] .gallery-overlay {
  transform: translateY(0); /* Overlay video selalu terlihat */
}
#gallery .gallery-item .card-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
#gallery .gallery-item .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
#gallery .gallery-overlay h4 {
  color: white;
  margin: 0;
  font-size: 1.1em;
}
#gallery .gallery-overlay p {
  color: white;
  font-size: 0.8em;
  margin: 5px 0 0;
}

/* Icon untuk Video */
#gallery .video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  opacity: 0.8;
  pointer-events: none;
}

/* =====================================
              BANSOS PAGE
===================================== */
.faq-section {
  margin: 0 auto;
  padding: 0 5% 40px;
}
.section-title {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #000001;
  font-weight: 600;
}

/* Container Akordeon */
.accordion {
  max-width: 900px;
  margin: 0 auto;
}

/* Item Akordeon */
.accordion-item {
  margin-bottom: 10px;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  background: white;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}

.accordion-item a {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 15px 20px;
  font-size: 1.1em;
}
/* Tombol Pertanyaan */
.accordion-header {
  background-color: transparent;
  cursor: pointer;
  font-weight: 600;
  transition: background-color 0.3s;
}
.accordion-header:hover {
  background-color: #e9f4ff;
}

/* =====================================
              PAGINATION
===================================== */
.pagination {
  margin-top: 30px;
  display: flex;
  gap: 6px;
  list-style: none;
  justify-content: center;
  padding: 0;
}

.pagination li {
  display: inline-block;
  margin: 0 !important;
}

.pagination a,
.pagination span {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  border: 1px solid #cbd5e1;
  color: #0f172a;
  background: #ffffff;
  transition: 0.18s ease;
}

.pagination a:hover {
  background: #f1f5f9;
}

.pagination .active span {
  background: var(--brand);
  color: #ffffff;
  border-color: transparent;
}

/* PERATURAN DESA */
.info-perdes {
  display: flex;
  align-items: center;
  gap: 20px;
}

.info-perdes div {
  flex-grow: 1;
  padding: 9px;
}

.info-perdes input,
select {
  width: 100%;
  display: block;
}

.info-perdes select {
  width: 100%;
  border: 2px solid black;
  border-radius: 0.75rem;
  padding: 0.55rem;
  font-size: 0.85rem;
  color: black;
  transition: all 0.2s ease;
  background-color: #fff;
  cursor: pointer;
}

.info-perdes .yearpicker {
  width: 100%;
  border: 2px solid black;
  border-radius: 0.75rem;
  padding: 0.55rem;
  font-size: 0.85rem;
  color: black;
  transition: all 0.2s ease;
  cursor: pointer;
}

.info-perdes .yearpicker:focus,
.info-perdes select:focus {
  outline: none;
  border-color: var(--brand);
}
.table-perdes {
  border-radius: 8px;
  margin: 4px 9px;
}

/* Animasi Gelombang Air (Wave Effect) */
@keyframes wave {
  0% {
    background-position: 0 100%;
  }
  100% {
    background-position: 100% 100%;
  }
}

/* -------------------------------------- */
/* 2. Desktop/Laptop View (Media Query) */
/* -------------------------------------- */
@media (min-width: 992px) {
  .nav-inner {
    padding: 0 20px; /* Sesuaikan padding untuk desktop */
  }

  /* Tampilkan Navigasi Utama di Desktop */
  .nav-center,
  .nav-right {
    display: flex;
    align-items: center;
  }

  /* Sembunyikan Hamburger Menu di Desktop */
  .hamburger {
    display: none;
  }

  /* Pastikan mobile menu tersembunyi di desktop */
  #mobileMenu {
    display: none !important;
  }

  /* Gaya untuk Navigasi Utama (nav-links) */
  .nav-links {
    display: flex;
    gap: 20px;
  }

  .nav-links > div > a {
    /* padding: 20px 0; */
    text-decoration: none;
    color: #333;
    font-weight: 500;
    transition: color 0.3s;
  }

  .nav-links > div > a:hover {
    color: var(--brand);
  }

  /* Gaya Nav Right (Karir) */
  .nav-right {
    margin-left: 20px;
  }
}
/* ====================================
   10. Responsiveness
   ==================================== */
/* Modifikasi CSS Responsive */
@media (max-width: 992px) {
  /* Tampilkan tombol burger di HP */
  .burger-menu {
    display: block;
  }

  /* Modifikasi nav-inner agar logo dan burger ada di pinggir */
  .nav-inner {
    justify-content: space-between; /* Untuk memisahkan logo dan burger */
  }

  /* brand */
  .brand img {
    width: 60px;
    height: 60px;
  }

  .brand .name {
    display: block;
    margin-left: -5px;
    font-size: 1.2rem;
  }

  .brand .name .dtl-wilayah {
    display: block;
    font-size: 0.7rem;
    font-weight: 600;
  }

  /* Sembunyikan navigasi utama secara default di HP */
  .nav-links {
    display: none;
    flex-direction: column; /* Ubah tata letak menjadi vertikal */
    position: absolute;
    top: 60px; /* Di bawah navbar */
    left: 0;
    width: 100%;
    background-color: white;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
    padding: 10px 0;
    z-index: 50; /* Pastikan di atas konten tapi di bawah navbar */
  }

  /* Styling link di mode mobile */
  .nav-links a {
    padding: 10px 20px;
    border-radius: 0;
    border-bottom: 1px solid #eee;
  }

  /* Tampilkan navigasi saat class 'active' ditambahkan oleh JS */
  .nav-links.active {
    display: flex;
  }

  /* Sembunyikan dropdown di mobile, tampilkan kontennya langsung */
  .dropdown:hover .dropdown-content,
  .dropdown-content {
    position: static;
    box-shadow: none;
    border-top: none;
    min-width: unset;
  }
  .dropdown-content a {
    padding-left: 30px; /* Indentasi untuk submenu */
    background: var(--bg-light);
  }
  /* Menu Mobile */
  .nav-center,
  .nav-right {
    display: none;
  }
  .navbar-toggler,
  .hamburger {
    display: block;
  }

  /* Hero */
  .hero {
    height: auto;
    padding: 40px 20px;
  }
  .hero-left {
    flex-direction: column;
    text-align: center;
    gap: 20px;
  }
  .circle-wrap {
    width: 200px;
    height: 200px;
  }
  .circle-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .hero-copy {
    text-align: center;
    max-width: 100%;
  }
  .hero-copy div {
    justify-content: center;
  }

  /* Statistik (3x1) */
  .services-grid-stats {
    grid-template-columns: 1fr;
  }
  /* Quick Links (2x2) */
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    /* margin: 20px 0; */
  }

  /* Lainnya */
  .pelayanan-container {
    flex-direction: column;
    text-align: center;
  }
  .sidebar {
    min-width: 100%;
  }
  .carousel-container {
    width: 100%;
  }
  .temukan-wrap {
    flex-direction: column;
  }
  .berita-grid {
    grid-template-columns: 1fr;
  }
  .site-footer {
    flex-direction: column;
    text-align: center;
  }

  /* agenda */
  .jadwal-wrap .jadwal-left {
    font-size: 0.9rem;
  }
  .jadwal-wrap .box-img {
    width: 180px;
  }
  .jadwal-wrap {
    flex-direction: column;
  }

  .header-background h1 {
    font-size: 2rem !important;
  }

  /* =====================================
              album  DINAMIS
  ===================================== */
  #gallery .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  /* =====================================
              PAGE DINAMIS
  ===================================== */
  .terms-section.berita_dinamis {
    flex-direction: column;
  }
  .terms-section.berita_dinamis .body-artikel.kiri {
    padding: 10px 2%;
  }
  .berita_dinamis .paginationber {
    flex-direction: column;
  }

  /* =====================================
            lapak desa
  ===================================== */
  .lapak-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  /* =====================================
            Status IDM
  ===================================== */
  .content-wrapper-center {
    flex-direction: column;
  }
  /* =====================================
                SDGS
  ===================================== */
  .sdgs-main-header {
    flex-direction: column;
    text-align: center;
  }
  .header-title .line {
    margin: 10px auto;
  }
}
@media (max-width: 576px) {
  .terms-section,
  .sdgs-sec,
  .lapak-sec,
  .berita-sec,
  .lapak-sec,
  .peta-sec,
  .gallery-sec {
    padding: 15px 2%;
    font-size: 0.8rem;
  }

  #lapak_desa,
  #perangkat_desa {
    padding: 20px 15px !important;
  }

  .brand img {
    width: 40px;
    height: 40px;
  }
  .brand .name {
    font-size: 1rem;
  }
  .brand .name .dtl-wilayah {
    font-size: 0.5rem;
  }

  .hero-copy h1 {
    font-size: 1.5rem;
  }
  .hero-copy p {
    font-size: 0.8rem;
  }

  .btn-mod {
    padding: 3px 6px;
    font-size: 0.8rem;
  }
  .btn-mod.kategory-home {
    font-size: 0.6rem;
  }

  .jadwal-wrap .isi {
    text-align: justify;
  }
  .jadwal-wrap .box-img {
    width: 100%;
    margin-bottom: 20px;
  }
  /* Quick Links (3x2 menjadi 2x3) */
  .services-grid {
    grid-template-columns: repeat(1, 100%);
    margin: 0 auto; /* Diposisikan di tengah */
    padding: 0 0px;
  }

  /* calenddar */
  .calendar .days,
  .calendar .dates {
    font-size: 0.7rem;
  }

  /* perangkat */
  .sidebar {
    width: 100%;
  }

  /* Pastikan di file index.html */
  /* Tambahkan CSS ini ke bagian <style> */
  .feature-link {
    text-decoration: none; /* Hilangkan garis bawah */
    color: inherit; /* Warisi warna teks dari parent */
    display: block; /* Penting! Jadikan tag <a> mengambil seluruh ruang kotak */
  }

  /* Jika Anda ingin menambahkan efek hover pada kotak: */
  .feature-link .feature-box {
    transition: transform 0.3s, box-shadow 0.3s;
  }

  .feature-link:hover .feature-box {
    transform: translateY(-5px); /* Efek naik sedikit saat dihover */
    box-shadow: 0 10px 20px rgba(0, 123, 255, 0.2); /* Bayangan biru yang lebih menonjol */
  }

  .lapak-main-header {
    flex-direction: column-reverse;
    gap: 20px;
  }
  .lapak-main-header h1 {
    font-size: 0.8rem;
    text-align: end;
  }

  /* berita home */
  .berita-grid-home {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    margin-bottom: 20px;
  }

  /* =====================================
          PAGE STATIS HERO/HEADER
  ===================================== */
  .terms-section {
    width: 90%;
  }
  .header-background {
    margin-bottom: 30px;
    height: 120px;
  }
  .header-background h1 {
    font-size: 1.1em !important;
    margin: 0;
    z-index: 2;
  }

  .overflow-easydes-footer img {
    width: 40px;
    height: 40px;
  }
  .overflow-easydes-footer .tooltiptext {
    bottom: 15%; /* muncul di atas */
    left: 19%;
  }

  /* =====================================
              ARTICLE STYLE
  ===================================== */
  .top-article h2 {
    font-size: 1.4rem;
  }
  .info_page {
    flex-direction: column;
    align-items: start;
    margin-bottom: 1rem;
  }
  .info_page ul {
    list-style: none;
    display: flex;
    gap: 10px;
    align-items: center;
  }
  .btn-mod.btn-mod.btn-category {
    width: 100%;
  }
  .info_page li {
    font-size: 0.89rem;
  }
  .info_page li span {
    display: none;
  }

  /* share */
  .share {
    flex-direction: column;
  }

  .view-all {
    display: none;
  }
  .berita-terkait .grid-berita {
    grid-template-columns: repeat(1, 1fr);
  }
  .berita-terkait .grid-berita .btn-mod.btn-category.btn-berket {
    width: fit-content;
  }
  /* =====================================
              PAGE DINAMIS
  ===================================== */
  .kanan .kategori-list .btn-mod.btn-mod.btn-category {
    width: fit-content;
  }

  .footer-produk {
    flex-direction: column;
  }
  .footer-produk .share {
    margin-bottom: 20px;
  }
  .footer-produk .btn-mod.btn-co {
    width: 100%;
  }

  /* form komentar */
  .row {
    grid-template-columns: 1fr;
  }

  .berita-terkait .grid-berita .col-ber .card-img {
    min-height: 200px;
    max-height: 200px;
  }
  /* =====================================
              album DESA
  ===================================== */
  #gallery .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
  }
  #gallery .gallery-grid img,
  video,
  iframe {
    max-height: 200px !important;
  }
  /* =====================================
              lapak DESA
  ===================================== */
  .lapak-grid {
    grid-template-columns: repeat(1, 1fr) !important;
  }
  /* =====================================
              PETA DESA
  ===================================== */
  .peta-sec iframe {
    height: 400px !important;
  }

  /* =====================================
              BANSOS
  ===================================== */
  .accordion-item a {
    font-size: 0.9em;
  }

  .group-btn {
    width: 100%;
  }
}

/* Responsif Mobile */
@media (max-width: 480px) {
  .berita-grid-home {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
    margin-bottom: 20px;
  }
  .card-populer {
    flex-direction: column;
    align-items: flex-start;
  }
  .img-container {
    width: 100%;
    flex: none;
    height: 150px;
  }
}
