/* ===============================
   LAYOUT BERITA MODEL "DEMOCRAT"
================================ */

.berita-header {
  margin-bottom: 22px;
}

.berita-header h2 {
  font-size: 28px;
  font-weight: 700;
  color: #0b6b3a;
}

.berita-header p {
  color: #666;
}

/* WRAPPER 2 KOLOM */
.berita-layout {
  display: grid;
  grid-template-columns: 1fr 320px; /* kiri fleksibel, kanan sidebar */
  gap: 28px;
  align-items: start;
}

/* KIRI */
.berita-main {
  min-width: 0;
}

/* LIST VERTICAL */
.berita-list--demokrat {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}

/* ITEM */
.berita-item {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 18px;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  transition:
    transform 0.25s ease,
    box-shadow 0.25s ease;
}

.berita-item:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.12);
}

/* THUMB */
.berita-item-img img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block;
}

/* BODY */
.berita-item-body {
  padding: 16px 16px 16px 0;
}

.berita-item-body h3 {
  font-size: 20px;
  font-weight: 700;
  margin: 2px 0 10px;
  color: #0b3a2a;
}

.berita-item-body p {
  margin: 0 0 14px;
  font-size: 14px;
  color: #555;
  line-height: 1.7;
}

/* META (tanggal + read more) */
.berita-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 13px;
  color: #666;
}

.berita-date {
  font-weight: 600;
}

.berita-link {
  color: #0b6b3a;
  font-weight: 700;
}

/* EMPTY */
.berita-empty {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 12px;
  background: rgba(11, 107, 69, 0.08);
  color: #0b6b45;
  font-weight: 700;
}

/* SIDEBAR */
.berita-sidebar {
  position: sticky;
  top: 90px; /* biar enak kalau navbar fixed */
}

.sidebar-box {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  margin-bottom: 18px;
}

.sidebar-box h4 {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 800;
  color: #222;
}

.sidebar-field {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.sidebar-field label {
  font-size: 13px;
  font-weight: 700;
  color: #444;
}

.sidebar-field select {
  width: 100%;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(0, 0, 0, 0.15);
  padding: 0 12px;
  outline: none;
  background: #fff;
}

/* optional recent links */
.sidebar-links {
  list-style: none;
  margin: 0;
  padding: 0;
}

.sidebar-links li {
  padding: 10px 0;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
}

.sidebar-links li:first-child {
  border-top: 0;
  padding-top: 0;
}

.sidebar-links a {
  color: #0b6b3a;
  text-decoration: none;
  font-weight: 700;
}

.sidebar-links a:hover {
  text-decoration: underline;
}

/* ===============================
   PAGINATION
================================ */
.berita-pagination {
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.pg-btn,
.pg-page {
  border: 1px solid rgba(0, 0, 0, 0.12);
  background: #fff;
  color: #0b6b3a;
  font-weight: 700;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
  transition: 0.2s ease;
}

.pg-btn:hover,
.pg-page:hover {
  background: rgba(11, 107, 58, 0.08);
  border-color: rgba(0, 0, 0, 0.18);
}

.pg-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.pg-pages {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}

.pg-page.is-active {
  background: #0b6b3a;
  color: #fff;
  border-color: #0b6b3a;
}

/* ===============================
   BERITA: FULLER WIDTH (DESKTOP)
   bikin halaman lebih terisi
================================ */

/* override container khusus halaman berita */
.berita.section .container {
  max-width: 1320px; /* dari 1100 -> lebih lebar */
  padding-left: 16px; /* lebih rapet */
  padding-right: 16px;
}

/* grid: sidebar lebih ke kanan + lebih lega */
.berita-layout {
  grid-template-columns: 1fr 360px; /* sidebar sedikit lebih lebar */
  gap: 32px; /* jarak antar kolom */
}

/* card lebih besar */
.berita-item {
  grid-template-columns: 300px 1fr; /* thumbnail lebih lebar */
}

/* gambar lebih tinggi sedikit */
.berita-item-img img {
  height: 200px;
}

/* teks lebih “lega” */
.berita-item-body h3 {
  font-size: 22px;
}

.berita-item-body p {
  font-size: 15px;
  line-height: 1.75;
}

/* sidebar menempel kanan dan gak terlalu “ngecil” */
.sidebar-box {
  padding: 18px;
}

/* optional: kurangi padding section berita biar nggak terlalu tinggi atas-bawah */
.berita.section {
  padding: 50px 0; /* sebelumnya 80px dari .section */
}

/* RESPONSIVE */
@media (max-width: 980px) {
  .berita-layout {
    grid-template-columns: 1fr;
  }

  .berita-sidebar {
    position: static;
    top: auto;
  }

  .berita-item {
    grid-template-columns: 1fr;
  }

  .berita-item-body {
    padding: 16px;
  }

  .berita-item-img img {
    height: 220px;
  }
}
