/* =========================================================
   KH-G SDGs — main.css
   Design system + layout + komponen dasar.
   ========================================================= */

:root {
	--primary: #0b6b4f;        /* dark green */
	--primary-dark: #063f2e;
	--accent: #10b981;         /* emerald */
	--accent-light: #d1fae5;
	--background: #f7f7f4;     /* off white */
	--surface: #ffffff;
	--text: #16221d;           /* dark gray-green */
	--muted: #5b6b64;
	--border: #e4e7e2;

	--font-heading: 'Manrope', 'Inter', system-ui, sans-serif;
	--font-body: 'Inter', system-ui, sans-serif;

	--radius-sm: 8px;
	--radius-md: 16px;
	--radius-lg: 24px;
	--shadow-sm: 0 1px 3px rgba(16, 24, 20, 0.06);
	--shadow-md: 0 8px 24px rgba(16, 24, 20, 0.08);
	--shadow-lg: 0 20px 48px rgba(16, 24, 20, 0.12);

	--container-width: 1200px;
}

/* -------------------- Reset -------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
	margin: 0;
	font-family: var(--font-body);
	color: var(--text);
	background: var(--background);
	line-height: 1.6;
	-webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 {
	font-family: var(--font-heading);
	font-weight: 800;
	line-height: 1.15;
	margin: 0 0 0.5em;
	color: var(--primary-dark);
}
p { margin: 0 0 1em; }
button { font-family: inherit; cursor: pointer; }

.screen-reader-text {
	position: absolute !important;
	width: 1px; height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}
.khg-skip-link {
	position: fixed; top: -100px; left: 1rem; z-index: 9999;
	background: var(--primary); color: #fff;
	padding: 0.75rem 1.25rem; border-radius: var(--radius-sm);
	transition: top 0.2s ease;
}
.khg-skip-link:focus { top: 1rem; }

/* -------------------- Layout helpers -------------------- */
.khg-container {
	max-width: var(--container-width);
	margin-inline: auto;
	padding-inline: 24px;
}
.khg-section { padding-block: clamp(56px, 8vw, 104px); }
.khg-section--alt { background: var(--surface); }
.khg-section__head {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1.5rem;
	margin-bottom: 2.5rem;
	flex-wrap: wrap;
}
.khg-section__title { font-size: clamp(1.75rem, 3vw, 2.5rem); margin: 0; }
.khg-link-more {
	color: var(--primary);
	font-weight: 600;
	white-space: nowrap;
}
.khg-empty-state {
	color: var(--muted);
	background: var(--surface);
	border: 1px dashed var(--border);
	border-radius: var(--radius-md);
	padding: 2rem;
	text-align: center;
}

.khg-grid { display: grid; gap: 28px; }
.khg-grid--3 { grid-template-columns: repeat(3, 1fr); }
.khg-grid--4 { grid-template-columns: repeat(4, 1fr); }

/* -------------------- Buttons -------------------- */
.khg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 0.5em;
	padding: 0.85em 1.75em;
	border-radius: 999px;
	font-weight: 700;
	font-size: 0.95rem;
	border: 2px solid transparent;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.khg-btn--sm { padding: 0.6em 1.3em; font-size: 0.85rem; }
