/*
Theme Name: Ngab Quest
Theme URI: https://ngabquest.com/
Author: Ngab Quest
Description: Tema majalah game untuk Ngab Quest — review, panduan, hint & walkthrough, tips & trik, berita, dan rekomendasi game. Layout bergaya GamesRadar dengan kotak skor review, homepage hero + grid, listicle "Best Of", dan dark/light mode.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: ngabquest
Tags: blog, news, magazine, two-columns, custom-logo, custom-menu, featured-images, editor-style, translation-ready
*/

/* ==========================================================================
   1. Design tokens (palet resmi Ngab Quest)
   ========================================================================== */

:root {
	/* Palet inti — jangan diubah tanpa memperbarui dokumen palet */
	--ngq-navy:        #1E1440; /* Header/Navbar background — Ungu Kehitaman */
	--ngq-bg-dark:     #150E2E; /* Body background (dark mode) — Ungu Gelap Pekat */
	--ngq-bg-light:    #F8FAFC; /* Body background (light mode) — Putih/Abu Terang */
	--ngq-purple-med:  #4C3A8C; /* Card/Section accent — Ungu Medium */
	--ngq-spark:       #FDE047; /* Tombol utama / CTA — Kuning Spark */
	--ngq-orange:      #FB923C; /* Tombol sekunder / hover — Oranye Aksen */
	--ngq-blue:        #2563EB; /* Link & highlight — Biru Electric */
	--ngq-purple-deep: #6D28D9; /* Badge / aksen ungu — Ungu Deep */
	--ngq-cyan:        #22D3EE; /* Border / outline gradient — Cyan Aksen */
	--ngq-text-dark:   #F1F5F9; /* Teks utama (dark mode) — Putih Lembut */
	--ngq-text-light:  #1E293B; /* Teks utama (light mode) — Abu Gelap/Hitam */

	/* Peran semantik — dark mode adalah default */
	--ngq-bg:          var(--ngq-bg-dark);
	--ngq-surface:     #1C1338;
	--ngq-surface-2:   #241A47;
	--ngq-text:        var(--ngq-text-dark);
	--ngq-text-muted:  #A5A0C0;
	--ngq-border:      rgba(255, 255, 255, .10);
	--ngq-border-firm: rgba(255, 255, 255, .18);
	--ngq-link:        #7BA4FF;
	--ngq-overlay:     linear-gradient(180deg, rgba(21, 14, 46, 0) 0%, rgba(21, 14, 46, .55) 45%, rgba(21, 14, 46, .94) 100%);
	--ngq-shadow:      0 10px 30px rgba(0, 0, 0, .45);
	--ngq-shadow-sm:   0 2px 10px rgba(0, 0, 0, .3);

	/* Tipografi */
	--ngq-font: "Inter", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
	--ngq-font-display: "Archivo", "Inter", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;

	/* Ritme */
	--ngq-wrap: 1280px;
	--ngq-gap: 24px;
	--ngq-radius: 10px;
	--ngq-radius-sm: 6px;
	--ngq-header-h: 64px;
}

:root[data-theme="light"] {
	--ngq-bg:          var(--ngq-bg-light);
	--ngq-surface:     #FFFFFF;
	--ngq-surface-2:   #EEF1F7;
	--ngq-text:        var(--ngq-text-light);
	--ngq-text-muted:  #5A6478;
	--ngq-border:      rgba(30, 20, 64, .12);
	--ngq-border-firm: rgba(30, 20, 64, .22);
	--ngq-link:        var(--ngq-blue);
	--ngq-overlay:     linear-gradient(180deg, rgba(21, 14, 46, 0) 0%, rgba(21, 14, 46, .5) 45%, rgba(21, 14, 46, .92) 100%);
	--ngq-shadow:      0 10px 30px rgba(30, 20, 64, .12);
	--ngq-shadow-sm:   0 2px 10px rgba(30, 20, 64, .08);
}

/* Hormati preferensi sistem saat pengunjung belum pernah memilih. */
@media (prefers-color-scheme: light) {
	:root:not([data-theme]) {
		--ngq-bg:          var(--ngq-bg-light);
		--ngq-surface:     #FFFFFF;
		--ngq-surface-2:   #EEF1F7;
		--ngq-text:        var(--ngq-text-light);
		--ngq-text-muted:  #5A6478;
		--ngq-border:      rgba(30, 20, 64, .12);
		--ngq-border-firm: rgba(30, 20, 64, .22);
		--ngq-link:        var(--ngq-blue);
		--ngq-shadow:      0 10px 30px rgba(30, 20, 64, .12);
		--ngq-shadow-sm:   0 2px 10px rgba(30, 20, 64, .08);
	}
}

