/* ==========================================================================
   Situs publik newpjg.com (Views/frontend/*)
   Satu warna utama: EMAS dari logo, di atas navy gelap. Merah & biru lama dibuang.
   Dimuat SESUDAH bootstrap.min.css (layout.php), jadi override kelas Bootstrap cukup
   dengan spesifisitas yang sama.
   ========================================================================== */

:root {
    --gold:        #b8913a;
    --gold-dark:   #8c6a22;   /* teks emas di atas putih (kontras ±5:1) */
    --gold-light:  #e3cd94;
    --gold-soft:   #faf6ec;
    --navy:        #0f172a;
    --navy-2:      #1e293b;
    --ink:         #1e293b;
    --muted:       #64748b;

    --bs-primary: var(--gold-dark);
    --bs-primary-rgb: 140, 106, 34;
    --bs-link-color: var(--gold-dark);
    --bs-link-color-rgb: 140, 106, 34;
    --bs-link-hover-color: var(--navy);

    --radius-lg: 20px;
    --radius-md: 12px;
    --shadow-premium: 0 14px 36px rgba(15, 23, 42, .10);
    --transition: all .3s cubic-bezier(.4, 0, .2, 1);
    --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* ── Dasar (Views/frontend/layout.php) ─────────────────────────────────── */
body {
    font-family: 'Roboto', system-ui, sans-serif;
    color: var(--ink);
    background: #fff;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
}
h1, h2, h3, h4, h5, h6 { font-family: 'Roboto', sans-serif; font-weight: 800; }
.font-serif { font-family: var(--font-serif); font-weight: 700; letter-spacing: -.01em; }
a { color: var(--gold-dark); }
a:hover { color: var(--navy); }

/* Tombol: btn-primary Bootstrap ikut emas di semua halaman publik */
.btn-primary, .btn-gold {
    --bs-btn-color: var(--navy);
    --bs-btn-bg: var(--gold);
    --bs-btn-border-color: var(--gold);
    --bs-btn-hover-color: var(--navy);
    --bs-btn-hover-bg: var(--gold-light);
    --bs-btn-hover-border-color: var(--gold-light);
    --bs-btn-active-color: var(--navy);
    --bs-btn-active-bg: var(--gold-light);
    --bs-btn-active-border-color: var(--gold-light);
    --bs-btn-focus-shadow-rgb: 184, 145, 58;
    --bs-btn-disabled-bg: var(--gold);
    --bs-btn-disabled-border-color: var(--gold);
    font-weight: 700;
}
.btn-outline-primary {
    --bs-btn-color: var(--gold-dark);
    --bs-btn-border-color: var(--gold);
    --bs-btn-hover-color: var(--navy);
    --bs-btn-hover-bg: var(--gold);
    --bs-btn-hover-border-color: var(--gold);
    --bs-btn-active-color: var(--navy);
    --bs-btn-active-bg: var(--gold);
    --bs-btn-active-border-color: var(--gold);
    font-weight: 700;
}
.btn-ghost-light {
    --bs-btn-color: #fff;
    --bs-btn-border-color: rgba(255, 255, 255, .55);
    --bs-btn-hover-color: var(--navy);
    --bs-btn-hover-bg: #fff;
    --bs-btn-hover-border-color: #fff;
    --bs-btn-active-color: var(--navy);
    --bs-btn-active-bg: #fff;
    font-weight: 700;
}
.bg-primary { background-color: var(--gold-dark) !important; }
.text-primary { color: var(--gold-dark) !important; }
.bg-primary-subtle { background-color: var(--gold-soft) !important; }

/* ── Header ── */
.site-header {
    transition: var(--transition);
    background: rgba(255, 255, 255, .92);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border-bottom: 1px solid transparent;
}
.site-header.scrolled {
    box-shadow: 0 4px 20px rgba(15, 23, 42, .06);
    border-bottom-color: rgba(184, 145, 58, .18);
    padding-top: .4rem !important;
    padding-bottom: .4rem !important;
}
.navbar-brand img { height: 40px; }
.navbar-brand .brand-name { font-family: var(--font-serif); font-weight: 700; letter-spacing: .04em; color: var(--navy); }
.nav-link {
    font-weight: 500;
    color: #475569 !important;
    padding: .5rem 1rem !important;
    border-radius: 8px;
    transition: var(--transition);
}
.nav-link:hover, .nav-link.active {
    color: var(--gold-dark) !important;
    background: var(--gold-soft);
}
.dropdown-menu {
    border: none;
    box-shadow: var(--shadow-premium);
    border-radius: var(--radius-md);
    padding: .75rem;
    margin-top: 10px;
}
.dropdown-item { border-radius: 6px; padding: .55rem 1rem; font-weight: 500; color: #475569; }
.dropdown-item:hover, .dropdown-item:focus { background: var(--gold-soft); color: var(--gold-dark); }
.btn-cta {
    background: var(--navy);
    color: #fff !important;
    padding: .6rem 1.4rem !important;
    border-radius: 50px;
    font-weight: 600;
    transition: var(--transition);
}
.btn-cta:hover { background: var(--gold); color: var(--navy) !important; transform: translateY(-2px); }

/* navbar-expand-xl: di bawah 1200px menu dilipat (8 tautan + tombol tidak muat di 992–1199px) */
@media (max-width: 1199.98px) {
    .navbar-collapse {
        background: #fff;
        padding: 1rem;
        border-radius: 12px;
        box-shadow: var(--shadow-premium);
        margin-top: 12px;
        max-height: calc(100vh - 90px);
        overflow-y: auto;
    }
    .dropdown-menu { box-shadow: none; padding: 0 0 0 .75rem; margin-top: 0; }
}

/* ── Utilitas ── */
.section-padding { padding: 88px 0; }
@media (max-width: 767.98px) { .section-padding { padding: 60px 0; } }
.bg-premium { background: #f8fafc; }
.bg-gold-soft { background: var(--gold-soft); }
.rounded-4 { border-radius: 1.5rem !important; }
.fs-15px { font-size: 15px; }
.text-gradient {
    background: linear-gradient(135deg, var(--gold-dark), var(--gold-light));
    -webkit-background-clip: text; background-clip: text;
    -webkit-text-fill-color: transparent;
}

.card-premium {
    border: 1px solid rgba(15, 23, 42, .06);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    overflow: hidden;
}
.card-premium:hover { transform: translateY(-8px); box-shadow: var(--shadow-premium); border-color: rgba(184, 145, 58, .35); }

/* Judul bagian: label kecil emas + judul serif + garis */
.section-eyebrow {
    display: inline-flex; align-items: center; gap: .5rem;
    color: var(--gold-dark); font-weight: 700; font-size: .8rem;
    letter-spacing: .16em; text-transform: uppercase; margin-bottom: .75rem;
}
.section-eyebrow::before { content: ''; width: 28px; height: 2px; background: var(--gold); }
.section-title { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.9rem, 4vw, 2.75rem); line-height: 1.2; color: var(--navy); }
.section-lead { color: var(--muted); font-size: 1.075rem; max-width: 640px; }
.text-center .section-lead { margin-left: auto; margin-right: auto; }

/* ── Animasi muncul saat digulir ── */
.fade-up { opacity: 0; transform: translateY(28px); transition: opacity .8s ease, transform .8s ease; }
.fade-up.visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
    .fade-up { opacity: 1; transform: none; transition: none; }
    .card-premium:hover, .btn-cta:hover { transform: none; }
}

/* ── Footer ── */
.site-footer {
    background: var(--navy);
    color: rgba(255, 255, 255, .7);
    padding: 80px 0 30px;
    border-top: 3px solid var(--gold);
}
.footer-title { color: #fff; font-weight: 700; margin-bottom: 25px; }
/* Isi footer dari editor CMS (Summernote) membawa lebar piksel inline — jangan sampai
   melebihi kolomnya (logo footer 311px sempat membuat halaman bisa digeser ke samping). */
.site-footer img { max-width: 100%; height: auto !important; }
.footer-link { color: rgba(255, 255, 255, .65); text-decoration: none; display: block; margin-bottom: 12px; transition: var(--transition); }
.footer-link:hover { color: var(--gold-light); padding-left: 5px; }
.social-circle {
    width: 40px; height: 40px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .06);
    color: #fff; border-radius: 50%;
    margin-right: 10px; transition: var(--transition);
}
.social-circle:hover { background: var(--gold); color: var(--navy); transform: translateY(-3px); }

/* Tombol WhatsApp mengambang (muncul hanya bila app_settings.social_whatsapp terisi) */
.wa-float {
    position: fixed; right: 18px; bottom: 18px; z-index: 1030;
    width: 56px; height: 56px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: #25d366; color: #fff; font-size: 28px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, .2);
    transition: var(--transition);
}
.wa-float:hover { color: #fff; transform: translateY(-3px) scale(1.04); }

/* Banner halaman dalam (partials/page_banner.php). Warna & gambar dari CMS → Banner,
   dikirim layout lewat --banner-bg / --banner-img. */
.page-banner {
    margin-top: 83px;
    min-height: 200px;
    display: flex; align-items: center; justify-content: center;
    text-align: center; color: #fff;
    padding: 2.5rem 0;
    background-color: var(--banner-bg, var(--gold));
    background-image: var(--banner-img, none);
    background-size: cover; background-position: center; background-repeat: no-repeat;
}
.page-banner h1 { font-family: var(--font-serif); font-weight: 700; margin: 0; text-shadow: 0 2px 8px rgba(0, 0, 0, .25); }

/* ==========================================================================
   Beranda (Views/frontend/home.php) — prefiks hm-
   ========================================================================== */

/* Hero */
.hm-hero { margin-top: 83px; position: relative; background: var(--navy); }
.hm-hero .carousel-item { height: min(78vh, 720px); min-height: 520px; position: relative; }
.hm-hero .carousel-item > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
/* Banner jadi (slide tanpa judul): gambar utuh, latar = gambar yang sama diburamkan */
.hm-hero .hm-slide-banner > .hm-slide-img { object-fit: contain; }
.hm-hero .hm-slide-banner > .hm-slide-fill { filter: blur(28px) brightness(.85); transform: scale(1.15); }
/* Tinggi semua slide sengaja sama — tinggi yang berganti tiap slide membuat isi di bawahnya melompat. */
.hm-hero .carousel-item.hm-slide-banner { overflow: hidden; }
.hm-hero-overlay {
    position: absolute; inset: 0; z-index: 1;
    background:
        linear-gradient(90deg, rgba(15, 23, 42, .92) 0%, rgba(15, 23, 42, .65) 45%, rgba(15, 23, 42, .15) 100%),
        linear-gradient(0deg, rgba(15, 23, 42, .55) 0%, transparent 35%);
}
.hm-hero-caption { position: absolute; inset: 0; z-index: 2; display: flex; align-items: center; color: #fff; }
.hm-hero-caption .eyebrow {
    display: inline-block; color: var(--gold-light); font-weight: 700; font-size: .8rem;
    letter-spacing: .18em; text-transform: uppercase;
    padding: .35rem .9rem; border: 1px solid rgba(227, 205, 148, .45); border-radius: 50px;
    margin-bottom: 1.25rem;
}
.hm-hero-caption h1 {
    font-family: var(--font-serif); font-weight: 700;
    font-size: clamp(2.2rem, 6vw, 4.2rem); line-height: 1.1; margin-bottom: 1.1rem;
    max-width: 760px; text-wrap: balance;
}
.hm-hero-caption h1 .accent { color: var(--gold-light); }
.hm-hero-caption p { color: rgba(255, 255, 255, .78); font-size: clamp(1rem, 2vw, 1.15rem); max-width: 560px; margin-bottom: 2rem; }
.hm-hero .carousel-indicators { z-index: 3; margin-bottom: 1.5rem; }
.hm-hero .carousel-indicators [data-bs-target] { width: 10px; height: 10px; border-radius: 50%; margin: 0 5px; border: 0; opacity: .5; }
.hm-hero .carousel-indicators .active { width: 30px; border-radius: 5px; background: var(--gold-light); opacity: 1; }
.hm-hero .carousel-control-prev, .hm-hero .carousel-control-next { z-index: 3; width: 8%; }
@media (max-width: 767.98px) {
    .hm-hero .carousel-item { height: 62vh; min-height: 470px; }
    .hm-hero-overlay { background: linear-gradient(0deg, rgba(15, 23, 42, .95) 0%, rgba(15, 23, 42, .7) 55%, rgba(15, 23, 42, .3) 100%); }
    .hm-hero-caption { align-items: flex-end; padding-bottom: 4.5rem; }
    .hm-hero .carousel-control-prev, .hm-hero .carousel-control-next { display: none; }
}

/* Pita kepercayaan — menempel di bawah hero */
.hm-trust { position: relative; z-index: 5; margin-top: -48px; }
.hm-trust-bar {
    background: #fff; border-radius: var(--radius-lg);
    box-shadow: var(--shadow-premium);
    border: 1px solid rgba(184, 145, 58, .2);
    /* jumlah lencana bisa 1–4 (tergantung data), jadi kolomnya mengikuti isi */
    display: grid; grid-auto-flow: column; grid-auto-columns: 1fr;
}
.hm-trust-item { padding: 1.4rem 1.25rem; display: flex; align-items: center; gap: .9rem; }
.hm-trust-item + .hm-trust-item { border-left: 1px solid #eef0f3; }
.hm-trust-icon {
    flex: 0 0 46px; height: 46px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gold-soft); color: var(--gold-dark); font-size: 1.2rem;
}
.hm-trust-num { font-family: var(--font-serif); font-size: 1.6rem; font-weight: 700; color: var(--navy); line-height: 1; }
.hm-trust-label { font-size: .85rem; color: var(--muted); line-height: 1.35; margin-top: .2rem; }
.hm-trust-label strong { color: var(--navy); font-size: .95rem; display: block; }
@media (max-width: 991.98px) {
    .hm-trust-bar { grid-auto-flow: row; grid-template-columns: repeat(2, 1fr); }
    .hm-trust-item:nth-child(3) { border-left: 0; }
    .hm-trust-item:nth-child(n+3) { border-top: 1px solid #eef0f3; }
}
@media (max-width: 575.98px) {
    .hm-trust { margin-top: -28px; }
    .hm-trust-item { padding: 1rem .85rem; gap: .6rem; flex-direction: column; align-items: flex-start; }
    .hm-trust-icon { flex-basis: auto; width: 38px; height: 38px; font-size: 1rem; }
    .hm-trust-num { font-size: 1.35rem; }
}

/* Produk */
.hm-product {
    display: grid; grid-template-columns: 42% 1fr; background: #fff; height: 100%;
}
.hm-product-img { background: var(--gold-soft); position: relative; min-height: 280px; }
.hm-product-img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hm-product-img .placeholder-icon { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 3rem; opacity: .5; }
.hm-product-body { padding: 2rem; display: flex; flex-direction: column; }
.hm-product-body h3 { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 1.75rem; }
.hm-product-body p { color: var(--muted); flex: 1; }
.hm-product-tag { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; color: var(--gold-dark); background: var(--gold-soft); border-radius: 50px; padding: .25rem .7rem; margin: 0 .35rem .35rem 0; }
@media (max-width: 767.98px) {
    .hm-product { grid-template-columns: 1fr; }
    .hm-product-img { min-height: 220px; }
    .hm-product-body { padding: 1.5rem; }
}

/* Cara bergabung */
.hm-steps { counter-reset: langkah; }
.hm-step {
    position: relative; height: 100%;
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1);
    border-radius: var(--radius-lg); padding: 2rem 1.75rem;
    transition: var(--transition);
}
.hm-step:hover { border-color: rgba(227, 205, 148, .5); background: rgba(255, 255, 255, .06); }
.hm-step-num {
    counter-increment: langkah;
    width: 48px; height: 48px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: linear-gradient(135deg, var(--gold-light), var(--gold)); color: var(--navy);
    font-family: var(--font-serif); font-weight: 700; font-size: 1.25rem; margin-bottom: 1.25rem;
}
.hm-step-num::before { content: counter(langkah); }
.hm-step h4 { color: #fff; font-size: 1.2rem; font-weight: 700; }
.hm-step p { color: rgba(255, 255, 255, .65); margin: 0; font-size: .95rem; }
.hm-dark { background: var(--navy); color: #fff; position: relative; overflow: hidden; }
.hm-dark::before {
    content: ''; position: absolute; left: -120px; bottom: -160px; width: 420px; height: 420px; border-radius: 50%;
    background: radial-gradient(circle, rgba(184, 145, 58, .22), transparent 70%);
}
.hm-dark .section-title { color: #fff; }
.hm-dark .section-lead { color: rgba(255, 255, 255, .65); }
.hm-dark .section-eyebrow { color: var(--gold-light); }
.hm-dark .section-eyebrow::before { background: var(--gold-light); }

/* Legalitas */
.hm-legal-card {
    background: #fff; border-radius: var(--radius-md); border: 1px solid #eceef2;
    overflow: hidden; height: 100%; transition: var(--transition); cursor: zoom-in;
    display: flex; flex-direction: column; text-align: left; padding: 0; width: 100%;
}
.hm-legal-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-premium); border-color: rgba(184, 145, 58, .4); }
.hm-legal-thumb { aspect-ratio: 4 / 3; background: #f1f5f9; overflow: hidden; }
.hm-legal-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.hm-legal-body { padding: .8rem .9rem; }
.hm-legal-body .t { font-weight: 700; color: var(--navy); font-size: .9rem; line-height: 1.3; }
.hm-legal-body .p { color: var(--gold-dark); font-size: .78rem; font-weight: 600; }
.hm-legal-body .n { color: var(--muted); font-size: .72rem; word-break: break-word; }

/* Galeri */
.hm-gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.hm-gallery a { display: block; border-radius: var(--radius-md); overflow: hidden; aspect-ratio: 1; }
.hm-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.hm-gallery a:hover img { transform: scale(1.06); }
@media (max-width: 767.98px) { .hm-gallery { grid-template-columns: repeat(2, 1fr); } }

/* CTA penutup */
.hm-cta {
    background:
        radial-gradient(circle at 85% 20%, rgba(227, 205, 148, .28), transparent 45%),
        linear-gradient(135deg, var(--navy) 0%, var(--navy-2) 100%);
    border-radius: 1.75rem; padding: clamp(2rem, 5vw, 4rem); color: #fff;
    border: 1px solid rgba(184, 145, 58, .3);
}
.hm-cta h2 { font-family: var(--font-serif); font-weight: 700; font-size: clamp(1.8rem, 4vw, 2.6rem); }
.hm-cta p { color: rgba(255, 255, 255, .72); }

/* Lightbox legalitas (beranda & halaman Legalitas) */
.hm-lightbox { background: rgba(0, 0, 0, .9); }
.hm-lightbox img { max-height: 82vh; }
.hm-lightbox-caption { color: rgba(255, 255, 255, .85); font-size: .9rem; margin-top: .9rem; padding: 0 1rem; }
.hm-lightbox-caption:empty { display: none; }

/* Target tautan #… tidak tertutup header tetap */
section[id], .lg-group[id] { scroll-margin-top: 100px; }

/* ==========================================================================
   Kontak (Views/frontend/contact.php) — prefiks ct-
   ========================================================================== */
.ct-list { display: flex; flex-direction: column; gap: .75rem; }
.ct-item {
    display: flex; align-items: center; gap: 1rem;
    padding: 1rem 1.15rem; border-radius: var(--radius-md);
    background: #fff; border: 1px solid #eceef2;
    color: var(--ink); text-decoration: none; transition: var(--transition);
}
a.ct-item:hover { border-color: rgba(184, 145, 58, .45); box-shadow: var(--shadow-premium); color: var(--ink); transform: translateY(-2px); }
.ct-icon {
    flex: 0 0 48px; height: 48px; border-radius: 12px;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gold-soft); color: var(--gold-dark); font-size: 1.2rem;
}
.ct-item-wa .ct-icon { background: #e8f8ee; color: #1a9e4b; font-size: 1.45rem; }
.ct-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.ct-label { font-size: .78rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.ct-value { font-weight: 600; color: var(--navy); word-break: break-word; line-height: 1.4; }
.ct-go { color: var(--gold); opacity: 0; transform: translateX(-6px); transition: var(--transition); }
a.ct-item:hover .ct-go { opacity: 1; transform: none; }
@media (hover: none) { .ct-go { opacity: .7; transform: none; } }

.ct-map {
    position: relative; height: 100%; min-height: 460px;
    border-radius: var(--radius-lg); overflow: hidden;
    border: 1px solid rgba(184, 145, 58, .25); box-shadow: var(--shadow-premium);
    background: #eef1f5;
}
.ct-map iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; display: block; }
.ct-map-btn { position: absolute; left: 1rem; bottom: 1rem; box-shadow: 0 6px 18px rgba(15, 23, 42, .25); }
@media (max-width: 991.98px) { .ct-map { min-height: 360px; height: 360px; } }

/* ==========================================================================
   Legalitas (Views/frontend/legality.php) — prefiks lg-, kartu memakai .hm-legal-*
   ========================================================================== */
.lg-tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; }
.lg-tab {
    display: inline-flex; align-items: center; gap: .5rem;
    padding: .45rem 1rem; border-radius: 50px; border: 1px solid rgba(184, 145, 58, .4);
    color: var(--gold-dark); font-weight: 600; font-size: .9rem; text-decoration: none; transition: var(--transition);
}
.lg-tab span { background: var(--gold-soft); color: var(--gold-dark); border-radius: 50px; padding: 0 .5rem; font-size: .78rem; }
.lg-tab:hover { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.lg-tab:hover span { background: rgba(255, 255, 255, .55); color: var(--navy); }
.lg-group { padding-top: 2.5rem; }
.lg-group + .lg-group { margin-top: 1rem; border-top: 1px solid #eef0f3; }
.lg-group-head { margin-bottom: 1.5rem; }
.lg-group-head h3 { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 1.6rem; margin-bottom: .25rem; }
.lg-group-head p { color: var(--muted); margin: 0; }
.lg-thumb { aspect-ratio: 3 / 4; position: relative; }
.lg-zoom {
    position: absolute; right: .6rem; bottom: .6rem; width: 34px; height: 34px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(15, 23, 42, .7); color: #fff; font-size: .85rem;
    opacity: 0; transition: var(--transition);
}
.hm-legal-card:hover .lg-zoom, .hm-legal-card:focus-visible .lg-zoom { opacity: 1; }
@media (hover: none) { .lg-zoom { opacity: .85; } }
.hm-legal-card:disabled { cursor: default; }

/* Pil kategori (.lg-tab) juga dipakai Berita & Galeri: keadaan terpilih + versi <button> */
button.lg-tab { background: transparent; font-family: inherit; }
.lg-tab.active { background: var(--gold); border-color: var(--gold); color: var(--navy); }
.lg-tab.active span { background: rgba(255, 255, 255, .55); color: var(--navy); }

/* Keadaan kosong & paginasi bersama */
.fe-kosong { text-align: center; padding: 3rem 1rem; max-width: 460px; margin: 0 auto; }
.fe-kosong-icon {
    width: 88px; height: 88px; border-radius: 50%; margin-bottom: 1.25rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--gold-soft); color: var(--gold); font-size: 2.2rem;
}
.fe-kosong h3 { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 1.5rem; }
.fe-kosong p { color: var(--muted); margin-bottom: 1.5rem; }
.fe-pager { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: .4rem; margin-top: 3rem; }
.fe-pager-btn {
    min-width: 42px; height: 42px; padding: 0 .75rem; border-radius: 50px;
    display: inline-flex; align-items: center; justify-content: center;
    border: 1px solid #e2e5ea; color: var(--navy); font-weight: 600; text-decoration: none; transition: var(--transition);
}
.fe-pager-btn:hover { border-color: var(--gold); color: var(--gold-dark); }
.fe-pager-btn.active { background: var(--navy); border-color: var(--navy); color: #fff; }
.fe-pager-gap { color: var(--muted); padding: 0 .25rem; }

/* ==========================================================================
   Kartu berita (Views/frontend/partials/kartu_berita.php) — prefiks nw-
   ========================================================================== */
.nw-card {
    height: 100%; display: flex; flex-direction: column; background: #fff;
    border: 1px solid rgba(15, 23, 42, .07); border-radius: var(--radius-lg); overflow: hidden;
    transition: var(--transition);
}
.nw-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-premium); border-color: rgba(184, 145, 58, .35); }
.nw-media { position: relative; display: block; aspect-ratio: 16 / 10; background: var(--gold-soft); overflow: hidden; }
.nw-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.nw-card:hover .nw-media img { transform: scale(1.05); }
.nw-media-kosong { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 2.5rem; opacity: .45; }
.nw-kat {
    position: absolute; left: 1rem; top: 1rem; background: rgba(15, 23, 42, .78); color: #fff;
    font-size: .75rem; font-weight: 600; border-radius: 50px; padding: .3rem .8rem; backdrop-filter: blur(4px);
}
.nw-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }
.nw-tgl { color: var(--muted); font-size: .82rem; margin-bottom: .5rem; }
.nw-tgl i { color: var(--gold); }
.nw-judul { font-size: 1.15rem; font-weight: 700; line-height: 1.4; margin-bottom: .6rem; }
.nw-judul a { color: var(--navy); text-decoration: none; }
.nw-judul a:hover { color: var(--gold-dark); }
.nw-ringkas { color: var(--muted); font-size: .94rem; margin-bottom: 1rem; flex: 1; }
.nw-baca { font-weight: 700; font-size: .9rem; text-decoration: none; color: var(--gold-dark); margin-top: auto; }
/* Berita teratas: mendatar di layar lebar */
@media (min-width: 768px) {
    .nw-card-utama { flex-direction: row; }
    .nw-card-utama .nw-media { flex: 0 0 55%; aspect-ratio: auto; min-height: 340px; }
    .nw-card-utama .nw-body { padding: 2.25rem; justify-content: center; }
    .nw-card-utama .nw-judul { font-family: var(--font-serif); font-size: clamp(1.5rem, 2.5vw, 2rem); }
    .nw-card-utama .nw-ringkas { flex: 0 1 auto; font-size: 1rem; }
}

/* ==========================================================================
   Detail berita (Views/frontend/post_detail.php) — prefiks nd-
   ========================================================================== */
.nd-crumb { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; font-size: .85rem; margin-bottom: 1rem; }
.nd-crumb a { color: var(--gold-dark); text-decoration: none; font-weight: 600; }
.nd-crumb i { font-size: .6rem; color: var(--muted); }
.nd-judul { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: clamp(1.8rem, 4vw, 2.6rem); line-height: 1.25; margin-bottom: 1rem; }
.nd-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem; color: var(--muted); font-size: .9rem; margin-bottom: 1.75rem; }
.nd-meta i { color: var(--gold); }
.nd-meta-kat { background: var(--gold-soft); color: var(--gold-dark); font-weight: 600; border-radius: 50px; padding: .2rem .8rem; font-size: .8rem; }
.nd-sampul { margin: 0 0 2rem; border-radius: var(--radius-lg); overflow: hidden; }
.nd-sampul img { width: 100%; height: auto; display: block; }
.nd-isi { font-size: 1.075rem; line-height: 1.85; color: #334155; overflow-wrap: break-word; }
.nd-isi p { margin-bottom: 1.4rem; }
.nd-isi h2, .nd-isi h3, .nd-isi h4 { font-family: var(--font-serif); font-weight: 700; color: var(--navy); margin: 2.25rem 0 1rem; }
.nd-isi img { max-width: 100%; height: auto !important; border-radius: 12px; margin: 1.5rem 0; }
.nd-isi iframe, .nd-isi video { max-width: 100%; }
.nd-isi table { width: 100%; display: block; overflow-x: auto; }
.nd-isi blockquote { border-left: 4px solid var(--gold); background: var(--gold-soft); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; font-style: italic; }
.nd-isi a { color: var(--gold-dark); text-decoration: underline; }
.nd-bagi { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid #eef0f3; }
.nd-bagi > span:first-child { font-weight: 700; color: var(--navy); margin-right: .5rem; }
.nd-bagi-btn {
    width: 42px; height: 42px; border-radius: 50%; border: 1px solid #e2e5ea; background: #fff;
    display: inline-flex; align-items: center; justify-content: center; color: var(--navy); text-decoration: none; transition: var(--transition);
}
.nd-bagi-btn:hover { background: var(--navy); border-color: var(--navy); color: #fff; }
.nd-wa:hover { background: #25d366; border-color: #25d366; }
.nd-salin-ok { color: #1a9e4b; font-size: .85rem; font-weight: 600; }
.nd-samping { position: sticky; top: 100px; background: var(--gold-soft); border-radius: var(--radius-lg); padding: 1.75rem; }
.nd-samping-judul { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 1.3rem; margin-bottom: 1.25rem; }
.nd-lain { display: flex; flex-direction: column; gap: 1rem; }
.nd-lain-item { display: flex; gap: .9rem; align-items: center; text-decoration: none; }
.nd-lain-img {
    flex: 0 0 72px; height: 72px; border-radius: 12px; overflow: hidden; background: #fff;
    display: inline-flex; align-items: center; justify-content: center; color: var(--gold);
}
.nd-lain-img img { width: 100%; height: 100%; object-fit: cover; }
.nd-lain-judul { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; color: var(--navy); font-weight: 600; line-height: 1.35; }
.nd-lain-item:hover .nd-lain-judul { color: var(--gold-dark); }
.nd-lain-tgl { display: block; color: var(--muted); font-size: .8rem; margin-top: .2rem; }
@media (max-width: 991.98px) { .nd-samping { position: static; } }

/* ==========================================================================
   Galeri (Views/frontend/gallery.php) — prefiks gl-
   ========================================================================== */
.gl-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
@media (max-width: 991.98px) { .gl-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 575.98px) { .gl-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; } }
.gl-item {
    position: relative; aspect-ratio: 1; border: 0; padding: 0; width: 100%;
    border-radius: var(--radius-md); overflow: hidden; background: var(--gold-soft); cursor: zoom-in;
}
.gl-item[hidden] { display: none; }
.gl-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.gl-item:hover img, .gl-item:focus-visible img { transform: scale(1.06); }
.gl-kosong { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 2rem; background: var(--navy-2); }
.gl-play {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 54px; height: 54px; border-radius: 50%; border: 2px solid #fff;
    display: flex; align-items: center; justify-content: center; color: #fff; background: rgba(15, 23, 42, .55);
}
.gl-cap {
    position: absolute; left: 0; right: 0; bottom: 0; padding: 2rem .8rem .7rem; text-align: left;
    color: #fff; font-size: .85rem; font-weight: 600; line-height: 1.3;
    background: linear-gradient(0deg, rgba(15, 23, 42, .85), transparent);
    opacity: 0; transition: var(--transition);
}
.gl-item:hover .gl-cap, .gl-item:focus-visible .gl-cap { opacity: 1; }
@media (hover: none) { .gl-cap { opacity: 1; } }
.gl-media img, .gl-media video { max-width: 100%; max-height: 78vh; border-radius: .5rem; }
.gl-tutup { position: absolute; top: -2.5rem; right: .25rem; z-index: 3; }
.gl-nav {
    position: absolute; top: 40%; z-index: 3; width: 46px; height: 46px; border-radius: 50%; border: 0;
    background: rgba(255, 255, 255, .15); color: #fff; display: flex; align-items: center; justify-content: center;
    transition: var(--transition);
}
.gl-nav:hover { background: var(--gold); color: var(--navy); }
.gl-nav[hidden] { display: none; }
.gl-prev { left: .5rem; }
.gl-next { right: .5rem; }

/* ==========================================================================
   Halaman CMS (Views/frontend/page.php): Tentang Kami, Visi & Misi, Kode Etik, produk
   Prefiks pg- (isi & umum), pd- (khusus produk)
   ========================================================================== */
.nd-crumb span { color: var(--muted); }

/* Isi dari editor (Summernote) membawa gaya inline: ukuran huruf, jarak huruf, lebar gambar
   dalam piksel. Diseragamkan di sini supaya semua halaman CMS terbaca sama rapinya. */
.pg-isi { font-size: 1.075rem; line-height: 1.85; color: #334155; overflow-wrap: break-word; }
/* Judul dikecualikan: selektor atribut ini lebih spesifik daripada `.pg-isi h2`, jadi kalau judul
   ikut kena, gaya judul di bawah kalah walau sama-sama !important. */
.pg-isi :not(h1, h2, h3, h4, h5, h6)[style*="font-size"] { font-size: inherit !important; }
.pg-isi [style*="letter-spacing"] { letter-spacing: normal !important; }
.pg-isi :not(h1, h2, h3, h4, h5, h6)[style*="font-family"] { font-family: inherit !important; }
.pg-isi p { margin-bottom: 1.25rem; }
.pg-isi p:empty, .pg-isi h1:empty, .pg-isi h2:empty, .pg-isi h3:empty, .pg-isi h4:empty, .pg-isi h5:empty { display: none; }
/* Judul memakai !important: penetral gaya inline di atas juga mengenai judul itu sendiri. */
.pg-isi h1, .pg-isi h2, .pg-isi h3 {
    font-family: var(--font-serif) !important; font-weight: 700; color: var(--navy) !important;
    line-height: 1.3; margin: 2.25rem 0 1rem; text-transform: none;
}
.pg-isi h1 { font-size: 2rem !important; }
.pg-isi h2 { font-size: 1.75rem !important; }
.pg-isi h3 { font-size: 1.4rem !important; }
.pg-isi h4, .pg-isi h5, .pg-isi h6 {
    font-family: 'Roboto', sans-serif !important; font-weight: 700; color: var(--gold-dark) !important;
    margin: 2rem 0 .85rem; font-size: 1.1rem !important; letter-spacing: .02em;
}
.pg-isi :is(h1, h2, h3, h4, h5, h6) * { font-family: inherit !important; font-size: inherit !important; color: inherit !important; }
.pg-isi > :first-child, .pg-isi > :empty:first-child + * { margin-top: 0; }
.pg-isi h2:first-of-type::after {
    content: ''; display: block; width: 56px; height: 3px; border-radius: 2px;
    background: var(--gold); margin-top: .75rem;
}
.pg-isi strong, .pg-isi b { color: var(--navy); }
.pg-isi a { color: var(--gold-dark); text-decoration: underline; }
/* Daftar memakai penanda ASLI browser, hanya diwarnai. Jangan diganti nomor/ikon buatan (::before):
   isi dari editor membawa `list-style-type: decimal !important` + `padding: 0` INLINE di tiap <li>
   (Kode Etik), yang tidak bisa dikalahkan stylesheet — penanda asli tetap muncul dan bertumpuk.
   Sub-daftar Kode Etik juga sengaja i/ii/iii dan a/b/c; penanda asli menghormati itu. */
.pg-isi ul, .pg-isi ol { padding-left: 1.6rem; margin-bottom: 1.5rem; }
.pg-isi li { margin-bottom: .6rem; padding-left: .3rem; }
.pg-isi li::marker { color: var(--gold-dark); font-weight: 700; }
.pg-isi li li { margin-top: .5rem; }
.pg-isi img {
    max-width: 100%; height: auto !important; border-radius: 14px; margin: 1rem 0;
    box-shadow: 0 8px 24px rgba(15, 23, 42, .08);
}
.pg-isi img.pg-zoomable { cursor: zoom-in; }
/* Paragraf berisi gambar (foto pengurus, poster) rata tengah; dua gambar berdampingan tetap berdampingan */
.pg-isi :is(p, div, h2):has(> img) { text-align: center !important; }
.pg-isi hr { border: 0; height: 1px; margin: 2.5rem auto; width: 100%; background: linear-gradient(90deg, transparent, var(--gold-light), transparent); opacity: 1; }
.pg-isi blockquote { border-left: 4px solid var(--gold); background: var(--gold-soft); padding: 1rem 1.25rem; border-radius: 0 12px 12px 0; font-style: italic; }
.pg-isi table { width: 100%; display: block; overflow-x: auto; border-collapse: collapse; margin: 1.5rem 0; }
.pg-isi th, .pg-isi td { padding: .75rem 1rem; border: 1px solid #e2e8f0; }
.pg-isi th { background: var(--gold-soft); }
.pg-isi iframe, .pg-isi video { max-width: 100%; }
@media (max-width: 575.98px) { .pg-isi { font-size: 1rem; } .pg-isi h2 { font-size: 1.5rem !important; } }

.pg-subjudul { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: 1.6rem; margin-bottom: 1.25rem; }
.pg-galeri { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 575.98px) { .pg-galeri { grid-template-columns: repeat(2, 1fr); } }

/* Kartu halaman anak / produk lain */
.pg-anak {
    display: flex; gap: 1.1rem; align-items: stretch; height: 100%;
    background: #fff; border: 1px solid rgba(15, 23, 42, .08); border-radius: var(--radius-lg);
    padding: 1rem; text-decoration: none; transition: var(--transition);
}
.pg-anak:hover { transform: translateY(-4px); box-shadow: var(--shadow-premium); border-color: rgba(184, 145, 58, .4); }
.pg-anak-img {
    flex: 0 0 120px; min-height: 120px; border-radius: 12px; overflow: hidden; background: var(--gold-soft);
    display: flex; align-items: center; justify-content: center; color: var(--gold); font-size: 2rem;
}
.pg-anak-img img { width: 100%; height: 100%; object-fit: cover; }
.pg-anak-teks { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.pg-anak-teks strong { font-family: var(--font-serif); color: var(--navy); font-size: 1.25rem; }
.pg-anak-teks span { color: var(--muted); font-size: .92rem; line-height: 1.55; }
.pg-anak-teks em { font-style: normal; font-weight: 700; color: var(--gold-dark); font-size: .88rem; margin-top: auto; }

/* Produk */
.pd-poster { position: sticky; top: 100px; }
.pd-poster-btn {
    position: relative; display: block; width: 100%; padding: 0; border: 0; cursor: zoom-in;
    border-radius: var(--radius-lg); overflow: hidden; background: var(--gold-soft);
    box-shadow: var(--shadow-premium);
}
.pd-poster-btn img { width: 100%; height: auto; display: block; }
.pd-poster-btn:hover .lg-zoom, .pd-poster-btn:focus-visible .lg-zoom { opacity: 1; }
.pd-poster-kosong { display: flex; aspect-ratio: 3 / 4; align-items: center; justify-content: center; border-radius: var(--radius-lg); background: var(--gold-soft); color: var(--gold); font-size: 4rem; }
.pd-judul { font-family: var(--font-serif); font-weight: 700; color: var(--navy); font-size: clamp(2.2rem, 5vw, 3.2rem); line-height: 1.1; margin-bottom: 1.25rem; }
.pd-sertifikat { list-style: none; padding: 0; margin: 0 0 1.5rem; display: flex; flex-wrap: wrap; gap: .6rem; }
.pd-sertifikat li {
    display: flex; align-items: center; gap: .55rem; padding: .5rem .9rem .5rem .7rem;
    border-radius: 12px; background: var(--gold-soft); border: 1px solid rgba(184, 145, 58, .25);
}
.pd-sertifikat i { color: var(--gold); }
.pd-sertifikat strong { display: block; color: var(--navy); font-size: .88rem; line-height: 1.2; }
.pd-sertifikat small { display: block; color: var(--muted); font-size: .72rem; }
.pd-aksi { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid #eef0f3; }
.pd-lain { margin-top: 4.5rem; padding-top: 3rem; border-top: 1px solid #eef0f3; }
@media (max-width: 991.98px) {
    .pd-poster { position: static; max-width: 480px; margin: 0 auto; }
}
@media (max-width: 575.98px) {
    .pd-aksi .btn { width: 100%; }
    .pg-anak-img { flex-basis: 92px; min-height: 92px; }
}
