/* ==========================================================================
   Beranda PPID IAKN Toraja (application/views/dashboard/index.php)
   Memakai token warna dari ppid-table.css (--ppid-navy, --ppid-primary, ...)
   ========================================================================== */

:root {
    --home-navy-1: #0b1530;
    --home-navy-2: #12244f;
    --home-navy-3: #1e3a8a;
    --home-gold: #f5b301;
    --home-gold-dark: #d89c00;
    --home-red: #b91c1c;
    --home-sky: #38bdf8;
}

/* Beranda tidak memakai jarak atas/bawah .main-content agar hero menempel ke navbar */
.home-page { margin-top: -2rem; margin-bottom: -2rem; }
.home-page section { position: relative; }

.home-section { padding: 4.5rem 0; background: #fff; }
.home-section.is-soft { background: #f5f7fb; }
.home-head { text-align: center; max-width: 680px; margin: 0 auto 2.5rem; }
.home-kicker {
    display: inline-block;
    font-size: .72rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--home-red);
    margin-bottom: .6rem;
}
.home-title {
    font-size: clamp(1.6rem, 3.2vw, 2.3rem);
    font-weight: 800;
    color: var(--ppid-navy);
    margin-bottom: .6rem;
}
.home-lead { color: var(--ppid-muted); font-size: 1rem; line-height: 1.7; margin: 0; }

/* ---------- Tombol ---------- */
.home-btn {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    padding: .85rem 1.5rem;
    border-radius: 999px;
    font-weight: 700;
    font-size: .95rem;
    text-decoration: none !important;
    transition: transform .15s ease, box-shadow .15s ease, background-color .15s ease;
    border: 2px solid transparent;
}
.home-btn:hover { transform: translateY(-2px); }
.home-btn-gold { background: var(--home-gold); color: var(--home-navy-1) !important; box-shadow: 0 10px 24px rgba(245, 179, 1, .3); }
.home-btn-gold:hover { background: #ffc21a; }
.home-btn-ghost { border-color: rgba(255, 255, 255, .45); color: #fff !important; }
.home-btn-ghost:hover { background: rgba(255, 255, 255, .1); border-color: #fff; }
.home-btn-navy { background: var(--ppid-navy); color: #fff !important; }
.home-btn-navy:hover { background: var(--home-navy-3); box-shadow: 0 10px 24px rgba(15, 23, 42, .25); }

.home-link {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    font-weight: 700;
    font-size: .88rem;
    color: var(--home-navy-3) !important;
    text-decoration: none !important;
}
.home-link i { transition: transform .15s ease; }
.home-link:hover i { transform: translateX(3px); }

/* ---------- Hero ---------- */
.home-hero {
    background:
        radial-gradient(1000px 500px at 85% 10%, rgba(56, 189, 248, .18), transparent 60%),
        radial-gradient(700px 400px at 10% 100%, rgba(245, 179, 1, .12), transparent 60%),
        linear-gradient(135deg, var(--home-navy-1) 0%, var(--home-navy-2) 55%, var(--home-navy-3) 100%);
    color: #fff;
    overflow: hidden;
}
.home-hero::before {
    /* motif titik halus */
    content: "";
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px);
    background-size: 22px 22px;
    pointer-events: none;
}
.home-hero .container { position: relative; }
.home-hero-row { min-height: 560px; display: flex; align-items: center; }
.home-hero-text { padding: 4.5rem 0 6.5rem; }
.home-badge {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, .1);
    border: 1px solid rgba(255, 255, 255, .18);
    font-size: .78rem;
    font-weight: 600;
    color: #e2e8f0;
    margin-bottom: 1.4rem;
}
.home-badge img { width: 20px; height: 20px; object-fit: contain; }
.home-hero h1 {
    font-size: clamp(2.2rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.12;
    letter-spacing: -1.5px;
    color: #fff;
    margin-bottom: 1.2rem;
}
.home-hero h1 em { font-style: italic; color: var(--home-gold); }
.home-hero p.lead { color: #cbd5e1; font-size: 1.05rem; line-height: 1.75; max-width: 540px; margin-bottom: 2rem; }
.home-hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; }

.home-hero-figure {
    position: relative;
    align-self: flex-end;
    display: flex;
    justify-content: center;
}
.home-hero-figure::before {
    /* lingkaran latar foto */
    content: "";
    position: absolute;
    bottom: 40px;
    width: 400px;
    height: 400px;
    border-radius: 50%;
    background: radial-gradient(circle at 30% 30%, rgba(56, 189, 248, .35), rgba(30, 58, 138, .2) 60%, transparent 70%);
    border: 1px solid rgba(255, 255, 255, .12);
}
.home-hero-figure img {
    position: relative;
    max-height: 520px;
    width: auto;
    max-width: 100%;
    filter: drop-shadow(0 20px 40px rgba(0, 0, 0, .35));
}
.home-namecard {
    position: absolute;
    bottom: 34px;
    left: 50%;
    transform: translateX(-50%);
    background: #fff;
    color: var(--ppid-navy);
    border-radius: .9rem;
    padding: .7rem 1.1rem;
    text-align: center;
    box-shadow: 0 14px 30px rgba(0, 0, 0, .25);
    border-bottom: 3px solid var(--home-gold);
    white-space: nowrap;
}
.home-namecard strong { display: block; font-size: .92rem; }
.home-namecard span { font-size: .74rem; color: var(--ppid-muted); }

.home-stripe {
    height: 6px;
    background: linear-gradient(90deg, var(--home-red) 0 33.3%, var(--home-gold) 33.3% 66.6%, var(--home-sky) 66.6% 100%);
}

/* ---------- Kartu layanan (menumpang di bawah hero) ---------- */
.home-services {
    position: relative;
    z-index: 2;
    padding-bottom: 1rem;
    /* setengah atas mengikuti hero, sisanya putih agar kartu tampak menumpang */
    background: linear-gradient(180deg, transparent 0 4.5rem, #fff 4.5rem);
    margin-top: -4.5rem;
}
.home-service {
    height: 100%;
    background: #fff;
    border-radius: 1.1rem;
    padding: 1.6rem 1.5rem;
    border: 1px solid var(--ppid-border);
    border-top: 4px solid var(--home-navy-3);
    box-shadow: 0 18px 40px rgba(15, 23, 42, .1);
    display: flex;
    flex-direction: column;
    transition: transform .2s ease, box-shadow .2s ease;
}
.home-service:hover { transform: translateY(-4px); box-shadow: 0 24px 50px rgba(15, 23, 42, .14); }
.home-service.is-red { border-top-color: var(--home-red); }
.home-service.is-gold { border-top-color: var(--home-gold); }
.home-icon {
    width: 48px;
    height: 48px;
    border-radius: .85rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    background: #eff6ff;
    color: var(--home-navy-3);
    margin-bottom: 1rem;
}
.is-red .home-icon { background: #fef2f2; color: var(--home-red); }
.is-gold .home-icon { background: #fffbeb; color: var(--home-gold-dark); }
.home-service h3 { font-size: 1.15rem; font-weight: 800; color: var(--ppid-navy); margin-bottom: .45rem; }
.home-service p { color: var(--ppid-muted); font-size: .9rem; line-height: 1.6; flex-grow: 1; }

/* ---------- Pita maklumat ---------- */
.home-maklumat {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    background: linear-gradient(120deg, var(--home-navy-2), var(--home-navy-3));
    color: #fff;
    border-radius: 1.3rem;
    padding: 1.8rem 2rem;
    box-shadow: 0 18px 40px rgba(15, 23, 42, .18);
}
.home-maklumat .seal {
    flex: 0 0 64px;
    height: 64px;
    border-radius: 50%;
    background: var(--home-gold);
    color: var(--home-navy-1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
}
.home-maklumat h3 { font-size: 1.15rem; font-weight: 800; color: #fff; margin-bottom: .3rem; }
.home-maklumat q { color: #cbd5e1; font-style: italic; font-size: .92rem; line-height: 1.6; }
.home-maklumat .home-btn { flex-shrink: 0; }

/* ---------- Klasifikasi informasi: kartu blok warna dengan sudut "notch" ----------
   Sudut kanan bawah dipotong (warna latar section) dan diisi tombol panah;
   dua potongan radial-gradient membuat lengkung cekung di kedua sisi potongan. */
.home-info {
    --hi-bg: #12244f;          /* warna kartu */
    --hi-ink: #fff;            /* teks utama */
    --hi-soft: rgba(255, 255, 255, .72); /* teks keterangan */
    --hi-accent: #f5b301;      /* nomor & tombol panah */
    --hi-cut: #f5f7fb;         /* warna latar section (.home-section.is-soft) */
    --hi-r: 26px;              /* radius lengkung potongan */
    position: relative;
    isolation: isolate;
    overflow: hidden;
    height: 100%;
    min-height: 300px;
    display: flex;
    flex-direction: column;
    padding: 1.4rem 1.4rem 4.6rem;
    border-radius: 28px 28px 0 28px; /* sudut kanan bawah tertutup potongan; dibuat siku agar tidak ada garis tepi */
    background: var(--hi-bg);
    color: var(--hi-ink);
    text-decoration: none !important;
    transition: transform .25s ease, box-shadow .25s ease;
}
.home-info::before { /* cahaya lembut di pojok kiri atas */
    content: "";
    position: absolute;
    inset: -40% 30% 45% -30%;
    background: radial-gradient(circle, rgba(255, 255, 255, .22), transparent 65%);
    z-index: -1;
    pointer-events: none;
}
.home-info:hover { transform: translateY(-6px); box-shadow: 0 22px 44px rgba(15, 23, 42, .18); }
.home-info-bg { /* ikon besar samar sebagai tekstur */
    position: absolute;
    right: -.6rem;
    top: 2.6rem;
    font-size: 7.5rem;
    color: var(--hi-ink);
    opacity: .07;
    z-index: -1;
    transform: rotate(-12deg);
    pointer-events: none;
}
.home-info-top { display: flex; justify-content: space-between; align-items: center; gap: .6rem; margin-bottom: 1.4rem; }
.home-info-ico {
    width: 46px; height: 46px; border-radius: 14px;
    display: inline-flex; align-items: center; justify-content: center;
    background: rgba(255, 255, 255, .14);
    border: 1px solid rgba(255, 255, 255, .22);
    color: var(--hi-ink); font-size: 1.05rem;
}
.home-info-glass { /* label kaca mengambang */
    padding: .35rem .75rem;
    border-radius: 999px;
    font-size: .7rem; font-weight: 700; letter-spacing: .03em;
    color: var(--hi-ink);
    background: rgba(255, 255, 255, .16);
    border: 1px solid rgba(255, 255, 255, .28);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    white-space: nowrap;
}
.home-info .num {
    font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
    font-size: .82rem; font-weight: 700; letter-spacing: .18em;
    color: var(--hi-accent);
    margin-bottom: .35rem;
}
.home-info h3 { font-size: 1.2rem; font-weight: 800; line-height: 1.25; color: var(--hi-ink); letter-spacing: -.01em; margin-bottom: .55rem; }
.home-info p { color: var(--hi-soft); font-size: .87rem; line-height: 1.6; margin: 0; }

.home-info-notch {
    position: absolute;
    right: 0; bottom: 0;
    display: flex; align-items: center; gap: .6rem;
    padding: .7rem .7rem .7rem 1rem;
    background: var(--hi-cut);
    border-top-left-radius: var(--hi-r);
}
.home-info-notch::before,
.home-info-notch::after { /* lengkung cekung di atas dan di kiri potongan */
    content: "";
    position: absolute;
    width: var(--hi-r); height: var(--hi-r);
    background: radial-gradient(circle at 0 0, transparent calc(var(--hi-r) - .5px), var(--hi-cut) var(--hi-r));
}
/* tumpang 1px agar tidak ada celah garis antara potongan dan lengkung */
.home-info-notch::before { right: 0; top: calc(var(--hi-r) * -1 + 1px); }
.home-info-notch::after { left: calc(var(--hi-r) * -1 + 1px); bottom: 0; }
.home-info-more { font-size: .78rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: #0b1530; }
.home-info-arrow {
    width: 42px; height: 42px; border-radius: 50%;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--hi-bg); color: var(--hi-accent);
    transition: transform .25s ease;
}
.home-info:hover .home-info-arrow { transform: rotate(-45deg); }

@media (max-width: 575.98px) {
    .home-info { min-height: 0; }
}

/* Varian warna (palet IAKN: navy, emas, merah, biru langit) */
.home-info.is-navy { --hi-bg: #12244f; }
.home-info.is-gold { --hi-bg: #f5b301; --hi-ink: #0b1530; --hi-soft: rgba(11, 21, 48, .72); --hi-accent: #12244f; }
.home-info.is-gold .home-info-arrow { color: #f5b301; background: #0b1530; }
.home-info.is-red  { --hi-bg: #b91c1c; --hi-accent: #fde68a; }
.home-info.is-sky  { --hi-bg: #38bdf8; --hi-ink: #0b1530; --hi-soft: rgba(11, 21, 48, .72); --hi-accent: #12244f; }
.home-info.is-sky .home-info-arrow { color: #38bdf8; background: #0b1530; }
.home-info.is-gold .home-info-ico, .home-info.is-sky .home-info-ico,
.home-info.is-gold .home-info-glass, .home-info.is-sky .home-info-glass { background: rgba(255, 255, 255, .35); border-color: rgba(255, 255, 255, .5); }

.home-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem; margin-top: 2rem; }
.home-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    padding: .55rem 1.05rem;
    border-radius: 999px;
    background: #fff;
    border: 1px solid var(--ppid-border);
    color: var(--ppid-text) !important;
    font-size: .85rem;
    font-weight: 600;
    text-decoration: none !important;
    transition: all .15s ease;
}
.home-chip i { color: var(--home-navy-3); }
.home-chip:hover { border-color: var(--home-navy-3); color: var(--home-navy-3) !important; box-shadow: 0 6px 16px rgba(30, 58, 138, .12); }

/* ---------- Alur permohonan ---------- */
.home-steps { counter-reset: step; }
.home-step {
    height: 100%;
    background: #fff;
    border: 1px solid var(--ppid-border);
    border-radius: 1.1rem;
    padding: 1.6rem 1.5rem 1.4rem;
    position: relative;
}
.home-step .badge-num {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: var(--ppid-navy);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    margin-bottom: 1rem;
    box-shadow: 0 0 0 6px #e0e7ff;
}
.home-step h3 { font-size: 1.02rem; font-weight: 800; color: var(--ppid-navy); margin-bottom: .45rem; }
.home-step p { color: var(--ppid-muted); font-size: .87rem; line-height: 1.6; margin: 0; }
.home-step .time {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .8rem;
    font-size: .74rem;
    font-weight: 700;
    color: var(--home-red);
    background: #fef2f2;
    padding: .25rem .6rem;
    border-radius: 999px;
}
@media (min-width: 992px) {
    .home-steps > div:not(:last-child) .home-step::before {
        /* panah penghubung antarlangkah */
        content: "\f054";
        font-family: "Font Awesome 6 Free";
        font-weight: 900;
        position: absolute;
        right: -1.15rem;
        top: 2.1rem;
        color: #cbd5e1;
        font-size: .9rem;
        z-index: 1;
    }
}

/* ---------- Statistik ---------- */
.home-stats {
    background: linear-gradient(135deg, var(--home-navy-1), var(--home-navy-3));
    color: #fff;
    overflow: hidden;
}
.home-stats .home-title, .home-stats .home-lead { color: #fff; }
.home-stats .home-lead { color: #cbd5e1; }
.home-stats .home-kicker { color: var(--home-gold); }
.home-stat {
    height: 100%;
    background: rgba(255, 255, 255, .06);
    border: 1px solid rgba(255, 255, 255, .12);
    border-radius: 1.1rem;
    padding: 1.4rem 1.2rem;
    text-align: center;
}
.home-stat i { font-size: 1.3rem; color: var(--home-gold); margin-bottom: .6rem; }
.home-stat .value { font-size: 2.2rem; font-weight: 800; line-height: 1.1; color: #fff; }
.home-stat .label { color: #cbd5e1; font-size: .84rem; margin-top: .3rem; }
.home-stats-sub {
    margin-top: 2.5rem;
    padding-top: 2rem;
    border-top: 1px dashed rgba(255, 255, 255, .18);
}
.home-stats-sub .value { font-size: 1.6rem; font-weight: 800; color: #fff; }
.home-stats-sub .label { color: #94a3b8; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }

/* ---------- Berita & galeri ---------- */
.home-news {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ppid-border);
    border-radius: 1.1rem;
    overflow: hidden;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}
.home-news:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, .1); }
.home-news .thumb {
    height: 190px;
    background: #e2e8f0 center / cover no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #94a3b8;
    font-size: 2rem;
}
.home-news .body { padding: 1.2rem 1.3rem 1.3rem; display: flex; flex-direction: column; flex-grow: 1; }
.home-news .date { font-size: .76rem; font-weight: 700; color: var(--home-red); margin-bottom: .4rem; }
.home-news h3 { font-size: 1rem; font-weight: 800; color: var(--ppid-navy); line-height: 1.45; margin-bottom: .5rem; }
.home-news p { color: var(--ppid-muted); font-size: .86rem; line-height: 1.6; flex-grow: 1; margin-bottom: .8rem; }

.home-gallery a {
    display: block;
    border-radius: 1rem;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: #e2e8f0;
}
.home-gallery img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.home-gallery a:hover img { transform: scale(1.06); }

.home-empty {
    text-align: center;
    color: var(--ppid-muted);
    background: #fff;
    border: 1px dashed #cbd5e1;
    border-radius: 1rem;
    padding: 2.2rem 1rem;
}
.home-empty i { display: block; font-size: 1.8rem; color: #cbd5e1; margin-bottom: .5rem; }

/* ---------- Meja layanan ---------- */
.home-panel {
    height: 100%;
    background: #fff;
    border: 1px solid var(--ppid-border);
    border-radius: 1.1rem;
    padding: 1.6rem 1.6rem;
}
.home-panel h3 { display: flex; align-items: center; gap: .6rem; font-size: 1.1rem; font-weight: 800; color: var(--ppid-navy); margin-bottom: 1rem; }
.home-panel h3 i { color: var(--home-red); }
.home-hours { width: 100%; font-size: .9rem; }
.home-hours td { padding: .65rem 0; border-bottom: 1px solid var(--ppid-row-border); color: var(--ppid-text); }
.home-hours td:last-child { text-align: right; font-weight: 700; color: var(--ppid-navy); white-space: nowrap; padding-left: .75rem; }
.home-hours tr.is-break td { color: var(--ppid-muted); font-style: italic; }
.home-hours tr.is-break td:last-child { color: var(--home-gold-dark); font-weight: 600; }
.home-hours tr.is-closed td:last-child { color: var(--home-red); }
.home-contact { list-style: none; padding: 0; margin: 0 0 1rem; }
.home-contact li { display: flex; gap: .75rem; padding: .45rem 0; font-size: .9rem; color: var(--ppid-text); }
.home-contact i { width: 20px; color: var(--home-navy-3); margin-top: .2rem; }
.home-contact a { color: var(--ppid-text); text-decoration: none; }
.home-contact a:hover { color: var(--home-navy-3); }
.home-map { border-radius: .9rem; overflow: hidden; border: 1px solid var(--ppid-border); height: 220px; }
.home-map iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- PPID Pelaksana ---------- */
.home-unit {
    height: 100%;
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--ppid-border);
    border-radius: 1.1rem;
    padding: 1.4rem 1.4rem;
    text-decoration: none !important;
    transition: transform .2s ease, box-shadow .2s ease;
}
.home-unit:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, .08); }
.home-unit .tag { font-size: .7rem; font-weight: 800; letter-spacing: .1em; color: var(--home-red); margin-bottom: .4rem; }
.home-unit h3 { font-size: 1.25rem; font-weight: 800; color: var(--ppid-navy); margin-bottom: .2rem; }
.home-unit p { color: var(--ppid-muted); font-size: .86rem; line-height: 1.55; flex-grow: 1; }

/* ---------- Ajakan akhir ---------- */
.home-cta {
    height: 100%;
    border-radius: 1.2rem;
    padding: 1.9rem 2rem;
}
.home-cta h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: .5rem; }
.home-cta p { font-size: .92rem; line-height: 1.6; margin-bottom: 1.2rem; }
.home-cta.is-lapor { background: #fff5f5; border: 1px solid #fecaca; }
.home-cta.is-lapor h3 { color: var(--home-red); }
.home-cta.is-lapor p { color: #7f1d1d; }
.home-cta.is-lapor .home-btn { background: var(--home-red); color: #fff !important; }
.home-cta.is-social { background: linear-gradient(135deg, var(--home-navy-2), var(--home-navy-3)); color: #fff; }
.home-cta.is-social h3 { color: #fff; }
.home-cta.is-social p { color: #cbd5e1; }
.home-social { display: flex; gap: .6rem; }
.home-social a {
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .12);
    color: #fff !important;
    text-decoration: none !important;
    transition: background-color .15s ease, transform .15s ease;
}
.home-social a:hover { background: var(--home-gold); color: var(--home-navy-1) !important; transform: translateY(-2px); }

/* ---------- Responsif ---------- */
@media (max-width: 991.98px) {
    .home-hero-row { min-height: 0; }
    .home-hero-text { padding: 3.5rem 0 1.5rem; text-align: center; }
    .home-hero p.lead { margin-left: auto; margin-right: auto; }
    .home-hero-actions { justify-content: center; }
    .home-hero-figure img { max-height: 380px; }
    .home-hero-figure::before { width: 300px; height: 300px; }
    .home-services { margin-top: -2.5rem; }
    .home-maklumat { flex-direction: column; text-align: center; }
}
@media (max-width: 575.98px) {
    .home-section { padding: 3.2rem 0; }
    .home-hero h1 { letter-spacing: -.8px; }
    .home-btn { padding: .75rem 1.2rem; font-size: .9rem; }
    .home-maklumat { padding: 1.5rem 1.2rem; }
    .home-namecard { white-space: normal; width: 86%; }
}

/* ---------- Sorotan layanan gratis (panel Jam Layanan) ---------- */
.home-free {
    position: relative;
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: -.2rem 0 1.1rem;
    padding: 1rem 1.1rem;
    border-radius: 1rem;
    background: linear-gradient(120deg, #ecfdf5 0%, #fefce8 100%);
    border: 1px solid #a7f3d0;
    text-decoration: none !important;
    overflow: hidden;
    transition: transform .2s ease, box-shadow .2s ease;
}
.home-free::after {
    /* kilau tipis yang melintas */
    content: "";
    position: absolute;
    top: 0;
    bottom: 0;
    width: 60px;
    left: -80px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .7), transparent);
    transform: skewX(-20deg);
    animation: home-shine 4.5s ease-in-out infinite;
}
@keyframes home-shine { 0%, 70% { left: -80px; } 100% { left: 110%; } }
.home-free:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(5, 150, 105, .18); }
.home-free-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: baseline;
    gap: .15rem;
    padding: .55rem .85rem;
    border-radius: .85rem;
    background: #059669;
    color: #fff;
    font-size: 1.9rem;
    font-weight: 800;
    line-height: 1;
    box-shadow: 0 8px 18px rgba(5, 150, 105, .35);
    transform: rotate(-4deg);
}
.home-free-badge span { font-size: .85rem; font-weight: 700; opacity: .9; }
.home-free-text { display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.home-free-text strong { color: #064e3b; font-size: 1.02rem; font-weight: 800; line-height: 1.3; }
.home-free-text strong em {
    font-style: normal;
    background: #f5b301;
    color: #0b1530;
    padding: .05rem .45rem;
    border-radius: .4rem;
    letter-spacing: .04em;
}
.home-free-text > span { color: #047857; font-size: .8rem; line-height: 1.5; }
.home-free-arrow { margin-left: auto; color: #059669; transition: transform .15s ease; }
.home-free:hover .home-free-arrow { transform: translateX(3px); }
@media (prefers-reduced-motion: reduce) { .home-free::after { animation: none; display: none; } }
@media (max-width: 575.98px) {
    .home-free { align-items: flex-start; }
    .home-free-badge { font-size: 1.5rem; }
    .home-free-arrow { display: none; }
}

/* =========================================================
   Animasi beranda — hanya transform & opacity (GPU).
   Animasi berulang di hero dijeda saat hero di luar layar ([data-motion-loop] → .is-paused, ppid-motion.js),
   dimatikan di HP untuk yang berat, dan dimatikan seluruhnya bila pengguna memilih "kurangi gerakan".
   Keadaan awal (tersembunyi) hanya berlaku di bawah .ppid-anim, jadi tanpa JS semua tetap tampil.
   ========================================================= */
.home-page { overflow-x: clip; }

/* ---------- Hero: latar gradasi bergeser pelan ---------- */
.home-hero { position: relative; }
.home-aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; }
.home-aurora span {
    position: absolute;
    width: 720px; height: 720px;
    border-radius: 50%;
    will-change: transform;
    animation: home-drift 24s ease-in-out infinite alternate;
}
.home-aurora span:nth-child(1) { top: -320px; right: -180px; background: radial-gradient(circle, rgba(56, 189, 248, .22), transparent 65%); }
.home-aurora span:nth-child(2) { bottom: -380px; left: -220px; background: radial-gradient(circle, rgba(245, 179, 1, .16), transparent 65%); animation-duration: 30s; animation-direction: alternate-reverse; }
.home-aurora span:nth-child(3) { top: 20%; left: 35%; width: 520px; height: 520px; background: radial-gradient(circle, rgba(99, 102, 241, .16), transparent 65%); animation-duration: 36s; }
@keyframes home-drift {
    from { transform: translate3d(0, 0, 0) scale(1); }
    to   { transform: translate3d(-12%, 10%, 0) scale(1.18); }
}

/* Judul: garis emas di bawah kata "hak" tergambar setelah halaman dibuka */
.home-hero h1 em { position: relative; display: inline-block; margin-right: .12em; }
.home-hero h1 em::after {
    content: "";
    position: absolute;
    left: 2px; right: 2px; bottom: .02em;
    height: .1em;
    border-radius: 99px;
    background: var(--home-gold);
    opacity: .55;
    transform-origin: left;
}
.ppid-anim .home-hero h1 em::after { animation: home-draw .7s .7s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes home-draw { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* Tombol utama: kilau tipis melintas sesekali */
.home-hero .home-btn-gold { position: relative; overflow: hidden; }
.home-hero .home-btn-gold::after {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 0;
    width: 50px;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .65), transparent);
    transform: translateX(-80px) skewX(-20deg);
    animation: home-btn-shine 6s 1.5s ease-in-out infinite;
    pointer-events: none;
}
@keyframes home-btn-shine {
    0%, 75% { transform: translateX(-80px) skewX(-20deg); }
    100%    { transform: translateX(320px) skewX(-20deg); }
}

/* Foto & lingkaran: masuk saat dibuka, lalu lingkaran "bernapas" dan cincin berputar sangat pelan */
.ppid-anim .home-hero-figure img { animation: home-figure-in .9s .15s cubic-bezier(.22, .61, .36, 1) both; }
.ppid-anim .home-namecard { animation: home-namecard-in .6s .65s cubic-bezier(.22, .61, .36, 1) both; }
@keyframes home-figure-in { from { opacity: 0; transform: translate3d(0, 26px, 0) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes home-namecard-in { from { opacity: 0; transform: translate(-50%, 14px); } to { opacity: 1; transform: translate(-50%, 0); } }
.home-hero-figure::before { animation: home-breathe 8s ease-in-out infinite; }
@keyframes home-breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.04); } }
.home-hero-figure::after {
    content: "";
    position: absolute;
    bottom: 14px;
    width: 452px; height: 452px;
    border-radius: 50%;
    border: 1px dashed rgba(255, 255, 255, .16);
    animation: home-spin 80s linear infinite;
    pointer-events: none;
}
@keyframes home-spin { to { transform: rotate(360deg); } }

/* Kartu kecil melayang di sekitar foto (hanya layar lebar) */
.home-float { display: none; }
@media (min-width: 1200px) {
    .home-float { display: block; position: absolute; inset: 0; pointer-events: none; z-index: 1; }
    .home-float span {
        position: absolute;
        display: inline-flex; align-items: center; gap: .45rem;
        padding: .5rem .85rem;
        border-radius: .8rem;
        background: rgba(15, 23, 42, .62);
        border: 1px solid rgba(255, 255, 255, .16);
        color: #e2e8f0;
        font-size: .76rem; font-weight: 700;
        box-shadow: 0 12px 28px rgba(0, 0, 0, .25);
        white-space: nowrap;
        animation: home-float 6s ease-in-out infinite;
    }
    .home-float i { color: var(--home-gold); }
    .home-float .f1 { top: 16%; left: 4%; }
    .home-float .f2 { top: 42%; right: -2%; animation-delay: -2s; animation-duration: 7s; }
    .home-float .f3 { bottom: 150px; left: 2%; animation-delay: -4s; animation-duration: 6.5s; }
    .ppid-anim .home-float { animation: pm-rise .8s .9s cubic-bezier(.22, .61, .36, 1) both; }
}
@keyframes home-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -10px, 0); } }

/* Jeda semua animasi berulang saat hero tidak terlihat */
.home-hero.is-paused *, .home-hero.is-paused *::before, .home-hero.is-paused *::after,
.home-hero.is-paused::before, .home-hero.is-paused::after { animation-play-state: paused !important; }

/* Pita tiga warna tergambar dari kiri */
.home-stripe { transform-origin: left; }
.ppid-anim .home-stripe { animation: home-draw 1s .25s cubic-bezier(.22, .61, .36, 1) both; }

/* ---------- Interaksi kartu ---------- */
.home-service { position: relative; overflow: hidden; }
.home-service::after {
    content: "";
    position: absolute; left: 0; right: 0; bottom: 0;
    height: 3px;
    background: var(--home-navy-3);
    transform: scaleX(0); transform-origin: left;
    transition: transform .35s ease;
}
.home-service.is-gold::after { background: var(--home-gold); }
.home-service.is-red::after { background: var(--home-red); }
.home-service:hover::after { transform: scaleX(1); }
.home-icon { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.home-service:hover .home-icon { transform: rotate(-8deg) scale(1.1); }

.home-info-ico { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.home-info:hover .home-info-ico { transform: scale(1.1) rotate(-6deg); }

.home-chip i { transition: transform .2s ease; }
.home-chip:hover { transform: translateY(-2px); }
.home-chip:hover i { transform: scale(1.15); }

.home-panel { transition: box-shadow .25s ease, transform .25s ease; }
.home-panel:hover { box-shadow: 0 18px 40px rgba(15, 23, 42, .08); }

.home-stat { transition: transform .25s ease, background-color .25s ease; }
.home-stat i { transition: transform .3s cubic-bezier(.34, 1.56, .64, 1); }
.home-stat:hover { transform: translateY(-3px); }
.home-stat:hover i { transform: scale(1.2); }

/* ---------- Alur: garis tiap langkah tergambar & nomor menyala berurutan ---------- */
.home-step { transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease; }
.home-step:hover { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(15, 23, 42, .08); border-color: #c7d2fe; }
.home-step .badge-num { transition: background-color .25s ease, color .25s ease; }
.home-step:hover .badge-num { background: var(--home-gold); color: var(--home-navy-1); }
.home-step-line { /* elemen tersendiri: ::after kartu langkah sudah dipakai bentuk notch (ppid-table.css) */
    content: "";
    position: absolute;
    top: -1px; left: 1.1rem; right: 1.1rem;
    height: 3px;
    border-radius: 0 0 4px 4px;
    background: linear-gradient(90deg, var(--home-navy-3), var(--home-gold));
    transform-origin: left;
}
.ppid-anim .home-steps .home-step-line { transform: scaleX(0); }
.ppid-anim .home-steps.is-active .home-step-line { animation: home-draw .55s cubic-bezier(.22, .61, .36, 1) forwards; }
.ppid-anim .home-steps.is-active .badge-num { animation: home-badge-on .7s ease-out both; }
.ppid-anim .home-steps.is-active > div:nth-child(1) .home-step-line { animation-delay: .25s; }
.ppid-anim .home-steps.is-active > div:nth-child(2) .home-step-line { animation-delay: .65s; }
.ppid-anim .home-steps.is-active > div:nth-child(3) .home-step-line { animation-delay: 1.05s; }
.ppid-anim .home-steps.is-active > div:nth-child(4) .home-step-line { animation-delay: 1.45s; }
.ppid-anim .home-steps.is-active > div:nth-child(1) .badge-num { animation-delay: .5s; }
.ppid-anim .home-steps.is-active > div:nth-child(2) .badge-num { animation-delay: .9s; }
.ppid-anim .home-steps.is-active > div:nth-child(3) .badge-num { animation-delay: 1.3s; }
.ppid-anim .home-steps.is-active > div:nth-child(4) .badge-num { animation-delay: 1.7s; }
@keyframes home-badge-on {
    0%   { transform: scale(1); }
    45%  { transform: scale(1.18); box-shadow: 0 0 0 10px rgba(245, 179, 1, .35); background: var(--home-gold); color: var(--home-navy-1); }
    100% { transform: scale(1); }
}
@media (min-width: 992px) {
    .ppid-anim .home-steps > div:not(:last-child) .home-step::before { opacity: 0; transition: opacity .4s ease; }
    .ppid-anim .home-steps.is-active > div:not(:last-child) .home-step::before { opacity: 1; }
    .ppid-anim .home-steps.is-active > div:nth-child(1) .home-step::before { transition-delay: .7s; }
    .ppid-anim .home-steps.is-active > div:nth-child(2) .home-step::before { transition-delay: 1.1s; }
    .ppid-anim .home-steps.is-active > div:nth-child(3) .home-step::before { transition-delay: 1.5s; }
}

/* ---------- Berita & galeri: perbesar halus + kilau saat gambar dimuat ---------- */
.home-news .thumb { position: relative; transition: transform .5s ease; }
.home-news .body { position: relative; background: #fff; } /* menutup bagian thumb yang membesar */
.home-news:hover .thumb { transform: scale(1.06); }
.ppid-anim [data-pm-bg]:not(.is-loaded)::after,
.ppid-anim .home-gallery a:has(img[data-pm-img]:not(.is-loaded))::after {
    content: "";
    position: absolute; inset: 0;
    background: linear-gradient(100deg, transparent 20%, rgba(255, 255, 255, .55) 50%, transparent 80%) #e2e8f0;
    background-size: 200% 100%;
    animation: home-skeleton 1.2s linear infinite;
}
.home-gallery a { position: relative; }
.ppid-anim .home-gallery img[data-pm-img] { opacity: 0; transition: opacity .4s ease, transform .35s ease; }
.ppid-anim .home-gallery img[data-pm-img].is-loaded { opacity: 1; }
@keyframes home-skeleton { from { background-position: 100% 0; } to { background-position: -100% 0; } }

/* ---------- PPID Pelaksana: aksen warna per unit (sama dengan tema halaman unit) ---------- */
.home-unit { --unit: var(--home-navy-3); --unit-soft: #eff6ff; position: relative; overflow: hidden; }
.home-unit.is-ftsk  { --unit: #dc2626; --unit-soft: #fef2f2; }
.home-unit.is-fkipk { --unit: #16a34a; --unit-soft: #f0fdf4; }
.home-unit.is-fbkk  { --unit: #475569; --unit-soft: #f1f5f9; }
.home-unit.is-pasca { --unit: #ea580c; --unit-soft: #fff7ed; }
.home-unit::before {
    content: "";
    position: absolute; top: 0; left: 0; right: 0;
    height: 4px;
    background: var(--unit);
    transform: scaleX(.22); transform-origin: left;
    transition: transform .4s ease;
}
.home-unit:hover::before { transform: scaleX(1); }
.home-unit .tag { color: var(--unit); }
.home-unit:hover { border-color: var(--unit); }
.home-unit .home-link { color: var(--unit) !important; }
.home-unit-ico {
    width: 44px; height: 44px;
    border-radius: .8rem;
    display: inline-flex; align-items: center; justify-content: center;
    background: var(--unit-soft); color: var(--unit);
    font-size: 1.1rem;
    margin-bottom: .9rem;
    transition: transform .3s cubic-bezier(.34, 1.56, .64, 1), background-color .25s ease, color .25s ease;
}
.home-unit:hover .home-unit-ico { transform: rotate(-8deg) scale(1.1); background: var(--unit); color: #fff; }

/* ---------- HP: matikan efek latar yang berat ---------- */
@media (max-width: 767.98px) {
    .home-aurora span { animation: none; }
    .home-hero-figure::after { display: none; }
    .home-hero-figure::before { animation: none; }
}

/* ---------- Kurangi gerakan ---------- */
@media (prefers-reduced-motion: reduce) {
    .home-aurora span, .home-hero-figure::before, .home-hero-figure::after, .home-float span,
    .home-hero .home-btn-gold::after,
    .ppid-anim .home-hero h1 em::after, .ppid-anim .home-stripe, .ppid-anim .home-float,
    .ppid-anim .home-hero-figure img, .ppid-anim .home-namecard,
    .ppid-anim .home-steps.is-active .home-step-line, .ppid-anim .home-steps.is-active .badge-num { animation: none !important; }
    .home-hero .home-btn-gold::after { display: none; }
    .ppid-anim .home-steps .home-step-line { transform: none; }
    .ppid-anim .home-steps > div:not(:last-child) .home-step::before { opacity: 1; }
    .home-icon, .home-info-ico, .home-unit-ico, .home-stat i, .home-news .thumb { transition: none; }
    .home-service:hover .home-icon, .home-info:hover .home-info-ico, .home-unit:hover .home-unit-ico, .home-news:hover .thumb { transform: none; }
}
