/* ==========================================================================
   REDESIGN — Posyandu Kabupaten Bengkulu Tengah
   --------------------------------------------------------------------------
   Lapisan desain BARU, dimuat setelah modern.css.
   Tema lama (main.css & style.css) tidak diubah sama sekali.

   Arah desain: bersih, terang, dan resmi.
   Palet diambil dari posyandu.or.id -> ungu + indigo, dengan permukaan
   abu-abu terang (bukan krem hangat) supaya terasa rapi dan modern.

   Rollback: hapus <link ... redesign.css> di
   application/views/frontend/index.php
   ========================================================================== */

:root {
    /* warna inti dari identitas Posyandu (posyandu.or.id) */
    --posy-purple: #6f42c1;
    --posy-purple-deep: #4a2a87;
    --posy-purple-soft: #8b5fd6;
    --posy-accent: #0c039c;
    --posy-accent-soft: #5170fa;
    --posy-accent-pale: #eef1fe;

    /* permukaan terang */
    --posy-surface: #f8f8f8;
    --posy-surface-2: #f4f6fc;
    --posy-surface-3: #eff1f7;

    --ink: #101828;
    --ink-2: #344054;
    --muted: #5c6b82;
    --line: #e4e7f0;
    --white: #fff;

    --radius: 20px;
    --radius-md: 16px;
    --radius-sm: 12px;
    --radius-pill: 999px;

    --shadow-warm: 0 2px 4px rgba(16, 24, 40, .04), 0 12px 28px rgba(16, 24, 40, .07);
    --shadow-warm-lg: 0 18px 48px rgba(16, 24, 40, .13);
    --ease: cubic-bezier(.4, 0, .2, 1);
}


/* ---------------------------------------------------------------- dasar --- */

body {
    background: var(--posy-surface);
    color: var(--ink);
    line-height: 1.7;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--posy-purple);
    font-weight: 700;
    letter-spacing: -.02em;
    line-height: 1.28;
}

.gray-bg { background: var(--posy-surface) !important; }
.white-bg { background: var(--white) !important; }

.pkk-container { max-width: 1180px; margin: 0 auto; padding: 0 15px; }

.pkk-section { padding: 62px 0; }
.pkk-section--tight { padding: 44px 0; }
.pkk-section--white { background: var(--white); }
.pkk-section--cream { background: var(--posy-surface); }


/* --------------------------------------------------------- judul seksi --- */

.pkk-head {
    text-align: center;
    max-width: 660px;
    margin: 0 auto 40px;
}

.pkk-kicker {
    display: inline-block;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--posy-accent);
    background: var(--posy-accent-pale);
    padding: 6px 15px;
    border-radius: var(--radius-pill);
    margin-bottom: 14px;
}

.pkk-head h2 {
    font-size: 1.875rem;
    margin: 0 0 10px;
    color: var(--posy-purple);
}

.pkk-head p {
    margin: 0;
    color: var(--muted);
    font-size: .9375rem;
}

.pkk-head--left { text-align: left; margin-left: 0; }

/* header seksi berbaris: judul kiri, tombol kanan — memecah kejenuhan
   empat header tengah yang berturut-turut */
.pkk-head--row {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    flex-wrap: wrap;
    text-align: left;
    max-width: none;
    margin: 0 0 32px;
}

.pkk-head--row h2 { margin-bottom: 0; }
.pkk-head--row .pkk-head-text { max-width: 620px; }

.pkk-head--row .pkk-btn { padding: 10px 22px; font-size: .8125rem; }


/* ------------------------------------------------------------------ hero --- */
/* Variasi A: navy penuh, tipografi besar, lambang sebagai tanda air.
   Tanpa foto — tampilannya tidak bergantung pada kualitas gambar. */

