/*
Theme Name: Warta Global
Theme URI: https://example.com/warta-global
Author: Warta Global
Description: Tema portal berita profesional bergaya media internasional. Kombinasi warna biru navy dan kuning, tipografi besar dan mudah dibaca untuk semua kalangan, headline utama, breaking news ticker, blok per kategori, berita terpopuler, mode gelap, dan dukungan penuh Customizer.
Version: 1.1.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: warta-global
Tags: news, blog, two-columns, right-sidebar, custom-logo, custom-menu, featured-images, theme-options, threaded-comments, translation-ready, accessibility-ready
*/

/* ==========================================================================
   1. Variabel desain
   ========================================================================== */
:root {
	--wg-navy: #0a2540;
	--wg-blue: #0b4ea2;
	--wg-blue-light: #e8f0fb;
	--wg-yellow: #ffc20e;
	--wg-yellow-dark: #e0a800;
	--wg-ink: #1a1d21;
	--wg-text: #2b3036;
	--wg-muted: #5c6670;
	--wg-line: #dde2e8;
	--wg-bg: #ffffff;
	--wg-bg-soft: #f4f6f9;
	--wg-red: #c8102e;

	--wg-font-head: "Merriweather", Georgia, "Times New Roman", serif;
	--wg-font-body: "Source Sans 3", "Segoe UI", Roboto, Arial, sans-serif;

	--wg-base: 18px;
	--wg-radius: 4px;
	--wg-container: 1240px;
	--wg-gap: 28px;
}

body.wg-dark {
	--wg-ink: #f1f4f8;
	--wg-text: #d7dde4;
	--wg-muted: #9aa6b2;
	--wg-line: #2a3644;
	--wg-bg: #0e1620;
	--wg-bg-soft: #16212d;
	--wg-blue-light: #13263d;
	--wg-blue: #5b9dff;
}

/* ==========================================================================
   2. Dasar
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html { font-size: var(--wg-base); scroll-behavior: smooth; }

body {
	margin: 0;
	background: var(--wg-bg);
	color: var(--wg-text);
	font-family: var(--wg-font-body);
	font-size: 1rem;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; display: block; }

a { color: var(--wg-blue); text-decoration: none; transition: color .15s ease; }
a:hover, a:focus { color: var(--wg-navy); text-decoration: underline; text-underline-offset: 3px; }
body.wg-dark a:hover { color: var(--wg-yellow); }

:focus-visible { outline: 3px solid var(--wg-yellow); outline-offset: 2px; }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--wg-font-head);
	color: var(--wg-ink);
	line-height: 1.3;
	font-weight: 700;
	margin: 0 0 .5em;
}
h1 { font-size: 2.2rem; }
h2 { font-size: 1.7rem; }
h3 { font-size: 1.3rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.2em; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px); white-space: nowrap;
}
.skip-link:focus {
	clip: auto; width: auto; height: auto; z-index: 9999; top: 8px; left: 8px;
	background: var(--wg-yellow); color: var(--wg-navy); padding: 10px 16px; font-weight: 700;
}

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

/* ==========================================================================
   3. Top bar
   ========================================================================== */
