/*
Theme Name: GenZ News
Theme URI: https://example.com/genz-news
Author: GenZ News
Description: Tema WordPress portal berita profesional dengan nuansa hijau & biru, logo di tengah, ticker berita, hero, berita populer, mode gelap, dan footer multi-kolom.
Version: 2.5.0
Requires at least: 6.0
Tested up to: 6.6
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: genz-news
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, threaded-comments, translation-ready
*/

/* =========================================================
   1. Tokens
   ========================================================= */
:root {
	--navy: #0a2540;
	--navy-2: #0b3a6b;
	--blue: #1565c0;
	--blue-soft: #e5f0fc;
	--green: #0e9f5b;
	--green-d: #0a7c46;
	--green-soft: #e3f5ec;
	--grad: linear-gradient(90deg, var(--green), var(--blue));
	--bg: #f3f8f7;
	--surface: #ffffff;
	--ink: #0d1b2a;
	--muted: #546576;
	--line: #dae5e3;
	--link: var(--blue);
	--shadow: 0 1px 2px rgba(10, 37, 64, .06), 0 8px 24px rgba(10, 37, 64, .06);
	--radius: 10px;
	--font-ui: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
	--font-head: "Source Serif 4", Georgia, "Times New Roman", serif;
	--wrap: 1200px;
	color-scheme: light;
}

html[data-theme="dark"] {
	--bg: #07131f;
	--surface: #0e1e2e;
	--ink: #e7eff6;
	--muted: #9aaec0;
	--line: #1d3348;
	--blue: #5aa6ff;
	--blue-soft: #12304a;
	--green: #33cf84;
	--green-d: #33cf84;
	--green-soft: #0f2f27;
	--shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 8px 24px rgba(0, 0, 0, .3);
	color-scheme: dark;
}

/* =========================================================
   2. Base
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
	margin: 0;
	background: var(--bg);
	color: var(--ink);
	font-family: var(--font-ui);
	font-size: 16px;
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}

img, video, iframe { max-width: 100%; height: auto; }
img { display: block; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
h1, h2, h3, h4 { font-family: var(--font-head); line-height: 1.25; margin: 0 0 .5em; color: var(--ink); }
p { margin: 0 0 1em; }
ul, ol { padding-left: 1.2em; }
button { font: inherit; cursor: pointer; }

:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

.container { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }

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

.icon { flex: none; }
.when-dark { display: none; }
html[data-theme="dark"] .when-dark { display: inline-flex; }
html[data-theme="dark"] .when-light { display: none; }

/* =========================================================
   3. Header
   ========================================================= */
.progress {
	position: fixed; left: 0; top: 0; z-index: 200; width: 100%; height: 4px;
	background: var(--grad); transform: scaleX(0); transform-origin: 0 50%;
}