.khg-btn--lg { padding: 1em 2.1em; font-size: 1rem; }
.khg-btn--primary { background: var(--primary); color: #fff; }
.khg-btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); box-shadow: var(--shadow-md); }
/* Di atas latar hijau tua (hero/CTA) tombol utama dibalik: putih + teks hijau tua agar tetap kontras & terlihat. */
.khg-hero .khg-btn--primary,
.khg-cta .khg-btn--primary { background: #fff; color: var(--primary-dark); }
.khg-hero .khg-btn--primary:hover,
.khg-cta .khg-btn--primary:hover { background: var(--accent-light); color: var(--primary-dark); }
.khg-cta .khg-btn--ghost { border-color: rgba(255,255,255,0.7); color: #fff; }
.khg-cta .khg-btn--ghost:hover { background: rgba(255,255,255,0.14); color: #fff; }
.khg-btn--outline { border-color: rgba(255,255,255,0.7); color: #fff; }
.khg-btn--outline:hover { background: rgba(255,255,255,0.12); transform: translateY(-2px); }
.khg-btn--ghost { border-color: var(--primary); color: var(--primary); }
.khg-btn--ghost:hover { background: var(--primary); color: #fff; }

/* -------------------- Header / Navbar -------------------- */
.khg-header {
	position: sticky;
	top: 0;
	z-index: 100;
	background: rgba(247, 247, 244, 0.9);
	backdrop-filter: blur(10px);
	border-bottom: 1px solid var(--border);
	transition: padding 0.25s ease, box-shadow 0.25s ease;
}
.khg-header.is-compact { box-shadow: var(--shadow-sm); }
.khg-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
	padding-block: 18px;
	transition: padding 0.25s ease;
}
.khg-header.is-compact .khg-header__inner { padding-block: 10px; }

.khg-logo { display: inline-flex; align-items: center; gap: 8px; }
.khg-logo__mark {
	background: var(--primary);
	color: #fff;
	font-family: var(--font-heading);
	font-weight: 800;
	padding: 4px 10px;
	border-radius: 8px;
	font-size: 0.9rem;
	letter-spacing: 0.02em;
}
.khg-logo__text { font-family: var(--font-heading); font-weight: 800; color: var(--primary-dark); }

.khg-nav { display: none; }
.khg-nav__list { display: flex; gap: 28px; flex-wrap: wrap; }
.khg-nav__list a {
	font-weight: 600;
	font-size: 0.92rem;
	color: var(--text);
	position: relative;
	padding-block: 4px;
}
.khg-nav__list a::after {
	content: '';
	position: absolute;
	left: 0; right: 0; bottom: -2px;
	height: 2px;
	background: var(--accent);
	transform: scaleX(0);
	transform-origin: left;
	transition: transform 0.2s ease;
}
.khg-nav__list a:hover::after,
.khg-nav__list a:focus::after { transform: scaleX(1); }

.khg-header__actions { display: flex; align-items: center; gap: 14px; }

.khg-nav-toggle {
	display: inline-flex;
	flex-direction: column;
	gap: 4px;
	background: none;
	border: none;
	padding: 6px;
}
.khg-nav-toggle__bar { width: 22px; height: 2px; background: var(--text); border-radius: 2px; }

.khg-mobile-nav {
	border-top: 1px solid var(--border);
	background: var(--surface);
}
.khg-mobile-nav__list { padding: 12px 24px 20px; display: flex; flex-direction: column; gap: 4px; }
.khg-mobile-nav__list a { display: block; padding: 12px 0; font-weight: 600; border-bottom: 1px solid var(--border); }

/* -------------------- Hero -------------------- */
.khg-hero {
	position: relative;
	min-height: 88vh;
	display: flex;
	align-items: center;
	color: #fff;
	background:
		linear-gradient(160deg, rgba(6,63,46,0.92), rgba(11,107,79,0.85)),
		var(--khg-hero-image, none) center/cover no-repeat,
		radial-gradient(circle at 20% 20%, #0e7a58, #063f2e 60%);
	overflow: hidden;
}
.khg-hero__overlay {
	position: absolute; inset: 0;
	background: radial-gradient(circle at 80% 10%, rgba(16,185,129,0.25), transparent 55%);
}
.khg-hero__inner { position: relative; max-width: 760px; }
.khg-hero__eyebrow {
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-size: 0.8rem;
	font-weight: 700;
	color: var(--accent-light);
	margin-bottom: 1rem;
}
.khg-hero__title { color: #fff; font-size: clamp(2.2rem, 5vw, 3.75rem); margin-bottom: 0.6em; }
.khg-hero__desc { font-size: 1.1rem; color: rgba(255,255,255,0.88); max-width: 620px; margin-bottom: 2rem; }
.khg-hero__actions { display: flex; gap: 16px; flex-wrap: wrap; }
.khg-hero__scroll-cue {
	position: absolute; bottom: 28px; left: 50%; transform: translateX(-50%);
	width: 26px; height: 42px; border: 2px solid rgba(255,255,255,0.6); border-radius: 999px;
}
.khg-hero__scroll-cue::after {
	content: '';
	position: absolute; top: 8px; left: 50%; transform: translateX(-50%);
	width: 4px; height: 8px; background: #fff; border-radius: 999px;
	animation: khg-scroll-cue 1.6s ease infinite;
}

/* -------------------- Impact Statistics -------------------- */
.khg-stats { background: var(--surface); border-bottom: 1px solid var(--border); }
.khg-stats__grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 32px 24px;
	text-align: center;
}
.khg-stat__value {
	display: block;
	font-family: var(--font-heading);
	font-weight: 800;
	font-size: clamp(2rem, 4vw, 2.75rem);
	color: var(--primary);
}
.khg-stat__label { color: var(--muted); font-weight: 600; font-size: 0.9rem; }

/* -------------------- SDG Explorer -------------------- */
.khg-sdg-grid {
	display: grid;
	grid-template-columns: repeat(5, 1fr);
	gap: 18px;
}
.khg-sdg-card {
	--khg-sdg-color: var(--accent);
	position: relative;
	background: var(--khg-sdg-color);
	color: var(--khg-sdg-text, #fff);
	border-radius: var(--radius-md);
	padding: 22px;
	min-height: 190px;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	overflow: hidden;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.khg-sdg-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.khg-sdg-card__number { font-family: var(--font-heading); font-weight: 800; font-size: 1.75rem; opacity: 0.85; }
.khg-sdg-card__name { font-weight: 700; font-size: 1.05rem; margin-top: 12px; }
.khg-sdg-card__name-en { display: block; font-size: 0.78rem; margin-top: 2px; }
.khg-sdg-card__meta { font-size: 0.75rem; margin-top: 14px; }

/* -------------------- Cards (Program/Penelitian/Inovasi/Berita) -------------------- */
.khg-card {
	background: var(--surface);
	border-radius: var(--radius-md);
	overflow: hidden;
	box-shadow: var(--shadow-sm);
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	border: 1px solid var(--border);
}
.khg-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.khg-card__media { display: block; aspect-ratio: 16/10; overflow: hidden; background: var(--accent-light); }
.khg-card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; }
.khg-card:hover .khg-card__media img { transform: scale(1.05); }
.khg-card__media-placeholder { width: 100%; height: 100%; background: linear-gradient(135deg, var(--accent-light), var(--border)); }
.khg-card__body { padding: 20px 22px 24px; }
.khg-card__date { font-size: 0.78rem; color: var(--muted); font-weight: 600; margin-bottom: 6px; }
.khg-card__title { font-size: 1.1rem; margin-bottom: 8px; }
.khg-card__title a:hover { color: var(--primary); }
.khg-card__excerpt { color: var(--muted); font-size: 0.92rem; }
.khg-card__meta { color: var(--muted); font-size: 0.85rem; font-weight: 600; }

/* -------------------- Experts -------------------- */
.khg-expert-card { text-align: center; display: block; }
.khg-expert-card__photo {
	width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
	margin: 0 auto 16px; background: var(--accent-light);
	border: 3px solid var(--surface); box-shadow: var(--shadow-sm);
}
.khg-expert-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.khg-expert-card__name { font-size: 1rem; margin-bottom: 2px; }
.khg-expert-card__role { color: var(--primary); font-weight: 600; font-size: 0.85rem; margin-bottom: 4px; }
.khg-expert-card__expertise { color: var(--muted); font-size: 0.82rem; }

/* -------------------- Partners marquee -------------------- */
.khg-partners__marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.khg-partners__track { display: flex; gap: 48px; align-items: center; width: max-content; animation: khg-marquee 30s linear infinite; }
.khg-partners__logo { display: flex; align-items: center; height: 56px; filter: grayscale(1); opacity: 0.7; transition: opacity 0.2s ease, filter 0.2s ease; }
.khg-partners__logo:hover { filter: grayscale(0); opacity: 1; }
.khg-partners__logo img { max-height: 56px; width: auto; }

/* -------------------- Stories -------------------- */
.khg-story-card__media { position: relative; aspect-ratio: 16/9; border-radius: var(--radius-md); overflow: hidden; background: var(--primary-dark); }
.khg-story-card__media img { width: 100%; height: 100%; object-fit: cover; }
.khg-story-card__play {
	position: absolute; inset: 0; margin: auto; width: 56px; height: 56px;
	background: rgba(255,255,255,0.9); border-radius: 50%;
}
.khg-story-card__play::after {
	content: ''; position: absolute; top: 50%; left: 54%; transform: translate(-50%, -50%);
	border-style: solid; border-width: 9px 0 9px 15px; border-color: transparent transparent transparent var(--primary);
}
.khg-story-card__title { margin-top: 14px; font-size: 1rem; }

/* -------------------- CTA -------------------- */
.khg-cta { background: linear-gradient(135deg, var(--primary-dark), var(--primary)); color: #fff; padding-block: 80px; }
.khg-cta__inner { max-width: 720px; text-align: center; margin-inline: auto; }
.khg-cta__title { color: #fff; font-size: clamp(1.6rem, 3vw, 2.25rem); }
.khg-cta__desc { color: rgba(255,255,255,0.85); margin-bottom: 2rem; }
.khg-cta__actions { display: flex; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* -------------------- Footer -------------------- */
.khg-footer { background: var(--primary-dark); color: rgba(255,255,255,0.85); padding-top: 64px; }
.khg-footer__grid {
	display: grid;
	grid-template-columns: 2fr 1fr 1fr 1.2fr;
	gap: 32px;
	padding-bottom: 48px;
	border-bottom: 1px solid rgba(255,255,255,0.12);
}
.khg-logo--footer .khg-logo__text { color: #fff; }
.khg-footer__desc { color: rgba(255,255,255,0.7); font-size: 0.9rem; margin-top: 12px; max-width: 320px; }
.khg-footer__social { display: flex; gap: 10px; margin-top: 16px; }
.khg-footer__social a {
	width: 36px; height: 36px; display: inline-flex; align-items: center; justify-content: center;
	background: rgba(255,255,255,0.1); border-radius: 50%; font-size: 0.75rem; font-weight: 700;
}
.khg-footer__title { color: #fff; font-size: 0.95rem; margin-bottom: 16px; }
.khg-footer__col ul { display: flex; flex-direction: column; gap: 10px; }
.khg-footer__col a { color: rgba(255,255,255,0.75); font-size: 0.9rem; }
.khg-footer__col a:hover { color: #fff; }
.khg-footer__address { font-style: normal; font-size: 0.9rem; line-height: 1.9; color: rgba(255,255,255,0.75); }
.khg-footer__bottom-inner { padding-block: 22px; font-size: 0.82rem; color: rgba(255,255,255,0.6); text-align: center; }

/* -------------------- SDG Detail (single-sdgs.php) -------------------- */
.khg-sdg-hero { --khg-sdg-color: var(--primary); --khg-sdg-text: #fff; background: var(--khg-sdg-color); color: var(--khg-sdg-text); padding-block: 64px; }
.khg-sdg-hero__inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.khg-sdg-hero__number { font-family: var(--font-heading); font-weight: 800; font-size: clamp(3.5rem, 8vw, 6rem); line-height: 1; opacity: 0.9; }
.khg-sdg-hero__title { color: inherit; font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.2em; }
.khg-sdg-hero__name-en { color: inherit; font-weight: 600; margin-bottom: 0.75em; }
.khg-sdg-hero__desc { color: inherit; max-width: 620px; }
.khg-sdg-hero__desc p:last-child { margin-bottom: 0; }
.khg-sdg-stats { border-bottom: none; }
.khg-sdg-target-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.khg-sdg-target-card { background: var(--surface); border-radius: var(--radius-md); padding: 28px; border: 1px solid var(--border); }
.khg-sdg-target-card h2 { font-size: 1.1rem; margin-bottom: 0.5em; }
.khg-sdg-target-card p { color: var(--muted); margin: 0; }

.khg-sdg-badges { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 1rem; }
.khg-sdg-badge {
	--khg-sdg-color: var(--accent);
	display: inline-flex; align-items: center; justify-content: center;
	width: 34px; height: 34px; border-radius: 8px;
	background: var(--khg-sdg-color); color: var(--khg-sdg-text, #fff); font-weight: 800; font-size: 0.85rem;
}

/* -------------------- Single Program/Penelitian/Pengabdian/Inovasi -------------------- */
.khg-single-hero { padding-block: 48px 24px; background: var(--surface); border-bottom: 1px solid var(--border); }
.khg-single-hero__title { font-size: clamp(1.6rem, 3vw, 2.4rem); margin-bottom: 0.3em; }
.khg-single-hero__excerpt { color: var(--muted); max-width: 700px; margin: 0; }

.khg-single-layout { display: grid; grid-template-columns: 2.1fr 1fr; gap: 40px; padding-block: 48px; align-items: start; }
.khg-single-layout__main .khg-single__content { max-width: none; }
.khg-single__subtitle { font-size: 1.2rem; margin-top: 2rem; }

.khg-impact-cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 16px; margin-top: 1.5rem; }
.khg-impact-card { background: var(--accent-light); border-radius: var(--radius-md); padding: 20px; }
.khg-impact-card h3 { font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--primary); margin-bottom: 0.4em; }
.khg-impact-card p { color: var(--text); margin: 0; font-size: 0.92rem; }

.khg-inline-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; margin-top: 1rem; }
.khg-inline-gallery img { border-radius: var(--radius-sm); aspect-ratio: 4/3; object-fit: cover; }
.khg-video-embed { margin-top: 1rem; aspect-ratio: 16/9; }
.khg-video-embed iframe { width: 100%; height: 100%; border-radius: var(--radius-md); border: none; }

.khg-info-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 24px; position: sticky; top: 100px; }
.khg-info-card h3 { font-size: 1rem; margin-bottom: 1rem; }
.khg-info-list { margin: 0; }
.khg-info-list dt { font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); margin-top: 0.9rem; }
.khg-info-list dt:first-child { margin-top: 0; }
.khg-info-list dd { margin: 2px 0 0; color: var(--text); font-weight: 600; font-size: 0.92rem; }
.khg-info-list--tax { margin-top: 1.5rem; padding-top: 1.5rem; border-top: 1px solid var(--border); }
.khg-info-list--tax dd a { color: var(--primary); font-weight: 500; }

/* -------------------- Archive filter bar & pagination -------------------- */
.khg-filter-bar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 2.5rem; padding: 16px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); }
.khg-filter-bar__search input,
.khg-filter-bar__field select {
	padding: 0.6em 0.9em; border-radius: 999px; border: 1px solid var(--border); background: var(--background);
	font-size: 0.88rem; color: var(--text);
}
.khg-filter-bar__search input { min-width: 200px; }
.khg-filter-bar__reset { font-size: 0.85rem; color: var(--muted); text-decoration: underline; }

.khg-pagination { display: flex; gap: 6px; margin-top: 2.5rem; flex-wrap: wrap; }
.khg-pagination .page-numbers {
	display: inline-flex; align-items: center; justify-content: center;
	min-width: 38px; height: 38px; padding-inline: 10px; border-radius: 999px; border: 1px solid var(--border);
	color: var(--text); font-weight: 600; font-size: 0.9rem;
}
.khg-pagination .page-numbers.current { background: var(--primary); border-color: var(--primary); color: #fff; }
.khg-pagination a.page-numbers:hover { border-color: var(--primary); color: var(--primary); }
.khg-archive-results.is-loading { opacity: 0.5; pointer-events: none; transition: opacity 0.2s ease; }

/* -------------------- Impact Dashboard (page-impact.php, Phase 4) -------------------- */
.khg-impact-kpi { background: transparent; border: none; padding: 0; margin-bottom: 2.5rem; }
.khg-charts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; margin-bottom: 3rem; }
.khg-chart-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 20px; height: 320px; display: flex; flex-direction: column; }
.khg-chart-card--wide { grid-column: 1 / -1; height: 380px; }
.khg-chart-card h2 { font-size: 0.95rem; margin-bottom: 12px; color: var(--text); }
.khg-chart-card canvas { flex: 1; width: 100% !important; height: 100% !important; max-height: 100%; }

/* -------------------- Expert profile (single-kepakaran.php, Phase 5) -------------------- */
.khg-single-layout--profile { grid-template-columns: 320px 1fr; }
.khg-profile-card { text-align: center; }
.khg-profile-card__photo { width: 140px; height: 140px; border-radius: 50%; overflow: hidden; margin: 0 auto 16px; background: var(--accent-light); }
.khg-profile-card__photo img { width: 100%; height: 100%; object-fit: cover; }
.khg-profile-card__name { font-size: 1.2rem; margin-bottom: 2px; }
.khg-profile-card__role { color: var(--primary); font-weight: 600; font-size: 0.9rem; }
.khg-profile-card__nidn { color: var(--muted); font-size: 0.82rem; margin-top: 2px; }
.khg-profile-card .khg-sdg-badges { justify-content: center; margin-top: 14px; }
.khg-profile-card__links { margin: 16px 0 0; display: flex; flex-direction: column; gap: 8px; }
.khg-profile-card__links a { color: var(--primary); font-weight: 600; font-size: 0.88rem; }

/* -------------------- Mitra (Phase 5) -------------------- */
.khg-partner-grid { align-items: stretch; }
.khg-partner-card {
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md);
	padding: 24px; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 12px;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.khg-partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.khg-partner-card__logo { height: 64px; display: flex; align-items: center; justify-content: center; }
.khg-partner-card__logo img { max-height: 64px; width: auto; }
.khg-partner-card__name { font-size: 0.92rem; margin: 0; }
.khg-partner-hero__logo { height: 72px; margin-bottom: 1rem; }
.khg-partner-hero__logo img { max-height: 72px; }

/* -------------------- Dokumen (Phase 5) -------------------- */
.khg-doc-list { display: flex; flex-direction: column; gap: 12px; }
.khg-doc-item {
	display: flex; align-items: center; gap: 16px;
	background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px;
}
.khg-doc-item__icon {
	flex-shrink: 0; width: 46px; height: 46px; border-radius: 10px; background: var(--accent-light); color: var(--primary);
	display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 0.7rem;
}
.khg-doc-item__body { flex: 1; }
.khg-doc-item__title { font-size: 1rem; margin: 0 0 2px; }
.khg-doc-item__meta { color: var(--muted); font-size: 0.82rem; margin: 0; }

/* -------------------- Galeri masonry + lightbox (Phase 5) -------------------- */
.khg-masonry { column-count: 4; column-gap: 16px; }
.khg-masonry__item { display: block; break-inside: avoid; margin-bottom: 16px; border-radius: var(--radius-sm); overflow: hidden; }
.khg-masonry__item img { width: 100%; display: block; transition: transform 0.3s ease; }
.khg-masonry__item:hover img { transform: scale(1.04); }

.khg-lightbox {
	position: fixed; inset: 0; z-index: 999; background: rgba(6,20,14,0.92);
	display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 40px;
}
.khg-lightbox[hidden] { display: none; }
.khg-lightbox__image { max-width: min(90vw, 1000px); max-height: 80vh; border-radius: var(--radius-sm); }
.khg-lightbox__caption { color: #fff; font-size: 0.9rem; }
.khg-lightbox__close {
	position: absolute; top: 20px; right: 24px; background: none; border: none; color: #fff;
	font-size: 2rem; line-height: 1; cursor: pointer;
}

/* -------------------- Kontak (page-contact.php, Phase 6) -------------------- */
.khg-contact-layout { display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.khg-form-row { margin-bottom: 18px; display: flex; flex-direction: column; gap: 6px; }
.khg-form-row label { font-weight: 600; font-size: 0.88rem; color: var(--text); }
.khg-form-row input,
.khg-form-row textarea {
	padding: 0.75em 1em; border: 1px solid var(--border); border-radius: var(--radius-sm);
	font-family: inherit; font-size: 0.95rem; background: var(--surface);
}
.khg-form-row input:focus,
.khg-form-row textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.khg-form-notice { padding: 14px 18px; border-radius: var(--radius-sm); margin-bottom: 1.5rem; font-size: 0.92rem; }
.khg-form-notice--success { background: var(--accent-light); color: var(--primary-dark); }
.khg-form-notice--error { background: #fde8e8; color: #9b1c1c; }
.khg-contact-info { display: flex; flex-direction: column; gap: 20px; }
.khg-contact-map { border-radius: var(--radius-md); overflow: hidden; border: 1px solid var(--border); }
.khg-contact-map iframe { display: block; }

/* -------------------- Generic page / single / archive / 404 -------------------- */
.khg-page__title,
.khg-single__title,
.khg-archive__title { font-size: clamp(1.75rem, 3.5vw, 2.5rem); }
.khg-page__thumb,
.khg-single__thumb { border-radius: var(--radius-md); overflow: hidden; margin-bottom: 2rem; }
.khg-single__cat { color: var(--primary); font-weight: 700; font-size: 0.85rem; text-transform: uppercase; letter-spacing: 0.06em; }
.khg-single__meta { color: var(--muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.khg-single__content,
.khg-page__content { max-width: 760px; }
.khg-single__content p,
.khg-page__content p { color: var(--text); }
.khg-archive__header { margin-bottom: 2.5rem; }
.khg-archive__desc { color: var(--muted); margin-top: 0.5rem; }

.khg-404 { text-align: center; padding-block: 100px; }
.khg-404__code { font-size: clamp(4rem, 12vw, 7rem); color: var(--accent); margin-bottom: 0; }
.khg-404__desc { color: var(--muted); margin-bottom: 2rem; }
.khg-404 .search-form { margin-top: 2rem; display: flex; gap: 8px; justify-content: center; }
.khg-404 .search-field { padding: 0.75em 1em; border-radius: 999px; border: 1px solid var(--border); min-width: 260px; }
.khg-404 .search-submit { padding: 0.75em 1.5em; border-radius: 999px; border: none; background: var(--primary); color: #fff; font-weight: 700; }

/* -------------------- Aksesibilitas & Breadcrumb (Phase 7) -------------------- */
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.khg-main:focus { outline: none; }
.khg-btn:focus-visible { outline-color: var(--primary-dark); outline-offset: 3px; }
.khg-hero .khg-btn:focus-visible,
.khg-cta .khg-btn:focus-visible,
.khg-footer a:focus-visible { outline-color: #fff; }

.khg-breadcrumb { background: var(--surface); border-bottom: 1px solid var(--border); font-size: 0.85rem; }
.khg-breadcrumb__list { display: flex; flex-wrap: wrap; gap: 6px; padding-block: 12px; margin: 0; }
.khg-breadcrumb__item { display: inline-flex; align-items: center; color: var(--muted); }
.khg-breadcrumb__item + .khg-breadcrumb__item::before { content: '/'; margin-right: 6px; color: var(--border); }
.khg-breadcrumb__item a { color: var(--primary); font-weight: 600; }
.khg-breadcrumb__item a:hover { text-decoration: underline; }

/* -------------------- Animations (keyframes shared) -------------------- */
@keyframes khg-marquee {
	from { transform: translateX(0); }
	to { transform: translateX(-50%); }
}
@keyframes khg-scroll-cue {
	0% { opacity: 0; transform: translate(-50%, 0); }
	50% { opacity: 1; }
	100% { opacity: 0; transform: translate(-50%, 16px); }
}
