/* --- GLOBAL STYLING --- */
:root {
  --color-light: #ffffff;
  --color-dark: #333;
  --font-main: "Arial", sans-serif;

  --shadow: 0 4px 8px rgba(0, 0, 0, 0.3);
}

body {
  font-family: "Inter", sans-serif;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
  min-height: 100vh;
}
main {
  min-height: 100vh;
}

.new-tag:hover {
  background: white;
  box-shadow: 3px 2px 3px rgba(0, 0, 0, 0.275);
  color: var(--color-mix);
}
a {
  text-decoration: none;
  color: inherit;
}
.not-data {
  text-align: center;
  font-weight: bold;
}

/* --- 1. TOP BAR --- */
.top-header {
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
}
.container {
  /* max-width: 95%; */
  max-width: 1300px !important;
  margin: auto !important;
  padding: 10px 17px !important;
}
.container-nav {
  max-width: 95%;
  margin: auto !important;
  padding: 10px 17px !important;
}

#top-bar {
  background: color-mix(
    in oklab,
    var(--color-mix) 70%,
    rgba(36, 36, 36, 0.764) 30%
  );
}
.top-bar {
  color: var(--color-light);
  padding: 5px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85em;
  margin: 0 auto;
}

.top-bar-left span {
  margin-right: 15px;
}
.social-icons.sosial-footer {
  justify-content: left !important;
  margin-bottom: 9px;
}

.social-icons i,
.social-icons img {
  margin-left: 10px;
  cursor: pointer;
  padding: 5px;
  background-color: rgba(255, 255, 255, 0.2);
  border-radius: 50%;
  width: 20px;
  height: 20px;
  text-align: center;
  line-height: 20px;
  transition: background-color 0.2s;
}
.social-icons .tooltip {
  position: relative;
  transition: 0.5s ease-in-out;
}
.social-icons .tooltip:hover {
  transform: translateY(-8px);
}
.social-icons .tooltip::after {
  content: attr(data-tooltip); /* Mengambil teks dari data-tooltip */
  position: absolute;
  bottom: -70%; /* Muncul di atas elemen */
  left: 50%;
  transform: translateX(-50%);
  background-color: #333;
  color: #fff;
  padding: 5px 10px;
  border-radius: 6px;
  white-space: nowrap;
  font-size: 12px;
  opacity: 0; /* Sembunyi saat awal */
  transition: opacity 0.3s;
  pointer-events: none;
}
.social-icons .tooltip:hover::after {
  opacity: 1;
}

.info-perdes {
  display: flex;
  gap: 2em;
  justify-content: space-between;
  margin: 1em 0;
}
.info-perdes label {
  display: block;
  margin-bottom: 0.3em;
}
.info-perdes .tahun,
.info-perdes .kategori {
  width: 100%;
}
.info-perdes .tahun input,
.info-perdes .kategori select {
  width: 100% !important;
  padding: 10px;
  background-color: #fff;
  border-radius: 10px;
}
/* --- 2. MAIN NAVIGATION --- */
#main-nav {
  background: var(--color-primary); /* Baris Menu Utama Hijau */
}
#main-nav.active {
  position: fixed;
  top: 0px;
  z-index: 99999;
  width: 100%;
  box-shadow: 0 3px 4px rgba(0, 0, 0, 0.251);
}

.main-nav {
  color: var(--color-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  margin: 0 auto;
  height: 60px;
  position: relative;
}

.logo {
  width: 250px;
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.logo-main {
  font-size: 1.5em;
  font-weight: bold;
}

.logo-sub {
  font-size: 0.8em;
  opacity: 0.9;
}

.menu-list-dekstop {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  margin: 0;
  padding: 0;
  /* flex-grow: 1; */
}

.menu-list-dekstop li {
  display: flex;
  align-items: center;
  color: var(--color-light);
  text-decoration: none;
  display: block;
  font-weight: 500;
  transition: background-color 0.2s;
  height: 20px;
  cursor: pointer;
  position: relative;
}
.menu-list-dekstop li:hover > .dropdown {
  transform: scale(1);
  opacity: 1;
}

.dropdown {
  width: 200px;
  max-height: 600px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  padding: 10px 0 !important;
  background: var(--color-mix);
  box-shadow: 2px 3px 6px rgba(0, 0, 0, 0.6);
  border-top: 5px solid var(--color-secondary);
  border-top-left-radius: 10px;
  border-top-right-radius: 10px;
  margin-top: 10px;
  transition: 0.6s ease-in-out;
  transform-origin: top right;
  position: absolute;
  right: 0;
  z-index: 9999;
  font-weight: 600;

  transform: scale(0);
  opacity: 0;
}
.dropdown li {
  height: fit-content;
  padding: 7px 9px !important;
  color: white;
}
.dropdown li:hover {
  background-color: #ffffff3a;
}
.dropdown a {
  display: inline-block;
  width: 100% !important;
}
.menu-list-dekstop li i {
  transition: 0.4s ease-in-out;
}

.menu-list-dekstop li:hover > i {
  transform: rotate(180deg);
}

.menu-list-mobile {
  display: none;
  max-height: 500px;
  overflow: auto;
  flex-direction: column;
  width: 100%;
  font-size: clamp(0.9rem, 1vw, 1.1rem);
  margin-top: 8px;
  margin-bottom: 10px;
  padding: 0 4px;
}
.menu-list-mobile details,
.menu-list-mobile .mobile-menu {
  padding: 10px 10px 4px 10px;
  width: 90%;
  border-bottom: 2px solid rgba(224, 224, 224, 0.448);
}
.menu-list-mobile .mobile-menu {
  display: inline-block;
}

.menu-list-mobile summary {
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 5px;
}
.menu-list-mobile .list-navmenu {
  margin-left: 0.7rem;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.menu-list-mobile .list-navmenu a {
  display: inline-block;
  width: 100%;
  margin: 4px 0;
  padding: 0 5px;
}
.menu-list-mobile .list-navmenu a:hover {
  background-color: #ffffff50;
}

.btn-pengaduan {
  background-color: var(--color-secondary); /* Oranye */
  color: var(--color-light);
  text-decoration: none;
  padding: 10px 25px;
  border-radius: 30px;
  font-weight: bold;
  transition: background-color 0.3s, box-shadow 0.3s;
  box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.btn-pengaduan:hover {
  background-color: #e67e22;
  box-shadow: 0 5px 8px rgba(0, 0, 0, 0.3);
}

/* Mobile menu toggle */
.mobile-menu-toggle {
  display: none;
  background: none;
  border: none;
  color: white;
  font-size: 1.5em;
  cursor: pointer;
}

/* --- 3. HERO SECTION --- */
.hero-section {
  /* Ganti dengan URL gambar Anda, ini hanya placeholder */
  height: 70vh;
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  position: relative;
  color: var(--color-dark);
}

.hero-content {
  z-index: 2; /* Agar konten di atas overlay */
}

.google-icon {
  margin: 20px auto;
  width: 80px;
  height: 80px;
  max-width: 130px;
  max-height: 130px;
}
.google-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.hero-content h1 {
  font-size: 2.5em;
  margin: 0;
  color: #444;
}

.hero-content p {
  font-size: 1.1em;
  color: #444;
  font-weight: 600;
  margin-top: 5px;
}

.search-box {
  background-color: var(--color-light);
  border-radius: 30px;
  padding: 10px 20px;
  margin-top: 25px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  width: 90%;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
}

.search-box i {
  color: var(--color-primary);
  margin-right: 15px;
  font-size: 1.2em;
}

.search-box input {
  width: 100%;
  border: none;
  outline: none;
  flex-grow: 1;
  font-size: 1.1em;
  color: var(--color-dark);
}

/* --- 4. MODULES SECTION (SHORTCUTS) --- */
.modules-container {
  width: 100%;
  display: flex;
  justify-content: center;
  /* Memindahkan kartu ke atas agar menimpa bagian bawah hero */
  transform: translateY(-50px);
  z-index: 3;
  position: relative;
}

.modules-section {
  background-color: var(--color-light);
  padding: 20px;
  display: flex;
  justify-content: space-around;
  gap: 15px;
  border-radius: 15px;
  max-width: 1100px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.module-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
  width: 120px;
  padding: 5px 0;
  transition: transform 0.2s, color 0.2s;
}

.module-card:hover {
  transform: translateY(-5px);
  color: var(--color-primary);
}

.icon-wrapper {
  background-color: #f8f8f8; /* Background lebih terang dari modul */
  border: 1px solid #eee;
  border-radius: 10px;
  padding: 15px;
  margin-bottom: 8px;
  font-size: 2.2em;
  color: var(--color-primary);
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  display: flex;
  justify-content: center;
  align-items: center;
  width: 60px;
  height: 60px;
}

.module-card span {
  font-size: 0.9em;
  font-weight: 600;
}

/* Modifikasi Ikon agar lebih mirip (contoh) */
.module-card:nth-child(3) .icon-wrapper {
  color: #f26522;
} /* Pengaduan: Oranye */
.module-card:nth-child(4) .icon-wrapper {
  color: #e91e63;
} /* Prodik: Merah Muda */
.module-card:nth-child(6) .icon-wrapper {
  color: #00bcd4;
} /* Bantuan: Cyan */

/* --- 1. LAYOUT KONTEN UTAMA --- */
.main-content-section {
  padding-top: 2rem;
}

/* Container utama yang memisahkan Banner dan Data Penduduk (menggunakan Grid) */
.main-banner-content {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 900px) {
  .main-banner-content {
    /* Membagi ruang: Banner (70%), Data (30%) */
    grid-template-columns: 3fr 1.5fr;
  }
}

/* --- 2. DIRGAHAYU & ANNOUNCEMENT CARD (Kiri) --- */
.dirgahayu-container {
  /* Background Card (Putih: #FFFFFF) */
  background-color: #ffffff;
  border-radius: 12px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.08);
  position: relative;
  overflow: hidden;
  padding: 1rem;
}

/* Pita Header Pengumuman */
.announcement-header {
  /* Oranye: #F97316 */
  background-color: var(--color-mix);
  /* Putih: #FFFFFF */
  color: #ffffff;
  padding: 0.5rem 1.5rem;
  position: absolute;
  top: 0;
  left: 0;
  font-weight: 700;
  font-size: 1rem;
  border-top-left-radius: 12px;
  clip-path: polygon(0 0, 100% 0, 95% 100%, 0% 100%);
  z-index: 20;
  box-shadow: 2px 2px 5px rgba(0, 0, 0, 0.1);
}

.dirgahayu-banner {
  width: 100%;
  height: 400px;
  max-height: 500px;
  box-shadow: var(--shadow);

  /* Merah utama: #DC2626, Putih: #FFFFFF */
  border-radius: 8px;
  margin-top: 1rem;
  position: relative;
  overflow: hidden;
}

/* universal */
.swiper .swiper-slide {
  transition: 0.5s ease-in-out;
}
.swiper .swiper-slide:hover {
  transform: translateY(-14px);
}

.swiper.berita-unggulan {
  width: 100%;
  height: 100%;
}
.swiper.perangkat-desa {
  width: 100%;
  height: 100%;
  /* bisa diisi gradient */
}
.swiper.lapak-desa {
  width: 100%;
  height: 100%;
}
.swiper.lapak-desa .swiper-slide {
  width: 100%;
  height: 350px;
  max-height: 400px;
}
.swiper.lapak-desa .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.swiper-wrapper {
  width: 100%;
}
#berita-unggulan .swiper-slide {
  text-align: center;
  position: relative;
}

#berita-unggulan .swiper-slide .box-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
  position: relative;
}
#berita-unggulan .swiper-slide .box-img::before {
  content: "";
  width: 100%;
  height: 100%;
  position: absolute;
  inset: 0;
  background: linear-gradient(
    rgba(151, 149, 149, 0.281),
    rgba(61, 61, 61, 0.552),
    rgba(8, 8, 8, 0.766)
  );
}
#berita-unggulan .swiper-slide .box-img img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}
#berita-unggulan .swiper-slide .berita-text-overlay {
  position: absolute;
  color: white;
  z-index: 10;
  bottom: 10px;
  width: 100%;
}
#berita-unggulan .swiper-slide .berita-text-overlay h3 {
  margin: 0px 0px 7px 0px !important;
  font-size: 1.6rem;
}
#berita-unggulan .swiper-slide .berita-text-overlay p {
  margin: 0px 0px 1.4rem 0px !important;
  font-size: clamp(13px, 1.2vw, 1.3rem);
}
.btn-prev,
.btn-next {
  position: absolute;
  top: 50%;
  margin: 0 5px;
  z-index: 9;
  background-color: var(--color-primary);
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: grid;
  place-items: center;
  font-size: 1.3rem;
  color: white;
  opacity: 0.6;
  transform: scale(0.9);
  transition: 0.3s ease-in-out;
  cursor: pointer;
}
.btn-next {
  right: 0;
}
.btn-next:hover {
  translate: 6px;
}
.btn-prev:hover {
  translate: -6px;
}
.btn-prev:hover,
.btn-next:hover {
  opacity: 1;
  transform: scale(1);
}