.topbar { background: var(--navy); color: #c9d9e8; font-size: 13px; }
.topbar__in { display: flex; align-items: center; gap: 20px; min-height: 40px; }
.topbar__date { white-space: nowrap; }
.topbar__nav { margin-right: auto; }
.topbar__menu { list-style: none; display: flex; gap: 18px; margin: 0; padding: 0; }
.topbar__menu a { color: #c9d9e8; }
.topbar__menu a:hover { color: #fff; }
.topbar__tools { display: flex; align-items: center; gap: 4px; margin-left: auto; }
.topbar__nav + .topbar__tools { margin-left: 0; }

.socials { display: flex; gap: 6px; }
.socials a {
	display: inline-flex; align-items: center; justify-content: center;
	width: 32px; height: 32px; border-radius: 50%; color: inherit; transition: background .2s, color .2s;
}
.socials--top a { color: #c9d9e8; width: 30px; height: 30px; }
.socials--top a:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.icon-btn {
	display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px;
	border-radius: 50%; border: 0; background: transparent; color: #c9d9e8;
}
.icon-btn:hover { background: rgba(255, 255, 255, .12); color: #fff; }

.masthead { background: var(--surface); border-bottom: 1px solid var(--line); }
.masthead__in { display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 26px; padding-bottom: 22px; }
.brand { display: inline-flex; justify-content: center; }
.brand--logo img, .brand--logo .custom-logo { max-height: 84px; width: auto; margin: 0 auto; }
.brand--logo .custom-logo-link { display: inline-flex; }
.brand--text:hover { text-decoration: none; }
.brand__name {
	font-family: var(--font-head); font-weight: 800; font-size: clamp(32px, 5vw, 52px); letter-spacing: -.02em; line-height: 1.1;
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.brand__tagline { margin: 6px 0 0; color: var(--muted); font-size: 14px; }

.nav-wrap {
	position: sticky; top: 0; z-index: 100; background: var(--surface);
	border-bottom: 1px solid var(--line); transition: box-shadow .2s;
}
.nav-wrap::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--grad); }
.admin-bar .nav-wrap { top: 32px; }
@media (max-width: 782px) { .admin-bar .nav-wrap { top: 46px; } }
.nav-wrap.is-stuck { box-shadow: 0 6px 20px rgba(10, 37, 64, .12); }

.nav-in { display: flex; justify-content: center; }
.nav-toggle {
	display: none; align-items: center; gap: 10px; background: none; border: 0; color: var(--ink);
	font-weight: 700; padding: 14px 0;
}
.primary-nav .menu, .primary-nav ul { list-style: none; margin: 0; padding: 0; }
.primary-nav .menu { display: flex; flex-wrap: wrap; justify-content: center; }
.primary-nav a {
	display: block; padding: 16px 16px; color: var(--ink); font-weight: 600; font-size: 15px; position: relative;
}
.primary-nav a:hover { text-decoration: none; color: var(--blue); }
.primary-nav .menu > li > a::before {
	content: ""; position: absolute; left: 16px; right: 16px; bottom: 8px; height: 3px; border-radius: 3px;
	background: var(--green); transform: scaleX(0); transform-origin: 0 50%; transition: transform .2s;
}
.primary-nav .menu > li:hover > a::before,
.primary-nav .current-menu-item > a::before,
.primary-nav .current-menu-ancestor > a::before,
.primary-nav .current-cat > a::before { transform: scaleX(1); }
.primary-nav li { position: relative; }
.primary-nav .sub-menu {
	position: absolute; left: 0; top: 100%; min-width: 220px; background: var(--surface);
	border: 1px solid var(--line); border-top: 3px solid var(--green); border-radius: 0 0 var(--radius) var(--radius);
	box-shadow: var(--shadow); padding: 6px 0; opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s, transform .15s, visibility .15s;
}
.primary-nav li:hover > .sub-menu, .primary-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.primary-nav .sub-menu a { padding: 10px 16px; font-weight: 500; }
.primary-nav .sub-menu a::before { display: none; }
.primary-nav .sub-menu a:hover { background: var(--green-soft); }
.sub-toggle { display: none; }

.search-panel { background: var(--navy-2); padding: 14px 0; }
.searchform { display: flex; max-width: 640px; margin: 0 auto; }
.searchform input[type="search"] {
	flex: 1; min-width: 0; border: 1px solid var(--line); border-right: 0; border-radius: var(--radius) 0 0 var(--radius);
	padding: 12px 16px; font: inherit; background: var(--surface); color: var(--ink);
}
.searchform button {
	border: 0; background: var(--green); color: #fff; padding: 0 18px; border-radius: 0 var(--radius) var(--radius) 0;
	display: inline-flex; align-items: center;
}
.searchform button:hover { background: var(--green-d); }

/* Ticker */
.ticker { background: var(--surface); border-bottom: 1px solid var(--line); }
.ticker__in { display: flex; align-items: center; gap: 14px; height: 44px; }
.ticker__label {
	flex: none; background: var(--green); color: #fff; font-weight: 700; font-size: 13px;
	padding: 5px 14px; border-radius: 999px;
}
.ticker__track { flex: 1; overflow: hidden; white-space: nowrap; mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 24px, #000 calc(100% - 24px), transparent); }
.ticker__list { display: inline-flex; gap: 48px; margin: 0; padding: 0 0 0 100%; list-style: none; animation: gn-ticker 45s linear infinite; }
.ticker__track:hover .ticker__list { animation-play-state: paused; }
.ticker__list a { color: var(--ink); font-size: 14px; font-weight: 500; }
.ticker__list a:hover { color: var(--blue); }
@keyframes gn-ticker { to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
	.ticker__list { animation: none; padding-left: 0; }
	.ticker__track { overflow-x: auto; }
}

/* =========================================================
   4. Layout & sections
   ========================================================= */
.site-main { padding: 28px 0 56px; }
.layout { display: grid; grid-template-columns: minmax(0, 1fr) 330px; gap: 40px; align-items: start; }
.sidebar { position: sticky; top: 86px; }
.admin-bar .sidebar { top: 118px; }

.section-head {
	display: flex; align-items: center; justify-content: space-between; gap: 16px;
	border-bottom: 1px solid var(--line); margin: 0 0 20px; position: relative;
}
.section-head::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 72px; height: 3px; background: var(--grad); }
.section-head h2 { font-size: 24px; margin: 0; padding-bottom: 10px; }
.section-head__more { font-size: 14px; font-weight: 600; padding-bottom: 10px; }

.chip {
	display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--green-d); background: var(--green-soft);
	padding: 3px 10px; border-radius: 999px; margin-bottom: 8px;
}
.chip:hover { text-decoration: none; background: var(--green); color: #fff; }
.chip--solid { background: var(--green); color: #fff; }
.chip--solid:hover { background: #fff; color: var(--green-d); }

.meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--muted); }
.meta__item { display: inline-flex; align-items: center; gap: 5px; color: inherit; }
a.meta__item:hover { color: var(--blue); text-decoration: none; }
.meta--light { color: rgba(255, 255, 255, .85); }

.ph { display: block; width: 100%; height: 100%; background: linear-gradient(135deg, var(--green) 0%, var(--blue) 100%); opacity: .85; }

/* Label jenis artikel */
.article__tags { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 10px; }
.article__tags .chip { margin-bottom: 0; }
.label {
	display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 6px;
	color: var(--blue); background: var(--blue-soft); border: 1px solid transparent;
}
.label--opini { color: #8a4b00; background: #fff1de; }
.label--analisis { color: #4a2c8a; background: #ece6fb; }
.label--advertorial { color: #7a1f1f; background: #fde8e8; border-color: #f3b9b9; }
.label--cek-fakta { color: var(--green-d); background: var(--green-soft); }
html[data-theme="dark"] .label--opini { color: #ffc27a; background: #3a2610; }
html[data-theme="dark"] .label--analisis { color: #c8b6ff; background: #261c44; }
html[data-theme="dark"] .label--advertorial { color: #ffb3b3; background: #3d1818; border-color: #6b2a2a; }

/* Hero */
.hero { display: grid; grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr); gap: 20px; margin-bottom: 40px; }
.hero__main { position: relative; border-radius: var(--radius); overflow: hidden; min-height: 440px; background: var(--navy); box-shadow: var(--shadow); }
.hero__media { position: absolute; inset: 0; }
.hero__media img { width: 100%; height: 100%; object-fit: cover; }
.hero__overlay {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 80px 28px 26px;
	background: linear-gradient(to top, rgba(7, 27, 51, .95) 0%, rgba(7, 27, 51, .6) 55%, transparent 100%);
}
.hero__title { font-size: clamp(24px, 3.2vw, 36px); font-weight: 800; margin: 0 0 10px; }
.hero__title a { color: #fff; }
.hero__title a:hover { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 4px; }
.hero__side { display: grid; gap: 14px; grid-auto-rows: 1fr; }

.mini {
	display: grid; grid-template-columns: 120px minmax(0, 1fr); gap: 14px; background: var(--surface);
	padding: 12px; border-radius: var(--radius); box-shadow: var(--shadow); align-items: center;
}
.mini__thumb { border-radius: 8px; overflow: hidden; aspect-ratio: 4 / 3; display: block; }
.mini__thumb img { width: 100%; height: 100%; object-fit: cover; }
.mini__title { font-size: 16px; margin: 0 0 6px; }
.mini__title a, .card-list__title a, .card-grid__title a { color: var(--ink); }
.mini__title a:hover, .card-list__title a:hover, .card-grid__title a:hover { color: var(--blue); text-decoration: none; }
.mini .chip { margin-bottom: 4px; }

/* List cards */
.card-list { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 22px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.card-list:first-of-type { padding-top: 0; }
.card-list__thumb { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 3 / 2; }
.card-list__thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s; }
.card-list:hover .card-list__thumb img { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .card-list:hover .card-list__thumb img { transform: none; } }
.card-list__title { font-size: 22px; margin: 0 0 8px; }
.card-list__excerpt { color: var(--muted); margin: 0 0 10px; font-size: 15px; }

/* Grid cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.card-grid__thumb { display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 16 / 10; margin-bottom: 12px; }
.card-grid__thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-grid__title { font-size: 18px; margin: 0 0 6px; }
.cat-block { margin-top: 48px; }

.empty { padding: 28px; background: var(--surface); border: 1px dashed var(--line); border-radius: var(--radius); color: var(--muted); }

/* Sidebar / widgets */
.widget { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; margin-bottom: 24px; }
.widget__title {
	font-size: 19px; margin: 0 0 16px; padding-bottom: 10px; position: relative; border-bottom: 1px solid var(--line);
}
.widget__title::after { content: ""; position: absolute; left: 0; bottom: -1px; width: 48px; height: 3px; background: var(--grad); }
.widget ul { list-style: none; padding: 0; margin: 0; }
.widget li { padding: 8px 0; border-bottom: 1px solid var(--line); }
.widget li:last-child { border-bottom: 0; }
.widget li a { color: var(--ink); }
.widget li a:hover { color: var(--blue); }

.popular { list-style: none; counter-reset: pop; margin: 0; padding: 0; }
.popular li { counter-increment: pop; border-bottom: 1px solid var(--line); }
.popular li:last-child { border-bottom: 0; }
.popular a { display: grid; grid-template-columns: 34px minmax(0, 1fr); column-gap: 12px; padding: 12px 0; color: var(--ink); }
.popular a::before {
	content: counter(pop); grid-row: span 2; font-family: var(--font-head); font-size: 28px; font-weight: 800; line-height: 1;
	background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.popular a:hover { text-decoration: none; }
.popular a:hover .popular__title { color: var(--blue); }
.popular__title { font-weight: 600; line-height: 1.4; }
.popular__meta { font-size: 12.5px; color: var(--muted); }

.cat-list li { display: flex; justify-content: space-between; gap: 10px; }
.tagcloud-lite a, .tags a {
	display: inline-block; margin: 0 6px 8px 0; padding: 5px 12px; border-radius: 999px; background: var(--blue-soft);
	color: var(--blue); font-size: 13px !important; font-weight: 600;
}
.tagcloud-lite a:hover, .tags a:hover { background: var(--blue); color: #fff; text-decoration: none; }

/* Archive */
.archive-head { margin-bottom: 28px; padding: 26px 28px; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); border-left: 5px solid var(--green); }
.archive-head h1 { margin: 0; font-size: clamp(26px, 4vw, 36px); }
.archive-head h1 span { color: var(--blue); }
.archive-head__desc { color: var(--muted); margin-top: 8px; }

.breadcrumbs { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs a:hover { color: var(--blue); }
.breadcrumbs .sep { opacity: .5; }

.pagination { margin-top: 32px; }
.pagination ul { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; padding: 0; margin: 0; }
.pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center; min-width: 42px; height: 42px; padding: 0 14px;
	border-radius: 8px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); font-weight: 600;
}
.pagination a.page-numbers:hover { border-color: var(--blue); color: var(--blue); text-decoration: none; }
.pagination .current { background: var(--grad); color: #fff; border-color: transparent; }

/* =========================================================
   5. Single article
   ========================================================= */
.article { min-width: 0; }
.article__title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; letter-spacing: -.01em; margin-bottom: 14px; }
.article__lede { font-size: 20px; color: var(--muted); line-height: 1.55; font-family: var(--font-head); }
.byline { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); margin: 18px 0 22px; }
.byline__avatar { border-radius: 50%; }
.byline__author { font-weight: 700; color: var(--ink); display: block; }
.article__media { margin: 0 0 22px; }
.article__media img { width: 100%; border-radius: var(--radius); }
.article__media figcaption { font-size: 13.5px; color: var(--muted); padding-top: 8px; }

.share { display: flex; align-items: center; gap: 8px; margin-bottom: 26px; flex-wrap: wrap; }
.share__label { font-weight: 700; font-size: 14px; margin-right: 4px; }
.share__btn {
	display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 50%;
	border: 1px solid var(--line); background: var(--surface); color: var(--ink); transition: background .2s, color .2s, border-color .2s;
}
.share__btn:hover { background: var(--blue); border-color: var(--blue); color: #fff; text-decoration: none; }
.share__ok { font-size: 13px; color: var(--green-d); font-weight: 600; }

.entry { font-size: calc(18px * var(--fs, 1)); line-height: 1.85; max-width: 72ch; overflow-wrap: break-word; }
.entry > * + * { margin-top: 1.2em; }
.entry h2 { font-size: 28px; margin-top: 1.8em; }
.entry h3 { font-size: 22px; margin-top: 1.5em; }
.entry a { text-decoration: underline; text-underline-offset: 3px; }
.entry img { border-radius: 8px; }
.entry blockquote {
	margin: 1.8em 0; padding: 4px 0 4px 24px; border-left: 4px solid var(--green);
	font-family: var(--font-head); font-size: 22px; line-height: 1.5; color: var(--navy-2);
}
html[data-theme="dark"] .entry blockquote { color: var(--blue); }
.entry table { width: 100%; border-collapse: collapse; font-size: 16px; }
.entry th, .entry td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; }
.entry th { background: var(--green-soft); }
.entry pre { background: var(--navy); color: #e6eef7; padding: 16px; border-radius: 8px; overflow: auto; font-size: 14px; }
.alignwide { max-width: none; }
.wp-caption, figure { max-width: 100%; }
.wp-caption-text, figcaption { font-size: 13.5px; color: var(--muted); }

.tags { margin: 28px 0; }
.author-box {
	display: flex; gap: 18px; padding: 22px; background: var(--surface); border-radius: var(--radius);
	box-shadow: var(--shadow); border-left: 5px solid var(--blue); margin: 30px 0;
}
.author-box img { border-radius: 50%; flex: none; }
.author-box p { margin: 0; color: var(--muted); }
.author-box__name { font-weight: 800; color: var(--ink) !important; font-size: 18px; margin-bottom: 4px !important; }
.author-box__name a { color: var(--ink); }

.post-navigation .nav-links { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin: 30px 0; }
.post-navigation a { display: block; padding: 16px 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); height: 100%; }
.post-navigation a:hover { border-color: var(--green); text-decoration: none; }
.post-navigation .nav-next { text-align: right; }
.pn__label { display: block; font-size: 13px; color: var(--muted); margin-bottom: 4px; }
.pn__title { font-family: var(--font-head); font-weight: 700; line-height: 1.35; }
.related { margin-top: 40px; }

/* Comments */
.comments { margin-top: 40px; }
.comment-list { list-style: none; padding: 0; margin: 0 0 30px; }
.comment-list .children { list-style: none; padding-left: 28px; }
.comment-body { background: var(--surface); border-radius: var(--radius); padding: 18px; margin-bottom: 14px; position: relative; box-shadow: var(--shadow); }
.comment-author { display: flex; align-items: center; gap: 12px; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: 13px; }
.comment-metadata a { color: var(--muted); }
.reply a { font-size: 13px; font-weight: 700; }
.comment-form label { display: block; font-weight: 600; margin-bottom: 4px; font-size: 14px; }
.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: 8px; background: var(--surface); color: var(--ink); font: inherit;
}
.comment-form input:focus, .comment-form textarea:focus { border-color: var(--blue); outline: 0; box-shadow: 0 0 0 3px var(--blue-soft); }
.comment-form .submit, .btn {
	display: inline-block; border: 0; background: var(--grad); color: #fff; font-weight: 700; padding: 12px 24px; border-radius: 8px;
}
.comment-form .submit:hover, .btn:hover { filter: brightness(1.08); text-decoration: none; color: #fff; }

.notfound { text-align: center; padding: 64px 0; max-width: 560px; margin: 0 auto; }
.notfound__code { font-family: var(--font-head); font-size: 110px; font-weight: 800; line-height: 1; margin: 0 0 8px; background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.notfound .searchform { margin: 22px auto; }

/* =========================================================
   6. Newsletter + Footer
   ========================================================= */
.newsletter { margin-top: 8px; position: relative; z-index: 2; margin-bottom: -64px; }
.newsletter__card {
	display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 28px; align-items: center;
	padding: 34px 40px; border-radius: 16px; color: #fff;
	background: linear-gradient(120deg, var(--green-d) 0%, #0b7a7a 45%, var(--blue) 100%);
	box-shadow: 0 18px 40px rgba(10, 37, 64, .28);
}
.newsletter h2 { color: #fff; font-size: clamp(22px, 2.6vw, 30px); margin: 0 0 6px; }
.newsletter p { margin: 0; color: rgba(255, 255, 255, .9); }
.newsletter__form { display: flex; flex-wrap: wrap; gap: 10px; }
.newsletter__form input[type="email"] {
	flex: 1 1 220px; min-width: 0; padding: 14px 16px; border: 0; border-radius: 10px; font: inherit; color: #0d1b2a; background: #fff;
}
.newsletter__form button {
	padding: 14px 24px; border: 0; border-radius: 10px; background: var(--navy); color: #fff; font-weight: 700;
	transition: background .2s;
}
.newsletter__form button:hover { background: #051a30; }
.newsletter__msg { flex-basis: 100%; font-size: 13.5px; }

.site-footer {
	position: relative; color: #c3d3e3; padding-top: 64px;
	background: linear-gradient(160deg, #071b33 0%, #0a2f5c 58%, #0b4a5c 100%);
}
.site-footer::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 5px; background: var(--grad); }
.site-footer a { color: #c3d3e3; }
.site-footer a:hover { color: #fff; text-decoration: none; }
.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1.2fr 1fr; gap: 44px; padding-top: 72px; padding-bottom: 48px; }
.footer__brand .custom-logo { max-height: 64px; width: auto; }
.footer__name { font-family: var(--font-head); font-size: 30px; font-weight: 800; color: #fff !important; letter-spacing: -.01em; }
.footer__about p { margin: 14px 0 18px; max-width: 34ch; line-height: 1.7; }
.socials--footer a { background: rgba(255, 255, 255, .08); color: #fff; width: 38px; height: 38px; }
.socials--footer a:hover { background: var(--green); }
.footer__title, .site-footer .widget__title {
	font-size: 17px; color: #fff; margin: 0 0 18px; padding-bottom: 12px; position: relative; border: 0;
}
.footer__title::after { content: ""; position: absolute; left: 0; bottom: 0; width: 40px; height: 3px; border-radius: 3px; background: var(--green); }
.footer__links, .site-footer .widget ul { list-style: none; margin: 0; padding: 0; }
.footer__links li, .site-footer .widget li { padding: 6px 0; border: 0; }
.footer__links a, .site-footer .widget li a { color: #c3d3e3; display: inline-block; transition: transform .15s, color .15s; }
.footer__links a:hover, .site-footer .widget li a:hover { transform: translateX(4px); color: #fff; }
.site-footer .widget { background: none; box-shadow: none; padding: 0; margin: 0; }
.site-footer .widget p, .site-footer .widget { color: #c3d3e3; }

.footer__bar { border-top: 1px solid rgba(255, 255, 255, .12); background: rgba(3, 14, 28, .35); }
.footer__bar-in { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 18px; padding-bottom: 18px; font-size: 14px; }
.footer__copy { margin: 0; }
.footer__menu { list-style: none; display: flex; flex-wrap: wrap; gap: 6px 22px; margin: 0; padding: 0; }

.to-top {
	position: fixed; right: 20px; bottom: 20px; z-index: 90; width: 46px; height: 46px; border-radius: 50%; border: 0;
	background: var(--grad); color: #fff; display: inline-flex; align-items: center; justify-content: center;
	box-shadow: 0 8px 20px rgba(10, 37, 64, .35);
}
.to-top[hidden] { display: none; }
.to-top:hover { filter: brightness(1.1); }


/* Kotak Redaksi (footer) */
.redbox { padding: 0 0 36px; }
.redbox__card {
	display: grid; grid-template-columns: minmax(0, 260px) minmax(0, 1fr); gap: 28px 40px; align-items: start;
	padding: 28px 32px; border-radius: 14px;
	background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14);
}
.redbox__head h3 { color: #fff; font-size: 22px; margin: 0 0 4px; }
.redbox__head p { margin: 0 0 16px; color: #9fb7cf; }
.redbox__btn {
	display: inline-block; padding: 10px 18px; border-radius: 8px; font-weight: 700; font-size: 14px;
	background: var(--green); color: #fff !important; transition: background .2s;
}
.redbox__btn:hover { background: var(--green-d); text-decoration: none; }
.redbox__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 32px; margin: 0; }
.redbox__item dt { font-size: 12.5px; font-weight: 700; color: #7fe0ae; margin-bottom: 2px; }
.redbox__item dd { margin: 0; color: #e2ecf6; overflow-wrap: anywhere; }
.redbox__item a { color: #e2ecf6; text-decoration: underline; text-underline-offset: 3px; }
.redbox__empty { margin: 0 0 28px; font-size: 14px; color: #9fb7cf; border: 1px dashed rgba(255, 255, 255, .25); padding: 12px 16px; border-radius: 10px; }

/* Halaman Redaksi */
.article--wide { max-width: 860px; margin: 0 auto; }
.redpage { margin-top: 40px; }
.redpage__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; }
.redpage__card {
	display: flex; flex-direction: column; gap: 2px; padding: 16px 18px; background: var(--surface);
	border-radius: var(--radius); box-shadow: var(--shadow); border-left: 4px solid var(--green);
}
.redpage__role { font-size: 13px; color: var(--muted); font-weight: 600; }
.redpage__name { font-family: var(--font-head); font-size: 18px; }
.redpage__info { display: grid; gap: 0; margin: 0; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; }
.redpage__info > div { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 16px; padding: 14px 20px; border-bottom: 1px solid var(--line); }
.redpage__info > div:last-child { border-bottom: 0; }
.redpage__info dt { font-weight: 700; color: var(--muted); }
.redpage__info dd { margin: 0; overflow-wrap: anywhere; }


/* Slot iklan */
.ad { margin: 24px auto; text-align: center; max-width: 100%; }
.ad-wrap { padding-top: 4px; }
.ad__label { display: block; font-size: 11.5px; color: var(--muted); margin-bottom: 6px; letter-spacing: .02em; }
.ad__body { display: flex; justify-content: center; align-items: center; overflow: hidden; max-width: 100%; }
.ad__body img, .ad__body iframe { max-width: 100%; height: auto; }
.ad--header .ad__body, .ad--footer .ad__body, .ad--in_list .ad__body { min-height: 90px; }
.ad--sidebar_top .ad__body, .ad--sidebar_2 .ad__body, .ad--in_article .ad__body, .ad--after_article .ad__body { min-height: 250px; }
.ad--sidebar_top { margin-top: 0; }
.ad--in_article { margin: 28px auto; clear: both; }
.ad-list { padding: 4px 0; border-bottom: 1px solid var(--line); }
.ad-list .ad { margin: 14px auto; }
.ad--placeholder {
	display: flex; align-items: center; justify-content: center; min-height: 90px; padding: 14px;
	border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); font-size: 13px; background: var(--surface);
}
.ad--sidebar_top.ad--placeholder, .ad--sidebar_2.ad--placeholder, .ad--in_article.ad--placeholder, .ad--after_article.ad--placeholder { min-height: 250px; }

/* =========================================================
   7. Responsive
   ========================================================= */
@media (max-width: 1100px) {
	.redbox__card { grid-template-columns: minmax(0, 1fr); }
	.layout { grid-template-columns: minmax(0, 1fr) 290px; gap: 28px; }
	.grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.sidebar { position: static; }
	.hero { grid-template-columns: minmax(0, 1fr); }
	.hero__main { min-height: 360px; }
	.hero__side { grid-auto-rows: auto; }
	.newsletter__card { grid-template-columns: minmax(0, 1fr); padding: 28px 24px; }

	.nav-in { justify-content: space-between; flex-wrap: wrap; }
	.nav-toggle { display: inline-flex; }
	.primary-nav { display: none; width: 100%; padding-bottom: 10px; }
	.primary-nav.is-open { display: block; }
	.primary-nav .menu { display: block; }
	.primary-nav .menu > li { border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; align-items: center; }
	.primary-nav .menu > li > a { flex: 1; padding: 13px 4px; }
	.primary-nav .menu > li > a::before { display: none; }
	.primary-nav .sub-menu { position: static; width: 100%; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; border-left: 3px solid var(--green); border-radius: 0; margin: 0 0 8px 8px; display: none; }
	.primary-nav li.is-open > .sub-menu { display: block; }
	.sub-toggle { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border: 0; background: none; color: var(--ink); }
	.topbar__nav { display: none; }
}

@media (max-width: 640px) {
	.container { padding: 0 16px; }
	.redbox__card { padding: 22px 20px; }
	.redbox__list { grid-template-columns: minmax(0, 1fr); }
	.redpage__info > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
	.topbar__date { font-size: 12px; }
	.card-list { grid-template-columns: 112px minmax(0, 1fr); gap: 14px; }
	.card-list__title { font-size: 17px; margin-bottom: 4px; }
	.card-list__excerpt { display: none; }
	.card-list .chip { margin-bottom: 4px; }
	.mini { grid-template-columns: 96px minmax(0, 1fr); gap: 12px; }
	.mini__title { font-size: 15px; }
	.hero__overlay { padding: 60px 18px 18px; }
	.grid-3, .grid-4 { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; }
	.card-grid__title { font-size: 15px; }
	.entry { font-size: calc(17px * var(--fs, 1)); }
	.post-navigation .nav-links { grid-template-columns: 1fr; }
	.author-box { flex-direction: column; }
	.footer__grid { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 60px; }
	.footer__bar-in { flex-direction: column; align-items: flex-start; }
	.newsletter { margin-bottom: -48px; }
}

/* =========================================================
   Redaksi: penulis tambahan & live blog
   ========================================================= */
.byline__names { font-weight: 700; line-height: 1.4; }
.byline__names .byline__author { display: inline; }
.byline__names .byline__author:hover { color: var(--green-d); }

.live { margin: 28px 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); overflow: hidden; }
.live__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 12px 16px; border-bottom: 1px solid var(--line); background: var(--green-soft); }
.live__badge { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px; border-radius: 999px; background: #d92d20; color: #fff; font-size: 12px; font-weight: 800; letter-spacing: .08em; }
.live__badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: gn-live-pulse 1.4s ease-in-out infinite; }
.live__badge.is-ended { background: var(--muted); }
.live__badge.is-ended::before { animation: none; opacity: .7; }
.live__hint { font-size: 13px; color: var(--muted); }
.live__list { display: block; }
.live__item { display: grid; grid-template-columns: 76px 1fr; gap: 16px; padding: 18px 16px; border-bottom: 1px solid var(--line); }
.live__item:last-child { border-bottom: 0; }
.live__time { display: flex; flex-direction: column; line-height: 1.25; color: var(--green-d); }
.live__time strong { font-size: 18px; }
.live__time span { font-size: 12px; color: var(--muted); }
.live__title { margin: 0 0 6px; font-family: var(--font-head); font-size: 19px; line-height: 1.35; }
.live__text { font-size: calc(16.5px * var(--fs, 1)); line-height: 1.75; }
.live__text > :first-child { margin-top: 0; }
.live__text > :last-child { margin-bottom: 0; }
.live__text img { max-width: 100%; height: auto; border-radius: 8px; }
@keyframes gn-live-pulse { 0%, 100% { opacity: 1; transform: scale(1); } 50% { opacity: .35; transform: scale(.7); } }
@media (max-width: 640px) {
	.live { margin-left: -4px; margin-right: -4px; }
	.live__item { grid-template-columns: 1fr; gap: 6px; padding: 16px 14px; }
	.live__time { flex-direction: row; align-items: baseline; gap: 8px; }
}
@media (prefers-reduced-motion: reduce) { .live__badge::before { animation: none; } }

/* =========================================================
   Kenyamanan pembaca (Tahap 2)
   ========================================================= */
.article__tools { display: flex; align-items: center; justify-content: space-between; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 26px; }
.article__tools .share { margin-bottom: 0; }
.tsize { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.tsize__btn { border: 0; background: transparent; color: var(--ink); font: 700 15px var(--font-ui); min-width: 40px; height: 38px; padding: 0 10px; cursor: pointer; }
.tsize__btn + .tsize__btn { border-left: 1px solid var(--line); }
.tsize__btn--big { font-size: 18px; }
.tsize__btn small { font-size: 11px; margin-left: 1px; vertical-align: super; }
.tsize__btn:hover:not([disabled]) { background: var(--green-soft); }
.tsize__btn[disabled] { opacity: .4; cursor: default; }

/* Bacaan nyaman: tabel dan embed tidak membuat halaman bergeser ke samping */
.entry p { text-wrap: pretty; }
.entry table { display: block; max-width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
.entry iframe, .entry video, .entry embed { max-width: 100%; }
.entry iframe { border: 0; }

/* Bagian bawah halaman dirender belakangan agar halaman terbuka lebih cepat */
.cat-block, .related, .comments { content-visibility: auto; contain-intrinsic-size: auto 520px; }

/* Sidebar menempel, tetapi tetap bisa digulir jika lebih tinggi dari layar */
@media (min-width: 1101px) {
	.sidebar { max-height: calc(100vh - 104px); overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
	.admin-bar .sidebar { max-height: calc(100vh - 136px); }
}

/* Area sentuh minimal 44px di layar sentuh */
@media (pointer: coarse) {
	.share__btn { width: 44px; height: 44px; }
	.icon-btn { min-width: 44px; min-height: 44px; }
	.tsize__btn { height: 44px; min-width: 46px; }
	.nav-toggle, .sub-toggle { min-height: 44px; min-width: 44px; }
}

/* Bilah share bawah: hanya di HP/tablet */
.sharebar { display: none; }
@media (max-width: 900px) {
	.sharebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 95; gap: 8px; padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px)); background: var(--surface); border-top: 1px solid var(--line); box-shadow: 0 -6px 20px rgba(10, 37, 64, .12); }
	.sharebar[hidden], .sharebar__btn[hidden] { display: none; }
	.sharebar__btn { flex: 1 1 0; min-width: 0; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; padding: 0 10px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); font: 600 14px var(--font-ui); cursor: pointer; text-decoration: none; }
	.sharebar__btn--wa { background: #1c8f4d; border-color: #1c8f4d; color: #fff; }
	.sharebar .share__ok { position: absolute; left: 50%; bottom: calc(100% + 8px); transform: translateX(-50%); background: var(--ink); color: var(--surface); padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
	body.single-post { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
	.single-post .to-top { bottom: calc(76px + env(safe-area-inset-bottom, 0px)); right: 14px; }
}
@media (max-width: 380px) {
	.sharebar__btn span { display: none; }
	.sharebar__btn--wa span { display: inline; }
}

@media print {
	.ad, .ad-list, .ad-wrap,
	.topbar, .nav-wrap, .ticker, .sidebar, .site-footer, .newsletter, .share, .tsize, .sharebar, .to-top, .progress, .related, .comments { display: none !important; }
	.layout { display: block; }
}