.pkk-hero {
    position: relative;
    overflow: hidden;
    color: #fff;
    background: linear-gradient(135deg, #4a2a87 0%, #6f42c1 55%, #8b5fd6 100%);
    padding: 74px 0 78px;
}

/* cahaya emas lembut di kanan atas */
.pkk-hero::after {
    content: "";
    position: absolute;
    right: -160px;
    top: -160px;
    width: 620px;
    height: 620px;
    border-radius: 50%;
    pointer-events: none;
    background: radial-gradient(circle, rgba(81, 112, 250, .20) 0%, rgba(81, 112, 250, 0) 68%);
}

/* lambang sebagai tanda air */
.pkk-hero-mark {
    position: absolute;
    right: -40px;
    bottom: -70px;
    height: 118%;
    opacity: .13;
    pointer-events: none;
}

.pkk-hero .pkk-container { position: relative; z-index: 2; }

.pkk-hero-inner { max-width: 760px; }

.pkk-hero h1 {
    color: #fff;
    font-size: 2.75rem;
    line-height: 1.18;
    letter-spacing: -.03em;
    margin: 18px 0 18px;
}

.pkk-hero h1 em { font-style: normal; color: var(--posy-accent-soft); }

.pkk-hero-lead {
    color: rgba(255, 255, 255, .78);
    font-size: 1.0625rem;
    max-width: 34em;
    margin-bottom: 30px;
}

.pkk-hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

/* kicker versi latar gelap */
.pkk-kicker--dark { background: rgba(81, 112, 250, .16); color: var(--posy-accent-soft); }

/* tombol garis untuk latar gelap.
   Pakai .pkk-btn.pkk-btn-outline-light supaya menang atas aturan
   .pkk-btn (border transparan) yang ditulis belakangan di file ini. */
.pkk-btn.pkk-btn-outline-light {
    border-color: rgba(255, 255, 255, .45);
    color: #fff;
    background: transparent;
}

.pkk-btn.pkk-btn-outline-light:hover {
    background: #fff;
    color: var(--posy-purple);
    border-color: #fff;
    transform: translateY(-2px);
}


/* ------------------------------------------------------------- statistik --- */

.pkk-stats { background: transparent; padding: 34px 0 8px; }

.pkk-stat {
    display: flex;
    align-items: center;
    gap: 15px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-md);
    padding: 20px 22px;
    height: 100%;
    box-shadow: var(--shadow-warm);
}

.pkk-stat-ico {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--posy-accent-pale);
    color: var(--posy-accent);
    font-size: 1.25rem;
}

.pkk-stat-num {
    display: block;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--posy-purple);
    line-height: 1.15;
    letter-spacing: -.02em;
}

.pkk-stat-lbl {
    display: block;
    font-size: .8125rem;
    color: var(--muted);
    line-height: 1.45;
    margin-top: 2px;
}


/* --------------------------------------------------------------- tombol --- */

.pkk-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 13px 26px;
    border-radius: var(--radius-pill);
    font-size: .875rem;
    font-weight: 600;
    letter-spacing: .01em;
    border: 1.5px solid transparent;
    transition: transform .2s var(--ease), box-shadow .2s var(--ease),
                background-color .2s var(--ease), color .2s var(--ease);
}

.pkk-btn-primary { background: var(--posy-purple); color: #fff; }
.pkk-btn-primary:hover {
    background: var(--posy-purple-soft);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(111, 66, 193, .28);
}

.pkk-btn-gold { background: var(--posy-accent); color: #fff; }
.pkk-btn-gold:hover {
    background: #0a0280;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(12, 3, 156, .32);
}

.pkk-btn-ghost { border-color: var(--posy-purple); color: var(--posy-purple); background: transparent; }
.pkk-btn-ghost:hover {
    background: var(--posy-purple);
    color: #fff;
    transform: translateY(-2px);
}


/* ----------------------------------------------------------------- kartu --- */

.pkk-card {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    overflow: hidden;
    height: 100%;
    box-shadow: var(--shadow-warm);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease);
}

.pkk-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-warm-lg); }

/* kartu berita */
.pkk-post-media {
    position: relative;
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background: var(--posy-surface-2);
}

.pkk-post-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s var(--ease);
}

.pkk-card:hover .pkk-post-media img { transform: scale(1.05); }

