/*
Theme Name: Sudut Nalar
Theme URI: https://sudutnalar.com
Author: Sudut Nalar
Description: Tema media berita untuk Sudut Nalar. Beranda dengan berita utama, daftar terbaru, pembaca terbanyak, dan blok per kategori. Mode terang dan gelap, ringan, responsif.
Version: 1.9.0
Requires at least: 5.8
Tested up to: 6.8
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: sudutnalar
*/

/* =============================================================
   1. Token
   ============================================================= */
:root {
	--navy: #0a1f44;
	--navy-deep: #07162f;
	--navy-soft: #16346a;
	--red: #d7263d;
	--red-deep: #b51c30;

	--bg: #f3f4f7;
	--surface: #ffffff;
	--ink: #0c1424;
	--text: #1d2636;
	--muted: #5d6779;
	--line: #e2e6ed;
	--chip: #edf0f5;

	--font-ui: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
	--font-head: 'Merriweather', Georgia, 'Times New Roman', serif;

	--wrap: 1240px;
	--narrow: 740px;
	--r-sm: 6px;
	--r-md: 12px;
	--shadow: 0 1px 2px rgba(12, 20, 36, .05), 0 6px 20px rgba(12, 20, 36, .06);
}

[data-theme="dark"] {
	--bg: #090e1a;
	--surface: #101830;
	--ink: #f4f6fa;
	--text: #cfd6e3;
	--muted: #93a0b8;
	--line: #202c4a;
	--chip: #1a2544;
	--shadow: none;
	--red: #f04a5f;
}

/* =============================================================
   2. Dasar
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
	margin: 0;
	background: var(--bg);
	color: var(--text);
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
img, svg, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); line-height: 1.25; }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--red); outline-offset: 2px; border-radius: 3px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}
.skip-link {
	position: absolute; left: 12px; top: -60px; z-index: 300;
	background: var(--red); color: #fff; padding: 10px 16px; border-radius: var(--r-sm);
}
.skip-link:focus { top: 12px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.container.narrow { max-width: calc(var(--narrow) + 40px); }
.section { padding-top: 8px; padding-bottom: 56px; }

/* =============================================================
   3. Topbar & ticker
   ============================================================= */
