/*
Theme Name: Dharma Santosa
Theme URI: https://karangtarunamambal.example
Author: Karang Taruna Dharma Santosa
Author URI: https://karangtarunamambal.example
Description: Tema WordPress klasik untuk Karang Taruna "Dharma Santosa", Desa Mambal, Kecamatan Abiansemal, Kabupaten Badung, Bali. Sederhana, elegan, modern, institusional.
Version: 1.0.0
Requires at least: 6.0
Requires PHP: 7.4
License: GNU General Public License v2 or later
License URI: LICENSE
Text Domain: dharma-santosa
*/

/*
 * ACCENT COLOR CHOICE
 * ---------------------------------------------------------------
 * Rebranded from terracotta/cream to a navy + doff off-white
 * scheme per client request (2026). Navy (#012366) reads as
 * institutional/formal, pairs cleanly with a neutral doff
 * off-white background (#f5f5f2) for a "sederhana, elegan,
 * modern" feel without the warm terracotta undertone. Adjust
 * --accent below if the client requests otherwise.
 * ---------------------------------------------------------------
 */

/* ---------- Reset & base ---------- */
*,
*::before,
*::after {
	box-sizing: border-box;
}

:root {
	--accent: #012366;
	--accent-dark: #01143d;
	--accent-light: #c9d2e3;
	--ink: #101820;
	--ink-soft: #4a5568;
	--bg: #f5f5f2;
	--bg-alt: #ebebe8;
	--white: #ffffff;
	--border: #dcdce0;
	--radius: 6px;
	--container: 1160px;
	--font-body: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--font-head: Georgia, "Times New Roman", serif;
}

html {
	-webkit-text-size-adjust: 100%;
	scroll-behavior: smooth;
}

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

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

a {
	color: var(--accent);
	text-decoration: none;
}

a:hover,
a:focus {
	color: var(--accent-dark);
	text-decoration: underline;
}

h1, h2, h3, h4, h5, h6 {
	font-family: var(--font-head);
	line-height: 1.25;
	margin: 0 0 0.6em;
	color: var(--ink);
	font-weight: 700;
}

p {
	margin: 0 0 1.2em;
}

ul, ol {
	padding-left: 1.3em;
}

button, input, textarea, select {
	font-family: inherit;
	font-size: inherit;
}

.screen-reader-text {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(1px, 1px, 1px, 1px);
	white-space: nowrap;
}

/* ---------- Layout helpers ---------- */
.container {
	width: 100%;
	max-width: var(--container);
	margin-left: auto;
	margin-right: auto;
	padding-left: 24px;
	padding-right: 24px;
}

.section {
	padding: 64px 0;
}

.section-alt {
	background: var(--bg-alt);
}

.section-title {
	font-size: clamp(1.6rem, 3vw, 2.4rem);
	margin-bottom: 0.4em;
}

.section-eyebrow {
	display: inline-block;
	text-transform: uppercase;
	letter-spacing: 0.12em;
	font-size: 0.78rem;
	color: var(--accent-dark);
	font-weight: 700;
	margin-bottom: 0.6em;
}

.section-lede {
	max-width: 720px;
	color: var(--ink-soft);
	font-size: 1.08rem;
}

.section-lede--wide {
	max-width: none;
}

.btn {
	display: inline-block;
	padding: 0.85em 1.8em;
	border-radius: var(--radius);
	background: var(--accent);
	color: var(--white);
	font-weight: 700;
	letter-spacing: 0.02em;
	border: 2px solid var(--accent);
	transition: background 0.2s ease, color 0.2s ease, transform 0.15s ease;
}

.btn:hover, .btn:focus {
	background: var(--accent-dark);
	border-color: var(--accent-dark);
	color: var(--white);
	text-decoration: none;
	transform: translateY(-1px);
}

.btn-outline {
	background: transparent;
	color: var(--accent);
}

.btn-outline:hover, .btn-outline:focus {
	background: var(--accent);
	color: var(--white);
}

