/**
 * Gereja Gedangan — gaya utama.
 *
 * 1.  Dasar & variabel
 * 2.  Tipografi
 * 3.  Tata letak
 * 4.  Komponen umum
 * 5.  Bilah atas & header
 * 6.  Navigasi
 * 7.  Slider utama
 * 8.  Bagian beranda
 * 9.  Halaman dalam
 * 10. Widget & sidebar
 * 11. Komentar & navigasi
 * 12. Footer
 * 13. Responsif
 */

/* ============================================ 1. Dasar & variabel */

:root {
	--gg-primary: #7B1E2B;
	--gg-primary-dark: #651822;
	--gg-primary-soft: rgba(123, 30, 43, .08);
	--gg-primary-line: rgba(123, 30, 43, .22);
	--gg-accent: #C2A24C;
	--gg-accent-soft: rgba(194, 162, 76, .16);
	--gg-ink: #241F1C;
	--gg-muted: #6C6259;
	--gg-bg: #FFFFFF;
	--gg-soft: #FAF6F0;
	--gg-line: #E8E0D5;
	--gg-radius: 14px;
	--gg-radius-sm: 7px;
	--gg-font-heading: "Cormorant Garamond", Georgia, serif;
	--gg-font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
	--gg-shadow: 0 1px 2px rgba(36, 31, 28, .04), 0 8px 24px rgba(36, 31, 28, .06);
	--gg-shadow-lg: 0 24px 60px rgba(36, 31, 28, .14);
	--gg-space: clamp(3.5rem, 7vw, 6rem);
}

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

html { scroll-behavior: smooth; }

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

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

a { color: var(--gg-primary); text-decoration: none; transition: color .18s ease; }
a:hover { color: var(--gg-primary-dark); }

:focus-visible {
	outline: 2px solid var(--gg-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);
	white-space: nowrap; border: 0;
}

.skip-link:focus {
	position: fixed !important;
	top: 12px; left: 12px;
	z-index: 999;
	width: auto; height: auto;
	clip: auto;
	padding: .75rem 1.25rem;
	background: var(--gg-primary);
	color: #fff;
	border-radius: var(--gg-radius-sm);
}

/* ==================================================== 2. Tipografi */

h1, h2, h3, h4, h5, h6 {
	font-family: var(--gg-font-heading);
	font-weight: 600;
	line-height: 1.2;
	color: var(--gg-ink);
	margin: 0 0 .6em;
	letter-spacing: -.01em;
}

h1 { font-size: clamp(2.1rem, 4.4vw, 3.2rem); }
h2 { font-size: clamp(1.75rem, 3.4vw, 2.5rem); }
h3 { font-size: clamp(1.25rem, 2.2vw, 1.6rem); }
h4 { font-size: 1.15rem; }

p { margin: 0 0 1.2em; }
p:last-child { margin-bottom: 0; }

blockquote {
	margin: 2rem 0;
	padding: 1.25rem 1.75rem;
	border-left: 3px solid var(--gg-accent);
	background: var(--gg-soft);
	font-family: var(--gg-font-heading);
	font-size: 1.3rem;
	font-style: italic;
	border-radius: 0 var(--gg-radius) var(--gg-radius) 0;
}

code, pre { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .9em; }
pre { padding: 1rem 1.25rem; background: var(--gg-soft); border-radius: var(--gg-radius-sm); overflow-x: auto; }

.eyebrow {
	display: inline-block;
	font-family: var(--gg-font-body);
	font-size: .78rem;
	font-weight: 600;
	letter-spacing: .14em;
	text-transform: uppercase;
	color: var(--gg-primary);
	margin-bottom: .75rem;
}

.gg-icon { width: 1.1em; height: 1.1em; flex: 0 0 auto; }

/* ================================================= 3. Tata letak */

.container {
	width: min(1180px, 100% - 2.5rem);
	margin-inline: auto;
}

.container--narrow { width: min(780px, 100% - 2.5rem); }

.section { padding-block: var(--gg-space); }
.section--stats { padding-block: clamp(2rem, 4vw, 3rem); }

