/* Halaman dalam SDIT Alif Smart (berita, galeri, halaman statis, formulir PGH, 404). Dipakai bersama beranda2.css. */
body.v2 {
    --primary-green: #06703f; --secondary-green: #0b4f3a; --accent-gold: #D4AF37; --bg-light: #f7fcf9;
}
body.v2-dalam { background: #f7fcf9; }
body.v2 :where(h1, h2, h3, h4, p, figure, blockquote) { margin: 0; }
body.v2-dalam { display: flex; flex-direction: column; min-height: 100vh; }
body.v2-dalam > main { flex: 1 0 auto; }

/* ===== Spanduk judul halaman ===== */
.v2-banner { position: relative; overflow: hidden; padding: 34px 0 76px; background: #eefaf4 url('../img/v2/bg-hero.webp') center / cover no-repeat; }
.v2-banner::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 60px; background: linear-gradient(rgba(247, 252, 249, 0), #f7fcf9); pointer-events: none; }
.v2-banner-dekor { position: absolute; right: 2%; bottom: -16%; width: clamp(150px, 20vw, 260px); opacity: .6; pointer-events: none; animation: v2-melayang-kecil 9s ease-in-out infinite; }
.v2-banner-in { position: relative; z-index: 2; }
.v2-banner-in > * { animation: v2-masuk .7s cubic-bezier(.2, .7, .2, 1) both; }
.v2-banner-in > :nth-child(2) { animation-delay: .07s; }
.v2-banner-in > :nth-child(3) { animation-delay: .14s; }
.v2-banner-in > :nth-child(4) { animation-delay: .21s; }
.v2-remah { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin: 0 0 14px; padding: 0; font-size: .8rem; color: var(--v2-abu); list-style: none; }
.v2-remah li + li::before { content: "\203A"; margin-right: 6px; color: #8aa59a; }
.v2-remah a:hover { color: var(--v2-hijau); text-decoration: underline; }
.v2-remah [aria-current] { color: var(--v2-hijau-tua); font-weight: 600; max-width: 46ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; vertical-align: bottom; }
.v2-banner h1 { font-weight: 800; font-size: clamp(1.7rem, 3.6vw, 2.7rem); line-height: 1.15; letter-spacing: -.5px; color: var(--v2-hijau-tua); max-width: 880px; text-wrap: balance; }
.v2-banner .v2-sub { margin-top: 10px; max-width: 640px; color: #36443d; font-size: 1rem; line-height: 1.65; }
.v2-banner-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 14px; font-size: .84rem; color: var(--v2-abu); }
.v2-banner-meta .v2-chip { position: static; box-shadow: none; border: 1px solid var(--v2-garis); padding: 4px 12px; }

/* ===== Isi halaman ===== */
.v2-dalam-isi { position: relative; z-index: 3; margin-top: -46px; padding-bottom: 36px; }
.v2-panel { background: #fff; border: 1.5px solid var(--v2-garis); border-radius: 22px; box-shadow: 0 16px 44px rgba(11, 79, 58, .08); padding: clamp(20px, 4vw, 44px); }
.v2-panel + .v2-panel { margin-top: 20px; }
.v2-prosa { max-width: 820px; margin-inline: auto; font-size: 1rem; line-height: 1.85; color: #33423b; overflow-wrap: anywhere; }
.v2-prosa > :first-child { margin-top: 0; }
.v2-prosa p { margin: 0 0 1.1em; }
.v2-prosa h2, .v2-prosa h3, .v2-prosa h4 { color: var(--v2-hijau-tua); font-weight: 700; line-height: 1.3; margin: 1.7em 0 .6em; }
.v2-prosa h2 { font-size: 1.45rem; }
.v2-prosa h3 { font-size: 1.2rem; }
.v2-prosa h4 { font-size: 1.05rem; }
.v2-prosa a { color: var(--v2-hijau); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.v2-prosa a:hover { color: var(--v2-hijau-tua); }
.v2-prosa ul, .v2-prosa ol { margin: 0 0 1.1em; padding-left: 1.4em; }
.v2-prosa ul { list-style: disc; }
.v2-prosa ol { list-style: decimal; }
.v2-prosa li { margin-bottom: .4em; padding-left: .2em; }
.v2-prosa li::marker { color: var(--v2-hijau); font-weight: 700; }
.v2-prosa img { max-width: 100%; height: auto; border-radius: 14px; margin: .6em auto; }
.v2-prosa figure { margin: 1.3em 0; text-align: center; }
.v2-prosa figcaption { margin-top: 6px; font-size: .85rem; color: var(--v2-abu); }
.v2-prosa blockquote { margin: 1.3em 0; padding: 14px 20px; border-left: 4px solid var(--v2-koral); background: var(--v2-mint); border-radius: 0 14px 14px 0; color: #3d4c45; font-style: italic; }
.v2-prosa hr { border: 0; height: 1px; background: var(--v2-garis); margin: 1.8em 0; }
.v2-prosa iframe, .v2-prosa video { max-width: 100%; border: 0; border-radius: 14px; }
.v2-prosa strong { color: #1f2d27; }
.v2-prosa :is(h2, h3, h4), .v2-prosa :is(h2, h3, h4) * { color: var(--v2-hijau-tua) !important; }
.v2-tabel { overflow-x: auto; margin: 1.3em 0; border: 1.5px solid var(--v2-garis); border-radius: 14px; -webkit-overflow-scrolling: touch; }
.v2-tabel table { width: 100% !important; min-width: 480px; border-collapse: collapse; font-size: .93rem; line-height: 1.6; }
.v2-tabel td, .v2-tabel th { padding: 10px 14px; border: 0 !important; border-bottom: 1px solid #e3f0e9 !important; vertical-align: top; text-align: left; }
.v2-tabel tr:last-child td { border-bottom: 0 !important; }
.v2-tabel tr:nth-child(even) td { background: #f5fbf8; }
.v2-tabel tr:first-child td { background: var(--v2-mint); }

/* Tautan halaman lain */
.v2-lainnya { max-width: 820px; margin: 28px auto 0; padding-top: 22px; border-top: 1px solid var(--v2-garis); }
.v2-lainnya h2 { font-size: .85rem; font-weight: 700; letter-spacing: .6px; text-transform: uppercase; color: var(--v2-hijau); margin: 0 0 12px; }
.v2-lainnya-daftar { display: flex; flex-wrap: wrap; gap: 8px; }
.v2-lainnya-daftar a { padding: 7px 16px; border-radius: 999px; background: var(--v2-mint); border: 1px solid var(--v2-garis); font-size: .85rem; font-weight: 600; color: var(--v2-hijau-tua); transition: background .2s ease, color .2s ease, transform .2s ease; }
.v2-lainnya-daftar a:hover { background: var(--v2-hijau); color: #fff; transform: translateY(-2px); }

/* ===== Daftar berita ===== */
.v2-berita-grid.banyak { grid-template-columns: repeat(3, 1fr); gap: 22px; }
.v2-berita-gambar.foto { aspect-ratio: 16 / 10; }
.v2-berita-gambar.foto img { object-fit: cover; padding: 0; transform: none; }
.v2-berita-kartu:hover .v2-berita-gambar.foto img { transform: scale(1.06); }
.v2-berita-gambar.foto img.tanpa-foto { object-fit: contain; padding: 22px; }
.v2-berita-ringkas { font-size: .84rem; line-height: 1.6; color: var(--v2-abu); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.v2-berita-grid.banyak .v2-berita-isi strong { font-size: 1.02rem; -webkit-line-clamp: 3; }
.v2-halaman { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 34px 0 6px; }
.v2-halaman a, .v2-halaman span { min-width: 42px; height: 42px; padding: 0 12px; display: inline-grid; place-items: center; border-radius: 12px; border: 1.5px solid var(--v2-garis); background: #fff; color: var(--v2-hijau); font-weight: 600; font-size: .92rem; transition: transform .2s ease, background .2s ease; }
.v2-halaman a:hover { background: var(--v2-mint); transform: translateY(-2px); }
.v2-halaman .aktif { background: linear-gradient(135deg, #075f3a, #12894f); border-color: transparent; color: #fff; }

/* ===== Artikel berita ===== */
.v2-artikel-gambar { max-width: 980px; margin: 0 auto 30px; border-radius: 18px; overflow: hidden; background: #e6f6ee; box-shadow: 0 10px 30px rgba(11, 79, 58, .12); }
.v2-artikel-gambar img { width: 100%; height: auto; max-height: 560px; object-fit: cover; }
.v2-bagikan { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; max-width: 820px; margin: 30px auto 0; padding-top: 20px; border-top: 1px solid var(--v2-garis); font-size: .9rem; font-weight: 600; color: var(--v2-hijau-tua); }
.v2-tombol-kecil { min-height: 38px; padding: 0 16px; font-size: .82rem; }
.v2-terkait { margin-top: 34px; }
.v2-terkait > h2 { display: flex; align-items: center; gap: 12px; font-weight: 800; font-size: 1.35rem; color: var(--v2-hijau-tua); margin-bottom: 14px; }
.v2-terkait > h2::before { content: ""; width: 4px; height: 24px; border-radius: 2px; background: var(--v2-koral); }

/* ===== Galeri ===== */
.galeri-filter-bar { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: 0 0 24px; }
.filter-pill { padding: 8px 20px; border-radius: 999px; border: 1.5px solid var(--v2-garis); background: #fff; color: var(--v2-hijau-tua); font: 600 .86rem 'Poppins', sans-serif; cursor: pointer; transition: background .2s ease, color .2s ease, transform .2s ease; }
.filter-pill:hover { background: var(--v2-mint); transform: translateY(-2px); }
.filter-pill.active { background: linear-gradient(135deg, #075f3a, #12894f); border-color: transparent; color: #fff; }
.galeri-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.galeri-item { position: relative; overflow: hidden; border-radius: 16px; aspect-ratio: 4 / 3; background: #e6f6ee; cursor: zoom-in; box-shadow: 0 6px 18px rgba(11, 79, 58, .08); transition: opacity .3s ease, transform .3s ease, box-shadow .3s ease; }
.galeri-item:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(11, 79, 58, .16); }
.galeri-item.item-hidden { opacity: 0; pointer-events: none; }
.galeri-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.galeri-item:hover img { transform: scale(1.07); }
.galeri-zoom-icon { position: absolute; top: 10px; right: 10px; width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, .92); color: var(--v2-hijau); opacity: 0; translate: 0 -6px; transition: opacity .25s ease, translate .25s ease; }
.galeri-item:hover .galeri-zoom-icon { opacity: 1; translate: 0 0; }
.galeri-caption { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 14px 12px; color: #fff; background: linear-gradient(transparent, rgba(5, 40, 28, .85)); opacity: 0; translate: 0 8px; transition: opacity .25s ease, translate .25s ease; }
.galeri-item:hover .galeri-caption { opacity: 1; translate: 0 0; }
.galeri-caption .g-judul { font-weight: 600; font-size: .92rem; line-height: 1.3; }
.galeri-caption .g-kategori { display: block; margin-top: 3px; font-size: .7rem; letter-spacing: .5px; text-transform: uppercase; color: #ffd76a; }
.galeri-empty { text-align: center; padding: 50px 10px; color: var(--v2-abu); }
.galeri-empty .empty-icon-wrap { width: 72px; height: 72px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--v2-mint); color: var(--v2-hijau); font-size: 1.8rem; }
.lightbox-overlay { position: fixed; inset: 0; z-index: 3000; display: flex; align-items: center; justify-content: center; padding: 40px; background: rgba(5, 20, 15, .94); opacity: 0; visibility: hidden; transition: opacity .28s ease, visibility 0s linear .28s; }
.lightbox-overlay.open { opacity: 1; visibility: visible; transition: opacity .28s ease; }
.lightbox-figure { max-width: 900px; max-height: 88vh; width: 100%; display: flex; flex-direction: column; align-items: center; transform: scale(.94) translateY(10px); transition: transform .32s cubic-bezier(.2, .8, .2, 1); }
.lightbox-overlay.open .lightbox-figure { transform: none; }
.lightbox-figure img { max-width: 100%; max-height: 72vh; border-radius: 12px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); object-fit: contain; }
.lightbox-counter { position: fixed; top: 24px; left: 50%; transform: translateX(-50%); padding: 7px 20px; border-radius: 50px; background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .15); color: #fff; font-size: .8rem; font-weight: 600; }
.lightbox-caption { margin-top: 18px; color: #fff; text-align: center; }
.lightbox-caption .lb-judul { font-weight: 600; font-size: 1.05rem; }
.lightbox-caption .lb-kategori { display: block; margin-top: 4px; font-size: .78rem; letter-spacing: 1px; text-transform: uppercase; color: #ffd76a; }
.lightbox-close, .lightbox-prev, .lightbox-next { position: fixed; width: 46px; height: 46px; border: 0; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #fff; font-size: 1.2rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: background .2s ease, color .2s ease; }
.lightbox-close:hover, .lightbox-prev:hover, .lightbox-next:hover { background: #fff; color: var(--v2-hijau-tua); }
.lightbox-close { top: 24px; right: 24px; }
.lightbox-prev { left: 24px; top: 50%; transform: translateY(-50%); }
.lightbox-next { right: 24px; top: 50%; transform: translateY(-50%); }

/* ===== Kontak ===== */
.v2-kontak-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.v2-kontak-kartu { display: flex; flex-direction: column; gap: 6px; padding: 22px; border: 1.5px solid var(--v2-garis); border-radius: 18px; background: #fff; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease; }
.v2-kontak-kartu:hover { transform: translateY(-3px); border-color: #8ed0ae; box-shadow: 0 12px 26px rgba(11, 79, 58, .1); }
.v2-kontak-ikon { width: 46px; height: 46px; display: grid; place-items: center; border-radius: 14px; background: var(--v2-mint); color: var(--v2-hijau); font-size: 1.25rem; margin-bottom: 6px; }
.v2-kontak-kartu h2 { font-size: 1.05rem; font-weight: 700; color: var(--v2-hijau-tua); }
.v2-kontak-kartu p { color: #3d4c45; line-height: 1.6; font-size: .95rem; }
.v2-kontak-kartu .v2-tombol { align-self: flex-start; margin-top: 10px; }
.v2-jam { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 6px; font-size: .92rem; }
.v2-jam li { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px dashed #dcebe3; }
.v2-jam li:last-child { border-bottom: 0; }
.v2-sosmed-daftar { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.v2-sosmed-daftar a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; background: var(--v2-mint); border: 1px solid var(--v2-garis); font-weight: 600; font-size: .86rem; color: var(--v2-hijau-tua); }
.v2-sosmed-daftar a:hover { background: var(--v2-hijau); color: #fff; }

/* ===== 404 ===== */
.v2-404 { text-align: center; padding: 20px 0 10px; }
.v2-404 .angka { font-weight: 800; font-size: clamp(4.5rem, 16vw, 8rem); line-height: 1; letter-spacing: -4px; background: linear-gradient(135deg, #0c8f4d, #1ec063); -webkit-background-clip: text; background-clip: text; color: transparent; }
.v2-404 img { width: 150px; margin: 0 auto 4px; animation: v2-melayang 5s ease-in-out infinite; }
.v2-404 h1 { font-size: 1.5rem; font-weight: 800; color: var(--v2-hijau-tua); margin: 6px 0 8px; }
.v2-404 p { color: var(--v2-abu); margin-bottom: 20px; }
.v2-404 .v2-tombol-baris { justify-content: center; }

/* ===== Formulir PGH (menyesuaikan pgh.css) ===== */
.v2 .btn-gold { background: linear-gradient(135deg, #075f3a, #12894f); color: #fff; box-shadow: 0 8px 20px rgba(6, 112, 63, .28); border: 0; }
.v2 .btn-gold:hover { transform: translateY(-2px); }
.v2-pgh .pgh-isi { padding-top: 0; margin-top: -40px; position: relative; z-index: 3; }
.v2-pgh .pgh-info { border-left-color: var(--v2-koral); box-shadow: 0 10px 30px rgba(11, 79, 58, .06); }
.v2-pgh .pgh-bagian { box-shadow: 0 6px 20px rgba(11, 79, 58, .05); }

/* ===== Tablet / HP ===== */
@media (max-width: 1020px) {
    .v2-berita-grid.banyak { grid-template-columns: repeat(2, 1fr); }
    .v2-berita-grid.banyak > :nth-child(3) { display: flex; }
}
@media (max-width: 680px) {
    .v2-banner { padding: 24px 0 66px; }
    .v2-remah li:nth-child(3):last-child { display: none; }
    .v2-banner-dekor { display: none; }
    .v2-berita-grid.banyak { grid-template-columns: 1fr; }
    .v2-kontak-grid { grid-template-columns: 1fr; }
    .v2-panel { border-radius: 18px; }
    .lightbox-overlay { padding: 56px 12px 20px; }
    .lightbox-prev, .lightbox-next { width: 40px; height: 40px; font-size: 1rem; }
    .lightbox-prev { left: 8px; } .lightbox-next { right: 8px; }
    .lightbox-close { top: 12px; right: 12px; }
    .galeri-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
}
@media (prefers-reduced-motion: reduce) {
    .v2-banner-in > *, .v2-banner-dekor, .v2-404 img { animation: none !important; }
}
