/* ============================================================
   Pojok.co.id - Tema "Majalah Modern"
   Palet: Biru Tua (navy) + Kuning (accent)
   ============================================================ */
:root {
  --navy: #0b2447;
  --navy-2: #10305e;
  --navy-3: #081a35;
  --kuning: #ffc107;
  --kuning-tua: #d99e00;
  --ink: #161c28;
  --lembut: #707a8c;
  --garis: #e6e9f0;
  --bg: #f2f4f9;
  --putih: #ffffff;
  --radius: 14px;
  --radius-sm: 9px;
  --shadow: 0 12px 32px rgba(11, 36, 71, .10);
  --ui: "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  --baca: Georgia, "Times New Roman", 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; }

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

/* ---------- Topbar ---------- */
.topbar { background: var(--navy-3); color: #c3d0e6; font-size: 12.5px; }
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  height: 38px;
}
.topbar-date { font-weight: 600; letter-spacing: .2px; }
.topbar-tagline {
  opacity: .78;
  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: 11px;
  font-size: 30px;
  font-weight: 900;
  letter-spacing: -.6px;
  color: var(--navy);
  line-height: 1;
}
.logo-mark {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: linear-gradient(135deg, var(--navy), var(--navy-2));
  color: var(--kuning);
  display: grid;
  place-items: center;
  font-size: 22px;
  font-weight: 900;
}
.search-form { display: flex; gap: 7px; }
.search-form input {
  padding: 9px 13px;
  border: 1px solid var(--garis);
  border-radius: 999px;
  font-size: 14px;
  font-family: inherit;
  min-width: 190px;
  background: var(--bg);
}
.search-form input:focus { outline: 2px solid var(--kuning); outline-offset: 0; }
.search-form button {
  padding: 9px 18px;
  border: none;
  border-radius: 999px;
  background: var(--kuning);
  color: var(--navy);
  font-weight: 800;
  font-family: inherit;
  cursor: pointer;
}
.search-form button:hover { background: var(--kuning-tua); }
.menu-toggle {
  display: none;
  font-size: 22px;
  line-height: 1;
  background: var(--navy);
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 9px 13px;
  cursor: pointer;
}

/* ---------- Navbar ---------- */
.navbar { background: var(--navy); }
.nav-inner {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
}
.nav-inner a {
  color: #dbe3f2;
  font-size: 14px;
  font-weight: 700;
  padding: 13px 14px;
  border-bottom: 3px solid transparent;
  transition: color .15s, border-color .15s;
}
.nav-inner a:hover,
.nav-inner a.aktif {
  color: var(--kuning);
  border-bottom-color: var(--kuning);
}

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

/* ---------- Layout depan ---------- */
.front-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 30px;
  margin: 28px 0 40px;
}
.front-main { min-width: 0; }

/* ---------- Hero ---------- */
.hero-card {
  position: relative;
  display: block;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow);
  background: var(--navy);
}
.hero-card img {
  width: 100%;
  height: 430px;
  object-fit: cover;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 26, 53, .05) 0%, rgba(8, 26, 53, .72) 62%, rgba(8, 26, 53, .94) 100%);
}
.hero-body {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 26px 28px;
}
.hero-title {
  color: #fff;
  font-size: 32px;
  line-height: 1.22;
  margin: 12px 0 8px;
  letter-spacing: -.4px;
  font-weight: 900;
  text-shadow: 0 2px 18px rgba(0, 0, 0, .4);
}
.hero-body p { color: #d7deee; margin: 0 0 10px; font-size: 15px; }
.hero-body small { color: #a9b7d1; font-size: 12.5px; }

/* Dua berita pendamping */
.hero-side {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 20px;
}
.sub-card {
  background: var(--putih);
  border: 1px solid var(--garis);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  transition: transform .15s, box-shadow .15s;
}
.sub-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.sub-card .thumb { height: 168px; }
.sub-card h3 {
  font-size: 16.5px;
  line-height: 1.35;
  margin: 0 0 8px;
  font-weight: 800;
  letter-spacing: -.2px;
}
.sub-card .news-body { padding: 16px; }

/* ---------- Judul seksi ---------- */
.section-title {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 19px;
  font-weight: 900;
  letter-spacing: -.3px;
  text-transform: uppercase;
  color: var(--navy);
  margin: 34px 0 18px;
}
.section-title::before {
  content: "";
  width: 6px;
  height: 22px;
  border-radius: 3px;
  background: var(--kuning);
}
.section-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--garis);
}