.topbar { background: var(--navy-deep); color: #c3cde0; font-size: 13px; }
.topbar-inner { display: flex; align-items: center; gap: 20px; min-height: 40px; }
.tb-date { flex: none; color: #9fb0cf; }
.ticker { flex: 1; min-width: 0; display: flex; align-items: center; gap: 12px; }
.ticker-label {
	flex: none; background: var(--red); color: #fff; font-weight: 700;
	padding: 3px 10px; border-radius: 3px; font-size: 12px;
}
.ticker-view { flex: 1; overflow: hidden; min-width: 0;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
	mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent);
}
.ticker-track { display: inline-flex; white-space: nowrap; animation: sn-marquee 70s linear infinite; }
.ticker-track:hover { animation-play-state: paused; }
.ticker-set { display: inline-flex; }
.ticker-set a { padding: 0 22px; position: relative; color: #e6ecf7; }
.ticker-set a::after {
	content: ''; position: absolute; right: -2px; top: 50%; width: 4px; height: 4px;
	margin-top: -2px; border-radius: 50%; background: var(--red);
}
.ticker-set a:hover { color: #fff; text-decoration: underline; }
@keyframes sn-marquee { to { transform: translateX(-50%); } }
.tb-social { flex: none; display: flex; gap: 4px; }
.tb-social .social { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; color: #c3cde0; }
.tb-social .social:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* =============================================================
   4. Header & menu
   ============================================================= */
.site-header { display: contents; }
.brandbar { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 22px; padding-bottom: 22px; }
.site-header .brandbar { background: transparent; }
.brand .custom-logo { max-height: 64px; width: auto; }
.brand .custom-logo-link { display: inline-block; line-height: 0; }

.logo-text, .f-logo { display: inline-flex; align-items: center; gap: 10px; }
.logo-mark {
	width: 40px; height: 40px; display: grid; place-items: center; border-radius: 9px;
	background: var(--navy); color: #fff; font: 900 24px/1 var(--font-head);
	box-shadow: inset -5px -5px 0 var(--red);
}
.logo-word { font: 400 30px/1 var(--font-ui); letter-spacing: -.03em; color: var(--ink); }
.logo-word .l2 { font-weight: 800; }
[data-theme="dark"] .brand .custom-logo { filter: brightness(0) invert(1); }

.brand-tools { display: flex; align-items: center; gap: 10px; }
.search-form {
	display: flex; align-items: stretch; background: var(--surface);
	border: 1px solid var(--line); border-radius: 999px; overflow: hidden; width: 320px; max-width: 100%;
}
.search-form:focus-within { border-color: var(--navy-soft); box-shadow: 0 0 0 3px rgba(22, 52, 106, .15); }
.search-form input[type="search"] {
	flex: 1; min-width: 0; border: 0; background: transparent; color: var(--ink);
	padding: 11px 6px 11px 18px; font: inherit; font-size: 15px; outline: none;
}
.search-form input::placeholder { color: var(--muted); }
.search-form button {
	border: 0; background: var(--navy); color: #fff; width: 46px; display: grid; place-items: center;
}
.search-form button:hover { background: var(--red); }

.icon-btn {
	width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line);
	background: var(--surface); color: var(--ink); display: grid; place-items: center;
}
.icon-btn:hover { border-color: var(--navy-soft); }
.search-toggle { display: none; }
.theme-toggle .icon-sun { display: none; }
[data-theme="dark"] .theme-toggle .icon-sun { display: block; }
[data-theme="dark"] .theme-toggle .icon-moon { display: none; }

.navbar {
	position: sticky; top: 0; z-index: 90; background: var(--navy);
	border-bottom: 3px solid var(--red);
}
.navbar.is-stuck { box-shadow: 0 6px 18px rgba(7, 22, 47, .3); }
.admin-bar .navbar { top: 32px; }
@media (max-width: 782px) { .admin-bar .navbar { top: 46px; } }
@media (max-width: 600px) { .admin-bar .navbar { top: 0; } }

.nav-inner { padding-top: 0; padding-bottom: 0; }
.menu, .menu ul { list-style: none; margin: 0; padding: 0; }
.menu { display: flex; align-items: stretch; flex-wrap: nowrap; }
.menu > li { position: relative; }
.menu > li > a {
	display: flex; align-items: center; gap: 6px; height: 50px; padding: 0 16px;
	color: #e8eefb; font-weight: 600; font-size: 15px; white-space: nowrap;
}
.menu > li > a:hover,
.menu > li:focus-within > a { background: rgba(255, 255, 255, .09); color: #fff; }
.menu > li.current-menu-item > a,
.menu > li.current-menu-ancestor > a,
.menu > li.current-cat > a { background: rgba(255, 255, 255, .13); color: #fff; box-shadow: inset 0 -3px 0 var(--red); }
.menu > li.menu-item-has-children > a::after {
	content: ''; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); opacity: .8;
}
.menu .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--surface);
	border-radius: 0 0 var(--r-md) var(--r-md); box-shadow: 0 16px 36px rgba(7, 22, 47, .25);
	border: 1px solid var(--line); border-top: 0; padding: 8px;
	opacity: 0; visibility: hidden; transform: translateY(6px); transition: opacity .18s, transform .18s, visibility .18s;
}
.menu li:hover > .sub-menu,
.menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.menu .sub-menu a { display: block; padding: 9px 12px; border-radius: var(--r-sm); color: var(--text); font-size: 15px; font-weight: 500; }
.menu .sub-menu a:hover { background: var(--chip); color: var(--ink); }

/* =============================================================
   5. Komponen umum
   ============================================================= */
.pill {
	display: inline-block; background: var(--red); color: #fff; font-weight: 700; font-size: 12.5px;
	line-height: 1; padding: 6px 10px; border-radius: 4px;
}
a.pill-link:hover { background: var(--red-deep); }
.kicker { display: block; color: var(--red); font-weight: 700; font-size: 13px; margin-bottom: 5px; }
.meta { color: var(--muted); font-size: 13px; }

.ph {
	position: absolute; inset: 0; display: grid; place-items: center; overflow: hidden;
	background: linear-gradient(135deg, var(--navy) 0%, var(--navy-soft) 100%);
}
.ph span { font: 900 clamp(48px, 9vw, 120px)/1 var(--font-head); color: rgba(255, 255, 255, .1); }

.sec-head { display: flex; align-items: center; gap: 16px; margin-bottom: 20px; }
.sec-title {
	font: 800 22px/1.2 var(--font-ui); letter-spacing: -.01em; display: flex; align-items: center; gap: 12px;
}
.sec-title::before { content: ''; width: 6px; height: 24px; background: var(--red); border-radius: 2px; }
.sec-head::after { content: ''; flex: 1; height: 1px; background: var(--line); order: 1; }
.sec-more { order: 2; font-weight: 600; font-size: 14px; color: var(--navy-soft); }
[data-theme="dark"] .sec-more { color: #8fb0ff; }
.sec-more:hover { text-decoration: underline; }

.btn {
	display: inline-block; background: var(--red); color: #fff; font-weight: 700; padding: 13px 24px;
	border-radius: 999px; border: 0;
}
.btn:hover { background: var(--red-deep); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { background: var(--chip); color: var(--text); font-size: 14px; font-weight: 500; padding: 7px 14px; border-radius: 999px; }
.chip:hover { background: var(--navy); color: #fff; }

.media { position: relative; display: block; overflow: hidden; background: var(--chip); }
.media img { width: 100%; height: 100%; object-fit: cover; }

/* =============================================================
   6. Hero
   ============================================================= */
.hero { padding: 26px 0 6px; }
.hero-grid {
	display: grid; gap: 14px; height: 560px;
	grid-template-columns: 1.6fr 1fr 1fr; grid-template-rows: 1fr 1fr;
}
.hero-main { grid-row: 1 / 3; grid-column: 1; }
.hero-grid.n-1 { grid-template-columns: 1fr; grid-template-rows: 1fr; }
.hero-grid.n-1 .hero-main { grid-row: auto; }
.hero-grid.n-2, .hero-grid.n-3 { grid-template-columns: 1.6fr 1fr; }
.hero-grid.n-2 .hero-small { grid-row: 1 / 3; }

.card-overlay { position: relative; border-radius: var(--r-md); overflow: hidden; background: var(--navy); min-height: 0; }
.card-overlay .card-link { position: absolute; inset: 0; display: block; color: #fff; }
.card-overlay .media { position: absolute; inset: 0; border-radius: 0; }
.card-overlay .media img { transition: transform .6s ease; }
.card-overlay:hover .media img { transform: scale(1.04); }
.card-overlay::after {
	content: ''; position: absolute; inset: 0; pointer-events: none;
	background: linear-gradient(to top, rgba(6, 14, 32, .94) 0%, rgba(6, 14, 32, .55) 42%, rgba(6, 14, 32, 0) 72%);
}
.overlay-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 18px 20px 18px; }
.overlay-body .card-title { color: #fff; font: 700 16.5px/1.38 var(--font-head); margin: 10px 0 8px; }
.overlay-body .meta { color: #c3cde0; }
.hero-main .overlay-body { padding: 28px 30px 28px; max-width: 760px; }
.hero-main .card-title { font-size: clamp(24px, 2.6vw, 36px); font-weight: 900; line-height: 1.22; margin: 14px 0 12px; }
.card-overlay:hover .card-title { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }

/* =============================================================
   7. Layout beranda
   ============================================================= */
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 350px; gap: 40px; padding-top: 34px; padding-bottom: 20px; }

.row-list .card-row { border-bottom: 1px solid var(--line); }
.card-row { display: grid; grid-template-columns: 280px 1fr; gap: 22px; padding: 20px 0; }
.card-row:first-child { padding-top: 0; }
.card-row .media { aspect-ratio: 16 / 10; border-radius: var(--r-md); }
.card-row .media img { transition: transform .5s ease; }
.card-row:hover .media img { transform: scale(1.04); }
.card-row .card-title { font: 700 21px/1.36 var(--font-head); }
.card-row .card-title a:hover, .card-grid .card-title a:hover { color: var(--red); }
.card-excerpt {
	color: var(--muted); margin: 8px 0 10px; font-size: 15.5px; line-height: 1.6;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.card-row .card-body { align-self: center; min-width: 0; }
.card-row.is-compact { grid-template-columns: 112px 1fr; gap: 14px; padding: 14px 0; }
.card-row.is-compact:first-child { padding-top: 0; }
.card-row.is-compact .media { border-radius: var(--r-sm); aspect-ratio: 4 / 3; }
.card-row.is-compact .card-title { font-size: 16.5px; line-height: 1.38; }

/* Sidebar */
.sidebar { min-width: 0; }
.widget {
	background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md);
	padding: 22px; margin-bottom: 24px; box-shadow: var(--shadow);
}
.widget-title { font: 800 19px/1.2 var(--font-ui); padding-bottom: 14px; margin-bottom: 6px; border-bottom: 2px solid var(--red); }
.widget ul { list-style: none; margin: 0; padding: 0; }
.pop-list { list-style: none; margin: 0; padding: 0; counter-reset: none; }
.pop-item { display: grid; grid-template-columns: 30px 1fr 76px; gap: 12px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--line); }
.pop-item:last-child { border-bottom: 0; padding-bottom: 0; }
.pop-rank { font: 900 26px/1 var(--font-head); color: var(--line); text-align: center; }
.pop-item:nth-child(-n+3) .pop-rank { color: var(--red); }
.pop-title { font: 700 15.5px/1.4 var(--font-head); color: var(--ink); display: block; margin-bottom: 4px; }
.pop-title:hover { color: var(--red); }
.pop-item .media { width: 76px; aspect-ratio: 1; border-radius: var(--r-sm); }
.widget-topics .chips { margin-top: 14px; }

/* Pagination */
.pagination { margin: 30px 0 0; }
.pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; }
.pagination a.page-numbers, .pagination span.page-numbers {
	min-width: 42px; height: 42px; padding: 0 14px; display: grid; place-items: center;
	border: 1px solid var(--line); background: var(--surface); border-radius: var(--r-sm); font-weight: 600;
}
.pagination a.page-numbers:hover { border-color: var(--navy); color: var(--navy); }
.pagination span.current { background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination .dots { border: 0; background: transparent; }

/* Blok per kategori */
.cat-block { padding: 30px 0 14px; }
.cat-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: 36px; align-items: start; }
.cat-list .card-row { border-bottom: 1px solid var(--line); }
.cat-list .card-row:last-child { border-bottom: 0; }

/* Grid kartu */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 30px 26px; }
.card-grid .media { aspect-ratio: 16 / 9; border-radius: var(--r-md); margin-bottom: 14px; }
.card-grid .media img { transition: transform .5s ease; }
.card-grid:hover .media img { transform: scale(1.04); }
.card-grid .card-title { font: 700 19px/1.38 var(--font-head); margin-bottom: 4px; }
.card-grid .card-excerpt { margin-top: 8px; }
.cat-main .card-grid .card-title { font-size: 24px; line-height: 1.32; }

/* Kepala halaman arsip */
.page-head { padding-top: 42px; padding-bottom: 26px; }
.page-kicker { display: inline-block; color: var(--red); font-weight: 700; font-size: 15px; margin-bottom: 8px; }
.page-title { font: 900 clamp(30px, 4.4vw, 46px)/1.15 var(--font-head); }
.page-desc { color: var(--muted); font-size: 17px; margin-top: 10px; max-width: 640px; }

.empty { text-align: center; padding: 56px 20px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--r-md); }
.empty h2 { font: 800 22px/1.3 var(--font-ui); margin-bottom: 8px; }
.empty .search-form { margin: 18px auto 0; }
.not-found { text-align: center; padding-top: 70px; }
.not-found .page-desc { margin-left: auto; margin-right: auto; }
.not-found .search-form { margin: 24px auto; }
.nf-code { font: 900 clamp(80px, 16vw, 160px)/1 var(--font-head); color: var(--red); margin: 0 0 6px; }

/* =============================================================
   8. Artikel
   ============================================================= */
.progress { position: fixed; top: 0; left: 0; height: 4px; width: 0; background: var(--red); z-index: 400; }
.single-head { padding-top: 40px; }
.single-title { font: 900 clamp(29px, 4.6vw, 46px)/1.2 var(--font-head); margin: 16px 0 14px; letter-spacing: -.01em; }
.lede { font-size: 20px; line-height: 1.6; color: var(--muted); margin-bottom: 20px; }
.byline { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin-top: 18px; }
.byline-avatar img { border-radius: 50%; width: 44px; height: 44px; }
.byline-text { display: flex; flex-direction: column; line-height: 1.4; }
.byline-name { font-weight: 700; color: var(--ink); }
.byline-name:hover { color: var(--red); }
.byline-meta { color: var(--muted); font-size: 14px; }

.single-media { margin-top: 28px; margin-bottom: 0; max-width: 1000px; }
.single-media img { width: 100%; height: auto; border-radius: var(--r-md); aspect-ratio: 16 / 9; object-fit: cover; }
.single-media figcaption { color: var(--muted); font-size: 14px; margin-top: 10px; }

.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 26px 0; }
.share-label { font-weight: 700; margin-right: 4px; color: var(--ink); }
.share-btn {
	display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
	border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 14px; font-weight: 600;
}
.share-btn:hover { border-color: var(--navy); color: var(--navy); }
[data-theme="dark"] .share-btn:hover { color: #fff; border-color: #fff; }

.entry { font-size: 18.5px; line-height: 1.85; color: var(--text); overflow-wrap: break-word; }
.entry > * { margin-top: 0; margin-bottom: 1.45em; }
.entry h2 { font: 900 27px/1.3 var(--font-head); margin: 2em 0 .6em; }
.entry h3 { font: 700 22px/1.35 var(--font-head); margin: 1.8em 0 .5em; }
.entry a { color: var(--red); text-decoration: underline; text-underline-offset: 3px; }
.entry a:hover { color: var(--red-deep); }
.entry blockquote, .entry .wp-block-quote {
	margin-left: 0; margin-right: 0; padding: 4px 0 4px 22px; border-left: 4px solid var(--red);
	font: italic 400 21px/1.7 var(--font-head); color: var(--ink);
}
.entry blockquote cite { display: block; margin-top: 8px; font: 600 14px var(--font-ui); font-style: normal; color: var(--muted); }
.entry img { border-radius: var(--r-sm); }
.entry figure { margin-left: 0; margin-right: 0; }
.entry figcaption, .wp-caption-text { color: var(--muted); font-size: 14px; margin-top: 8px; }
.entry ul, .entry ol { padding-left: 1.4em; }
.entry li { margin-bottom: .4em; }
.entry table { width: 100%; border-collapse: collapse; font-size: 16px; display: block; overflow-x: auto; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry th { background: var(--chip); }
.entry hr { border: 0; height: 1px; background: var(--line); margin: 2.2em 0; }
.entry iframe { width: 100%; border: 0; border-radius: var(--r-sm); }
.alignwide, .alignfull { max-width: 100%; }
.alignleft { float: left; margin: 6px 22px 12px 0; }
.alignright { float: right; margin: 6px 0 12px 22px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.page-links { margin: 20px 0; font-weight: 600; }
.post-tags { margin: 28px 0 8px; }

.author-box { display: flex; gap: 18px; margin: 34px 0 10px; padding: 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-md); }
.author-box img { border-radius: 50%; flex: none; width: 72px; height: 72px; }
.author-name { margin: 0 0 4px; font-weight: 700; color: var(--ink); }
.author-name a:hover { color: var(--red); }
.author-bio { margin: 0; color: var(--muted); font-size: 15.5px; }

.related { padding: 50px 0 30px; margin-top: 40px; border-top: 1px solid var(--line); }

/* Komentar */
.comments { margin: 44px 0 60px; padding-top: 30px; border-top: 1px solid var(--line); }
.comments-title, .comment-reply-title { font: 800 22px/1.3 var(--font-ui); margin-bottom: 18px; }
.comment-list, .comment-list ol { list-style: none; padding: 0; margin: 0; }
.comment-list ol { padding-left: 26px; }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--line); position: relative; }
.comment-author { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--ink); }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; color: var(--muted); margin: 2px 0 8px 56px; }
.comment-content { margin-left: 56px; }
.reply { margin-left: 56px; font-size: 14px; font-weight: 600; color: var(--red); }
.comment-form label { display: block; font-weight: 600; margin-bottom: 6px; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px 14px; border: 1px solid var(--line); border-radius: var(--r-sm);
	background: var(--surface); color: var(--ink); font: inherit;
}
.comment-form .submit { background: var(--red); color: #fff; border: 0; padding: 13px 26px; border-radius: 999px; font-weight: 700; }
.comment-form .submit:hover { background: var(--red-deep); }
.comment-notes, .logged-in-as { color: var(--muted); font-size: 14px; }

/* =============================================================
   9. CTA & Footer
   ============================================================= */
.cta { background: linear-gradient(120deg, var(--navy) 0%, var(--navy-soft) 100%); color: #fff; }
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-top: 38px; padding-bottom: 38px; }
.cta h2 { color: #fff; font: 900 26px/1.3 var(--font-head); margin-bottom: 6px; }
.cta p { margin: 0; color: #c9d5ee; }
.cta .btn { flex: none; background: #fff; color: var(--navy); }
.cta .btn:hover { background: var(--red); color: #fff; }

.site-footer { background: var(--navy-deep); color: #b6c2da; }
.site-main { min-height: 40vh; padding-bottom: 48px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.1fr; gap: 40px; padding-top: 54px; padding-bottom: 40px; }
.f-logo .logo-word { color: #fff; }
.f-logo .logo-mark { background: var(--navy-soft); }
.f-motto { margin: 16px 0 8px; font: 700 16px/1.4 var(--font-head); color: #fff; }
.f-about p { font-size: 14.5px; max-width: 380px; }
.f-social { display: flex; gap: 8px; margin-top: 16px; }
.f-social .social { width: 38px; height: 38px; display: grid; place-items: center; border: 1px solid rgba(255, 255, 255, .22); border-radius: 50%; color: #fff; }
.f-social .social:hover { background: var(--red); border-color: var(--red); }
.f-col h2 { color: #fff; font: 700 16px/1.3 var(--font-ui); margin-bottom: 16px; }
.f-col ul { list-style: none; margin: 0; padding: 0; }
.f-col li { margin-bottom: 10px; font-size: 14.5px; }
.f-col a:hover { color: #fff; text-decoration: underline; }
.f-bottom { border-top: 1px solid rgba(255, 255, 255, .1); font-size: 13.5px; }
.f-bottom-inner { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; padding-top: 18px; padding-bottom: 18px; }

.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 120; width: 46px; height: 46px; border-radius: 50%;
	border: 0; background: var(--red); color: #fff; display: grid; place-items: center;
	box-shadow: 0 8px 20px rgba(0, 0, 0, .25); opacity: 0; visibility: hidden; transform: translateY(10px);
	transition: opacity .2s, transform .2s, visibility .2s;
}
.to-top.show { opacity: 1; visibility: visible; transform: none; }

/* =============================================================
   10. Responsif
   ============================================================= */
@media (max-width: 1100px) {
	.layout { grid-template-columns: minmax(0, 1fr) 310px; gap: 30px; }
	.hero-grid { height: 500px; }
}

@media (max-width: 960px) {
	.layout { grid-template-columns: 1fr; }
	.hero-grid, .hero-grid.n-2, .hero-grid.n-3 { height: auto; grid-template-columns: 1fr 1fr; grid-template-rows: none; }
	.hero-main { grid-column: 1 / -1; grid-row: auto; aspect-ratio: 16 / 9; }
	.hero-small { aspect-ratio: 16 / 10; }
	.hero-grid.n-2 .hero-small { grid-row: auto; grid-column: 1 / -1; }
	.hero-grid.n-1 { grid-template-columns: 1fr; }
	.cat-grid { grid-template-columns: 1fr; gap: 20px; }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 800px) {
	.tb-social, .tb-date { display: none; }
	.brandbar { padding-top: 14px; padding-bottom: 14px; flex-wrap: wrap; row-gap: 12px; }
	.brand .custom-logo { max-height: 46px; }
	.logo-word { font-size: 26px; }
	.logo-mark { width: 36px; height: 36px; font-size: 21px; }
	.brand-tools { margin-left: auto; }
	.search-toggle { display: grid; }
	.brand-search { display: none; }
	.brand-search .search-form { width: 100%; }
	.brandbar.search-open .brand-tools { display: contents; }
	.brandbar.search-open .brand-search { display: block; order: 3; flex-basis: 100%; }
	.brandbar.search-open .search-toggle { order: 1; margin-left: auto; }
	.brandbar.search-open .theme-toggle { order: 2; }

	/* Menu: tab kategori yang bisa digeser, seperti aplikasi berita */
	.nav-inner { padding: 0; }
	.menu { overflow-x: auto; -webkit-overflow-scrolling: touch; scrollbar-width: none; padding: 0 10px; }
	.menu::-webkit-scrollbar { display: none; }
	.menu > li > a { height: 46px; padding: 0 13px; font-size: 14.5px; }
	.menu > li.menu-item-has-children > a[href="#"] { display: none; }
	.menu .sub-menu { display: contents; position: static; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 0; background: transparent; }
	.menu .sub-menu li { display: block; }
	.menu .sub-menu a { display: flex; align-items: center; height: 46px; padding: 0 13px; color: #e8eefb; font-weight: 600; font-size: 14.5px; white-space: nowrap; border-radius: 0; }
	.menu .sub-menu a:hover { background: rgba(255, 255, 255, .09); color: #fff; }
	.menu > li.menu-item-has-children > a:not([href="#"])::after { display: none; }

	.card-row { grid-template-columns: 130px 1fr; gap: 14px; padding: 16px 0; }
	.card-row .card-title { font-size: 17px; }
	.card-row .card-excerpt { display: none; }
	.card-row .media { border-radius: var(--r-sm); aspect-ratio: 4 / 3; }
	.page-head { padding-top: 28px; }
	.cta-inner { flex-direction: column; align-items: flex-start; }
	.single-head { padding-top: 26px; }
	.entry { font-size: 17.5px; }
}

@media (max-width: 600px) {
	.hero { padding-top: 16px; }
	.hero-grid, .hero-grid.n-2, .hero-grid.n-3 { grid-template-columns: 1fr; gap: 12px; }
	.hero-main { aspect-ratio: 4 / 3.4; }
	.hero-main .overlay-body { padding: 20px; }
	.hero-small { aspect-ratio: 16 / 9; }
	.grid { grid-template-columns: 1fr; }
	.footer-grid { grid-template-columns: 1fr; gap: 30px; padding-top: 40px; }
	.layout { padding-top: 26px; }
	.sec-title { font-size: 20px; }
	.widget { padding: 18px; }
	.alignleft, .alignright { float: none; margin: 0 auto 1.2em; display: block; }
	.author-box { flex-direction: column; }
	.comment-content, .reply, .comment-metadata { margin-left: 0; }
	.share-btn span { display: none; }
	.share-btn { padding: 10px 12px; }
}

/* Judul berita miring (italic) */
.card-title,
.card-title a,
.pop-title,
.single-title { font-style: italic; }

/* =============================================================
   11. Menu: muat otomatis (v1.1)
   ============================================================= */
.nav-all { display: none; }
.nav-panel[hidden] { display: none; }
.menu .sub-menu .current-menu-item > a,
.menu .sub-menu .current-cat > a { background: var(--chip); color: var(--red); }
.sidebar { align-self: start; }
.sidebar .widget img { max-width: 100%; height: auto; }

@media (max-width: 800px) {
	.nav-inner { display: flex; align-items: stretch; }
	.nav-inner .menu { flex: 1; min-width: 0; }
	.nav-all {
		position: relative; display: flex; align-items: center; gap: 7px; flex: none;
		padding: 0 14px 0 8px; border: 0; background: var(--navy); color: #fff;
		font-weight: 700; font-size: 14.5px;
	}
	.nav-all::before {
		content: ''; position: absolute; right: 100%; top: 0; bottom: 0; width: 30px; pointer-events: none;
		background: linear-gradient(90deg, rgba(10, 31, 68, 0), var(--navy));
	}
	.nav-all[aria-expanded="true"] { background: var(--red); }
	.nav-panel {
		position: absolute; left: 0; right: 0; top: 100%; z-index: 95; background: var(--surface);
		border-bottom: 3px solid var(--red); box-shadow: 0 22px 40px rgba(7, 22, 47, .35);
		max-height: calc(100vh - 150px); overflow-y: auto; padding: 16px 16px 20px;
	}
	.nav-panel-title { margin: 0 0 12px; font-weight: 800; color: var(--ink); font-size: 17px; }
	.nav-panel-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
	.nav-panel-grid a {
		display: block; padding: 13px 14px; border-radius: var(--r-sm); background: var(--chip);
		color: var(--ink); font-weight: 600; font-size: 15px;
	}
	.nav-panel-grid a.is-current { background: var(--navy); color: #fff; }
}

/* =============================================================
   12. Artikel dengan sidebar (v1.4)
   ============================================================= */
.single-wrap { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 52px; padding-top: 38px; padding-bottom: 20px; }
.single-main { min-width: 0; }
.single-main .single-head { padding-top: 0; max-width: 720px; }
.single-main .single-media { margin: 28px 0 0; max-width: none; padding: 0; }
.single-main .share,
.single-main .entry,
.single-main .post-tags,
.single-main .page-links,
.single-main .author-box,
.single-main .comments { max-width: 720px; }
.pop-item.no-rank { grid-template-columns: 1fr 76px; }
.single-side .widget:first-child { margin-top: 0; }

@media (max-width: 960px) {
	.single-wrap { grid-template-columns: 1fr; gap: 36px; padding-top: 26px; }
	.single-main .single-head,
	.single-main .share,
	.single-main .entry,
	.single-main .post-tags,
	.single-main .page-links,
	.single-main .author-box,
	.single-main .comments { max-width: none; }
}

/* =============================================================
   13. Spanduk hari besar (v1.5)
   ============================================================= */
.momen-bar { background: linear-gradient(90deg, var(--red-deep), var(--red)); color: #fff; font-size: 14.5px; font-weight: 600; }
.momen-bar[hidden] { display: none; }
.momen-inner { position: relative; display: flex; align-items: center; justify-content: center; min-height: 44px; padding-right: 56px; }
.momen-text { margin: 0; text-align: center; line-height: 1.4; }
.momen-text a { text-decoration: underline; text-underline-offset: 3px; }
.momen-close {
	position: absolute; right: 16px; top: 50%; transform: translateY(-50%); width: 28px; height: 28px;
	border: 0; border-radius: 50%; background: rgba(255, 255, 255, .2); color: #fff; font-size: 19px; line-height: 1;
}
.momen-close:hover { background: rgba(255, 255, 255, .35); }

/* =============================================================
   14. Sidebar beranda menempel saat digulir (v1.6)
   ============================================================= */
@media (min-width: 961px) and (min-height: 820px) {
	.layout > .sidebar { position: sticky; top: 76px; }
	.admin-bar .layout > .sidebar { top: 108px; }
}

/* =============================================================
   15. Hiasan hari besar dan banner bergambar (v1.7)
   ============================================================= */
.momen-bar { position: relative; z-index: 60; font-size: 17px; font-weight: 700; letter-spacing: .01em; }
.momen-inner { min-height: 58px; }
.momen-bar::before {
	content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='58' viewBox='0 0 120 58'%3E%3Cg fill='%23fff' fill-opacity='.2'%3E%3Ccircle cx='12' cy='14' r='2.5'/%3E%3Ccircle cx='58' cy='42' r='3'/%3E%3Ccircle cx='96' cy='16' r='2'/%3E%3Cpath d='M34 8l1.8 3.8 4.2.6-3 3 .7 4.2-3.7-2-3.7 2 .7-4.2-3-3 4.2-.6z'/%3E%3Cpath d='M82 36l1.5 3.2 3.5.5-2.5 2.5.6 3.5-3.1-1.7-3.1 1.7.6-3.5-2.5-2.5 3.5-.5z'/%3E%3C/g%3E%3C/svg%3E");
	background-repeat: repeat;
}
.momen-bar::after {
	content: ''; position: absolute; left: 0; right: 0; top: 100%; height: 18px; pointer-events: none; z-index: 2;
	background: repeating-linear-gradient(90deg, #fff 0 30px, var(--red) 30px 60px);
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='18' viewBox='0 0 60 18'%3E%3Cpolygon points='1,0 29,0 15,18'/%3E%3Cpolygon points='31,0 59,0 45,18'/%3E%3C/svg%3E") repeat-x top left / 60px 18px;
	mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='18' viewBox='0 0 60 18'%3E%3Cpolygon points='1,0 29,0 15,18'/%3E%3Cpolygon points='31,0 59,0 45,18'/%3E%3C/svg%3E") repeat-x top left / 60px 18px;
	filter: drop-shadow(0 2px 2px rgba(0, 0, 0, .25));
}
.momen-inner, .momen-close { position: relative; z-index: 3; }
.momen-text { text-shadow: 0 1px 2px rgba(0, 0, 0, .25); }

/* Banner buatan sendiri (gambar) */
.momen-bar.has-img { background: var(--navy-deep); }
.momen-bar.has-img::before, .momen-bar.has-img::after { display: none; }
.momen-bar.has-img .momen-inner { display: block; max-width: none; min-height: 0; padding: 0; }
.momen-bar.has-img .momen-text { display: none; }
.momen-bar.has-img a { display: block; }
.momen-img { display: block; width: 100%; height: auto; max-height: 280px; object-fit: cover; object-position: center; }

@media (max-width: 600px) {
	.momen-bar { font-size: 15px; }
	.momen-inner { min-height: 52px; padding-right: 50px; }
}

/* =============================================================
   16. Tombol muat berita lainnya (v1.9)
   ============================================================= */
.pagination a.page-numbers.more { padding: 0 26px; background: var(--navy); border-color: var(--navy); color: #fff; }
.pagination a.page-numbers.more:hover { background: var(--red); border-color: var(--red); color: #fff; }
.pagination.is-loading { opacity: .55; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	.ticker-track { animation: none; }
	.card-overlay .media img, .card-row .media img, .card-grid .media img { transition: none; }
}

@media print {
	.topbar, .navbar, .brand-tools, .sidebar, .share, .related, .comments, .cta, .site-footer, .to-top, .progress { display: none !important; }
	body { background: #fff; }
}