.pkk-tag {
    display: inline-block;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--posy-purple);
    background: var(--posy-accent-pale);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
}

.pkk-post-media .pkk-tag {
    position: absolute;
    left: 14px;
    top: 14px;
    background: rgba(255, 255, 255, .94);
}

.pkk-post-body { padding: 20px 22px 24px; }

.pkk-post-body h3 {
    font-size: 1.0625rem;
    line-height: 1.45;
    margin: 12px 0 8px;
    color: var(--posy-purple);
}

.pkk-post-body h3 a { color: inherit; }
.pkk-post-body h3 a:hover { color: var(--posy-accent); }

.pkk-meta {
    font-size: .75rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: 7px;
    margin: 0;
}

.pkk-meta i { color: var(--posy-accent); }

/* kartu kecil (daftar) */
.pkk-mini {
    display: flex;
    gap: 14px;
    padding: 14px 0;
    border-bottom: 1px dashed var(--line);
}

.pkk-mini:last-child { border-bottom: 0; padding-bottom: 0; }

.pkk-mini-thumb {
    flex: 0 0 auto;
    width: 84px;
    height: 66px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    background: var(--posy-surface-2);
}

.pkk-mini-thumb img { width: 100%; height: 100%; object-fit: cover; }

.pkk-mini h4 {
    font-size: .875rem;
    line-height: 1.5;
    margin: 0 0 4px;
    color: var(--ink);
}

.pkk-mini h4 a { color: inherit; }
.pkk-mini h4 a:hover { color: var(--posy-purple); }

/* kartu program / layanan */
.pkk-program {
    text-align: center;
    padding: 30px 22px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    height: 100%;
    /* flex column supaya tombol selalu rata bawah meski panjang teks beda */
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: var(--shadow-warm);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

.pkk-program .pkk-btn { margin-top: auto; }

.pkk-program:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-warm-lg);
    border-color: var(--posy-accent-soft);
}

.pkk-program-ico {
    width: 74px;
    height: 74px;
    margin: 0 auto 16px;
    border-radius: 22px;
    background: var(--posy-surface-2);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.pkk-program-ico img { max-width: 54px; max-height: 54px; object-fit: contain; }

.pkk-program h3 { font-size: 1rem; margin: 0 0 8px; color: var(--posy-purple); }

.pkk-program p {
    font-size: .8125rem;
    color: var(--muted);
    margin: 0 0 14px;
    line-height: 1.6;
}

/* kartu galeri */
.pkk-gallery-item {
    position: relative;
    display: block;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background: var(--posy-surface-2);
}

.pkk-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.pkk-gallery-item:hover img { transform: scale(1.06); }

.pkk-gallery-item span {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 30px 13px 12px;
    background: linear-gradient(180deg, rgba(74, 42, 135, 0) 0%, rgba(74, 42, 135, .9) 100%);
    color: #fff;
    font-size: .6875rem;
    font-weight: 500;
    line-height: 1.45;
    /* judul dari DB panjang & huruf besar semua — batasi 2 baris */
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* panel samping */
.pkk-panel {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-warm);
    overflow: hidden;
    margin-bottom: 24px;
}

.pkk-panel-head {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 20px;
    border-bottom: 1px solid var(--line);
    font-weight: 700;
    font-size: .9375rem;
    color: var(--posy-purple);
    background: var(--posy-surface);
}

.pkk-panel-head::before {
    content: "";
    width: 4px;
    height: 16px;
    border-radius: 99px;
    background: linear-gradient(180deg, var(--posy-accent), var(--posy-accent-soft));
}

.pkk-panel-body { padding: 18px 20px; }

.pkk-empty {
    text-align: center;
    color: var(--muted);
    font-size: .875rem;
    padding: 22px 0;
    margin: 0;
}

/* polling */
.pkk-panel .card,
.pkk-panel .card-body { border: 0 !important; box-shadow: none !important; padding: 18px 20px !important; }
.pkk-panel .card-header { display: none !important; }


/* -------------------------------------------------------------- sambutan --- */

.pkk-sambutan {
    background: var(--posy-purple-deep);
    color: #fff;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
}

.pkk-sambutan::after {
    content: "";
    position: absolute;
    right: -120px;
    top: -120px;
    width: 340px;
    height: 340px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(81, 112, 250, .18) 0%, rgba(81, 112, 250, 0) 70%);
}

