/* Bebii Blog — lightweight frontend (public + admin) */

:root {
  /* Palet lebih lembut (abu slate), mirip portal berita modern — kurang “hitam pekat”. */
  --bg: #f8fafc;
  --surface: #fff;
  --text: #334155;
  /* Cukup gelap untuk teks sekunder di atas --surface / --bg (WCAG AA). */
  --muted: #475569;
  --border: #e2e8f0;
  --accent: #c62828;
  --accent-hover: #b71c1c;
  /* Tautan di badan artikel (timpa warna biru cerah dari konten editor). */
  --article-link: #9a1818;
  --article-link-hover: #7a1212;
  --nav-blue: #c62828;
  --nav-active: #e65100;
  --danger: #b91c1c;
  --radius: 8px;
  --shadow: 0 1px 3px rgba(0, 0, 0, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, Ubuntu, "Helvetica Neue", sans-serif;
  --container: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  font-size: 16px;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--text);
  background: var(--bg);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a {
  color: var(--accent);
  text-decoration: none;
}
a:hover {
  text-decoration: underline;
}

code {
  font-size: 0.9em;
  background: #eee;
  padding: 0.1em 0.35em;
  border-radius: 4px;
}

/* ——— Public layout (Readers-style header) ——— */

.site-body {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header--news {
  background: var(--surface);
  box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06);
}

.header-top {
  border-bottom: 1px solid var(--border);
}

.header-top-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem 1rem;
  flex-wrap: wrap;
}

.menu-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.5rem;
  border: none;
  background: transparent;
  font: inherit;
  color: var(--nav-blue);
  cursor: pointer;
  border-radius: 4px;
}
.menu-toggle:hover {
  background: #ffebee;
}

.menu-toggle-bars {
  display: inline-block;
  width: 18px;
  height: 2px;
  background: var(--nav-blue);
  box-shadow: 0 5px 0 var(--nav-blue), 0 -5px 0 var(--nav-blue);
  border-radius: 1px;
}

.menu-toggle-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--muted);
}

.site-logo--news {
  font-weight: 800;
  font-size: 1.35rem;
  letter-spacing: -0.02em;
  text-decoration: none;
  color: var(--text);
}
.site-logo--news:hover {
  text-decoration: none;
  opacity: 0.85;
}

.site-logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.35em;
  height: 1.35em;
  margin-right: 1px;
  font-size: 0.95em;
  color: #fff;
  background: linear-gradient(135deg, #c62828 50%, #b71c1c 50%);
  border-radius: 4px;
}

.site-logo-tld {
  color: #c62828;
  font-weight: 800;
}

.header-search {
  flex: 1;
  min-width: 140px;
  max-width: 420px;
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.85rem;
  border: 1px solid #cfd8dc;
  border-radius: 999px;
  background: #fafafa;
}

.header-search-icon {
  color: var(--muted);
  font-size: 1rem;
  line-height: 1;
}

.header-search input {
  flex: 1;
  border: none;
  background: transparent;
  font: inherit;
  font-size: 0.95rem;
  min-width: 0;
}
.header-search input:focus {
  outline: none;
}

.header-social {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.social-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1;
  color: #fff;
  text-decoration: none;
}
.social-btn:hover {
  opacity: 0.9;
  text-decoration: none;
  transform: scale(1.05);
}
.social-fb {
  background: #1877f2;
}
.social-x {
  background: #111;
}
.social-ig {
  background: linear-gradient(180deg, #833ab4, #fd1d1d, #fcb045);
}
.social-yt {
  background: #f00;
}
.social-rss {
  background: #ff9800;
}

.social-btn svg {
  display: block;
  width: 18px;
  height: 18px;
}

/* Readers-like sizing tweaks */
.social-fb svg,
.social-ig svg {
  width: 22px;
  height: 22px;
}

.social-yt svg {
  width: 22px;
  height: 22px;
  margin-left: 0px;
}

.header-nav-strip {
  background: var(--nav-blue);
}

.header-nav-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 1rem;
}

.header-nav-primary {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  gap: 0;
  min-height: 44px;
}

.header-nav-link {
  display: inline-flex;
  align-items: center;
  padding: 0.65rem 0.75rem;
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: #fff;
  text-decoration: none;
  white-space: nowrap;
  border-bottom: 3px solid transparent;
}
.header-nav-link:hover {
  background: rgba(255, 255, 255, 0.1);
  text-decoration: none;
  color: #fff;
}

.header-nav-link.is-active {
  /* Putih pada --nav-blue memenuhi kontras; indikator aktif tetap di border bawah. */
  color: #fff;
  border-bottom-color: var(--nav-active);
}

.header-nav-cats {
  display: flex;
  flex-wrap: nowrap;
  align-items: stretch;
  flex: 1;
  min-width: 0;
  overflow: hidden;
}

.header-nav-more {
  position: relative;
  display: flex;
  align-items: stretch;
  margin-left: auto;
  flex-shrink: 0;
}

.header-nav-more-btn {
  min-width: 44px;
  padding: 0 0.75rem;
  border: none;
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
}
.header-nav-more-btn:hover {
  background: rgba(255, 255, 255, 0.12);
}

.header-nav-dropdown {
  position: absolute;
  top: 100%;
  right: 0;
  z-index: 50;
  min-width: 200px;
  max-height: 70vh;
  overflow-y: auto;
  padding: 0.35rem 0;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.header-nav-dropdown .header-nav-link {
  display: block;
  color: var(--text);
  text-transform: none;
  font-weight: 500;
  letter-spacing: 0;
  border-bottom: none;
  padding: 0.5rem 1rem;
}
.header-nav-dropdown .header-nav-link:hover {
  background: #f5f5f5;
  color: var(--nav-blue);
}
.header-nav-dropdown .header-nav-link.is-active {
  color: var(--nav-active);
  background: #ffebee;
}

.offcanvas-backdrop {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.35);
}

.offcanvas {
  position: fixed;
  top: 0;
  left: 0;
  z-index: 210;
  width: min(92vw, 360px);
  height: 100%;
  overflow-y: auto;
  background: #fff;
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.12);
}

