/* ============================================================
   PCM GUBENG – Tema publik
   Warna utama & aksen diatur dari Dashboard › Pengaturan
   (variabel --pm-* disisipkan oleh includes/header.php).
   Nilai di bawah hanya cadangan bila pengaturan belum ada.
   ============================================================ */
:root {
  --pm-green: #0a7a3a;
  --pm-green-dark: #064b24;
  --pm-green-mid: #cfe7d8;
  --pm-green-soft: #eef6f1;
  --pm-gray: #6b7570;
  --pm-gray-soft: #f3f4f3;
  --pm-ink: #1f2a24;
  --pm-muted: #5f6b66;
  --pm-line: #e3e7e4;
  --pm-radius: 14px;
  --pm-shadow: 0 1px 2px rgba(20,40,30,.05), 0 6px 20px rgba(20,40,30,.06);
  --pm-shadow-lg: 0 2px 4px rgba(20,40,30,.06), 0 14px 34px rgba(20,40,30,.12);
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, Arial, sans-serif;
  --font-head: 'Lora', Georgia, 'Times New Roman', serif;
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--pm-ink);
  background: #fff;
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, .brand-name, .stat-num { font-family: var(--font-head); color: var(--pm-ink); }
a { color: var(--pm-green); }
.text-success { color: var(--pm-green) !important; }
a:hover { color: var(--pm-green-dark); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--pm-green-mid); outline-offset: 2px; }

