/* ============================================================
   Tema "Bento Emerald"
   Palet: Hijau Emerald + slate gelap
   ============================================================ */
:root {
  --emerald: #059669;
  --emerald-2: #10b981;
  --emerald-tua: #064e3b;
  --emerald-lembut: #ecfdf5;
  --ink: #0f172a;
  --lembut: #64748b;
  --garis: #e2e8f0;
  --bg: #f1f5f9;
  --putih: #ffffff;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 18px 40px rgba(15, 23, 42, .12);
  --ui: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--ui);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.container {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 18px;
}

/* ---------- Topbar ---------- */
.topbar { background: var(--emerald-tua); color: #b8e6d5; font-size: 12.5px; }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 38px;
}
.topbar-date { font-weight: 700; }
.topbar-tagline {
  opacity: .82;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 62%;
}

/* ---------- Masthead ---------- */
.masthead { background: var(--putih); border-bottom: 1px solid var(--garis); }
.masthead-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 29px;
  font-weight: 900;
  letter-spacing: -.7px;
  color: var(--ink);
  line-height: 1;
}
.logo-mark {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(140deg, var(--emerald-2), var(--emerald-tua));
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
}
.search-form { display: flex; gap: 7px; }
.search-form input {
  padding: 10px 16px;
  border: 1px solid var(--garis);
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  min-width: 200px;
  background: var(--bg);
}
.search-form input:focus { outline: 2px solid var(--emerald-2); outline-offset: 0; }
.search-form button {
  padding: 10px 20px;
  border: none;
  border-radius: 999px;
  background: var(--emerald);
  color: #fff;
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}
.search-form button:hover { background: var(--emerald-tua); }
.menu-toggle {
  display: none;
  font-size: 22px;
  line-height: 1;
  background: var(--emerald);
  color: #fff;
  border: none;
  border-radius: 12px;
  padding: 9px 14px;
  cursor: pointer;
}

/* ---------- Navbar (pil) ---------- */
.navbar { background: var(--putih); border-bottom: 1px solid var(--garis); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  padding: 10px 0;
}
.nav-inner a {
  color: #334155;
  font-size: 13.5px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 999px;
  background: var(--bg);
  transition: background .15s, color .15s;
}
.nav-inner a:hover { background: var(--emerald-lembut); color: var(--emerald-tua); }
.nav-inner a.aktif { background: var(--emerald); color: #fff; }

/* ---------- Ticker ---------- */
.ticker {
  display: flex;
  align-items: stretch;
  background: var(--putih);
  border: 1px solid var(--garis);
  border-radius: 999px;
  overflow: hidden;
  margin: 22px 0 0;
}
.ticker-label {
  flex: none;
  background: var(--emerald);
  color: #fff;
  font-size: 11.5px;
  font-weight: 900;
  letter-spacing: .6px;
  text-transform: uppercase;
  display: flex;
  align-items: center;
  padding: 0 18px;
}
.ticker-viewport { overflow: hidden; flex: 1; }
.ticker-track {
  display: flex;
  gap: 38px;
  white-space: nowrap;
  padding: 10px 0 10px 18px;
  animation: ticker 32s linear infinite;
}
.ticker-item { font-size: 13.5px; font-weight: 600; color: var(--emerald-tua); }
.ticker-item::before { content: "\25CF"; color: var(--emerald-2); font-size: 9px; margin-right: 9px; vertical-align: middle; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- Judul seksi ---------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 20px;
  font-weight: 900;
  letter-spacing: -.3px;
  color: var(--ink);
  margin: 32px 0 18px;
}
.section-title::before {
  content: "";
  width: 10px;
  height: 10px;
  border-radius: 3px;
  background: var(--emerald);
  box-shadow: 0 0 0 4px var(--emerald-lembut);
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--garis);
}

