/* pilar.css — gaya fitur "6 PILAR LAZISMU" (dipakai landing.html & index.html).
   Dimuat SEBELUM mobile-saja.css agar aturan anti-scroll-horizontal tetap menang. */

/* ── kartu poster ───────────────────────────────────────────── */
.pl-wrap { display: grid; gap: 18px; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .pl-wrap { grid-template-columns: minmax(0, 1fr); } }

.pl-poster { margin: 0; position: relative; border-radius: 18px; overflow: hidden; background: #fff;
  border: 1px solid #e8eaf0; box-shadow: 0 10px 30px rgba(16, 24, 40, .10); }
.pl-poster img { display: block; width: 100%; height: auto; cursor: zoom-in; }
.pl-poster figcaption { padding: 10px 14px 14px; font-size: 12.5px; color: #667085; line-height: 1.5; }
.pl-zoom-btn { position: absolute; right: 10px; bottom: 56px; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; gap: 6px; padding: 8px 13px; border-radius: 999px;
  background: rgba(15, 23, 42, .78); color: #fff; font: inherit; font-size: 12.5px; font-weight: 600;
  backdrop-filter: blur(4px); }
.pl-zoom-btn:hover { background: rgba(15, 23, 42, .92); }

/* ── daftar 6 pilar ─────────────────────────────────────────── */
.pl-daftar { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.pl-item { display: flex; gap: 12px; align-items: flex-start; background: #fff; border: 1px solid #e8eaf0;
  border-left: 4px solid var(--pl, #C8102E); border-radius: 14px; padding: 12px 14px; }
.pl-ik { flex: 0 0 auto; width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center;
  color: #fff; background: var(--pl, #C8102E); }
.pl-teks { min-width: 0; }
.pl-teks b { display: block; font-size: 14.5px; color: #101828; line-height: 1.35; }
.pl-teks span { display: block; font-size: 12.8px; color: #667085; line-height: 1.5; margin-top: 2px; }
.pl-motto { margin: 14px 0 0; text-align: center; font-size: 13px; font-weight: 600; color: #B3123B; }

/* ── halaman aplikasi #/pilar ───────────────────────────────── */
.pl-app-daftar { display: grid; gap: 10px; }
.pl-aksi { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
@media (max-width: 420px) { .pl-aksi { grid-template-columns: 1fr; } }

/* ── lightbox (perbesar gambar) ─────────────────────────────── */
.pl-zoom { position: fixed; inset: 0; z-index: 9999; display: none; align-items: center; justify-content: center;
  background: rgba(6, 10, 20, .92); padding: 14px; }
.pl-zoom.buka { display: flex; }
.pl-zoom img { max-width: 96vw; max-height: 84vh; width: auto; height: auto; border-radius: 10px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, .5); cursor: zoom-out; }
.pl-zoom .pl-tutup { position: absolute; top: 14px; right: 14px; width: 42px; height: 42px; border-radius: 50%;
  border: 0; cursor: pointer; background: rgba(255, 255, 255, .16); color: #fff; font-size: 22px; line-height: 1;
  display: grid; place-items: center; }
.pl-zoom .pl-tutup:hover { background: rgba(255, 255, 255, .3); }
.pl-zoom .pl-cap { position: absolute; bottom: 16px; left: 0; right: 0; text-align: center; color: #e7ecf5;
  font-size: 12.5px; padding: 0 16px; }
html.pl-kunci, html.pl-kunci body { overflow: hidden; }

/* ── Galeri 6 pilar: HANYA gambar; fitur terbuka setelah gambar diklik ── */
.pl-gal { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.pl-kartu { position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; border: 0; padding: 0;
  border-radius: 16px; overflow: hidden; background: #0B1B2B; cursor: pointer;
  box-shadow: 0 8px 22px rgba(15, 23, 42, .14); }
.pl-kartu img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.pl-kartu::after { content: ''; position: absolute; inset: auto 0 0 0; height: 54%;
  background: linear-gradient(180deg, rgba(5, 13, 23, 0) 0%, rgba(5, 13, 23, .74) 100%); }
.pl-kartu::before { content: ''; position: absolute; inset: auto 0 0 0; height: 4px; background: var(--pl, #C8102E); z-index: 3; }
.pl-kartu:hover img { transform: scale(1.045); }
.pl-kartu:focus-visible { outline: 3px solid #EE7A1E; outline-offset: 2px; }
.pl-cap2 { position: absolute; left: 11px; right: 11px; bottom: 12px; z-index: 2; color: #fff;
  font-size: 12.6px; font-weight: 800; line-height: 1.25; text-align: left; text-shadow: 0 2px 10px rgba(0, 0, 0, .5); }
@media (min-width: 760px) { .pl-gal { grid-template-columns: repeat(3, 1fr); gap: 14px; } }

/* ── Panel detail pilar (fitur baru setelah gambar diklik) ── */
.pl-detail { position: fixed; inset: 0; z-index: 9998; display: none; background: rgba(7, 15, 26, .72); }
.pl-detail.buka { display: flex; align-items: flex-end; justify-content: center; }
.pl-d-panel { position: relative; width: 100%; max-width: 720px; max-height: 92vh; overflow-y: auto;
  background: #fff; border-radius: 22px 22px 0 0; box-shadow: 0 -10px 40px rgba(5, 13, 23, .35); }
.pl-d-tutup { position: absolute; top: 12px; right: 12px; z-index: 4; width: 40px; height: 40px; border: 0;
  border-radius: 50%; background: rgba(8, 20, 35, .58); color: #fff; font-size: 21px; line-height: 1; cursor: pointer; }
.pl-d-foto { position: relative; margin: 0; }
.pl-d-foto img { display: block; width: 100%; height: 232px; object-fit: cover; }
.pl-d-foto figcaption { position: absolute; left: 16px; right: 16px; bottom: 12px; color: #fff;
  font-size: 12.8px; font-weight: 600; text-shadow: 0 2px 10px rgba(0, 0, 0, .65); }
.pl-d-isi { padding: 16px 18px 24px; }
.pl-d-tanda { display: inline-block; font-size: 11.5px; font-weight: 800; letter-spacing: .5px;
  text-transform: uppercase; color: #fff; background: var(--pl, #C8102E); padding: 4px 10px; border-radius: 99px; }
.pl-d-isi h3 { margin: 10px 0 5px; font-size: 21px; line-height: 1.25; color: #101828; }
.pl-d-ket { margin: 0; font-size: 13.6px; font-weight: 700; color: #B3123B; }
.pl-d-teks { margin: 10px 0 0; font-size: 14px; line-height: 1.65; color: #475467; }
.pl-d-muat, .pl-d-kosong { margin: 0; font-size: 13px; line-height: 1.6; color: #667085; }

.pl-d-program { margin-top: 16px; border-top: 1px solid #e8eaf0; padding-top: 14px; }
.pl-d-program h4 { margin: 0 0 10px; font-size: 14px; color: #101828; }
.pl-p { border: 1px solid #e8eaf0; border-radius: 13px; padding: 10px 12px; margin-bottom: 9px; background: #FBFCFE; }
.pl-p-atas { display: flex; align-items: flex-start; gap: 10px; }
.pl-p-atas b { flex: 1; font-size: 13.4px; line-height: 1.35; color: #101828; }
.pl-p-atas span { font-size: 12.4px; font-weight: 800; color: #1C7B45; }
.pl-p-bar { height: 7px; border-radius: 99px; background: #E9EDF3; overflow: hidden; margin: 8px 0; }
.pl-p-bar i { display: block; height: 100%; border-radius: 99px; background: linear-gradient(90deg, #EE7A1E, #F4A23C); }
.pl-p-bawah { display: flex; align-items: center; gap: 10px; }
.pl-p-bawah span { flex: 1; font-size: 12.1px; color: #667085; }
.pl-p-btn { border: 0; cursor: pointer; border-radius: 99px; padding: 7px 15px; font-size: 12.4px; font-weight: 800;
  color: #fff; background: #C8102E; }
.pl-d-aksi { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 16px; }
.pl-d-utama, .pl-d-garis { border: 0; cursor: pointer; border-radius: 12px; padding: 12px 18px; font-size: 13.6px; font-weight: 800; }
.pl-d-utama { flex: 1 1 190px; color: #fff; background: linear-gradient(135deg, #C8102E, #E34A2B); }
.pl-d-garis { flex: 1 1 150px; color: #101828; background: #F2F4F7; }
@media (min-width: 760px) {
  .pl-detail.buka { align-items: center; }
  .pl-d-panel { border-radius: 20px; }
}