/* ---------- Header ---------- */
.site-header {
	background: var(--white);
	border-bottom: 1px solid var(--border);
	position: sticky;
	top: 0;
	z-index: 100;
}

/* Offset sticky header by the WP admin bar height when logged in. */
body.admin-bar .site-header {
	top: var(--wp-admin--admin-bar--height, 32px);
}

@media screen and (max-width: 782px) {
	body.admin-bar .site-header {
		top: var(--wp-admin--admin-bar--height, 46px);
	}
}

/* Below 600px the admin bar is not fixed, it scrolls away with the page. */
@media screen and (max-width: 600px) {
	body.admin-bar .site-header {
		top: 0;
	}
}

.site-header-inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	padding: 16px 0;
	gap: 16px;
}

.site-branding {
	display: flex;
	flex-direction: column;
	line-height: 1.2;
}

.site-logo {
	line-height: 0;
}

.site-logo img {
	max-height: 64px;
	width: auto;
	display: block;
}

.site-title {
	margin: 0;
	font-size: 1.25rem;
	font-weight: 700;
}

.site-title a {
	color: var(--ink);
}

.site-title a:hover {
	color: var(--accent);
	text-decoration: none;
}

.site-description {
	font-size: 0.78rem;
	color: var(--ink-soft);
	font-family: var(--font-body);
	margin-top: 2px;
}

.menu-toggle {
	display: none;
	background: none;
	border: 2px solid var(--ink);
	border-radius: var(--radius);
	padding: 8px 12px;
	cursor: pointer;
}

.primary-menu {
	list-style: none;
	display: flex;
	gap: 28px;
	margin: 0;
	padding: 0;
}

.primary-menu li a {
	color: var(--ink);
	font-weight: 600;
	font-size: 0.95rem;
	letter-spacing: 0.01em;
	padding: 6px 0;
	border-bottom: 2px solid transparent;
}

.primary-menu li a:hover,
.primary-menu li.current-menu-item a,
.primary-menu li.current_page_item a {
	color: var(--accent);
	border-bottom-color: var(--accent);
	text-decoration: none;
}

/* ---------- Hero ---------- */
.hero {
	background: linear-gradient(135deg, var(--bg-alt) 0%, var(--bg) 60%);
	padding: 90px 0 70px;
	border-bottom: 1px solid var(--border);
}

.hero-eyebrow {
	color: var(--accent-dark);
	text-transform: uppercase;
	letter-spacing: 0.14em;
	font-weight: 700;
	font-size: 0.8rem;
	margin-bottom: 0.8em;
}

.hero-title {
	font-size: clamp(2rem, 5vw, 3.2rem);
	margin-bottom: 0.3em;
}

.hero-subtitle {
	font-size: 1.05rem;
	color: var(--ink-soft);
	margin-bottom: 0.3em;
}

.hero-tagline {
	font-size: 1.3rem;
	color: var(--accent-dark);
	font-family: var(--font-head);
	font-style: italic;
	margin-bottom: 1em;
}

.hero-desc {
	color: var(--ink-soft);
	font-size: 1.05rem;
	margin-bottom: 1.6em;
}

/* ---------- Tentang Kami + Visi merged 2-column row (page-tentang-kami.php only) ---------- */
.about-visi-cols {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 48px;
}

.visi-col .section-lede {
	max-width: none;
}

