/*
Theme Name:   SigapTek (Astra Child)
Theme URI:    https://sigaptek.com
Description:  Child theme Astra untuk SigapTek — dark editorial technology. Aktifkan, dan kategori, halaman, menu, serta form kontak (Web3Forms) otomatis siap.
Author:       SigapTek
Template:     astra
Version:      1.0.0
Requires at least: 5.8
Requires PHP: 7.4
License:      GNU General Public License v2 or later
Text Domain:  sigaptek
*/

/* =========================================================
   1. Token
   ========================================================= */
:root {
	--bg: #080D16;
	--bg-2: #0D1421;
	--surface: #141D2B;
	--surface-hover: #1B293A;
	--border: #263448;
	--text: #F4F7FB;
	--text-2: #AAB6C6;
	--muted: #78879A;
	--body: #D6DEEA;
	--accent: #FF8A00;
	--accent-hover: #FF9F24;
	--blue: #1A6FD6;
	--violet: #6D4AE0;
	--success: #36B37E;
	--warn: #F5B942;
	--danger: #FF6B6B;

	--radius: 14px;
	--radius-lg: 18px;
	--container: 1240px;
	--header-h: 80px;
	--font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* =========================================================
   2. Dasar
   ========================================================= */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body.sigaptek {
	margin: 0;
	background: var(--bg);
	color: var(--body);
	font-family: var(--font);
	font-size: 17px;
	line-height: 1.7;
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
}
:where(.sigaptek) img, :where(.sigaptek) svg { max-width: 100%; }
:where(.sigaptek) img { height: auto; display: block; }
:where(.sigaptek) a { color: var(--accent); text-decoration: none; }
:where(.sigaptek) a:hover { color: var(--accent-hover); }
:where(.sigaptek) h1, :where(.sigaptek) h2, :where(.sigaptek) h3, :where(.sigaptek) h4 {
	color: var(--text);
	font-family: var(--font);
	line-height: 1.25;
	margin: 0;
	letter-spacing: -0.01em;
}
:where(.sigaptek) p { margin: 0 0 1.1em; }
:where(.sigaptek) ul, :where(.sigaptek) ol { margin: 0; padding: 0; }
:where(.sigaptek) :focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }

.screen-reader-text {
	position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0;
	overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; border: 0;
}
.skip-link.screen-reader-text:focus {
	clip: auto; clip-path: none; width: auto; height: auto; margin: 0;
	left: 12px; top: 12px; z-index: 1000; padding: 12px 18px;
	background: var(--accent); color: #080D16; font-weight: 700; border-radius: 8px;
}

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
.container-post { max-width: 1136px; }
.container-narrow { max-width: 800px; }
.site-main { min-height: 60vh; }
.section { padding: 56px 0; }

/* =========================================================
   3. Header
   ========================================================= */