.offcanvas-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.offcanvas-title {
  font-weight: 700;
  font-size: 1.1rem;
}

.offcanvas-close {
  border: none;
  background: transparent;
  font-size: 1.25rem;
  cursor: pointer;
  line-height: 1;
  padding: 0.25rem;
}

.offcanvas-search {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid var(--border);
}

.offcanvas-search input {
  width: 100%;
  padding: 0.5rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  font: inherit;
}

.offcanvas-section {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #eee;
}

.offcanvas-heading {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.offcanvas-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.35rem 0.75rem;
  font-size: 0.9rem;
}
.offcanvas-grid a {
  color: var(--text);
}
.offcanvas-grid a:hover {
  color: var(--nav-blue);
}

.offcanvas-foot {
  padding: 0.75rem 1rem;
  font-size: 0.85rem;
  margin: 0;
}

body.offcanvas-open {
  overflow: hidden;
}

@media (max-width: 720px) {
  .header-search {
    order: 10;
    flex: 100%;
    max-width: none;
    margin-left: 0;
  }
  .header-social {
    margin-left: auto;
  }
}

.site-main {
  flex: 1;
  max-width: var(--container);
  width: 100%;
  margin: 0 auto;
  padding: 2rem 1.25rem 3rem;
}

.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  font-size: 0.875rem;
  color: var(--muted);
}

.site-footer--extended {
  border-top: 3px solid var(--nav-blue);
  background: #f4f7f9;
  text-align: left;
}

.site-footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 2rem 1.25rem 2.25rem;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: minmax(200px, 1.1fr) minmax(180px, 1fr) minmax(160px, 0.85fr);
    gap: 2rem 2.5rem;
    align-items: start;
  }
}

.footer-col--brand .footer-logo {
  display: inline-block;
  margin-bottom: 0.75rem;
}