.banner-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.7) 0%,
    rgba(0, 0, 0, 0.3) 100%
  );
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* section dinamsi/statis */
.section-page {
  min-height: 100vh;
}
.section-page .section-container {
  margin: 2rem auto;
  width: 94%;
}
.section-page .section-container .card-section {
  padding: 1rem;
  border-radius: 7px;
  background-color: white;
  box-shadow: var(--shadow);
}
.thumbnail {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  min-height: 300px;
}
.section-page .section-container .card-section .thumbnail .new-tag {
  font-size: 1rem;
  left: 0;
  top: 0;
  border-radius: 0;
  border-bottom-right-radius: 10px;
  box-shadow: var(--shadow);
}
.section-page .section-container .card-section img {
  width: 100%;
  height: 100%;
}
.footer-card {
  margin-top: 3rem;
}
.info-berita {
  display: flex;
  justify-content: end;
  gap: 1rem;
  padding: 1rem;
  color: rgba(0, 0, 0, 0.511);
}
.share {
  padding-top: 0.5rem;
  display: flex;
  align-items: center;
  border-top: 2px solid grey;
}
.share ul {
  padding: 0;
  margin-left: 10px;
  list-style: none;
  display: flex;
  gap: 5px;
}
.share ul li a {
  color: rgba(57, 57, 57, 0.726);
  font-size: 1rem;
  margin: 0 2px;
}
.tgl-berita {
  display: inline-block;
  position: absolute;
  top: 0;
  background: var(--color-mix);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0.5rem;
  font-size: 11px;
  color: white;
  border-bottom-left-radius: 10px;
  right: 0;
  box-shadow: var(--shadow);
}
.tgl-berita h2 {
  font-size: 2rem;
  margin: 5px;
}
.tgl-berita .tgl-sort {
  margin-top: -6px;
  font-weight: 600;
}

.section-page .section-container.dinamis {
  display: flex;
  gap: 1.5rem;
}
.section-page .section-container.dinamis .section-utama {
  width: 75%;
}
.section-page .section-container .berita-side {
  width: 25%;
  height: fit-content;
}
.section-page .section-container .berita-side .side-box {
  margin-bottom: 1.5rem;
}
.box-title {
  background: linear-gradient(
    to right,
    var(--color-primary),
    rgba(255, 255, 255, 0.774)
  );
  padding: 0.4rem 0.8rem;
  color: white;
}
.box-title h3 {
  margin: 0;
  font-size: 1.2rem;
  color: white;
}
.box-title .big-title {
  font-size: clamp(1.2rem, 2vw, 2rem);
}
.berita-box {
  margin-bottom: 1.6rem;
}
.box-beritaall {
  margin-top: 20px;
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, 1fr);
}
.box-beritaall h2,
p {
  margin: 0 !important;
}
.box-beritaall .list-beritaall {
  width: 100%;
  height: 250px;
  display: inline-block;
  position: relative;
}
.box-beritaall .list-beritaall .thumbnail {
  width: 100%;
  height: 100%;
  min-height: 0% !important;
  overflow: hidden;
  position: relative;
}
.box-beritaall .list-beritaall .thumbnail img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.box-beritaall .list-beritaall .desc-beritaall {
  height: 100px;
  position: absolute;
  background: linear-gradient(
    to bottom,
    transparent 0%,
    color-mix(in oklab, var(--color-primary), transparent 20%) 30%
      /* Pudar di 30% bagian atas */
  );
  backdrop-filter: blur(5px);
  padding: 0.5rem 0.8rem;
  bottom: 0;
  opacity: 0;
  color: white;
  right: 0;
  left: 0;
  display: flex;
  gap: 4px;
  flex-direction: column;
  transition: 0.8s ease-in-out;
}
.box-beritaall .list-beritaall .desc-beritaall .date-beritaall {
  font-size: 0.9rem;
}
.box-beritaall .list-beritaall .desc-beritaall .judul-beritaall {
  font-size: clamp(1.3rem, 2vw, 1.5rem);
  font-weight: bold;
}

.box-beritaall .list-beritaall:hover .desc-beritaall {
  opacity: 1;
  pointer-events: auto;
}

