/**
 * Modelog — Magazine / News layout (v2.0)
 * Dimuat SETELAH style.css. Memakai token desain asli (--primary, --radius,
 * font Sora + DM Sans) sehingga tampilannya tetap satu keluarga dengan theme lama.
 */

[hidden] { display: none !important; }

/* =========================================
   BADGE TAMBAHAN + WARNA KATEGORI
   ========================================= */
.badge-teal { background: #F0FDFA; color: #0F766E; }
.badge-red  { background: #FEF2F2; color: #DC2626; }
a.badge:hover { filter: brightness(0.96); }

.cat-block--badge-blue,   .archive-head--badge-blue   { --cat-color: #2563EB; }
.cat-block--badge-orange, .archive-head--badge-orange { --cat-color: #EA580C; }
.cat-block--badge-green,  .archive-head--badge-green  { --cat-color: #15803D; }
.cat-block--badge-purple, .archive-head--badge-purple { --cat-color: #7C3AED; }
.cat-block--badge-teal,   .archive-head--badge-teal   { --cat-color: #0F766E; }
.cat-block--badge-red,    .archive-head--badge-red    { --cat-color: #DC2626; }
.cat-block--badge-gray,   .archive-head--badge-gray   { --cat-color: #6B7280; }

/* Fokus keyboard */
.hs-nav:focus-visible, .hs-dot:focus-visible, .hs-pause:focus-visible,
.search-toggle:focus-visible, .share-btn:focus-visible, .cat-strip a:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 2px;
}
.hero-slider :focus-visible { outline-color: #fff; }

/* =========================================
   TOP BAR
   ========================================= */
.topbar {
  background: var(--bg-light);
  border-bottom: 1px solid var(--border);
  font-size: 0.75rem;
  color: var(--text-muted);
}
.topbar-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 34px;
}
.topbar-date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
}
.topbar-tagline {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* =========================================
   HEADER: SEARCH TOGGLE + PANEL + KATEGORI
   ========================================= */
.search-toggle {
  width: 38px;
  height: 38px;
  margin-left: 6px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition);
}
.search-toggle:hover,
.search-toggle[aria-expanded="true"] {
  border-color: var(--primary);
  color: var(--primary);
  background: var(--primary-light);
}

.header-search-panel {
  background: white;
  border-top: 1px solid var(--border-light);
  padding: 12px 0;
}
.header-search-form { display: flex; gap: 10px; }
.header-search-form input[type="search"] {
  flex: 1;
  min-width: 0;
  padding: 11px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  color: var(--text-dark);
  background: white;
  outline: none;
  transition: all var(--transition);
}
.header-search-form input[type="search"]:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37,99,235,0.12);
}

.mobile-drawer-search { padding: 12px 20px 4px; }
.mobile-drawer-search form { position: relative; }
.mobile-drawer-search input[type="search"] {
  width: 100%;
  padding: 11px 44px 11px 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  background: white;
  color: var(--text-dark);
  outline: none;
}
.mobile-drawer-search input[type="search"]:focus { border-color: var(--primary); }
.mobile-drawer-search button {
  position: absolute;
  right: 6px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 32px;
  border: 0;
  background: none;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-strip {
  background: white;
  border-bottom: 1px solid var(--border);
}
.cat-strip-list {
  display: flex;
  gap: 2px;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.cat-strip-list::-webkit-scrollbar { display: none; }
.cat-strip-list li { flex-shrink: 0; }
.cat-strip a {
  display: block;
  padding: 11px 14px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-body);
  white-space: nowrap;
  border-bottom: 2px solid transparent;
  transition: all var(--transition);
}
.cat-strip a:hover { color: var(--primary); }
.cat-strip a.is-active {
  color: var(--primary);
  border-bottom-color: var(--primary);
}

/* =========================================
   SLOT IKLAN
   ========================================= */
.ad-slot {
  margin: 24px 0;
  text-align: center;
  clear: both;
}
.ad-label {
  display: block;
  margin-bottom: 6px;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-light);
  line-height: 1;
}
.ad-inner { display: block; max-width: 100%; }
.ad-slot ins.adsbygoogle { display: block; margin: 0 auto; }

/* Cadangkan ruang supaya halaman tidak "loncat" saat iklan dimuat (CLS) */
.ad-slot--header_below .ad-inner  { min-height: 90px; }
.ad-slot--sidebar_1 .ad-inner,
.ad-slot--sidebar_2 .ad-inner     { min-height: 250px; }
.ad-slot--single_top .ad-inner,
.ad-slot--single_inline .ad-inner,
.ad-slot--single_bottom .ad-inner { min-height: 250px; }
.ad-slot--home_infeed .ad-inner   { min-height: 120px; }

/* Slot tanpa isi (unfilled) disembunyikan oleh main.js */
.ad-slot.is-unfilled { display: none; }

.ad-wrap--header { padding-top: 4px; }
.ad-wrap--header .ad-slot { margin: 14px 0 0; }
.mag-sidebar .ad-slot { margin: 0; }
.news-list > .ad-slot { margin: 2px 0; }

/* Placeholder (hanya terlihat admin / di Customizer) */
.ad-slot--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 90px;
  padding: 12px;
  border: 2px dashed var(--border);
  border-radius: var(--radius);
  background: var(--bg-light);
}
.ad-placeholder-text {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--text-muted);
}

/* =========================================
   HERO: SLIDER + 2 BERITA SAMPING
   ========================================= */
.home-hero { padding: 28px 0 4px; }

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 20px;
}
.hero-grid--solo { grid-template-columns: minmax(0, 1fr); }

.hero-slider {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--text-dark);
  box-shadow: var(--shadow-md);
}
.hs-viewport {
  overflow: hidden;
  aspect-ratio: 16 / 10;
}
.hero-grid--solo .hs-viewport { aspect-ratio: 21 / 9; }

.hs-track {
  display: flex;
  height: 100%;
  transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
  will-change: transform;
}
.hs-slide {
  position: relative;
  flex: 0 0 100%;
  height: 100%;
  min-width: 0;
}
.hs-slide::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.9) 0%, rgba(15,23,42,0.5) 38%, rgba(15,23,42,0) 72%);
  pointer-events: none;
}
.hs-media { display: block; height: 100%; }
.hs-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hs-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 28px 32px 62px;
  color: #fff;
}
.hs-title {
  margin: 10px 0 8px;
  font-family: var(--font-heading);
  font-size: clamp(1.25rem, 2.4vw, 1.875rem);
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: #fff;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.hs-title a { color: #fff; }
.hs-title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.hs-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8125rem;
  color: rgba(255,255,255,0.82);
}