.pkk-sambutan-inner { padding: 36px 42px; position: relative; z-index: 2; }

.pkk-sambutan h2 { color: #fff; font-size: 1.375rem; margin: 12px 0 14px; }

.pkk-sambutan p {
    color: rgba(255, 255, 255, .78);
    font-size: .875rem;
    line-height: 1.85;
    margin: 0;
}

.pkk-sambutan-photo {
    border-radius: var(--radius-md);
    overflow: hidden;
    background: rgba(255, 255, 255, .06);
    padding: 8px;
    margin: 0;
}

/* foto memuat nama & jabatan di bagian bawah, jadi ditampilkan utuh */
.pkk-sambutan-photo img {
    width: 100%;
    height: 296px;
    object-fit: contain;
    display: block;
    border-radius: var(--radius-sm);
}

.pkk-sambutan .pkk-kicker { background: rgba(81, 112, 250, .16); color: var(--posy-accent-soft); }


/* ---------------------------------------------------------- chrome atas --- */

.header-top { background: var(--posy-purple-deep) !important; }

.header-mid {
    background-image: none !important;
    background-color: var(--posy-surface) !important;
    border-bottom: 0 !important;
    /* ruang lebih lega di bawah logo, sebelum bar navigasi */
    padding: 20px 0 28px !important;
}

.header-mid::after {
    height: 3px;
    background: linear-gradient(90deg, var(--posy-accent) 0%, var(--posy-accent-soft) 50%, var(--posy-purple) 100%);
}

.header-bottom {
    background: var(--posy-purple) !important;
    /* bayangan lembut saja. Versi sebelumnya (0 6px 20px) menumpahkan pita
       gelap ~15px di bawah nav, sehingga area pita "Pesan Baris" terlihat kotor */
    box-shadow: 0 2px 8px rgba(74, 42, 135, .10) !important;
}

/* ------------------------------------------- running text / "Pesan Baris" --- */

/* tema lama: label posisinya absolute + panah, pitanya margin-left:-1% dan
   width:100.9% sehingga keduanya tidak sejajar. Sekarang ditata ulang jadi
   satu baris flex: label kiri, pita berjalan kanan. */
.trending-area {
    /* dibuat sewarna hero supaya nav + pita + hero jadi satu blok gelap
       yang menyatu, bukan navy-krem-navy yang terlihat terpotong */
    background: var(--posy-purple-deep) !important;
    /* rapat ke bar navigasi, tidak menggantung jauh ke bawah */
    padding: 14px 0 18px !important;
}

.pkk-ticker {
    display: flex;
    align-items: center;
    gap: 12px;
}

.pkk-ticker-label {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    height: 40px;
    padding: 0 18px;
    border-radius: var(--radius-pill);
    background: linear-gradient(135deg, var(--posy-accent) 0%, #0a0280 100%);
    color: #fff;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .07em;
    text-transform: uppercase;
    white-space: nowrap;
}

.pkk-ticker .tickerwrapper {
    flex: 1 1 auto;
    min-width: 0;
    width: auto !important;
    height: 40px !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid var(--line) !important;
    border-radius: var(--radius-pill);
    background: var(--white) !important;
    overflow: hidden;
    box-shadow: var(--shadow-xs);
}

/* Kedua daftar (asli & klon) WAJIB diposisikan dengan cara yang identik.
   Sebelumnya yang asli memakai margin-top (ikut line-box, jadi tergeser
   setengah leading) sementara klon memakai top — akibatnya salinan teks
   bisa tampak naik-turun saat animasi berjalan. Sekarang keduanya absolute. */
.pkk-ticker .tickerwrapper ul.list,
.pkk-ticker .tickerwrapper ul.list.cloned {
    position: absolute !important;
    top: 9px !important;
    left: 0 !important;
    margin: 0 !important;
    will-change: transform;
}

.pkk-ticker .tickerwrapper ul.list li span { margin-left: 26px; }

.pkk-ticker .tickerwrapper ul.list li span a {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    color: var(--ink-2) !important;
    font-size: .875rem;
    white-space: nowrap;
}

.pkk-ticker .tickerwrapper ul.list li span a img {
    width: 20px;
    height: 20px;
    flex: 0 0 auto;
}


/* --------------------------------------------------------------- footer --- */

.footer-area {
    background: var(--posy-purple-deep) !important;
    border-top: 4px solid var(--posy-accent);
    padding: 56px 0 0 !important;
}

.footer-bottom-area,
.footer-bottom,
.footer-bottom-area.footer-bg { background: #2e1a57 !important; }

.footer-area .footer-tittle h4 {
    color: #fff;
    font-size: .9375rem;
    letter-spacing: .02em;
    position: relative;
    padding-bottom: 12px;
    margin-bottom: 20px;
}

.footer-area .footer-tittle h4::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 32px;
    height: 2px;
    border-radius: 99px;
    background: var(--posy-accent);
}


/* --------------------------------------------- 10 program pokok PKK ----- */

.pkk-pokok {
    position: relative;
    display: flex;
    gap: 18px;
    align-items: flex-start;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    padding: 24px 26px 24px 24px;
    height: 100%;
    overflow: hidden;
    box-shadow: var(--shadow-warm);
    transition: transform .28s var(--ease), box-shadow .28s var(--ease), border-color .28s var(--ease);
}

/* garis aksen emas yang muncul saat kartu disorot */
.pkk-pokok::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, var(--posy-accent), var(--posy-accent-soft));
    transform: scaleY(0);
    transform-origin: top center;
    transition: transform .3s var(--ease);
}

