/* =============================================
   DESA HUTARUHOM — Components
   ============================================= */

/* ---- Layanan Cepat Grid ---- */
.layanan-section {
  padding: var(--space-lg) 0 0;
}

.layanan-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}

.layanan-card {
  background: var(--putih);
  border-radius: var(--radius-md);
  padding: 20px 10px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border-top: 4px solid var(--hijau);
  transition: all 0.25s;
  cursor: pointer;
}

.layanan-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-top-color: var(--emas);
}

.layanan-icon { font-size: 2.2rem; margin-bottom: 9px; }

.layanan-card span {
  display: block;
  font-size: 12px;
  font-weight: 700;
  color: var(--hijau-tua);
  line-height: 1.35;
}

/* ---- Main content + Sidebar layout ---- */
.content-sidebar {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 28px;
  padding: var(--space-lg) 0;
}

/* ---- Berita Card ---- */
.berita-list { display: flex; flex-direction: column; gap: 18px; }

.berita-card {
  background: var(--putih);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  display: flex;
  border-left: 4px solid var(--hijau);
  transition: all 0.25s;
}

.berita-card:hover {
  box-shadow: var(--shadow-lg);
  transform: translateX(5px);
  border-left-color: var(--emas);
}

.berita-thumb {
  width: 120px;
  min-height: 110px;
  background: linear-gradient(135deg, var(--hijau), var(--hijau-muda));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.6rem;
  flex-shrink: 0;
}

.berita-body {
  padding: 14px 16px;
  flex: 1;
}

.berita-body h3 {
  font-size: 15px;
  font-weight: 700;
  color: var(--hijau-tua);
  margin: 6px 0 6px;
  line-height: 1.4;
}

.berita-body p {
  font-size: 13px;
  color: var(--teks-abu);
  line-height: 1.55;
}

.berita-meta {
  font-size: 11.5px;
  color: var(--teks-terang);
  margin-top: 9px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

/* ---- Sidebar Cards ---- */
.sidebar { display: flex; flex-direction: column; gap: 22px; }

.sidebar-card {
  background: var(--putih);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}

.sidebar-head {
  background: var(--hijau);
  color: #fff;
  padding: 12px 18px;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.sidebar-body { padding: 16px 18px; }

/* Profil list */
.profil-map-placeholder {
  width: 100%;
  height: 130px;
  background: linear-gradient(135deg, var(--hijau), var(--hijau-muda));
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
}

.profil-list li {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 8px 0;
  border-bottom: 1px solid var(--abu);
  font-size: 13px;
}

.profil-list li:last-child { border-bottom: none; }
.profil-list .lbl { color: var(--teks-abu); }
.profil-list .val { font-weight: 700; color: var(--hijau-tua); text-align: right; max-width: 55%; }

/* Pengumuman list */
.pengumuman-list li {
  padding: 10px 0;
  border-bottom: 1px dashed var(--abu-gelap);
  font-size: 13.5px;
  display: flex;
  gap: 8px;
  align-items: flex-start;
  line-height: 1.45;
}

.pengumuman-list li:last-child { border-bottom: none; }
.pengumuman-list li::before { content: '📌'; font-size: 12px; margin-top: 2px; flex-shrink: 0; }

/* Agenda */
.agenda-item { margin-bottom: 13px; }

.agenda-date {
  display: inline-block;
  background: var(--emas);
  color: var(--hijau-tua);
  font-weight: 700;
  font-size: 11px;
  padding: 2px 9px;
  border-radius: var(--radius-sm);
  margin-bottom: 4px;
}

.agenda-item p { font-size: 13px; color: var(--teks-abu); line-height: 1.45; }

/* Mini galeri */
.galeri-mini {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
}

.galeri-thumb {
  aspect-ratio: 1;
  background: linear-gradient(135deg, var(--hijau), var(--hijau-muda));
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.2s;
}

.galeri-thumb:hover { opacity: 0.8; transform: scale(0.96); }

/* Maps placeholder */
.maps-placeholder {
  width: 100%;
  height: 160px;
  background: var(--hijau-terang);
  border: 2px dashed var(--hijau-muda);
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--hijau);
  font-size: 13px;
}

.maps-placeholder .map-icon { font-size: 2.2rem; }

/* ---- Program Cards ---- */
.program-section {
  background: linear-gradient(135deg, var(--hijau-tua), var(--hijau));
  padding: var(--space-xl) 0;
}

.program-section .section-title { color: var(--emas-muda); border-bottom-color: var(--emas); }
.program-section .section-title::before { background: var(--emas-muda); }

.program-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.program-card {
  background: rgba(255,255,255,0.09);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: var(--radius-md);
  padding: 24px 16px;
  text-align: center;
  color: #fff;
  transition: all 0.25s;
}

.program-card:hover {
  background: rgba(255,255,255,0.16);
  transform: translateY(-5px);
}

.program-card .p-icon { font-size: 2.6rem; margin-bottom: 10px; }
.program-card h4 { font-size: 14.5px; font-weight: 700; color: var(--emas-muda); margin-bottom: 7px; }
.program-card p  { font-size: 12.5px; color: #b2dfdb; line-height: 1.55; }

/* ---- Pelayanan Publik Cards ---- */
.pelayanan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.pelayanan-card {
  background: var(--putih);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: var(--shadow-sm);
  display: flex;
  gap: 14px;
  align-items: flex-start;
  transition: box-shadow 0.2s;
}

.pelayanan-card:hover { box-shadow: var(--shadow-lg); }

.pelayanan-icon {
  width: 52px; height: 52px;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--hijau), var(--hijau-muda));
  display: flex; align-items: center; justify-content: center;
  font-size: 1.7rem;
  flex-shrink: 0;
}