.hero-cta {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

/* CTA buttons need to stay legible over a busy photo background. */
.hero--has-slider .hero-cta .btn {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.hero--has-slider .hero-cta .btn-outline {
	background: rgba(255, 255, 255, 0.92);
	border-color: rgba(255, 255, 255, 0.92);
	color: var(--accent-dark);
	backdrop-filter: blur(6px);
	-webkit-backdrop-filter: blur(6px);
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.28);
}

.hero--has-slider .hero-cta .btn-outline:hover,
.hero--has-slider .hero-cta .btn-outline:focus {
	background: var(--accent);
	border-color: var(--accent);
	color: var(--white);
}

/* ---------- Hero slider (background images, optional) ---------- */
.hero--has-slider {
	position: relative;
	overflow: hidden;
	min-height: clamp(560px, 75vh, 820px);
	display: flex;
	align-items: center;
}

.hero-slider {
	position: absolute;
	inset: 0;
	z-index: 0;
}

.hero-slide {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	opacity: 0;
	transition: opacity 1.2s ease;
}

.hero-slide.is-active {
	opacity: 1;
}

.hero-overlay {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.48);
	z-index: 1;
}

.hero--has-slider .hero-inner {
	position: relative;
	z-index: 2;
}

.hero--has-slider .hero-eyebrow,
.hero--has-slider .hero-subtitle {
	color: #fff;
}

.hero--has-slider .hero-title {
	color: #fff;
}

.hero--has-slider .hero-tagline {
	color: #fff;
}

.hero--has-slider .hero-desc {
	color: rgba(255, 255, 255, 0.88);
}

/* ---------- Stats (minimal, no-box row) ---------- */
.stats-grid {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-start;
	justify-content: flex-start;
	row-gap: 14px;
	margin-top: 22px;
}

.stat-item {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	align-items: flex-start;
	justify-content: center;
	gap: 2px;
	text-align: left;
	padding: 0 20px;
	border-left: 1px solid rgba(16, 24, 32, 0.14);
}

.stat-item:first-child {
	padding-left: 0;
	border-left: none;
}

.stat-value {
	font-family: var(--font-head);
	font-size: clamp(1.15rem, 2vw, 1.5rem);
	color: var(--accent);
	font-weight: 700;
	line-height: 1.1;
}