.pkk-pokok:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow-warm-lg);
    border-color: var(--posy-accent-soft);
}

.pkk-pokok:hover::before { transform: scaleY(1); }

.pkk-pokok-ico {
    flex: 0 0 auto;
    width: 54px;
    height: 54px;
    border-radius: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--posy-purple) 0%, var(--posy-purple-soft) 100%);
    color: var(--posy-accent-soft);
    font-size: 1.3rem;
    box-shadow: 0 6px 16px rgba(111, 66, 193, .18);
    transition: transform .3s var(--ease);
}

.pkk-pokok:hover .pkk-pokok-ico { transform: scale(1.07) rotate(-3deg); }

.pkk-pokok-body { min-width: 0; }

.pkk-pokok-num {
    display: block;
    font-size: .625rem;
    font-weight: 700;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--posy-accent);
    margin-bottom: 6px;
}

.pkk-pokok h3 {
    font-size: 1rem;
    line-height: 1.4;
    margin: 0 0 7px;
    color: var(--posy-purple);
    font-weight: 700;
}

.pkk-pokok p {
    font-size: .8125rem;
    line-height: 1.65;
    color: var(--muted);
    margin: 0;
}

/* catatan sumber di bawah grid */
.pkk-pokok-sumber {
    text-align: center;
    font-size: .75rem;
    color: var(--muted);
    margin: 10px 0 0;
}

/* pita ajakan di atas footer */
.pkk-cta {
    background: linear-gradient(120deg, var(--posy-purple) 0%, var(--posy-purple-soft) 100%);
    border-radius: var(--radius);
    padding: 34px 40px;
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 22px;
    flex-wrap: wrap;
}

.pkk-cta h3 { color: #fff; font-size: 1.25rem; margin: 0 0 4px; }
.pkk-cta p { color: rgba(255, 255, 255, .8); margin: 0; font-size: .875rem; }


/* ------------------------------------ chrome: utility bar & header info --- */

.header-top { padding: 9px 0 !important; }

.header-top .header-info-left ul,
.header-top .header-info-right ul {
    display: flex;
    align-items: center;
    gap: 20px;
    list-style: none;
    margin: 0;
    padding: 0;
}

.header-top .header-info-left ul li {
    display: flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, .82);
    font-size: .8125rem;
    margin: 0;
}