/* form komentar */
.form-wrapper {
  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 select,
.form-wrapper textarea {
  border: 1px solid #dcdcdc;
  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 select: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;
  background-color: var(--color-primary);
  border: none;
  color: white;
  font-weight: 600;
}

.box-berita-side {
  display: grid;
  grid-template-columns: 1fr;
  margin-top: 0.6rem;
  gap: 20px;
}
.box-berita-side .list-berita-side {
  display: flex;
  gap: 10px;
  padding: 10px;
  box-shadow: var(--shadow);
  transition: 0.3s ease-in-out;
  cursor: pointer;
}
.box-berita-side .list-berita-side:hover {
  transform: translateX(8px);
}
.box-berita-side .list-berita-side .thumb-side {
  width: 100px;
  height: 70px;
  overflow: hidden;
  border-radius: 6px;
}
.box-berita-side .list-berita-side .side-titleber {
  display: flex;
  justify-content: space-between;
  flex-direction: column;
}
.box-berita-side .list-berita-side h2 {
  margin: 0;
  font-size: 1rem;
}
.box-berita-side .list-berita-side .new-tag {
  padding: 0 0.3rem;
}
.box-berita-side .list-berita-side a {
  font-size: 0.7rem;
}
.box-list-kategori {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 1rem;
}
.box-list-agenda {
  margin-top: 1rem;
}
.box-list-agenda .list-agenda {
  box-shadow: var(--shadow);
  padding: 0.3rem;
  margin-bottom: 1rem;
  border-radius: 4px;
}
.box-list-agenda .list-agenda .info-agenda {
  display: flex;
  font-size: 0.9rem;
  justify-content: space-between;
  margin-bottom: 0.5rem;
}
.box-list-agenda .list-agenda h2,
p {
  font-size: 1rem;
  margin: 0;
}
.box-list-agenda .list-agenda p {
  font-size: 0.8rem;
  margin: 0;
}

.box-list-komentar {
  margin-top: 20px;
}
.box-list-komentar .list-komentar {
  box-shadow: var(--shadow);
  padding: 0.5rem 0.8rem;
}
.box-list-komentar .list-komentar .info-komentar {
  display: flex;
  justify-content: space-between;
}
.box-list-komentar .list-komentar .info-komentar .nama-komen {
  font-weight: bold;
  font-size: 1rem;
}
.box-list-komentar .list-komentar .info-komentar span {
  font-size: 0.8rem;
}
.isi-komen {
  font-size: 0.9rem;
  margin-top: 0.4rem;
}

/* Teks Dirgahayu */
.dirgahayu-text {
  text-align: center;
  /* Putih: #FFFFFF */
  color: #ffffff;
  line-height: 1;
  text-shadow: 1px 1px 5px rgba(0, 0, 0, 0.9);
  margin-top: auto;
  z-index: 5;
}

.dirgahayu-text .small-text {
  font-size: 1.1em;
  font-weight: 600;
  margin: 0.25rem 0;
  /* Putih: #FFFFFF */
  color: #ffffff;
}

.dirgahayu-title {
  display: block;
  font-size: 4em;
  font-weight: 900;
  /* Putih: #FFFFFF */
  color: #ffffff;
  margin-top: 10px;
}

.republik-title {
  display: block;
  font-size: 2.5em;
  font-weight: 800;
  /* Putih: #FFFFFF */
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 0.25rem;
}

.indonesia-title {
  display: none;
}

/* Tombol Panah Slider */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  /* Putih: #FFFFFF */
  color: #ffffff;
  font-size: 1.2em;
  cursor: pointer;
  z-index: 30;
  background-color: rgba(0, 0, 0, 0.3);
  border-radius: 50%;
  width: 35px;
  height: 35px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background-color 0.3s;
}
.slider-arrow:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.right-arrow .right-arrow {
  right: 0.5rem;
}
.slider-arrow .left-arrow {
  left: 0.5rem;
}

/* stat dan pemerintahan page  */
.title-data {
  text-align: center;
  margin: 0;
  font-size: clamp(1.3rem, 2vw, 3rem);
}

/* form */

/* -------------------------------------- */
/* TABLE */
/* -------------------------------------- */
.statistik_chart {
  margin: 1rem 0;
  border-radius: 7px;
  background-color: rgba(180, 180, 180, 0.171);
}
.overflow-table {
  width: 100%;
  height: 100%;
  overflow: auto;
}
.data-table {
  margin: 1rem 0;
  width: 100%;
  border-collapse: collapse;
  font-size: 15px;
}
.data-table thead {
  background: var(--color-primary) !important;
}

.data-table th,
.data-table td {
  border: 1px solid #d1d5db;
  padding: 10px 12px;
  vertical-align: top;
}

.data-table thead th {
  font-weight: 700;
  color: white;
  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;
}
/* Announcement Box di Bawah Banner */
.announcement-box {
  /* Background Card (Putih: #FFFFFF) */
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  /* Garis biru tebal: #1D4ED8 */
  border-left: 5px solid #1d4ed8;
  padding: 1rem;
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 1rem;
  z-index: 5;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
  transition: box-shadow 0.3s, transform 0.2s;
  cursor: pointer;
}
.announcement-box:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.google-icon-sm {
  /* Biru gelap: #1D4ED8 */
  color: #1d4ed8;
  font-size: 1.5em;
  padding: 0.5rem;
  /* Biru sangat muda: #EFF6FF */
  background-color: #eff6ff;
  border-radius: 4px;
}

.announcement-title {
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  /* Biru gelap: #1D4ED8 */
  color: #1d4ed8;
  line-height: 1.3;
}

.announcement-excerpt {
  font-size: 0.85em;
  margin: 0 0 0.25rem 0;
  color: #6b7280;
}

.announcement-meta {
  font-size: 0.75em;
  color: #9ca3af;
}

/* --- 3. DATA PENDUDUK CARD (Kanan) --- */
.data-penduduk {
  /* Background Card (Putih: #FFFFFF) */
  background-color: #ffffff;
  border: 1px solid #e5e7eb;
  padding: 1.5rem;
  border-radius: 12px;
  text-align: center;
  box-shadow: var(--shadow);
}

.data-penduduk h4 {
  margin-top: 0;
  font-size: 1.25rem;
  font-weight: 700;
  padding-bottom: 0.75rem;
  /* Background Halaman: #F3F4F6 */
  border-bottom: 2px solid #f3f4f6;
  margin-bottom: 1.5rem;
  /* Teks gelap: #1F2937 */
  color: #1f2937;
}

.chart-area {
  width: 100%;
  height: 200px;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 1.5rem;
}

/* Menggambar Pie Chart dengan CSS */
.pie-chart-placeholder {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  /* Laki-laki (Biru cerah: #3B82F6) 0% ke 60% | Perempuan (Pink cerah: #ff33a8) 60% ke 100% */
  /* background: conic-gradient(#3b82f6 0% 60%, #ff33a8 60% 100%); */
  /* Background Halaman: #F3F4F6 */
  box-shadow: 0 0 0 15px #f3f4f6, 0 5px 15px rgba(0, 0, 0, 0.1);
}

.chart-legend {
  margin-bottom: 1rem;
  font-size: 0.9em;
  display: flex;
  justify-content: center;
  gap: 1.5rem;
}

.legend-item {
  font-weight: 500;
  /* Teks gelap: #1F2937 */
  color: #1f2937;
  display: flex;
  align-items: center;
}

.legend-item i {
  font-size: 0.8em;
  margin-right: 0.5rem;
}

.total-penduduk {
  font-size: 1.1em;
  font-weight: 700;
  /* Teks gelap: #1F2937 */
  color: #1f2937;
  padding-top: 1rem;
  border-top: 1px dashed #e5e7eb;
  margin-top: 1rem;
}

/* --- 4. RESPONSIVITAS TAMBAHAN --- */

@media (max-width: 600px) {
  .dirgahayu-title {
    font-size: 3em;
  }
  .republik-title {
    font-size: 1.8em;
  }
  .small-text {
    font-size: 1em;
  }

  .side-news-wrapper {
    display: grid;
    grid-template-columns: 1fr;
  }
}
/* --- 6. JADWAL SHOLAT SECTION --- */
.jadwal-sholat-container {
  background-color: var(--color-light);
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  margin: 25px 0;
  overflow: hidden;
  display: flex; /* Mengatur tata letak header dan times-wrapper */
}

.sholat-header {
  background: var(--gradient); /* gradient */
  color: var(--color-light);
  padding: 15px 20px;
  font-weight: bold;
  font-size: 1.2em;
  min-width: 250px; /* Lebar minimum untuk header kiri */
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.sholat-header i {
  margin-right: 10px;
}

.sholat-times-wrapper {
  display: flex;
  justify-content: space-around;
  padding: 15px 10px;
  flex-grow: 1;
}
/* pagiantion bertia */
.paginationber {
  margin-top: 2.5rem;
  display: flex;
  gap: 15px;
}
.paginationber .colber {
  flex: 1;
  padding: 10px;
  border-radius: 8px;
  color: black;
  transition: 0.6s ease-in-out;
}
.paginationber .colber:hover {
  color: var(--color-mix);
}
.paginationber .colber:first-child:hover {
  transform: translateX(-10px);
}
.paginationber .colber:last-child:hover {
  transform: translateX(10px);
}
.paginationber .colber span:nth-child(1) {
  display: block;
  font-weight: 600;
}
.paginationber .colber:nth-child(1) {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.paginationber .colber:nth-child(2) {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  text-align: end;
}
.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;
}
.paginationber img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.sholat-time-card {
  flex: 1;
  text-align: center;
  padding: 10px 0;
  border-left: 1px solid #eee;
}

.sholat-time-card:first-child {
  border-left: none;
}

.sholat-time-card i {
  color: var(--color-primary);
  font-size: 1.5em;
  display: block;
  margin-bottom: 5px;
}

.sholat-time-card span {
  font-size: 1em;
  font-weight: bold;
  color: #666;
  display: block;
}

.sholat-time-card p {
  font-size: 1.8em;
  font-weight: 900;
  color: var(--color-dark);
  margin: 5px 0 0 0;
  line-height: 1;
}

/* --- 7. APARATUR DESA SECTION --- */
.aparatur-section {
  padding: 0 0 20px 0;
}

.section-title {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--color-dark);
  margin-bottom: 20px;
  padding-left: 20px;
  border-bottom: 3px solid var(--color-mix); /* Garis oranye */
  width: fit-content;
  line-height: 1.5;
}
.struktur-section {
  margin-top: 20px;
}
.struktur-section .section-title {
  color: var(--color-light);
}