.stat-label {
	font-size: 0.62rem;
	color: var(--ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	line-height: 1.25;
}

.stat-label-line {
	display: block;
	white-space: nowrap;
}

/* Photo hero: divider goes light, text needs a bit of shadow help since
   items no longer sit on an opaque card — the dark .hero-overlay carries
   most of the legibility burden, this is just a backstop on busy patches. */
.hero--has-slider .stat-item {
	border-left-color: rgba(255, 255, 255, 0.35);
}

.hero--has-slider .stat-value {
	color: rgba(255, 255, 255, 0.95);
	text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.hero--has-slider .stat-label {
	color: rgba(255, 255, 255, 0.85);
	text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

@media (max-width: 480px) {
	.stats-grid {
		column-gap: 0;
	}

	.stat-item {
		flex: 0 0 50%;
		padding: 10px 16px 10px 0;
		border-left: none;
	}

	.stat-item:nth-child(2n) {
		padding-left: 16px;
		border-left: 1px solid rgba(16, 24, 32, 0.14);
	}

	.hero--has-slider .stat-item:nth-child(2n) {
		border-left-color: rgba(255, 255, 255, 0.35);
	}

	.stat-item:nth-child(1),
	.stat-item:nth-child(2) {
		padding-top: 0;
	}
}

/* ---------- Rekam Jejak: photo + timeline columns ---------- */
.rekam-jejak-cols {
	display: grid;
	grid-template-columns: 4fr 6fr;
	gap: 40px;
	margin-top: 32px;
}

.rekam-jejak-photo-col {
	height: 100%;
}

.rekam-jejak-photo {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	border-radius: var(--radius);
}

.rekam-jejak-photo-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	height: 100%;
	background: var(--bg-alt);
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	color: var(--ink-soft);
	text-align: center;
	padding: 24px;
}

.rekam-jejak-photo-placeholder-icon {
	opacity: 0.6;
}

.rekam-jejak-photo-placeholder span {
	font-size: 0.9rem;
}

/* ---------- Struktur Organisasi: single group photo + pengurus list ---------- */
.struktur-cols {
	display: grid;
	grid-template-columns: 4fr 6fr;
	gap: 40px;
	margin-top: 30px;
	align-items: stretch;
}

.struktur-photo-col {
	height: 100%;
}

.struktur-photo-col .rekam-jejak-photo,
.struktur-photo-col .rekam-jejak-photo-placeholder {
	min-height: 320px;
}

/* ---------- Timeline accordion ---------- */
.timeline-accordion {
	margin-top: 0;
	border-top: 1px solid var(--border);
}

.timeline-row {
	border-bottom: 1px solid var(--border);
}

.timeline-summary {
	display: flex;
	align-items: baseline;
	gap: 14px;
	list-style: none;
	cursor: pointer;
	padding: 16px 4px;
	font-family: var(--font-head);
}

.timeline-summary::-webkit-details-marker {
	display: none;
}

.timeline-summary::before {
	content: "\25B8";
	color: var(--accent);
	font-size: 0.9rem;
	flex-shrink: 0;
	transition: transform 0.15s ease;
}

.timeline-row[open] > .timeline-summary::before {
	transform: rotate(90deg);
}

.timeline-year {
	color: var(--accent);
	font-weight: 700;
	font-size: 1.15rem;
	flex-shrink: 0;
}

.timeline-title {
	color: var(--ink);
	font-size: 1.05rem;
}

.timeline-body {
	padding: 0 4px 20px 26px;
}

.timeline-desc {
	color: var(--ink-soft);
	margin: 0 0 12px;
}

.timeline-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	font-size: 0.9rem;
}

.timeline-links-label {
	color: var(--ink-soft);
	font-weight: 600;
}

.timeline-link {
	color: var(--accent);
	text-decoration: none;
	border-bottom: 1px solid var(--accent-light);
}

.timeline-link:hover {
	border-bottom-color: var(--accent);
}

/* ---------- Cards / grids ---------- */
.grid {
	display: grid;
	gap: 28px;
}

.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

/* Program Unggulan cards vary a lot in height (short tagline vs. long
   feature list), so let each card size to its own content instead of
   the grid default (stretch) forcing equal-height columns. Scoped to
   this grid only — .grid-3 is also used elsewhere with stretch assumed. */
.program-unggulan-grid {
	align-items: start;
}

.kegiatan-list {
	display: flex;
	flex-direction: column;
	gap: 20px;
}

.kegiatan-list .card-body {
	flex: 1;
}

.card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.card:hover {
	box-shadow: 0 10px 30px rgba(16, 24, 32, 0.08);
	transform: translateY(-2px);
}

.card-thumb {
	aspect-ratio: 4 / 3;
	background: var(--accent-light);
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent-dark);
	font-weight: 700;
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	overflow: hidden;
}

.card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.card-meta {
	font-size: 0.8rem;
	color: var(--ink-soft);
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 0.5em;
}

.card-title {
	font-size: 1.1rem;
	margin-bottom: 0.4em;
}

.card-title a {
	color: var(--ink);
}

.card-title a:hover {
	color: var(--accent);
	text-decoration: none;
}

.card-excerpt {
	color: var(--ink-soft);
	font-size: 0.95rem;
	flex: 1;
}

/* Full post_content (not a trimmed excerpt) may include headings/lists —
   give it its own rhythm so it doesn't look like a wall of run-on text. */
.card-excerpt.is-full-content > * {
	margin-bottom: 0.75em;
}

.card-excerpt.is-full-content > *:last-child {
	margin-bottom: 0;
}

.card-excerpt.is-full-content h2,
.card-excerpt.is-full-content h3,
.card-excerpt.is-full-content h4 {
	color: var(--ink);
	font-size: 1rem;
	margin-top: 0.5em;
}

.card-excerpt.is-full-content ul,
.card-excerpt.is-full-content ol {
	padding-left: 1.2em;
}

.card-excerpt.is-full-content li {
	margin-bottom: 0.4em;
}

.card-excerpt.is-full-content li:last-child {
	margin-bottom: 0;
}