.header-top .header-info-left ul li .ti-email,
.header-top .header-info-left ul li .ti-mobile { color: var(--posy-accent-soft); }

/* tema lama memaksa uppercase + ikon merah #ff2143 dan garis pemisah */
.header-area .header-top .header-info-left ul li.title { text-transform: none !important; }

.header-area .header-top .header-info-left ul li span { color: var(--posy-accent-soft) !important; }

.header-area .header-top .header-info-left ul li {
    margin-right: 0 !important;
    padding-right: 0 !important;
    border-right: 0 !important;
}

.pkk-topbar-social { display: flex; gap: 8px; }

.pkk-topbar-social li a {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .1);
    color: #fff;
    font-size: .8125rem;
    transition: background .2s var(--ease), transform .2s var(--ease);
}

.pkk-topbar-social li a:hover {
    background: var(--posy-accent);
    color: #fff;
    transform: translateY(-2px);
}

/* blok tagline + ajakan di kanan header */
.pkk-header-cta { text-align: right; }

.pkk-header-cta p {
    font-size: .8125rem;
    color: var(--muted);
    line-height: 1.55;
    margin: 0 0 12px auto;
}

.pkk-header-cta .pkk-btn { padding: 10px 22px; font-size: .8125rem; }


/* ------------------------------------------------ chrome: footer baru --- */

.footer-area { padding: 62px 0 26px !important; }

.footer-logo { margin-bottom: 18px; }
.footer-logo img { max-width: 258px; height: auto; display: block; }

.pkk-footer-desc {
    color: rgba(255, 255, 255, .72);
    font-size: .875rem;
    line-height: 1.75;
    margin-bottom: 18px;
}

.pkk-footer-social { display: flex; gap: 9px; list-style: none; padding: 0; margin: 0; }

.pkk-footer-social li a {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .08);
    color: #fff;
    transition: background .2s var(--ease), transform .2s var(--ease);
}

.pkk-footer-social li a:hover { background: var(--posy-accent); transform: translateY(-2px); }

.pkk-footer-links { list-style: none; padding: 0; margin: 0; }

.pkk-footer-links li { margin-bottom: 11px; }

.pkk-footer-links li a {
    color: rgba(255, 255, 255, .74);
    font-size: .875rem;
    line-height: 1.6;
    display: inline-block;
    transition: color .2s var(--ease), padding-left .2s var(--ease);
}

.pkk-footer-links li a:hover { color: var(--posy-accent-soft); padding-left: 6px; }

.pkk-footer-contact { list-style: none; padding: 0; margin: 0; }

.pkk-footer-contact li {
    display: flex;
    gap: 12px;
    margin-bottom: 14px;
    color: rgba(255, 255, 255, .74);
    font-size: .875rem;
    line-height: 1.65;
}

.pkk-footer-contact li i { color: var(--posy-accent); margin-top: 4px; flex: 0 0 auto; }

.footer-bottom-area { padding: 18px 0 !important; }

.pkk-copy {
    color: rgba(255, 255, 255, .66);
    font-size: .8125rem;
    line-height: 1.8;
    margin: 0;
}