.pelayanan-card h4 { font-size: 14.5px; font-weight: 700; color: var(--hijau-tua); margin-bottom: 5px; }
.pelayanan-card p  { font-size: 12.5px; color: var(--teks-abu); line-height: 1.55; }

/* ---- Potensi Cards ---- */
.potensi-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.potensi-card {
  background: var(--putih);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

.potensi-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }

.potensi-img {
  height: 140px;
  background: linear-gradient(135deg, var(--hijau), var(--hijau-muda));
  display: flex; align-items: center; justify-content: center;
  font-size: 3.5rem;
}

.potensi-body { padding: 16px; }
.potensi-body h4 { font-size: 15px; font-weight: 700; color: var(--hijau-tua); margin-bottom: 6px; }
.potensi-body p  { font-size: 13px; color: var(--teks-abu); line-height: 1.55; }

/* ---- Transparansi Table ---- */
.transparansi-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--putih);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  font-size: 14px;
}

.transparansi-table thead th {
  background: var(--hijau);
  color: #fff;
  padding: 12px 16px;
  text-align: left;
  font-weight: 700;
  font-size: 13px;
}

.transparansi-table tbody tr { border-bottom: 1px solid var(--abu); }
.transparansi-table tbody tr:last-child { border-bottom: none; }
.transparansi-table tbody tr:hover { background: var(--hijau-terang); }
.transparansi-table td { padding: 11px 16px; color: var(--teks-gelap); }
.transparansi-table .amount { font-weight: 700; color: var(--hijau-tua); }

/* ---- Kontak Form ---- */
.kontak-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.form-group { margin-bottom: 18px; }

.form-group label {
  display: block;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--hijau-tua);
  margin-bottom: 6px;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: 10px 14px;
  border: 1.5px solid var(--abu-gelap);
  border-radius: var(--radius-sm);
  font-family: var(--font-body);
  font-size: 14px;
  color: var(--teks-gelap);
  background: #fff;
  transition: border-color 0.2s;
  outline: none;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  border-color: var(--hijau);
}

.form-group textarea { resize: vertical; min-height: 130px; }

.kontak-info-item {
  display: flex; gap: 14px; align-items: flex-start;
  margin-bottom: 18px;
}

.kontak-icon {
  width: 44px; height: 44px; border-radius: var(--radius-md);
  background: var(--hijau);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.kontak-info-item h4 { font-size: 13.5px; font-weight: 700; color: var(--hijau-tua); margin-bottom: 3px; }
.kontak-info-item p  { font-size: 13px; color: var(--teks-abu); line-height: 1.5; }

/* ---- Galeri Grid ---- */
.galeri-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}

