/* ==========================================================================
   Halaman publik selain landing (berita, agenda, profil, galeri, dll.)
   Tema mengikuti landing: hijau tua, emas, krem, dan mendukung mode gelap.
   ========================================================================== */

body.pub-body { background: var(--cream); }
body.pub-body a,
body.pub-body a:hover,
body.pub-body a:focus,
body.pub-body a:active { text-decoration: none !important; }
.pub-main { padding-bottom: 56px; min-height: 62vh; }
.pub-main .container { width: 100%; max-width: 1160px; padding-inline: max(20px, env(safe-area-inset-left)); }
.pub-main a { color: inherit; }
.pub-main h1, .pub-main h2, .pub-main h3, .pub-main h4 { color: var(--green-800); }

/* Breadcrumb */
.main--breadcrumb { padding: 22px 0 4px; }
.main--breadcrumb .breadcrumb {
	background: transparent; padding: 0; margin: 0; border-radius: 0;
	display: flex; flex-wrap: wrap; align-items: center; gap: 6px;
	font-size: 13px; color: var(--muted); font-weight: 600;
}
.main--breadcrumb .breadcrumb > li + li::before { content: "/"; color: var(--line); padding: 0 4px; }
.main--breadcrumb .breadcrumb a { color: var(--green-700); }
.main--breadcrumb .breadcrumb a:hover { color: var(--gold-600); }
.main--breadcrumb .breadcrumb .fa { margin-right: 4px; }

/* Judul halaman */
.page--title { margin-bottom: 22px; }
.page--title h2, .page--title h3 {
	font-family: var(--font-head); font-size: clamp(26px, 3.4vw, 38px);
	line-height: 1.2; margin: 0 0 6px; text-transform: none;
}
.page--title h3 { font-size: clamp(20px, 2.4vw, 26px); }

/* Kartu berita / agenda gaya lama */
.main--content { min-width: 0; }
.post--items { margin-bottom: 24px; }
.post--items ul.nav, .post--items .nav { margin: 0; padding: 0; list-style: none; display: block; }
.post--items ul.nav > li, .post--items .nav > li { list-style: none; }

.main--content .post--item {
	background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
	padding: 18px; margin-bottom: 18px; position: relative;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.main--content .post--item:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--gold-300); }
.main--content .post--item.is-clickable { cursor: pointer; }
.post--item .post--img img { width: 100%; height: auto; border-radius: 14px; object-fit: cover; }
.post--item .post--img { margin-bottom: 14px; }
.post--item .post--info .title h2,
.post--item .post--info .title h3,
.post--item .post--info .title h4 { margin: 0 0 8px; font-size: 20px; line-height: 1.3; }
.post--item .post--info .title a { color: var(--green-800); }
.post--item .post--info .title a:hover { color: var(--gold-600); }
.post--item .post--info .meta {
	display: flex; flex-wrap: wrap; gap: 6px 16px; margin: 0 0 8px; padding: 0; list-style: none;
	font-size: 12.5px; color: var(--muted);
}
.post--item .post--info .meta li { display: inline-flex; align-items: center; gap: 6px; }
.post--item .post--info .meta a { color: var(--muted); }
.post--item .post--info .meta a:hover { color: var(--gold-600); }
.post--item .post--content { color: var(--muted); font-size: 14.5px; }
.post--item .post--content p { margin: 0 0 10px; }
.post--item .post--action a {
	display: inline-flex; align-items: center; gap: 6px; margin-top: 4px;
	color: var(--green-700); font-weight: 700; font-size: 13.5px;
}
.post--item .post--action a::after { content: "\2192"; transition: transform .18s; }
.post--item .post--action a:hover { color: var(--gold-600); }
.post--item .post--action a:hover::after { transform: translateX(4px); }

/* Halaman detail artikel / profil */
.main--content .post--single {
	background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
	padding: clamp(20px, 3vw, 34px); margin-bottom: 22px;
}
.main--content .post--single:hover { transform: none; box-shadow: none; border-color: var(--line); }
.post--single .post--info .title h2 { font-size: clamp(24px, 3vw, 34px); color: var(--green-800); }
.post--single .post--content { color: var(--ink); font-size: 16px; line-height: 1.85; }
.post--single .post--content p { margin: 0 0 1em; }
.post--single .post--content h2, .post--single .post--content h3, .post--single .post--content h4 { margin: 1.4em 0 .6em; }
.post--single .post--content img { max-width: 100%; height: auto; border-radius: 14px; }
.post--single .post--content ul, .post--single .post--content ol { padding-left: 1.4em; margin-bottom: 1em; }
.post--single .post--content blockquote {
	margin: 1.2em 0; padding: 14px 20px; border-left: 4px solid var(--gold-500);
	background: var(--green-50); border-radius: 0 12px 12px 0; color: var(--muted);
}
.post--single .post--content a { color: var(--green-700); text-decoration: none; }
.post--single .post--content iframe { max-width: 100%; border-radius: 14px; }
.post--single .post--img img { border-radius: 16px; }