.hs-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.92);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  opacity: 0;
  transition: opacity var(--transition), background var(--transition);
}
.hs-nav:hover { background: #fff; }
.hs-prev { left: 14px; }
.hs-next { right: 14px; }
.hero-slider:hover .hs-nav,
.hero-slider:focus-within .hs-nav { opacity: 1; }
@media (hover: none) { .hs-nav { opacity: 1; } }

.hs-controls {
  position: absolute;
  left: 32px;
  bottom: 22px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 12px;
}
.hs-dots { display: flex; align-items: center; gap: 7px; }
.hs-dot {
  position: relative;
  width: 8px;
  height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  transition: all 0.25s ease;
}
.hs-dot::after { content: ''; position: absolute; inset: -8px -3px; } /* area sentuh lebih besar */
.hs-dot.is-active { width: 24px; background: #fff; }

.hs-pause {
  width: 26px;
  height: 26px;
  border: 0;
  border-radius: 50%;
  background: rgba(255,255,255,0.22);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.hs-pause:hover { background: rgba(255,255,255,0.38); }
.hs-pause .icon-play { display: none; }
.hero-slider.is-paused .hs-pause .icon-pause { display: none; }
.hero-slider.is-paused .hs-pause .icon-play  { display: block; }
.hero-slider.no-autoplay .hs-pause { display: none; }

/* Berita samping */
.hero-side {
  display: grid;
  grid-template-rows: 1fr 1fr;
  gap: 20px;
  min-width: 0;
}
.side-card {
  position: relative;
  min-height: 0;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--text-dark);
  box-shadow: var(--shadow-sm);
}
.side-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(15,23,42,0.88) 0%, rgba(15,23,42,0.35) 55%, rgba(15,23,42,0) 100%);
  pointer-events: none;
}
.side-media { position: absolute; inset: 0; display: block; }
.side-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.side-card:hover .side-img { transform: scale(1.04); }
.side-caption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 2;
  padding: 16px 18px;
}
.side-caption .badge { margin-bottom: 8px; }
.side-title {
  font-family: var(--font-heading);
  font-size: 1rem;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: #fff;
  margin-bottom: 4px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.side-title a { color: #fff; }
.side-title a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.side-meta { font-size: 0.75rem; color: rgba(255,255,255,0.8); }

/* =========================================
   SECTION HEAD
   ========================================= */
.section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  padding-bottom: 12px;
  border-bottom: 2px solid var(--border-light);
}
.section-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-heading);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}
.section-title::before {
  content: '';
  width: 4px;
  height: 20px;
  border-radius: 2px;
  background: var(--cat-color, var(--primary));
  display: block;
  flex-shrink: 0;
}
.section-title-page { font-size: 0.9375rem; font-weight: 600; color: var(--text-muted); }
.section-count { font-size: 0.8125rem; color: var(--text-muted); white-space: nowrap; }
.section-more { font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }

/* =========================================
   LAYOUT UTAMA: KONTEN + SIDEBAR KANAN
   ========================================= */
.mag-main { padding-bottom: 64px; }

.mag-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 36px;
  align-items: start;
  padding-top: 28px;
}
.mag-content { min-width: 0; }
.mag-sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
  min-width: 0;
}

/* Breadcrumb di halaman arsip */
.mag-main .post-breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 24px 0 14px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}
.mag-main .post-breadcrumb a { color: var(--text-muted); }
.mag-main .post-breadcrumb a:hover { color: var(--primary); }
.mag-main .post-breadcrumb .sep { color: var(--border); font-size: 0.75rem; }
.mag-main .post-breadcrumb .current { color: var(--text-body); }

/* Header arsip / kategori */
.archive-head {
  --cat-color: var(--primary);
  position: relative;
  overflow: hidden;
  margin-bottom: 4px;
  padding: 24px 28px 22px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
}
.archive-head::before {
  content: '';
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 5px;
  background: var(--cat-color);
}
.archive-kicker {
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cat-color);
}
.archive-title {
  margin: 4px 0 6px;
  font-size: clamp(1.5rem, 3vw, 2.25rem);
}
.archive-desc {
  max-width: 720px;
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.archive-count {
  display: inline-block;
  margin-top: 10px;
  font-size: 0.8125rem;
  color: var(--text-muted);
}

/* =========================================
   DAFTAR BERITA (kartu horizontal)
   ========================================= */
.news-list { display: flex; flex-direction: column; gap: 16px; }

.news-item {
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 20px;
  padding: 12px;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  transition: all 0.25s ease;
}
.news-item:hover {
  border-color: transparent;
  box-shadow: var(--shadow-lg);
  transform: translateY(-3px);
}

.news-thumb {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, #F59E0B 100%);
}
.news-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.news-item:hover .news-thumb img { transform: scale(1.04); }

.news-body {
  display: flex;
  flex-direction: column;
  min-width: 0;
  padding: 2px 4px 2px 0;
}
.news-cat { margin-bottom: 8px; }
.news-title {
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-title a { color: var(--text-dark); }
.news-title a:hover { color: var(--primary); }
.news-excerpt {
  margin-bottom: 12px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.news-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 8px;
  margin-top: auto;
  font-size: 0.75rem;
  color: var(--text-light);
}
.news-author { display: inline-flex; align-items: center; gap: 6px; }
.news-author .author-avatar { width: 22px; height: 22px; }
.news-author .author-name { font-size: 0.75rem; font-weight: 600; color: var(--text-dark); }

/* Gambar pengganti (artikel tanpa featured image) */
.news-thumb .no-image,
.cb-lead-media .no-image,
.cb-thumb .no-image,
.pop-thumb .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--accent) 0%, #F59E0B 50%, #DC2626 100%);
}
.news-thumb .no-image-text,
.cb-lead-media .no-image-text { font-size: 3rem; padding: 0; text-align: center; }
.cb-thumb .no-image-text,
.pop-thumb .no-image-text { font-size: 1.5rem; padding: 0; text-align: center; }