.wg-topbar {
	background: var(--wg-navy);
	color: #c9d6e6;
	font-size: .8rem;
}
.wg-topbar .wg-container {
	display: flex; justify-content: space-between; align-items: center;
	min-height: 38px; gap: 16px;
}
.wg-topbar a { color: #fff; }
.wg-topbar-menu { list-style: none; margin: 0; padding: 0; display: flex; gap: 18px; }
.wg-topbar-right { display: flex; align-items: center; gap: 14px; }

.wg-icon-btn {
	background: transparent; border: 1px solid rgba(255,255,255,.25); color: #fff;
	border-radius: 999px; padding: 4px 12px; font: inherit; font-size: .78rem; cursor: pointer;
	display: inline-flex; align-items: center; gap: 6px;
}
.wg-icon-btn:hover { background: rgba(255,255,255,.1); }
.wg-fontsize button { padding: 2px 9px; }

/* ==========================================================================
   4. Header / Masthead
   ========================================================================== */
.wg-masthead { background: var(--wg-bg); border-bottom: 1px solid var(--wg-line); }
.wg-masthead .wg-container {
	display: flex; align-items: center; justify-content: space-between;
	padding-top: 22px; padding-bottom: 22px; gap: 24px;
}
.wg-brand { display: flex; align-items: center; gap: 12px; }
.wg-brand .custom-logo { max-height: 64px; width: auto; }
.wg-site-title {
	font-family: var(--wg-font-head); font-size: 2.1rem; font-weight: 900; margin: 0;
	letter-spacing: -.5px; line-height: 1;
}
.wg-site-title a { color: var(--wg-navy); text-decoration: none; }
body.wg-dark .wg-site-title a { color: #fff; }
.wg-site-title .wg-accent {
	background: var(--wg-yellow); color: var(--wg-navy); padding: 0 8px; margin-left: 4px;
	border-radius: 2px;
}
.wg-tagline { margin: 6px 0 0; color: var(--wg-muted); font-size: .85rem; }
.wg-header-ad { flex: 0 1 728px; }

/* ==========================================================================
   5. Navigasi utama
   ========================================================================== */
.wg-nav {
	background: var(--wg-blue);
	border-bottom: 4px solid var(--wg-yellow);
	position: sticky; top: 0; z-index: 100;
}
body.wg-dark .wg-nav { background: #0b3a78; }
.admin-bar .wg-nav { top: 32px; }
.wg-nav .wg-container { display: flex; align-items: center; justify-content: space-between; }

.wg-menu { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; }
.wg-menu > li { position: relative; }
.wg-menu a {
	display: block; color: #fff; font-weight: 700; font-size: .92rem;
	padding: 14px 16px; text-transform: uppercase; letter-spacing: .4px;
}
.wg-menu > li > a:hover,
.wg-menu > li.current-menu-item > a,
.wg-menu > li.current-category-ancestor > a,
.wg-menu > li.current-menu-parent > a {
	background: var(--wg-yellow); color: var(--wg-navy); text-decoration: none;
}
.wg-menu .sub-menu {
	list-style: none; margin: 0; padding: 6px 0; position: absolute; top: 100%; left: 0;
	min-width: 220px; background: var(--wg-bg); border-top: 3px solid var(--wg-yellow);
	box-shadow: 0 10px 30px rgba(0,0,0,.15); display: none; z-index: 20;
}
.wg-menu li:hover > .sub-menu, .wg-menu li:focus-within > .sub-menu { display: block; }
.wg-menu .sub-menu a { color: var(--wg-ink); text-transform: none; font-weight: 600; padding: 10px 18px; }
.wg-menu .sub-menu a:hover { background: var(--wg-blue-light); text-decoration: none; }

.wg-nav-tools { display: flex; align-items: center; }
.wg-search-toggle, .wg-menu-toggle {
	background: transparent; border: 0; color: #fff; cursor: pointer; padding: 12px; line-height: 0;
}
.wg-search-toggle:hover, .wg-menu-toggle:hover { color: var(--wg-yellow); }
.wg-menu-toggle { display: none; }

.wg-search-panel { background: var(--wg-navy); padding: 18px 0; display: none; }
.wg-search-panel.is-open { display: block; }

.search-form { display: flex; gap: 0; width: 100%; }
.search-form label { flex: 1; }
.search-field {
	width: 100%; padding: 13px 16px; font: inherit; font-size: 1rem; border: 2px solid var(--wg-line);
	border-right: 0; border-radius: var(--wg-radius) 0 0 var(--wg-radius); background: #fff; color: #1a1d21;
}
.search-submit {
	background: var(--wg-yellow); color: var(--wg-navy); border: 0; font: inherit; font-weight: 700;
	padding: 0 22px; border-radius: 0 var(--wg-radius) var(--wg-radius) 0; cursor: pointer;
}
.search-submit:hover { background: var(--wg-yellow-dark); }

/* ==========================================================================
   6. Breaking news ticker
   ========================================================================== */
.wg-ticker { background: var(--wg-bg-soft); border-bottom: 1px solid var(--wg-line); }
.wg-ticker .wg-container { display: flex; align-items: stretch; overflow: hidden; }
.wg-ticker-label {
	background: var(--wg-red); color: #fff; font-weight: 800; font-size: .8rem;
	text-transform: uppercase; letter-spacing: .6px; padding: 10px 16px; white-space: nowrap;
	display: flex; align-items: center; gap: 8px;
}
.wg-ticker-label::before {
	content: ""; width: 8px; height: 8px; border-radius: 50%; background: #fff;
	animation: wg-pulse 1.4s infinite;
}
@keyframes wg-pulse { 50% { opacity: .2; } }
.wg-ticker-track { flex: 1; overflow: hidden; position: relative; mask-image: linear-gradient(90deg, transparent, #000 3%, #000 97%, transparent); }
.wg-ticker-list {
	list-style: none; margin: 0; padding: 0; display: flex; gap: 48px; white-space: nowrap;
	animation: wg-scroll 45s linear infinite; padding-left: 24px; align-items: center; height: 100%;
}
.wg-ticker:hover .wg-ticker-list { animation-play-state: paused; }
.wg-ticker-list li { font-weight: 600; font-size: .92rem; }
.wg-ticker-list li::before { content: "■"; color: var(--wg-yellow-dark); margin-right: 10px; font-size: .6rem; vertical-align: middle; }
.wg-ticker-list a { color: var(--wg-ink); }
@keyframes wg-scroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
	.wg-ticker-list { animation: none; overflow-x: auto; }
}

/* ==========================================================================
   7. Komponen umum: label kategori, meta, judul blok
   ========================================================================== */
.wg-cat {
	display: inline-block; background: var(--wg-yellow); color: var(--wg-navy);
	font-family: var(--wg-font-body); font-weight: 800; font-size: .72rem; text-transform: uppercase;
	letter-spacing: .6px; padding: 3px 9px; border-radius: 2px; margin-bottom: 10px;
}
a.wg-cat:hover { background: var(--wg-navy); color: #fff; text-decoration: none; }
.wg-cat--blue { background: var(--wg-blue); color: #fff; }

.wg-meta { color: var(--wg-muted); font-size: .85rem; display: flex; flex-wrap: wrap; gap: 4px 14px; }
.wg-meta a { color: var(--wg-muted); }
.wg-meta .wg-author { font-weight: 700; color: var(--wg-ink); }

.wg-block-title {
	display: flex; align-items: center; justify-content: space-between;
	border-bottom: 3px solid var(--wg-navy); margin: 0 0 22px;
}
body.wg-dark .wg-block-title { border-color: var(--wg-blue); }
.wg-block-title h2 {
	font-family: var(--wg-font-body); font-size: 1.05rem; font-weight: 800; text-transform: uppercase;
	letter-spacing: .8px; margin: 0; background: var(--wg-navy); color: #fff; padding: 9px 16px 7px;
	position: relative;
}
body.wg-dark .wg-block-title h2 { background: var(--wg-blue); }
.wg-block-title h2::after {
	content: ""; position: absolute; left: 0; bottom: -3px; width: 100%; height: 3px; background: var(--wg-yellow);
}
.wg-block-title a.wg-more { font-size: .85rem; font-weight: 700; }

/* ==========================================================================
   8. Kartu berita
   ========================================================================== */
.wg-card { display: flex; flex-direction: column; }
.wg-thumb {
	position: relative; overflow: hidden; background: var(--wg-bg-soft); aspect-ratio: 16 / 9;
	margin-bottom: 12px; border-radius: var(--wg-radius);
}
.wg-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.wg-card:hover .wg-thumb img { transform: scale(1.04); }
.wg-thumb-placeholder {
	width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
	background: linear-gradient(135deg, var(--wg-navy), var(--wg-blue)); color: var(--wg-yellow);
	font-family: var(--wg-font-head); font-weight: 900; font-size: 1.4rem;
}
.wg-card-title { font-size: 1.12rem; margin: 0 0 8px; }
.wg-card-title a { color: var(--wg-ink); }
.wg-card-title a:hover { color: var(--wg-blue); }

/* Semua judul berita maksimal 3 baris, sisanya dipotong dengan "…" */
.wg-card-title, .wg-hero-main h2, .wg-sb-item-title {
	display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
/* Kartu dalam grid: tinggi judul dibuat seragam 3 baris agar nama penulis & tanggal sejajar */
.wg-grid-3 .wg-card-title, .wg-grid-2 .wg-card-title { line-height: 1.35; min-height: calc(1.35em * 3); }
.wg-card-excerpt { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden; }
.wg-card-excerpt { color: var(--wg-muted); font-size: .95rem; margin: 0 0 8px; }

.wg-card--list { flex-direction: row; gap: 14px; align-items: flex-start; padding: 14px 0; border-bottom: 1px solid var(--wg-line); }
.wg-card--list:last-child { border-bottom: 0; }
.wg-card--list .wg-thumb { flex: 0 0 120px; aspect-ratio: 4 / 3; margin: 0; }
.wg-card--list .wg-card-title { font-size: 1rem; }

.wg-card--wide { flex-direction: row; gap: 22px; padding: 22px 0; border-bottom: 1px solid var(--wg-line); }
.wg-card--wide .wg-thumb { flex: 0 0 38%; margin: 0; }
.wg-card--wide .wg-card-title { font-size: 1.3rem; }

/* ==========================================================================
   9. Beranda: headline
   ========================================================================== */
.wg-main { padding: 32px 0 56px; }

.wg-hero { display: grid; grid-template-columns: 2fr 1fr; gap: var(--wg-gap); margin-bottom: 44px; }
.wg-hero-main { position: relative; border-radius: var(--wg-radius); overflow: hidden; min-height: 460px; background: var(--wg-navy); }
.wg-hero-main .wg-thumb { position: absolute; inset: 0; aspect-ratio: auto; margin: 0; border-radius: 0; }
.wg-hero-main .wg-hero-body {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 90px 30px 28px;
	background: linear-gradient(0deg, rgba(6,20,38,.95) 10%, rgba(6,20,38,.6) 60%, transparent);
}
.wg-hero-main h2 { font-size: 2rem; margin-bottom: 10px; }
.wg-hero-main h2 a { color: #fff; }
.wg-hero-main h2 a:hover { color: var(--wg-yellow); text-decoration: none; }
.wg-hero-main p { color: #d9e2ee; font-size: 1.02rem; max-width: 720px; }
.wg-hero-main .wg-meta, .wg-hero-main .wg-meta a, .wg-hero-main .wg-meta .wg-author { color: #c9d6e6; }

.wg-hero-side { display: flex; flex-direction: column; gap: 18px; }
.wg-hero-side .wg-card { padding-bottom: 18px; border-bottom: 1px solid var(--wg-line); }
.wg-hero-side .wg-card:last-child { border-bottom: 0; padding-bottom: 0; }
.wg-hero-side .wg-thumb { aspect-ratio: 16 / 8; }

/* ==========================================================================
   10. Layout dengan sidebar
   ========================================================================== */
.wg-layout { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 44px; }
.wg-layout--full { grid-template-columns: minmax(0, 1fr); }

.wg-section { margin-bottom: 48px; }
.wg-grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--wg-gap); }
.wg-grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: var(--wg-gap); }

.wg-cat-block { display: grid; grid-template-columns: 1.2fr 1fr; gap: var(--wg-gap); }
.wg-cat-block .wg-card--lead .wg-card-title { font-size: 1.4rem; }

/* ==========================================================================
   11. Sidebar kustom (tanpa widget bawaan WordPress) + sticky
   ========================================================================== */
.wg-sidebar { align-self: start; min-width: 0; }
.wg-sidebar.is-sticky { position: sticky; top: var(--wg-sticky-top, 84px); }
.wg-sidebar-inner { display: flex; flex-direction: column; gap: 32px; }

.wg-sb-box { min-width: 0; }
.wg-sb-title {
	font-family: var(--wg-font-body); font-size: 1rem; font-weight: 800; text-transform: uppercase;
	letter-spacing: .8px; color: var(--wg-ink); border-bottom: 3px solid var(--wg-navy);
	padding-bottom: 8px; margin: 0 0 14px; position: relative;
}
.wg-sb-title::after {
	content: ""; position: absolute; left: 0; bottom: -3px; width: 60px; height: 3px; background: var(--wg-yellow);
}
body.wg-dark .wg-sb-title { border-color: var(--wg-blue); }

/* Pencarian */
.wg-sb-search .search-field { border-color: var(--wg-line); background: var(--wg-bg); color: var(--wg-text); padding: 12px 14px; }
.wg-sb-search .search-field:focus { border-color: var(--wg-blue); outline: none; }

/* Tab Terpopuler / Terbaru */
.wg-tabs { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 3px solid var(--wg-navy); }
body.wg-dark .wg-tabs { border-color: var(--wg-blue); }
.wg-tabs button {
	font: inherit; font-weight: 800; font-size: .9rem; text-transform: uppercase; letter-spacing: .8px;
	background: var(--wg-bg-soft); color: var(--wg-muted); border: 0; padding: 12px 8px; cursor: pointer;
	position: relative;
}
.wg-tabs button:hover { color: var(--wg-ink); }
.wg-tabs button.is-active { background: var(--wg-navy); color: #fff; }
body.wg-dark .wg-tabs button.is-active { background: var(--wg-blue); }
.wg-tabs button.is-active::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 3px; background: var(--wg-yellow);
}
.wg-tab-panel[hidden] { display: none; }

/* Daftar berita sidebar */
.wg-sb-list { list-style: none; margin: 0; padding: 0; counter-reset: sb; }
.wg-sb-item {
	counter-increment: sb; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 14px;
	padding: 14px 0; border-bottom: 1px solid var(--wg-line); align-items: start;
}
.wg-sb-item:last-child { border-bottom: 0; }
.wg-sb-thumb {
	position: relative; display: block; aspect-ratio: 1 / 1; border-radius: var(--wg-radius);
	overflow: hidden; background: var(--wg-bg-soft);
}
.wg-sb-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.wg-sb-item:hover .wg-sb-thumb img { transform: scale(1.06); }
.wg-sb-thumb .wg-thumb-placeholder { font-size: 1rem; }
.is-numbered .wg-sb-thumb::after {
	content: counter(sb); position: absolute; left: 0; top: 0; width: 30px; height: 30px;
	background: var(--wg-yellow); color: var(--wg-navy); font-family: var(--wg-font-head); font-weight: 900;
	font-size: .95rem; display: flex; align-items: center; justify-content: center; border-radius: 0 0 var(--wg-radius) 0;
}
.wg-sb-cat {
	display: block; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .6px;
	color: var(--wg-blue); margin-bottom: 3px;
}
.wg-sb-item-title { font-size: .95rem; line-height: 1.4; margin: 0 0 4px; }
.wg-sb-item-title a { color: var(--wg-ink); }
.wg-sb-item-title a:hover { color: var(--wg-blue); }
.wg-sb-body time { font-size: .78rem; color: var(--wg-muted); }
.wg-sb-empty { color: var(--wg-muted); font-size: .9rem; padding: 14px 0; }

/* Iklan */
.wg-sb-ad { text-align: center; }
.wg-sb-ad-label { display: block; font-size: .65rem; letter-spacing: 1.5px; text-transform: uppercase; color: var(--wg-muted); margin-bottom: 6px; }
.wg-sb-ad img, .wg-sb-ad iframe { max-width: 100%; margin: 0 auto; }

/* Kanal */
.wg-sb-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.wg-sb-cats a {
	display: flex; justify-content: space-between; align-items: center; gap: 6px;
	padding: 9px 12px; background: var(--wg-bg-soft); border-left: 3px solid var(--wg-yellow);
	color: var(--wg-ink); font-weight: 700; font-size: .9rem; border-radius: 0 var(--wg-radius) var(--wg-radius) 0;
}
.wg-sb-cats a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wg-sb-cats em { font-style: normal; font-size: .72rem; font-weight: 800; background: var(--wg-navy); color: #fff; border-radius: 999px; padding: 1px 8px; }
.wg-sb-cats a:hover { background: var(--wg-navy); color: #fff; text-decoration: none; }
.wg-sb-cats a:hover em { background: var(--wg-yellow); color: var(--wg-navy); }

/* Topik */
.wg-sb-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.wg-sb-tags a {
	padding: 6px 12px; border: 1px solid var(--wg-line); border-radius: 999px; font-size: .85rem;
	font-weight: 700; color: var(--wg-ink); background: var(--wg-bg);
}
.wg-sb-tags a:hover { background: var(--wg-yellow); border-color: var(--wg-yellow); color: var(--wg-navy); text-decoration: none; }

/* Ikuti kami */
.wg-sb-follow {
	background: var(--wg-navy); color: #dce6f2; padding: 24px; border-radius: var(--wg-radius);
	border-top: 5px solid var(--wg-yellow);
}
.wg-sb-follow h3 { color: #fff; font-size: 1.2rem; margin-bottom: 8px; }
.wg-sb-follow p { font-size: .95rem; margin-bottom: 14px; }
.wg-sb-follow .wg-social { margin: 0 0 16px; }
.wg-sb-follow .wg-social a { color: #fff; }

.wg-btn {
	display: inline-block; background: var(--wg-yellow); color: var(--wg-navy);
	padding: 11px 20px; border-radius: var(--wg-radius); border: 0; cursor: pointer; font: inherit; font-weight: 800;
}
.wg-btn:hover { background: #fff; color: var(--wg-navy); text-decoration: none; }

/* Judul widget di footer */
.wg-footer .widget-title, .wg-footer .widget h2 {
	font-family: var(--wg-font-body); font-size: 1rem; font-weight: 800; text-transform: uppercase;
	letter-spacing: .8px; color: #fff; border-bottom: 3px solid rgba(255,255,255,.15); padding-bottom: 8px; margin: 0 0 16px;
}

/* ==========================================================================
   12. Artikel tunggal — dioptimalkan untuk keterbacaan
   ========================================================================== */
.wg-breadcrumb { font-size: .85rem; color: var(--wg-muted); margin-bottom: 16px; }
.wg-breadcrumb a { color: var(--wg-muted); }
.wg-breadcrumb span.sep { margin: 0 8px; color: var(--wg-yellow-dark); }

.wg-article-header h1 { font-size: 2.4rem; line-height: 1.22; letter-spacing: -.3px; }
.wg-article-lead {
	font-size: 1.2rem; color: var(--wg-muted); line-height: 1.6; margin: 0 0 18px;
	border-left: 4px solid var(--wg-yellow); padding-left: 16px;
}
.wg-article-header .wg-meta { padding: 14px 0; border-top: 1px solid var(--wg-line); border-bottom: 1px solid var(--wg-line); margin-bottom: 24px; align-items: center; }
.wg-avatar img { border-radius: 50%; width: 40px; height: 40px; }

.wg-share { display: flex; gap: 8px; margin-left: auto; }
.wg-share a {
	display: inline-flex; align-items: center; justify-content: center; width: 36px; height: 36px;
	border-radius: 50%; background: var(--wg-blue-light); color: var(--wg-blue); font-weight: 800; font-size: .8rem;
}
.wg-share a:hover { background: var(--wg-yellow); color: var(--wg-navy); text-decoration: none; }

.wg-featured { margin: 0 0 28px; }
.wg-featured img { width: 100%; border-radius: var(--wg-radius); }
.wg-featured figcaption, .wp-caption-text, figcaption {
	font-size: .85rem; color: var(--wg-muted); padding-top: 8px; border-bottom: 1px solid var(--wg-line); padding-bottom: 8px;
}

.wg-content {
	font-size: 1.1rem; /* ±20px — nyaman untuk pembaca segala usia */
	line-height: 1.8;
	max-width: 720px;
	color: var(--wg-text);
}
.wg-content p { margin-bottom: 1.4em; }
.wg-content > p:first-of-type::first-letter {
	float: left; font-family: var(--wg-font-head); font-size: 3.6em; line-height: .85; font-weight: 900;
	color: var(--wg-blue); padding: 6px 10px 0 0;
}
.wg-content h2 { font-size: 1.6rem; margin-top: 1.6em; }
.wg-content h3 { font-size: 1.3rem; margin-top: 1.4em; }
.wg-content a { text-decoration: underline; text-decoration-color: var(--wg-yellow); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.wg-content blockquote {
	margin: 1.8em 0; padding: 20px 26px; background: var(--wg-blue-light); border-left: 5px solid var(--wg-yellow);
	font-family: var(--wg-font-head); font-size: 1.2rem; font-style: italic; color: var(--wg-ink);
}
.wg-content blockquote p:last-child { margin: 0; }
.wg-content ul, .wg-content ol { padding-left: 1.4em; margin-bottom: 1.4em; }
.wg-content li { margin-bottom: .5em; }
.wg-content img { border-radius: var(--wg-radius); }
.wg-content table { width: 100%; border-collapse: collapse; margin-bottom: 1.4em; font-size: .95rem; }
.wg-content th, .wg-content td { border: 1px solid var(--wg-line); padding: 10px 12px; text-align: left; }
.wg-content th { background: var(--wg-navy); color: #fff; }
.alignleft { float: left; margin: 0 24px 16px 0; }
.alignright { float: right; margin: 0 0 16px 24px; }
.aligncenter { margin-left: auto; margin-right: auto; }
.alignwide, .alignfull { max-width: 100%; }

.wg-tags { margin: 28px 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.wg-tags a {
	background: var(--wg-bg-soft); border: 1px solid var(--wg-line); color: var(--wg-ink);
	padding: 5px 12px; border-radius: 999px; font-size: .85rem; font-weight: 600;
}
.wg-tags a:hover { background: var(--wg-yellow); border-color: var(--wg-yellow); text-decoration: none; }

.wg-author-box {
	display: flex; gap: 18px; padding: 22px; background: var(--wg-bg-soft); border-radius: var(--wg-radius);
	border-left: 5px solid var(--wg-blue); margin: 32px 0;
}
.wg-author-box img { border-radius: 50%; }
.wg-author-box h4 { margin-bottom: 4px; }

.wg-post-nav { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 32px 0; }
.wg-post-nav a { display: block; padding: 16px; border: 1px solid var(--wg-line); border-radius: var(--wg-radius); color: var(--wg-ink); font-family: var(--wg-font-head); font-weight: 700; }
.wg-post-nav a:hover { border-color: var(--wg-yellow); text-decoration: none; }
.wg-post-nav small { display: block; font-family: var(--wg-font-body); color: var(--wg-muted); font-weight: 600; text-transform: uppercase; font-size: .75rem; margin-bottom: 4px; }
.wg-post-nav .nav-next { text-align: right; }

.wg-progress { position: fixed; top: 0; left: 0; height: 4px; background: var(--wg-yellow); width: 0; z-index: 9999; }

/* ==========================================================================
   13. Arsip, pagination, komentar
   ========================================================================== */
.wg-archive-header { background: var(--wg-navy); color: #dce6f2; padding: 36px 0; margin-bottom: 8px; border-bottom: 5px solid var(--wg-yellow); }
.wg-archive-header h1 { color: #fff; margin: 0; font-size: 2rem; }
.wg-archive-header p { margin: 8px 0 0; }

.pagination, .nav-links { margin: 36px 0; }
.nav-links { display: flex; flex-wrap: wrap; gap: 6px; }
.page-numbers {
	display: inline-flex; min-width: 42px; height: 42px; align-items: center; justify-content: center;
	border: 1px solid var(--wg-line); border-radius: var(--wg-radius); color: var(--wg-ink); font-weight: 700; padding: 0 12px;
}
.page-numbers.current, .page-numbers:hover { background: var(--wg-navy); border-color: var(--wg-navy); color: #fff; text-decoration: none; }

.comments-area { margin-top: 40px; max-width: 720px; }
.comment-list { list-style: none; padding: 0; }
.comment-list .children { list-style: none; padding-left: 28px; border-left: 2px solid var(--wg-line); }
.comment-body { padding: 16px 0; border-bottom: 1px solid var(--wg-line); }
.comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.comment-metadata { font-size: .8rem; }
.comment-form input[type="text"], .comment-form input[type="email"], .comment-form input[type="url"], .comment-form textarea {
	width: 100%; padding: 12px; border: 1px solid var(--wg-line); border-radius: var(--wg-radius); font: inherit;
	background: var(--wg-bg); color: var(--wg-text);
}
.comment-form .submit, .wp-block-button__link {
	background: var(--wg-blue); color: #fff; border: 0; padding: 12px 24px; font: inherit; font-weight: 700;
	border-radius: var(--wg-radius); cursor: pointer;
}
.comment-form .submit:hover { background: var(--wg-navy); }

/* ==========================================================================
   14. Footer
   ========================================================================== */
.wg-footer { background: var(--wg-navy); color: #b9c7d8; border-top: 6px solid var(--wg-yellow); font-size: .95rem; }
.wg-footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 40px; padding: 52px 0 36px; }
.wg-footer .wg-site-title a { color: #fff; }
.wg-footer .widget-title { color: #fff; border-color: rgba(255,255,255,.15); }
.wg-footer a { color: #e6edf6; }
.wg-footer a:hover { color: var(--wg-yellow); }
.wg-footer ul { list-style: none; margin: 0; padding: 0; }
.wg-footer li { padding: 5px 0; }
.wg-social { display: flex; gap: 10px; margin-top: 16px; }
.wg-social a {
	width: 38px; height: 38px; border-radius: 50%; background: rgba(255,255,255,.08); display: inline-flex;
	align-items: center; justify-content: center; font-weight: 800; font-size: .8rem;
}
.wg-social a:hover { background: var(--wg-yellow); color: var(--wg-navy); text-decoration: none; }
.wg-footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 18px 0; font-size: .85rem; }
.wg-footer-bottom .wg-container { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; }

.wg-back-top {
	position: fixed; right: 20px; bottom: 20px; width: 46px; height: 46px; border-radius: 50%;
	background: var(--wg-yellow); color: var(--wg-navy); border: 0; cursor: pointer; font-size: 1.2rem; font-weight: 900;
	box-shadow: 0 6px 18px rgba(0,0,0,.2); opacity: 0; visibility: hidden; transition: .2s; z-index: 90;
}
.wg-back-top.is-visible { opacity: 1; visibility: visible; }

/* ==========================================================================
   15. Responsif
   ========================================================================== */
@media (max-width: 1100px) {
	.wg-layout { grid-template-columns: minmax(0, 1fr) 300px; gap: 32px; }
	.wg-header-ad { display: none; }
}
@media (max-width: 900px) {
	html { font-size: 17px; }
	.wg-hero { grid-template-columns: 1fr; }
	.wg-hero-main { min-height: 380px; }
	.wg-hero-side { display: grid; grid-template-columns: 1fr 1fr; }
	.wg-layout { grid-template-columns: 1fr; }
	.wg-sidebar.is-sticky { position: static; }
	.wg-grid-3 { grid-template-columns: repeat(2, 1fr); }
	.wg-cat-block { grid-template-columns: 1fr; }
	.wg-footer-top { grid-template-columns: 1fr 1fr; }

	.wg-menu-toggle { display: inline-flex; }
	.wg-menu { display: none; flex-direction: column; width: 100%; }
	.wg-nav.is-open .wg-menu { display: flex; }
	.wg-nav .wg-container { flex-wrap: wrap; }
	.wg-nav-primary { order: 3; width: 100%; }
	.wg-menu a { border-top: 1px solid rgba(255,255,255,.12); }
	.wg-menu .sub-menu { position: static; display: block; box-shadow: none; background: rgba(0,0,0,.15); border: 0; }
	.wg-menu .sub-menu a { color: #fff; padding-left: 32px; }
}
@media (max-width: 600px) {
	.wg-topbar-menu, .wg-topbar-date { display: none; }
	.wg-site-title { font-size: 1.6rem; }
	.wg-hero-main h2 { font-size: 1.45rem; }
	.wg-hero-main .wg-hero-body { padding: 70px 18px 18px; }
	.wg-hero-main p { display: none; }
	.wg-hero-side, .wg-grid-3, .wg-grid-2 { grid-template-columns: 1fr; }
	.wg-card--wide { flex-direction: column; gap: 10px; }
	.wg-card--wide .wg-thumb { flex: none; }
	.wg-article-header h1 { font-size: 1.75rem; }
	.wg-content { font-size: 1.06rem; }
	.wg-footer-top { grid-template-columns: 1fr; }
	.wg-post-nav { grid-template-columns: 1fr; }
	.wg-share { margin-left: 0; width: 100%; }
	.admin-bar .wg-nav { top: 0; }
}

/* Ukuran teks yang dipilih pembaca (tombol A- / A+) */
html.wg-fs-lg { font-size: 20px; }
html.wg-fs-xl { font-size: 22px; }