/* ==========================================================================
   2. Reset & dasar
   ========================================================================== */

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

body {
	margin: 0;
	background: var(--ngq-bg);
	color: var(--ngq-text);
	font-family: var(--ngq-font);
	font-size: 16px;
	line-height: 1.65;
	-webkit-font-smoothing: antialiased;
	overflow-x: hidden;
}

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

a { color: var(--ngq-link); text-decoration: none; }
a:hover { color: var(--ngq-orange); }

h1, h2, h3, h4, h5, h6 {
	font-family: var(--ngq-font-display);
	line-height: 1.2;
	margin: 0 0 .5em;
	font-weight: 800;
	letter-spacing: -.015em;
}

p { margin: 0 0 1.2em; }

:where(a, button, input, select, textarea, [tabindex]):focus-visible {
	outline: 3px solid var(--ngq-cyan);
	outline-offset: 2px;
	border-radius: 3px;
}

.ngq-wrap {
	width: 100%;
	max-width: var(--ngq-wrap);
	margin-inline: auto;
	padding-inline: 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: -9999px; top: 0; z-index: 999;
	background: var(--ngq-spark); color: #1E1440;
	padding: 10px 16px; font-weight: 700;
}
.skip-link:focus { left: 8px; top: 8px; }

/* ==========================================================================
   3. Header / navbar
   ========================================================================== */

.ngq-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--ngq-navy);
	border-bottom: 1px solid rgba(255, 255, 255, .08);
}
/* Garis gradien tipis khas GamesRadar */
.ngq-header::after {
	content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 2px;
	background: linear-gradient(90deg, var(--ngq-purple-deep), var(--ngq-cyan), var(--ngq-spark));
}

.ngq-header__bar {
	display: flex; align-items: center; gap: 16px;
	min-height: var(--ngq-header-h);
}

.ngq-brand { display: flex; align-items: center; gap: 10px; flex: 0 0 auto; }
.ngq-brand img { max-height: 40px; width: auto; }
.ngq-brand__text {
	font-family: var(--ngq-font-display);
	font-weight: 900; font-size: 1.35rem; letter-spacing: -.02em;
	color: #fff; text-transform: uppercase;
}
.ngq-brand__text span { color: var(--ngq-spark); }
.ngq-brand a { color: inherit; }
.ngq-brand a:hover { color: inherit; }

/* Nav utama */
.ngq-nav { margin-left: auto; }
.ngq-nav > ul { display: flex; align-items: center; gap: 4px; list-style: none; margin: 0; padding: 0; }
.ngq-nav li { position: relative; }