/* =========================================
   BLOK KATEGORI
   ========================================= */
.cat-blocks {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 44px 36px;
  margin-top: 56px;
}
.cat-block { min-width: 0; }

.cb-lead { display: flex; flex-direction: column; }
.cb-lead-media {
  display: block;
  aspect-ratio: 16 / 9;
  margin-bottom: 14px;
  border-radius: var(--radius);
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, #F59E0B 100%);
}
.cb-lead-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.cb-lead:hover .cb-lead-media img { transform: scale(1.04); }
.cb-lead-title {
  margin-bottom: 8px;
  font-family: var(--font-heading);
  font-size: 1.1875rem;
  line-height: 1.3;
  letter-spacing: -0.015em;
}
.cb-lead-title a { color: var(--text-dark); }
.cb-lead-title a:hover { color: var(--cat-color, var(--primary)); }
.cb-lead-excerpt {
  margin-bottom: 8px;
  font-size: 0.875rem;
  line-height: 1.6;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cb-meta { font-size: 0.75rem; color: var(--text-light); }

.cb-list { display: flex; flex-direction: column; gap: 14px; margin-top: 18px; }
.cb-item {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  gap: 14px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--border-light);
}
.cb-item:last-child { border-bottom: 0; padding-bottom: 0; }
.cb-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, #F59E0B 100%);
}
.cb-thumb img { width: 100%; height: 100%; object-fit: cover; }
.cb-item-title {
  margin-bottom: 4px;
  font-family: var(--font-heading);
  font-size: 0.9375rem;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: -0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.cb-item-title a { color: var(--text-dark); }
.cb-item-title a:hover { color: var(--cat-color, var(--primary)); }

/* =========================================
   WIDGET TERPOPULER
   ========================================= */
.popular-list { display: flex; flex-direction: column; gap: 14px; }
.popular-item {
  display: grid;
  grid-template-columns: 20px 72px minmax(0, 1fr);
  gap: 10px;
  align-items: center;
}
.pop-num {
  font-family: var(--font-heading);
  font-size: 1rem;
  font-weight: 800;
  text-align: center;
  color: var(--primary);
}
.popular-item:nth-child(-n+3) .pop-num { color: var(--accent); }
.pop-thumb {
  display: block;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, #F59E0B 100%);
}
.pop-thumb img { width: 100%; height: 100%; object-fit: cover; }
.pop-title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.35;
  color: var(--text-dark);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.pop-title:hover { color: var(--primary); }
.pop-meta { display: block; margin-top: 2px; font-size: 0.6875rem; color: var(--text-light); }

/* =========================================
   HALAMAN ARTIKEL: KOLOM + SIDEBAR
   ========================================= */
.single-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.single-layout.no-sidebar {
  grid-template-columns: minmax(0, 760px);
  justify-content: center;
}
.single-layout .single-main { min-width: 0; }
.single-layout .single-wrap {
  max-width: none;
  margin: 0;
  padding: 32px 0 56px;
}
.single-layout .mag-sidebar { padding-top: 32px; }
.single-layout .single-related-grid { grid-template-columns: repeat(2, 1fr); }

.single-featured-img { margin-bottom: 28px; }
.single-featured-caption {
  padding: 10px 16px;
  font-size: 0.8125rem;
  color: var(--text-muted);
  background: var(--bg-light);
  border-top: 1px solid var(--border-light);
}
.single-meta-updated { color: var(--text-muted); }

/* Tombol bagikan */
.share-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 28px 0 8px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}
.share-label {
  margin-right: 4px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--text-dark);
}
.share-btn {
  display: inline-flex;
  align-items: center;
  padding: 7px 14px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  font-family: var(--font-body);
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition);
}
.share-btn:hover { border-color: var(--primary); background: var(--primary-light); color: var(--primary-dark); }
.share-wa:hover { border-color: #16A34A; background: #F0FDF4; color: #15803D; }

/* Kotak penulis */
.author-box {
  display: flex;
  gap: 16px;
  margin-top: 28px;
  padding: 18px 20px;
  background: var(--bg-light);
  border: 1px solid var(--border);
  border-radius: var(--radius);
}
.author-box-avatar img { width: 56px; height: 56px; border-radius: 50%; object-fit: cover; }
.author-box-label { display: block; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--text-light); }
.author-box-name { font-family: var(--font-heading); font-size: 1rem; font-weight: 700; color: var(--text-dark); }
.author-box-bio { margin: 4px 0 0; font-size: 0.875rem; line-height: 1.6; color: var(--text-muted); }

