/* ===============================
   STATISTIK DESA
================================ */

.statistik {
  background: linear-gradient(135deg, #ffffff, #ffffff);
  padding: 60px 20px;
}

.statistik-container {
  max-width: 1100px;
  margin: auto;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* CARD */
.stat-item {
  background: #ffffff;
  border-radius: 16px;
  padding: 28px 20px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  transition: 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.18);
}

/* ANGKA */
.stat-item h2 {
  font-size: 50px;
  font-weight: 800;
  color: #2e7d32;
  margin-bottom: 8px;
}

/* LABEL */
.stat-item p {
  font-size: 15px;
  font-weight: 600;
  color: #555;
  letter-spacing: 0.5px;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .statistik-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .statistik-container {
    grid-template-columns: 1fr;
  }
}

/* ===============================
   ADMINISTRASI PENDUDUK
================================ */

/* ===============================
   ADMINISTRASI PENDUDUK (FINAL)
================================ */

.admin-penduduk {
  background: #ffffff;
  padding: 90px 0;
}

.admin-container {
  max-width: 1400px; /* 🔥 BIKIN NGEISI LAYAR */
  margin: auto;
  padding: 0 32px;
}

/* GRID KIRI - KANAN */
.admin-layout {
  display: grid;
  grid-template-columns: 1.2fr 2.8fr;
  gap: 36px;
  align-items: flex-start;
}

/* KIRI */
.admin-text h2 {
  font-size: 42px;
  font-weight: 800;
  color: #2e7d32;
  line-height: 1.2;
  margin-bottom: 14px;
}

.admin-text p {
  font-size: 16px;
  line-height: 1.8;
  color: #444;
  max-width: 420px;
}

/* GRID BOX */
.admin-box-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr); /* 🔥 3 × 2 */
  gap: 22px;
}

/* BOX */
.admin-item {
  display: flex;
  align-items: center;
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.08);
}

/* ANGKA */
.admin-angka {
  background: linear-gradient(135deg, #2e7d32, #4caf50);
  color: #fff;
  font-size: 30px;
  font-weight: 800;
  padding: 24px;
  min-width: 120px;
  text-align: center;
}

/* LABEL */
.admin-label {
  padding: 0 18px;
  font-size: 16px;
  font-weight: 600;
  color: #333;
}

/* RESPONSIVE */
@media (max-width: 1100px) {
  .admin-layout {
    grid-template-columns: 1fr;
  }

  .admin-text {
    text-align: center;
  }

  .admin-text p {
    margin: auto;
  }

  .admin-box-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .admin-box-grid {
    grid-template-columns: 1fr;
  }
}

/* BERITA CARD */
/* ===============================
   BERITA INDEX (MODEL DESA)
================================ */

.berita-list.grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

/* CARD */
.berita-card-vertical {
  background: #fff;
  border-radius: 14px;
  overflow: hidden;
  text-decoration: none;
  color: #222;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
  transition: 0.25s ease;
}

.berita-card-vertical:hover {
  transform: translateY(-6px);
  box-shadow: 0 14px 36px rgba(0, 0, 0, 0.12);
}

/* IMAGE */
.berita-img {
  position: relative;
}

.berita-img img {
  width: 100%;
  height: 220px;
  object-fit: cover;
}

/* BADGE TANGGAL */
.badge-tanggal {
  position: absolute;
  right: 12px;
  bottom: 12px;
  background: linear-gradient(
    90deg,
    rgba(61, 140, 45, 1) 0%,
    rgba(0, 255, 115, 1) 100%,
    rgba(237, 221, 83, 1) 100%
  );
  color: #fff;
  border-radius: 10px;
  padding: 8px 10px;
  text-align: center;
  font-weight: 700;
}

.badge-tanggal .tgl {
  font-size: 20px;
}

.badge-tanggal .bln,
.badge-tanggal .thn {
  font-size: 12px;
}

/* CONTENT */
.berita-content {
  padding: 18px 18px 22px;
}

.berita-content h3 {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1.4;
}

.berita-content p {
  font-size: 14px;
  color: #555;
  line-height: 1.6;
}

.badge-tanggal {
  position: absolute;
  bottom: 14px;
  right: 14px;
  background: #198754;
  color: white;
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 30px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.25);
  letter-spacing: 0.5px;
}

.btn-lihat-semua {
  display: inline-block;
  padding: 12px 22px;
  background: linear-gradient(#0b865b);
  color: white;
  font-weight: 700;
  border-radius: 30px;
  text-decoration: none;
  transition: 0.25s ease;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.25);
}

.btn-lihat-semua:hover {
  transform: translateY(-3px);
  background: linear-gradient(135deg, #157347, #0b3d25);
  color: white;
}

.berita-tanggal {
  font-size: 13px;
  color: #666;
  margin: 6px 0 10px;
  font-weight: 500;
}

/* Meta line tanggal di card beranda */
.berita-meta-line {
  margin: 6px 0 10px;
  font-size: 14px;
  color: #6b7280;
}

/* Tombol lihat semua berita (lebih cakep) */
.btn-berita-all {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 18px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f7a4a, #0b5f3b);
  color: #fff;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 10px 18px rgba(0, 0, 0, 0.12);
  transition:
    transform 0.15s ease,
    box-shadow 0.15s ease,
    opacity 0.15s ease;
}

.btn-berita-all:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.16);
  opacity: 0.98;
}

.btn-berita-all .arrow {
  font-size: 18px;
  line-height: 1;
}

/* RESPONSIVE */
@media (max-width: 992px) {
  .berita-list.grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 576px) {
  .berita-list.grid {
    grid-template-columns: 1fr;
  }
}