/* Label & aksi artikel */
.post--tags { margin: 6px 0 18px; }
.post--tags ul { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 0; padding: 0; list-style: none; }
.post--tags li a {
	display: inline-flex; padding: 5px 12px; border-radius: 999px; font-size: 12.5px; font-weight: 600;
	background: var(--gold-100); color: var(--gold-600); border: 1px solid transparent;
}
.post--tags li a:hover { border-color: var(--gold-500); }
.post--social { display: flex; align-items: center; gap: 12px; margin-bottom: 24px; }
.post--social .title { color: var(--muted); }
.post--social .social--widget ul, .post--social ul { display: flex; gap: 8px; margin: 0; padding: 0; list-style: none; }
.post--social .social--widget li a, .post--social li a {
	width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%;
	background: var(--green-100); color: var(--green-700);
	padding: 0; line-height: 1; font-size: 16px;
}
.post--social .social--widget li a i, .post--social li a i {
	display: inline-flex; align-items: center; justify-content: center;
	width: 1em; height: 1em; line-height: 1;
}
.post--social .social--widget li a:hover, .post--social li a:hover { background: var(--gold-500); color: var(--green-900); }

/* Sidebar */
.main--sidebar .widget {
	background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
	padding: 20px; margin-bottom: 20px;
}
.main--sidebar .widget .widget { padding: 0; border: 0; background: transparent; margin: 0; }
.widget--title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.widget--title h2 {
	font-family: var(--font-body); font-size: 14px; font-weight: 800; letter-spacing: .06em;
	text-transform: uppercase; margin: 0; color: var(--green-800);
}
.widget--title .icon { color: var(--gold-500); }
.main--sidebar .post--item { background: transparent; border: 0; border-radius: 0; padding: 0; margin: 0 0 12px; }
.main--sidebar .post--item:hover { transform: none; box-shadow: none; }
.main--sidebar .post--item .row { display: flex; gap: 10px; margin: 0; }
.main--sidebar .post--item .post--img { margin: 0; flex: none; width: 84px; }
.main--sidebar .post--item .post--img img { border-radius: 10px; width: 84px; height: 64px; object-fit: cover; }
.main--sidebar .post--item .post--info .title h3 { font-size: 14px; line-height: 1.35; margin: 0 0 4px; }
.main--sidebar .post--item .post--info .meta { font-size: 11.5px; }
.main--sidebar .post--item .post--content, .main--sidebar .post--item .post--action { display: none; }
.main--sidebar ul.nav { margin: 0; padding: 0; list-style: none; }