.footer-subhead {
  margin: 0 0 0.4rem;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.footer-social {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
}

.footer-social .social-btn {
  width: 34px;
  height: 34px;
  font-size: 0.85rem;
}

.footer-copy {
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
  line-height: 1.45;
}

.footer-heading {
  margin: 0 0 0.75rem;
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.footer-cats {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.75rem;
}

.footer-cats a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-cats a:hover {
  color: var(--nav-active);
  text-decoration: underline;
}

.footer-page-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}

.footer-page-list a {
  color: var(--text);
  font-size: 0.88rem;
  font-weight: 500;
  text-decoration: none;
}

.footer-page-list a:hover {
  color: var(--nav-active);
  text-decoration: underline;
}

/* Halaman kebijakan / syarat */
.page-legal {
  max-width: 640px;
  margin: 0 auto;
}

.page-legal-head h1 {
  margin: 0 0 0.5rem;
  font-size: 1.75rem;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.page-legal-lead {
  margin: 0 0 1.5rem;
  color: var(--muted);
  font-size: 0.95rem;
}

.page-legal-section {
  margin-bottom: 1.35rem;
}

.page-legal-section h2 {
  margin: 0 0 0.5rem;
  font-size: 1.05rem;
  font-weight: 700;
}

.page-legal-section p {
  margin: 0;
  line-height: 1.65;
  color: var(--text);
}

.page-legal-note {
  margin-top: 2rem;
  font-size: 0.9rem;
}

.page-legal-note a {
  color: var(--accent);
}

.public-root {
  min-height: 120px;
}

/* Beranda: kolom utama + sidebar Populer (readers.id) */
.blog-home-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  align-items: start;
}

@media (min-width: 900px) {
  .blog-home-layout {
    grid-template-columns: 1fr min(320px, 32%);
  }
}

.blog-home-main {
  min-width: 0;
}

/* Sel setinggi kolom utama agar position:sticky punya area scroll (grid + align-items:start membuat aside pendek). */
.blog-popular-wrap {
  min-width: 0;
  align-self: stretch;
  display: flex;
  flex-direction: column;
}

.blog-popular {
  position: sticky;
  top: 1rem;
  align-self: flex-start;
  width: 100%;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  overscroll-behavior: contain;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: var(--shadow);
}

@media (max-width: 899px) {
  .blog-popular-wrap {
    margin-top: 1.25rem;
  }
  .blog-popular {
    position: static;
    top: auto;
    max-height: none;
    overflow: visible;
  }
}

.blog-popular-heading {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  margin: 0 0 0.85rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid rgba(229, 231, 235, 0.95);
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  color: var(--text);
}

.blog-popular-heading::before {
  content: "";
  display: block;
  width: 4px;
  height: 1.1em;
  border-radius: 2px;
  background: linear-gradient(180deg, var(--nav-active), #b71c1c);
  flex-shrink: 0;
}

.blog-popular-icon {
  font-size: 1.15rem;
  line-height: 1;
  filter: drop-shadow(0 1px 1px rgba(0, 0, 0, 0.06));
}

.blog-popular-list {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: blog-pop;
}

.blog-popular-item {
  counter-increment: blog-pop;
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0;
  border-top: 1px solid #eee;
}

.blog-popular-item:first-of-type {
  border-top: none;
  padding-top: 0;
}

.blog-popular-item::before {
  content: counter(blog-pop);
  flex: 0 0 1.6rem;
  font-size: 1.35rem;
  font-weight: 750;
  line-height: 1.2;
  color: #e53935;
  font-variant-numeric: tabular-nums;
}

.blog-popular-link {
  display: block;
  flex: 1;
  min-width: 0;
  text-decoration: none;
  color: inherit;
}

.blog-popular-title {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  overflow: hidden;
  word-break: break-word;
  font-size: 1.08rem;
  font-weight: 700;
  line-height: 1.38;
  color: var(--text);
  margin-bottom: 0.25rem;
  transition: color 0.15s ease;
}

.blog-popular-title:hover {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  color: var(--nav-active);
}

.blog-popular-link:focus-visible .blog-popular-title {
  display: block;
  -webkit-line-clamp: unset;
  line-clamp: unset;
  overflow: visible;
  color: var(--nav-active);
}

.blog-popular-item:has(.blog-popular-title:hover) {
  position: relative;
  z-index: 2;
  background: var(--surface);
  border-radius: 8px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
}

.blog-popular-meta {
  display: block;
  font-size: 0.72rem;
  color: var(--muted);
  text-transform: none;
}

.muted {
  color: var(--muted);
}

.notice {
  padding: 1rem 1.1rem;
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  font-size: 0.95rem;
}

.notice-info {
  background: #fff5f5;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

.notice-error {
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #7f1d1d;
}

.post-grid {
  display: grid;
  gap: 1rem;
}

@media (min-width: 560px) {
  .post-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.post-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.15rem 1.25rem;
  box-shadow: var(--shadow);
}

.post-card-title {
  margin: 0 0 0.35rem;
  font-size: 1.1rem;
}
.post-card-title a {
  color: var(--text);
}
.post-card-title a:hover {
  color: var(--accent);
}

.post-card-meta {
  margin: 0 0 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.post-card-excerpt {
  margin: 0;
  font-size: 0.9rem;
  color: var(--muted);
}

.post-single-header h1 {
  margin: 0 0 0.5rem;
  font-size: 1.65rem;
  line-height: 1.25;
}

.draft-badge {
  display: inline-block;
  margin-left: 0.35rem;
  padding: 0.15rem 0.45rem;
  font-size: 0.65rem;
  font-weight: 600;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 4px;
}

.post-single-meta {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  color: var(--muted);
}

.post-body {
  font-size: 1rem;
  max-width: 65ch;
}

.post-body img {
  max-width: 100%;
  height: auto;
}

.back-link {
  margin-top: 2rem;
}

/* ——— Beranda: carousel unggulan + tag populer (readers.id) ——— */

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

.blog-home-feature-block {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.35rem;
}

/* Sentinel placeholders (used for lazy sections). */
.blog-post-more-sentinel {
  height: 1px;
}

.blog-otherlatest {
  margin: 1.5rem 0 0;
}

.blog-otherlatest-head {
  margin-bottom: 0.65rem;
}

.blog-otherlatest-list {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.35rem;
}

@media (min-width: 720px) {
  .blog-otherlatest-list {
    grid-template-columns: 1fr 1fr;
    gap: 0.45rem 1.25rem;
  }
}

.blog-otherlatest-link {
  display: block;
  padding: 0.55rem 0.15rem;
  color: var(--text);
  text-decoration: none;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.blog-otherlatest-link:hover .blog-otherlatest-title {
  color: var(--nav-active);
  text-decoration: none;
}

.blog-otherlatest-link:hover {
  background: rgba(15, 23, 42, 0.035);
}

.blog-otherlatest-title {
  font-weight: 650;
  font-size: 0.95rem;
  line-height: 1.45;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-otherlatest-time {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.8rem;
  color: #94a3b8;
  line-height: 1.35;
}

.blog-mostviewed {
  margin: 1.5rem 0 0;
}

.blog-mostviewed-head {
  margin-bottom: 0.65rem;
}

.blog-mostviewed-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

@media (min-width: 860px) {
  .blog-mostviewed-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-mostviewed-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border: 1px solid var(--border);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: var(--shadow);
  text-decoration: none;
  color: var(--text);
}

.blog-mostviewed-media {
  background: #eceff1;
}

.blog-mostviewed-media img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}

.blog-mostviewed-body {
  padding: 0.7rem 0.75rem 0.8rem;
}

.blog-mostviewed-title {
  font-weight: 750;
  line-height: 1.3;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-mostviewed-card:hover .blog-mostviewed-title {
  color: var(--nav-active);
  text-decoration: none;
}

.blog-feature-carousel {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #0d1b2a;
  box-shadow: 0 4px 24px rgba(15, 23, 42, 0.12), 0 1px 3px rgba(0, 0, 0, 0.06);
  border: 1px solid rgba(15, 23, 42, 0.08);
  max-height: min(52vh, 420px);
  min-height: 220px;
  touch-action: pan-x;
}

.blog-feature-viewport {
  overflow: hidden;
  width: 100%;
}

.blog-feature-track {
  display: flex;
  width: 100%;
  transition: transform 0.38s cubic-bezier(0.22, 1, 0.36, 1);
  will-change: transform;
}

.blog-feature-slide {
  position: relative;
  flex: 0 0 100%;
  width: 100%;
  min-height: min(52vh, 400px);
  max-height: min(52vh, 420px);
}

.blog-feature-slide-media {
  position: absolute;
  inset: 0;
  background: #263238;
}

.blog-feature-slide-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transform: scale(1);
  transition: transform 0.55s cubic-bezier(0.22, 1, 0.36, 1),
    filter 0.35s ease;
}

.blog-feature-slide-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.9) 0%,
    rgba(0, 0, 0, 0.55) 32%,
    rgba(0, 0, 0, 0.22) 55%,
    rgba(0, 0, 0, 0) 78%
  );
  pointer-events: none;
}

.blog-feature-badge {
  position: absolute;
  top: 0.85rem;
  left: 0.85rem;
  z-index: 4;
  padding: 0.28rem 0.55rem;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: 4px;
  pointer-events: none;
}

.blog-feature-badge--breaking {
  background: #c62828;
  color: #fff;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.blog-feature-slide-hit {
  position: absolute;
  inset: 0;
  z-index: 2;
  cursor: pointer;
}

.blog-feature-slide-hit::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 0;
  border: 1px solid transparent;
  box-shadow: none;
  transition: border-color 0.25s ease, box-shadow 0.25s ease;
  pointer-events: none;
}

.blog-feature-slide:hover .blog-feature-slide-media img {
  transform: scale(1.035);
  filter: saturate(1.06) contrast(1.02);
}

.blog-feature-slide:hover .blog-feature-slide-shade {
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.5) 36%,
    rgba(0, 0, 0, 0.18) 58%,
    rgba(0, 0, 0, 0) 80%
  );
}