/* ---------- Kartu berita ---------- */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
}
.news-card {
  background: var(--putih);
  border: 1px solid var(--garis);
  border-radius: var(--radius);
  overflow: hidden;
  display: block;
  transition: transform .15s, box-shadow .15s;
}
.news-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.thumb { height: 158px; overflow: hidden; background: linear-gradient(135deg, #dfe5f1, #eef1f7); }
.thumb img { width: 100%; height: 100%; object-fit: cover; }
.thumb-kosong {
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  font-weight: 800;
  font-size: 14px;
  letter-spacing: .3px;
  text-transform: uppercase;
}
.news-body { padding: 15px; }
.news-body h3 {
  font-size: 16.5px;
  line-height: 1.36;
  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); }

.badge {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 10.5px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 999px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.badge-kuning { background: var(--kuning); color: var(--navy); }

/* ---------- Sidebar ---------- */
.sidebar { min-width: 0; }
.widget {
  background: var(--putih);
  border: 1px solid var(--garis);
  border-radius: var(--radius);
  padding: 18px;
  margin-bottom: 22px;
}
.widget-title {
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--navy);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--kuning);
  display: inline-block;
}
.popular-list { list-style: none; padding: 0; margin: 0; }
.popular-list li {
  display: flex;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--garis);
}
.popular-list li:last-child { border-bottom: none; padding-bottom: 0; }
.popular-list .rank {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--bg);
  color: var(--navy);
  font-weight: 900;
  font-size: 13px;
  display: grid;
  place-items: center;
}
.popular-list li:first-child .rank { background: var(--kuning); }
.popular-list a { font-size: 14px; font-weight: 700; line-height: 1.4; }
.popular-list a:hover { color: var(--kuning-tua); }
.popular-list small { display: block; color: var(--lembut); font-weight: 500; font-size: 11.5px; margin-top: 3px; }

.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(--bg);
  border: 1px solid var(--garis);
  color: var(--navy);
}
.tag-list a:hover { background: var(--navy); color: #fff; border-color: var(--navy); }

/* ---------- Halaman artikel ---------- */
.page-title {
  font-size: 26px;
  font-weight: 900;
  letter-spacing: -.4px;
  color: var(--navy);
  margin: 28px 0 18px;
  padding-bottom: 14px;
  border-bottom: 3px solid var(--kuning);
  display: inline-block;
}
.article {
  background: var(--putih);
  border: 1px solid var(--garis);
  border-radius: var(--radius);
  padding: 34px 38px;
  margin: 26px 0;
  box-shadow: var(--shadow);
}
.article h1 {
  font-size: 33px;
  line-height: 1.24;
  margin: 14px 0 14px;
  letter-spacing: -.8px;
  font-weight: 900;
  color: var(--navy);
}
.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: 10px; margin-bottom: 22px; }
.article-content { font-family: var(--baca); font-size: 18px; line-height: 1.78; color: #22293a; }
.article-content p { margin: 0 0 20px; }
.article-content h2 {
  font-family: var(--ui);
  font-size: 22px;
  margin: 30px 0 12px;
  color: var(--navy);
  letter-spacing: -.3px;
}
.article-content h3 { font-family: var(--ui); font-size: 19px; margin: 24px 0 10px; color: var(--navy); }
.article-content img { border-radius: 10px; margin: 14px 0; }
.article-content a { color: var(--kuning-tua); 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(--kuning);
  margin: 20px 0;
  padding: 12px 20px;
  background: #fbfaf2;
  font-style: italic;
  color: #3a4151;
}
.article-source { font-size: 13px; color: var(--lembut); word-break: break-all; margin-top: 22px; }

.related {
  background: var(--putih);
  border: 1px solid var(--garis);
  border-radius: var(--radius);
  padding: 24px 26px;
  margin-bottom: 30px;
}
.related h2 {
  font-size: 16px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .6px;
  color: var(--navy);
  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(--kuning-tua); }
.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: 1px solid var(--garis);
  border-radius: var(--radius-sm);
  background: var(--putih);
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.pagination a:hover { border-color: var(--kuning); color: var(--kuning-tua); }
.pagination .aktif { background: var(--navy); color: #fff; border-color: var(--navy); }
.pagination .dots { border: none; background: none; }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-3); color: #9fb0cd; 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: 26px; margin-bottom: 14px; }
.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: var(--kuning); }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding: 18px 0;
  text-align: center;
  font-size: 13px;
  color: #8a9bb8;
}

/* ---------- Responsif ---------- */
@media (max-width: 960px) {
  .front-grid { grid-template-columns: 1fr; }
  .sidebar { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
  .sidebar .widget { margin-bottom: 0; }
}

@media (max-width: 760px) {
  .menu-toggle { display: block; }
  .search-form { display: none; }
  .masthead-inner { padding: 12px 0; }
  .logo { font-size: 24px; }
  .logo-mark { width: 36px; height: 36px; font-size: 19px; }
  .nav-inner { display: none; flex-direction: column; align-items: stretch; gap: 0; padding: 6px 0; }
  .nav-inner.terbuka { display: flex; }
  .nav-inner a { padding: 12px 4px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
  .nav-inner a:hover, .nav-inner a.aktif { border-bottom-color: rgba(255, 255, 255, .1); }
  .topbar-tagline { display: none; }
  .hero-card img { height: 320px; }
  .hero-title { font-size: 23px; }
  .hero-side { grid-template-columns: 1fr; }
  .article { padding: 20px; border-radius: var(--radius-sm); }
  .article h1 { font-size: 24px; }
  .article-content { font-size: 17px; }
  .sidebar { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 26px; padding: 34px 0 24px; }
}