.aparatur-card {
  background-color: var(--color-light);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
  display: flex;
  overflow: hidden;
  padding: 30px;
  gap: 30px;
}

.aparatur-image-container {
  flex: 1;
  min-width: 300px; /* Lebar gambar */
  max-width: 350px;
  border-radius: 8px;
  overflow: hidden;
  /* Ganti dengan gambar ilustrasi Kepala Desa Anda */
  background: url("images.jpeg") no-repeat center center/cover;
  height: 350px; /* Tinggi disesuaikan dengan teks di samping */
  position: relative;
}

/* Teks kecil di atas gambar */
.image-text-overlay {
  margin: auto;
  width: 100%;
  max-width: 300px;
  height: 100%;
  max-width: 300px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.image-text-overlay img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Konten Sambutan */
.sambutan-content {
  flex: 2;
  padding-top: 10px;
  max-height: 380px;
  overflow: auto;
}

.sambutan-content .sambutan-label {
  font-size: 0.9em;
  color: var(--color-mix); /* Oranye */
  font-weight: 600;
  margin-bottom: 5px;
}

.sambutan-content h3 {
  font-size: 1.5em;
  font-weight: bold;
  color: var(--color-primary); /* Hijau */
  margin: 0 0 20px 0;
}

.sambutan-content p {
  font-size: 1em;
  line-height: 1.8;
  color: #555;
  text-align: justify;
  margin-bottom: 25px;
  /* Batasi tinggi teks agar terlihat rapi */
  max-height: 250px;
  overflow: hidden;
}

.tanda-tangan img {
  height: 50px; /* Ukuran tanda tangan */
  display: block;
}

/* --- 8. STRUKTUR ORGANISASI SECTION (BARU) --- */
.struktur-section {
  padding: 30px 20px;
  background: var(--gradient); /* Background gradient*/
}

.struktur-carousel-wrapper {
  position: relative;
  padding: 0 60px; /* Ruang untuk tombol panah */
}

.struktur-carousel {
  display: flex;
  gap: 20px;
  padding: 20px 0;
  overflow-x: auto; /* Memungkinkan scrolling horizontal */
  scroll-behavior: smooth;
  /* Menyembunyikan scrollbar bawaan */
  scrollbar-width: none; /* Firefox */
  -ms-overflow-style: none; /* IE and Edge */
}

.struktur-carousel::-webkit-scrollbar {
  display: none; /* Chrome, Safari, Opera */
}

.aparatur-card-small {
  flex: 0 0 auto; /* Mencegah kartu mengecil/memanjang */
  min-height: 380px !important;
  background-color: var(--color-light);
  border-radius: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  text-align: center;
  overflow: hidden;
  transition: transform 0.3s;
}

.aparatur-card-small:hover {
  box-shadow: 0 8px 15px rgba(0, 0, 0, 0.15);
}

.aparatur-photo {
  width: 100%;
  min-height: 300px;
  max-height: 300px;
  overflow: hidden;
  position: relative;
}
.aparatur-photo .absen-overlay {
  position: absolute;
  border-top-right-radius: 10px;
  bottom: 0;
  background-color: var(--color-mix);
  border-top: 3px solid var(--color-primary);
  border-right: 3px solid var(--color-primary);
  font-size: 0.8rem;
  padding: 0.6em;
  font-weight: 600;
  color: white;
}
.aparatur-photo img {
  width: 100%;
  height: 100%; /* Tinggi foto */
  object-fit: cover;
}

/* Mengatur ulang posisi background foto */
.aparatur-details {
  padding: 15px 10px;
}

.aparatur-details h4 {
  font-size: 1em;
  font-weight: 700;
  margin: 0 0 5px 0;
  color: var(--color-dark);
}

.aparatur-details p {
  font-size: 0.9em;
  color: #666;
  margin: 0;
}

/* Tombol Navigasi Carousel */
.carousel-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.8);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  font-size: 1.2em;
  cursor: pointer;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.2);
  z-index: 10;
}

.carousel-nav-btn.left {
  left: 0;
}

.carousel-nav-btn.right {
  right: 0;
}

/* Gaya Umum */
.news-container {
  margin-top: 3rem;
}

/* Header */
.news-header {
  border-bottom: 3px solid #f99d50; /* Garis Oranye */
  padding-bottom: 5px;
  margin-bottom: 20px;
  display: inline-block; /* Agar garis hanya selebar teks */
}

.news-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
}

/* Wrapper Konten Utama */
.news-content-wrapper {
  display: flex;
  gap: 20px; /* Jarak antara card utama dan card samping */
}

/* Card Berita Utama (Kiri) */
.news-card {
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  display: flex; /* Untuk memisahkan gambar dan body (di card utama) */
  flex-direction: column;
}

.main-card {
  flex: 2; /* Mengambil proporsi lebih besar */
  min-width: 500px;
}

.card-image-wrapper {
  position: relative;
  overflow: hidden;
}

.card-image {
  width: 100%;
  height: 300px; /* Tinggi gambar di card utama */
  object-fit: cover;
  display: block;
}

.new-tag {
  background-color: var(--color-mix);
  transition: 0.4s ease-in-out;
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
}
.new-tag.tag-absolute {
  position: absolute;
  top: 10px;
  left: 10px;
}

.card-body {
  padding: 15px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.2em;
  font-weight: bold;
  color: #333;
  margin-top: 0;
  margin-bottom: 5px;
}

.card-excerpt {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 15px;
  flex-grow: 1; /* Agar mendorong footer ke bawah */
}

.card-meta {
  font-size: 0.8em;
  color: #999;
  margin-bottom: 10px;
}
.meta-admin:hover,
.meta-date:hover {
  text-decoration: underline;
}
.card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.views {
  display: flex;
  align-items: center;
  font-size: 0.9em;
  color: #999;
}

.views-icon {
  margin-right: 5px;
}

.read-button {
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 6px;
  font-weight: bold;
  text-align: center;
  transition: background-color 0.3s;
}

.main-button {
  background-color: var(--color-primary); /* Warna Oranye */
  color: white;
}

.main-button:hover {
  background-color: var(--color-mix);
}

/* Card Berita Samping (Kanan) */
.side-news-wrapper {
  flex: 1;
  display: grid;
  gap: 10px;
}
.side-news-wrapper .side-news-list {
  box-shadow: 0px 3px 5px rgba(0, 0, 0, 0.275);
  height: 100px;
  border-radius: 10px;
  background-color: var(--color-light);
  padding: 9px;
  transition: 0.5s ease-in-out;
  display: flex;
}
.side-news-wrapper .side-news-list:hover {
  box-shadow: 0px 5px 7px rgba(0, 0, 0, 0.175);
  transform: translateX(20px);
}
.side-news-wrapper .side-news-list .box-img {
  border-radius: 10px;
  width: 150px;
  height: 100px;
  overflow: hidden;
}
.side-news-wrapper .side-news-list .box-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}
.side-news-wrapper .side-news-list .side-desc-berita {
  width: 100%;
  margin-left: 10px;
  display: flex;
  justify-content: space-between;
  padding-bottom: 10px;
  flex-direction: column;
}
.side-news-wrapper .side-news-list .side-desc-berita .title-berita-side {
  margin: 0 !important;
  font-size: 1.1rem;
}
.side-news-wrapper .side-news-list .side-desc-berita .meta-date {
  font-size: 0.8rem;
  margin-left: 0.5rem;
}
.side-card {
  width: 50%; /* Dua card per baris di wrapper */
  flex-shrink: 0; /* Penting agar tidak mengecil */
  box-sizing: border-box;
}

.side-card .card-image {
  height: 180px; /* Tinggi gambar di card samping */
}

.side-card .card-body {
  padding: 10px;
}

.card-excerpt-short {
  font-size: 0.8em;
  color: #666;
  margin-bottom: 10px;
}

.card-footer-side {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-top: auto;
}

.side-views {
  align-self: flex-start; /* Taruh jumlah views di kiri bawah gambar */
  position: absolute;
  bottom: 55px; /* Sesuaikan jarak dari bawah */
  left: 10px;
  color: white;
  background-color: rgba(0, 0, 0, 0.5);
  padding: 2px 5px;
  border-radius: 4px;
}

.side-button {
  background-color: #f99d50;
  color: white;
  width: 100%; /* Lebar penuh */
  margin-top: 10px;
}

.side-button:hover {
  background-color: #e68a40;
}

/* Panah Navigasi */
.nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: white;
  border: none;
  font-size: 2em;
  color: #f99d50;
  cursor: pointer;
  z-index: 10;
  padding: 5px;
  opacity: 0.7;
  transition: opacity 0.3s;
}