.blog-feature-slide:hover .blog-feature-slide-hit::after {
  border-color: rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.blog-feature-slide:hover .blog-feature-slide-title {
  transform: translateY(-2px);
  color: var(--nav-active);
}

@media (prefers-reduced-motion: reduce) {
  .blog-feature-slide-media img,
  .blog-feature-slide-title,
  .blog-feature-slide-hit::after {
    transition: none !important;
  }
}
.blog-feature-slide-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 3;
  /* Lebih dekat ke tepi bawah carousel (tag sudah tidak dipakai). */
  padding: 1.1rem 1.35rem 0.85rem;
  pointer-events: none;
}

@media (min-width: 768px) {
  .blog-feature-slide-caption {
    padding: 1.25rem 1.75rem 1rem;
  }
}

.blog-feature-cat {
  display: inline-block;
  position: relative;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  color: rgba(255, 255, 255, 0.92);
  margin: 0 0 0.65rem;
  padding-bottom: 0.45rem;
}

.blog-feature-cat::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 2.25rem;
  height: 2px;
  border-radius: 1px;
  background: var(--accent);
  box-shadow: 0 0 12px rgba(198, 40, 40, 0.45);
}

.blog-feature-slide-title {
  margin: 0 0 0.45rem;
  max-width: min(100%, 42rem);
  font-size: clamp(1.88rem, 2.9vw, 1.5rem);
  font-weight: 750;
  line-height: 1.22;
  letter-spacing: -0.03em;
  color: #fff;
  text-shadow:
    0 0 24px rgba(0, 0, 0, 0.55),
    0 2px 8px rgba(0, 0, 0, 0.45),
    0 1px 0 rgba(0, 0, 0, 0.2);
  transition: transform 0.22s ease, color 0.22s ease;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-feature-slide-time {
  margin: 0 0 0.8rem;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.blog-feature-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 5;
  width: 2.75rem;
  height: 2.75rem;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  background: linear-gradient(180deg, #ffffff 0%, #f1f5f9 100%);
  color: var(--text);
  cursor: pointer;
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.06),
    0 0 0 5px rgba(0, 0, 0, 0.14),
    0 6px 20px rgba(0, 0, 0, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.95);
  display: flex;
  align-items: center;
  justify-content: center;
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease;
}

.blog-feature-nav:hover {
  background: #fff;
  border-color: #fff;
  transform: translateY(-50%) scale(1.06);
  box-shadow:
    0 0 0 1px rgba(198, 40, 40, 0.2),
    0 0 0 5px rgba(0, 0, 0, 0.12),
    0 10px 28px rgba(0, 0, 0, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 1);
  color: var(--accent);
}

.blog-feature-nav:focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px #fff,
    0 0 0 5px var(--nav-active),
    0 6px 20px rgba(0, 0, 0, 0.2);
}

.blog-feature-nav:active {
  transform: translateY(-50%) scale(0.97);
  box-shadow:
    0 0 0 1px rgba(0, 0, 0, 0.08),
    0 3px 12px rgba(0, 0, 0, 0.18),
    inset 0 2px 4px rgba(0, 0, 0, 0.06);
}

.blog-feature-nav--prev {
  left: 0.75rem;
}

.blog-feature-nav--next {
  right: 0.75rem;
}

.blog-feature-nav-icon {
  font-size: 1.5rem;
  line-height: 1;
  font-weight: 600;
  margin-top: -0.06rem;
  color: inherit;
  transition: color 0.2s ease;
}

.blog-tag-popular {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.55rem 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.blog-tag-popular-label {
  flex: 0 0 auto;
  font-size: 0.82rem;
  font-weight: 800;
  color: var(--muted);
  letter-spacing: -0.01em;
  padding-right: 0.25rem;
}

.blog-tag-scroll-btn {
  flex: 0 0 auto;
  width: 2rem;
  height: 2rem;
  padding: 0;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.blog-tag-scroll-btn:hover {
  background: #f5f7f8;
  border-color: #cfd8dc;
}

.blog-tag-popular-strip {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.45rem;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scrollbar-width: none;
  -ms-overflow-style: none;
  padding: 0.15rem 0;
}

.blog-tag-popular-strip::-webkit-scrollbar {
  display: none;
}

.blog-tag-popular-pill {
  flex: 0 0 auto;
  padding: 0.38rem 0.75rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text);
  text-decoration: none;
  background: #f1f5f9;
  border: 1px solid var(--border);
  border-radius: 999px;
  white-space: nowrap;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.blog-tag-popular-pill:hover {
  background: #e2e8f0;
  border-color: #b0bec5;
  color: var(--nav-active);
}

@media (max-width: 559px) {
  .blog-feature-nav {
    width: 2.35rem;
    height: 2.35rem;
    box-shadow:
      0 0 0 1px rgba(0, 0, 0, 0.06),
      0 0 0 4px rgba(0, 0, 0, 0.12),
      0 4px 16px rgba(0, 0, 0, 0.18),
      inset 0 1px 0 rgba(255, 255, 255, 0.95);
  }

  .blog-feature-nav-icon {
    font-size: 1.35rem;
  }

  .blog-feature-nav--prev {
    left: 0.45rem;
  }

  .blog-feature-nav--next {
    right: 0.45rem;
  }

  .blog-tag-popular-label {
    font-size: 0.75rem;
  }
}

/* ——— Postingan terbaru + Rekomendasi (readers.id) ——— */

.blog-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.85rem;
}

.blog-section-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  letter-spacing: -0.02em;
  color: var(--text);
}

.blog-section-title-bar {
  display: inline-block;
  width: 4px;
  height: 1.15em;
  border-radius: 2px;
  background: var(--nav-blue);
  flex-shrink: 0;
}

.blog-section-more {
  flex-shrink: 0;
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--accent);
  text-decoration: none;
  white-space: nowrap;
}

.blog-section-more:hover {
  text-decoration: underline;
}

.blog-latest-section {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1rem 1.15rem 1.15rem;
  box-shadow: var(--shadow);
}

.blog-latest-card {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 1rem;
  min-width: 0;
}

.blog-latest-overlay {
  position: absolute;
  inset: 0;
  z-index: 1;
  border-radius: 10px;
  text-decoration: none;
  outline-offset: 2px;
  cursor: pointer;
}