/* ---------- Bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  grid-auto-rows: 196px;
  gap: 16px;
  grid-auto-flow: dense;
  margin: 8px 0 40px;
}
.bento-item {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--putih);
  box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
  transition: transform .16s, box-shadow .16s;
}
.bento-item:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.bento-item img { width: 100%; height: 100%; object-fit: cover; }
.bento-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 78, 59, 0) 34%, rgba(6, 78, 59, .55) 64%, rgba(6, 78, 59, .93) 100%);
}
.bento-body { position: absolute; left: 0; right: 0; bottom: 0; padding: 16px; }
.bento-body h3 {
  color: #fff;
  font-size: 17px;
  line-height: 1.3;
  margin: 8px 0 5px;
  font-weight: 800;
  letter-spacing: -.2px;
}
.bento-body small { color: #c6f0e1; font-size: 12px; }

.bento-besar { grid-column: span 2; grid-row: span 2; }
.bento-besar .bento-body { padding: 26px; }
.bento-besar h3 { font-size: 27px; line-height: 1.24; }
.bento-lebar { grid-column: span 2; }

/* Blok tanpa gambar: jadi blok warna */
.bento-item.tanpa-gambar { background: linear-gradient(140deg, var(--emerald-tua), var(--emerald-2)); }
.bento-item.tanpa-gambar .bento-body { position: static; padding: 20px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; }