.nav-arrow:hover {
  opacity: 1;
}

.left-arrow {
  left: 10px; /* Taruh di luar sedikit */
}

.right-arrow {
  right: 10px; /* Taruh di luar sedikit */
}

/* Gaya Umum */
.transparency-section {
  padding: 40px 20px;
  background-color: #f7f7f7;
  font-family: sans-serif;
  color: #333;
}

/* Judul Bagian Atas */
.gallery-placeholder {
  padding: 0 20px;
}

.gallery-title {
  font-size: 1.5em;
  font-weight: bold;
  color: #333;
  border-bottom: 3px solid #f99d50; /* Garis oranye */
  padding-bottom: 5px;
  display: inline-block;
}

/* Judul Utama */
.section-header {
  text-align: center;
  margin-top: 50px;
  margin-bottom: 40px;
}

.header-title {
  font-size: 1.8em;
  font-weight: bold;
  color: #333;
  border-bottom: 3px solid #f99d50;
  padding-bottom: 5px;
  display: inline-block;
}

/* Wrapper Card */
.card-wrapper {
  display: flex;
  justify-content: center;
  gap: 25px;
  flex-wrap: wrap;
}

/* Card Individu */
.budget-card {
  background-color: white;
  border-radius: 8px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
  padding: 20px;
  text-align: center;
  width: 300px;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.card-subtitle {
  font-size: 1.1em;
  font-weight: bold;
  color: #555;
  margin-top: 0;
  margin-bottom: 20px;
  padding-bottom: 10px;
  border-bottom: 2px solid var(--color-mix); /* Garis oranye */
  width: 80%;
  line-height: 1.5;
}

/* Ilustrasi (Placeholder) */
/* Gaya Bagian Footer */
.main-footer {
  background: linear-gradient(
    to right,
    var(--color-primary),
    var(--color-mix)
  ); /* Warna abu-abu gelap */
  color: white;
  padding: 40px 20px 40px 20px;
  font-family: sans-serif;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  gap: 30px;
  flex-wrap: wrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1); /* Garis tipis di tengah */
  padding-bottom: 20px;
}

.footer-col {
  padding: 0 10px;
}

/* Kolom 1: Brand Info */
.brand-info {
  flex-basis: 35%; /* Mengambil ruang lebih besar */
}

.footer-logo {
  font-size: 2em;
  font-weight: 800;
  color: white; /* Warna Oranye untuk logo */
  margin-bottom: 5px;
}

.logo-dot {
  color: white;
}

.brand-text {
  font-size: 0.9em;
  color: #fff;
  margin-bottom: 10px;
}

.playstore-badge {
  width: 150px;
  height: auto;
  display: block;
  margin-bottom: 20px;
}

.copyright-info {
  font-size: 0.7em;
  color: white;
  margin-top: 20px;
}

.geodesa-link {
  color: white;
  font-weight: bold;
}

/* Kolom 2 & 3: Menu & Kontak */
.menu-links,
.contact-info {
  flex-basis: 25%;
}

.footer-col h3 {
  font-size: 1.1em;
  font-weight: bold;
  color: white;
  margin-bottom: 15px;
  border-bottom: 3px solid white; /* Garis oranye di bawah judul kolom */
  padding-bottom: 5px;
  display: inline-block;
}

.menu-links ul {
  list-style: none;
  padding: 0 !important;
  margin: 0 !important;
}

.menu-links li {
  margin-bottom: 8px;
}

.menu-links a {
  display: inline-block;
  background-color: white;
  width: fit-content;
  padding: 0.3em;
  text-decoration: none;
  color: var(--color-primary);
  font-size: 0.9em;
  transition: 0.3s ease-in-out;
  font-weight: 600;
}

.menu-links a:hover {
  transform: translateX(8px);
  color: var(--color-primary);
}

.list-icon {
  margin-right: 8px;
}

/* Info Kontak */
.social-icons {
  display: flex;
  /* align-items: center !important; */
  gap: 5px;
  justify-content: center;
  flex-wrap: wrap;
}
.social-icons img {
  width: 22px;
  height: 22px;
}

.social-icon {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  width: 35px;
  height: 35px;
  background-color: #38c172; /* Warna hijau */
  color: white;
  border-radius: 4px;
  font-size: 1.1em;
  text-decoration: none;
}

.contact-detail {
  font-size: 0.9em;
  color: white;
  margin-bottom: 5px;
}

.detail-label {
  font-weight: bold;
  color: white !important;
  margin-right: 5px;
}

/* idm */
.idm-page {
  margin-top: 1rem;
}
.idm-page h2,
p {
  margin: 0px;
}
.idm-page .head-idm {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  width: 100%;
}
.chart-idm {
  height: 180px;
  max-height: 500px;
  padding: 0.9rem;
}
.info-desa {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  align-items: center;
  gap: 1rem;
}
.box-idm {
  height: 60px;
  background: linear-gradient(
    to left bottom,
    var(--color-primary),
    rgb(189, 188, 188) 100%
  );
  color: white;
  box-shadow: var(--shadow);
  padding: 0.8rem;
  display: flex;
  flex-direction: column;
  border-radius: 6px;
}
.box-idm p {
  font-weight: 600;
  font-size: clamp(1rem, 1vw, 1.2rem);
}
.box-idm h2 {
  align-self: end;
  font-size: clamp(1.6rem, 2vw, 1.5rem);
}
.body-idm {
  margin-top: 2rem;
}
.body-idm .body-top {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.9rem;
}
.body-idm .data-table {
  margin-top: 2em;
}

/* Grid System */
.sdgs-page {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
  padding: 2rem;
}

/* 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);
  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;
}
.sdg-card:first-child {
  grid-column: 1 / -1;
  padding: 30px;
  border-bottom: 4px solid var(--color-primary);
  text-align: center;
}
.sdg-card:first-child .sdg-value-group {
  text-align: center;
  font-size: 3rem;
  display: block;
}
.sdg-card:first-child .sdg-number {
  font-size: 3rem;
}

.sdg-card:first-child .sdg-number,
.sdg-label {
  width: 100px;
}

.sdg-card:first-child .sdg-name {
  font-size: 1rem;
}

/* bansos */
.section-title {
  text-align: center;
  font-size: 2.5em;
  margin-bottom: 40px;
  color: #000001;
  font-weight: 600;
}

/* Container Akordeon */

/* 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 {
  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: 0.6s ease-in-out;
}
.accordion-header:hover {
  background-color: var(--color-primary);
  color: white;
}
.accordion-header i {
  transition: 0.6s ease-in-out;
}
.jumlah-bansos {
  font-size: 1.2rem;
}
.accordion-header:hover i {
  transform: rotate(90deg);
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 2rem;
}
.gallery-item {
  height: 250px;
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  transition: transform 0.3s ease-in-out;
}
.gallery-item img,
.gallery-item iframe,
.gallery-item video {
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.4);
  width: 100%;
  height: 300px !important;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

/* Hover Effect */
.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-item:hover .gallery-overlay {
  transform: translateY(0);
}
.gallery-item[data-category="video"] .gallery-overlay {
  transform: translateY(0); /* Overlay video selalu terlihat */
}
.gallery-item .card-img {
  width: 100%;
  height: 100%;
  overflow: hidden;
}
.gallery-item .card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.gallery-overlay h4 {
  color: white;
  margin: 0;
  font-size: 1.1em;
}
.gallery-overlay p {
  color: white;
  font-size: 0.8em;
  margin: 5px 0 0;
}

/* Icon untuk Video */
.video-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 3rem;
  opacity: 0.8;
  pointer-events: none;
}

/* Responsiveness untuk keseluruhan layout */
@media (max-width: 992px) {
  .main-banner-content {
    flex-direction: column;
  }
  .section-page .section-container.dinamis {
    flex-direction: column;
  }
  .section-page .section-container.dinamis .section-utama {
    width: unset;
  }
  .section-page .section-container .berita-side {
    width: unset;
  }
  .dirgahayu-title {
    font-size: 3em;
  }
  .republik-title {
    font-size: 4em;
  }
  .indonesia-title {
    font-size: 6em;
  }
  .paginationber {
    flex-direction: column;
  }
  .news-content-wrapper {
    flex-direction: column;
  }
  .side-news-wrapper {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
  }

  .main-nav {
    flex-direction: column;
    height: 100%;
  }
  .menu-list-dekstop {
    margin-top: 20px;
    justify-content: center;
    padding-bottom: 10px;
  }

  .jadwal-sholat-container {
    flex-direction: column;
  }
  .sholat-header {
    min-width: unset;
    justify-content: center;
  }
  .sholat-times-wrapper {
    flex-wrap: wrap;
  }
  .sholat-time-card {
    flex-basis: 33%; /* 3 kolom */
    border-left: none;
    border-right: none;
    border-bottom: 1px solid #eee;
    padding: 15px 0;
  }

  /* Responsiveness untuk Aparatur Desa (Sambutan) */
  .aparatur-card {
    flex-direction: column;
    padding: 20px;
  }
  .aparatur-image-container {
    min-width: 100%;
    max-width: 100%;
  }
  .section-title {
    padding-left: 0;
  }

  /* Responsiveness untuk Struktur Organisasi */
  .struktur-carousel-wrapper {
    padding: 0;
  }
  .carousel-nav-btn {
    top: 30%; /* Pindahkan ke atas sedikit karena kartu lebih pendek */
  }
}