/* ---------- Tombol ---------- */
.btn-pm, .btn-pm-outline, .btn-pm-light, .btn-pm-ghost {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-weight: 600; font-size: .95rem; line-height: 1.2;
  padding: .75rem 1.4rem; border-radius: 999px; border: 1.5px solid transparent;
  text-decoration: none; transition: all .18s ease; cursor: pointer;
}
.btn-pm { background: var(--pm-green); color: #fff; border-color: var(--pm-green); }
.btn-pm:hover { background: var(--pm-green-dark); border-color: var(--pm-green-dark); color: #fff; transform: translateY(-1px); }
.btn-pm-outline { background: transparent; color: var(--pm-green); border-color: var(--pm-green); }
.btn-pm-outline:hover { background: var(--pm-green); color: #fff; }
.btn-pm-light { background: #fff; color: var(--pm-green-dark); border-color: #fff; }
.btn-pm-light:hover { background: var(--pm-green-soft); color: var(--pm-green-dark); }
.btn-pm-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.7); }
.btn-pm-ghost:hover { background: rgba(255,255,255,.14); color: #fff; border-color: #fff; }
.btn-sm-pm { padding: .5rem 1rem; font-size: .85rem; }

/* ---------- Header ---------- */
.site-header {
  background: rgba(255,255,255,.97);
  backdrop-filter: saturate(1.4) blur(8px);
  border-bottom: 1px solid var(--pm-line);
  position: sticky; top: 0; z-index: 1030;
}
.site-header .navbar { padding: .6rem 0; }
.brand { display: flex; align-items: center; gap: .85rem; text-decoration: none; min-width: 0; }
.brand-logos { display: flex; align-items: center; gap: .55rem; flex-shrink: 0; }
.brand-logos img { height: 46px; width: auto; max-width: 64px; object-fit: contain; display: block; }
.brand-logos .logo-sep { width: 1px; height: 30px; background: var(--pm-line); }
.brand-text { display: flex; flex-direction: column; min-width: 0; line-height: 1.2; }
.brand-name { font-size: 1.12rem; font-weight: 700; color: var(--pm-green-dark); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.brand-tag { font-size: .72rem; color: var(--pm-muted); letter-spacing: .02em; overflow: hidden; text-overflow: ellipsis; }

.navbar-toggler { border: 1px solid var(--pm-line); border-radius: 10px; padding: .4rem .6rem; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px var(--pm-green-mid); }
.main-nav .nav-link {
  color: var(--pm-ink); font-weight: 500; font-size: .94rem;
  padding: .55rem .85rem !important; border-radius: 8px; position: relative;
}
.main-nav .nav-link:hover { color: var(--pm-green); background: var(--pm-green-soft); }
.main-nav .nav-link.active { color: var(--pm-green); font-weight: 600; }
@media (min-width: 992px) {
  .main-nav .nav-link.active::after {
    content: ''; position: absolute; left: .85rem; right: .85rem; bottom: .15rem;
    height: 2px; background: var(--pm-green); border-radius: 2px;
  }
  .main-nav .dropdown-toggle.active::after { position: static; background: none; border-top-color: currentColor; }
}
.dropdown-menu { border: 1px solid var(--pm-line); border-radius: 12px; box-shadow: var(--pm-shadow-lg); padding: .4rem; }
.dropdown-item { border-radius: 8px; font-size: .92rem; padding: .5rem .85rem; }
.dropdown-item:hover, .dropdown-item.active { background: var(--pm-green-soft); color: var(--pm-green-dark); }
.nav-cta { margin-left: .4rem; }
@media (max-width: 991.98px) {
  .main-nav { padding: .75rem 0 1rem; border-top: 1px solid var(--pm-line); margin-top: .6rem; }
  .main-nav .nav-link { padding: .75rem .5rem !important; }
  .nav-cta { margin: .5rem 0 0; }
  .nav-cta .btn-pm { width: 100%; }
  .dropdown-menu { border: 0; box-shadow: none; background: var(--pm-gray-soft); margin: .2rem 0 .4rem; }
}
@media (max-width: 575.98px) {
  .brand-logos img { height: 38px; max-width: 50px; }
  .brand-name { font-size: .98rem; white-space: normal; }
  .brand-tag { display: none; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: #fff; overflow: hidden;
  background-color: var(--pm-green-dark);
  background-size: cover; background-position: center;
  min-height: clamp(420px, 62vh, 600px);
  display: flex; align-items: center;
}
.hero::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(4,40,20,.88) 0%, rgba(4,40,20,.62) 55%, rgba(4,40,20,.30) 100%);
}
.hero .container { position: relative; z-index: 1; padding-top: 3.5rem; padding-bottom: 3.5rem; }
.hero-kicker {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: .35rem .85rem; border: 1px solid rgba(255,255,255,.45); border-radius: 999px; margin-bottom: 1.1rem;
}
.hero h1 { color: #fff; font-size: clamp(1.9rem, 4.6vw, 3.1rem); font-weight: 700; line-height: 1.18; max-width: 18ch; margin-bottom: 1rem; }
.hero p.lead { color: rgba(255,255,255,.9); font-size: clamp(1rem, 1.6vw, 1.15rem); max-width: 56ch; margin-bottom: 1.8rem; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .75rem; }
.hero-ph-note {
  position: absolute; right: 1rem; bottom: 1rem; z-index: 2; font-size: .72rem;
  background: rgba(255,255,255,.14); border: 1px dashed rgba(255,255,255,.55); color: #fff;
  padding: .3rem .7rem; border-radius: 999px; backdrop-filter: blur(4px);
}

/* ---------- Statistik ---------- */
.stat-band { background: var(--pm-green); color: #fff; }
.stat-grid { display: grid; grid-template-columns: repeat(var(--cols, 4), 1fr); }
.stat-item { text-align: center; padding: 1.6rem .75rem; border-right: 1px solid rgba(255,255,255,.18); }
.stat-item:last-child { border-right: 0; }
.stat-num { font-size: clamp(1.7rem, 3.4vw, 2.4rem); font-weight: 700; color: #fff; line-height: 1.1; }
.stat-label { font-size: .85rem; opacity: .88; letter-spacing: .03em; }
@media (max-width: 767.98px) {
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat-item { border-bottom: 1px solid rgba(255,255,255,.18); }
  .stat-item:nth-child(2n) { border-right: 0; }
  .stat-item:nth-last-child(-n+2) { border-bottom: 0; }
}

/* ---------- Seksi ---------- */
.section { padding: 4.5rem 0; }
.section-alt { background: var(--pm-gray-soft); }
@media (max-width: 767.98px) { .section { padding: 3rem 0; } }
.eyebrow { display: inline-flex; align-items: center; gap: .6rem; font-size: .78rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--pm-green); margin-bottom: .6rem; }
.eyebrow::before { content: ''; width: 26px; height: 2px; background: var(--pm-green); }
.section-title { font-size: clamp(1.5rem, 3vw, 2.1rem); font-weight: 700; margin-bottom: .6rem; }
.section-lead { color: var(--pm-muted); max-width: 60ch; }
.section-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 1rem; margin-bottom: 2rem; }
.link-more { font-weight: 600; text-decoration: none; font-size: .95rem; white-space: nowrap; }
.link-more:hover { text-decoration: underline; }

/* ---------- Kepala halaman dalam ---------- */
.page-head { background: var(--pm-green-soft); border-bottom: 1px solid var(--pm-green-mid); padding: 2.4rem 0 2.1rem; }
.page-title { font-size: clamp(1.7rem, 3.6vw, 2.4rem); font-weight: 700; color: var(--pm-green-dark); margin: 0; }
.page-sub { color: var(--pm-muted); margin: .5rem 0 0; max-width: 62ch; }
.pm-crumb { font-size: .82rem; margin-bottom: .7rem; }
.pm-crumb a { color: var(--pm-muted); text-decoration: none; }
.pm-crumb a:hover { color: var(--pm-green); }
.pm-crumb .breadcrumb-item.active { color: var(--pm-green-dark); }
.breadcrumb-item + .breadcrumb-item::before { color: var(--pm-gray); }

/* ---------- Kartu ---------- */
.card-pm {
  background: #fff; border: 1px solid var(--pm-line); border-radius: var(--pm-radius);
  overflow: hidden; height: 100%; display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease, border-color .2s ease;
}
.card-pm:hover { box-shadow: var(--pm-shadow-lg); transform: translateY(-3px); border-color: var(--pm-green-mid); }
.card-pm .thumb { aspect-ratio: 16/10; overflow: hidden; background: var(--pm-gray-soft); display: block; }
.card-pm .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; display: block; }
.card-pm:hover .thumb img { transform: scale(1.04); }
.card-pm .body { padding: 1.25rem 1.3rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.card-pm h3, .card-pm h5 { font-size: 1.12rem; font-weight: 700; margin-bottom: .45rem; line-height: 1.35; }
.card-pm h3 a, .card-pm h5 a { color: var(--pm-ink); text-decoration: none; }
.card-pm h3 a:hover, .card-pm h5 a:hover { color: var(--pm-green); }
.card-pm .meta { font-size: .8rem; color: var(--pm-muted); margin-bottom: .6rem; }
.card-pm .excerpt { font-size: .93rem; color: #3d4a43; }
.card-pm .more { margin-top: auto; padding-top: .8rem; font-weight: 600; font-size: .9rem; text-decoration: none; }
.card-flat { cursor: default; }
.card-flat:hover { transform: none; box-shadow: var(--pm-shadow); }

.chip { display: inline-block; font-size: .72rem; font-weight: 600; letter-spacing: .03em; padding: .22rem .65rem; border-radius: 999px; background: var(--pm-green-soft); color: var(--pm-green-dark); margin-right: .3rem; }
.chip-gray { background: var(--pm-gray-soft); color: var(--pm-muted); }
.chip-gold { background: #fdf3d6; color: #7a5a06; }

.icon-badge { width: 48px; height: 48px; border-radius: 12px; background: var(--pm-green-soft); color: var(--pm-green); display: inline-flex; align-items: center; justify-content: center; font-size: 1.35rem; margin-bottom: .9rem; }
.info-list { list-style: none; padding: 0; margin: .5rem 0 0; font-size: .9rem; color: var(--pm-muted); }
.info-list li { display: flex; gap: .55rem; padding: .25rem 0; }
.info-list i { color: var(--pm-green); margin-top: .15rem; }

/* ---------- Sambutan ---------- */
.welcome-photo { border-radius: var(--pm-radius); overflow: hidden; box-shadow: var(--pm-shadow-lg); aspect-ratio: 4/5; background: var(--pm-gray-soft); }
.welcome-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.welcome-name { font-family: var(--font-head); font-weight: 700; margin: 1rem 0 0; }
.welcome-role { color: var(--pm-muted); font-size: .9rem; }
.quote-mark { font-family: var(--font-head); font-size: 4rem; line-height: .6; color: var(--pm-green-mid); display: block; margin-bottom: .4rem; }

/* ---------- Konten teks ---------- */
.prose { max-width: 72ch; line-height: 1.9; font-size: 1.03rem; color: #26332b; }
.prose p { margin-bottom: 1.1rem; }
.about-block { padding: 2rem 0; border-bottom: 1px solid var(--pm-line); }
.about-block:last-child { border-bottom: 0; }
.about-block h2 { font-size: 1.35rem; color: var(--pm-green-dark); margin-bottom: .9rem; display: flex; align-items: center; gap: .6rem; }
.about-block h2 i { color: var(--pm-green); font-size: 1.1rem; }
.about-nav { position: sticky; top: 96px; }
.about-nav a { display: block; padding: .45rem .9rem; color: var(--pm-muted); text-decoration: none; border-left: 2px solid var(--pm-line); font-size: .92rem; }
.about-nav a:hover { color: var(--pm-green); border-left-color: var(--pm-green); background: var(--pm-green-soft); }

.unfilled { display: inline-flex; align-items: center; gap: .45rem; color: var(--pm-muted); font-size: .88rem; font-style: italic; background: var(--pm-gray-soft); border: 1px dashed #c3cac6; padding: .35rem .8rem; border-radius: 8px; }
.unfilled i { color: var(--pm-gray); font-style: normal; }

/* ---------- Agenda ---------- */
.agenda-item { display: flex; gap: 1rem; padding: 1rem 1.1rem; background: #fff; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); margin-bottom: .85rem; }
.agenda-date { flex: 0 0 62px; text-align: center; background: var(--pm-green); color: #fff; border-radius: 10px; padding: .45rem 0; line-height: 1.1; }
.agenda-date strong { display: block; font-size: 1.5rem; font-family: var(--font-head); }
.agenda-date span { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.agenda-item h3 { font-size: 1.02rem; margin: 0 0 .2rem; font-family: var(--font-body); font-weight: 600; }
.agenda-item p { margin: 0; font-size: .86rem; color: var(--pm-muted); }

/* ---------- Galeri ---------- */
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .8rem; }
.gallery-item { position: relative; aspect-ratio: 4/3; border-radius: 12px; overflow: hidden; background: var(--pm-gray-soft); border: 0; padding: 0; cursor: zoom-in; display: block; width: 100%; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; display: block; }
.gallery-item:hover img { transform: scale(1.06); }
.gallery-item .cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 1.4rem .8rem .55rem; font-size: .78rem; color: #fff; text-align: left; background: linear-gradient(transparent, rgba(0,0,0,.65)); }
.gallery-item.is-ph { cursor: default; }
.gallery-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 767.98px) { .gallery-grid, .gallery-grid.cols-4 { grid-template-columns: repeat(2, 1fr); } }
.ph-caption { font-size: .82rem; color: var(--pm-muted); margin-top: .9rem; font-style: italic; }

/* ---------- Donasi CTA ---------- */
.cta-band { background: linear-gradient(120deg, var(--pm-green-dark), var(--pm-green)); color: #fff; border-radius: 20px; padding: 2.6rem 2.2rem; }
.cta-band h2 { color: #fff; font-size: clamp(1.4rem, 3vw, 1.9rem); }
.cta-band p { color: rgba(255,255,255,.88); max-width: 52ch; margin-bottom: 0; }
@media (max-width: 767.98px) { .cta-band { padding: 2rem 1.4rem; } }

/* ---------- Form ---------- */
.form-control, .form-select { border-radius: 10px; border-color: #d3d9d5; padding: .7rem .95rem; }
.form-control:focus, .form-select:focus { border-color: var(--pm-green); box-shadow: 0 0 0 3px var(--pm-green-mid); }
.panel { background: #fff; border: 1px solid var(--pm-line); border-radius: var(--pm-radius); padding: 1.6rem; box-shadow: var(--pm-shadow); }
.filter-bar .chip-link { display: inline-block; padding: .4rem 1rem; border-radius: 999px; border: 1px solid var(--pm-line); color: var(--pm-muted); text-decoration: none; font-size: .88rem; margin: 0 .3rem .5rem 0; background: #fff; }
.filter-bar .chip-link:hover { border-color: var(--pm-green); color: var(--pm-green); }
.filter-bar .chip-link.active { background: var(--pm-green); border-color: var(--pm-green); color: #fff; }

.pm-pagination .page-link { color: var(--pm-green); border-color: var(--pm-line); border-radius: 10px !important; margin: 0 .15rem; min-width: 40px; text-align: center; }
.pm-pagination .page-item.active .page-link { background: var(--pm-green); border-color: var(--pm-green); color: #fff; }

.empty-state { text-align: center; padding: 3rem 1rem; background: var(--pm-gray-soft); border: 1px dashed #c3cac6; border-radius: var(--pm-radius); color: var(--pm-muted); }
.empty-state i { font-size: 2rem; color: var(--pm-gray); display: block; margin-bottom: .5rem; }

.rek-box { background: var(--pm-green-soft); border: 1px solid var(--pm-green-mid); border-radius: 12px; padding: 1rem 1.2rem; }
.rek-number { font-family: 'Courier New', monospace; font-size: 1.35rem; font-weight: 700; color: var(--pm-green-dark); letter-spacing: .04em; }

/* ---------- Berita (detail) ---------- */
.article-cover { border-radius: var(--pm-radius); overflow: hidden; margin: 1.6rem 0; aspect-ratio: 16/9; background: var(--pm-gray-soft); }
.article-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.article-title { font-size: clamp(1.7rem, 3.6vw, 2.5rem); line-height: 1.25; font-weight: 700; }

/* ---------- Footer ---------- */
.site-footer { background: var(--pm-green-dark); color: rgba(255,255,255,.82); margin-top: 0; }
.site-footer .foot-main { padding: 3.5rem 0 2.2rem; }
.site-footer h6 { color: #fff; font-family: var(--font-body); font-size: .82rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700; margin-bottom: 1rem; }
.foot-brand { display: flex; align-items: center; gap: .7rem; margin-bottom: 1rem; }
.foot-brand img { height: 52px; width: auto; max-width: 68px; object-fit: contain; background: #fff; border-radius: 10px; padding: 5px; }
.foot-brand .name { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.15rem; line-height: 1.25; }
.foot-name { font-family: var(--font-head); font-weight: 700; color: #fff; font-size: 1.15rem; line-height: 1.3; }
.site-footer p { font-size: .9rem; }
.foot-links { list-style: none; padding: 0; margin: 0; }
.foot-links li { margin-bottom: .5rem; }
.foot-links a { color: rgba(255,255,255,.78); text-decoration: none; font-size: .92rem; }
.foot-links a:hover { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.foot-contact { list-style: none; padding: 0; margin: 0; font-size: .9rem; }
.foot-contact li { display: flex; gap: .65rem; margin-bottom: .75rem; }
.foot-contact i { color: var(--pm-green-mid); margin-top: .2rem; }
.foot-contact .nodata { font-style: italic; opacity: .7; }
.foot-contact a { color: rgba(255,255,255,.85); }
.social { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1rem; }
.social a { width: 40px; height: 40px; border-radius: 50%; border: 1px solid rgba(255,255,255,.35); color: #fff; display: inline-flex; align-items: center; justify-content: center; text-decoration: none; transition: all .18s ease; }
.social a:hover { background: #fff; color: var(--pm-green-dark); border-color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.14); padding: 1.1rem 0; font-size: .82rem; color: rgba(255,255,255,.65); }
.foot-bottom a { color: rgba(255,255,255,.65); text-decoration: none; }
.foot-bottom a:hover { color: #fff; }

/* ---------- Lightbox ---------- */
.lightbox .modal-content { background: transparent; border: 0; }
.lightbox img { max-height: 80vh; width: auto; max-width: 100%; margin: 0 auto; display: block; border-radius: 10px; }
.lightbox .lb-cap { color: #fff; text-align: center; margin-top: .7rem; font-size: .92rem; }

/* ---------- Gerak dikurangi ---------- */
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; scroll-behavior: auto !important; }
  .card-pm:hover, .btn-pm:hover { transform: none; }
}

/* Agenda yang bisa diklik */
a.agenda-link { text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s, transform .15s; }
a.agenda-link:hover, a.agenda-link:focus-visible { border-color: var(--pm-green); box-shadow: var(--pm-shadow-lg); transform: translateY(-1px); }
a.agenda-link h3 { color: var(--pm-ink); }
a.agenda-link:hover h3 { color: var(--pm-green); }

/* Foto ortom: kecil & bulat */
.ortom-photo { width: 88px; height: 88px; object-fit: cover; border-radius: 50%; border: 3px solid var(--pm-green-soft); display: block; margin-bottom: .9rem; }

/* Struktural: foto portret tidak memotong kepala + popup detail */
.struk-card { cursor: pointer; border: 1px solid var(--pm-line); background: #fff; font: inherit; color: inherit; display: block; overflow: hidden; }
.struk-card:focus-visible { outline: 3px solid var(--pm-green); outline-offset: 2px; }
.struk-card .struk-thumb { aspect-ratio: 4/5; }
.struk-card .struk-thumb img { object-fit: cover !important; object-position: top center !important; }
.struk-card:hover .struk-thumb img { transform: none; }
.struk-card:hover { box-shadow: var(--pm-shadow-lg); transform: translateY(-2px); }
.struk-modal { border: 0; border-radius: 16px; overflow: hidden; position: relative; }
.struk-close { position: absolute; top: .75rem; right: .75rem; z-index: 2; background-color: rgba(255,255,255,.9); border-radius: 50%; padding: .6rem; opacity: 1; }
.struk-photo { background: var(--pm-gray-soft); text-align: center; }
.struk-photo img { max-width: 100%; max-height: 65vh; object-fit: contain; display: block; margin: 0 auto; }