.ngq-nav a {
	display: block; padding: 20px 12px;
	color: rgba(255, 255, 255, .88);
	font-weight: 700; font-size: .8rem;
	text-transform: uppercase; letter-spacing: .06em;
	white-space: nowrap;
	border-bottom: 3px solid transparent;
	transition: color .15s, border-color .15s;
}
.ngq-nav > ul > li > a:hover,
.ngq-nav > ul > li:focus-within > a { color: #fff; border-bottom-color: var(--ngq-spark); }
.ngq-nav > ul > li.current-menu-item > a,
.ngq-nav > ul > li.current-menu-ancestor > a { color: #fff; border-bottom-color: var(--ngq-cyan); }

/* Dropdown submenu */
.ngq-nav .sub-menu {
	position: absolute; top: 100%; left: 0; min-width: 240px;
	background: var(--ngq-navy);
	border: 1px solid var(--ngq-border-firm);
	border-top: 2px solid var(--ngq-spark);
	border-radius: 0 0 var(--ngq-radius-sm) var(--ngq-radius-sm);
	box-shadow: var(--ngq-shadow);
	list-style: none; margin: 0; padding: 6px 0;
	opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.ngq-nav li:hover > .sub-menu,
.ngq-nav li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: translateY(0); }

.ngq-nav .sub-menu a {
	padding: 10px 16px; border-bottom: 0;
	text-transform: none; letter-spacing: 0; font-size: .9rem; font-weight: 600;
	color: rgba(255, 255, 255, .8);
}
.ngq-nav .sub-menu a:hover { background: var(--ngq-purple-med); color: #fff; }

/* Aksi kanan: cari + tema */
.ngq-header__actions { display: flex; align-items: center; gap: 8px; flex: 0 0 auto; }

.ngq-iconbtn {
	display: grid; place-items: center;
	width: 38px; height: 38px; padding: 0;
	background: rgba(255, 255, 255, .07);
	border: 1px solid var(--ngq-border-firm);
	border-radius: var(--ngq-radius-sm);
	color: #fff; cursor: pointer;
	transition: background .15s, border-color .15s;
}
.ngq-iconbtn:hover { background: var(--ngq-purple-med); border-color: var(--ngq-cyan); }
.ngq-iconbtn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Ikon tema: tampilkan bulan di dark, matahari di light */
.ngq-themetoggle .ngq-icon--sun { display: none; }
:root[data-theme="light"] .ngq-themetoggle .ngq-icon--sun { display: block; }
:root[data-theme="light"] .ngq-themetoggle .ngq-icon--moon { display: none; }
@media (prefers-color-scheme: light) {
	:root:not([data-theme]) .ngq-themetoggle .ngq-icon--sun { display: block; }
	:root:not([data-theme]) .ngq-themetoggle .ngq-icon--moon { display: none; }
}

/* Panel pencarian */
.ngq-searchpanel {
	display: none;
	padding: 16px 0 20px;
	border-top: 1px solid rgba(255, 255, 255, .08);
	background: var(--ngq-navy);
}
.ngq-searchpanel.is-open { display: block; }
.ngq-searchform { display: flex; gap: 8px; }
.ngq-searchform input[type="search"] {
	flex: 1; padding: 12px 14px;
	background: rgba(255, 255, 255, .06);
	border: 1px solid var(--ngq-border-firm);
	border-radius: var(--ngq-radius-sm);
	color: #fff; font-size: 1rem; font-family: inherit;
}
.ngq-searchform input[type="search"]::placeholder { color: rgba(255, 255, 255, .45); }

/* Tombol burger (mobile) */
.ngq-burger { display: none; }

/* ==========================================================================
   4. Tombol
   ========================================================================== */

.ngq-btn {
	display: inline-flex; align-items: center; gap: 8px;
	padding: 11px 20px;
	font-family: var(--ngq-font-display);
	font-weight: 800; font-size: .82rem;
	text-transform: uppercase; letter-spacing: .05em;
	border: 0; border-radius: var(--ngq-radius-sm);
	cursor: pointer; transition: background .15s, transform .1s, color .15s;
}
.ngq-btn:active { transform: translateY(1px); }

.ngq-btn--primary { background: var(--ngq-spark); color: #1E1440; }
.ngq-btn--primary:hover { background: var(--ngq-orange); color: #1E1440; }

.ngq-btn--secondary {
	background: transparent; color: var(--ngq-text);
	box-shadow: inset 0 0 0 2px var(--ngq-border-firm);
}
.ngq-btn--secondary:hover { background: var(--ngq-orange); color: #1E1440; box-shadow: none; }

/* ==========================================================================
   5. Label kategori & meta
   ========================================================================== */

.ngq-eyebrow {
	display: inline-block;
	padding: 4px 9px;
	background: var(--ngq-purple-deep);
	color: #fff;
	font-family: var(--ngq-font-display);
	font-size: .68rem; font-weight: 800;
	text-transform: uppercase; letter-spacing: .08em;
	border-radius: 3px;
	margin-bottom: 10px;
}
.ngq-eyebrow:hover { background: var(--ngq-orange); color: #1E1440; }
.ngq-eyebrow--review   { background: var(--ngq-blue); }
.ngq-eyebrow--berita   { background: var(--ngq-orange); color: #1E1440; }
.ngq-eyebrow--panduan  { background: var(--ngq-cyan); color: #1E1440; }

.ngq-meta {
	display: flex; flex-wrap: wrap; align-items: center; gap: 8px;
	color: var(--ngq-text-muted);
	font-size: .8rem;
}
.ngq-meta__sep { opacity: .4; }
.ngq-meta a { color: inherit; font-weight: 600; }
.ngq-meta a:hover { color: var(--ngq-orange); }

/* ==========================================================================
   6. Kartu artikel
   ========================================================================== */

.ngq-card { display: flex; flex-direction: column; }
.ngq-card__media {
	position: relative; display: block;
	aspect-ratio: 16 / 9; overflow: hidden;
	border-radius: var(--ngq-radius);
	background: var(--ngq-surface-2);
}
.ngq-card__media img {
	width: 100%; height: 100%; object-fit: cover;
	transition: transform .4s ease;
}
.ngq-card:hover .ngq-card__media img { transform: scale(1.05); }

.ngq-card__body { padding-top: 12px; }
.ngq-card__title {
	font-size: 1.05rem; line-height: 1.3; margin: 0 0 8px;
}
.ngq-card__title a { color: var(--ngq-text); }
.ngq-card__title a:hover { color: var(--ngq-orange); }
.ngq-card__excerpt { color: var(--ngq-text-muted); font-size: .9rem; margin: 0 0 10px; }

/* Lencana skor di sudut gambar */
.ngq-scorebadge {
	position: absolute; right: 10px; bottom: 10px;
	display: grid; place-items: center;
	width: 44px; height: 44px;
	background: var(--ngq-spark); color: #1E1440;
	font-family: var(--ngq-font-display); font-weight: 900; font-size: 1.05rem;
	border-radius: 50%;
	box-shadow: 0 4px 14px rgba(0, 0, 0, .45);
}

/* Kartu dengan gambar di kiri (untuk rail "Terbaru") */
.ngq-card--row { flex-direction: row; gap: 12px; align-items: flex-start; }
.ngq-card--row .ngq-card__media { flex: 0 0 104px; aspect-ratio: 4 / 3; border-radius: var(--ngq-radius-sm); }
.ngq-card--row .ngq-card__body { padding-top: 0; flex: 1; min-width: 0; }
.ngq-card--row .ngq-card__title { font-size: .93rem; margin-bottom: 5px; }

/* ==========================================================================
   7. Homepage: hero + rail
   ========================================================================== */

.ngq-section { padding: 40px 0; }
.ngq-section__head {
	display: flex; align-items: center; gap: 14px;
	margin-bottom: 22px;
}
.ngq-section__title {
	font-size: 1.4rem; margin: 0; text-transform: uppercase; letter-spacing: -.01em;
	white-space: nowrap;
}
.ngq-section__title::before {
	content: ""; display: inline-block; width: 6px; height: 22px;
	background: linear-gradient(180deg, var(--ngq-cyan), var(--ngq-purple-deep));
	margin-right: 10px; vertical-align: -3px; border-radius: 2px;
}
.ngq-section__rule { flex: 1; height: 1px; background: var(--ngq-border); }
.ngq-section__more {
	font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em;
	color: var(--ngq-text-muted); white-space: nowrap;
}
.ngq-section__more:hover { color: var(--ngq-orange); }

/* Blok hero: 1 besar + rail kanan */
.ngq-hero { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: var(--ngq-gap); padding-top: 32px; }

.ngq-hero__lead { position: relative; border-radius: var(--ngq-radius); overflow: hidden; min-height: 420px; display: flex; }
.ngq-hero__lead img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.ngq-hero__lead:hover img { transform: scale(1.03); }
.ngq-hero__lead::after { content: ""; position: absolute; inset: 0; background: var(--ngq-overlay); }
.ngq-hero__content { position: relative; z-index: 1; margin-top: auto; padding: 28px; color: #fff; }
.ngq-hero__title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin: 0 0 10px; }
.ngq-hero__title a { color: #fff; }
.ngq-hero__title a:hover { color: var(--ngq-spark); }
.ngq-hero__content .ngq-meta { color: rgba(255, 255, 255, .75); }
.ngq-hero__excerpt { color: rgba(255, 255, 255, .85); margin: 0 0 10px; max-width: 60ch; }

.ngq-hero__rail {
	background: var(--ngq-surface);
	border: 1px solid var(--ngq-border);
	border-radius: var(--ngq-radius);
	padding: 18px;
}
.ngq-hero__rail h2 {
	font-size: .82rem; text-transform: uppercase; letter-spacing: .1em;
	color: var(--ngq-spark); margin: 0 0 14px;
}
.ngq-hero__rail ul { list-style: none; margin: 0; padding: 0; }
.ngq-hero__rail li { padding: 14px 0; border-top: 1px solid var(--ngq-border); }
.ngq-hero__rail li:first-child { padding-top: 0; border-top: 0; }

/* Grid kartu generik */
.ngq-grid { display: grid; gap: var(--ngq-gap); }
.ngq-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ngq-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ngq-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Blok kategori berselang-seling latar */
.ngq-section--alt { background: var(--ngq-surface); border-block: 1px solid var(--ngq-border); }

/* ==========================================================================
   8. Kotak skor review (ciri khas GamesRadar)
   ========================================================================== */

.ngq-review {
	margin: 32px 0;
	background: var(--ngq-surface);
	border: 1px solid var(--ngq-border);
	border-left: 5px solid var(--ngq-spark);
	border-radius: var(--ngq-radius);
	overflow: hidden;
}

.ngq-review__head {
	display: flex; align-items: center; gap: 20px;
	padding: 22px 24px;
	background: linear-gradient(100deg, var(--ngq-purple-deep), var(--ngq-purple-med));
	color: #fff;
}

.ngq-review__score {
	flex: 0 0 auto;
	display: grid; place-items: center;
	width: 92px; height: 92px;
	border-radius: 50%;
	background: var(--ngq-bg-dark);
	box-shadow: 0 0 0 4px var(--ngq-spark), var(--ngq-shadow-sm);
	line-height: 1;
}
.ngq-review__score b {
	font-family: var(--ngq-font-display);
	font-size: 2.3rem; font-weight: 900; color: var(--ngq-spark);
}
.ngq-review__score small { font-size: .7rem; color: rgba(255, 255, 255, .6); letter-spacing: .05em; }

.ngq-review__headtext { min-width: 0; }
.ngq-review__label {
	font-size: .7rem; font-weight: 800; letter-spacing: .12em; text-transform: uppercase;
	color: var(--ngq-spark); margin: 0 0 4px;
}
.ngq-review__game { font-size: 1.35rem; margin: 0 0 6px; color: #fff; }
.ngq-review__platforms { font-size: .82rem; color: rgba(255, 255, 255, .8); margin: 0; }

/* Bintang */
.ngq-stars { display: inline-flex; gap: 2px; margin-top: 6px; }
.ngq-stars svg { width: 17px; height: 17px; }
.ngq-stars .ngq-star--on   { fill: var(--ngq-spark); }
.ngq-stars .ngq-star--half { fill: url(#ngq-halfgrad); }
.ngq-stars .ngq-star--off  { fill: rgba(255, 255, 255, .22); }

.ngq-review__verdict { padding: 20px 24px; border-bottom: 1px solid var(--ngq-border); }
.ngq-review__verdict h3 {
	font-size: .74rem; text-transform: uppercase; letter-spacing: .12em;
	color: var(--ngq-text-muted); margin: 0 0 8px;
}
.ngq-review__verdict p { margin: 0; font-size: 1.02rem; }

.ngq-review__proscons { display: grid; grid-template-columns: 1fr 1fr; }
.ngq-review__col { padding: 20px 24px; }
.ngq-review__col + .ngq-review__col { border-left: 1px solid var(--ngq-border); }
.ngq-review__col h3 {
	display: flex; align-items: center; gap: 7px;
	font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; margin: 0 0 12px;
}
.ngq-review__col--pros h3 { color: var(--ngq-cyan); }
.ngq-review__col--cons h3 { color: var(--ngq-orange); }
.ngq-review__col ul { list-style: none; margin: 0; padding: 0; }
.ngq-review__col li {
	position: relative; padding-left: 22px; margin-bottom: 8px;
	font-size: .92rem; color: var(--ngq-text);
}
.ngq-review__col li::before {
	position: absolute; left: 0; top: -1px; font-weight: 900;
}
.ngq-review__col--pros li::before { content: "+"; color: var(--ngq-cyan); }
.ngq-review__col--cons li::before { content: "\2212"; color: var(--ngq-orange); }

/* ==========================================================================
   9. Listicle "Best Of"
   ========================================================================== */

.ngq-listicle { list-style: none; margin: 0; padding: 0; counter-reset: ngq-rank; }
.ngq-listicle > li {
	counter-increment: ngq-rank;
	position: relative;
	display: grid; grid-template-columns: 72px minmax(0, 320px) minmax(0, 1fr);
	gap: 22px; align-items: start;
	padding: 26px 0;
	border-top: 1px solid var(--ngq-border);
}
.ngq-listicle > li:first-child { border-top: 0; }

.ngq-listicle__rank {
	font-family: var(--ngq-font-display);
	font-size: 3rem; font-weight: 900; line-height: 1;
	color: transparent;
	-webkit-text-stroke: 2px var(--ngq-purple-deep);
	text-align: center;
}
.ngq-listicle__rank::before { content: counter(ngq-rank, decimal-leading-zero); }
.ngq-listicle > li:nth-child(1) .ngq-listicle__rank { -webkit-text-stroke-color: var(--ngq-spark); color: var(--ngq-spark); }

.ngq-listicle__media { border-radius: var(--ngq-radius); overflow: hidden; aspect-ratio: 16 / 9; background: var(--ngq-surface-2); }
.ngq-listicle__media img { width: 100%; height: 100%; object-fit: cover; }
.ngq-listicle__title { font-size: 1.3rem; margin: 0 0 8px; }
.ngq-listicle__title a { color: var(--ngq-text); }
.ngq-listicle__title a:hover { color: var(--ngq-orange); }

/* ==========================================================================
   10. Artikel tunggal
   ========================================================================== */

.ngq-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 44px; padding: 36px 0 60px; align-items: start; }
.ngq-layout--full { grid-template-columns: minmax(0, 1fr); }

.ngq-article__header { margin-bottom: 24px; }
.ngq-article__title { font-size: clamp(1.8rem, 3.6vw, 2.7rem); margin: 0 0 14px; }
.ngq-article__lead { font-size: 1.12rem; color: var(--ngq-text-muted); margin: 0 0 16px; max-width: 68ch; }
.ngq-article__figure { margin: 0 0 28px; }
.ngq-article__figure img { width: 100%; border-radius: var(--ngq-radius); }
.ngq-article__figure figcaption { font-size: .8rem; color: var(--ngq-text-muted); margin-top: 8px; }

.ngq-content { font-size: 1.06rem; max-width: 72ch; }
.ngq-content > * + * { margin-top: 1.15em; }
.ngq-content h2 { font-size: 1.6rem; margin-top: 1.8em; }
.ngq-content h3 { font-size: 1.28rem; margin-top: 1.6em; }
.ngq-content a { text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 2px; }
.ngq-content img { border-radius: var(--ngq-radius); }
.ngq-content ul, .ngq-content ol { padding-left: 1.4em; }
.ngq-content li + li { margin-top: .4em; }
.ngq-content blockquote {
	margin: 1.6em 0; padding: 4px 0 4px 22px;
	border-left: 4px solid var(--ngq-cyan);
	font-size: 1.15rem; font-style: italic; color: var(--ngq-text);
}
.ngq-content code {
	background: var(--ngq-surface-2); padding: .15em .4em;
	border-radius: 4px; font-size: .9em;
}
.ngq-content pre {
	background: var(--ngq-surface-2); padding: 16px; border-radius: var(--ngq-radius);
	overflow-x: auto; border: 1px solid var(--ngq-border);
}
.ngq-content pre code { background: none; padding: 0; }
.ngq-content table { width: 100%; border-collapse: collapse; }
.ngq-content th, .ngq-content td { border: 1px solid var(--ngq-border); padding: 10px 12px; text-align: left; }
.ngq-content th { background: var(--ngq-surface-2); }

/* Tabel & konten lebar tidak boleh membuat halaman menggulir horizontal */
.ngq-content .ngq-scroll-x { overflow-x: auto; }

.ngq-tags { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ngq-tags a {
	display: inline-block; padding: 5px 11px;
	background: var(--ngq-surface-2); color: var(--ngq-text-muted);
	border: 1px solid var(--ngq-border); border-radius: 999px;
	font-size: .78rem; font-weight: 600;
}
.ngq-tags a:hover { background: var(--ngq-purple-deep); color: #fff; border-color: transparent; }

/* Navigasi pos sebelumnya/berikutnya */
.ngq-postnav { display: grid; grid-template-columns: 1fr 1fr; gap: var(--ngq-gap); margin-top: 44px; }
.ngq-postnav a {
	display: block; padding: 18px;
	background: var(--ngq-surface); border: 1px solid var(--ngq-border);
	border-radius: var(--ngq-radius); color: var(--ngq-text);
}
.ngq-postnav a:hover { border-color: var(--ngq-cyan); }
.ngq-postnav span {
	display: block; font-size: .7rem; text-transform: uppercase; letter-spacing: .1em;
	color: var(--ngq-text-muted); margin-bottom: 6px;
}
.ngq-postnav .ngq-postnav__next { text-align: right; }

/* ==========================================================================
   11. Sidebar & widget
   ========================================================================== */

.ngq-sidebar { position: sticky; top: calc(var(--ngq-header-h) + 20px); }
.ngq-widget {
	background: var(--ngq-surface);
	border: 1px solid var(--ngq-border);
	border-radius: var(--ngq-radius);
	padding: 20px; margin-bottom: var(--ngq-gap);
}
.ngq-widget__title {
	font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
	color: var(--ngq-spark); margin: 0 0 14px;
}
.ngq-widget ul { list-style: none; margin: 0; padding: 0; }
.ngq-widget li { padding: 8px 0; border-top: 1px solid var(--ngq-border); }
.ngq-widget li:first-child { border-top: 0; }
.ngq-widget a { color: var(--ngq-text); font-weight: 600; font-size: .93rem; }
.ngq-widget a:hover { color: var(--ngq-orange); }

/* ==========================================================================
   12. Arsip & paginasi
   ========================================================================== */

.ngq-archive__header {
	padding: 44px 0;
	background: linear-gradient(115deg, var(--ngq-navy), var(--ngq-purple-med));
	border-bottom: 2px solid var(--ngq-cyan);
	color: #fff;
}
.ngq-archive__title { font-size: clamp(1.7rem, 3.4vw, 2.5rem); margin: 0 0 8px; color: #fff; }
.ngq-archive__desc { margin: 0; color: rgba(255, 255, 255, .8); max-width: 70ch; }

.ngq-pagination { margin-top: 44px; }
.ngq-pagination .nav-links { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.ngq-pagination .page-numbers {
	display: grid; place-items: center;
	min-width: 42px; height: 42px; padding: 0 12px;
	background: var(--ngq-surface); border: 1px solid var(--ngq-border);
	border-radius: var(--ngq-radius-sm);
	color: var(--ngq-text); font-weight: 700;
}
.ngq-pagination .page-numbers:hover { border-color: var(--ngq-cyan); color: var(--ngq-text); }
.ngq-pagination .page-numbers.current { background: var(--ngq-spark); color: #1E1440; border-color: transparent; }

/* ==========================================================================
   13. Komentar
   ========================================================================== */

.ngq-comments { margin-top: 52px; padding-top: 32px; border-top: 1px solid var(--ngq-border); }
.ngq-comments__title { font-size: 1.3rem; margin: 0 0 22px; }
.ngq-comments .comment-list { list-style: none; margin: 0; padding: 0; }
.ngq-comments .comment-list ol.children { list-style: none; padding-left: 26px; }
.ngq-comments .comment-body {
	background: var(--ngq-surface); border: 1px solid var(--ngq-border);
	border-radius: var(--ngq-radius); padding: 18px; margin-bottom: 16px;
}
.ngq-comments .comment-author img { border-radius: 50%; float: left; margin-right: 12px; }
.ngq-comments .comment-metadata { font-size: .78rem; color: var(--ngq-text-muted); }

.ngq-comments input[type="text"], .ngq-comments input[type="email"],
.ngq-comments input[type="url"], .ngq-comments textarea {
	width: 100%; padding: 11px 13px;
	background: var(--ngq-surface); color: var(--ngq-text);
	border: 1px solid var(--ngq-border-firm); border-radius: var(--ngq-radius-sm);
	font-family: inherit; font-size: 1rem;
}
.ngq-comments .form-submit input[type="submit"] {
	background: var(--ngq-spark); color: #1E1440;
	border: 0; border-radius: var(--ngq-radius-sm);
	padding: 12px 24px; font-weight: 800; text-transform: uppercase;
	letter-spacing: .05em; cursor: pointer;
}
.ngq-comments .form-submit input[type="submit"]:hover { background: var(--ngq-orange); }

/* ==========================================================================
   14. Footer
   ========================================================================== */

.ngq-footer {
	margin-top: 60px;
	background: var(--ngq-navy);
	color: rgba(255, 255, 255, .78);
	border-top: 2px solid var(--ngq-purple-deep);
}
.ngq-footer__cols {
	display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 36px;
	padding: 48px 0 36px;
}
.ngq-footer h2 {
	font-size: .8rem; text-transform: uppercase; letter-spacing: .1em;
	color: var(--ngq-spark); margin: 0 0 14px;
}
.ngq-footer ul { list-style: none; margin: 0; padding: 0; }
.ngq-footer li { padding: 5px 0; }
.ngq-footer a { color: rgba(255, 255, 255, .78); font-size: .92rem; }
.ngq-footer a:hover { color: var(--ngq-spark); }
.ngq-footer__about p { font-size: .92rem; color: rgba(255, 255, 255, .65); }

.ngq-footer__bottom {
	border-top: 1px solid rgba(255, 255, 255, .1);
	padding: 18px 0;
	display: flex; flex-wrap: wrap; gap: 12px;
	align-items: center; justify-content: space-between;
	font-size: .84rem; color: rgba(255, 255, 255, .55);
}
.ngq-footer__bottom ul { display: flex; flex-wrap: wrap; gap: 18px; }

/* ==========================================================================
   15. Responsif
   ========================================================================== */

@media (max-width: 1080px) {
	.ngq-layout { grid-template-columns: minmax(0, 1fr); gap: 40px; }
	.ngq-sidebar { position: static; }
	.ngq-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ngq-footer__cols { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
	.ngq-hero { grid-template-columns: minmax(0, 1fr); }
	.ngq-hero__lead { min-height: 320px; }
	.ngq-grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.ngq-listicle > li { grid-template-columns: 56px minmax(0, 1fr); }
	.ngq-listicle__media { grid-column: 1 / -1; }
	.ngq-review__proscons { grid-template-columns: 1fr; }
	.ngq-review__col + .ngq-review__col { border-left: 0; border-top: 1px solid var(--ngq-border); }

	/* Nav berubah jadi panel geser */
	.ngq-burger { display: grid; }
	.ngq-nav {
		position: fixed; inset: var(--ngq-header-h) 0 0 auto;
		width: min(84vw, 340px);
		background: var(--ngq-navy);
		border-left: 1px solid var(--ngq-border-firm);
		padding: 12px 0 40px;
		overflow-y: auto;
		transform: translateX(100%);
		transition: transform .25s ease;
		margin-left: 0;
	}
	.ngq-nav.is-open { transform: translateX(0); }
	.ngq-nav > ul { flex-direction: column; align-items: stretch; gap: 0; }
	.ngq-nav a { padding: 14px 20px; border-bottom: 1px solid rgba(255, 255, 255, .06); }
	.ngq-nav > ul > li > a:hover { border-bottom-color: rgba(255, 255, 255, .06); }
	.ngq-nav .sub-menu {
		position: static; opacity: 1; visibility: visible; transform: none;
		box-shadow: none; border: 0; border-radius: 0;
		background: rgba(0, 0, 0, .22);
		padding: 0; display: none;
	}
	.ngq-nav li.is-expanded > .sub-menu { display: block; }
	.ngq-nav .sub-menu a { padding-left: 34px; }

	/* Tombol panah pembuka submenu di mobile */
	.ngq-submenu-toggle {
		position: absolute; top: 4px; right: 8px;
		width: 40px; height: 40px;
		background: none; border: 0; color: #fff; cursor: pointer;
		display: grid; place-items: center;
	}
	.ngq-submenu-toggle svg { width: 14px; height: 14px; transition: transform .2s; }
	.ngq-nav li.is-expanded > .ngq-submenu-toggle svg { transform: rotate(180deg); }
}

@media (min-width: 901px) {
	.ngq-submenu-toggle { display: none; }
}

@media (max-width: 600px) {
	:root { --ngq-gap: 18px; }
	.ngq-grid--2, .ngq-grid--3, .ngq-grid--4 { grid-template-columns: minmax(0, 1fr); }
	.ngq-footer__cols { grid-template-columns: 1fr; gap: 28px; }
	.ngq-postnav { grid-template-columns: 1fr; }
	.ngq-review__head { flex-direction: column; align-items: flex-start; gap: 14px; }
	.ngq-hero__content { padding: 20px; }
	.ngq-listicle > li { grid-template-columns: 44px minmax(0, 1fr); gap: 14px; }
	.ngq-listicle__rank { font-size: 2rem; }
}

/* ==========================================================================
   16. Penyelarasan blok editor WordPress
   ========================================================================== */

.alignleft  { float: left; margin: .3em 1.6em 1em 0; }
.alignright { float: right; margin: .3em 0 1em 1.6em; }
.aligncenter { margin-inline: auto; }
.alignwide, .alignfull { max-width: none; }
.wp-caption-text { font-size: .82rem; color: var(--ngq-text-muted); }
.sticky .ngq-card__title::after { content: " \2605"; color: var(--ngq-spark); }