/* Blok promo kategori */
.bento-promo {
  background: linear-gradient(140deg, #0f172a, #1e293b);
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 24px;
}
.bento-promo h3 { color: #fff; font-size: 18px; margin: 0 0 14px; font-weight: 900; letter-spacing: -.2px; }
.bento-promo .tag-list a { background: rgba(255, 255, 255, .1); border-color: transparent; color: #d1fae5; }

/* ---------- Badge ---------- */
.badge {
  display: inline-block;
  background: var(--emerald);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 11px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-putih { background: #fff; color: var(--emerald-tua); }

/* ---------- Kartu berita (masonry) ---------- */
.news-grid { columns: 3 260px; column-gap: 20px; margin: 6px 0 30px; }
.news-card {
  break-inside: avoid;
  display: block;
  background: var(--putih);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
  margin-bottom: 20px;
  transition: transform .16s, box-shadow .16s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.thumb { overflow: hidden; background: linear-gradient(140deg, #d1fae5, #ecfdf5); }
.thumb img { width: 100%; }
.thumb-kosong {
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--emerald-tua);
  font-weight: 900;
  font-size: 14px;
  letter-spacing: .4px;
  text-transform: uppercase;
}
.news-body { padding: 16px; }
.news-body h3 { font-size: 17px; line-height: 1.34; margin: 9px 0 8px; font-weight: 800; letter-spacing: -.2px; }
.news-body p { font-size: 13px; color: var(--lembut); margin: 0 0 9px; }
.news-body small { font-size: 12px; color: var(--lembut); }

/* ---------- Tag ---------- */
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; }
.tag-list a {
  font-size: 13px;
  font-weight: 700;
  padding: 6px 13px;
  border-radius: 999px;
  background: var(--emerald-lembut);
  color: var(--emerald-tua);
  border: 1px solid #bbf7d0;
}
.tag-list a:hover { background: var(--emerald); color: #fff; border-color: var(--emerald); }

/* ---------- Halaman artikel ---------- */
.page-title {
  font-size: 27px;
  font-weight: 900;
  letter-spacing: -.5px;
  color: var(--ink);
  margin: 28px 0 18px;
  padding-left: 16px;
  border-left: 6px solid var(--emerald);
}
.article {
  background: var(--putih);
  border-radius: var(--radius);
  padding: 36px 40px;
  margin: 26px 0;
  box-shadow: var(--shadow);
}
.article h1 {
  font-size: 33px;
  line-height: 1.24;
  margin: 14px 0 14px;
  letter-spacing: -.9px;
  font-weight: 900;
  color: var(--ink);
}
.article-meta {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  color: var(--lembut);
  font-size: 13px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--garis);
}
.article-image { width: 100%; border-radius: var(--radius-sm); margin-bottom: 22px; }
.article-content { font-size: 17.5px; line-height: 1.8; color: #1e293b; }
.article-content p { margin: 0 0 20px; }
.article-content h2 { font-size: 23px; margin: 30px 0 12px; color: var(--ink); letter-spacing: -.3px; }
.article-content h3 { font-size: 19px; margin: 24px 0 10px; color: var(--ink); }
.article-content img { border-radius: var(--radius-sm); margin: 14px 0; }
.article-content a { color: var(--emerald); text-decoration: underline; }
.article-content ul, .article-content ol { padding-left: 22px; }
.article-content li { margin-bottom: 8px; }
.article-content blockquote {
  border-left: 4px solid var(--emerald-2);
  margin: 20px 0;
  padding: 12px 20px;
  background: var(--emerald-lembut);
  font-style: italic;
  color: #334155;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.article-source { font-size: 13px; color: var(--lembut); word-break: break-all; margin-top: 22px; }

.related {
  background: var(--putih);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 30px;
  box-shadow: 0 6px 18px rgba(15, 23, 42, .07);
}
.related h2 { font-size: 16px; font-weight: 900; text-transform: uppercase; letter-spacing: .6px; color: var(--ink); margin: 0 0 6px; }
.related ul { list-style: none; padding: 0; margin: 0; }
.related li {
  padding: 13px 0;
  border-bottom: 1px solid var(--garis);
  display: flex;
  justify-content: space-between;
  gap: 14px;
}
.related li:last-child { border-bottom: none; }
.related li a { font-weight: 700; font-size: 15px; }
.related li a:hover { color: var(--emerald); }
.related li small { color: var(--lembut); white-space: nowrap; font-size: 12px; }

/* ---------- Pesan ---------- */
.empty, .search-info {
  background: var(--putih);
  border: 1px dashed var(--garis);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  color: var(--lembut);
  margin: 26px 0;
}
.search-info { text-align: left; border-style: solid; }

.alert { padding: 13px 17px; border-radius: var(--radius-sm); margin: 18px 0; font-size: 14px; font-weight: 600; }
.alert-sukses { background: #e6f6ec; color: #166534; border: 1px solid #b7e4c7; }
.alert-error  { background: #fdeaea; color: #991b1b; border: 1px solid #f5c2c2; }
.alert-info   { background: #e8effd; color: #1e40af; border: 1px solid #c3d4f7; }

/* ---------- Paginasi ---------- */
.pagination { display: flex; gap: 7px; flex-wrap: wrap; justify-content: center; margin: 32px 0; }
.pagination a, .pagination span {
  padding: 9px 15px;
  border-radius: 999px;
  background: var(--putih);
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  box-shadow: 0 2px 6px rgba(15, 23, 42, .07);
}
.pagination a:hover { background: var(--emerald-lembut); color: var(--emerald-tua); }
.pagination .aktif { background: var(--emerald); color: #fff; }
.pagination .dots { box-shadow: none; background: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--emerald-tua); color: #a7d8c6; margin-top: 50px; font-size: 14px; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr;
  gap: 34px;
  padding: 44px 0 30px;
}
.footer-brand .logo { color: #fff; font-size: 25px; margin-bottom: 14px; }
.footer-brand .logo-mark { background: rgba(255, 255, 255, .14); }
.footer-brand p { margin: 0; font-size: 13.5px; line-height: 1.7; max-width: 420px; }
.footer-col h4 {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 9px; }
.footer-col a { font-size: 13.5px; }
.footer-col a:hover { color: #fff; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #8dc4b1;
}

/* ---------- Responsif ---------- */
@media (max-width: 980px) {
  .bento { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .search-form { display: none; }
  .masthead-inner { padding: 12px 0; }
  .logo { font-size: 23px; }
  .logo-mark { width: 38px; height: 38px; font-size: 19px; }
  .nav-inner { display: none; flex-direction: column; align-items: stretch; gap: 8px; padding: 10px 0; }
  .nav-inner.terbuka { display: flex; }
  .nav-inner a { text-align: center; }
  .topbar-tagline { display: none; }
  .bento { grid-template-columns: 1fr; grid-auto-rows: 208px; }
  .bento-besar, .bento-lebar { grid-column: auto; grid-row: auto; }
  .bento-besar h3 { font-size: 20px; }
  .article { padding: 20px; border-radius: var(--radius-sm); }
  .article h1 { font-size: 24px; }
  .article-content { font-size: 17px; }
  .news-grid { columns: 1; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 24px; }
  .footer-brand { grid-column: auto; }
}