/* Responsive 16:9 video embed (YouTube). */
.video-embed {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	background: #000;
	border-radius: calc(var(--radius) - 4px);
	overflow: hidden;
	margin-bottom: 16px;
}

.video-embed iframe {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	border: 0;
}

.tag {
	display: inline-block;
	background: var(--bg-alt);
	color: var(--accent-dark);
	border-radius: 100px;
	padding: 4px 12px;
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	margin: 2px 4px 2px 0;
}

.badge-status {
	display: inline-block;
	background: var(--accent);
	color: var(--white);
	border-radius: 100px;
	padding: 4px 14px;
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
}

.badge-status.is-coming-soon {
	background: var(--ink-soft);
}

/* ---------- Filters (Kegiatan archive) ---------- */
.filter-bar {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 20px;
	margin-bottom: 36px;
}

.filter-bar form {
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	align-items: flex-end;
}

.filter-group {
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.filter-group label {
	font-size: 0.78rem;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--ink-soft);
	font-weight: 700;
}

.filter-group select {
	padding: 8px 12px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	background: var(--white);
	min-width: 180px;
}

.filter-actions {
	display: flex;
	gap: 10px;
}

/* ---------- Single kegiatan ---------- */
.kegiatan-hero-thumb {
	aspect-ratio: 16 / 7;
	background: var(--accent-light);
	border-radius: var(--radius);
	overflow: hidden;
	margin-bottom: 32px;
	display: flex;
	align-items: center;
	justify-content: center;
	color: var(--accent-dark);
	font-weight: 700;
}

.kegiatan-hero-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.kegiatan-meta-table {
	width: 100%;
	border-collapse: collapse;
	margin: 24px 0;
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
}

.kegiatan-meta-table th,
.kegiatan-meta-table td {
	text-align: left;
	padding: 12px 16px;
	border-bottom: 1px solid var(--border);
	vertical-align: top;
}

.kegiatan-meta-table th {
	width: 200px;
	color: var(--ink-soft);
	font-weight: 700;
	background: var(--bg-alt);
}

.kegiatan-meta-table tr:last-child th,
.kegiatan-meta-table tr:last-child td {
	border-bottom: none;
}

.doc-links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	margin-top: 20px;
}

/* ---------- Org chart / people ---------- */
.pengurus-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
}

/* Inside .struktur-cols the pengurus list sits in a narrower column
   (right side of the single group photo), so 2 columns reads cleaner
   than the default 3. */
.struktur-cols .pengurus-grid {
	grid-template-columns: repeat(2, 1fr);
	align-content: start;
}

.pengurus-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 18px 16px;
	text-align: center;
}

.pengurus-nama {
	font-weight: 700;
	margin-bottom: 4px;
}

.pengurus-jabatan {
	color: var(--accent-dark);
	font-size: 0.9rem;
	text-transform: uppercase;
	letter-spacing: 0.03em;
}

.seksi-grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 20px;
	margin-top: 30px;
}

.seksi-item {
	background: var(--white);
	border: 1px solid var(--border);
	border-left: 4px solid var(--accent);
	border-radius: var(--radius);
	padding: 20px 24px;
}

.seksi-item h3 {
	font-size: 1.05rem;
	margin-bottom: 0.3em;
}

.seksi-item p {
	color: var(--ink-soft);
	margin: 0;
	font-size: 0.95rem;
}

/* ---------- Fokus / dampak lists ---------- */
.icon-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 20px;
	margin-top: 30px;
}

.icon-item {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 24px;
}

.icon-item h3 {
	font-size: 1.05rem;
	color: var(--accent-dark);
	margin-bottom: 0.3em;
}

.icon-item p {
	color: var(--ink-soft);
	margin: 0;
	font-size: 0.92rem;
}

/* ---------- Kemitraan ---------- */
.kemitraan-tagline {
	font-family: var(--font-head);
	font-style: italic;
	font-size: 1.3rem;
	color: var(--accent-dark);
	margin: 20px 0 40px;
}

