/* ============================================================
   CSS KHUSUS HALAMAN PEMERINTAHAN DESA
   ============================================================
   SENGAJA terpisah dari public/css/public.css (dimuat via Vite,
   BUKAN link statis) -- sesuai instruksi redesign: style halaman
   Pemerintahan tidak boleh bercampur dengan CSS global.
   Seluruh custom property di-namespace dengan prefix --pemph-
   dan DIBUNGKUS di dalam .pemph-page supaya tidak menimpa variabel
   :root milik public.css (--color-primary dkk) yang tetap dipakai
   Navbar/Footer & halaman publik lain.
*/

.pemph-page {
    --pemph-primary: #075E3B;
    --pemph-dark: #06452D;
    --pemph-secondary: #0F7A4D;
    --pemph-light: #E8F5EE;
    --pemph-accent: #84CC16;
    --pemph-gold: #D4A72C;
    --pemph-bg: #F7FAF8;
    --pemph-text: #18332A;
    --pemph-muted: #66756D;
    --pemph-border: #DDE8E1;

    background-color: var(--pemph-bg);
    color: var(--pemph-text);
}

/* ---------- HERO ---------- */
.pemph-hero {
    position: relative;
    background: linear-gradient(135deg, var(--pemph-dark), var(--pemph-primary));
    overflow: hidden;
    padding: 3rem 0 3.5rem;
}

.pemph-hero-bg {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
}

.pemph-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(6, 69, 45, .88), rgba(7, 94, 59, .82));
}

.pemph-hero-inner {
    position: relative;
    z-index: 1;
}

.pemph-breadcrumb {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .9rem;
    color: rgba(255, 255, 255, .75);
    margin-bottom: 1.25rem;
}

.pemph-breadcrumb a {
    color: rgba(255, 255, 255, .75);
    text-decoration: none;
}

.pemph-breadcrumb a:hover {
    color: #FFFFFF;
}

.pemph-hero-title {
    color: #FFFFFF;
    font-weight: 700;
    font-size: clamp(1.9rem, 4vw, 2.75rem);
    margin-bottom: .9rem;
}

.pemph-hero-desc {
    color: rgba(255, 255, 255, .88);
    max-width: 760px;
    font-size: 1.05rem;
    line-height: 1.6;
    margin-bottom: 1.1rem;
}

.pemph-accent-line {
    width: 64px;
    height: 4px;
    border-radius: 4px;
    background: var(--pemph-accent);
}

/* ---------- SECTION WRAPPER ---------- */
.pemph-section {
    padding: 3rem 0;
}

.pemph-group-label {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .8rem;
    font-weight: 700;
    letter-spacing: .05em;
    text-transform: uppercase;
    color: var(--pemph-secondary);
    margin: 2.5rem 0 1.25rem;
}

.pemph-group-label::before {
    content: '';
    width: 28px;
    height: 2px;
    background: var(--pemph-accent);
    display: inline-block;
}

/* ---------- CARD DASAR ---------- */
.pemph-card {
    background: #FFFFFF;
    border: 1px solid var(--pemph-border);
    border-radius: 20px;
    box-shadow: 0 4px 16px rgba(6, 69, 45, .05);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}

.pemph-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(6, 69, 45, .1);
}

.pemph-photo {
    border-radius: 14px;
    object-fit: cover;
    flex-shrink: 0;
    background-color: var(--pemph-light);
}

/* ---------- KARTU KEPALA DESA (menonjol, tengah) ---------- */
.pemph-kepala-wrap {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
}

.pemph-kepala-card {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    padding: 1.1rem 1.75rem 1.1rem 1.1rem;
    max-width: 480px;
    border: 1px solid var(--pemph-border);
}

.pemph-kepala-card .pemph-photo {
    width: 92px;
    height: 92px;
    border-radius: 16px;
}

.pemph-label-jabatan {
    color: var(--pemph-primary);
    font-weight: 700;
    font-size: .78rem;
    letter-spacing: .06em;
    text-transform: uppercase;
    display: block;
    margin-bottom: .2rem;
}

.pemph-nama {
    color: var(--pemph-text);
    font-weight: 700;
    font-size: 1.15rem;
    margin: 0;
}