.blog-latest-overlay:focus-visible {
  outline: 2px solid var(--nav-blue);
  outline-offset: 2px;
}

.blog-latest-card:hover .blog-latest-title {
  color: var(--nav-active);
}

.blog-latest-thumb {
  flex: 0 0 min(42%, 240px);
  max-width: 280px;
  border-radius: 10px;
  overflow: hidden;
  background: #eceff1;
  align-self: stretch;
}

.blog-latest-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 140px;
  object-fit: cover;
}

.blog-latest-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  justify-content: center;
}

.blog-latest-cat {
  display: inline-block;
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: none;
  color: #546e7a;
  background: #eceff1;
  border-radius: 6px;
  text-decoration: none;
}

a.blog-latest-cat {
  position: relative;
  z-index: 2;
}

a.blog-latest-cat:hover {
  background: #dfe4e8;
  text-decoration: none;
}

a.blog-latest-cat:focus-visible {
  outline: 2px solid var(--nav-blue);
  outline-offset: 2px;
  border-radius: 6px;
}

.blog-latest-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: var(--text);
  transition: color 0.15s ease;
}

.blog-latest-time {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

/* Rekomendasi (desain baru; tidak meniru readers.id) */
.blog-picks {
  margin-top: 1.5rem;
  padding: 1rem;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.blog-picks-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.blog-picks-h {
  margin: 0.1rem 0 0;
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.blog-picks-h::before {
  content: "";
  width: 6px;
  height: 18px;
  border-radius: 6px;
  background: var(--accent);
  box-shadow: 0 0 0 3px rgba(198, 40, 40, 0.12);
}

.blog-picks-note {
  font-size: 0.85rem;
  color: var(--muted);
}

.blog-picks-layout {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  min-width: 0;
}

.blog-picks-row {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.blog-picks-row--top {
  grid-template-columns: 1fr;
}

.blog-picks-row--bottom {
  grid-template-columns: 1fr;
}

@media (min-width: 721px) {
  .blog-picks-row--top {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .blog-picks-row--bottom {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.blog-picks-grid-card {
  display: grid;
  grid-template-rows: auto 1fr;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--border);
  background: #fff;
  text-decoration: none;
  color: inherit;
  min-width: 0;
  box-shadow: var(--shadow);
  transition:
    border-color 0.15s ease,
    box-shadow 0.15s ease,
    transform 0.15s ease;
}

.blog-picks-grid-card:hover {
  text-decoration: none;
  border-color: #cfd8dc;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  transform: translateY(-1px);
}

.blog-picks-grid-card:hover .blog-picks-grid-title {
  color: var(--nav-active);
}

.blog-picks-grid-media {
  aspect-ratio: 16 / 9;
  background: #eceff1;
  overflow: hidden;
}

.blog-picks-grid-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-picks-grid-body {
  padding: 0.75rem 0.85rem 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-height: 0;
}

.blog-picks-cat {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 0.35rem;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--accent);
  background: #ffebee;
}

.blog-picks-grid-title {
  margin: 0.35rem 0 0.35rem;
  font-size: 0.98rem;
  font-weight: 800;
  line-height: 1.28;
  letter-spacing: -0.02em;
  color: var(--text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.15s ease;
}

.blog-picks-time {
  margin: 0;
  font-size: 0.82rem;
  color: var(--muted);
}

.blog-feed-head {
  margin: 1.5rem 0 0.85rem;
}

.blog-section-title--feed {
  font-size: 1.1rem;
}

.blog-feed-loadmore {
  display: flex;
  justify-content: center;
  margin-top: 1.25rem;
  margin-bottom: 0.5rem;
}

.blog-feed-loadmore-btn {
  min-width: 200px;
  font-weight: 600;
}

@media (max-width: 720px) {
  .blog-latest-card {
    flex-direction: column;
  }

  .blog-latest-thumb {
    flex: none;
    max-width: none;
    width: 100%;
    max-height: 220px;
  }

  .blog-picks-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* ——— Konten artikel (inspirasi readers.id / oduu-article-*) ——— */

.blog-article-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.blog-pagination {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: center;
}

.blog-pagination-inner {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none; /* Firefox */
}

.blog-pagination-inner::-webkit-scrollbar {
  display: none; /* Chrome/Safari/Edge */
}

.blog-pagination-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 2.25rem;
  height: 2.25rem;
  padding: 0 0.5rem;
  border-radius: 999px;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  color: var(--nav-blue);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.blog-pagination-btn:hover:not(.is-disabled):not(.is-active) {
  background: #ffebee;
  text-decoration: none;
}

.blog-pagination-btn.is-active {
  background: var(--nav-blue);
  color: #fff;
  border-color: var(--nav-blue);
}

.blog-pagination-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.blog-pagination-ellipsis {
  padding: 0 0.2rem;
  color: var(--muted);
  font-weight: 600;
}

.blog-article-item {
  position: relative;
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: 0;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: box-shadow 0.15s ease, border-color 0.15s ease;
}

/* Aksen merah di tepi kanan — selaras dengan bar section / sidebar Populer. */
.blog-article-item::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 4px;
  border-radius: 0 9px 9px 0;
  background: linear-gradient(180deg, var(--nav-active) 0%, var(--accent) 55%, #8b1010 100%);
  pointer-events: none;
  z-index: 1;
}

.blog-article-item:hover {
  border-color: #cfd8dc;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.blog-article-item:hover::after {
  width: 5px;
  opacity: 0.95;
}

/* Kartu feed: gambar + judul = tautan artikel; kategori = pola blog-latest-cat (tanpa overlay penuh). */
.blog-article-item:hover .blog-article-title a {
  color: var(--nav-active);
}

.blog-article-thumb {
  flex: 0 0 min(38%, 200px);
  min-height: 130px;
  max-width: 220px;
  background: #eceff1;
  overflow: hidden;
}

a.blog-article-thumb {
  display: block;
  text-decoration: none;
  color: inherit;
  align-self: stretch;
}

a.blog-article-thumb:focus-visible {
  outline: 2px solid var(--nav-blue);
  outline-offset: 2px;
}

.blog-article-thumb img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 130px;
  object-fit: cover;
}

.blog-article-text {
  flex: 1;
  min-width: 0;
  padding: 1rem 1.15rem 1rem 1.25rem;
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 0.55rem;
  min-height: 0;
}

.blog-article-text .blog-latest-cat {
  justify-self: start;
}

.blog-article-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.02em;
  align-self: center;
  min-height: 0;
  color: var(--text);
  transition: color 0.15s ease;
}

.blog-article-title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.15s ease;
}

.blog-article-title a:focus-visible {
  outline: 2px solid var(--nav-blue);
  outline-offset: 3px;
  border-radius: 4px;
}

.blog-article-footer {
  align-self: end;
  justify-self: stretch;
  width: 100%;
  padding-top: 0.15rem;
}

.blog-article-date {
  font-size: 0.78rem;
  color: var(--muted);
}

@media (max-width: 600px) {
  .blog-article-item {
    flex-direction: column;
  }
  .blog-article-thumb {
    flex: none;
    max-width: none;
    min-height: 200px;
  }
}

/* Halaman satu artikel */
.blog-article-layout {
  max-width: none;
  margin: 0;
}

.blog-article-single {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 1.5rem 1.5rem 1.75rem;
  box-shadow: var(--shadow);
}

.blog-article-breadcrumb {
  margin-bottom: 0.85rem;
}

.blog-article-breadcrumb-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 0;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.8rem;
  line-height: 1.45;
  color: var(--muted);
  overflow: hidden;
  white-space: nowrap;
  max-width: 100%;
}

.blog-article-breadcrumb-list li {
  display: flex;
  align-items: center;
  flex: 0 0 auto;
  min-width: 0;
}

.blog-article-breadcrumb-list li + li::before {
  content: "›";
  display: inline-block;
  flex: 0 0 auto;
  margin: 0 0.4rem;
  color: #b0bec5;
  font-weight: 600;
}

.blog-article-breadcrumb-list li:last-child {
  flex: 1 1 auto;
  min-width: 0;
}

.blog-article-breadcrumb-list a {
  color: var(--muted);
  text-decoration: none;
}

.blog-article-breadcrumb-list a:hover {
  color: var(--accent);
  text-decoration: underline;
}

.blog-article-breadcrumb-list [aria-current="page"] {
  color: var(--text);
  font-weight: 600;
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-article-head {
  margin-bottom: 0;
}

.blog-article-category--large {
  font-size: 0.8rem;
  padding: 0.28rem 0.8rem;
  margin-bottom: 0.65rem;
  font-weight: 600;
}

.blog-article-head h1 {
  margin: 0 0 0.85rem;
  font-size: clamp(1.45rem, 4vw, 2rem);
  font-weight: 750;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
}

.blog-article-byline {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0;
}

.blog-share {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex-wrap: wrap;
}

.blog-share-btn {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  height: 34px;
  min-width: 34px;
  padding: 0 0.55rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.blog-share-btn-ico {
  width: 18px;
  height: 18px;
  display: block;
}

.blog-share-ico {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.blog-share-ico svg {
  width: 18px;
  height: 18px;
  display: block;
}

.blog-share-btn:hover {
  background: rgba(15, 23, 42, 0.03);
  border-color: #cbd5e1;
}

.blog-share-btn:active {
  transform: translateY(1px);
}

.blog-share-btn:focus-visible {
  outline: 2px solid var(--nav-active);
  outline-offset: 2px;
}

.blog-share-btn--wa {
  color: #0f5132;
  border-color: rgba(16, 185, 129, 0.35);
  background: rgba(16, 185, 129, 0.12);
}

.blog-share-btn--fb {
  color: #1e3a8a;
  border-color: rgba(37, 99, 235, 0.28);
  background: rgba(37, 99, 235, 0.1);
}

.blog-share-btn--copy,
.blog-share-btn--more {
  background: #fff;
}

.blog-share-overlay {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: rgba(15, 23, 42, 0.45);
}

.blog-share-modal {
  position: fixed;
  left: 50%;
  top: 18vh;
  transform: translateX(-50%);
  z-index: 10001;
  width: min(92vw, 540px);
  background: #fff;
  border-radius: 14px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.25);
}

.blog-share-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
}

.blog-share-modal-title {
  font-weight: 800;
  color: var(--text);
}

.blog-share-close {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  width: 36px;
  height: 36px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  color: var(--muted);
}

.blog-share-close:hover {
  color: var(--text);
  background: rgba(15, 23, 42, 0.03);
}

.blog-share-modal-body {
  padding: 0.9rem 1rem 1rem;
}

.blog-share-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.6rem;
}

.blog-share-chip {
  appearance: none;
  border: 1px solid var(--border);
  background: #fff;
  border-radius: 12px;
  padding: 0.75rem 0.7rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.5rem;
}

.blog-share-chip:hover {
  border-color: #cbd5e1;
  background: rgba(15, 23, 42, 0.03);
}

body.blog-modal-open {
  overflow: hidden;
}

.blog-article-avatar {
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  font-weight: 800;
  color: #fff;
  background: linear-gradient(135deg, var(--nav-blue), #b71c1c);
  letter-spacing: 0;
}

.blog-article-byline-main {
  min-width: 0;
  flex: 1;
}

.blog-article-byline-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text);
  line-height: 1.3;
}

.blog-article-byline-meta {
  font-size: 0.82rem;
  color: var(--muted);
  margin-top: 0.15rem;
  line-height: 1.35;
}

.blog-article-hero {
  margin: 1.15rem 0 0;
  border-radius: 10px;
  overflow: hidden;
  background: #eceff1;
}

.blog-article-hero img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(480px, 70vh);
  object-fit: cover;
  vertical-align: middle;
}

.blog-article-source {
  margin: 1rem 0 0;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: #475569;
  line-height: 1.5;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  border-left: 4px solid var(--accent);
  border-radius: 10px;
}

.blog-article-source-label {
  font-weight: 700;
  color: #0f172a;
}

.blog-article-source a {
  color: var(--accent) !important;
  text-decoration: none;
  font-style: italic;
}

.blog-article-source a:hover {
  color: var(--accent-hover) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  align-items: center;
}

.blog-article-meta {
  font-size: 0.88rem;
  color: var(--muted);
}

.blog-article-divider {
  height: 3px;
  margin: 1.25rem 0 1.5rem;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--nav-blue), var(--nav-active));
  opacity: 0.9;
}