.site-header {
	position: sticky; top: 0; z-index: 100;
	background: var(--bg-2);
	border-bottom: 1px solid var(--border);
	transition: box-shadow .2s ease;
}
@supports (backdrop-filter: blur(8px)) {
	.site-header { background: rgba(13, 20, 33, .88); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
}
.site-header.is-scrolled { box-shadow: 0 8px 24px rgba(0, 0, 0, .35); }
.admin-bar .site-header { top: 32px; }
@media (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

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

.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--text); flex-shrink: 0; }
.brand:hover { color: var(--text); }
.brand-mark { flex-shrink: 0; margin-left: -4px; }
.brand-text { display: flex; flex-direction: column; line-height: 1.1; }
.brand-name { font-size: 28px; font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.brand-accent { color: var(--accent); }
.brand-tag { font-size: 11.5px; font-weight: 500; color: var(--text-2); margin-top: 3px; letter-spacing: 0; }
.brand-custom img { max-height: 48px; width: auto; }

.site-nav { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; }
.nav-home { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; color: var(--text-2); border-radius: 10px; position: relative; }
.nav-home:hover, .nav-home[aria-current="page"] { color: var(--accent); }
.nav-home[aria-current="page"]::after {
	content: ""; position: absolute; left: 8px; right: 8px; bottom: -18px; height: 3px; background: var(--accent); border-radius: 3px 3px 0 0;
}

.site-nav .menu { display: flex; align-items: center; gap: 2px; list-style: none; }
.site-nav .menu > li { position: relative; }
.site-nav .menu a {
	display: flex; align-items: center; gap: 6px; padding: 10px 14px;
	color: var(--text); font-weight: 600; font-size: 15.5px; border-radius: 10px; position: relative;
}
.site-nav .menu a:hover { color: var(--accent); }
.site-nav .menu > li.current-menu-item > a,
.site-nav .menu > li.current-menu-ancestor > a,
.site-nav .menu > li.current-menu-parent > a,
.site-nav .menu > li.current-post-ancestor > a,
.site-nav .menu > li.current-category-ancestor > a { color: var(--accent); }
.site-nav .menu > li.current-menu-item > a::after,
.site-nav .menu > li.current-menu-ancestor > a::after,
.site-nav .menu > li.current-post-ancestor > a::after {
	content: ""; position: absolute; left: 14px; right: 14px; bottom: -14px; height: 3px; background: var(--accent); border-radius: 3px 3px 0 0;
}
.site-nav .menu > li.menu-item-has-children > a::after {
	content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor;
	transform: rotate(45deg) translateY(-2px); margin-left: 4px; position: static; background: none; height: 7px; border-radius: 0;
}
.site-nav .sub-menu {
	position: absolute; top: calc(100% + 12px); left: 0; min-width: 240px; list-style: none; padding: 8px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
	box-shadow: 0 18px 40px rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transform: translateY(6px);
	transition: opacity .15s ease, transform .15s ease, visibility .15s;
}
.site-nav .menu li:hover > .sub-menu,
.site-nav .menu li:focus-within > .sub-menu { opacity: 1; visibility: visible; transform: none; }
.site-nav .sub-menu a { font-weight: 500; padding: 10px 12px; font-size: 15px; }
.site-nav .sub-menu a:hover { background: var(--surface-hover); }

.nav-search { margin-left: auto; }
.search-form { position: relative; display: flex; align-items: center; }
.search-field {
	width: 270px; max-width: 100%; height: 46px; padding: 0 48px 0 20px;
	background: var(--surface); color: var(--text); border: 1px solid var(--border); border-radius: 999px;
	font: inherit; font-size: 15px; -webkit-appearance: none; appearance: none;
}
.search-field::placeholder { color: var(--muted); opacity: 1; }
.search-field:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 138, 0, .2); }
.search-submit {
	position: absolute; right: 4px; top: 4px; width: 38px; height: 38px; border: 0; border-radius: 50%;
	background: transparent; color: var(--text-2); cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
}
.search-submit:hover { color: var(--accent); }

.nav-toggle {
	display: none; margin-left: auto; width: 46px; height: 46px; border-radius: 12px;
	border: 1px solid var(--border); background: var(--surface); color: var(--text); cursor: pointer;
	align-items: center; justify-content: center;
}
.nav-toggle-close { display: none; }
.nav-open .nav-toggle-open { display: none; }
.nav-open .nav-toggle-close { display: inline-flex; }

@media (max-width: 1080px) {
	.brand-tag { display: none; }
	.search-field { width: 200px; }
}