.pemph-kepala-card .pemph-accent-underline {
    display: block;
    width: 36px;
    height: 3px;
    border-radius: 3px;
    background: var(--pemph-secondary);
    margin-top: .5rem;
}

/* ---------- KARTU PERANGKAT DESA (grid, foto kecil kiri) ---------- */
.pemph-perangkat-card {
    display: flex;
    align-items: center;
    gap: .9rem;
    padding: 1rem 1.1rem;
}

.pemph-perangkat-card .pemph-photo {
    width: 58px;
    height: 58px;
    border-radius: 12px;
}

.pemph-perangkat-card .pemph-nama {
    font-size: .95rem;
}

.pemph-perangkat-card .pemph-label-jabatan {
    font-size: .72rem;
    margin-bottom: .15rem;
}

/* ---------- KARTU KASI / KEPALA WILAYAH (header berwarna + staff list) ---------- */
.pemph-kasi-card {
    border: 1px solid var(--pemph-border);
    border-radius: 20px;
    overflow: hidden;
    background: #FFFFFF;
    box-shadow: 0 4px 16px rgba(6, 69, 45, .05);
    transition: transform .2s ease, box-shadow .2s ease;
    height: 100%;
}

.pemph-kasi-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(6, 69, 45, .1);
}

.pemph-kasi-header {
    background: linear-gradient(120deg, var(--pemph-primary), var(--pemph-secondary));
    color: #FFFFFF;
    font-weight: 700;
    font-size: .82rem;
    letter-spacing: .03em;
    text-transform: uppercase;
    padding: .85rem 1.1rem;
    display: flex;
    align-items: center;
    gap: .5rem;
}

.pemph-kasi-body {
    padding: 1.1rem;
    display: flex;
    align-items: flex-start;
    gap: .85rem;
}

.pemph-kasi-body .pemph-photo {
    width: 54px;
    height: 54px;
    border-radius: 12px;
}

.pemph-staff-list {
    list-style: none;
    padding: 0;
    margin: .4rem 0 0;
}

.pemph-staff-list li {
    display: flex;
    align-items: center;
    gap: .5rem;
    font-size: .85rem;
    color: var(--pemph-muted);
    padding: .2rem 0;
}

.pemph-staff-list li::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--pemph-secondary);
    flex-shrink: 0;
}

/* ---------- QUOTE / KOMITMEN ---------- */
.pemph-quote-card {
    background: #FFFFFF;
    border: 1px solid var(--pemph-border);
    border-radius: 20px;
    padding: 2rem 1.75rem;
    display: flex;
    align-items: center;
    gap: 1.5rem;
    box-shadow: 0 4px 16px rgba(6, 69, 45, .05);
}

.pemph-quote-icon {
    font-size: 2rem;
    color: var(--pemph-accent);
    flex-shrink: 0;
}

.pemph-quote-text {
    color: var(--pemph-text);
    font-size: 1.05rem;
    line-height: 1.6;
    margin: 0;
    flex-grow: 1;
}

.pemph-quote-text strong {
    color: var(--pemph-primary);
}

.pemph-quote-people {
    font-size: 2.25rem;
    color: var(--pemph-secondary);
    opacity: .5;
    flex-shrink: 0;
}

/* ---------- EMPTY STATE ---------- */
.pemph-empty {
    text-align: center;
    padding: 3.5rem 1rem;
    color: var(--pemph-muted);
}

.pemph-empty i {
    font-size: 2.5rem;
    color: var(--pemph-secondary);
    opacity: .6;
}

/* ---------- BAGAN GAMBAR STATIS (pengganti bagan hierarki dinamis) ---------- */
.pemph-bagan-gambar {
    background: #fff;
    border-radius: 1rem;
    padding: 1.5rem;
    box-shadow: 0 .25rem 1rem rgba(0, 0, 0, .06);
}

.pemph-bagan-gambar img {
    max-height: 720px;
    width: auto;
    max-width: 100%;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 767.98px) {
    .pemph-hero {
        padding: 2.25rem 0 2.5rem;
    }

    .pemph-kepala-card {
        max-width: 100%;
        width: 100%;
    }

    .pemph-kasi-body {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* Guard tambahan -- pastikan tidak ada elemen yang memicu scroll
   horizontal di layar sangat sempit. */
.pemph-page,
.pemph-page * {
    max-width: 100%;
}

.pemph-page img {
    height: auto;
}