/* Progress baca & tombol ke atas */
.reading-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--primary);
  z-index: 9999;
  transition: width 0.1s linear;
  pointer-events: none;
}
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 28px;
  z-index: 50;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 4px 16px rgba(37,99,235,0.4);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.back-to-top.is-visible { opacity: 1; pointer-events: auto; }

/* =========================================
   FOOTER: MENU + COPYRIGHT
   ========================================= */
.footer-bottom-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 24px;
  padding: 18px 0;
}
.footer-bottom-row .footer-copyright { padding: 0; text-align: left; }
.footer-menu { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.footer-menu a { font-size: 0.8125rem; color: var(--text-muted); }
.footer-menu a:hover { color: var(--primary); }
.footer-nav-list--cols { columns: 2; column-gap: 20px; }
.footer-nav-list--cols li { break-inside: avoid; }

/* =========================================
   RESPONSIVE
   ========================================= */
@media (max-width: 1024px) {
  .mag-layout,
  .single-layout { grid-template-columns: minmax(0, 1fr) 280px; gap: 28px; }
  .news-item { grid-template-columns: 220px minmax(0, 1fr); gap: 16px; }
}

@media (max-width: 960px) {
  .mag-layout,
  .single-layout,
  .single-layout.no-sidebar { grid-template-columns: minmax(0, 1fr); }
  .single-layout .mag-sidebar { padding-top: 0; }
  .single-layout .single-wrap { padding-bottom: 32px; }
  .mag-sidebar { margin-top: 12px; }
  .cat-blocks { grid-template-columns: minmax(0, 1fr); }

  .hero-grid { grid-template-columns: minmax(0, 1fr); }
  .hero-side { grid-template-rows: none; grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .side-card { aspect-ratio: 16 / 10; }
}

@media (max-width: 768px) {
  .topbar-tagline { display: none; }
  .home-hero { padding-top: 16px; }
  .hs-viewport,
  .hero-grid--solo .hs-viewport { aspect-ratio: 4 / 3; }
  .hs-caption { padding: 18px 18px 52px; }
  .hs-controls { left: 18px; bottom: 16px; }
  .hs-nav { width: 34px; height: 34px; }
  .hs-prev { left: 8px; }
  .hs-next { right: 8px; }

  .back-to-top { right: 16px; bottom: 84px; width: 40px; height: 40px; } /* di atas iklan anchor */
  .footer-bottom-row { flex-direction: column; align-items: flex-start; }
  .footer-nav-list--cols { columns: 1; }
}

@media (max-width: 640px) {
  .topbar { display: none; }
  .section-title { font-size: 1.125rem; }
  .mag-layout { padding-top: 20px; gap: 24px; }

  .news-item { grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 10px; }
  .news-thumb { aspect-ratio: 1 / 1; }
  .news-excerpt { display: none; }
  .news-title { font-size: 0.9375rem; margin-bottom: 6px; }
  .news-cat { margin-bottom: 6px; }
  .news-author .author-avatar { display: none; }

  .archive-head { padding: 18px 18px 16px; }
  .single-layout .single-related-grid { grid-template-columns: 1fr; }
  .author-box { flex-direction: column; }
}

@media (max-width: 380px) {
  .hero-side { grid-template-columns: minmax(0, 1fr); }
  .side-card { aspect-ratio: 16 / 9; }
}

@media (prefers-reduced-motion: reduce) {
  .hs-track,
  .news-item,
  .news-thumb img,
  .side-img,
  .cb-lead-media img { transition: none; }
  .news-item:hover { transform: none; }
}

/* =========================================
   v2.1 — PAGINATION (rapi)
   <ul class="page-numbers"> ikut terkena style .page-numbers dari
   style.css (border/tinggi 40px) sehingga kotaknya bersarang & menempel.
   ========================================= */
ul.page-numbers {
  height: auto;
  min-width: 0;
  padding: 0;
  border: 0;
  background: none;
  box-shadow: none;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}
ul.page-numbers:hover { border: 0; background: none; }
ul.page-numbers li { display: block; }

ul.page-numbers .page-numbers {
  min-width: 42px;
  height: 42px;
  padding: 0 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  background: white;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-body);
}
ul.page-numbers a.page-numbers:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}
ul.page-numbers .page-numbers.current {
  border-color: var(--primary);
  background: var(--primary);
  color: #fff;
  box-shadow: 0 4px 12px rgba(37,99,235,0.25);
}
ul.page-numbers .page-numbers.dots {
  min-width: 28px;
  padding: 0;
  border-color: transparent;
  background: transparent;
  color: var(--text-light);
  letter-spacing: 2px;
}
ul.page-numbers .page-numbers.prev,
ul.page-numbers .page-numbers.next {
  padding: 0 18px;
  font-size: 0.8125rem;
  letter-spacing: 0.03em;
}
.pagination-wrap { margin-top: 40px; }

