/* ============================================================
   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; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 310px; }

.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 .7rem !important; border-radius: 8px; position: relative; white-space: nowrap;
}
.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: .7rem; right: .7rem; 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: .5rem; }
.main-nav .nav-cta .btn-pm { white-space: nowrap; }
@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: linear-gradient(135deg, var(--pm-green), var(--pm-green-dark)); padding: 1.8rem 0; }
.stat-grid { --gap: .9rem; display: flex; flex-wrap: wrap; justify-content: center; gap: var(--gap); }
.stat-item { flex: 0 0 calc((100% - 3 * var(--gap)) / 4); box-sizing: border-box; min-width: 0; display: flex; align-items: center; gap: .85rem;
  background: #fff; border: 1px solid var(--pm-line); border-radius: 16px; padding: 1rem 1.1rem; box-shadow: 0 8px 22px rgba(0,0,0,.18); transition: transform .18s, box-shadow .18s; }
.stat-item:hover { transform: translateY(-2px); }
.stat-ico { flex: 0 0 46px; width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: var(--pm-green-soft); color: var(--pm-green); font-size: 1.35rem; }
.stat-txt { min-width: 0; }
.stat-num { font-family: var(--font-head); font-size: clamp(1.35rem, 2.3vw, 1.75rem); font-weight: 700; color: var(--pm-green-dark); line-height: 1.1; white-space: nowrap; }
.stat-label { font-size: .8rem; color: #5b6560; line-height: 1.25; margin-top: .2rem; }
@media (max-width: 991.98px) { .stat-item { flex-basis: calc((100% - 2 * var(--gap)) / 3); } }
@media (max-width: 767.98px) {
  .stat-band { padding: 1.2rem 0; }
  .stat-grid { --gap: .6rem; }
  .stat-item { flex-basis: calc((100% - var(--gap)) / 2); flex-direction: column; align-items: flex-start; gap: .55rem; padding: .85rem .9rem; border-radius: 14px; }
  .stat-ico { flex-basis: auto; width: 38px; height: 38px; border-radius: 11px; font-size: 1.15rem; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: .76rem; }
}

/* ---------- 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: #fff; border: 0; border-radius: 18px; overflow: hidden; box-shadow: 0 30px 70px rgba(0,0,0,.45); }
.lightbox .lb-stage { position: relative; background: #0d1210; display: flex; align-items: center; justify-content: center; min-height: 240px; }
.lightbox .lb-stage img { max-height: 72vh; max-width: 100%; width: auto; height: auto; object-fit: contain; display: block; }
.lightbox .lb-close { position: absolute; top: 12px; right: 12px; z-index: 3; width: 38px; height: 38px; border-radius: 50%; border: 0; background: rgba(0,0,0,.55); color: #fff; font-size: 1.5rem; line-height: 1; cursor: pointer; transition: background .2s; }
.lightbox .lb-close:hover { background: rgba(0,0,0,.85); }
.lightbox .lb-nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.18); color: #fff; font-size: 2rem; line-height: 1; cursor: pointer; backdrop-filter: blur(4px); transition: background .2s; }
.lightbox .lb-nav:hover { background: rgba(255,255,255,.35); }
.lightbox .lb-prev { left: 12px; } .lightbox .lb-next { right: 12px; }
.lightbox .lb-info { display: flex; justify-content: space-between; align-items: flex-start; gap: 1rem; padding: 1rem 1.3rem 1.15rem; }
.lightbox .lb-title { font-weight: 700; color: var(--pm-ink); font-size: 1.05rem; line-height: 1.35; margin-bottom: .2rem; }
.lightbox .lb-meta { color: #6b7570; font-size: .86rem; display: flex; flex-wrap: wrap; gap: .2rem .9rem; }
.lightbox .lb-count { flex: none; background: var(--pm-green-soft); color: var(--pm-green-dark); border-radius: 99px; padding: .2rem .8rem; font-size: .8rem; font-weight: 700; }
.lightbox .lb-count:empty { display: none; }
@media (max-width: 575.98px) { .lightbox .lb-nav { width: 38px; height: 38px; font-size: 1.6rem; } .lightbox .lb-stage img { max-height: 60vh; } }
.gallery-item .gdate { position: absolute; top: 8px; left: 8px; background: rgba(0,0,0,.55); color: #fff; font-size: .7rem; padding: .15rem .6rem; border-radius: 99px; backdrop-filter: blur(3px); }

/* ---------- 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; object-position: center top; width: 100%; height: 100%; }
.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; }

/* ---------- Header 2 baris (desktop): baris 1 = logo + akun + Donasi, baris 2 = semua menu ---------- */
.header-actions { display: flex; align-items: center; gap: .6rem; margin-left: auto; }
.header-donate { white-space: nowrap; }
.acc-btn { display: inline-flex; align-items: center; gap: .55rem; padding: .25rem .9rem .25rem .3rem; border: 1.5px solid var(--pm-line); border-radius: 99px; text-decoration: none; color: var(--pm-ink); font-weight: 600; font-size: .9rem; background: #fff; transition: .2s; max-width: 210px; }
.acc-btn:hover, .acc-btn.active { border-color: var(--pm-green); color: var(--pm-green-dark); background: var(--pm-green-soft); }
.acc-circle { width: 34px; height: 34px; border-radius: 50%; flex: none; display: grid; place-items: center; overflow: hidden; background: var(--pm-green); color: #fff; font-weight: 700; font-size: 1rem; }
.acc-circle img { width: 100%; height: 100%; object-fit: cover; display: block; }
.acc-name { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.header-actions .navbar-toggler { margin-left: .1rem; }
@media (min-width: 992px) {
  .site-header .navbar { padding: .55rem 0 0; }
  .site-header .navbar > .container { flex-wrap: wrap; align-items: center; }
  .site-header .navbar-collapse { order: 3; flex-basis: 100% !important; margin-top: .55rem; border-top: 1px solid var(--pm-line); padding: .3rem 0; }
  .site-header .main-nav { width: 100%; margin: 0 !important; justify-content: center; gap: .15rem; }
  .site-header .main-nav .nav-link { padding: .6rem .95rem !important; }
  .site-header .main-nav .nav-link.active::after { bottom: .1rem; }
}
@media (max-width: 991.98px) {
  .site-header .header-donate { display: none; }
}
@media (max-width: 575.98px) {
  .acc-btn { padding: .2rem; }
  .acc-name { display: none; }
}

/* ---------- Tampilan HP seperti aplikasi ---------- */
.app-bar, .app-sheet, .app-backdrop { display: none; }
@media (max-width: 991.98px) {
  body { padding-bottom: calc(92px + env(safe-area-inset-bottom)); }
  body.app-lock { overflow: hidden; }
  /* bar atas: logo + Donasi */
  .site-header .navbar { padding: .55rem 0; }
  .site-header .navbar > .container { flex-wrap: nowrap; }
  .site-header .navbar-collapse, .site-header .navbar-toggler, .site-header .header-actions .acc-btn { display: none !important; }
  .site-header .header-donate { display: inline-flex !important; padding: .5rem 1rem; font-size: .88rem; }
  .brand-tag { display: none; }
  .brand-name { font-size: 1rem; white-space: normal; line-height: 1.2; }
  /* bar bawah: dock melayang dengan dua tab */
  .app-bar { display: flex; gap: .3rem; position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); z-index: 1040; padding: .35rem; background: rgba(255,255,255,.97); backdrop-filter: blur(12px); border: 1px solid var(--pm-line); border-radius: 22px; box-shadow: 0 10px 30px -8px rgba(0,0,0,.35); max-width: 460px; margin: 0 auto; }
  .app-burger, .app-prof { flex: 1 1 0; min-width: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .15rem; height: 58px; border: 0; border-radius: 17px; background: transparent; color: #4a5550; text-decoration: none; font-size: .74rem; font-weight: 700; letter-spacing: .01em; transition: background .2s, color .2s, transform .12s; }
  .app-burger svg { width: 26px; height: 26px; }
  .app-burger:active, .app-prof:active { transform: scale(.95); }
  .app-burger[aria-expanded="true"], .app-prof.on { background: var(--pm-green-soft); color: var(--pm-green-dark); }
  .app-burger:hover, .app-prof:hover { color: var(--pm-green-dark); }
  .app-prof .acc-circle { width: 28px; height: 28px; font-size: .85rem; }
  .app-prof.on .acc-circle { box-shadow: 0 0 0 2px var(--pm-green-mid); }
  .app-prof-t { max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; line-height: 1.1; }
  /* lembar menu */
  .app-backdrop { display: block; position: fixed; inset: 0; z-index: 1045; background: rgba(10,20,15,.5); opacity: 0; transition: opacity .25s; }
  .app-backdrop.show { opacity: 1; }
  .app-sheet { display: block; position: fixed; left: 0; right: 0; bottom: 0; z-index: 1050; max-height: 86vh; overflow-y: auto; background: #fff; border-radius: 24px 24px 0 0; padding: .6rem 1.1rem calc(1.2rem + env(safe-area-inset-bottom)); transform: translateY(100%); transition: transform .28s cubic-bezier(.2,.8,.2,1); box-shadow: 0 -20px 50px rgba(0,0,0,.3); }
  .app-sheet.show { transform: none; }
  .app-sheet[hidden], .app-backdrop[hidden] { display: none; }
  .app-sheet-grip { width: 44px; height: 5px; border-radius: 99px; background: var(--pm-line); margin: .2rem auto .9rem; }
  .app-acc { display: flex; align-items: center; gap: .8rem; padding: .8rem; border-radius: 16px; background: var(--pm-green-soft); text-decoration: none; color: var(--pm-ink); margin-bottom: .8rem; }
  .app-acc .acc-circle { width: 46px; height: 46px; font-size: 1.2rem; }
  .app-acc-t { display: flex; flex-direction: column; min-width: 0; flex: 1; }
  .app-acc-t strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .app-acc-t small { color: #6b7570; }
  .app-chev { font-size: 1.6rem; color: var(--pm-green); line-height: 1; }
  .app-menu { display: flex; flex-direction: column; }
  .app-menu > a, .app-menu summary { display: flex; justify-content: space-between; align-items: center; padding: .95rem .6rem; font-weight: 600; font-size: 1rem; color: var(--pm-ink); text-decoration: none; border-bottom: 1px solid var(--pm-line); list-style: none; cursor: pointer; }
  .app-menu summary::-webkit-details-marker { display: none; }
  .app-menu summary::after { content: '\203A'; font-size: 1.5rem; color: #8a948f; transition: transform .2s; }
  .app-menu details[open] > summary::after { transform: rotate(90deg); }
  .app-menu a.on { color: var(--pm-green); }
  .app-menu a.sub { display: block; color: var(--pm-ink); text-decoration: none; padding: .8rem .8rem .8rem 1.6rem; margin: 0 0 0 .6rem; font-weight: 500; font-size: .95rem; border-bottom: 1px solid var(--pm-line); border-left: 3px solid var(--pm-green-soft); background: var(--pm-gray-soft); }
  .app-menu a.sub:last-child { border-bottom: 0; }
  .app-menu a.sub.on { color: var(--pm-green); font-weight: 600; border-left-color: var(--pm-green); }
  .app-menu details[open] > summary { color: var(--pm-green); }
  .app-menu details[open] { border-bottom: 1px solid var(--pm-line); }
  .app-menu a.out { color: #c0392b; border-bottom: 0; }
}

/* ---------- HP: hilangkan getaran saat scroll (bar menempel stabil) ---------- */
@media (max-width: 991.98px) {
  html { scroll-behavior: auto; }
  .site-header { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; -webkit-transform: translateZ(0); transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; }
  .app-bar { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; -webkit-transform: translateZ(0); transform: translateZ(0); -webkit-backface-visibility: hidden; backface-visibility: hidden; will-change: transform; }
  .app-backdrop { -webkit-backdrop-filter: none; backdrop-filter: none; }
  body { overscroll-behavior-y: none; }
}
.lightbox .lb-meta a { color: var(--pm-green); font-weight: 700; text-decoration: none; } .lightbox .lb-meta a:hover { text-decoration: underline; }