.galeri-item {
  aspect-ratio: 1;
  border-radius: var(--radius-md);
  background: linear-gradient(135deg, var(--hijau), var(--hijau-muda));
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
  cursor: pointer;
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

.galeri-item:hover { transform: scale(1.03); box-shadow: var(--shadow-lg); }

/* ---- Profil Desa Besar ---- */
.profil-hero {
  background: var(--putih);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
  margin-bottom: var(--space-lg);
}

.profil-hero-img {
  height: 200px;
  background: linear-gradient(135deg, var(--hijau-tua), var(--hijau-muda));
  display: flex; align-items: center; justify-content: center;
  font-size: 5rem;
}

.profil-hero-body { padding: var(--space-lg); }

.profil-hero-body h2 {
  font-family: var(--font-display);
  font-size: 1.8rem;
  color: var(--hijau-tua);
  margin-bottom: 10px;
}

.profil-stats-row {
  display: flex; gap: 20px; flex-wrap: wrap;
  margin: var(--space-md) 0;
}

.profil-stat {
  background: var(--hijau-terang);
  border: 1px solid var(--hijau-muda);
  border-radius: var(--radius-md);
  padding: 14px 20px;
  text-align: center;
  min-width: 110px;
}

.profil-stat .n { font-size: 1.5rem; font-weight: 900; color: var(--hijau-tua); font-family: var(--font-display); }
.profil-stat .l { font-size: 11.5px; color: var(--teks-abu); font-weight: 600; margin-top: 2px; }

/* ---- Perangkat Desa Cards ---- */
.perangkat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}

.perangkat-card {
  background: var(--putih);
  border-radius: var(--radius-md);
  padding: 20px 14px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  transition: all 0.25s;
}

.perangkat-card:hover { box-shadow: var(--shadow-md); transform: translateY(-3px); }

.perangkat-avatar {
  width: 72px; height: 72px; border-radius: 50%;
  background: linear-gradient(135deg, var(--hijau), var(--hijau-muda));
  margin: 0 auto 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 2rem;
  border: 3px solid var(--emas);
}

.perangkat-card h4 { font-size: 14px; font-weight: 700; color: var(--hijau-tua); margin-bottom: 4px; }
.perangkat-card p  { font-size: 12px; color: var(--teks-abu); }

/* ---- Pembangunan Timeline ---- */
.timeline { position: relative; padding-left: 28px; }

.timeline::before {
  content: '';
  position: absolute;
  left: 10px; top: 0; bottom: 0;
  width: 2px;
  background: var(--hijau-muda);
}

.timeline-item {
  position: relative;
  margin-bottom: 28px;
  background: var(--putih);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  box-shadow: var(--shadow-sm);
}

.timeline-item::before {
  content: '';
  position: absolute;
  left: -24px; top: 22px;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--emas);
  border: 2px solid var(--hijau);
}

.timeline-item .tl-date {
  font-size: 11px;
  font-weight: 700;
  color: var(--hijau);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 5px;
}

.timeline-item h4 { font-size: 15px; font-weight: 700; color: var(--hijau-tua); margin-bottom: 6px; }
.timeline-item p  { font-size: 13px; color: var(--teks-abu); line-height: 1.55; }

.tl-progress {
  margin-top: 12px;
  background: var(--abu);
  border-radius: var(--radius-full);
  height: 8px;
  overflow: hidden;
}

.tl-bar {
  height: 100%;
  border-radius: var(--radius-full);
  background: linear-gradient(90deg, var(--hijau), var(--hijau-muda));
  transition: width 1s ease;
}

/* ---- Responsive ---- */
@media (max-width: 1024px) {
  .layanan-grid        { grid-template-columns: repeat(3, 1fr); }
  .program-grid        { grid-template-columns: repeat(2, 1fr); }
  .perangkat-grid      { grid-template-columns: repeat(2, 1fr); }
  .galeri-grid         { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 900px) {
  .content-sidebar     { grid-template-columns: 1fr; }
  .kontak-grid         { grid-template-columns: 1fr; }
  .pelayanan-grid      { grid-template-columns: 1fr; }
  .potensi-grid        { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
  .layanan-grid        { grid-template-columns: repeat(2, 1fr); }
  .program-grid        { grid-template-columns: 1fr; }
  .perangkat-grid      { grid-template-columns: repeat(2, 1fr); }
  .galeri-grid         { grid-template-columns: repeat(2, 1fr); }
  .potensi-grid        { grid-template-columns: 1fr; }
  .profil-stats-row    { gap: 10px; }
}
