/*
Theme Name: Halo Jombang
Theme URI: https://halojombang.id
Author: Halo Jombang
Description: Theme WordPress portal berita regional Halo Jombang v2.0.0. Header putih, menu merah, tampilan serba putih, mode gelap, font Inter (artikel Roboto 18px), slider Baca Juga, Berita Terkini di halaman artikel.
Version: 2.1.8
Requires at least: 6.0
Tested up to: 6.7
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: halo-jombang
Tags: news, blog, two-columns, right-sidebar, custom-menu, featured-images, theme-options
*/

:root {
  --primary: #d32f2f;
  --primary-dark: #a91f1f;
  --bg-body: #ffffff;
  --bg-card: #ffffff;
  --text-main: #101828;
  --text-body: #1d2939;
  --text-soft: #475467;
  --text-muted: #667085;
  --heading: #101828;
  --border-color: #e4e7ec;
  --soft: #f2f4f7;
  --accent-blue: #1565c0;
  --chip-bg: rgba(211,47,47,.09);
  --tag-hover: #d5d9e0;
  --radius: 12px;
  --max-width: 1140px;
  --font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-roboto: 'Roboto', system-ui, -apple-system, 'Segoe UI', Arial, sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg-body: #101216;
  --bg-card: #101216;
  --text-main: #eceff4;
  --text-body: #d5dae3;
  --text-soft: #a9b1c1;
  --text-muted: #8b94a6;
  --heading: #f4f6fa;
  --border-color: #2a2e38;
  --soft: #1b1f27;
  --accent-blue: #6cb2ff;
  --chip-bg: rgba(255,255,255,.08);
  --tag-hover: #3a404c;
  color-scheme: dark;
}
@supports (color: color-mix(in srgb, red, blue)) {
  :root { --primary-dark: color-mix(in srgb, var(--primary) 78%, #000); }
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body, button, input, select, textarea, h1, h2, h3, h4, h5, h6 { font-family: var(--font-ui); }
body { background: var(--bg-body); color: var(--text-main); line-height: 1.6; font-size: 16px; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
a { color: inherit; text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--primary); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { list-style: none; }
:focus-visible { outline: 2px solid var(--accent-blue); outline-offset: 2px; }
.container { max-width: var(--max-width); margin: 0 auto; padding: 0 20px; width: 100%; }
.ph { display: block; width: 100%; height: 100%; background: var(--soft); }
.ph-dark { background: #1a2233; }
time { font-variant-numeric: tabular-nums; }

/* ---------- Topbar ---------- */
.topbar { background: var(--bg-card); color: var(--text-muted); font-size: 12.5px; font-weight: 500; padding: 6px 0; border-bottom: 1px solid var(--border-color); }
.topbar-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px; }
.topbar a:hover { color: var(--primary); text-decoration: underline; }

/* ---------- Header (putih) ---------- */
.site-header { background: var(--bg-card); padding: 16px 0; }
.header-inner { display: flex; align-items: center; gap: 16px; }
.site-branding { min-width: 0; }
.site-branding .site-title { font-size: 38px; font-weight: 800; letter-spacing: -.03em; line-height: 1.05; }
.site-branding .site-title a { color: var(--heading); display: inline-flex; align-items: center; gap: 10px; }
.site-branding .site-title a::before { content: ""; width: 11px; height: 34px; border-radius: 3px; background: var(--primary); }
.site-branding .site-title a:hover { color: var(--primary); }
.custom-logo { max-height: 68px; width: auto; }
.header-search { margin-left: auto; }
.header-search form { display: flex; background: var(--soft); border: 1px solid var(--border-color); border-radius: 999px; overflow: hidden; }
.header-search form:focus-within { border-color: var(--primary); }
.header-search input[type="search"] { border: 0; background: transparent; color: var(--text-main); padding: 10px 6px 10px 18px; font-size: 14px; outline: none; width: 250px; }
.header-search input::placeholder { color: var(--text-muted); }
.header-search button { background: var(--primary); color: #fff; border: 0; padding: 0 20px; cursor: pointer; font-weight: 700; font-size: 13px; margin: 3px; border-radius: 999px; }
.header-search button:hover { background: var(--primary-dark); }
.header-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--border-color); background: var(--bg-card); color: var(--heading); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.icon-btn:hover { background: var(--soft); color: var(--primary); }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
:root[data-theme="dark"] .theme-toggle .icon-moon { display: none; }
.search-toggle { display: none; }
.search-toggle .icon-close { display: none; }
.is-search-open .search-toggle .icon-close { display: block; }
.is-search-open .search-toggle .icon-menu { display: none; }

/* ---------- Navigasi (merah) ---------- */
.main-nav { background: var(--primary); position: sticky; top: 0; z-index: 99; box-shadow: 0 2px 8px rgba(0,0,0,.12); }
.admin-bar .main-nav { top: 32px; }
.nav-wrapper { display: flex; align-items: center; }
.menu-list { display: flex; flex-wrap: wrap; }
.menu-list > li { position: relative; }
.menu-list > li > a { display: block; padding: 13px 16px; font-size: 14px; font-weight: 600; color: #fff; border-bottom: 3px solid transparent; white-space: nowrap; }
.menu-list > li > a:hover, .menu-list > li.is-open > a { color: #fff; background: rgba(0,0,0,.14); }
.menu-list > li.current-menu-item > a, .menu-list > li.current-cat > a, .menu-list > li.current-menu-ancestor > a { color: #fff; background: rgba(0,0,0,.18); border-bottom-color: #fff; }
.menu-list > li.menu-item-has-children > a::after { content: ""; display: inline-block; width: 6px; height: 6px; margin: 0 0 3px 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg); transition: transform .15s; }
.menu-list > li.is-open > a::after { transform: rotate(-135deg); margin-bottom: -2px; }

/* Dropdown (Lainnya, dll.) */
.menu-list .sub-menu { position: absolute; top: 100%; left: 0; min-width: 230px; background: var(--bg-card); border: 1px solid var(--border-color); border-top: 0; border-radius: 0 0 10px 10px; box-shadow: 0 10px 24px rgba(0,0,0,.18); padding: 6px 0; z-index: 100; opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .15s, transform .15s, visibility .15s; }
.menu-list > li:last-child > .sub-menu { left: auto; right: 0; }
.menu-list > li.is-open > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu-list .sub-menu li a { display: block; padding: 10px 18px; font-size: 14px; font-weight: 500; color: var(--text-main); white-space: normal; }
.menu-list .sub-menu li a:hover, .menu-list .sub-menu li.current-menu-item > a, .menu-list .sub-menu li.current-cat > a { background: var(--soft); color: var(--primary); }
@media (hover: hover) and (min-width: 769px) {
  .menu-list > li:hover > .sub-menu, .menu-list > li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
  .menu-list > li.menu-item-has-children:hover > a { background: rgba(0,0,0,.14); }
  .menu-list > li.menu-item-has-children:hover > a::after { transform: rotate(-135deg); margin-bottom: -2px; }
}

/* ---------- Tata letak ---------- */
.site-main-wrapper { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 32px; padding: 26px 20px 52px; align-items: start; }
/* Teks khusus pembaca layar */
.screen-reader-text { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }

/* Isi artikel + kolom iklan berdiri (hanya di area isi artikel; kosong bila belum dipasang iklan) */
.entry-body { display: grid; grid-template-columns: minmax(0, 1fr) 160px; gap: 24px; align-items: start; }
.ad-slot { align-self: stretch; width: 160px; }
.ad-slot-inner { position: sticky; top: 72px; }
.admin-bar .ad-slot-inner { top: 104px; }
.ad-slot .ad-widget { text-align: center; margin-bottom: 16px; overflow: hidden; max-width: 160px; }
.ad-slot .ad-widget img, .ad-slot .ad-widget iframe { max-width: 100%; height: auto; }
.primary-content { min-width: 0; }
.site-sidebar { position: sticky; top: 72px; z-index: 80; }
.admin-bar .site-sidebar { top: 104px; }

/* ---------- Judul seksi ---------- */
.section-heading, .cat-slider-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.section-heading h2, .cat-slider-header h2 { font-size: 24px; font-weight: 600; letter-spacing: -.01em; color: var(--heading); display: flex; align-items: center; gap: 10px; line-height: 1.2; }
.section-heading h2::before, .cat-slider-header h2::before { content: ""; width: 5px; height: 26px; border-radius: 3px; background: var(--primary); flex: none; }
.cat-slider-header h2 a::after { content: "\203A"; margin-left: 8px; color: var(--primary); font-size: 22px; line-height: 0; position: relative; top: 1px; transition: margin .15s; }
.cat-slider-header h2 a:hover::after { margin-left: 12px; }

/* ---------- Headline ---------- */
.headline-section { margin-bottom: 24px; background: #000; border: 1px solid #000; border-radius: var(--radius); overflow: hidden; }
.headline-hero { position: relative; width: 100%; aspect-ratio: 16 / 9; background: #000; overflow: hidden; }
.headline-hero img { width: 100%; height: 100%; object-fit: cover; transition: opacity .25s ease; }
.headline-hero-overlay { position: absolute; inset: auto 0 0 0; padding: 70px 26px 22px; background: linear-gradient(to top, rgba(8,14,30,.94) 0%, rgba(8,14,30,.65) 55%, transparent 100%); color: #fff; }
.hero-cat { display: inline-block; background: var(--primary); color: #fff; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 999px; margin-bottom: 10px; }
.headline-hero-overlay h2 { font-size: 30px; font-weight: 700; line-height: 1.2; letter-spacing: -.015em; margin-bottom: 8px; color: #fff; text-wrap: balance; }
.headline-hero-overlay h2 a { color: #fff; }
.headline-hero-overlay h2 a:hover { color: #ffd0d0; }
.headline-hero-time { font-size: 12.5px; color: #d3d9e6; }
.headline-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; padding: 14px; }
.headline-strip-item { display: flex; flex-direction: column; min-width: 0; cursor: pointer; opacity: .75; transition: opacity .2s ease; }
.headline-strip-item.is-active, .headline-strip-item:hover { opacity: 1; }
.headline-strip-thumb { display: block; aspect-ratio: 16 / 10; border-radius: 8px; overflow: hidden; background: #1a1a1a; outline: 2px solid transparent; outline-offset: 2px; transition: outline-color .2s; }
.headline-strip-title a:hover { color: #ffd0d0; }
.headline-strip-item.is-active .headline-strip-thumb { outline-color: var(--primary); }
.headline-strip-thumb img { width: 100%; height: 100%; object-fit: cover; }
.headline-strip-title { padding-top: 9px; font-size: 12.5px; font-weight: 600; line-height: 1.35; color: #fff; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* ---------- Slider kategori / Baca Juga ---------- */
.cat-slider-section { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px 20px 18px; margin-bottom: 24px; }
.cat-slider-section .container { padding: 0; max-width: none; }
.cat-slider-wrapper { position: relative; }
.cat-slider-track { display: flex; gap: 16px; overflow-x: auto; scroll-behavior: smooth; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.cat-slider-track::-webkit-scrollbar { display: none; }
.cat-slide-card { flex: 0 0 calc((100% - 32px) / 3); min-width: 0; display: flex; flex-direction: column; scroll-snap-align: start; }
.cat-slide-thumb { display: block; width: 100%; aspect-ratio: 16 / 10; border-radius: 10px; overflow: hidden; background: var(--soft); margin-bottom: 10px; }
.cat-slide-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.cat-slide-card:hover .cat-slide-thumb img { transform: scale(1.05); }
.cat-slide-title { font-size: 15px; font-weight: 700; line-height: 1.38; color: var(--text-main); margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.cat-slide-time { font-size: 12px; color: var(--text-muted); margin-top: auto; }
.cat-slider-btn { position: absolute; top: 30%; transform: translateY(-50%); width: 38px; height: 38px; border-radius: 50%; background: var(--bg-card); border: 1px solid var(--border-color); box-shadow: 0 3px 10px rgba(0,0,0,.15); display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 10; color: var(--heading); transition: background .15s, color .15s; }
.cat-slider-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; }
.cat-slider-btn.prev { left: -14px; } .cat-slider-btn.next { right: -14px; }
.cat-slider-btn.is-hidden { opacity: 0; pointer-events: none; }


/* Slider kategori dengan warna latar pilihan */
.cat-slider-section.has-bg { border-color: transparent; }
.cat-slider-section.is-dark-bg .cat-slider-header h2, .cat-slider-section.is-dark-bg .cat-slider-header h2 a, .cat-slider-section.is-dark-bg .cat-slide-title, .cat-slider-section.is-dark-bg .cat-slide-title a { color: #fff; }
.cat-slider-section.is-dark-bg .cat-slide-time { color: rgba(255,255,255,.72); }
.cat-slider-section.is-dark-bg .cat-slide-title a:hover, .cat-slider-section.is-dark-bg .cat-slider-header h2 a:hover { color: #ffd0d0; }
.cat-slider-section.is-light-bg .cat-slider-header h2, .cat-slider-section.is-light-bg .cat-slider-header h2 a, .cat-slider-section.is-light-bg .cat-slide-title, .cat-slider-section.is-light-bg .cat-slide-title a { color: #101828; }
.cat-slider-section.is-light-bg .cat-slide-time { color: #667085; }
.cat-slider-section.is-light-bg .cat-slide-title a:hover, .cat-slider-section.is-light-bg .cat-slider-header h2 a:hover { color: var(--primary); }

/* ---------- Berita terkini ---------- */
.feed-section { background: var(--bg-card); padding: 0; }
.feed-section .cat-slider-section { margin: 8px 0 14px; }
.terkini-section { margin-top: 28px; }
.news-feed { display: flex; flex-direction: column; }
.news-card { display: flex; gap: 18px; padding: 18px 0; border-bottom: 1px solid var(--border-color); align-items: flex-start; }
.news-feed:last-of-type .news-card:last-child { border-bottom: 0; }
.news-card-thumb { width: 220px; aspect-ratio: 3 / 2; flex-shrink: 0; border-radius: 10px; overflow: hidden; background: var(--soft); }
.news-card-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s ease; }
.news-card:hover .news-card-thumb img { transform: scale(1.04); }
.news-card-content { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.news-card-cat { align-self: flex-start; font-size: 13px; font-weight: 700; color: var(--primary); background: none; padding: 0; margin-bottom: 6px; }
.news-card-title { font-size: 22px; font-weight: 600; line-height: 1.32; letter-spacing: -.01em; margin-bottom: 6px; color: var(--text-main); }
.news-card-title a:hover { color: var(--primary); }
.news-card-ex { font-size: 14px; line-height: 1.55; color: var(--text-soft); margin-bottom: 8px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-meta { font-size: 12px; color: var(--text-muted); display: flex; align-items: center; gap: 6px; margin-top: auto; }

/* ---------- Pagination ---------- */
.pagination { padding: 18px 0 20px; display: flex; justify-content: center; gap: 12px; }
.pagination .nav-next-link a, .pagination .nav-prev-link a { display: inline-block; padding: 12px 26px; font-size: 14px; font-weight: 700; border-radius: 999px; transition: background .2s, transform .15s; }
.pagination .nav-next-link a { background: var(--primary); color: #fff; }
.pagination .nav-next-link a:hover { background: var(--primary-dark); color: #fff; transform: translateY(-2px); }
.pagination .nav-prev-link a { background: var(--soft); color: var(--heading); }
.pagination .nav-prev-link a:hover { background: var(--border-color); }

/* ---------- Sidebar ---------- */
.sidebar-widget { background: var(--bg-card); border: 1px solid var(--border-color); border-radius: var(--radius); padding: 20px; margin-bottom: 24px; word-wrap: break-word; }
.widget-title { font-size: 22px; font-weight: 600; color: var(--heading); display: flex; align-items: center; gap: 10px; margin-bottom: 10px; line-height: 1.2; }
.widget-title::before { content: ""; width: 5px; height: 24px; border-radius: 3px; background: var(--primary); }
.popular-list { counter-reset: pop; }
.popular-list li { counter-increment: pop; display: grid; grid-template-columns: 34px 1fr; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--border-color); }
.popular-list li:first-child { border-top: 0; }
.popular-list li::before { content: counter(pop); font-size: 28px; font-weight: 800; line-height: 1; color: var(--primary); text-align: center; }
.popular-list li a { font-size: 14.5px; font-weight: 600; line-height: 1.4; display: block; color: var(--text-main); }
.popular-list li a:hover { color: var(--primary); }
.sidebar-widget ul li { padding: 7px 0; border-bottom: 1px solid var(--border-color); font-size: 14px; }

/* ---------- Artikel ---------- */
.single-article { background: var(--bg-card); padding: 0 0 24px; }
.breadcrumbs { font-size: 13px; color: var(--text-muted); margin-bottom: 12px; }
.breadcrumbs a { color: var(--primary); font-weight: 600; }
.entry-title { font-size: 35px; font-weight: 600; line-height: 1.28; letter-spacing: -.012em; color: var(--heading); margin-bottom: 16px; text-wrap: wrap; overflow-wrap: break-word; }
.entry-byline { display: flex; align-items: center; gap: 12px; margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border-color); }
.entry-author-avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--primary); color: #fff; font-weight: 700; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.entry-byline-text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.entry-author-name { font-size: 15px; font-weight: 700; color: var(--heading); line-height: 1.3; }
.entry-author-name a:hover { color: var(--primary); }
.entry-date { font-size: 13px; color: var(--text-muted); font-weight: 500; line-height: 1.4; }
.entry-featured-img { margin-bottom: 26px; background: none; }
.entry-featured-img img { border-radius: 12px; }
.entry-featured-img img { width: 100%; height: auto; aspect-ratio: 3 / 2; object-fit: cover; }
.entry-caption { font-size: 14px; line-height: 1.5; color: var(--text-soft); padding: 8px 2px 0; background: none; }

/* Bagikan: ikon bulat */
.share-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 22px; position: relative; }
.share-label { font-size: 13px; font-weight: 700; color: var(--heading); margin-right: 2px; }
.share-btn { width: 40px; height: 40px; border-radius: 50%; border: 0; padding: 0; display: inline-flex; align-items: center; justify-content: center; color: #fff; cursor: pointer; transition: transform .15s, filter .15s; }
.share-btn:hover { color: #fff; transform: translateY(-2px); filter: brightness(1.08); }
.share-wa { background: #1fa855; } .share-fb { background: #1877f2; } .share-x { background: #111; } .share-copy { background: #667085; }
:root[data-theme="dark"] .share-x { background: #2f3440; }
.share-toast { font-size: 12.5px; font-weight: 600; color: var(--text-muted); opacity: 0; transition: opacity .2s; }
.share-toast.is-show { opacity: 1; }

.entry-content, .entry-content p, .entry-content li, .entry-content blockquote, .entry-content td, .entry-content th { font-family: var(--font-roboto); }
.entry-content { font-size: 18px; line-height: 1.6; color: var(--text-body); overflow-wrap: break-word; }
.entry-content p, .entry-content li, /* Gambar & caption di dalam artikel: mengikuti lebar kolom */
.entry-content img, .entry-content video, .entry-content iframe, .entry-content embed { max-width: 100% !important; height: auto; }
.entry-content iframe { aspect-ratio: 16 / 9; height: auto; width: 100%; border: 0; }
.entry-content figure, .entry-content .wp-caption, .entry-content .wp-block-image, .entry-content .wp-block-embed, .entry-content .gallery-item { max-width: 100% !important; width: auto !important; margin: 0 0 22px; }
.entry-content .wp-caption, .entry-content figure.wp-caption { display: block; width: 100% !important; }
.entry-content figure img, .entry-content .wp-caption img { width: 100%; height: auto; border-radius: 10px; }
.entry-content .alignnone, .entry-content .aligncenter { margin-left: auto; margin-right: auto; }
.entry-content .alignleft { float: left; margin: 4px 20px 14px 0; max-width: 50% !important; }
.entry-content .alignright { float: right; margin: 4px 0 14px 20px; max-width: 50% !important; }
.entry-content figcaption, .entry-content .wp-caption-text, .entry-content .wp-element-caption, .entry-content .gallery-caption { display: block; font-family: var(--font-ui); font-size: 14px; line-height: 1.5; color: var(--text-muted); text-align: left; padding: 8px 2px 0; margin: 0; }
.entry-content::after { content: ""; display: block; clear: both; }
.entry-content blockquote { font-size: 1em; }
.entry-content p { margin-bottom: 18px; }
.entry-content a { color: var(--accent-blue); text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; font-weight: 500; }
.entry-content a:hover { color: var(--primary); }
.entry-content h2, .entry-content h3, .entry-content h4 { font-family: var(--font-ui); color: var(--heading); margin: 28px 0 12px; line-height: 1.3; }
.entry-content ul, .entry-content ol { margin: 0 0 18px 1.4em; } .entry-content ul { list-style: disc; } .entry-content ol { list-style: decimal; }
.entry-content blockquote { border-left: 4px solid var(--primary); padding: 12px 18px; background: var(--soft); margin: 20px 0; font-style: italic; border-radius: 0 10px 10px 0; }
.entry-content table { display: block; overflow-x: auto; border-collapse: collapse; width: 100%; font-size: 15px; }
.entry-content th, .entry-content td { border: 1px solid var(--border-color); padding: 8px 10px; text-align: left; }
.entry-meta-inline { margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--border-color); display: flex; flex-direction: column; gap: 8px; font-size: 16px; color: var(--text-soft); }
.entry-meta-inline strong { color: var(--heading); font-weight: 700; }
.entry-tags { margin-top: 18px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.entry-tags span { font-size: 16px; font-weight: 700; color: var(--heading); }
.entry-tags a { font-size: 16px; line-height: 1.4; background: var(--primary); color: #fff; padding: 5px 14px; font-weight: 600; border-radius: 999px; transition: background .15s, color .15s; }
.entry-tags a:hover, .entry-tags a:focus-visible, .entry-tags a:active { background: var(--tag-hover); color: var(--text-main); }

.related-section { margin-top: 8px; }


/* ---------- Footer ---------- */
.site-footer { background: var(--bg-card); color: var(--text-soft); padding: 32px 0 20px; font-size: 14px; border-top: 1px solid var(--border-color); }
.footer-top { display: flex; align-items: center; justify-content: space-between; gap: 16px 24px; flex-wrap: wrap; padding-bottom: 22px; border-bottom: 1px solid var(--border-color); }
.footer-logo .custom-logo { max-height: 48px; }
.footer-logo-text { font-size: 26px; font-weight: 800; letter-spacing: -.02em; color: var(--heading); display: inline-flex; align-items: center; gap: 10px; }
.footer-logo-text::before { content: ""; width: 8px; height: 24px; border-radius: 3px; background: var(--primary); }
.footer-social { display: flex; flex-wrap: wrap; gap: 10px; }
.social-icon-btn { display: flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--border-color); color: var(--heading); transition: background .15s, border-color .15s, color .15s, transform .15s; }
.social-icon-btn:hover { background: var(--primary); border-color: var(--primary); color: #fff; transform: translateY(-2px); }
.footer-nav { padding: 16px 0; border-bottom: 1px solid var(--border-color); }
.footer-menu { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer-menu li a { font-size: 14px; font-weight: 500; color: var(--text-soft); }
.footer-menu li a:hover { color: var(--primary); text-decoration: underline; }
.footer-bottom { padding-top: 16px; text-align: center; font-size: 12px; color: var(--text-muted); }

/* ---------- Responsif ---------- */
@media (max-width: 1100px) {
  .cat-slider-btn.prev { left: -8px; } .cat-slider-btn.next { right: -8px; }
  .entry-body { grid-template-columns: minmax(0, 1fr); }
  .ad-slot { display: none; }
}
@media (max-width: 960px) {
  .site-main-wrapper { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 20px; }
  .site-sidebar, .admin-bar .site-sidebar { position: static; }
}
@media (max-width: 782px) { .admin-bar .main-nav { top: 46px; } }

/* Ponsel: header = logo + ikon mode gelap + ikon 3 garis (buka pencarian) */
@media (max-width: 768px) {
  .container { padding: 0 16px; }
  .topbar { display: none; }
  .site-header { padding: 10px 0; border-bottom: 1px solid var(--border-color); }
  .header-inner { flex-wrap: wrap; gap: 10px; }
  .site-branding .site-title { font-size: 30px; }
  .site-branding .site-title a::before { height: 28px; width: 9px; }
  .custom-logo { max-height: 50px; }
  .header-actions { margin-left: auto; gap: 8px; }
  .search-toggle { display: inline-flex; }
  .header-search { order: 3; flex: 0 0 100%; margin-left: 0; display: none; }
  .is-search-open .header-search { display: block; }
  .header-search input[type="search"] { width: 100%; flex: 1; min-width: 0; font-size: 16px; }
  .header-search form { width: 100%; }
  .main-nav, .admin-bar .main-nav { position: relative; top: 0; box-shadow: none; }
  .menu-list { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
  .menu-list::-webkit-scrollbar { display: none; }
  .menu-list > li { position: static; }
  .menu-list > li > a { padding: 12px 13px; }
  .menu-list .sub-menu { left: 0 !important; right: 0 !important; width: 100%; border-radius: 0; }
  .footer-top { flex-direction: column; align-items: center; text-align: center; }
  .footer-menu { justify-content: center; gap: 8px 18px; }

  .site-main-wrapper { padding: 14px 16px 36px; }
  .headline-section { margin: 0 -16px 18px; border-radius: 0; border-left: 0; border-right: 0; }
  .headline-hero { aspect-ratio: 4 / 3; }
  .headline-hero-overlay { padding: 48px 16px 16px; }
  .headline-hero-overlay h2 { font-size: 21px; }
  .headline-strip { display: flex; overflow-x: auto; gap: 10px; padding: 12px 16px; scrollbar-width: none; scroll-snap-type: x proximity; scroll-padding: 0 16px; }
  .headline-strip::-webkit-scrollbar { display: none; }
  .headline-strip-item { flex: 0 0 148px; width: 148px; scroll-snap-align: start; }

  .cat-slider-section { padding: 16px 0; margin-bottom: 8px; border: 0; border-top: 1px solid var(--border-color); border-radius: 0; }
  .cat-slider-section.has-bg { padding: 16px; margin-left: -16px; margin-right: -16px; border-top: 0; }
  .cat-slide-card { flex: 0 0 62%; }
  .cat-slide-title { font-size: 14px; }
  .cat-slider-btn { display: none; }
  .section-heading h2, .cat-slider-header h2 { font-size: 21px; }
  .widget-title { font-size: 20px; }
  .feed-section .cat-slider-section { margin: 6px 0 10px; }
  .terkini-section { margin-top: 12px; }
  .news-card { gap: 14px; padding: 14px 0; align-items: stretch; }
  .news-card-thumb { width: 124px; aspect-ratio: 1 / 1; align-self: flex-start; border-radius: 10px; }
  .news-card-content { justify-content: flex-start; }
  .news-card-cat { align-self: flex-start; font-size: 11px; font-weight: 700; padding: 0; background: none; text-transform: uppercase; letter-spacing: .03em; margin-bottom: 4px; }
  .news-card-title { font-size: 16px; font-weight: 600; line-height: 1.35; margin-bottom: 6px; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .news-meta { font-size: 11.5px; margin-top: auto; }

  .sidebar-widget { padding: 16px 0 4px; margin-bottom: 12px; border: 0; border-top: 1px solid var(--border-color); border-radius: 0; }
  .single-article { padding: 0 0 16px; }
  .entry-featured-img { margin-left: -16px; margin-right: -16px; margin-bottom: 24px; border-radius: 0; }
  .entry-featured-img img { border-radius: 0; }
  .entry-caption { font-size: 13px; line-height: 1.5; padding: 10px 16px 0; }
  .entry-title { font-size: 26px; }
  .entry-content { font-size: 18px; line-height: 1.6; }
  .entry-meta-inline { font-size: 15px; }
  .entry-tags span, .entry-tags a { font-size: 15px; }
  .share-btn { width: 38px; height: 38px; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