/* Widget tag / link */
.tags--widget ul, .links--widget ul { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.tags--widget li a, .links--widget li a {
	display: inline-flex; padding: 5px 12px; border-radius: 999px; font-size: 12.5px;
	background: var(--green-100); color: var(--green-800); font-weight: 600;
}
.tags--widget li a:hover, .links--widget li a:hover { background: var(--gold-100); color: var(--gold-600); }

/* Iklan / preloader */
.ad--space { display: none; }
.preloader { display: none; }

/* Pagination */
.pagination--wrapper { margin: 18px 0 0; clear: both; }
.pagination-info {
	display: inline-flex; align-items: center; min-height: 38px; padding: 0 16px;
	border: 1px solid var(--line); border-radius: 999px; background: var(--paper);
	color: var(--muted); font-size: 13px; font-weight: 600;
}
.pagination { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.pagination > li { display: inline-block; }
.pagination > li > a, .pagination > li > span,
.pagination a, .pagination span {
	display: inline-flex; min-width: 38px; height: 38px; padding: 0 12px;
	align-items: center; justify-content: center; border-radius: 10px; border: 1px solid var(--line);
	background: var(--paper); color: var(--green-800); font-weight: 700; font-size: 13px;
}
.pagination > .active > a, .pagination > .active > span,
.pagination a:hover { background: var(--green-700); border-color: var(--green-700); color: #fff; }

/* Form */
.pub-main label { display: block; font-weight: 700; font-size: 13px; color: var(--green-800); margin-bottom: 12px; }
.pub-main label > span { display: block; margin-bottom: 5px; }
@media (max-width: 560px) { .contact-grid { grid-template-columns: 1fr !important; } }
.pub-main .form-control, .pub-main input[type="text"], .pub-main input[type="email"],
.pub-main input[type="password"], .pub-main textarea, .pub-main select {
	width: 100%; padding: 11px 14px; border-radius: 12px; border: 1px solid var(--line);
	background: var(--paper); color: var(--ink); font: inherit; font-size: 14px;
}
.pub-main .form-control:focus, .pub-main input:focus, .pub-main textarea:focus, .pub-main select:focus {
	outline: 2px solid var(--gold-500); outline-offset: 1px; border-color: var(--gold-500);
}
.pub-main textarea { min-height: 110px; resize: vertical; }
.pub-main .btn, .pub-main .btn-primary, .pub-main input[type="submit"], .pub-main .button, .pub-main .simplebtn {
	display: inline-flex; align-items: center; gap: 7px; border: 0; cursor: pointer;
	font: inherit; font-weight: 700; font-size: 14px; padding: 10px 18px; border-radius: 999px;
	background: var(--green-700); color: #fff; transition: background .15s, transform .15s;
}
.pub-main .btn:hover, .pub-main .btn-primary:hover, .pub-main input[type="submit"]:hover, .pub-main .button:hover, .pub-main .simplebtn:hover { background: var(--green-600); color: #fff; transform: translateY(-1px); }

/* Komentar */
.comment--list, .comment--form { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px; margin-bottom: 20px; }
.comment--list { margin-top: 22px; }
.post--items-title { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.post--items-title h2 {
	font-family: var(--font-body); font-size: 15px; font-weight: 800; text-transform: uppercase;
	letter-spacing: .05em; margin: 0; color: var(--green-800);
}
.post--items-title .icon { color: var(--gold-500); }
.comment--items { margin: 0; padding: 0; list-style: none; }
.comment--item { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.comment--items > li:first-child .comment--item { border-top: 0; }
.comment--img img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.comment--info { min-width: 0; }
.comment--header .name { font-weight: 700; color: var(--green-800); margin: 0; }
.comment--header .date { font-size: 12px; color: var(--muted); }
.comment--content { color: var(--muted); font-size: 14px; }
.fb-comments iframe { max-width: 100%; }

/* Tabel umum & unduhan */
.pub-main table { width: 100%; border-collapse: collapse; }
.pub-main table th, .pub-main table td { padding: 10px 12px; border-bottom: 1px solid var(--line); color: var(--ink); }
.pub-main table th { color: var(--green-800); font-size: 13px; text-transform: uppercase; letter-spacing: .04em; }
.table-download { background: var(--paper); border-radius: 16px; overflow: hidden; }

/* Peta */
.map-border, .google-maps { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); }
.map-border iframe, .google-maps iframe { display: block; width: 100%; border: 0; }

/* Arsip / indeks berita */
.block-content { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.block-content .block { margin-bottom: 16px; }
.block-content .list-title { font-size: 18px; margin: 0 0 8px; }
.block-content .article-list { margin: 0; padding: 0; list-style: none; }
.block-content .article-list li { padding: 6px 0; border-bottom: 1px dashed var(--line); font-size: 13.5px; }
.block-content .article-list a { color: var(--green-800); }
.block-content .meta-date { display: block; font-size: 11.5px; color: var(--muted); }
.block-content .more { color: var(--gold-600); font-weight: 700; font-size: 13px; }

/* Playlist / video */
.article-photo, .article-content { border-radius: 14px; }
.article-content h4 a { color: var(--green-800); }

/* Polling */
.marginpoling { margin-right: 6px; }
.pub-main input[type="radio"] { accent-color: var(--green-700); }

/* ==========================================================================
   Komponen halaman baru (berita, agenda, album, profil)
   ========================================================================== */
.pub-head { padding: 18px 0 26px; }
.pub-head .kicker {
	display: inline-flex; align-items: center; gap: 8px; color: var(--gold-600);
	font-weight: 700; font-size: 12px; letter-spacing: .12em; text-transform: uppercase; margin-bottom: 10px;
}
.pub-head .kicker::before { content: "\2726"; color: var(--gold-500); }
.pub-head h1 { font-size: clamp(28px, 4vw, 42px); margin: 0 0 8px; }
.pub-head p { color: var(--muted); max-width: 62ch; }

/* Pencarian berita */
.berita-search { margin-top: 18px; max-width: 720px; }
.berita-search-box {
	display: flex; align-items: center; gap: 8px; background: var(--paper);
	border: 1px solid var(--line); border-radius: 999px; padding: 6px 6px 6px 16px;
	box-shadow: 0 10px 26px -20px rgba(6, 61, 34, .45);
}
.berita-search-box > svg { color: var(--muted); flex: none; }
.berita-search-box input {
	flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--ink);
	padding: 8px 4px; font: inherit; outline: none;
}
.berita-search-box .btn { flex: none; }
.btn-ghost { background: transparent; color: var(--green-700); border: 1px solid var(--line); }
.btn-ghost:hover { background: var(--green-50); color: var(--green-800); }
html[data-theme="dark"] .btn-ghost { color: #8bd6ad; }
@media (max-width: 560px) {
	.berita-search-box { flex-wrap: wrap; border-radius: 18px; padding: 10px; }
	.berita-search-box input { flex: 1 1 calc(100% - 34px); }
	.berita-search-box .btn { flex: 1 1 auto; justify-content: center; }
}

.pub-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
@media (max-width: 991px) { .pub-layout { grid-template-columns: 1fr; } }

.pub-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .pub-grid { grid-template-columns: 1fr; } }

.pub-card {
	position: relative; display: flex; flex-direction: column; background: var(--paper);
	border: 1px solid var(--line); border-radius: 20px; overflow: hidden; color: inherit;
	transition: transform .2s, box-shadow .2s, border-color .2s;
}
.pub-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--gold-300); }
.pub-card .thumb { display: block; aspect-ratio: 16 / 10; background: linear-gradient(135deg, var(--green-700), var(--green-600)); background-size: cover; background-position: center; position: relative; }
.pub-card .thumb::after { content: ""; position: absolute; inset: 0; background-image: var(--pattern); background-size: 64px; opacity: .9; }
.pub-card .thumb.has-img::after { opacity: .25; }
.pub-card .body { padding: 16px 18px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.pub-card .tag {
	align-self: flex-start; background: var(--gold-100); color: var(--gold-600);
	font-size: 11.5px; font-weight: 800; padding: 3px 10px; border-radius: 999px;
}
.pub-card h2, .pub-card h3 { font-size: 18px; line-height: 1.35; margin: 0; color: var(--green-800); }
.pub-card p { color: var(--muted); font-size: 14px; margin: 0; }
.pub-card time, .pub-card .meta { margin-top: auto; font-size: 12px; color: var(--muted); }

/* Detail agenda */
.agenda-meta {
	display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px;
	margin: 18px 0 22px; padding: 16px 18px; background: var(--green-50);
	border: 1px solid var(--line); border-radius: 14px;
}
.agenda-meta span {
	display: block; font-size: 11px; letter-spacing: .06em; text-transform: uppercase;
	color: var(--muted); margin-bottom: 2px;
}
.agenda-meta b { color: var(--green-800); font-size: 14px; }
@media (max-width: 560px) { .agenda-meta { grid-template-columns: 1fr; } }

/* Badge putar video */
.play-badge {
	position: absolute; inset: 0; z-index: 1; display: grid; place-items: center;
	background: rgba(4, 31, 18, .2); color: #fff;
}
.play-badge svg {
	width: 46px; height: 46px; padding: 11px; border-radius: 50%;
	background: rgba(4, 31, 18, .72); box-shadow: 0 8px 20px -8px rgba(0,0,0,.7);
}


.pub-agenda { display: grid; gap: 14px; }
.pub-agenda .item {
	display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 16px; align-items: center;
	background: var(--paper); border: 1px solid var(--line); border-radius: 18px; padding: 16px;
	transition: border-color .2s, transform .2s, box-shadow .2s;
}
.pub-agenda .item:hover { border-color: var(--gold-300); transform: translateY(-2px); box-shadow: var(--shadow); }
.pub-agenda .date {
	background: var(--green-100); border-radius: 14px; text-align: center; padding: 8px 4px;
	font-size: 12px; font-weight: 700; color: var(--green-800); line-height: 1.25;
}
.pub-agenda .date b { display: block; font-family: var(--font-head); font-size: 24px; color: var(--green-700); }
.pub-agenda h3 { font-size: 17px; margin: 0 0 4px; color: var(--green-800); }
.pub-agenda h3 a:hover { color: var(--gold-600); }
.pub-agenda p { margin: 0; font-size: 13px; color: var(--muted); }

.pub-empty {
	background: var(--paper); border: 1px dashed var(--line); border-radius: 18px;
	padding: 40px 20px; text-align: center; color: var(--muted);
}

/* Galeri */
.pub-gallery { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
@media (max-width: 900px) { .pub-gallery { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pub-gallery { grid-template-columns: 1fr; } }
.pub-gallery .pub-card .thumb { aspect-ratio: 4 / 3; }
.pub-gallery .count { font-size: 12px; color: var(--muted); }
.pub-gallery a { display: block; }

/* Unduhan */
.pub-download { display: grid; gap: 12px; }
.pub-download .item {
	display: grid; grid-template-columns: 42px minmax(0, 1fr) auto; gap: 14px; align-items: center;
	background: var(--paper); border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px;
}
.pub-download .ic {
	width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center;
	background: var(--green-100); color: var(--green-700);
}
.pub-download .ic svg { width: 21px; height: 21px; }
.pub-download h3 { font-size: 15px; margin: 0 0 2px; color: var(--green-800); }
.pub-download .meta { font-size: 12px; color: var(--muted); }
.pub-download .btn { padding: 8px 14px; font-size: 13px; }
@media (max-width: 560px) {
	.pub-download .item { grid-template-columns: 40px minmax(0, 1fr); }
	.pub-download .btn { grid-column: 1 / -1; justify-content: center; }
}

/* Sidebar baru */
.pub-widget {
	background: var(--paper); border: 1px solid var(--line); border-radius: 20px;
	padding: 20px; margin-bottom: 20px;
}
.pub-widget h3 {
	font-family: var(--font-body); font-size: 14px; font-weight: 800; text-transform: uppercase;
	letter-spacing: .06em; margin: 0 0 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line);
	color: var(--green-800);
}
.pub-pop { display: grid; gap: 12px; }
.pub-pop a { display: grid; grid-template-columns: 72px minmax(0, 1fr); gap: 10px; align-items: center; }
.pub-pop .thumb { width: 72px; height: 56px; border-radius: 10px; background: var(--green-100) center/cover no-repeat; }
.pub-pop h4 { font-size: 13.5px; line-height: 1.35; margin: 0 0 3px; color: var(--green-800); font-family: var(--font-body); font-weight: 700; }
.pub-pop span { font-size: 11.5px; color: var(--muted); }
.pub-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.pub-tags a {
	display: inline-flex; padding: 5px 11px; border-radius: 999px; font-size: 12px; font-weight: 600;
	background: var(--green-100); color: var(--green-800);
}
.pub-tags a:hover { background: var(--gold-100); color: var(--gold-600); }

/* Beranda publik: kartu berita besar */
.pub-news-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 640px) { .pub-news-grid { grid-template-columns: 1fr; } }

/* Sidebar di dalam grid halaman baru */
.pub-layout > .main--sidebar { width: auto; float: none; padding: 0; }
.pub-layout .main--sidebar .sticky-content-inner { position: static; }

/* Artikel profil / halaman statis */
.pub-article {
	background: var(--paper); border: 1px solid var(--line); border-radius: 22px;
	padding: clamp(20px, 3vw, 34px); color: var(--ink); font-size: 16px; line-height: 1.85;
}
.pub-article .hero-img { width: 100%; height: auto; border-radius: 16px; margin-bottom: 8px; }
.pub-article .caption { text-align: center; font-size: 13px; color: var(--muted); margin: 0 0 18px; }
.pub-article .content > *:first-child { margin-top: 0; }
.pub-article .content p { margin: 0 0 1em; }
.pub-article .content h2, .pub-article .content h3, .pub-article .content h4 { margin: 1.4em 0 .6em; }
.pub-article .content img { max-width: 100%; height: auto; border-radius: 14px; }
.pub-article .content ul, .pub-article .content ol { padding-left: 1.4em; margin-bottom: 1em; }
.pub-article .content blockquote {
	margin: 1.2em 0; padding: 14px 20px; border-left: 4px solid var(--gold-500);
	background: var(--green-50); border-radius: 0 12px 12px 0; color: var(--muted);
}
.pub-article .content a { color: var(--green-700); text-decoration: none; }
.pub-article .content table { margin-bottom: 1em; }
.pub-article .content iframe { max-width: 100%; border-radius: 14px; }
.pub-article .content .garis { border-top: 1px solid var(--line); margin: 16px 0; }
.pub-article-meta {
	display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 13px; color: var(--muted);
	padding-bottom: 16px; margin-bottom: 20px; border-bottom: 1px solid var(--line);
}
.pub-article-meta .fa { color: var(--gold-600); margin-right: 3px; }