.pkk-copy strong { color: #fff; font-weight: 600; }


/* ------------------------------------------ rapikan sisa inline view lama --- */

/* beberapa view lama menulis width:300px pada header seksi */
.card-header[style*="width"],
.card-title[style*="width"],
.small-tittle[style*="width"] {
    width: auto !important;
}

/* dan border biru #6f42c1 pada card-body */
.card-body[style*="border-top"] {
    border-top: 1px solid var(--line) !important;
}

/* judul daftar lama */
.all_news_title {
    color: var(--posy-purple);
    font-weight: 600;
    line-height: 1.5;
    display: inline-block;
}

.all_news_title:hover { color: var(--posy-accent); }

.date-post {
    font-size: .75rem;
    color: var(--muted);
    margin-bottom: 6px;
}

.about-area2, .about-area2.gray-bg { background: var(--posy-surface) !important; }
.about-area2 .white-bg { background: transparent !important; }


/* ------------------------------------- halaman detail artikel & halaman --- */

/* pembungkus artikel & halaman jadi kartu.
   View halaman memakai .about-area2, view postingan memakai .halaman-detail —
   keduanya perlu selectornya supaya sama-sama jadi kartu. */
.halaman-detail .about-right.white-bg,
.about-area2 .about-right.white-bg {
    background: var(--white) !important;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow-warm);
    overflow: hidden;
    margin-bottom: 30px !important;
}

/* ------------------------------------------------------------------
   halaman statis (Visi dan Misi, Tugas dan Fungsi, dll)
   Dulu isinya dipecah dua <div padding:15px> yang dipisah <hr>, sehingga
   muncul celah kosong besar setelah baris meta. Sekarang satu kartu.
   ------------------------------------------------------------------ */

.halaman-konten { padding: 30px 34px 26px; }

.halaman-head {
    padding-bottom: 18px;
    border-bottom: 1px solid var(--line);
    margin-bottom: 22px;
}

.halaman-head h1 {
    font-size: 1.625rem;
    line-height: 1.35;
    letter-spacing: -.02em;
    color: var(--posy-purple);
    margin: 0 0 10px;
}

.halaman-meta {
    margin: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 7px;
    font-size: .8125rem;
    color: var(--muted);
}

.halaman-meta i { color: var(--posy-accent); font-size: .875rem; }
.halaman-dot { color: var(--line); }

.halaman-isi { margin-bottom: 26px; }

.halaman-share {
    display: flex;
    align-items: center;
    gap: 10px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.halaman-share > span {
    font-size: .8125rem;
    font-weight: 600;
    color: var(--ink-2);
    margin-right: 4px;
}

.halaman-share a {
    width: 36px;
    height: 36px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--posy-surface-2);
    color: var(--ink-2);
    font-size: .875rem;
    transition: background .2s var(--ease), color .2s var(--ease), transform .2s var(--ease);
}

.halaman-share a:hover {
    background: var(--posy-purple);
    color: #fff;
    transform: translateY(-2px);
}

@media (max-width: 767px) {
    .halaman-konten { padding: 22px 20px 20px; }
    .halaman-head h1 { font-size: 1.3rem; }
}

.halaman-detail .about-img img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--radius-md);
}

.halaman-detail .heading-news h3 { color: var(--posy-purple); }
.halaman-detail .heading-news h6 { color: var(--ink-2); font-weight: 600; font-size: .875rem; }
.halaman-detail .heading-news .date { color: var(--muted); font-size: .8125rem; }

.halaman-detail .tags a {
    display: inline-block;
    font-size: .6875rem;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: var(--posy-purple);
    background: var(--posy-accent-pale);
    padding: 5px 12px;
    border-radius: var(--radius-pill);
}

/* tipografi isi artikel */
.about-prea {
    color: var(--ink-2);
    font-size: .9375rem;
    line-height: 1.85;
}

.about-prea h3 {
    color: var(--posy-purple);
    font-size: 1.125rem;
    margin: 24px 0 10px;
}

.about-prea p { margin-bottom: 14px; }

.about-prea ul,
.about-prea ol { padding-left: 22px; margin-bottom: 16px; margin-left: 0; }

.about-prea li { margin-bottom: 7px; }

/* Tema lama (style.css) menulis aturan ini untuk butir daftar isi:
     .about-prea ol li, .about-prea ul li { line-height: 12px;
                                            font-family: "Roboto";
                                            margin-bottom: 15px }
   Teksnya sendiri 15px, jadi baris yang membungkus saling menempel, dan
   "Roboto" tidak pernah dimuat sehingga jatuh ke font cadangan. Selector
   di bawah menyamai kekuatannya tapi dimuat belakangan, jadi menang. */