@media (max-width: 768px) {
  .sholat-time-card {
    flex-basis: 50%; /* 2 kolom pada layar sangat kecil */
  }

  .container {
    padding: 7px 10px !important;
  }
  .modules-section {
    flex-wrap: wrap;
    justify-content: center;
  }

  .module-card {
    width: calc(25% - 15px);
    margin-bottom: 10px;
  }

  .hero-content h1 {
    font-size: 1.8em;
  }

  .side-news-wrapper {
    display: grid;
    grid-template-columns: 1fr;
  }
  .share {
    padding-bottom: 1rem;
    border-top: 0;
    border-bottom: 2px solid grey;
  }

  .main-card {
    min-width: 100%;
  }

  .side-card {
    width: 100%;
  }

  .card-wrapper {
    flex-direction: column;
    align-items: center;
  }

  .budget-card {
    width: 100%;
    max-width: 400px;
  }

  .complaint-hero-section {
    flex-direction: column;
    padding: 20px;
  }

  .complaint-content {
    max-width: 100%;
    margin-bottom: 20px;
  }

  .footer-container {
    flex-direction: column;
  }

  .brand-info,
  .menu-links,
  .contact-info {
    flex-basis: 100%;
    margin-bottom: 20px;
  }
}
/* Mobile-specific styles to match the screenshot */
@media (max-width: 767px) {
  /* Top bar adjustments */
  .top-bar {
    padding: 8px 15px;
    font-size: 0.8em;
  }

  .top-bar-left span {
    margin-right: 10px;
  }
  .form-wrapper .row {
    grid-template-columns: 1fr;
    grid-gap: 0px;
  }

  /* Navigation adjustments */
  .main-nav {
    padding: 0 15px;
    height: auto;
    flex-direction: column;
  }

  .logo {
    margin-bottom: 10px;
    align-items: center;
  }

  .logo-main {
    font-size: 1.3em;
  }

  .logo-sub {
    font-size: 0.7em;
  }

  .menu-list-dekstop {
    display: none;
  }

  .menu-list-mobile {
    display: none;
  }

  .menu-list-mobile.active {
    display: flex;
  }

  .btn-pengaduan {
    margin-top: 10px;
    padding: 8px 20px;
    font-size: 0.9em;
  }

  .mobile-menu-toggle {
    display: block;
    position: absolute;
    right: 15px;
    top: 15px;
  }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  /* Hero section adjustments */
  .hero-section {
    height: 50vh;
  }

  .hero-content {
    padding: 0 15px;
  }

  .google-icon {
    font-size: 3em;
  }

  .hero-content h1 {
    font-size: 1.5em;
  }

  .hero-content p {
    font-size: 0.9em;
  }

  .search-box {
    width: 100%;
    padding: 4px 9px;
  }

  /* Modules section adjustments */
  .modules-container {
    transform: translateY(-30px);
  }

  .modules-section {
    padding: 15px;
    gap: 10px;
  }

  .module-card {
    width: calc(25% - 10px);
    padding: 5px 0;
  }

  .icon-wrapper {
    width: 45px;
    height: 45px;
    font-size: 1.8em;
    padding: 10px;
  }

  .module-card span {
    font-size: 0.75em;
  }

  /* Content adjustments */
  .content-wrapper {
    padding: 1rem;
  }

  .main-content-section {
    padding-top: 1rem;
  }

  /* Banner adjustments */
  .dirgahayu-container {
    padding: 0.5rem;
  }

  .dirgahayu-title {
    font-size: 2em;
  }

  .republik-title {
    font-size: 1.5em;
  }

  .small-text {
    font-size: 0.9em;
  }

  .announcement-box {
    padding: 0.8rem;
  }

  .announcement-title {
    font-size: 0.9em;
  }

  .announcement-excerpt {
    font-size: 0.75em;
  }

  /* Data penduduk adjustments */
  .data-penduduk {
    padding: 1rem;
  }

  .data-penduduk h4 {
    font-size: 1.1em;
  }

  .chart-area {
    height: 150px;
  }

  .pie-chart-placeholder {
    width: 120px;
    height: 120px;
  }

  /* Jadwal sholat adjustments */
  .jadwal-sholat-container {
    flex-direction: column;
  }

  .sholat-header {
    min-width: 100%;
    padding: 10px 15px;
    font-size: 1em;
  }

  .sholat-times-wrapper {
    flex-wrap: wrap;
    padding: 10px 5px;
  }

  .sholat-time-card {
    flex-basis: 33.33%;
    padding: 8px 0;
    border-left: none;
    border-bottom: 1px solid #eee;
  }

  .sholat-time-card i {
    font-size: 1.2em;
  }

  .sholat-time-card span {
    font-size: 0.8em;
  }

  .sholat-time-card p {
    font-size: 1.4em;
  }

  /* Aparatur section adjustments */
  .aparatur-section {
    padding: 15px 0;
  }

  .section-title {
    font-size: 1.5em;
    padding-left: 15px;
  }

  .aparatur-card {
    padding: 15px;
    gap: 15px;
  }

  .aparatur-image-container {
    min-width: 100%;
    max-width: 100%;
    height: 200px;
  }

  .sambutan-content h3 {
    font-size: 1.2em;
  }

  .sambutan-content p {
    font-size: 0.9em;
    max-height: 150px;
  }

  /* Struktur organisasi adjustments */
  .struktur-section {
    padding: 20px 15px;
  }

  .struktur-carousel-wrapper {
    padding: 0 40px;
  }

  .aparatur-photo {
    height: 180px;
  }

  .aparatur-details h4 {
    font-size: 0.9em;
  }

  .aparatur-details p {
    font-size: 0.8em;
  }

  /* News section adjustments */
  .news-container {
    padding: 0 10px;
  }

  .news-title {
    font-size: 1.3em;
  }

  .news-content-wrapper {
    flex-direction: column;
    gap: 15px;
  }

  .main-card {
    min-width: 100%;
  }

  .card-image {
    height: 200px;
  }

  .card-title {
    font-size: 1em;
  }

  .card-excerpt {
    font-size: 0.8em;
  }

  .side-card {
    width: calc(50% - 5px);
  }

  .side-card .card-image {
    height: 120px;
  }

  /* Transparency section adjustments */
  .transparency-section {
    padding: 20px 10px;
  }

  .header-title {
    font-size: 1.5em;
  }

  .budget-card {
    width: 100%;
    margin-bottom: 15px;
  }

  .card-subtitle {
    font-size: 1em;
  }

  .progress-ring-container {
    width: 140px;
    height: 140px;
  }

  /* Synergy section adjustments */
  .synergy-section {
    padding: 30px 10px;
    margin-bottom: 20px;
  }

  .header-title {
    font-size: 1.5em;
  }

  .slide-item img {
    max-width: 15%;
  }

  /* Complaint section adjustments */
  .complaint-hero-section {
    padding: 20px;
  }

  .complaint-subtitle {
    font-size: 1.2em;
  }

  .complaint-text {
    font-size: 0.9em;
  }

  .complaint-button {
    padding: 10px 20px;
  }

  /* Footer adjustments */
  .footer-container {
    flex-direction: column;
    gap: 20px;
  }

  .brand-info,
  .menu-links,
  .contact-info {
    flex-basis: 100%;
  }

  .footer-logo {
    font-size: 1.8em;
  }

  .brand-text {
    font-size: 0.85em;
  }

  .playstore-badge {
    width: 120px;
  }
}

@media (max-width: 480px) {
  .box-beritaall {
    grid-template-columns: repeat(1, 1fr);
  }
  .module-card {
    width: calc(50% - 10px);
  }

  .top-bar {
    flex-direction: column;
    align-items: center;
    padding: 10px;
  }

  .top-bar-left {
    margin-bottom: 10px;
  }

  .sholat-time-card {
    flex-basis: 50%; /* 2 kolom pada layar sangat kecil */
  }

  .gallery-grid {
    grid-template-columns: repeat(1, 1fr);
  }
}

/* ===================================================================
           E. PRODUCTS GRID
           =================================================================== */
.products-section {
  margin-bottom: 40px;
}

.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.section-title {
  font-size: 1.5em;
  font-weight: 600;
  color: #333;
}

.sort-dropdown {
  padding: 8px 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: white;
  cursor: pointer;
}

.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.product-card {
  background-color: white;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.08);
  transition: transform 0.3s, box-shadow 0.3s;
  cursor: pointer;
}

.product-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
}

.product-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.product-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background-color: var(--color-primary);
  color: white;
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8em;
  font-weight: 600;
}

.product-info {
  padding: 15px;
  height: 100%;
}

.product-category {
  font-size: 0.85em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 5px;
}

.product-name {
  font-size: 1.1em;
  font-weight: 600;
  color: #333;
  margin-bottom: 8px;
  line-height: 1.3;
}