@media (max-width: 1023px) {
	:root { --header-h: 66px; }
	.header-inner { gap: 12px; }
	.nav-toggle { display: inline-flex; }
	.brand-name { font-size: 24px; }
	.brand-mark { width: 38px; height: 38px; }
	.js .site-nav {
		display: none; position: absolute; top: 100%; left: 0; right: 0; flex-direction: column; align-items: stretch;
		gap: 4px; padding: 16px 24px 24px; background: var(--bg-2); border-bottom: 1px solid var(--border);
		max-height: calc(100vh - var(--header-h)); overflow-y: auto;
	}
	.js .nav-open .site-nav { display: flex; }
	.no-js .site-nav, .site-nav { flex-wrap: wrap; }
	.site-nav .menu { flex-direction: column; align-items: stretch; width: 100%; }
	.site-nav .menu a { padding: 14px 8px; font-size: 17px; border-bottom: 1px solid var(--border); border-radius: 0; }
	.site-nav .menu > li.current-menu-item > a::after,
	.site-nav .menu > li.current-menu-ancestor > a::after,
	.site-nav .menu > li.current-post-ancestor > a::after,
	.nav-home[aria-current="page"]::after { display: none; }
	.site-nav .sub-menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; background: transparent; padding: 0 0 0 14px; }
	.nav-home { display: none; }
	.nav-search { margin: 12px 0 0; order: -1; }
	.search-field { width: 100%; }
	.search-form { width: 100%; }
}

/* =========================================================
   4. Tombol, badge, chip
   ========================================================= */
