/* ===============================
   APBDES (STYLE DISAMAKAN DENGAN PAGE BERITA)
   File: assets/css/apbdes.css
================================ */

:root {
  --apb-green: #0b6b45;
  --apb-bg: #f4f6f8;
  --apb-card: #ffffff;
  --apb-text: #1f2937;
  --apb-muted: #6b7280;

  --apb-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  --apb-shadow-hover: 0 12px 28px rgba(0, 0, 0, 0.12);
  --apb-radius: 12px;
}

/* ===============================
   HERO MINI (ikut gaya APBDes kamu)
================================ */
.apb-hero {
  position: relative;
  height: 240px;
  background: url("../img/contoh1.png") center/cover no-repeat;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.apb-hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(11, 107, 69, 0.65);
}

.apb-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  color: #fff;
  padding: 0 18px;
}

.apb-hero-content h1 {
  margin: 0 0 10px;
  font-size: 44px;
  font-weight: 800;
}

.apb-hero-content p {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  opacity: 0.95;
}

/* responsive hero */
@media (max-width: 768px) {
  .apb-hero {
    height: 200px;
  }
  .apb-hero-content h1 {
    font-size: 28px;
  }
}

/* ===============================
   WRAP & CONTAINER (samain seperti berita)
================================ */
.apb-wrap {
  background: var(--apb-bg);
  padding: 50px 0; /* mirip berita.section padding override */
}

.apb-container {
  max-width: 1320px; /* sama kayak berita */
  margin: 0 auto;
  padding: 0 16px; /* rapet dikit */
}

/* GRID 2 KOLOM: kiri konten, kanan sidebar */
.apb-layout {
  display: grid;
  grid-template-columns: 1fr 360px; /* samakan seperti berita */
  gap: 32px; /* samakan seperti berita */
  align-items: start;
}

/* ===============================
   HEAD
================================ */
.apb-head {
  margin-bottom: 22px; /* mirip berita-header */
}

.apb-head h2 {
  margin: 0 0 6px;
  color: #0b6b3a;
  font-size: 28px;
  font-weight: 700;
}

.apb-head p {
  margin: 0;
  color: #666;
}

/* ===============================
   LIST & CARD (samain rasa card berita)
================================ */
.apb-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

.apb-card {
  display: grid;
  grid-template-columns: 300px 1fr; /* thumbnail agak lebar */
  gap: 18px;
  background: var(--apb-card);
  border-radius: var(--apb-radius);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: var(--apb-shadow);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.apb-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--apb-shadow-hover);
}

/* THUMB */
.apb-thumb img {
  width: 100%;
  height: 200px;
  object-fit: cover; /* ✅ biar terlihat penuh kayak berita */
  /* kalau kamu mau gambar utuh: ganti cover -> contain + aktifkan background */
  /* object-fit: contain; background: #fff; */
  display: block;
}

/* BODY */
.apb-body {
  padding: 16px 16px 16px 0;
}

.apb-body h3 {
  margin: 2px 0 10px;
  font-size: 22px;
  font-weight: 700;
  color: #0b3a2a;
}

.apb-body p {
  margin: 0 0 14px;
  font-size: 15px;
  color: #555;
  line-height: 1.75;
}

.apb-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #666;
}

.apb-year {
  font-weight: 600;
}

.apb-more {
  color: #0b6b3a;
  font-weight: 700;
}

/* EMPTY */
.apb-empty {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(11, 107, 69, 0.08);
  color: #0b6b45;
  font-weight: 700;
}

/* ===============================
   SIDEBAR (samain rasa berita)
================================ */
.apb-sidebar {
  position: sticky;
  top: 90px; /* mirip berita */
  display: grid;
  gap: 18px;
}

.side-box {
  background: #fff;
  border-radius: 12px;
  padding: 18px;
  box-shadow: var(--apb-shadow);
}

.side-box h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #222;
}

.side-input,
.side-select {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0 12px;
  outline: none;
  background: #fff;
}

/* ===============================
   RESPONSIVE
================================ */
@media (max-width: 980px) {
  .apb-layout {
    grid-template-columns: 1fr;
  }

  .apb-sidebar {
    position: static;
    top: auto;
  }

  .apb-card {
    grid-template-columns: 1fr;
  }

  .apb-body {
    padding: 16px;
  }

  .apb-thumb img {
    height: 220px;
  }
}