.product-description {
  font-size: 0.9em;
  color: #666;
  margin-bottom: 12px;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.product-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 10px;
  border-top: 1px solid #f0f0f0;
}

.product-price {
  font-size: 1.2em;
  font-weight: 700;
  color: var(--color-secondary);
}

.product-rating {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.9em;
  color: #666;
}

.product-rating .stars {
  color: #ffc107;
}

.product-actions {
  display: flex;
  gap: 10px;
  margin-top: 15px;
}

.btn-detail {
  flex: 1;
  background-color: var(--color-primary);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-detail:hover {
  opacity: 0.8;
}

.btn-cart {
  background-color: var(--color-secondary);
  color: white;
  border: none;
  padding: 8px 15px;
  border-radius: 5px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.3s;
}

.btn-cart:hover {
  opacity: 0.8;
}

/* ===================================================================
           F. PRODUCT MODAL
           =================================================================== */
.product-modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.7);
  z-index: 999999;
  overflow-y: auto;
}

.modal-content {
  background-color: white;
  margin: 50px auto;
  padding: 0;
  border-radius: 10px;
  max-width: 800px;
  width: 90%;
  position: relative;
}

.modal-close {
  position: absolute;
  top: 15px;
  right: 15px;
  background: none;
  border: none;
  font-size: 1.5em;
  cursor: pointer;
  color: #666;
  z-index: 1001;
}

.modal-close:hover {
  color: #333;
}

.modal-image {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 10px 10px 0 0;
}

.modal-body {
  padding: 0px 15px;
  padding-bottom: 10px;
}

.modal-title {
  font-size: 1.5em;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
}

.modal-category {
  font-size: 0.9em;
  color: var(--color-primary);
  font-weight: 600;
  margin-bottom: 15px;
}

.modal-price {
  font-size: 1.8em;
  font-weight: 700;
  color: var(--color-secondary);
  margin-bottom: 15px;
}

.modal-description {
  font-size: 1em;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

.modal-details {
  border: 2px solid black;
  padding: 15px;
  border-radius: 8px;
  margin-bottom: 20px;
}

.modal-details h4 {
  font-size: 1.1em;
  color: #333;
  margin: 0;
  margin-bottom: 10px;
}

.detail-item {
  display: flex;
  margin-bottom: 8px;
}

.detail-label {
  font-weight: 600;
  width: 120px;
  color: #333;
}

.detail-value {
  color: #666;
}

.modal-actions {
  display: flex;
  gap: 15px;
}

.modal-actions .btn-detail,
.modal-actions .btn-cart {
  flex: 1;
  padding: 12px;
  font-size: 1em;
}

@media (max-width: 768px) {
  /* Product grid adjustments */
  .products-grid {
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 20px;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 15px;
  }

  .sort-dropdown {
    width: 100%;
  }

  /* Modal adjustments */
  .modal-content {
    margin: 20px auto;
    width: 95%;
  }

  .modal-image {
    height: 200px;
  }

  .modal-actions {
    flex-direction: column;
  }
}

@media (max-width: 480px) {
  .products-grid {
    grid-template-columns: 1fr;
  }
  .section-title {
    font-size: 1.3em;
  }
}

/* Container Utama */
.pagination {
  display: flex;
  list-style: none;
  padding: 0;
  margin: 20px 0;
  gap: 5px; /* Jarak antar tombol */
  font-family: "Segoe UI", Tahoma, Geneva, Verdana, sans-serif;
}

/* Style Dasar untuk semua item <li> */
.pagination li {
  display: inline-block;
}

/* Style untuk link (anchor) dan span (current) */
.pagination li a,
.pagination li span {
  display: block;
  padding: 8px 16px;
  text-decoration: none;
  color: #333;
  background-color: #fff;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: all 0.3s ease;
  cursor: pointer;
  font-size: 14px;
}

/* Efek Hover untuk tombol yang bisa diklik */
.pagination li a:hover {
  background-color: #f0f0f0;
  border-color: #bbb;
  color: var(--color-primary);
}

/* Style khusus untuk halaman Aktif (cur_tag) */
.pagination li.active span {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #fff;
  font-weight: bold;
  cursor: default;
}

/* Style untuk First & Last Tag agar lebih mencolok */
.pagination li.first-tag a,
.pagination li.last-tag a {
  background-color: #f8f9fa;
  font-weight: 600;
}

/* Responsif: Menyembunyikan beberapa elemen di layar kecil jika perlu */
@media (max-width: 480px) {
  .pagination li a,
  .pagination li span {
    padding: 6px 10px;
    font-size: 12px;
  }
}

/* berita */
/* Container Utama */
.berita-secgrid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 20px;
  padding: 15px;
}

/* Card Berita */
.box-beritasec {
  min-height: 300px;
  max-height: 500px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
  display: flex;
  flex-direction: column;
}

.box-beritasec:hover {
  transform: translateY(-5px);
}

/* Thumbnail */
.box-thumb {
  width: 100%;
  height: 200px;
}

.box-thumb img {
  height: 100%;
  width: 100%;
  object-fit: cover;
}

/* Konten Deskripsi */
.desc-bertasec {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Meta: Kategori & Tanggal */
.meta-berita {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
  font-size: 0.85rem;
}

.kategori {
  background: #e3f2fd;
  color: var(--color-primary);
  padding: 4px 10px;
  border-radius: 20px;
  font-weight: bold;
  text-transform: uppercase;
}

.tanggal {
  color: #757575;
}

/* Judul & Deskripsi */
.judul-berita {
  font-size: 1.25rem;
  margin: 10px 0;
  color: #333;
  line-height: 1.4;
}

.short-desc {
  font-size: 0.95rem;
  color: #666;
  line-height: 1.6;
  margin-bottom: 20px;
}

/* Tombol */
.btn-selengkapnya {
  width: 100px;
  max-width: 100%;
  margin-top: auto;
  text-align: center;
  background: var(--color-primary);
  color: white;
  text-decoration: none;
  padding: 5px;
  border-radius: 6px;
  margin-top: 1em;
  font-weight: 500;
  transition: background 0.2s;
}

.btn-selengkapnya:hover {
  background: var(--color-mix);
}
.box-searchber {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #ffffff;
  padding: 20px 25px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  gap: 20px; /* Jaga jarak saat di layar kecil */
}

/* Bagian Judul Kategori */
.judul-kategori h2 {
  margin: 0;
  font-size: 1.5rem;
  color: #333;
  font-weight: 700;
}

.judul-kategori h2 span {
  color: var(--color-primary); /* Warna highlight untuk kategori */
}

/* Wrapper Search */
.search-form {
  display: flex;
  align-items: center;
  background: #f4f7f6;
  border: 1px solid #ddd;
  border-radius: 30px; /* Membuat lonjong (pill style) */
  padding: 5px 5px 5px 15px;
  transition: all 0.3s ease;
}

.search-form:focus-within {
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(0, 123, 255, 0.1);
  background: #fff;
}

/* Input Text */
.input-search {
  border: none;
  background: transparent;
  outline: none;
  padding: 8px 10px;
  width: 250px;
  font-size: 0.95rem;
}

/* Tombol Cari */
.btn-search {
  background: var(--color-primary);
  color: white;
  border: none;
  padding: 10px 20px;
  border-radius: 25px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

.btn-search:hover {
  background: var(--color-mix);
}

/* Responsive: Untuk HP agar tumpuk atas bawah */
@media (max-width: 600px) {
  .box-searchber {
    flex-direction: column;
    align-items: flex-start;
  }

  .search-form {
    width: 100%;
  }

  .input-search {
    width: 100%;
  }
}

/* CCTV */
.cctv-page {
  background: var(--gradient);
}
.main-title {
  text-align: center;
  color: white;
  font-size: 2rem;
  margin-bottom: 30px;
  text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

/* GRID SYSTEM */
.cctv-grid {
  display: grid;
  gap: 20px;
  /* Default: 4 kolom */
  grid-template-columns: repeat(4, 1fr);
  max-width: 1200px;
  margin: 0 auto;
}

/* CARD STYLE */
.cctv-card {
  background: rgba(225, 225, 225, 0.7);
  backdrop-filter: blur(5px);
  border-radius: 15px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s ease;
}

.cctv-card:hover {
  transform: scale(1.03);
}

/* VIDEO THUMBNAIL AREA */
.video-wrapper {
  position: relative;
  height: 180px;
  background: #000;
}

.video-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.8;
}

/* BADGE ONLINE */
.status-badge {
  position: absolute;
  top: 10px;
  right: 10px;
  background: var(--color-mix);
  color: white;
  padding: 3px 10px;
  border-radius: 20px;
  font-size: 0.7rem;
  font-weight: bold;
}

/* PLAY BUTTON OVERLAY */
.play-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 50px;
  height: 50px;
  background: white;
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  color: var(--primary-green);
  font-size: 1.2rem;
  cursor: pointer;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.2);
}

/* FOOTER CARD */
.cctv-footer {
  padding: 15px;
  text-align: center;
  font-weight: 600;
  color: var(--color-primary);
  border-top: 1px solid #eee;
}

/* --- MEDIA QUERIES (RESPONSIF) --- */