.section-header { margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-header--center { text-align: center; max-width: 42rem; margin-inline: auto; }

.section-title { position: relative; margin-bottom: .5rem; }

.section-header--center .section-title::after {
	content: "";
	display: block;
	width: 64px; height: 2px;
	margin: 1rem auto 0;
	background: linear-gradient(90deg, transparent, var(--gg-accent), transparent);
}

.section-subtitle { color: var(--gg-muted); margin: 0; }

.section-more { margin-top: 2.5rem; text-align: center; }

.layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 320px;
	gap: clamp(2rem, 4vw, 3.5rem);
	padding-block: var(--gg-space);
	align-items: start;
}

.layout--full, .no-sidebar .layout { grid-template-columns: minmax(0, 1fr); }

.grid { display: grid; gap: clamp(1.25rem, 2.5vw, 2rem); }
.grid--2 { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.grid--3 { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }

/* =============================================== 4. Komponen umum */

.btn {
	display: inline-flex;
	align-items: center;
	gap: .5rem;
	padding: .8rem 1.6rem;
	border: 1px solid transparent;
	border-radius: 999px;
	font-family: var(--gg-font-body);
	font-size: .93rem;
	font-weight: 600;
	line-height: 1.2;
	cursor: pointer;
	transition: transform .18s ease, background-color .18s ease, color .18s ease, border-color .18s ease, box-shadow .18s ease;
}

.btn:hover { transform: translateY(-2px); }

.btn--primary { background: var(--gg-primary); color: #fff; }
.btn--primary:hover { background: var(--gg-primary-dark); color: #fff; box-shadow: 0 10px 24px var(--gg-primary-soft); }

.btn--accent { background: var(--gg-accent); color: #241F1C; }
.btn--accent:hover { color: #241F1C; box-shadow: 0 10px 24px var(--gg-accent-soft); }

.btn--outline { border-color: var(--gg-primary-line); color: var(--gg-primary); background: transparent; }
.btn--outline:hover { background: var(--gg-primary); color: #fff; border-color: var(--gg-primary); }

.badge {
	display: inline-block;
	padding: .25rem .7rem;
	margin-bottom: .5rem;
	background: var(--gg-primary-soft);
	color: var(--gg-primary);
	border-radius: 999px;
	font-size: .74rem;
	font-weight: 600;
	letter-spacing: .04em;
	text-transform: uppercase;
}

.link-more {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	font-size: .9rem;
	font-weight: 600;
}

.link-more .gg-icon { transition: transform .18s ease; }
.link-more:hover .gg-icon { transform: translateX(4px); }

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

.card:hover { transform: translateY(-4px); box-shadow: var(--gg-shadow); border-color: var(--gg-primary-line); }

.entry-thumb { display: block; overflow: hidden; background: var(--gg-soft); }
.entry-thumb img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; transition: transform .5s ease; }
.card:hover .entry-thumb img { transform: scale(1.05); }

.card__body { padding: 1.4rem; display: flex; flex-direction: column; gap: .6rem; flex: 1; }
.card__title { margin: 0; font-size: 1.3rem; }
.card__title a { color: inherit; }
.card__title a:hover { color: var(--gg-primary); }
.card__excerpt { color: var(--gg-muted); font-size: .94rem; margin: 0; flex: 1; }

.entry-meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: .45rem;
	font-size: .82rem;
	color: var(--gg-muted);
}

.entry-meta a { color: var(--gg-muted); }
.entry-meta a:hover { color: var(--gg-primary); }
.entry-sep { opacity: .5; }

.notice {
	padding: .9rem 1.2rem;
	border-radius: var(--gg-radius-sm);
	background: var(--gg-accent-soft);
	font-size: .9rem;
	margin-bottom: 1.5rem;
}

/* =========================================== 5. Bilah atas & header */

.topbar {
	background: var(--gg-primary-dark);
	color: rgba(255, 255, 255, .82);
	font-size: .82rem;
}

.topbar__inner {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: .75rem;
	min-height: 44px;
	padding-block: .35rem;
}

.topbar__info { display: flex; flex-wrap: wrap; gap: 1.25rem; }

.topbar__item {
	display: inline-flex;
	align-items: center;
	gap: .4rem;
	color: inherit;
}

.topbar__item:hover { color: #fff; }
.topbar__item .gg-icon { opacity: .75; }

.topbar__social { display: flex; gap: .35rem; }

.topbar__social a {
	display: grid;
	place-items: center;
	width: 30px; height: 30px;
	border-radius: 50%;
	color: rgba(255, 255, 255, .8);
	transition: background-color .18s ease, color .18s ease;
}

.topbar__social a:hover { background: rgba(255, 255, 255, .14); color: #fff; }

.site-header {
	position: sticky;
	top: 0;
	z-index: 50;
	background: rgba(255, 255, 255, .96);
	backdrop-filter: saturate(140%) blur(8px);
	border-bottom: 1px solid var(--gg-line);
}

.site-header.is-stuck { box-shadow: var(--gg-shadow); }

.site-header__inner {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1.5rem;
	min-height: 78px;
	padding-block: .6rem;
}

.site-branding { display: flex; align-items: center; gap: .9rem; min-width: 0; }
.site-logo img, .custom-logo { width: auto; max-height: 56px; }

.site-title {
	margin: 0;
	font-family: var(--gg-font-heading);
	font-size: 1.5rem;
	font-weight: 600;
	line-height: 1.15;
}

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

.site-description {
	margin: .1rem 0 0;
	font-size: .78rem;
	letter-spacing: .08em;
	text-transform: uppercase;
	color: var(--gg-muted);
}

.header-cta { margin-left: .5rem; }

/* ================================================== 6. Navigasi */

.main-navigation { display: flex; align-items: center; gap: 1rem; }

.main-navigation ul {
	display: flex;
	align-items: center;
	gap: .25rem;
	list-style: none;
	margin: 0;
	padding: 0;
}

.main-navigation li { position: relative; }

.main-navigation a {
	display: block;
	padding: .6rem .85rem;
	color: var(--gg-ink);
	font-size: .93rem;
	font-weight: 500;
	border-radius: var(--gg-radius-sm);
	transition: color .18s ease, background-color .18s ease;
}

.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current_page_item > a,
.main-navigation .current-menu-ancestor > a {
	color: var(--gg-primary);
	background: var(--gg-primary-soft);
}

.main-navigation .menu-item-has-children > a::after {
	content: "";
	display: inline-block;
	width: .4em; height: .4em;
	margin-left: .45em;
	border-right: 1.5px solid currentColor;
	border-bottom: 1.5px solid currentColor;
	transform: translateY(-2px) rotate(45deg);
}

.main-navigation .sub-menu {
	position: absolute;
	top: calc(100% + .4rem);
	left: 0;
	display: block;
	min-width: 230px;
	padding: .5rem;
	background: #fff;
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	box-shadow: var(--gg-shadow);
	opacity: 0;
	visibility: hidden;
	transform: translateY(8px);
	transition: opacity .18s ease, transform .18s ease, visibility .18s;
}

.main-navigation li:hover > .sub-menu,
.main-navigation li:focus-within > .sub-menu {
	opacity: 1;
	visibility: visible;
	transform: translateY(0);
}

.main-navigation .sub-menu li { width: 100%; }
.main-navigation .sub-menu a { padding: .55rem .75rem; font-size: .9rem; }

.nav-toggle {
	display: none;
	width: 46px; height: 46px;
	padding: 0;
	background: transparent;
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius-sm);
	cursor: pointer;
}

.nav-toggle__bars { display: grid; gap: 5px; place-items: center; }
.nav-toggle__bars span { display: block; width: 20px; height: 2px; background: var(--gg-ink); transition: transform .2s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================ 7. Slider utama */

.hero { position: relative; overflow: hidden; background: var(--gg-primary-dark); }

.hero__track { display: grid; }

.hero__slide {
	grid-area: 1 / 1;
	position: relative;
	display: grid;
	align-items: center;
	min-height: clamp(420px, 62vh, 620px);
	opacity: 0;
	visibility: hidden;
	transition: opacity .7s ease, visibility .7s;
}

.hero__slide.is-active { opacity: 1; visibility: visible; }

.hero__bg {
	position: absolute;
	inset: 0;
	width: 100%; height: 100%;
	object-fit: cover;
	transform: scale(1.06);
	transition: transform 8s ease-out;
}

.hero__slide.is-active .hero__bg { transform: scale(1); }

.hero__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(100deg, rgba(36, 20, 22, .84) 0%, rgba(36, 20, 22, .55) 55%, rgba(36, 20, 22, .3) 100%);
}

.hero__content {
	position: relative;
	max-width: 44rem;
	padding-block: 3rem;
	color: #fff;
}

.hero__title {
	color: #fff;
	font-size: clamp(2rem, 5vw, 3.6rem);
	margin-bottom: .5rem;
	text-wrap: balance;
}

.hero__text { color: rgba(255, 255, 255, .88); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 34rem; }
.hero__btn { margin-top: 1.5rem; }

.hero__nav {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	display: grid;
	place-items: center;
	width: 46px; height: 46px;
	background: rgba(255, 255, 255, .12);
	border: 1px solid rgba(255, 255, 255, .28);
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	transition: background-color .18s ease;
}

.hero__nav:hover { background: rgba(255, 255, 255, .26); }
.hero__nav svg { width: 22px; height: 22px; }
.hero__nav--prev { left: 1.25rem; }
.hero__nav--next { right: 1.25rem; }

.hero__dots {
	position: absolute;
	left: 50%;
	bottom: 1.5rem;
	transform: translateX(-50%);
	display: flex;
	gap: .5rem;
}

.hero__dots button {
	width: 10px; height: 10px;
	padding: 0;
	background: rgba(255, 255, 255, .45);
	border: 0;
	border-radius: 50%;
	cursor: pointer;
	transition: width .22s ease, background-color .22s ease;
}

.hero__dots button[aria-selected="true"] { width: 28px; border-radius: 999px; background: var(--gg-accent); }

/* ============================================ 8. Bagian beranda */

/* -- Statistik -- */
.section--stats { background: var(--gg-soft); border-bottom: 1px solid var(--gg-line); }

.stats {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
	gap: 1rem;
	text-align: center;
}

.stat { padding: 1.25rem .75rem; border-right: 1px solid var(--gg-line); }
.stat:last-child { border-right: 0; }

.stat__number {
	display: block;
	font-family: var(--gg-font-heading);
	font-size: clamp(2rem, 4vw, 2.8rem);
	font-weight: 700;
	color: var(--gg-primary);
	line-height: 1.1;
}

.stat__label { display: block; margin-top: .35rem; font-size: .85rem; color: var(--gg-muted); }

/* -- Jadwal misa -- */
.misa-grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
	gap: 1rem;
}

.misa-card {
	display: flex;
	flex-direction: column;
	gap: .35rem;
	padding: 1.5rem 1.25rem;
	background: var(--gg-bg);
	border: 1px solid var(--gg-line);
	border-top: 3px solid var(--gg-primary);
	border-radius: var(--gg-radius);
	text-align: center;
	transition: transform .22s ease, box-shadow .22s ease;
}

.misa-card:hover { transform: translateY(-4px); box-shadow: var(--gg-shadow); }

.misa-card__hari {
	font-family: var(--gg-font-heading);
	font-size: 1.4rem;
	font-weight: 600;
}

.misa-card__jam {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: .4rem;
	font-size: 1.05rem;
	font-weight: 600;
	color: var(--gg-primary);
}

.misa-card__ket { font-size: .85rem; color: var(--gg-muted); }

.misa-note {
	margin-top: 1.5rem;
	text-align: center;
	font-size: .88rem;
	color: var(--gg-muted);
	font-style: italic;
}

/* -- Sambutan -- */
.section--sambutan { background: var(--gg-soft); }

.sambutan {
	display: grid;
	grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
	gap: clamp(2rem, 5vw, 4rem);
	align-items: center;
}

.sambutan--no-foto { grid-template-columns: minmax(0, 1fr); max-width: 48rem; margin-inline: auto; text-align: center; }

.sambutan__foto { margin: 0; position: relative; }

.sambutan__foto img {
	width: 100%;
	aspect-ratio: 4 / 5;
	object-fit: cover;
	border-radius: 999px 999px var(--gg-radius) var(--gg-radius);
	box-shadow: var(--gg-shadow-lg);
}

.sambutan__foto::after {
	content: "";
	position: absolute;
	inset: -14px -14px 22px;
	border: 1px solid var(--gg-accent);
	border-radius: 999px 999px var(--gg-radius) var(--gg-radius);
	pointer-events: none;
	opacity: .55;
}

.sambutan__teks { position: relative; font-size: 1.06rem; color: #3B342E; }

.sambutan__teks .gg-icon {
	width: 2.4rem; height: 2.4rem;
	color: var(--gg-accent);
	opacity: .5;
	margin-bottom: .5rem;
}

.sambutan--no-foto .sambutan__teks .gg-icon { margin-inline: auto; }

.sambutan__tanda { margin-top: 1.5rem; padding-top: 1.25rem; border-top: 1px solid var(--gg-line); }
.sambutan__tanda strong { display: block; font-family: var(--gg-font-heading); font-size: 1.25rem; }
.sambutan__tanda span { font-size: .85rem; color: var(--gg-muted); }

/* -- Pengumuman -- */
.list-pengumuman { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 1.25rem; }
.list-pengumuman--arsip { grid-template-columns: minmax(0, 1fr); }

.item-pengumuman {
	display: flex;
	gap: 1.1rem;
	padding: 1.4rem;
	background: var(--gg-bg);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
	transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.item-pengumuman:hover { transform: translateY(-3px); box-shadow: var(--gg-shadow); border-color: var(--gg-primary-line); }

.item-pengumuman__date {
	flex: 0 0 auto;
	display: grid;
	place-content: center;
	width: 62px; height: 68px;
	background: var(--gg-primary);
	color: #fff;
	border-radius: var(--gg-radius-sm);
	text-align: center;
	line-height: 1.1;
}

.item-pengumuman__date .d { font-family: var(--gg-font-heading); font-size: 1.7rem; font-weight: 700; }
.item-pengumuman__date .m { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; opacity: .9; }

.item-pengumuman__body { min-width: 0; }
.item-pengumuman__title { font-size: 1.2rem; margin: 0 0 .4rem; }
.item-pengumuman__title a { color: inherit; }
.item-pengumuman__title a:hover { color: var(--gg-primary); }
.item-pengumuman__excerpt { font-size: .92rem; color: var(--gg-muted); margin: 0 0 .6rem; }

/* -- Agenda -- */
.section--agenda { background: var(--gg-soft); }

.list-agenda { display: grid; gap: 1rem; }

.item-agenda {
	display: flex;
	gap: 1.25rem;
	padding: 1.4rem 1.5rem;
	background: var(--gg-bg);
	border: 1px solid var(--gg-line);
	border-left: 4px solid var(--gg-accent);
	border-radius: var(--gg-radius);
	transition: transform .22s ease, box-shadow .22s ease;
}

.item-agenda:hover { transform: translateX(4px); box-shadow: var(--gg-shadow); }
.item-agenda.is-lampau { opacity: .62; border-left-color: var(--gg-line); }

.item-agenda__date {
	flex: 0 0 auto;
	display: grid;
	place-content: center;
	width: 78px;
	padding: .6rem 0;
	background: var(--gg-primary-soft);
	border-radius: var(--gg-radius-sm);
	text-align: center;
	line-height: 1.15;
	color: var(--gg-primary);
}

.item-agenda__date .d { font-family: var(--gg-font-heading); font-size: 1.9rem; font-weight: 700; }
.item-agenda__date .m { font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; }
.item-agenda__date .y { font-size: .72rem; opacity: .7; }

.item-agenda__body { min-width: 0; }
.item-agenda__title { font-size: 1.25rem; margin: 0 0 .5rem; }
.item-agenda__title a { color: inherit; }
.item-agenda__title a:hover { color: var(--gg-primary); }

.item-agenda__meta {
	display: flex;
	flex-wrap: wrap;
	gap: .35rem 1.1rem;
	list-style: none;
	margin: 0 0 .5rem;
	padding: 0;
	font-size: .85rem;
	color: var(--gg-muted);
}

.item-agenda__meta li { display: inline-flex; align-items: center; gap: .35rem; }
.item-agenda__meta .gg-icon { color: var(--gg-primary); opacity: .8; }
.item-agenda__excerpt { font-size: .92rem; color: var(--gg-muted); margin: 0; }

/* -- CTA -- */
.section--cta {
	position: relative;
	background: var(--gg-primary);
	background-size: cover;
	background-position: center;
	color: #fff;
	text-align: center;
}

.section--cta.has-bg::before {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(60, 16, 24, .78);
}

.cta__inner { position: relative; max-width: 44rem; }
.cta__title { color: #fff; }
.cta__text { color: rgba(255, 255, 255, .88); margin-bottom: 1.75rem; }

/* ============================================ 9. Halaman dalam */

.page-hero {
	position: relative;
	padding-block: clamp(2.5rem, 5vw, 4rem);
	background: var(--gg-soft);
	border-bottom: 1px solid var(--gg-line);
}

.page-hero__title { margin: 0; text-wrap: balance; }
.page-hero__title span { color: var(--gg-primary); }
.page-hero__desc { margin-top: .75rem; color: var(--gg-muted); max-width: 46rem; }

.breadcrumb {
	margin-top: 1rem;
	font-size: .84rem;
	color: var(--gg-muted);
	display: flex;
	flex-wrap: wrap;
	gap: .4rem;
}

.breadcrumb .sep { opacity: .5; }

.entry--single .entry-meta { margin-bottom: 1.5rem; }

.entry-featured { margin: 0 0 2rem; }
.entry-featured img { width: 100%; border-radius: var(--gg-radius); }
.entry-featured figcaption { margin-top: .6rem; font-size: .84rem; color: var(--gg-muted); text-align: center; }

.entry-content { font-size: 1.03rem; }
.entry-content > * + * { margin-top: 1.2em; }
.entry-content h2, .entry-content h3 { margin-top: 1.8em; }
.entry-content ul, .entry-content ol { padding-left: 1.4rem; }
.entry-content li + li { margin-top: .35rem; }
.entry-content img { border-radius: var(--gg-radius-sm); }
.entry-content table { width: 100%; border-collapse: collapse; }
.entry-content th, .entry-content td { padding: .7rem .9rem; border: 1px solid var(--gg-line); text-align: left; }
.entry-content th { background: var(--gg-soft); }

.entry-tags { margin-top: 2rem; display: flex; flex-wrap: wrap; gap: .5rem; }
.entry-tags a {
	padding: .3rem .8rem;
	background: var(--gg-soft);
	border: 1px solid var(--gg-line);
	border-radius: 999px;
	font-size: .8rem;
	color: var(--gg-muted);
}
.entry-tags a:hover { border-color: var(--gg-primary-line); color: var(--gg-primary); }

.agenda-detail {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
	gap: 1rem;
	padding: 1.25rem;
	margin-bottom: 2rem;
	background: var(--gg-soft);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
}

.agenda-detail__item { display: flex; align-items: center; gap: .75rem; }
.agenda-detail__item .gg-icon { width: 1.6rem; height: 1.6rem; color: var(--gg-primary); }
.agenda-detail__item small { display: block; font-size: .74rem; text-transform: uppercase; letter-spacing: .08em; color: var(--gg-muted); }
.agenda-detail__item strong { font-size: .98rem; }

.no-results { text-align: center; padding-block: 2rem; }
.no-results .search-form { max-width: 26rem; margin: 1.5rem auto; }

.error-404__code {
	font-family: var(--gg-font-heading);
	font-size: clamp(5rem, 18vw, 10rem);
	font-weight: 700;
	line-height: 1;
	color: var(--gg-primary-soft);
	margin: 0;
}

.error-404__links { display: flex; flex-wrap: wrap; gap: .75rem; justify-content: center; margin-top: 1.5rem; }

/* ========================================= 10. Widget & sidebar */

.search-form { display: flex; gap: .5rem; }

.search-field, input[type="text"], input[type="email"], input[type="url"], input[type="search"], input[type="tel"], textarea {
	width: 100%;
	padding: .7rem 1rem;
	background: #fff;
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius-sm);
	font-family: inherit;
	font-size: .95rem;
	color: var(--gg-ink);
}

textarea { resize: vertical; }

.search-field:focus, input:focus, textarea:focus { outline: none; border-color: var(--gg-primary); box-shadow: 0 0 0 3px var(--gg-primary-soft); }

.search-submit {
	display: grid;
	place-items: center;
	flex: 0 0 auto;
	width: 46px;
	background: var(--gg-primary);
	border: 0;
	border-radius: var(--gg-radius-sm);
	color: #fff;
	cursor: pointer;
	transition: background-color .18s ease;
}

.search-submit:hover { background: var(--gg-primary-dark); }

.widget-area { display: grid; gap: 1.5rem; position: sticky; top: 100px; }

.widget {
	padding: 1.5rem;
	background: var(--gg-soft);
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius);
}

.widget-title {
	font-size: 1.15rem;
	margin: 0 0 1rem;
	padding-bottom: .6rem;
	border-bottom: 1px solid var(--gg-line);
}

.widget ul { list-style: none; margin: 0; padding: 0; }
.widget li + li { margin-top: .55rem; padding-top: .55rem; border-top: 1px dashed var(--gg-line); }
.widget a { color: var(--gg-ink); font-size: .93rem; }
.widget a:hover { color: var(--gg-primary); }

/* ==================================== 11. Komentar & navigasi */

.pagination { margin-top: 2.5rem; }

.nav-links { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; }

.page-numbers {
	display: grid;
	place-items: center;
	min-width: 42px; height: 42px;
	padding-inline: .6rem;
	border: 1px solid var(--gg-line);
	border-radius: var(--gg-radius-sm);
	color: var(--gg-ink);
	font-size: .92rem;
}

.page-numbers:hover, .page-numbers.current {
	background: var(--gg-primary);
	border-color: var(--gg-primary);
	color: #fff;
}

.post-navigation { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--gg-line); }
.post-navigation .nav-links { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 1rem; }
.post-navigation a { display: block; padding: 1rem 1.25rem; border: 1px solid var(--gg-line); border-radius: var(--gg-radius); }
.post-navigation a:hover { border-color: var(--gg-primary-line); background: var(--gg-soft); }
.post-navigation .nav-next { text-align: right; }
.nav-label { display: block; font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; color: var(--gg-muted); }
.nav-title { display: block; font-family: var(--gg-font-heading); font-size: 1.1rem; margin-top: .2rem; }

.comments-area { margin-top: 3rem; padding-top: 2rem; border-top: 1px solid var(--gg-line); }
.comment-list { list-style: none; margin: 0 0 2rem; padding: 0; }
.comment-list ol.children { list-style: none; padding-left: clamp(1rem, 4vw, 2.5rem); }
.comment-body { padding: 1.25rem 0; border-bottom: 1px solid var(--gg-line); }
.comment-author { display: flex; align-items: center; gap: .6rem; font-weight: 600; }
.comment-author img { border-radius: 50%; }
.comment-metadata { font-size: .8rem; color: var(--gg-muted); margin-bottom: .5rem; }
.comment-form p { margin-bottom: 1rem; }
.comment-form label { display: block; font-size: .85rem; font-weight: 600; margin-bottom: .3rem; }

.comment-form .submit {
	padding: .8rem 1.8rem;
	background: var(--gg-primary);
	border: 0;
	border-radius: 999px;
	color: #fff;
	font-family: inherit;
	font-weight: 600;
	cursor: pointer;
}

.comment-form .submit:hover { background: var(--gg-primary-dark); }

/* ================================================== 12. Footer */

.site-footer {
	margin-top: 0;
	padding-top: var(--gg-space);
	background: #1E1917;
	color: rgba(255, 255, 255, .72);
	font-size: .93rem;
}

.footer-top {
	display: grid;
	grid-template-columns: minmax(260px, 1fr) minmax(0, 1.6fr);
	gap: clamp(2rem, 5vw, 4rem);
	padding-bottom: 3rem;
}

.footer-logo img { max-height: 60px; margin-bottom: 1rem; }
.footer-title { color: #fff; font-size: 1.5rem; margin-bottom: .6rem; }
.footer-desc { color: rgba(255, 255, 255, .62); }

.footer-contact { list-style: none; margin: 1.25rem 0 0; padding: 0; display: grid; gap: .65rem; }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; }
.footer-contact .gg-icon { color: var(--gg-accent); margin-top: .25rem; }
.footer-contact a { color: rgba(255, 255, 255, .72); }
.footer-contact a:hover { color: #fff; }

.footer-social { display: flex; gap: .5rem; margin-top: 1.25rem; }

.footer-social a {
	display: grid;
	place-items: center;
	width: 38px; height: 38px;
	background: rgba(255, 255, 255, .08);
	border-radius: 50%;
	color: rgba(255, 255, 255, .8);
	transition: background-color .18s ease, color .18s ease;
}

.footer-social a:hover { background: var(--gg-accent); color: #241F1C; }

.footer-widgets { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 2rem; }

.site-footer .widget { background: transparent; border: 0; padding: 0; }
.site-footer .widget-title { color: #fff; font-size: 1.1rem; border-bottom-color: rgba(255, 255, 255, .12); }
.site-footer .widget a { color: rgba(255, 255, 255, .72); }
.site-footer .widget a:hover { color: var(--gg-accent); }
.site-footer .widget li + li { border-top-color: rgba(255, 255, 255, .1); }

.footer-bottom {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	padding-block: 1.4rem;
	border-top: 1px solid rgba(255, 255, 255, .1);
	font-size: .85rem;
}

.footer-copy { margin: 0; color: rgba(255, 255, 255, .55); }
.footer-nav ul { display: flex; flex-wrap: wrap; gap: 1.25rem; list-style: none; margin: 0; padding: 0; }
.footer-nav a { color: rgba(255, 255, 255, .72); }
.footer-nav a:hover { color: var(--gg-accent); }

.to-top {
	position: fixed;
	right: 1.25rem;
	bottom: 1.25rem;
	z-index: 60;
	display: grid;
	place-items: center;
	width: 44px; height: 44px;
	background: var(--gg-primary);
	border: 0;
	border-radius: 50%;
	color: #fff;
	cursor: pointer;
	box-shadow: var(--gg-shadow);
	opacity: 0;
	transform: translateY(10px);
	transition: opacity .22s ease, transform .22s ease, background-color .18s ease;
}

.to-top.is-visible { opacity: 1; transform: translateY(0); }
.to-top:hover { background: var(--gg-primary-dark); }
.to-top svg { width: 22px; height: 22px; }

/* Animasi muncul */
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
[data-reveal].is-revealed { opacity: 1; transform: none; }

/* =============================================== 13. Responsif */

@media (max-width: 980px) {
	.layout { grid-template-columns: minmax(0, 1fr); }
	.widget-area { position: static; }
	.footer-top { grid-template-columns: minmax(0, 1fr); }
	.sambutan { grid-template-columns: minmax(0, 1fr); }
	.sambutan__foto { max-width: 320px; margin-inline: auto; }
}

@media (max-width: 860px) {
	.nav-toggle { display: grid; place-items: center; }

	.main-navigation {
		position: fixed;
		inset: 0 0 0 auto;
		width: min(340px, 86vw);
		flex-direction: column;
		align-items: stretch;
		gap: 0;
		padding: 5.5rem 1.25rem 2rem;
		background: #fff;
		border-left: 1px solid var(--gg-line);
		box-shadow: var(--gg-shadow-lg);
		transform: translateX(100%);
		transition: transform .28s ease;
		overflow-y: auto;
		z-index: 60;
	}

	.main-navigation.is-open { transform: translateX(0); }

	.main-navigation ul { flex-direction: column; align-items: stretch; gap: 0; width: 100%; }
	.main-navigation li { width: 100%; border-bottom: 1px solid var(--gg-line); }
	.main-navigation a { padding: .85rem .5rem; border-radius: 0; }

	.main-navigation .sub-menu {
		position: static;
		display: none;
		opacity: 1;
		visibility: visible;
		transform: none;
		min-width: 0;
		padding: 0 0 .5rem .9rem;
		border: 0;
		box-shadow: none;
		background: transparent;
	}

	.main-navigation .sub-menu.is-open { display: block; }
	.main-navigation li:hover > .sub-menu { display: none; }
	.main-navigation li.is-open > .sub-menu { display: block; }
	.main-navigation .menu-item-has-children > a::after { float: right; margin-top: .55em; }
	.main-navigation li.is-open > a::after { transform: translateY(2px) rotate(-135deg); }

	.header-cta { margin: 1rem 0 0; justify-content: center; }

	.nav-open { overflow: hidden; }

	.nav-backdrop {
		position: fixed;
		inset: 0;
		background: rgba(20, 15, 14, .45);
		z-index: 55;
	}

	.topbar__info { justify-content: center; width: 100%; gap: .85rem; font-size: .78rem; }
	.topbar__inner { justify-content: center; }
	.hero__nav { display: none; }
	.stat { border-right: 0; }
}

@media (max-width: 560px) {
	.item-pengumuman, .item-agenda { flex-direction: column; }
	.item-agenda__date { width: 100%; flex-direction: row; display: flex; gap: .5rem; justify-content: center; align-items: baseline; }
	.post-navigation .nav-next { text-align: left; }
	.footer-bottom { flex-direction: column; align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
	html { scroll-behavior: auto; }
	*, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; }
	[data-reveal] { opacity: 1; transform: none; }
}