.about-prea ul li,
.about-prea ol li {
    line-height: 1.75;
    margin-bottom: 9px;
    font-family: inherit;
    font-size: inherit;
    font-weight: inherit;
    color: inherit;
}

/* penanda daftar ikut warna aksen */
.about-prea li::marker { color: var(--posy-accent); font-weight: 600; }

.about-prea img {
    max-width: 100%;
    height: auto;
    border-radius: var(--radius-sm);
}

.about-prea table { width: 100%; margin-bottom: 16px; }

.about-prea table td,
.about-prea table th {
    border: 1px solid var(--line);
    padding: 8px 10px;
    font-size: .875rem;
}


/* ------------------------------------ halaman dokumen (front end) ------- */

.pkk-count {
    margin-left: auto;
    font-size: .75rem;
    font-weight: 500;
    color: var(--muted);
}

/* daftar folder sebagai pill — tema lama memakai hijau #7b6ba8 + bullet */
.pkk-folder {
    display: flex;
    flex-wrap: wrap;
    gap: 9px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.pkk-folder a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 9px 16px;
    border-radius: var(--radius-pill);
    border: 1px solid var(--line);
    background: var(--white);
    color: var(--ink-2);
    font-size: .8125rem;
    font-weight: 500;
    transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}

.pkk-folder a i { color: var(--posy-accent); font-size: .875rem; }

.pkk-folder a:hover { border-color: var(--posy-accent-soft); color: var(--posy-purple); }

.pkk-folder li.active a {
    background: var(--posy-purple);
    border-color: var(--posy-purple);
    color: #fff;
}

.pkk-folder li.active a i { color: var(--posy-accent-soft); }

/* baris berkas dokumen */
.pkk-doc {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px 0;
    border-bottom: 1px dashed var(--line);
}

.pkk-doc:first-child { padding-top: 0; }
.pkk-doc:last-child { border-bottom: 0; padding-bottom: 0; }

.pkk-doc-ico {
    flex: 0 0 auto;
    width: 46px;
    height: 46px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--posy-accent-pale);
    color: var(--posy-accent);
    font-size: 1.1rem;
}

.pkk-doc-body { flex: 1 1 auto; min-width: 0; }

.pkk-doc-body strong {
    display: block;
    font-size: .875rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.5;
    word-break: break-word;
}

.pkk-doc-body span {
    display: block;
    font-size: .75rem;
    color: var(--muted);
    margin-top: 3px;
}

.pkk-doc .pkk-btn { flex: 0 0 auto; padding: 9px 18px; font-size: .75rem; }

/* keadaan kosong */
.pkk-empty-state { text-align: center; padding: 38px 20px; color: var(--muted); }
.pkk-empty-state i { font-size: 2.4rem; color: var(--line); display: block; margin-bottom: 14px; }
.pkk-empty-state p { margin: 0; font-size: .875rem; }


/* ------------------------------------------------------- layar kecil ----- */

@media (max-width: 991px) {
    .pkk-hero { padding: 52px 0 56px; }
    .pkk-hero h1 { font-size: 2rem; }
    .pkk-hero-mark { right: -80px; height: 105%; }
    .pkk-section { padding: 46px 0; }
}

@media (max-width: 767px) {
    .pkk-hero { padding: 40px 0 44px; }
    .pkk-hero h1 { font-size: 1.7rem; }
    .pkk-hero-lead { font-size: .9375rem; margin-bottom: 24px; }
    .pkk-hero-mark { right: -110px; height: 92%; opacity: .10; }
    .pkk-head h2 { font-size: 1.5rem; }
    .pkk-sambutan-inner { padding: 28px 24px; }
    .pkk-section { padding: 38px 0; }
    /* baris dokumen: tombol turun ke baris sendiri agar tidak sempit */
    .pkk-doc { flex-wrap: wrap; }
    .pkk-doc .pkk-btn { width: 100%; justify-content: center; }
}