.blog-article-toc {
  margin: -0.5rem 0 1.5rem;
  padding: 0.85rem 0.95rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--nav-active);
}

.blog-toc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.65rem;
}

.blog-toc-title {
  font-weight: 750;
  color: var(--text);
  font-size: 0.95rem;
}

.blog-toc-title::before {
  content: "☰";
  display: inline-block;
  margin-right: 0.55rem;
  color: var(--nav-active);
  font-weight: 900;
}

.blog-toc-toggle {
  appearance: none;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--muted);
  font-weight: 700;
  font-size: 0.82rem;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  cursor: pointer;
}

.blog-toc-toggle:hover {
  color: var(--text);
  border-color: #cbd5e1;
}

.blog-toc-list {
  margin: 0;
  padding-left: 0;
  color: var(--muted);
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

/* display:flex di atas mengalahkan atribut hidden — default TOC tertutup. */
.blog-toc-list[hidden] {
  display: none !important;
}

.blog-toc-item {
  margin: 0;
}

.blog-toc-link,
.blog-toc-sublink {
  display: block;
  padding: 0.42rem 0.55rem;
  border-radius: 10px;
  color: var(--text);
  text-decoration: none;
  font-weight: 600;
  line-height: 1.35;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease;
}

.blog-toc-link:hover,
.blog-toc-sublink:hover {
  color: var(--article-link-hover);
  background: rgba(220, 38, 38, 0.06);
  transform: translateX(2px);
}

.blog-toc-sublist {
  list-style: none;
  margin: 0.15rem 0 0.25rem;
  padding-left: 0;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.blog-toc-subitem {
  position: relative;
  margin: 0;
  padding-left: 0;
}

.blog-toc-subitem::before {
  content: "•";
  position: absolute;
  /* Align dash with start of top-level text (same as link padding-left). */
  left: 0.55rem;
  top: 0.5rem;
  color: #cbd5e1;
  font-weight: 900;
  font-size: 1rem;
  line-height: 1;
}

.blog-toc-sublink {
  /* Keep sub text aligned under top-level text, dash sits at 0.55rem. */
  padding-left: 1.1rem;
  font-weight: 600;
}

.blog-article-body {
  max-width: none;
  margin: 0;
  font-size: 1.05rem;
  line-height: 1.75;
  color: var(--text);
}

.blog-article-body p {
  margin: 0 0 1.1em;
}

.blog-article-body table {
  width: 100%;
  border-collapse: collapse;
  border-spacing: 0;
  margin: 0.5rem 0 1.25rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  overflow: hidden;
  table-layout: auto;
}

.blog-article-body table thead,
.blog-article-body table tbody {
  width: 100%;
}

@media (max-width: 720px) {
  .blog-article-body table {
    display: block;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .blog-article-body td,
  .blog-article-body th {
    min-width: 8rem;
  }
}

/* ——— RSS Feeds page ——— */
.blog-rss-feeds {
  max-width: var(--container);
  margin: 0 auto;
}

.blog-rss-title {
  margin: 0 0 0.35rem;
  font-size: 1.6rem;
  font-weight: 850;
  letter-spacing: -0.02em;
}

.blog-rss-lead {
  margin: 0 0 1rem;
}

.blog-rss-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.blog-rss-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.95rem;
}

.blog-rss-table th,
.blog-rss-table td {
  text-align: left;
  padding: 0.75rem 0.9rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.95);
  vertical-align: top;
}

.blog-rss-table th {
  background: linear-gradient(180deg, #fbfdff 0%, #f1f5f9 100%);
  font-weight: 800;
  font-size: 0.82rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}

.blog-rss-table tr:nth-child(even) td {
  background: rgba(15, 23, 42, 0.015);
}

.blog-rss-url {
  color: #94a3b8;
  font-size: 0.85em;
  word-break: break-all;
}

@media (max-width: 720px) {
  .blog-rss-card {
    overflow-x: auto;
  }
  .blog-rss-table {
    min-width: 680px;
  }
}

.blog-article-body caption {
  caption-side: top;
  padding: 0.75rem 0.85rem;
  font-weight: 750;
  color: var(--text);
}

.blog-article-body thead th {
  background: linear-gradient(180deg, #fbfdff 0%, #f1f5f9 100%);
  color: #0f172a;
  font-weight: 750;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}

.blog-article-body th,
.blog-article-body td {
  text-align: left;
  padding: 0.75rem 0.85rem;
  vertical-align: top;
  border-right: 1px solid var(--border);
}

.blog-article-body th:last-child,
.blog-article-body td:last-child {
  border-right: none;
}

.blog-article-body tbody tr {
  border-top: 1px solid rgba(226, 232, 240, 0.95);
}

.blog-article-body tbody tr:nth-child(even) {
  background: rgba(15, 23, 42, 0.02);
}

.blog-article-body tbody tr:hover {
  background: rgba(198, 40, 40, 0.045);
}

.blog-article-body td {
  color: var(--text);
}

.blog-article-body td,
.blog-article-body th {
  min-width: 0;
}

.blog-article-body h2,
.blog-article-body h3 {
  margin: 1.35em 0 0.5em;
  line-height: 1.3;
  color: var(--text);
  scroll-margin-top: 1.25rem;
}

.blog-article-body h2 {
  font-size: 1.25rem;
}

.blog-article-body h3 {
  font-size: 1.1rem;
}

.blog-article-body ul,
.blog-article-body ol {
  margin: 0 0 1.1em;
  padding-left: 1.35rem;
}

.blog-article-body blockquote {
  margin: 1.1em 0;
  padding: 0.65rem 1rem;
  border-left: 4px solid var(--nav-blue);
  background: #f8fafc;
  color: #455a64;
}

.blog-article-body a {
  color: var(--article-link) !important;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.blog-article-body a:visited {
  color: var(--article-link) !important;
}

.blog-article-body a:hover {
  color: var(--article-link-hover) !important;
}

.blog-article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 0.5em 0;
}

.blog-also-read {
  margin: 1rem 0;
}

.blog-also-read-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
  align-items: center;
  padding: 0.75rem 0.85rem;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  box-shadow: var(--shadow);
  border-left: 4px solid var(--nav-blue);
}

.blog-also-read-label {
  grid-column: 1 / -1;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.blog-also-read-link {
  color: var(--text);
  text-decoration: none;
  min-width: 0;
}

.blog-also-read-link,
.blog-also-read-link:hover,
.blog-also-read-link:focus,
.blog-also-read-link:active {
  text-decoration: none !important;
}

.blog-also-read-inner:hover {
  border-color: #cbd5e1;
}

.blog-also-read-title {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.35;
  font-weight: 750;
}

.blog-also-read-link:hover .blog-also-read-title {
  color: var(--nav-active);
  text-decoration: none;
}

.blog-also-read-thumb {
  width: 72px;
  height: 56px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid var(--border);
  background: #eceff1;
}

.blog-article-foot {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.blog-back-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--article-link);
  text-decoration: none;
}

.blog-back-link:hover {
  color: var(--article-link-hover);
  text-decoration: underline;
}

.page-about.prose h1 {
  margin-top: 0;
}

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow);
}