/* Tablet: 2 Kolom */
@media (max-width: 992px) {
  .cctv-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* HP: 1 Kolom */
@media (max-width: 576px) {
  .cctv-grid {
    grid-template-columns: 1fr;
  }
  .main-title {
    font-size: 1.5rem;
  }
}

/* Container Utama Overlay */
.cctv-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.85); /* Gelap transparan */
  display: none; /* Sembunyikan default */
  justify-content: center;
  align-items: center;
  z-index: 9999;
  padding: 20px;
}

/* Kotak Modal */
.modal-content-cctv {
  width: 100%;
  max-width: 800px;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}

/* Header Hijau */
.modal-header {
  background: var(--color-primary);
  padding: 10px 15px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: white;
  font-size: 0.9rem;
}

.checkbox-area {
  display: flex;
  align-items: center;
  gap: 8px;
}

.close-btn {
  background: rgba(255, 255, 255, 0.2);
  border: none;
  color: white;
  font-size: 20px;
  cursor: pointer;
  border-radius: 50%;
  width: 30px;
  height: 30px;
  line-height: 1;
}

/* Video Area */
.modal-body img {
  width: 100%;
  display: block;
}

.video-container {
  position: relative;
}

.video-timestamp {
  position: absolute;
  top: 10px;
  right: 15px;
  color: white;
  font-family: monospace;
  background: rgba(0, 0, 0, 0.4);
  padding: 2px 5px;
}

/* Fake Controls Bar */
.video-controls {
  background: #1a1a1a;
  padding: 10px 15px;
  display: flex;
  align-items: center;
  gap: 15px;
  color: white;
}

.progress-bar {
  flex-grow: 1;
  height: 4px;
  background: #555;
  position: relative;
}

.progress-current {
  width: 30%; /* Contoh progres */
  height: 100%;
  background: var(--color-primary);
}

/* Container Grid */
.apbdes-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 768px) {
  .apbdes-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Card Style */
.apbdes-card {
  background-color: #ffffff;
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  border: 1px solid #e5e7eb;
}

.apbdes-card-header {
  padding: 0.75rem 1rem;
  color: #ffffff;
  font-weight: 700;
}

.apbdes-card-body {
  padding: 1rem;
}

/* Spacing antar item */
.item-gap {
  margin-bottom: 1rem;
}
.item-gap:last-child {
  margin-bottom: 0;
}

/* Typography */
.label-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: #374151;
  display: block;
  margin-bottom: 0.25rem;
}

.amount-info {
  font-size: 11px;
  display: flex;
  justify-content: space-between;
  color: #6b7280;
  font-style: italic;
  margin-bottom: 0.25rem;
}

/* Progress Bar */
.progress-container {
  width: 100%;
  background-color: #e5e7eb;
  border-radius: 9999px;
  height: 1rem;
  overflow: hidden;
  box-shadow: inset 0 2px 4px 0 rgba(0, 0, 0, 0.06);
}

.progress-bar-fill {
  height: 100%;
  font-size: 10px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  transition: width 0.5s ease;
}

/* Scrollable area untuk detail */
.scroll-area {
  max-height: 500px;
  overflow-y: auto;
}

.border-bottom-sep {
  border-bottom: 1px solid #f3f4f6;
  padding-bottom: 0.5rem;
  margin-bottom: 0.5rem;
}

/* rekap layanan */
.rekap_layanan {
  margin: 20px 0px 30px 0px;
}
.rekap_layanan_container {
  display: flex;
  width: 100%;
  gap: 20px;
}
.rekap_layanan_container .box_platform {
  width: 40%;
  background-color: #ebedf2;
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.rekap_layanan_container .box_platform {
  width: 40%;
  background-color: #ebedf2;
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.rekap_layanan_container .box-perbulan {
  width: 60%;
  background-color: #ebedf2;
  padding: 1rem;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
}
.rekap_layanan_container .box_platform .jumlah_platform {
  margin-top: 10px;
  display: flex;
  justify-content: space-around;
}
.rekap_layanan_container .box_platform .jumlah_platform .offline {
  border-left: 3px solid #5867dd;
}
.rekap_layanan_container .box_platform .jumlah_platform .online {
  border-left: 3px solid #34bfa3;
}
.rekap_layanan_container .box_platform .jumlah_platform div {
  display: flex;
  flex-direction: column;
  padding: 1rem;
}
.box_platform,
.box-perbulan {
  max-height: 550px;
  height: 350px;
}
.chart-home {
  width: 100% !important ;
  position: relative;
  height: 500px;
}
.selengkap-layanan {
  display: flex;
  justify-content: end;
  font-weight: 600;
  margin-top: 10px;
  color: var(--color-primary);
}

@media (max-width: 768px) {
  .rekap_layanan_container {
    flex-direction: column;
    width: 90%;
    justify-content: center;
  }
  .rekap_layanan_container .box_platform {
    width: 100%;
  }
  .rekap_layanan_container .box-perbulan {
    width: 100%;
  }
}

.container-aspirasi {
  padding: 60px 20px;
  min-height: 100vh;
  background: radial-gradient(
    circle farthest-corner,
    var(--color-secondary) 10%,
    var(--color-primary) 100%
  );
}

.row-aspirasi {
  display: flex;
  gap: 30px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap; /* Biar bisa turun ke bawah saat mobile */
}

.card {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 24px;
  padding: 35px;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Kolom Kiri: Form */
.card-form {
  flex: 1.5;
}

.card-form h2 {
  margin-bottom: 30px;
  font-size: 2rem;
  color: #333;
  /* color: white; */
  text-align: center;
  font-weight: 800;
}

.form-row {
  display: flex;
  gap: 20px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.form-group {
  flex: 1;
  min-width: 200px;
  margin-bottom: 20px;
}

.form-group label {
  display: block;
  margin-bottom: 10px;
  font-weight: 600;
  color: #333;
  font-size: 14px;
}

.form-group input,
.form-group select,
.form-group textarea {
  padding: 14px 18px;
  border: 2px solid #f0f0f0;
  border-radius: 12px;
  background-color: #fcfcfc;
  font-size: 15px;
  transition: all 0.3s ease;
  outline: none;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-mix);
  background-color: #fff;
  box-shadow: 0 0 0 4px rgba(0, 0, 0, 0.05);
}

.form-group textarea {
  height: 160px;
  resize: vertical;
}

.form-footer {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 25px;
  flex-wrap: wrap;
}

.btn-kirim {
  background: linear-gradient(135deg, var(--color-primary), var(--color-mix));
  color: white;
  padding: 14px 35px;
  border: none;
  border-radius: 12px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.2s, box-shadow 0.2s;
  display: flex;
  align-items: center;
  gap: 10px;
}

.btn-kirim:hover {
  transform: translateY(-2px);
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.15);
}

.note {
  font-style: italic;
  font-size: 13px;
  color: var(--text-muted);
  flex: 1;
}

/* Kolom Kanan */
.column-right {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 25px;
  min-width: 300px;
}

.card-info {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(5px);
}

.card-info h3 {
  color: #333;
  margin-bottom: 25px;
  font-size: 20px;
}

.info-item {
  display: flex;
  gap: 18px;
  margin-bottom: 22px;
}

.info-icon {
  width: 45px;
  height: 45px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
}

.icon-grey {
  background: #f0f0f0;
  color: #666;
}

.info-text strong {
  display: block;
  font-size: 16px;
  margin-bottom: 5px;
  color: #333;
}

.info-text p {
  font-size: 14px;
  color: #333;
  line-height: 1.5;
  margin: 0;
}

/* Statistik */
.card-stats {
  background: linear-gradient(
    135deg,
    var(--color-primary),
    var(--color-secondary)
  );
  color: white;
  border: none;
}

.card-stats h3 {
  font-size: 20px;
  margin-bottom: 10px;
}

.stats-grid {
  display: flex;
  gap: 15px;
  margin-top: 25px;
}

.stat-box {
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(5px);
  padding: 20px 10px;
  border-radius: 18px;
  flex: 1;
  text-align: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-number {
  display: block;
  font-size: 32px;
  font-weight: 800;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-weight: 600;
  opacity: 0.9;
}
.card-tipe-wrapper {
  background: rgba(255, 255, 255, .7);
  backdrop-filter: blur(10px);
  border-radius: 15px;
  padding: 0 !important;
  color: #333;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.tipe-container {
  display: flex;
  justify-content: space-around;
  /* align-items: center; */
  gap: 5px;
  cursor: pointer;
}
.tipe-item{
  border-radius: 15px;
  padding: 18px !important;
  width: 100%;
  text-align: center;
}

.tipe-item.active{
  background: var(--color-primary);
  color: white;
  transition: all .3s ease-in-out;
}

/* RESPONSIVE BREAKPOINTS */
@media (max-width: 992px) {
  .card-form {
    width: 100%;
  }
  .column-right {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .container-aspirasi {
    padding: 20px 15px;
  }
  .card {
    padding: 20px;
  }
  .form-row {
    flex-direction: column;
    gap: 0;
  }
  .btn-kirim {
    width: 100%;
    justify-content: center;
  }
  .form-footer {
    flex-direction: column;
    text-align: center;
  }
}
