/*
Theme Name: Holopis Nusantara
Theme URI: https://holopis.com
Author: Holopis.com
Author URI: https://holopis.com
Description: Tema WordPress portal berita ringan, cepat, dan responsif untuk Holopis.com dengan font Barlow & Playfair Display, dark mode menyeluruh, hero slider 3 detik, blok filter tag, dan integrasi snippet Holopis.
Version: 1.1.0
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: holopis-nusantara
*/

:root {
  --maroon: #800000;
  --maroon-dark: #4a0000;
  --red: #b5121b;
  --ink: #172033;
  --muted: #6b7280;
  --line: #e5e7eb;
  --paper: #ffffff;
  --soft: #f5f6f8;
  --card: #ffffff;
  --container: 1200px;
  --font-sans: 'Barlow', Arial, Helvetica, sans-serif;
  --font-serif: 'Playfair Display', Georgia, serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font: 15px/1.55 var(--font-sans);
}
a { color: inherit; text-decoration: none; }
a:hover { color: var(--red); }
img { max-width: 100%; height: auto; display: block; }

.container { width: min(var(--container), calc(100% - 40px)); margin-inline: auto; }
.screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.theme-toggle-input { position: absolute; opacity: 0; pointer-events: none; }

/* Post Title Typography: Playfair Display khusus judul berita di halaman post */
.single-article-header h1,
.entry-content h2 {
  font-family: var(--font-serif);
}