.card-narrow {
  max-width: 400px;
  margin: 0 auto;
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.stack label,
.stack .label {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.9rem;
  font-weight: 500;
}

.stack input,
.stack textarea,
.stack select {
  font: inherit;
  padding: 0.5rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: #fff;
}

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  padding: 0.5rem 1rem;
  border-radius: 6px;
  border: 1px solid transparent;
  cursor: pointer;
  text-align: center;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover {
  background: var(--accent-hover);
  text-decoration: none;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}
.btn-ghost:hover {
  background: var(--bg);
  text-decoration: none;
}

/* Muat lagi — aksen merah (override .btn-ghost agar tidak polos). */
.btn.btn-ghost.blog-feed-loadmore-btn {
  color: var(--accent);
  background: linear-gradient(180deg, #fff 0%, #fff5f5 100%);
  border-color: rgba(198, 40, 40, 0.38);
  box-shadow: 0 1px 2px rgba(198, 40, 40, 0.08);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    color 0.2s ease,
    transform 0.15s ease;
}

.btn.btn-ghost.blog-feed-loadmore-btn:hover {
  color: #fff;
  background: linear-gradient(180deg, var(--accent) 0%, var(--accent-hover) 100%);
  border-color: var(--accent-hover);
  box-shadow: 0 4px 14px rgba(198, 40, 40, 0.35);
  transform: translateY(-1px);
}

.btn.btn-ghost.blog-feed-loadmore-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 8px rgba(198, 40, 40, 0.25);
}

.btn.btn-ghost.blog-feed-loadmore-btn:focus-visible {
  outline: 2px solid var(--nav-active);
  outline-offset: 2px;
}

.btn-sm {
  font-size: 0.85rem;
  padding: 0.35rem 0.65rem;
}

.btn-danger {
  color: var(--danger);
  border-color: #fecaca;
  background: #fff;
}

/* ——— Admin ——— */

.admin-body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
}