.kemitraan-category {
	margin-bottom: 36px;
}

.kemitraan-category h3 {
	color: var(--accent);
	border-bottom: 2px solid var(--accent-light);
	padding-bottom: 8px;
	margin-bottom: 12px;
}

/* ---------- Contact ---------- */
.kontak-grid {
	display: grid;
	grid-template-columns: 1.1fr 0.9fr;
	gap: 40px;
	margin-top: 30px;
	align-items: start;
}

.kontak-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	padding: 30px;
}

.kontak-item {
	display: flex;
	gap: 14px;
	margin-bottom: 20px;
}

.kontak-item:last-child {
	margin-bottom: 0;
}

.kontak-label {
	font-weight: 700;
	color: var(--accent-dark);
	display: block;
	font-size: 0.8rem;
	text-transform: uppercase;
	letter-spacing: 0.04em;
	margin-bottom: 4px;
}

.social-links {
	display: flex;
	gap: 12px;
	margin-top: 10px;
}

.social-links a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: var(--bg-alt);
	color: var(--accent-dark);
	border: 1px solid var(--border);
}

.social-links a svg {
	width: 18px;
	height: 18px;
}

.social-links a:hover {
	background: var(--accent);
	color: var(--white);
	text-decoration: none;
}

/* ---------- Media section (Berita/Galeri/Video) ---------- */
.media-block {
	margin-bottom: 30px;
}

.media-block h3 {
	color: var(--accent);
}

.media-list {
	list-style: none;
	padding: 0;
	margin: 0;
}

.media-list li {
	padding: 10px 0;
	border-bottom: 1px solid var(--border);
}

.media-list li:last-child {
	border-bottom: none;
}

/* ---------- Footer ---------- */
.site-footer {
	background: var(--ink);
	color: #ccd3dc;
	padding: 56px 0 28px;
	margin-top: 60px;
}

.footer-inner {
	display: grid;
	grid-template-columns: 1.4fr 1fr 0.8fr;
	gap: 40px;
	margin-bottom: 36px;
}

.footer-logo img {
	max-height: 44px;
	width: auto;
	margin-bottom: 12px;
}

.footer-title {
	color: var(--white);
	font-size: 1.1rem;
	margin-bottom: 10px;
}

.footer-desc {
	color: #a3aebb;
	font-size: 0.92rem;
}

.footer-menu {
	list-style: none;
	margin: 0;
	padding: 0;
}

.footer-menu li {
	margin-bottom: 10px;
}

.footer-menu a {
	color: #ccd3dc;
}

.footer-menu a:hover {
	color: var(--accent-light);
	text-decoration: none;
}

.footer-email {
	color: var(--white);
	font-weight: 600;
}

.footer-email:hover {
	color: var(--accent-light);
	text-decoration: underline;
}

.footer-social {
	display: flex;
	gap: 12px;
	margin-top: 16px;
}

.footer-social a {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.08);
	color: var(--white);
}

.footer-social a svg {
	width: 17px;
	height: 17px;
}

.footer-social a:hover {
	background: var(--accent);
	text-decoration: none;
}

.footer-bottom {
	border-top: 1px solid rgba(255, 255, 255, 0.12);
	padding-top: 20px;
	font-size: 0.85rem;
	color: #8b93a0;
	text-align: center;
}

/* ---------- Misc / empty states ---------- */
.empty-state {
	background: var(--white);
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	padding: 40px;
	text-align: center;
	color: var(--ink-soft);
}

.pagination-nav {
	display: flex;
	justify-content: center;
	gap: 10px;
	margin-top: 40px;
}

.pagination-nav a,
.pagination-nav span {
	padding: 8px 14px;
	border: 1px solid var(--border);
	border-radius: var(--radius);
	color: var(--ink);
}

.pagination-nav .current {
	background: var(--accent);
	color: var(--white);
	border-color: var(--accent);
}