.btn {
	display: inline-flex; align-items: center; gap: 10px; padding: 14px 26px; border-radius: 12px;
	font: inherit; font-weight: 700; font-size: 16px; line-height: 1.2; cursor: pointer; border: 1px solid transparent;
	transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.btn-primary { background: var(--accent); color: #080D16 !important; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-primary:disabled { opacity: .6; cursor: progress; }
.btn-ghost { background: transparent; color: var(--text) !important; border-color: var(--border); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent) !important; }

.badge {
	display: inline-flex; align-items: center; padding: 5px 13px; border-radius: 8px;
	background: var(--surface-hover); color: var(--text) !important; font-size: 13px; font-weight: 700; line-height: 1.3;
}
[data-cat="teknologi"] .badge, .badge[data-cat="teknologi"] { background: var(--blue); color: #fff !important; }
[data-cat="bisnis"] .badge, .badge[data-cat="bisnis"] { background: var(--accent); color: #080D16 !important; }
[data-cat="pendidikan"] .badge, .badge[data-cat="pendidikan"] { background: var(--violet); color: #fff !important; }

.chips ul, .chip-list { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; }
.chip {
	display: inline-flex; padding: 8px 18px; border: 1px solid var(--border); border-radius: 999px; background: var(--surface);
	color: var(--text) !important; font-size: 14.5px; font-weight: 600;
}
.chip:hover { border-color: var(--accent); color: var(--accent) !important; }
.chip.is-current { background: var(--accent); border-color: var(--accent); color: #080D16 !important; }

/* =========================================================
   5. Beranda
   ========================================================= */
.hero { padding: 32px 0 8px; }
.hero-inner {
	display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center;
	background: linear-gradient(135deg, #0F1B2E 0%, var(--bg-2) 60%);
	border: 1px solid var(--border); border-radius: 24px; padding: 0; overflow: hidden; max-width: calc(var(--container) - 48px);
}
.hero-copy { padding: 56px 0 56px 56px; }
.hero-copy .badge { margin-bottom: 20px; }
.hero-title { font-size: clamp(30px, 4.2vw, 52px); font-weight: 800; line-height: 1.12; margin-bottom: 18px; }
.hero-desc { font-size: 18px; color: var(--text-2); max-width: 520px; margin-bottom: 28px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero-media { position: relative; align-self: stretch; min-height: 340px; }
.hero-media img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 38%); mask-image: linear-gradient(to right, transparent 0, #000 38%);
}
.hero-art {
	position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
	background:
		radial-gradient(circle at 60% 45%, rgba(255, 138, 0, .22), transparent 55%),
		radial-gradient(circle at 80% 80%, rgba(38, 155, 255, .16), transparent 50%);
}
.hero-art svg { width: 200px; height: 200px; filter: drop-shadow(0 12px 40px rgba(255, 138, 0, .35)); }

.cat-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.cat-card {
	display: flex; align-items: center; gap: 18px; padding: 24px; background: var(--surface); border: 1px solid var(--border);
	border-radius: var(--radius-lg); color: var(--text) !important; transition: border-color .15s ease, background .15s ease;
}
.cat-card:hover { border-color: var(--accent); background: var(--surface-hover); }
.cat-icon { color: var(--accent); flex-shrink: 0; display: inline-flex; width: 56px; height: 56px; align-items: center; justify-content: center; border-radius: 14px; background: rgba(255, 138, 0, .1); }
.cat-text { display: flex; flex-direction: column; gap: 4px; flex: 1; min-width: 0; }
.cat-name { font-size: 20px; font-weight: 700; color: var(--text); }
.cat-desc { font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.cat-arrow { display: inline-flex; width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; align-items: center; justify-content: center; color: var(--text-2); flex-shrink: 0; }
.cat-card:hover .cat-arrow { border-color: var(--accent); color: var(--accent); }

.section-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; margin-bottom: 28px; }
.section-title { font-size: 28px; font-weight: 800; padding-left: 16px; border-left: 4px solid var(--accent); line-height: 1.1; }
.section-link { font-size: 15px; font-weight: 600; display: inline-flex; align-items: center; gap: 6px; }

/* =========================================================
   6. Kartu & grid
   ========================================================= */
.grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; }
.card { display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: border-color .15s ease, transform .15s ease; }
.card:hover { border-color: #3A4F6B; transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 16 / 9; background: var(--bg-2); }
.card-thumb { display: block; width: 100%; height: 100%; }
.card-thumb img { width: 100%; height: 100%; object-fit: cover; }
.card-media .badge { position: absolute; left: 14px; top: 14px; font-size: 12.5px; }
.thumb-ph {
	display: flex; width: 100%; height: 100%; align-items: center; justify-content: center; color: var(--accent);
	background: radial-gradient(circle at 30% 20%, rgba(255, 138, 0, .18), transparent 60%), linear-gradient(135deg, #14223A, #0D1421);
}
.thumb-ph[data-cat="teknologi"] { color: #5AB0FF; background: radial-gradient(circle at 30% 20%, rgba(38, 155, 255, .25), transparent 60%), linear-gradient(135deg, #12263F, #0D1421); }
.thumb-ph[data-cat="pendidikan"] { color: #A794FF; background: radial-gradient(circle at 30% 20%, rgba(109, 74, 224, .3), transparent 60%), linear-gradient(135deg, #1B1B3F, #0D1421); }
.thumb-ph svg { width: 56px; height: 56px; }
.card-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.card-title { font-size: 20px; font-weight: 700; line-height: 1.32; }
.card-title a { color: var(--text); }
.card-title a:hover { color: var(--accent); }
.card-excerpt { color: var(--text-2); font-size: 15px; line-height: 1.6; margin: 0; }
.card-meta { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: auto 0 0; padding-top: 6px; font-size: 13.5px; color: var(--muted); }
.card-meta > * { display: inline-flex; align-items: center; gap: 6px; }

.empty { text-align: center; padding: 56px 24px; background: var(--surface); border: 1px dashed var(--border); border-radius: var(--radius-lg); }
.empty h2 { font-size: 24px; margin-bottom: 8px; }
.empty p { color: var(--text-2); margin-bottom: 20px; }
.empty .chips ul { justify-content: center; }

.pagination { margin-top: 48px; }
.pagination ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; }
.pagination a, .pagination span {
	display: inline-flex; min-width: 44px; height: 44px; padding: 0 16px; align-items: center; justify-content: center;
	background: var(--surface); border: 1px solid var(--border); border-radius: 10px; color: var(--text); font-weight: 600; font-size: 15px;
}
.pagination a:hover { border-color: var(--accent); color: var(--accent); }
.pagination .current { background: var(--accent); border-color: var(--accent); color: #080D16; }
.pagination .dots { background: transparent; border-color: transparent; }

/* =========================================================
   7. Arsip, breadcrumb, halaman
   ========================================================= */
.breadcrumb { font-size: 14px; color: var(--muted); margin-bottom: 20px; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 10px; list-style: none; }
.breadcrumb li + li::before { content: "›"; margin-right: 10px; color: var(--muted); }
.breadcrumb a { color: var(--text-2); }
.breadcrumb a:hover { color: var(--accent); }
.breadcrumb .breadcrumb_last, .breadcrumb [aria-current] { color: var(--muted); }

.archive-head { padding: 48px 0 8px; border-bottom: 1px solid var(--border); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.archive-head .container { padding-bottom: 32px; }
.archive-title, .page-title { font-size: clamp(32px, 4vw, 46px); font-weight: 800; margin-bottom: 14px; }
.archive-desc { max-width: 700px; color: var(--text-2); font-size: 18px; }
.archive-desc p:last-child { margin-bottom: 0; }
.archive-count { color: var(--muted); font-size: 14.5px; margin: 14px 0 18px; }
.archive-search { max-width: 520px; margin: 18px 0; }
.archive-search .search-field { width: 100%; }
.archive-body { padding-top: 40px; }

.page-head { padding: 48px 0 8px; }
.page-content { padding: 16px 0 72px; }
.error-404 { text-align: center; padding: 80px 0; }
.error-404 .archive-search { margin: 24px auto; }
.error-404 .chips ul { justify-content: center; margin-top: 28px; }
.error-code { font-size: clamp(80px, 16vw, 140px); font-weight: 800; line-height: 1; color: var(--accent); margin: 0 0 8px; }

/* =========================================================
   8. Artikel
   ========================================================= */
.post-head { padding: 40px 0 8px; }
.post-head .badge { margin-bottom: 18px; }
.post-title { font-size: clamp(30px, 4.4vw, 46px); font-weight: 800; line-height: 1.16; max-width: 900px; margin-bottom: 18px; }
.post-excerpt { font-size: 20px; line-height: 1.6; color: var(--text-2); max-width: 780px; }
.byline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 22px; margin-top: 20px; font-size: 14.5px; color: var(--muted); }
.byline > span { display: inline-flex; align-items: center; gap: 7px; }
.byline-author { color: var(--text); font-weight: 600; }
.byline-author img { border-radius: 50%; }

.post-figure { margin: 28px 0 8px; }
.post-figure img { width: 100%; border-radius: var(--radius-lg); border: 1px solid var(--border); aspect-ratio: 16 / 9; object-fit: cover; }
.post-figure figcaption { font-size: 13.5px; color: var(--muted); margin-top: 10px; }

.post-layout { display: grid; gap: 48px; padding: 32px 0 24px; }
.post-layout.has-toc { grid-template-columns: minmax(0, 740px) 300px; }
.post-layout.no-toc { grid-template-columns: minmax(0, 740px); justify-content: center; }
.post-layout.has-toc .post-content { grid-column: 1; grid-row: 1; }
.post-layout.has-toc .toc { grid-column: 2; grid-row: 1; align-self: start; position: sticky; top: calc(var(--header-h) + 24px); }
.admin-bar .post-layout.has-toc .toc { top: calc(var(--header-h) + 56px); }

.toc-box { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 6px 20px; }
.toc-box summary { cursor: pointer; font-weight: 700; color: var(--text); padding: 12px 0; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.toc-box summary::-webkit-details-marker { display: none; }
.toc-box summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--text-2); border-bottom: 2px solid var(--text-2); transform: rotate(45deg); transition: transform .15s ease; }
.toc-box[open] summary::after { transform: rotate(-135deg); }
.toc-box ol { list-style: none; padding: 0 0 14px; max-height: 60vh; overflow-y: auto; }
.toc-box li { margin: 0; }
.toc-box a { display: block; padding: 7px 0; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.toc-box a:hover { color: var(--accent); }
.toc-box .toc-l3 a { padding-left: 16px; font-size: 13.5px; }

.entry-content { color: var(--body); font-size: 18px; line-height: 1.8; overflow-wrap: break-word; }
.entry-content > * { margin-top: 0; margin-bottom: 0; }
.entry-content > * + * { margin-top: 1.25em; }
.entry-content h2 { font-size: 30px; font-weight: 800; margin-top: 2em; line-height: 1.25; }
.entry-content h3 { font-size: 23px; font-weight: 700; margin-top: 1.7em; }
.entry-content h4 { font-size: 19px; font-weight: 700; margin-top: 1.5em; }
.entry-content h2 + *, .entry-content h3 + *, .entry-content h4 + * { margin-top: .7em; }
.entry-content a { text-decoration: underline; text-decoration-color: rgba(255, 138, 0, .45); text-underline-offset: 3px; }
.entry-content a:hover { text-decoration-color: currentColor; }
.entry-content ul, .entry-content ol { padding-left: 1.4em; }
.entry-content .chip-list { padding-left: 0; }
.entry-content .chip-list li { margin: 0; }
.entry-content li { margin: .4em 0; }
.entry-content li::marker { color: var(--accent); }
.entry-content strong { color: var(--text); }
.entry-content img { border-radius: var(--radius); }
.entry-content figure { margin: 1.8em 0; }
.entry-content figcaption { font-size: 14px; color: var(--muted); margin-top: 10px; text-align: center; }
.entry-content hr { border: 0; border-top: 1px solid var(--border); margin: 2.4em 0; }
.entry-content blockquote {
	margin: 1.8em 0; padding: 18px 24px; background: var(--surface); border-left: 4px solid var(--accent);
	border-radius: 0 var(--radius) var(--radius) 0; color: var(--text); font-size: 19px;
}
.entry-content blockquote p + p { margin-top: .8em; }
.entry-content code { background: var(--surface-hover); color: #FFCF99; padding: 2px 7px; border-radius: 6px; font-size: .88em; }
.entry-content pre { background: #060A12; border: 1px solid var(--border); border-radius: var(--radius); padding: 18px 20px; overflow-x: auto; font-size: 15px; line-height: 1.6; }
.entry-content pre code { background: none; padding: 0; color: #E3EAF5; }
.entry-content table { display: block; width: 100%; overflow-x: auto; border-collapse: collapse; font-size: 16px; }
.entry-content th, .entry-content td { padding: 12px 16px; border: 1px solid var(--border); text-align: left; vertical-align: top; }
.entry-content th { background: var(--surface-hover); color: var(--text); font-weight: 700; }
.entry-content tr:nth-child(even) td { background: rgba(20, 29, 43, .6); }
.entry-content iframe, .entry-content video { max-width: 100%; border-radius: var(--radius); }
.entry-content .wp-block-button__link { background: var(--accent); color: #080D16; border-radius: 12px; font-weight: 700; padding: 14px 26px; text-decoration: none; }
.entry-content .wp-block-button__link:hover { background: var(--accent-hover); color: #080D16; }
.entry-content .alignwide, .entry-content .alignfull { max-width: 100%; }
.entry-content .alignleft { float: left; margin: .4em 1.4em 1em 0; }
.entry-content .alignright { float: right; margin: .4em 0 1em 1.4em; }
.entry-content .aligncenter { margin-left: auto; margin-right: auto; }

/* Kotak tips/peringatan: beri kelas tambahan "box-tip" / "box-warning" pada blok Group/Paragraf */
.entry-content .box-tip, .entry-content .box-warning, .disclosure {
	padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); border-left: 4px solid var(--accent);
	border-radius: var(--radius); font-size: 16px; line-height: 1.65; color: var(--body);
}
.entry-content .box-warning { border-left-color: var(--warn); }
.disclosure { margin-bottom: 1.6em; font-size: 15px; color: var(--text-2); }
.post-tags { margin-top: 2.4em; }
.author-box { display: flex; gap: 18px; align-items: flex-start; margin-top: 2.4em; padding: 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.author-avatar img { border-radius: 50%; }
.author-name { margin: 0 0 4px; color: var(--text-2); font-size: 15px; }
.author-bio { margin: 0; font-size: 15px; line-height: 1.6; color: var(--text-2); }
.related { border-top: 1px solid var(--border); margin-top: 32px; }

/* =========================================================
   9. Formulir kontak
   ========================================================= */
.contact-form { margin-top: 2em; padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); display: grid; gap: 20px; }
.contact-form .field { display: grid; gap: 8px; }
.contact-form label { font-weight: 600; color: var(--text); font-size: 15px; }
.contact-form input[type="text"], .contact-form input[type="email"], .contact-form select, .contact-form textarea {
	width: 100%; padding: 13px 16px; background: var(--bg-2); color: var(--text); border: 1px solid var(--border);
	border-radius: 10px; font: inherit; font-size: 16px; -webkit-appearance: none; appearance: none;
}
.contact-form select {
	background-image: linear-gradient(45deg, transparent 50%, var(--text-2) 50%), linear-gradient(135deg, var(--text-2) 50%, transparent 50%);
	background-position: calc(100% - 20px) 55%, calc(100% - 14px) 55%; background-size: 6px 6px; background-repeat: no-repeat; padding-right: 40px;
}
.contact-form textarea { resize: vertical; min-height: 150px; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(255, 138, 0, .2); }
.form-note { margin: 0; font-size: 14px; color: var(--muted); }
.contact-form .btn { justify-self: start; }
.form-status { font-size: 15.5px; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-ok { color: var(--success); }
.form-status.is-error { color: var(--danger); }

/* =========================================================
   10. Footer
   ========================================================= */
.site-footer { margin-top: 56px; background: var(--bg-2); border-top: 1px solid var(--border); }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 40px; padding-top: 56px; padding-bottom: 40px; }
.footer-tagline { margin: 14px 0 6px; font-weight: 700; color: var(--text); }
.footer-about { color: var(--text-2); font-size: 15px; max-width: 340px; margin: 0; }
.footer-title { font-size: 16px; font-weight: 700; margin-bottom: 14px; color: var(--text); }
.footer-menu { list-style: none; display: grid; gap: 4px; }
.footer-menu a { color: var(--text-2); font-size: 15px; display: inline-block; padding: 4px 0; }
.footer-menu a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 22px; padding-bottom: 28px; color: var(--muted); font-size: 14px; }
.footer-bottom p { margin: 0; }

/* =========================================================
   11. Responsif
   ========================================================= */
@media (max-width: 1023px) {
	.hero-inner { grid-template-columns: 1fr; gap: 0; }
	.hero-copy { padding: 36px 28px 28px; order: 2; }
	.hero-media { order: 1; min-height: 240px; }
	.hero-media img { -webkit-mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); mask-image: linear-gradient(to bottom, #000 55%, transparent 100%); }
	.grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
	.cat-grid { grid-template-columns: 1fr; }
	.post-layout.has-toc, .post-layout.no-toc { grid-template-columns: minmax(0, 740px); justify-content: center; gap: 24px; }
	.post-layout.has-toc .toc { grid-column: 1; grid-row: 1; position: static; }
	.post-layout.has-toc .post-content { grid-row: 2; }
	.footer-grid { grid-template-columns: 1fr 1fr; }
	.footer-brand { grid-column: 1 / -1; }
}
@media (max-width: 767px) {
	body.sigaptek { font-size: 16.5px; }
	.container { padding: 0 18px; }
	.section { padding: 40px 0; }
	.hero { padding-top: 18px; }
	.hero-inner { width: auto; max-width: none; margin: 0 18px; border-radius: 18px; }
	.hero	.hero-copy { padding: 28px 22px 26px; }
	.hero-desc { font-size: 16.5px; }
	.grid { grid-template-columns: 1fr; gap: 22px; }
	.section-title { font-size: 23px; }
	.entry-content { font-size: 17px; }
	.entry-content h2 { font-size: 25px; }
	.entry-content h3 { font-size: 21px; }
	.contact-form { padding: 20px; }
	.archive-head { padding-top: 32px; }
	.footer-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; }
	.author-box { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
	.card:hover { transform: none; }
}