.admin-topbar {
  background: #1e293b;
  color: #f1f5f9;
}

.admin-topbar-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.65rem 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.admin-brand {
  font-weight: 700;
  color: #fff;
}
.admin-brand:hover {
  color: #fecaca;
  text-decoration: none;
}

.admin-topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.admin-topbar .btn-ghost {
  color: #e2e8f0;
  border-color: #475569;
}
.admin-topbar .btn-ghost:hover {
  background: #334155;
}

.admin-user-name {
  font-size: 0.9rem;
  color: #94a3b8;
}

.admin-shell {
  display: flex;
  max-width: 1200px;
  margin: 0 auto;
  min-height: calc(100vh - 52px);
}

.admin-sidebar {
  width: 200px;
  flex-shrink: 0;
  padding: 1.25rem 1rem;
  border-right: 1px solid var(--border);
  background: var(--surface);
}

.admin-sidebar-title {
  margin: 0 0 0.5rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}

.admin-sidebar-hint {
  margin: 0;
  font-size: 0.85rem;
  line-height: 1.45;
}

.admin-main-wrap {
  flex: 1;
  padding: 1.5rem 1.25rem 2rem;
  min-width: 0;
}

.admin-root {
  min-height: 200px;
}

.admin-login {
  margin-top: 2rem;
}

.admin-tabs {
  display: flex;
  gap: 0.35rem;
  margin-bottom: 1.25rem;
  flex-wrap: wrap;
}

.admin-tabs button {
  font: inherit;
  padding: 0.45rem 0.9rem;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 6px;
  cursor: pointer;
  color: var(--muted);
}

.admin-tabs button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.admin-toolbar {
  margin-bottom: 1rem;
}

.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--surface);
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.data-table th,
.data-table td {
  padding: 0.65rem 0.85rem;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

.data-table th {
  background: #f8fafc;
  font-weight: 600;
  font-size: 0.8rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
}

.data-table tr:last-child td {
  border-bottom: none;
}

.data-table .actions {
  white-space: nowrap;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  z-index: 1000;
}

.modal {
  width: 100%;
  max-width: 640px;
  margin-top: 1rem;
  margin-bottom: 2rem;
}

.modal h2 {
  margin-top: 0;
}

.footer-page-list--multi {
  display: grid;
  grid-template-columns: repeat(2, minmax(140px, 1fr));
  gap: 0.45rem 1.25rem;
}

.form-actions {
  margin-top: 0.5rem;
  display: flex;
  gap: 0.5rem;
  justify-content: flex-end;
}

.tag-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  margin-top: 0.35rem;
}

.tag-check {
  font-weight: 400;
  font-size: 0.9rem;
}