@media (max-width: 480px) {
  ul.page-numbers { gap: 6px; }
  ul.page-numbers .page-numbers { min-width: 38px; height: 38px; padding: 0 8px; }
  ul.page-numbers .page-numbers.prev,
  ul.page-numbers .page-numbers.next { padding: 0 12px; }
}

/* =========================================
   v2.1 — FOOTER
   ========================================= */
#colophon {
  margin-top: 24px;
  background: var(--bg-light);
  border-top: 1px solid var(--border);
}
.footer-widgets {
  grid-template-columns: 1.3fr 1.3fr 1fr;
  gap: 48px;
  padding: 56px 0 44px;
  border-bottom: 1px solid var(--border);
}

/* Brand */
.footer-brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
  text-decoration: none;
}
.footer-brand .logo-icon { width: 38px; height: 38px; }
.footer-brand-name {
  font-family: var(--font-heading);
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-dark);
}
.footer-col-desc { max-width: 340px; }

/* Kategori sebagai chip */
.footer-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.footer-cats a {
  display: inline-block;
  padding: 6px 13px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: white;
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--text-body);
  transition: all var(--transition);
}
.footer-cats a:hover {
  border-color: var(--primary);
  background: var(--primary-light);
  color: var(--primary-dark);
}

/* Artikel terbaru dengan thumbnail */
.footer-recent-posts { gap: 16px; }
.footer-recent-posts .footer-recent-item {
  flex-direction: row;
  align-items: flex-start;
  gap: 12px;
}
.footer-recent-thumb {
  flex: 0 0 64px;
  width: 64px;
  aspect-ratio: 4 / 3;
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: linear-gradient(135deg, var(--accent) 0%, #F59E0B 100%);
}
.footer-recent-thumb img { width: 100%; height: 100%; object-fit: cover; }
.footer-recent-thumb .no-image {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.footer-recent-thumb .no-image-text { font-size: 1.25rem; padding: 0; }
.footer-recent-body { min-width: 0; display: flex; flex-direction: column; gap: 3px; }
.footer-recent-posts li a.footer-recent-title {
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Baris bawah */
.footer-bottom-row { padding: 20px 0 24px; }
.footer-bottom-row .footer-copyright { font-size: 0.8125rem; color: var(--text-muted); }

@media (max-width: 960px) {
  .footer-widgets { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-widgets .footer-col:first-child { grid-column: 1 / -1; }
  .footer-col-desc { max-width: 520px; }
}
@media (max-width: 600px) {
  .footer-widgets { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 32px; }
}