.error-404 {
	text-align: center;
	padding: 100px 0;
}

.error-404 h1 {
	font-size: 6rem;
	color: var(--accent-light);
	margin-bottom: 0;
}

/* ---------- Liputan Media (press coverage cards) ---------- */
.media-grid {
	display: grid;
	grid-template-columns: repeat(4, 1fr);
	gap: 24px;
	margin-top: 30px;
}

.media-card {
	background: var(--white);
	border: 1px solid var(--border);
	border-radius: var(--radius);
	overflow: hidden;
	display: flex;
	flex-direction: column;
}

.media-card-thumb-link {
	display: block;
	cursor: pointer;
}

.media-card-thumb {
	width: 100%;
	aspect-ratio: 16 / 9;
	object-fit: cover;
	border-radius: 0;
}

.media-card-thumb-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	background: var(--bg-alt);
	border-bottom: 1px dashed var(--border);
	color: var(--ink-soft);
	text-align: center;
	padding: 16px;
}

.media-card-thumb-placeholder span {
	font-size: 0.78rem;
}

.media-card-body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 8px;
	flex: 1;
}

.media-card-source {
	display: inline-block;
	align-self: flex-start;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	font-size: 0.68rem;
	font-weight: 700;
	color: var(--accent-dark);
	background: var(--accent-light);
	padding: 3px 10px;
	border-radius: 999px;
}

.media-card-title {
	font-size: 1rem;
	line-height: 1.4;
	margin: 0;
}

.media-card-title a {
	color: var(--ink);
}

.media-card-title a:hover,
.media-card-title a:focus {
	color: var(--accent);
	text-decoration: underline;
}

/* ---------- Galeri (native Gallery block content) ---------- */
.galeri-content {
	margin-top: 30px;
}

.galeri-content .wp-block-gallery {
	margin: 0;
}

/* Self-contained grid for the Gallery block — targets flat <img> children
   directly (this site's stored markup lacks has-nested-images figure
   wrappers and lacks blocks-gallery-item, so WP core CSS never matches),
   plus figure.wp-block-image defensively for the proper nested format. */
.wp-block-gallery {
	display: grid !important;
	grid-template-columns: repeat(4, 1fr) !important;
	gap: 12px !important;
	list-style: none;
	margin: 0;
	padding: 0;
}

.wp-block-gallery > img,
.wp-block-gallery figure.wp-block-image {
	width: 100%;
	height: 100%;
	aspect-ratio: 4 / 3;
	object-fit: cover;
	margin: 0 !important;
	border-radius: var(--radius);
	display: block;
}

.wp-block-gallery figure.wp-block-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.galeri-teaser-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 16px;
	margin-top: 30px;
}

.galeri-teaser-item {
	margin: 0;
	line-height: 0;
}

.galeri-teaser-img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	border-radius: var(--radius);
	cursor: pointer;
}

.wp-block-gallery > img {
	cursor: pointer;
}

/* ---------- Galeri lightbox ---------- */
.ds-lightbox-overlay {
	position: fixed;
	inset: 0;
	background: rgba( 0, 0, 0, 0.9 );
	z-index: 9999;
	display: flex;
	align-items: center;
	justify-content: center;
}

.ds-lightbox-overlay[hidden] {
	display: none;
}

.ds-lightbox-img {
	max-width: 90vw;
	max-height: 90vh;
	object-fit: contain;
	border-radius: var(--radius);
}

.ds-lightbox-close,
.ds-lightbox-nav {
	position: absolute;
	background: transparent;
	border: none;
	color: var(--white);
	cursor: pointer;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: opacity 0.2s ease;
	opacity: 0.85;
}

.ds-lightbox-close:hover,
.ds-lightbox-close:focus,
.ds-lightbox-nav:hover,
.ds-lightbox-nav:focus {
	opacity: 1;
}