/* Header & Logo Light/Dark */
.site-header { position: relative; z-index: 60; background: var(--paper); }
.brand-row { min-height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 8px; flex: 0 0 auto; color: #850000; }
.brand-mark {
  width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%;
  border: 3px solid #850000; outline: 1px solid #850000; outline-offset: 2px;
  background: #fff; color: #850000; font-size: 34px; font-weight: 900; line-height: 1; font-style: italic;
}
.brand-logo-img { max-height: 54px; width: auto; }
.brand-logo-dark { display: none; }
.brand b { display: block; font-size: 34px; letter-spacing: -1.2px; line-height: 1.05; color: #850000; }
.brand b span { color: #850000; font-weight: 400; }
.brand small { display: block; font-size: 10px; font-weight: 700; letter-spacing: 2px; color: #777; font-style: italic; }

.header-actions { display: flex; align-items: center; gap: 15px; }
.social-links { display: flex; align-items: center; gap: 16px; }
.social-links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; color: #850000; transition: transform .18s ease, opacity .18s ease;
}
.social-links a:hover { transform: translateY(-1px); opacity: .8; }
.social-links a svg, .footer-social a svg { width: 18px; height: 18px; fill: currentColor; display: block; }

.search-form {
  display: flex; flex: 0 1 280px; height: 44px;
  border: 1px solid var(--line); border-radius: 8px; overflow: hidden; background: var(--paper);
}
.search-form input {
  min-width: 0; width: 100%; border: 0; padding: 0 14px; outline: 0;
  background: transparent; color: var(--ink); font: 14px var(--font-sans);
}
.search-form button {
  width: 42px; border: 0; background: transparent; color: var(--ink);
  font-size: 20px; cursor: pointer; display: grid; place-items: center;
}

/* Darkmode Switcher (Moon in Light, Sun in Dark) */
.theme-switch-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 10%; border: 1px solid var(--line);
  background: var(--soft); color: var(--ink); cursor: pointer; transition: all .2s ease;
}
.theme-switch-icon:hover { border-color: var(--maroon); color: var(--maroon); }
.theme-switch-icon svg { width: 20px; height: 20px; }
.theme-switch-icon .icon-sun { display: none; }

.header-ad-wrap { padding: 0px; display: flex; justify-content: center; }
.ad {
  display: flex; flex-direction: column; justify-content: center; align-items: center;
  color: #666; background: repeating-linear-gradient(135deg,#f0f0f2,#f0f0f2 12px,#e9eaed 12px,#e9eaed 24px);
  border: 1px solid #e1e2e5; border-radius: 4px; text-align: center; font-size: 12px;
}
.ad b { font-size: 13px; }
.ad-slot-filled { width: 100%; display: flex; justify-content: center; align-items: center; overflow: hidden; margin-bottom: 16px; }
.ad-header-wide { width: min(970px,100%); max-width: 970px; height: 90px; flex: 0 1 970px; margin-bottom: 0; }
.ad-sidebar-300 { width: 100%; min-height: 300px; margin-bottom: 18px; }
.ad-article { width: 100%; min-height: 90px; margin: 18px 0; }
.ad-inpost { width: 100%; min-height: 90px; margin: 18px 0; }
.mobile-ad, .mobile-utility, .mobile-brand-row { display: none; }

/* Navigation */
.main-nav { background: var(--paper); color: var(--ink); border-bottom: 1px solid var(--red); }
.nav-inner { min-height: 50px; display: flex; align-items: center; justify-content: space-between; gap: 0; }
.nav-menu {
  list-style: none; margin: 0; padding: 0; display: flex; align-items: center;
  justify-content: space-between; width: 100%; flex-wrap: nowrap;
}
.nav-menu > li { position: relative; flex: 0 0 auto; }
.nav-menu > li > a {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 13px 9px 15px; color: var(--ink); font-size: 15px; font-weight: 500;
  text-transform: uppercase; white-space: nowrap;
}
.nav-menu > li > a:hover,
.nav-menu > li.current-menu-item > a,
.nav-menu > li.current-category-ancestor > a { color: var(--maroon); }
.nav-menu .sub-menu {
  display: none; position: absolute; top: 100%; left: 0; min-width: 190px;
  background: var(--card); border: 1px solid var(--line); box-shadow: 0 8px 20px rgba(0,0,0,.12);
  list-style: none; margin: 0; padding: 6px 0; z-index: 80;
}
.nav-menu > li:hover > .sub-menu { display: block; }
.nav-menu .sub-menu li a {
  display: block; padding: 8px 14px; font-size: 13px; text-transform: none; color: var(--ink);
}
.nav-menu .sub-menu li a:hover { background: var(--soft); color: var(--maroon); }

/* Trending Tags Row */
.trending-row { background: var(--paper); border-bottom: 1px solid var(--line); }
.trending-tags {
  display: flex; align-items: center; gap: 12px; padding-top: 10px; padding-bottom: 10px;
  overflow-x: auto; scrollbar-width: none;
}
.trending-tags::-webkit-scrollbar { display: none; }
.trending-tags ul.trending-tags-container {
  display: flex; flex-wrap: nowrap; gap: 10px; padding: 0; margin: 0; list-style: none;
}
.trending-tags ul.trending-tags-container li { flex: 0 0 auto; margin: 0; }
.trending-tags a,
.trending-tags .tag-item-link {
  flex: 0 0 auto; display: inline-flex; align-items: center;
  padding: 5px 14px; border: 1px solid #dce3eb; border-radius: 30px;
  color: #344256; background: var(--card);
  box-shadow: 0 1px 3px rgba(20,30,50,.05); font-size: 13px; font-weight: 600;
  white-space: nowrap; transition: all .2s ease;
}
.trending-tags a:hover,
.trending-tags .tag-item-link:hover {
  border-color: var(--maroon); color: #fff; background: var(--maroon); transform: translateY(-1px);
}

/* Main Layout */
.page-layout {
  display: grid; grid-template-columns: minmax(0, 1fr) 300px;
  gap: 24px; padding-top: 18px; padding-bottom: 32px; align-items: start;
}
.primary-column { min-width: 0; }

/* Category Badge Precision (hindari bentrok dengan body.category) */
a.category,
span.category {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 4px 9px; line-height: 1.1; color: #fff; background: var(--red);
  border-radius: 3px; font-family: var(--font-sans); font-size: 10px; font-weight: 700;
  letter-spacing: .5px; text-transform: uppercase; vertical-align: middle;
}
a.category:hover { background: var(--maroon-dark); color: #fff; }

/* Hero Slider */
.hero { position: relative; overflow: hidden; border-radius: 8px; background: #1e2430; }
.hero-track { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; }
.hero-track::-webkit-scrollbar { display: none; }
.hero-slide {
  position: relative; flex: 0 0 100%; min-height: 400px; display: flex; align-items: flex-end;
  padding: 26px; color: #fff; scroll-snap-align: start; background-size: cover; background-position: center;
}
.hero-slide::before {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(0,0,0,.08) 0%, rgba(0,0,0,.45) 50%, rgba(0,0,0,.88) 100%);
  z-index: 1;
}
.hero-copy { position: relative; z-index: 2; max-width: 680px; }
.hero h1, .hero h2 {
  max-width: 680px; margin: 10px 0 8px;
  font-size: clamp(24px, 3vw, 34px); font-weight: 700; line-height: 1.18; color: #fff;
}
.hero h1 a:hover, .hero h2 a:hover { color: #ffd6d6; }
.hero-time { font-size: 13px; font-weight: 500; color: rgba(255,255,255,.85); }
.hero-controls { position: absolute; right: 18px; bottom: 18px; z-index: 3; display: flex; gap: 10px; color: #fff; }
.hero-controls a { color: #fff; font-size: 14px; opacity: .75; }
.hero-controls a.is-active, .hero-controls a:hover { opacity: 1; }
.hero-timecount {
  position: absolute; top: 14px; right: 16px; z-index: 4;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px; border-radius: 999px;
  background: rgba(0,0,0,.62); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: .3px; backdrop-filter: blur(4px);
}
.hero-progress { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: rgba(255,255,255,.22); z-index: 4; }
.hero-progress-bar { display: block; width: 0%; height: 100%; background: var(--red); }

/* News Feed */
.news-feed { margin-top: 16px; }
.feed-list { display: grid; gap: 0; }
.news-item { display: flex; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); min-height: 122px; }
.news-thumb {
  display: block; flex: 0 0 180px; width: 180px; height: 112px; border-radius: 5px;
  overflow: hidden; background-color: #d9dce1;
}
.news-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .25s ease; }
.news-thumb:hover img { transform: scale(1.03); }
.news-copy { min-width: 0; align-self: center; }
.news-copy h2 { margin: 7px 0 7px; font-size: 19px; font-weight: 700; line-height: 1.28; }
.news-copy p { margin: 0; color: var(--muted); font-size: 12px; }
.news-copy p span { padding: 0 4px; }
.ad-feed { min-height: 90px; margin: 16px 0; }

/* Indeks Berita CTA Button */
.index-cta-wrap { margin-top: 24px; display: flex; justify-content: center; }
.index-cta-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 11px 26px; border-radius: 6px;
  background: var(--maroon); color: #fff; font-size: 14px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px; transition: background .2s ease;
}
.index-cta-btn:hover { background: var(--maroon-dark); color: #fff; }

/* Indeks Berita Filter Form */
.index-filter-form {
  display: grid; grid-template-columns: 1fr 160px 1fr auto; gap: 10px;
  padding: 14px; margin-bottom: 18px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--soft);
}
.index-filter-form select,
.index-filter-form input {
  height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 5px;
  background: var(--paper); color: var(--ink); font: 14px var(--font-sans);
}
.index-filter-form button {
  height: 40px; padding: 0 18px; border: 0; border-radius: 5px;
  background: var(--maroon); color: #fff; font: 700 14px var(--font-sans); cursor: pointer;
}
.index-filter-form button:hover { background: var(--maroon-dark); }

/* Tag Spotlight Card (1 Lead + 3 List) */
.tag-spotlight {
  margin: 20px 0; padding: 18px 20px; border: 1px solid #dbe4f0;
  border-radius: 10px; background: #f4f7fb;
}
.tag-spotlight-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.tag-spotlight-header h2 { margin: 0; font-size: 17px; font-weight: 700; color: #1a365d; }
.tag-spotlight-more { font-size: 12px; font-weight: 700; color: #1a365d; white-space: nowrap; }
.tag-spotlight-more:hover { color: var(--maroon); }
.tag-spotlight-grid { display: grid; grid-template-columns: 1.05fr 1fr; gap: 20px; align-items: stretch; }
.tag-spotlight-lead {
  position: relative; border-radius: 8px; overflow: hidden; min-height: 245px;
  background-color: #0f294a; background-size: cover; background-position: center;
}
.tag-spotlight-lead-link {
  display: flex; align-items: flex-end; width: 100%; height: 100%; min-height: 245px;
  padding: 18px; color: #fff; text-decoration: none;
  background: linear-gradient(180deg, rgba(10,30,65,.12) 0%, rgba(10,30,65,.55) 55%, rgba(8,26,58,.94) 100%);
}
.tag-spotlight-lead-link:hover { color: #fff; }
.tag-spotlight-lead-copy h3 { margin: 0 0 8px; font-size: 18px; font-weight: 700; line-height: 1.3; color: #fff; }
.tag-spotlight-lead-copy .tag-spotlight-read { font-size: 12px; color: rgba(255,255,255,.82); }
.tag-spotlight-list { display: flex; flex-direction: column; justify-content: space-between; }
.tag-spotlight-item { padding: 10px 0; border-bottom: 1px solid #dfe6f0; }
.tag-spotlight-item:first-child { padding-top: 2px; }
.tag-spotlight-item:last-child { border-bottom: 0; padding-bottom: 2px; }
.tag-spotlight-item h3 { margin: 0 0 5px; font-size: 16px; font-weight: 700; line-height: 1.36; color: #1e3a5f; }
.tag-spotlight-item h3 a:hover { color: var(--maroon); }
.tag-spotlight-item .tag-spotlight-read { font-size: 12px; color: var(--muted); }

/* Sidebar */
.sidebar { position: sticky; top: 16px; }
.widget { border: 1px solid var(--line); border-radius: 6px; overflow: hidden; background: var(--card); margin-bottom: 18px; }
.widget h2, .widget-title { margin: 0; padding: 12px 14px; background: var(--maroon); color: #fff; font-size: 15px; font-weight: 700; text-transform: uppercase; letter-spacing: .4px; }
.category-widget { padding-bottom: 4px; }
.category-widget a {
  display: flex; align-items: center; justify-content: space-between;
  padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 14px; font-weight: 500;
}
.category-widget a:last-child { border-bottom: 0; }
.category-widget a:hover { background: var(--soft); color: var(--maroon); }
.category-widget .cat-arrow { font-size: 16px; line-height: 1; color: var(--muted); }

/* Sidebar Widget: YANG TERBARU (matches reference) */
.latest-widget { margin-bottom: 20px; }
.latest-widget-heading {
  margin: 0 0 12px; font-size: 20px; font-weight: 800; letter-spacing: .3px;
  text-transform: uppercase; color: var(--ink);
}
.latest-widget-lead {
  padding-bottom: 14px; margin-bottom: 14px; border-bottom: 1px dashed #cbd5e1;
}
.latest-lead-thumb { display: block; margin-bottom: 10px; border-radius: 3px; overflow: hidden; }
.latest-lead-thumb img { width: 100%; height: 175px; object-fit: cover; }
.latest-widget-lead h3 { margin: 0 0 6px; font-size: 20px; font-weight: 700; line-height: 1.25; color: var(--ink); }
.latest-widget-lead time,
.latest-widget-item time {
  display: block; font-size: 11px; font-weight: 500; color: var(--muted);
  text-transform: uppercase; letter-spacing: .2px;
}
.latest-widget-item { padding-bottom: 12px; margin-bottom: 12px; border-bottom: 1px solid var(--line); }
.latest-widget-item:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.latest-widget-item h3 { margin: 0 0 5px; font-size: 15px; font-weight: 700; line-height: 1.35; color: var(--ink); }

/* Single Post, Archive & Page */
.archive-header { margin-bottom: 16px; padding-bottom: 12px; border-bottom: 3px solid var(--maroon); }
.archive-header h1 { margin: 0 0 4px; font-size: 24px; color: var(--ink); }
.archive-header p { margin: 0; color: var(--muted); font-size: 13px; }

.breadcrumb { font-size: 12px; color: var(--muted); margin-bottom: 12px; }
.breadcrumb a { color: var(--maroon); font-weight: 600; }
.single-article-header h1 {
  margin: 10px 0 12px; font-size: clamp(26px, 3.2vw, 36px); font-weight: 700; line-height: 1.2; color: var(--ink);
}
.article-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  font-size: 13px; color: var(--muted); padding-bottom: 14px; margin-bottom: 16px; border-bottom: 1px solid var(--line);
}
.article-featured-image { margin: 0 0 18px; }
.article-featured-image img { width: 100%; border-radius: 6px; max-height: 480px; object-fit: cover; }
.article-featured-image figcaption { font-size: 12px; color: var(--muted); margin-top: 6px; font-style: italic; }

.entry-content { font-size: 16px; line-height: 1.72; color: var(--ink); }
.entry-content p { margin: 0 0 16px; }
.entry-content h2, .entry-content h3 { margin: 24px 0 10px; color: var(--ink); line-height: 1.3; }
.entry-content a { color: var(--red); text-decoration: underline; }
/* Blockquote Playfair Display + Highlight UI */
.entry-content blockquote {
  font-family: var(--font-sans); font-size: 18px; line-height: 1.55;
  margin: 22px 0; padding: 18px 22px; border-left: 4px solid var(--maroon);
  border-radius: 0 8px 8px 0; background: rgba(128,0,0,.06);
  color: var(--ink); font-style: italic;
}
.entry-content blockquote p:last-child { margin-bottom: 0; }
.entry-content ul, .entry-content ol { margin: 0 0 16px; padding-left: 22px; }
/* Gambar Full-Width & Caption Rata Tengah */
.entry-content figure,
.entry-content .wp-caption { width: 100%; max-width: 100%; margin: 20px 0; }
.entry-content img,
.entry-content figure img,
.entry-content .wp-caption img { width: 100%; max-width: 100%; height: auto; border-radius: 6px; }
.entry-content figcaption,
.entry-content .wp-caption-text {
  text-align: center; font-size: 13px; color: var(--muted);
  margin-top: 8px; font-style: italic; line-height: 1.45;
}
.aligncenter { margin-inline: auto; text-align: center; }

.article-tags {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
  margin: 22px 0; padding-top: 16px; border-top: 1px solid var(--line);
}
.article-tags span.tags-label { font-size: 13px; font-weight: 700; color: var(--muted); margin-right: 4px; }
.article-tags a {
  padding: 5px 12px; border: 1px solid var(--line); border-radius: 20px;
  font-size: 12px; font-weight: 600; background: var(--soft);
}
.article-tags a:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* Next-Prev Post tepat di bawah tag */
.next-prev-post {
  display: grid; grid-template-columns: 1fr 1fr; gap: 14px;
  margin: 18px 0 24px; padding: 16px; border: 1px solid var(--line);
  border-radius: 8px; background: var(--soft);
}
.next-prev-col a { display: block; }
.next-prev-col.next-col { text-align: right; }
.next-prev-col .np-label { display: block; font-size: 11px; font-weight: 700; text-transform: uppercase; color: var(--maroon); margin-bottom: 4px; }
.next-prev-col strong { display: block; font-size: 15px; line-height: 1.32; color: var(--ink); }
.next-prev-col a:hover strong { color: var(--maroon); }

.related-posts { margin-top: 28px; padding-top: 18px; border-top: 2px solid var(--maroon); }
.related-posts h3 { margin: 0 0 14px; font-size: 18px; }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.related-card a { display: block; }
.related-card img { width: 100%; height: 115px; object-fit: cover; border-radius: 4px; margin-bottom: 8px; }
.related-card h4 { margin: 0; font-size: 15px; line-height: 1.35; }

/* Credit Box ([post_editor_box]) */
.contributor-box { margin: 18px 0; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; background: var(--soft); }
.contributor-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.contributor-compact { display: flex; align-items: center; gap: 12px; min-width: 0; }
.avatar-stack { display: flex; align-items: center; }
.stack-avatar { width: 38px; height: 38px; border-radius: 50%; overflow: hidden; border: 2px solid var(--paper); background: var(--card); }
.stack-avatar + .stack-avatar { margin-left: -10px; }
.stack-avatar img, .contributor-avatar img { width: 100%; height: 100%; object-fit: cover; }
.credit-title { font-size: 11px; text-transform: uppercase; letter-spacing: .6px; color: var(--muted); font-weight: 700; }
.contributor-names { font-size: 14px; font-weight: 700; color: var(--ink); }
.contributor-toggle {
  width: 32px; height: 32px; border: 1px solid var(--line); border-radius: 50%;
  background: var(--card); color: var(--ink); cursor: pointer; display: grid; place-items: center;
  flex-shrink: 0; transition: transform .2s ease;
}
.contributor-box.active .contributor-toggle { transform: rotate(180deg); }
.contributor-expand { max-height: 0; overflow: hidden; transition: max-height .25s ease; display: grid; gap: 10px; }
.contributor-box.active .contributor-expand { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.contributor-item { display: flex; align-items: center; gap: 12px; }
.contributor-avatar { width: 44px; height: 44px; border-radius: 50%; overflow: hidden; flex-shrink: 0; }
.contributor-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.contributor-name:hover { color: var(--maroon); }
.contributor-role { font-size: 12px; color: var(--muted); }

/* Pagination */
.pagination-wrap { margin-top: 22px; display: flex; justify-content: center; gap: 6px; flex-wrap: wrap; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers {
  display: inline-flex; align-items: center; justify-content: center; min-width: 36px; height: 36px;
  padding: 0 10px; border: 1px solid var(--line); border-radius: 4px; font-size: 13px; font-weight: 700; background: var(--card);
}
.page-numbers.current, .page-numbers:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* Comments */
.comments-area { margin-top: 28px; padding-top: 20px; border-top: 1px solid var(--line); }
.comment-list { list-style: none; padding: 0; margin: 0 0 20px; }
.comment-body { padding: 12px 14px; border: 1px solid var(--line); border-radius: 5px; margin-bottom: 10px; background: var(--card); }
.comment-respond input[type="text"],
.comment-respond input[type="email"],
.comment-respond input[type="url"],
.comment-respond textarea {
  width: 100%; padding: 9px 12px; border: 1px solid var(--line); border-radius: 4px;
  background: var(--paper); color: var(--ink); font: inherit;
}
.comment-respond input[type="submit"] {
  padding: 10px 18px; border: 0; border-radius: 4px; background: var(--maroon); color: #fff; font-weight: 700; cursor: pointer;
}

/* Footer */
.site-footer { color: #fff; background: var(--maroon-dark); }
.footer-main { display: grid; grid-template-columns: 1fr 1.35fr 1.2fr; gap: 28px; padding-top: 25px; padding-bottom: 25px; }
.footer-about, .footer-partners { border-right: 1px solid rgba(255,255,255,.35); padding-right: 24px; }
.brand-footer { color: #fff; }
.brand-footer .brand-mark { color: var(--maroon); background: #fff; border-color: #fff; outline-color: #fff; }
.brand-footer b, .brand-footer b span, .brand-footer small { color: #fff; }
.brand-footer b { font-size: 24px; }
.footer-about p { max-width: 280px; margin: 10px 0 0; font-size: 12px; color: #eee; }
.site-footer h2 { margin: 0 0 12px; font-size: 12px; text-transform: uppercase; letter-spacing: .5px; }
.partner-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 14px; }
.partner-logos span { color: #fff; font-size: 18px; font-weight: 800; }
.footer-links nav, .footer-menu { display: flex; flex-wrap: wrap; gap: 8px 12px; font-size: 12px; list-style: none; margin: 0; padding: 0; }
.footer-social { display: flex; gap: 14px; margin-top: 14px; }
.footer-social a { color: #fff; opacity: .9; }
.footer-social a:hover { opacity: 1; }
.copyright { padding: 10px 15px; text-align: center; background: #171717; font-size: 11px; color: #ddd; }

/* ============================================================
 * DARK MODE MENYELURUH (#theme-toggle:checked + body.dark-mode)
 * ============================================================ */
body.dark-mode,
#theme-toggle:checked ~ .site-shell,
body.dark-mode .site-shell {
  --ink: #edf0f5;
  --muted: #aab2c0;
  --line: #2d3748;
  --paper: #0f1520;
  --soft: #172030;
  --card: #192231;
}

/* Logo Dark Mode / Auto-Invert */
#theme-toggle:checked ~ .site-shell .brand-logo-dark,
body.dark-mode .brand-logo-dark { display: block; }
#theme-toggle:checked ~ .site-shell .brand:not(.has-auto-invert) .brand-logo-light,
body.dark-mode .brand:not(.has-auto-invert) .brand-logo-light { display: none; }
#theme-toggle:checked ~ .site-shell .brand.has-auto-invert .brand-logo-light,
body.dark-mode .brand.has-auto-invert .brand-logo-light {
  filter: brightness(0) invert(1) opacity(.95);
}
#theme-toggle:checked ~ .site-shell .brand b,
#theme-toggle:checked ~ .site-shell .brand b span,
body.dark-mode .brand b,
body.dark-mode .brand b span { color: #edf0f5; }
#theme-toggle:checked ~ .site-shell .brand small,
body.dark-mode .brand small { color: #cbd5e1; }
#theme-toggle:checked ~ .site-shell .header-actions .social-links a,
body.dark-mode .header-actions .social-links a { color: #edf0f5; }

/* Switcher Icon: Sun in Dark Mode */
#theme-toggle:checked ~ .site-shell .theme-switch-icon .icon-moon,
body.dark-mode .theme-switch-icon .icon-moon { display: none; }
#theme-toggle:checked ~ .site-shell .theme-switch-icon .icon-sun,
body.dark-mode .theme-switch-icon .icon-sun { display: block; color: #fbbf24; }

#theme-toggle:checked ~ .site-shell .search-form,
body.dark-mode .search-form { background: #192231; }
#theme-toggle:checked ~ .site-shell .ad,
body.dark-mode .ad {
  color: #cbd5e1;
  background: repeating-linear-gradient(135deg,#222b39,#222b39 12px,#1b2431 12px,#1b2431 24px);
  border-color: #2d3748;
}
#theme-toggle:checked ~ .site-shell .news-thumb img,
#theme-toggle:checked ~ .site-shell .latest-lead-thumb img,
body.dark-mode .news-thumb img,
body.dark-mode .latest-lead-thumb img { filter: brightness(.9); }

/* Dark Mode: Trending Tags & Popular Posts */
#theme-toggle:checked ~ .site-shell .tag-item-link,
body.dark-mode .tag-item-link { background: #192231 !important; color: #edf0f5 !important; border-color: #2d3748 !important; }
#theme-toggle:checked ~ .site-shell .tag-item-link:hover,
body.dark-mode .tag-item-link:hover { background: var(--maroon) !important; color: #fff !important; border-color: var(--maroon) !important; }
#theme-toggle:checked ~ .site-shell .wp-popular-posts-title-heading,
body.dark-mode .wp-popular-posts-title-heading { color: #fff !important; border-bottom-color: #fff !important; }
#theme-toggle:checked ~ .site-shell .wp-popular-posts-item,
body.dark-mode .wp-popular-posts-item { background: #192231 !important; border-color: #2d3748 !important; }
#theme-toggle:checked ~ .site-shell .wp-popular-posts-item:hover,
body.dark-mode .wp-popular-posts-item:hover { background: #222d40 !important; }
#theme-toggle:checked ~ .site-shell .wp-popular-posts-number,
body.dark-mode .wp-popular-posts-number { color: #fff !important; }
#theme-toggle:checked ~ .site-shell .wp-popular-posts-title,
body.dark-mode .wp-popular-posts-title { color: #edf0f5 !important; }
#theme-toggle:checked ~ .site-shell .wp-popular-posts-date,
body.dark-mode .wp-popular-posts-date { background: #232d3f !important; border-color: #394457 !important; color: #ddd !important; }

/* Dark Mode: Tag Spotlight, Share Pro, Latest Widget, Next-Prev */
#theme-toggle:checked ~ .site-shell .tag-spotlight,
body.dark-mode .tag-spotlight { background: #161f2e; border-color: #2b3648; }
#theme-toggle:checked ~ .site-shell .tag-spotlight-header h2,
body.dark-mode .tag-spotlight-header h2,
#theme-toggle:checked ~ .site-shell .tag-spotlight-more,
body.dark-mode .tag-spotlight-more,
#theme-toggle:checked ~ .site-shell .tag-spotlight-item h3,
body.dark-mode .tag-spotlight-item h3 { color: #edf0f5; }
#theme-toggle:checked ~ .site-shell .tag-spotlight-item,
body.dark-mode .tag-spotlight-item { border-bottom-color: #2b3648; }
#theme-toggle:checked ~ .site-shell .latest-widget-lead,
body.dark-mode .latest-widget-lead { border-bottom-color: #2d3748; }

#theme-toggle:checked ~ .site-shell .hshare-container,
body.dark-mode .hshare-container { background: #192231 !important; border-color: #2d3748 !important; }
#theme-toggle:checked ~ .site-shell .hshare-stat,
body.dark-mode .hshare-stat { border-right-color: #2d3748 !important; }
#theme-toggle:checked ~ .site-shell .hshare-count,
body.dark-mode .hshare-count { color: #edf0f5 !important; }
#theme-toggle:checked ~ .site-shell .hshare-label,
body.dark-mode .hshare-label { color: #aab2c0 !important; }
#theme-toggle:checked ~ .site-shell .hshare-google,
body.dark-mode .hshare-google { --hgoogle-paper: #192231 !important; color: #edf0f5 !important; }

/* Responsive Tablet */
@media (max-width: 1050px) and (min-width: 701px) {
  .container { width: min(100% - 28px, var(--container)); }
  .brand-row { min-height: 76px; gap: 12px; }
  .brand b { font-size: 28px; }
  .brand-mark { width: 43px; height: 43px; font-size: 30px; }
  .header-actions { gap: 14px; }
  .header-actions .social-links { gap: 11px; }
  .search-form { flex-basis: 200px; }
  .nav-inner { overflow-x: auto; justify-content: flex-start; scrollbar-width: none; }
  .nav-inner::-webkit-scrollbar { display: none; }
  .nav-menu { justify-content: flex-start; }
  .page-layout { grid-template-columns: minmax(0,1fr) 260px; gap: 14px; }
}

/* Responsive Mobile */
@media (max-width: 700px) {
  .container { width: calc(100% - 24px); }
  .brand-row { display: none; }
  .site-header { display: contents; }
  .mobile-utility {
    display: flex; min-height: 29px; padding: 3px 16px; align-items: center;
    justify-content: space-between; color: #fff; background: #850000; font-size: 11px;
  }
  .mobile-utility .social-links { gap: 12px; }
  .mobile-utility .social-links a { color: #fff; width: 18px; height: 18px; }
  .mobile-utility .social-links a svg { width: 15px; height: 15px; }
  .mobile-brand-row { display: flex; position: sticky; top: 0; z-index: 100; background: var(--paper); box-shadow: 0 2px 8px rgba(0,0,0,.10); min-height: 68px; padding: 8px 16px; align-items: center; justify-content: space-between; }
  .mobile-brand-row .brand-mark { width: 42px; height: 42px; font-size: 28px; }
  .mobile-brand-row .brand b { font-size: clamp(22px,6vw,30px); }
  .mobile-brand-row .brand small { font-size: 8px; letter-spacing: 1.4px; }
  .header-ad-wrap { padding: 0 12px 8px; }
  .header-ad-wrap .ad-header-wide { display: none; }
  .mobile-ad { display: flex; width: 100%; height: 50px; margin-bottom: 0; }
  .main-nav { border-bottom: 1px solid var(--red); }
  .nav-inner {
    width: 100%; min-height: 46px; padding: 0 14px; overflow-x: auto;
    justify-content: flex-start; scrollbar-width: thin; scrollbar-color: #999 #eee;
  }
  .nav-menu { gap: 18px; justify-content: flex-start; }
  .nav-menu > li > a { padding: 11px 0; font-size: 14px; }
  .trending-row { display: none; }

  .page-layout { display: block; padding-top: 10px; }
  .hero { border-radius: 5px; }
  .hero-slide { min-height: 360px; padding: 18px; }
  .hero h1, .hero h2 { font-size: 22px; }
  .hero-controls { bottom: 12px; right: 12px; }
  .news-item { gap: 11px; min-height: 100px; padding: 11px 0; }
  .news-thumb { flex-basis: 120px; width: 120px; height: 104px; align-self: center; }
  .news-copy h2 { font-size: 15px; line-height: 1.28; margin: 5px 0; }
  .news-copy p { font-size: 11px; }
  .ad-feed { min-height: 60px; margin: 12px 0; }
  .tag-spotlight { padding: 14px; }
  .tag-spotlight-grid { grid-template-columns: 1fr; gap: 14px; }
  .tag-spotlight-lead, .tag-spotlight-lead-link { min-height: 200px; }
  .index-filter-form { grid-template-columns: 1fr; }
  .next-prev-post { grid-template-columns: 1fr; }
  .next-prev-col.next-col { text-align: left; }
  .related-grid { grid-template-columns: 1fr; }
  .sidebar { position: static; margin-top: 24px; }
  .footer-main { display: block; padding-top: 20px; padding-bottom: 18px; }
  .footer-about, .footer-partners { border: 0; border-bottom: 1px solid rgba(255,255,255,.25); padding: 0 0 15px; margin-bottom: 15px; }
  .footer-about p { max-width: none; }
  .partner-logos { gap: 10px 16px; }
  .partner-logos span { font-size: 16px; }
}

/* Footer Logo Default dengan Filter Putih */
.footer-logo-img {
  max-height: 48px; width: auto;
  filter: brightness(0) invert(1) opacity(.95);
}

/* Baca Juga Card Grid (filter tag yang sama) */
.baca-juga { margin-top: 28px; margin-bottom: 20px; padding-top: 20px; border-top: 2px solid var(--maroon); }
.baca-juga-heading {
  margin: 0 0 14px; font-size: 18px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .4px; color: var(--ink);
}
.baca-juga-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.bj-card {
  display: flex; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line); border-radius: 10px;
  background: var(--card); box-shadow: 0 2px 8px rgba(15,23,42,.06);
  transition: transform .2s ease, box-shadow .2s ease;
}
.bj-card:hover { transform: translateY(-2px); box-shadow: 0 6px 16px rgba(15,23,42,.12); }
.bj-card-thumb { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--soft); }
.bj-card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.bj-thumb-fallback { display: grid; place-items: center; width: 100%; height: 100%; font-weight: 900; font-size: 28px; color: var(--maroon); }
.bj-card-body { display: flex; flex-direction: column; flex: 1; padding: 12px 14px; }
.bj-card-source {
  display: flex; align-items: center; gap: 6px; margin-bottom: 6px;
  font-size: 11px; font-weight: 600; color: var(--muted);
}
.bj-source-dot {
  display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 3px;
  background: var(--maroon); color: #fff; font-size: 10px; font-weight: 900; font-style: italic;
}
.bj-card-body h4 {
  font-family: var(--font-sans); margin: 0 0 12px; font-size: 15px; font-weight: 700;
  line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.bj-card-body h4 a:hover { color: var(--maroon); }
.bj-card-footer {
  margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line);
  display: flex; align-items: center; justify-content: space-between;
  font-size: 11px; color: var(--muted);
}
.bj-more { font-weight: 700; color: var(--maroon); }

/* Dark mode polish for single article, breadcrumb, tags, and Baca Juga */
body.dark-mode .single-article-header h1,
body.dark-mode .entry-content,
body.dark-mode .entry-content h2,
body.dark-mode .entry-content h3,
body.dark-mode .entry-content p,
body.dark-mode .entry-content li,
body.dark-mode .latest-widget-heading,
body.dark-mode .latest-widget-lead h3,
body.dark-mode .latest-widget-item h3,
body.dark-mode .baca-juga-heading,
body.dark-mode .bj-card-body h4,
#theme-toggle:checked ~ .site-shell .single-article-header h1,
#theme-toggle:checked ~ .site-shell .entry-content,
#theme-toggle:checked ~ .site-shell .entry-content h2,
#theme-toggle:checked ~ .site-shell .entry-content h3,
#theme-toggle:checked ~ .site-shell .entry-content p,
#theme-toggle:checked ~ .site-shell .entry-content li,
#theme-toggle:checked ~ .site-shell .latest-widget-heading,
#theme-toggle:checked ~ .site-shell .latest-widget-lead h3,
#theme-toggle:checked ~ .site-shell .latest-widget-item h3,
#theme-toggle:checked ~ .site-shell .baca-juga-heading,
#theme-toggle:checked ~ .site-shell .bj-card-body h4 {
  color: #edf0f5;
}
body.dark-mode .breadcrumb a,
body.dark-mode .bj-more,
body.dark-mode .next-prev-col .np-label,
#theme-toggle:checked ~ .site-shell .breadcrumb a,
#theme-toggle:checked ~ .site-shell .bj-more,
#theme-toggle:checked ~ .site-shell .next-prev-col .np-label {
  color: #f87171;
}

@media (max-width: 700px) {
  .baca-juga-grid { grid-template-columns: 1fr; }
}

/* Halaman Khusus Author (Tanpa Sidebar) */
.author-page-layout { padding-top: 22px; padding-bottom: 36px; }
.author-profile-card {
  display: flex; gap: 22px; align-items: flex-start;
  padding: 24px; margin-bottom: 28px;
  border: 1px solid var(--line); border-radius: 12px; background: var(--soft);
}
.author-card-avatar { flex-shrink: 0; }
.author-card-avatar img { width: 112px; height: 112px; border-radius: 50%; object-fit: cover; border: 3px solid var(--maroon); }
.author-card-info { flex: 1; min-width: 0; }
.author-card-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex-wrap: wrap; }
.author-badge {
  display: inline-block; padding: 3px 8px; border-radius: 3px;
  background: var(--maroon); color: #fff; font-size: 10px; font-weight: 700; text-transform: uppercase;
}
.author-card-info h1 { margin: 6px 0 8px; font-family: var(--font-sans); font-size: 28px; line-height: 1.2; color: var(--ink); }
.author-stats { display: flex; gap: 12px; }
.author-stat-box {
  padding: 10px 16px; border: 1px solid var(--line); border-radius: 8px;
  background: var(--card); text-align: center; min-width: 96px;
}
.author-stat-box strong { display: block; font-size: 20px; font-weight: 800; color: var(--maroon); line-height: 1.1; }
.author-stat-box span { font-size: 11px; color: var(--muted); text-transform: uppercase; font-weight: 600; }
.author-card-bio { margin: 10px 0 14px; font-size: 15px; line-height: 1.6; color: var(--ink); }
.author-card-socials { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.author-social-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line);
  background: var(--card); color: var(--ink);
}
.author-social-icon svg { width: 16px; height: 16px; fill: currentColor; }
.author-social-icon:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }
.author-web-link { font-size: 13px; font-weight: 600; color: var(--maroon); text-decoration: underline; }
.author-feed-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 24px; }

/* Voxpol Author Card */
.voxpol-card-wrap { margin: 14px 0 18px; }
.voxpol-author-box {
  display: flex; gap: 16px; align-items: center; padding: 14px 18px;
  background: var(--soft); border: 1px solid var(--line); border-left: 4px solid var(--maroon);
  border-radius: 8px;
}
.voxpol-avatar-wrap { flex-shrink: 0; }
.voxpol-avatar-wrap img { width: 72px; height: 72px; border-radius: 50%; object-fit: cover; }
.voxpol-label { display: inline-block; font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .5px; color: var(--maroon); margin-bottom: 2px; }
.voxpol-name { margin: 0 0 4px; font-family: var(--font-sans); font-size: 18px; color: var(--ink); }
.voxpol-desc { margin: 0; font-size: 13px; color: var(--muted); line-height: 1.45; }

/* Holopod Video Embed (16:9) */
.holopod-video-wrap {
  position: relative; width: 100%; aspect-ratio: 16 / 9; margin: 0 0 18px;
  border-radius: 8px; overflow: hidden; background: #000;
}
.holopod-video-wrap iframe,
.holopod-video-wrap video,
.holopod-video-wrap embed {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* Photo Slide Gallery */
.photo-slider {
  position: relative; margin: 0 0 18px; border-radius: 8px; overflow: hidden; background: #111;
}
.photo-slider-track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.photo-slider-track::-webkit-scrollbar { display: none; }
.photo-slide { flex: 0 0 100%; margin: 0; scroll-snap-align: start; position: relative; }
.photo-slide img { width: 100%; max-height: 520px; object-fit: cover; display: block; }
.photo-slide figcaption {
  padding: 10px 14px; background: rgba(0,0,0,.78); color: #f1f5f9;
  font-size: 13px; text-align: center;
}
.photo-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 38px; height: 38px; border: 0; border-radius: 50%;
  background: rgba(0,0,0,.62); color: #fff; font-size: 24px; line-height: 1; cursor: pointer;
}
.photo-prev { left: 12px; }
.photo-next { right: 12px; }
.photo-counter {
  position: absolute; top: 12px; right: 12px; z-index: 3;
  padding: 4px 10px; border-radius: 999px; background: rgba(0,0,0,.65);
  color: #fff; font-size: 12px; font-weight: 700;
}

/* Infografis Stage (Uncropped Full Resolution) */
.infografis-stage { margin: 0 0 20px; text-align: center; }
.infografis-stage img {
  width: auto; max-width: 100%; height: auto; margin-inline: auto;
  border-radius: 8px; border: 1px solid var(--line); box-shadow: 0 4px 18px rgba(0,0,0,.08);
}
.infografis-stage figcaption { font-size: 13px; color: var(--muted); margin-top: 8px; font-style: italic; text-align: center; }

/* Dark Mode for Blockquote, Author, Voxpol */
body.dark-mode .entry-content blockquote,
#theme-toggle:checked ~ .site-shell .entry-content blockquote {
  background: rgba(181,18,27,.14); color: #f1f5f9;
}
body.dark-mode .author-card-info h1,
body.dark-mode .author-card-bio,
body.dark-mode .voxpol-name,
#theme-toggle:checked ~ .site-shell .author-card-info h1,
#theme-toggle:checked ~ .site-shell .author-card-bio,
#theme-toggle:checked ~ .site-shell .voxpol-name {
  color: #edf0f5;
}
body.dark-mode .author-stat-box strong,
body.dark-mode .voxpol-label,
#theme-toggle:checked ~ .site-shell .author-stat-box strong,
#theme-toggle:checked ~ .site-shell .voxpol-label {
  color: #f87171;
}

@media (max-width: 700px) {
  .author-profile-card { flex-direction: column; padding: 16px; }
  .author-feed-grid { grid-template-columns: 1fr; }
}

/* Dark Mode: Google Comments ([light_google_comments]) */
body.dark-mode #google-comments-app,
#theme-toggle:checked ~ .site-shell #google-comments-app {
  border-top-color: #2d3748 !important;
}
body.dark-mode .g-comments-header h3,
body.dark-mode .g-comment-author,
body.dark-mode #g-user-name,
#theme-toggle:checked ~ .site-shell .g-comments-header h3,
#theme-toggle:checked ~ .site-shell .g-comment-author,
#theme-toggle:checked ~ .site-shell #g-user-name {
  color: #edf0f5 !important;
}
body.dark-mode .g-comment-text,
body.dark-mode .g-box-auth p,
#theme-toggle:checked ~ .site-shell .g-comment-text,
#theme-toggle:checked ~ .site-shell .g-box-auth p {
  color: #cbd5e1 !important;
}
body.dark-mode .g-box-auth,
body.dark-mode .g-box-form,
#theme-toggle:checked ~ .site-shell .g-box-auth,
#theme-toggle:checked ~ .site-shell .g-box-form {
  background: #172030 !important; border-color: #2d3748 !important;
}
body.dark-mode .g-btn-login,
body.dark-mode #g-comment-input,
#theme-toggle:checked ~ .site-shell .g-btn-login,
#theme-toggle:checked ~ .site-shell #g-comment-input {
  background: #192231 !important; border-color: #334155 !important; color: #edf0f5 !important;
}
body.dark-mode .g-comment-reply,
#theme-toggle:checked ~ .site-shell .g-comment-reply {
  border-left-color: #334155 !important;
}
body.dark-mode #g-reply-indicator,
#theme-toggle:checked ~ .site-shell #g-reply-indicator {
  background: #1e293b !important; color: #edf0f5 !important;
}

/* Dark Mode: Trakteer Card ([trakteer_button]) */
body.dark-mode .trakteer-author-card,
#theme-toggle:checked ~ .site-shell .trakteer-author-card {
  background: #192231 !important; border-color: #2d3748 !important; border-left-color: #be1e2d !important;
}
body.dark-mode .trakteer-text-content strong,
#theme-toggle:checked ~ .site-shell .trakteer-text-content strong {
  color: #edf0f5 !important;
}
body.dark-mode .trakteer-text-content p,
#theme-toggle:checked ~ .site-shell .trakteer-text-content p {
  color: #cbd5e1 !important;
}
body.dark-mode .trakteer-text-content span,
#theme-toggle:checked ~ .site-shell .trakteer-text-content span {
  color: #94a3b8 !important;
}

/* Voxpol Posts List & Widget ([voxpol_posts]) */
.voxpoltitle {
  margin: 0 0 12px; padding-bottom: 8px; border-bottom: 3px solid var(--maroon);
  font-size: 16px; font-weight: 800; text-transform: uppercase; color: var(--ink);
}
.voxpol-posts-list { list-style: none; margin: 0 0 18px; padding: 0; display: grid; gap: 10px; }
.voxpol-post-item { border-bottom: 1px solid var(--line); padding-bottom: 10px; }
.voxpol-post-item:last-child { border-bottom: 0; padding-bottom: 0; }
.voxpol-post-link { display: flex; align-items: center; gap: 12px; }
.voxpol-post-avatar { flex-shrink: 0; width: 44px; height: 44px; border-radius: 50%; overflow: hidden; border: 1px solid var(--line); }
.voxpol-post-avatar img { width: 100%; height: 100%; object-fit: cover; display: block; }
.voxpol-post-title { font-size: 14px; font-weight: 600; line-height: 1.35; color: var(--ink); }
.voxpol-post-link:hover .voxpol-post-title { color: var(--maroon); }
body.dark-mode .voxpoltitle,
body.dark-mode .voxpol-post-title,
#theme-toggle:checked ~ .site-shell .voxpoltitle,
#theme-toggle:checked ~ .site-shell .voxpol-post-title { color: #edf0f5; }

/* Voxpol Disclaimer Box */
.voxpol-disclaimer {
  margin: 20px 0; padding: 14px 18px;
  border: 1px solid #fecaca; border-left: 4px solid var(--red); border-radius: 8px;
  background: #fef2f2; color: #7f1d1d; font-size: 13.5px; line-height: 1.55;
}
body.dark-mode .voxpol-disclaimer,
#theme-toggle:checked ~ .site-shell .voxpol-disclaimer {
  background: rgba(181,18,27,.14); border-color: rgba(248,113,113,.35);
  border-left-color: var(--red); color: #fecaca;
}

/* Multi-Page Post Pagination (.page-links) */
.page-links {
  display: flex; align-items: center; flex-wrap: wrap; gap: 8px;
  margin: 24px 0 8px; padding: 14px 16px;
  border: 1px solid var(--line); border-radius: 8px; background: var(--soft);
  font-size: 13px; font-weight: 700; color: var(--muted);
}
.page-links .post-page-numbers {
  display: inline-flex; align-items: center; justify-content: center;
  min-width: 34px; height: 34px; padding: 0 12px;
  border: 1px solid var(--line); border-radius: 6px;
  background: var(--card); color: var(--ink); text-decoration: none;
  font-size: 13px; font-weight: 700; transition: all .18s ease;
}
.page-links a.post-page-numbers:hover {
  border-color: var(--maroon); color: var(--maroon); transform: translateY(-1px);
}
.page-links .post-page-numbers.current {
  background: var(--maroon); border-color: var(--maroon); color: #fff;
}

/* Category & Archive Subcategory Chips */
.archive-description { color: var(--muted); font-size: 13.5px; margin-top: 6px; }
.archive-description p { margin: 0; }
.subcat-chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.subcat-chips a {
  display: inline-flex; align-items: center; padding: 5px 12px;
  border: 1px solid var(--line); border-radius: 999px;
  background: var(--soft); color: var(--ink); font-size: 12px; font-weight: 600;
}
.subcat-chips a:hover { background: var(--maroon); border-color: var(--maroon); color: #fff; }

/* Panah ke bawah untuk menu utama yang memiliki sub-menu */
.nav-menu > li.menu-item-has-children > a::after {
  content: "";
  display: inline-block;
  width: 6px;
  height: 6px;
  margin-left: 5px;
  margin-top: -3px;
  border-right: 1.6px solid currentColor;
  border-bottom: 1.6px solid currentColor;
  transform: rotate(45deg);
  transition: transform .18s ease;
}
.nav-menu > li.menu-item-has-children:hover > a::after {
  transform: rotate(225deg);
  margin-top: 2px;
}

/* Footer 2-Column Layout & Contact Bar Above Copyright */
.footer-main.footer-main-2col { grid-template-columns: 1.2fr 1fr; }
.footer-main.footer-main-2col .footer-about { border-right: 1px solid rgba(255,255,255,.35); padding-right: 28px; }
.footer-contact-bar {
  border-top: 1px solid rgba(255,255,255,.2);
  background: rgba(0,0,0,.15);
  padding: 12px 0;
}
.footer-contact-list {
  list-style: none; margin: 0 auto; padding: 0;
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  gap: 8px 22px; font-size: 12px; color: #e2e8f0; line-height: 1.5;
}
.footer-contact-list a { color: #fff; text-decoration: underline; }
.partner-logos { display: flex; align-items: center; flex-wrap: wrap; gap: 14px 20px; }
.partner-logo-link, .partner-logo-item {
  display: inline-flex; align-items: center; justify-content: center;
  height: 36px; max-width: 130px;
}
.partner-logos img {
  max-height: 34px; max-width: 125px; width: auto; height: auto;
  object-fit: contain; display: block;
}

.voxpol-widget { padding: 14px; }
.voxpol-widget .voxpol-posts-list { margin-bottom: 0; }

/* Top Header: Live Clock (with seconds) + 10-Post Newsticker */
.top-header {
  background: var(--maroon-dark);
  color: #fff;
  font-size: 12px;
  border-bottom: 1px solid rgba(255,255,255,.12);
}
.top-header-inner {
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.top-clock {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  font-weight: 600;
  letter-spacing: .2px;
  flex-shrink: 0;
}
.clock-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: #4ade80;
  box-shadow: 0 0 0 3px rgba(74,222,128,.25);
}
.top-newsticker {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
  max-width: 944px;
  overflow: hidden;
}
.ticker-badge {
  display: inline-flex; align-items: center;
  padding: 2px 8px; border-radius: 3px;
  background: var(--red); color: #fff;
  font-size: 10px; font-weight: 800; letter-spacing: .6px;
  flex-shrink: 0;
  animation: tickerPulse 2s infinite;
}
@keyframes tickerPulse {
  0%, 100% { opacity: 1; }
  50% { opacity: .75; }
}
.ticker-viewport {
  overflow: hidden;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
  mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0%, #000 3%, #000 97%, transparent 100%);
}
.ticker-track {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  width: max-content;
  animation: holopisTicker 45s linear infinite;
}
.top-newsticker:hover .ticker-track { animation-play-state: paused; }
.ticker-track a { color: #f8fafc; font-weight: 500; white-space: nowrap; }
.ticker-track a:hover { color: #ffd6d6; text-decoration: underline; }
.ticker-sep { color: rgba(255,255,255,.45); }
@keyframes holopisTicker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* Single Post Top Bar (Category Left + Traktir Jurnalis Right) */
.article-top-bar {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap;
}
.btn-traktir-jurnalis {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border-radius: 999px;
  background: #be1e2d; color: #fff !important;
  font-size: 11.5px; font-weight: 700; line-height: 1.2;
  text-decoration: none !important;
  box-shadow: 0 2px 6px rgba(190,30,45,.22);
  transition: transform .18s ease, background .18s ease;
}
.btn-traktir-jurnalis:hover { background: #9f1623; transform: translateY(-1px); }
.btn-traktir-jurnalis img { width: 13px; height: 19px; display: block; }
#holopis-trakteer-box { scroll-margin-top: 85px; }

/* Homepage Infografis Block (4 Cards Carousel) */
.infografis-block {
  margin: 22px 0; padding: 20px; border-radius: 12px;
  background: #eef4fb; border: 1px solid #dbe6f3;
}
.infografis-block-header {
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px; margin-bottom: 16px;
}
.infografis-block-header h2 {
  margin: 0; padding-left: 12px; border-left: 4px solid #1e3a5f;
  font-size: 18px; font-weight: 800; color: #172554; line-height: 1.2;
}
.infografis-track {
  display: grid; grid-auto-flow: column;
  grid-auto-columns: calc((100% - 42px) / 4);
  gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.infografis-track::-webkit-scrollbar { display: none; }
.infografis-card {
  scroll-snap-align: start; display: flex; flex-direction: column;
  background: var(--card); border: 1px solid var(--line); border-radius: 10px;
  overflow: hidden; box-shadow: 0 2px 8px rgba(15,23,42,.06);
  transition: transform .2s ease;
}
.infografis-card:hover { transform: translateY(-2px); }
.infografis-card-thumb {
  display: block; aspect-ratio: 3 / 4; overflow: hidden; background: var(--soft);
}
.infografis-card-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.infografis-card h3 {
  margin: 0; padding: 12px; font-size: 14px; font-weight: 700;
  line-height: 1.35; color: var(--ink);
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.infografis-card h3 a:hover { color: var(--maroon); }
.infografis-nav {
  display: flex; justify-content: center; gap: 10px; margin-top: 16px;
}
.infografis-nav button {
  width: 34px; height: 34px; border: 1px solid var(--line); border-radius: 6px;
  background: var(--card); color: var(--ink); font-size: 20px; line-height: 1;
  cursor: pointer; display: grid; place-items: center;
  box-shadow: 0 1px 3px rgba(0,0,0,.06);
}
.infografis-nav button:hover { background: var(--maroon); color: #fff; border-color: var(--maroon); }

/* Dark Mode: Infografis Block */
body.dark-mode .infografis-block,
#theme-toggle:checked ~ .site-shell .infografis-block {
  background: #161f2e; border-color: #2b3648;
}
body.dark-mode .infografis-block-header h2,
#theme-toggle:checked ~ .site-shell .infografis-block-header h2 {
  color: #edf0f5; border-left-color: var(--red);
}

@media (max-width: 900px) {
  .infografis-track { grid-auto-columns: calc((100% - 14px) / 2); }
}
@media (max-width: 700px) {
  .top-header { display: none; }
  .infografis-block { padding: 14px; }
  .infografis-track { grid-auto-columns: 72%; }
}

/* Article Subtitle & Photo Source */
.article-subtitle {
  margin: 0 0 12px; font-size: 17px; font-weight: 500;
  line-height: 1.45; color: var(--muted);
}
.photo-caption-text { display: block; }
.photo-source {
  border-top: 1px dotted;
  display: block; margin-top: 3px; font-size: 11.5px;
  font-style: normal; font-weight: 600; color: var(--muted);
}