.ds-lightbox-close {
	top: 16px;
	right: 16px;
	width: 48px;
	height: 48px;
	font-size: 32px;
}

.ds-lightbox-nav {
	top: 50%;
	transform: translateY( -50% );
	width: 56px;
	height: 56px;
	font-size: 40px;
}

.ds-lightbox-prev {
	left: 8px;
}

.ds-lightbox-next {
	right: 8px;
}

@media (max-width: 600px) {
	.ds-lightbox-nav {
		width: 44px;
		height: 44px;
		font-size: 30px;
	}

	.ds-lightbox-close {
		width: 40px;
		height: 40px;
		font-size: 26px;
	}
}

.galeri-placeholder {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	width: 100%;
	min-height: 220px;
	margin-top: 30px;
	background: var(--white);
	border: 1px dashed var(--border);
	border-radius: var(--radius);
	color: var(--ink-soft);
	text-align: center;
	padding: 40px 24px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
	.grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
	.pengurus-grid { grid-template-columns: repeat(2, 1fr); }
	.icon-grid { grid-template-columns: repeat(2, 1fr); }
	.media-grid { grid-template-columns: repeat(2, 1fr); }
	.footer-inner { grid-template-columns: 1fr 1fr; }
	.kontak-grid { grid-template-columns: 1fr; }

	.wp-block-gallery,
	.galeri-teaser-grid {
		grid-template-columns: repeat(2, 1fr) !important;
	}

	.rekam-jejak-cols {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.rekam-jejak-photo-col {
		height: auto;
	}

	.rekam-jejak-photo,
	.rekam-jejak-photo-placeholder {
		height: auto;
		aspect-ratio: 16 / 9;
		max-width: 480px;
		margin: 0 auto;
	}

	.about-visi-cols {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.struktur-cols {
		grid-template-columns: 1fr;
		gap: 24px;
	}

	.struktur-photo-col {
		height: auto;
	}

	.struktur-photo-col .rekam-jejak-photo,
	.struktur-photo-col .rekam-jejak-photo-placeholder {
		height: auto;
		min-height: 0;
		aspect-ratio: 16 / 9;
		max-width: 480px;
		margin: 0 auto;
	}
}

@media (max-width: 680px) {
	.menu-toggle { display: inline-block; }

	.primary-menu {
		display: none;
		position: absolute;
		top: 100%;
		left: 0;
		right: 0;
		background: var(--white);
		flex-direction: column;
		gap: 0;
		border-bottom: 1px solid var(--border);
		box-shadow: 0 10px 20px rgba(0, 0, 0, 0.06);
	}

	.primary-menu.is-open {
		display: flex;
	}

	.primary-menu li {
		border-bottom: 1px solid var(--border);
	}

	.primary-menu li a {
		display: block;
		padding: 14px 24px;
	}

	.site-header-inner {
		position: relative;
	}

	.grid-2, .grid-3, .grid-4,
	.pengurus-grid, .seksi-grid, .icon-grid,
	.media-grid {
		grid-template-columns: 1fr;
	}

	.footer-inner {
		grid-template-columns: 1fr;
	}

	.hero { padding: 60px 0 44px; }
	.section { padding: 44px 0; }
	.kegiatan-meta-table th { width: 130px; }

	.filter-bar form {
		flex-direction: column;
		align-items: stretch;
	}

	.filter-group select {
		width: 100%;
		min-width: 0;
	}

	.filter-actions {
		width: 100%;
	}

	.filter-actions .btn,
	.filter-actions .btn-outline {
		flex: 1;
	}
}

/* ---------- Scroll reveal (entrance animation) ---------- */
.ds-reveal {
	opacity: 0;
	transform: translateY(16px);
	transition: opacity 0.5s ease, transform 0.5s ease;
}

.ds-reveal-visible {
	opacity: 1;
	transform: none;
}

@media (prefers-reduced-motion: reduce) {
	.ds-reveal {
		opacity: 1;
		transform: none;
		transition: none;
	}
}
