/* ==========================================================================
   PPID DPRD Kota Cilegon - website publik
   Nilai ukuran/warna diambil dari Figma "DPRD-PPID" (frame 1440px).
   ========================================================================== */

/* ---------- Tokens ---------- */
:root {
    --c-black: #2c2c2c;
    --c-dark-2: #515151;
    --c-grey: #888888;
    --c-copyright: #6c6c6c;
    --c-white: #ffffff;
    --c-yellow: #e9b102;
    --c-lemon: #fcee05;
    --c-amber: #fec000;
    --c-red: #ec2027;
    --c-cyan: #4f6edd;
    --c-navy: #1c389c;
    --c-navy-dark: #091e67;
    --c-sky: #93c5fd;
    --c-form: #f5f5f5;
    --c-border: #e6e6e6;
    --c-border-soft: #f1f1f1;
    --c-border-box: #b2b2b2;
    --c-section: #fbf6f6;
    --c-footer-bar: #dfdfdf;
    --c-chip: #e2faee;
    --c-chip-active: #46d98e;
    --c-chip-ink: #13834a;
    --c-overlay: rgba(1, 6, 44, 0.5);

    --font: "Manrope", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --container: 1140px;
    --gutter: 16px;
    --radius-sm: 5px;
    --radius: 10px;
    --radius-lg: 15px;
    --shadow-card: 0 0 10px rgba(0, 0, 0, 0.1);
    --shadow-btn: 0 5px 20px rgba(24, 119, 242, 0.5);
    --grad-navy: linear-gradient(270deg, var(--c-navy) 0%, var(--c-navy-dark) 100%);
    --grad-gold: linear-gradient(80.45deg, #fec000 11.27%, #e9cc28 100%);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    font-family: var(--font);
    font-size: 15px;
    line-height: 1.5;
    color: var(--c-black);
    background: var(--c-white);
    overflow-x: hidden;
}
img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
:focus-visible { outline: 2px solid var(--c-cyan); outline-offset: 2px; }
.visually-hidden {
    position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.container {
    width: 100%;
    max-width: calc(var(--container) + var(--gutter) * 2);
    margin-inline: auto;
    padding-inline: var(--gutter);
}

.section-title {
    font-size: 25px;
    font-weight: 800;
    line-height: 1.3;
    color: var(--c-black);
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    border: 0;
    border-radius: var(--radius);
    text-align: center;
    transition: transform .15s ease, box-shadow .15s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.06); }
.btn:active { transform: translateY(1px); }
.btn img { flex: none; }

.btn--primary {
    min-height: 54px;
    padding: 12px 24px;
    background: var(--grad-navy);
    box-shadow: var(--shadow-btn);
    color: var(--c-white);
    font-size: 15px;
    font-weight: 600;
    line-height: 25px;
}
.btn--lg { min-width: 281px; font-size: 20px; }

.btn--lemon {
    padding: 7px 20px;
    gap: 15px;
    border-radius: var(--radius-sm);
    background: var(--c-lemon);
    color: var(--c-black);
    font-size: 15px;
    font-weight: 800;
    line-height: 24px;
}
.btn--lemon img { width: 12.25px; height: 12.25px; transform: rotate(90deg); }

.btn--outline {
    min-height: 44px;
    padding: 10px 20px;
    border: 1px solid var(--c-navy);
    background: var(--c-white);
    color: var(--c-navy);
    font-weight: 700;
}

/* ---------- Navbar ---------- */
.site-header {
    position: absolute;
    inset: 0 0 auto 0;
    z-index: 50;
    color: var(--c-white);
}
.site-header--solid {
    background: rgba(6, 6, 6, 0.6);
    -webkit-backdrop-filter: blur(5px);
    backdrop-filter: blur(5px);
}
.navbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    height: 79px;
}
.site-header--solid .navbar { height: 86px; }

.brand {
    display: flex;
    align-items: center;
    gap: 12.24px;
    flex: none;
    margin-left: 6px;
}
.brand__mark { position: relative; width: 59.47px; height: 54.08px; flex: none; }
.brand__mark .brand__backdrop { position: absolute; left: 3.19px; top: 1.19px; width: 54.86px; height: 51.36px; }
.brand__mark .brand__logo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.brand__text { width: 102px; height: auto; }

.nav-menu {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-left: 24px;
}
.nav-item { position: relative; }
.nav-item--mobile { display: none; }
.nav-link {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10px 0;
    border: 0;
    background: none;
    color: var(--c-white);
    font-size: 15px;
    font-weight: 700;
    line-height: 1;
    white-space: nowrap;
}
.nav-link .chevron { width: 4.58px; height: 7px; transform: rotate(-90deg); transition: transform .2s ease; }
.nav-item.is-open .nav-link .chevron { transform: rotate(90deg); }
.nav-link.is-active { box-shadow: inset 0 -2px 0 var(--c-lemon); }

.dropdown {
    position: absolute;
    top: calc(100% + 8px);
    left: -16px;
    min-width: 240px;
    padding: 10px;
    border-radius: var(--radius);
    background: var(--c-white);
    box-shadow: 0 10px 30px rgba(1, 6, 44, 0.18);
    opacity: 0;
    visibility: hidden;
    transform: translateY(6px);
    transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.dropdown--right { left: auto; right: 0; }
.nav-item.is-open > .dropdown { opacity: 1; visibility: visible; transform: none; }
.dropdown a {
    display: block;
    padding: 10px 12px;
    border-radius: 6px;
    color: var(--c-black);
    font-size: 15px;
    white-space: nowrap;
}
.dropdown a:hover, .dropdown a:focus-visible { background: var(--c-form); color: var(--c-navy); }

.nav-actions { display: flex; align-items: center; gap: 12px; flex: none; }
.btn-visit {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 10.5px 20px;
    border: 0;
    border-radius: 50px;
    background: var(--c-white);
    color: var(--c-black);
    font-size: 14px;
    font-weight: 700;
    line-height: 19px;
    white-space: nowrap;
}
.btn-visit .chevron { width: 4.58px; height: 7px; transform: rotate(-90deg); }

.nav-toggle {
    display: none;
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: var(--radius);
    background: rgba(255, 255, 255, 0.12);
    align-items: center;
    justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; position: relative; width: 20px; height: 2px; border-radius: 2px; background: var(--c-white);
    transition: transform .2s ease, background .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-open .nav-toggle span { background: transparent; }
.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

/* ---------- Hero (Beranda) ---------- */
.hero {
    position: relative;
    height: 783px;
    background: var(--c-navy-dark) center / cover no-repeat;
    color: var(--c-white);
    text-align: center;
    overflow: hidden;
}
.hero::before { content: ""; position: absolute; inset: 0; background: var(--c-overlay); }
.hero::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -46px;
    width: 1494px;
    height: 90px;
    border-radius: 50%;
    background: var(--c-white);
    transform: translateX(-50%);
}
.hero__inner { position: relative; z-index: 1; padding-top: 227px; }
.hero__title { max-width: 727px; margin-inline: auto; font-size: 55px; font-weight: 700; line-height: 65px; }
.hero__lead { max-width: 539px; margin: 23px auto 0; font-size: 15px; font-weight: 500; line-height: 23px; }

.search-bar {
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 831px;
    height: 48px;
    margin: 35px auto 0;
    padding: 0 8px 0 11px;
    border: 1px solid #8d8d8d;
    border-radius: var(--radius);
    background: rgba(189, 189, 189, 0.3);
    -webkit-backdrop-filter: blur(2px);
    backdrop-filter: blur(2px);
}
.search-bar__icon { width: 21px; height: 21px; padding: 2.4px; flex: none; }
.search-bar input {
    flex: 1;
    min-width: 0;
    height: 100%;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--c-white);
    font-size: 14px;
}
.search-bar input::placeholder { color: var(--c-white); opacity: 1; }
.search-bar button {
    flex: none;
    width: 56px;
    height: 32px;
    border: 0;
    border-radius: var(--radius-sm);
    background: var(--c-lemon);
    color: var(--c-black);
    font-size: 14px;
    font-weight: 700;
}
.search-bar--light { border-color: var(--c-border); background: var(--c-white); }
.search-bar--light input, .search-bar--light input::placeholder { color: var(--c-black); }
.search-bar--light input::placeholder { color: var(--c-grey); }

/* ---------- Kartu jenis informasi ---------- */
.info-cards {
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 19px;
    margin-top: -95px;
}
.info-card {
    display: flex;
    flex-direction: column;
    gap: 35px;
    padding: 35px 30px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease;
}
.info-card:hover { transform: translateY(-4px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12); }
.info-card__icon { width: 73px; height: 73px; }
.info-card__title { font-size: 16px; font-weight: 700; line-height: 1.35; }
.info-card__text { margin-top: 16px; min-height: 79px; color: var(--c-grey); font-size: 14px; line-height: 23px; }

/* ---------- Permohonan Online ---------- */
.cta-online {
    margin-top: 50px;
    padding: 42px 62px 36px;
    border-radius: var(--radius);
    background: var(--c-navy);
    color: var(--c-white);
    text-align: center;
}
.cta-online__title { font-size: 25px; font-weight: 800; line-height: 1.3; }
.cta-online__text { max-width: 642px; margin: 18px auto 0; color: var(--c-sky); font-size: 15px; line-height: 23px; }
.cta-online__actions { display: grid; grid-template-columns: repeat(2, 1fr); gap: 27px; margin-top: 28px; text-align: left; }
.cta-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 13px;
    padding: 21px 20px;
    border-radius: var(--radius);
    background: var(--grad-gold);
    box-shadow: 0 2px 5px rgba(233, 177, 2, 0.5);
    color: var(--c-black);
    transition: transform .2s ease;
}
.cta-card:hover { transform: translateY(-2px); }
.cta-card__title { display: block; font-size: 16px; font-weight: 700; line-height: 1.3; }
.cta-card__text { display: block; margin-top: 6px; font-size: 14px; line-height: 23px; }
.cta-card img { width: 35px; height: 35px; flex: none; }

/* ---------- Slider Data Anggaran ---------- */
.slider-section { margin-top: 52px; padding: 63px 0 40px; background: var(--c-section); overflow: hidden; }
.slider { position: relative; }
.slider__track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
}
.slider__track::-webkit-scrollbar { display: none; }
.slide {
    position: relative;
    flex: 0 0 869px;
    height: 428px;
    border-radius: var(--radius);
    overflow: hidden;
    scroll-snap-align: start;
    background: var(--c-navy-dark) center / cover no-repeat;
    color: var(--c-white);
}
.slide::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(237.57deg, rgba(28, 56, 156, 0) 50.91%, rgba(10, 19, 54, 0.5) 100%);
}
.slide__body { position: relative; padding: 95px 0 0 79px; max-width: 420px; }
.slide__label { display: block; font-size: 34.8px; font-weight: 800; line-height: 1.2; }
.slide__year { display: block; font-size: 69.6px; font-weight: 800; line-height: 1.1; }
.slide__text { margin-top: 16px; font-size: 15px; line-height: 23px; max-width: 330px; }
.slide__body .btn--lemon { margin-top: 22px; }
.slider__dots { display: flex; justify-content: center; gap: 7.6px; margin-top: 24px; }
.slider__dot {
    width: 11.35px;
    height: 11.35px;
    padding: 0;
    border: 1.26px solid var(--c-navy);
    border-radius: 50%;
    background: transparent;
}
.slider__dot.is-active { background: var(--c-navy); }

/* ---------- Prosedur & Standar Pelayanan ---------- */
.prosedur { padding: 58px 0 0; text-align: center; }
.prosedur__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 21.8px 23.86px;
    max-width: 1028px;
    margin: 50px auto 0;
    text-align: left;
}
.proc-card {
    position: relative;
    aspect-ratio: 326.74 / 239.61;
    border-radius: 10.37px;
    overflow: hidden;
    background: #d9d9d9;
    color: var(--c-white);
}
.proc-card img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.proc-card:hover img { transform: scale(1.05); }
.proc-card__bar {
    position: absolute;
    inset: auto 0 0 0;
    display: flex;
    align-items: center;
    height: 23.38%;
    padding: 0 28px;
    background: rgba(28, 56, 156, 0.7);
    font-size: 16.6px;
    font-weight: 700;
    line-height: 1.3;
}
.proc-card--featured .proc-card__bar {
    inset: 0;
    height: auto;
    flex-direction: column;
    align-items: flex-start;
    justify-content: flex-start;
    padding: 140px 28px 0;
    background: rgba(28, 56, 156, 0.8);
    font-size: 16px;
}
.proc-card__desc { max-width: 215px; margin-top: 10px; font-size: 14px; font-weight: 400; line-height: 22px; }

/* ---------- Maklumat ---------- */
.maklumat {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
    max-width: 1028px;
    margin: 48px auto 0;
    padding: 50px 41px 50px 40px;
    border: 1px solid var(--c-border-box);
    border-radius: var(--radius);
}
.maklumat__body { max-width: 599px; }
.maklumat__text { margin-top: 20px; font-size: 15px; line-height: 25px; }
.maklumat .btn--primary { flex: none; width: 257px; }
.maklumat .btn--primary img { width: 12.25px; height: 19.13px; transform: rotate(90deg); }

/* ---------- Page header (halaman dalam) ---------- */
.page-header {
    position: relative;
    height: 398px;
    background: var(--c-navy-dark) center / cover no-repeat;
    color: var(--c-white);
}
.page-header::before { content: ""; position: absolute; inset: 0; background: var(--c-overlay); }
.page-header__inner { position: relative; z-index: 1; padding-top: 154px; padding-left: calc(var(--gutter) + 6px); }
.breadcrumb { margin: 0; padding: 0; list-style: none; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 15px; font-size: 13px; line-height: 1.5; }
.breadcrumb img { width: 4.51px; height: 8.59px; transform: scaleX(-1); }
.breadcrumb a:hover { text-decoration: underline; }
.page-header__title { margin-top: 18px; font-size: 40px; font-weight: 800; line-height: 1.25; }
.page-header__lead { max-width: 477px; margin-top: 14px; font-size: 18px; font-weight: 500; line-height: 27px; }

.page-body { padding: 50px 0 87px; }

/* ---------- Form ---------- */
.form-grid { display: grid; grid-template-columns: 542px 542px; justify-content: space-between; gap: 47px; }
.form-col { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
.form-col > .section-title { margin-bottom: 10px; }
.form-col > .section-title + .field, .form-col > .section-title + .note { margin-top: 0; }
.form-col .section-title--spaced { margin-top: 28px; }

.field {
    display: block;
    padding: 12px 20px 10px;
    border: 1px solid transparent;
    border-radius: var(--radius-lg);
    background: var(--c-form);
    transition: border-color .15s ease, background .15s ease;
}
.field:focus-within { border-color: var(--c-cyan); background: #f1f3fb; }
.field.has-error { border-color: var(--c-red); }
.field__label { display: block; color: var(--c-grey); font-size: 11px; line-height: 14px; }
.field__control {
    display: block;
    width: 100%;
    margin-top: 2px;
    padding: 0;
    border: 0;
    outline: 0;
    background: transparent;
    color: var(--c-black);
    font-size: 15px;
    line-height: 20px;
}
textarea.field__control { min-height: 100px; line-height: 23px; resize: vertical; }
select.field__control { appearance: none; padding-right: 28px; cursor: pointer; }
.field--select { position: relative; }
.field--select::after {
    content: "";
    position: absolute;
    right: 22px;
    top: 50%;
    width: 7px;
    height: 7px;
    border-right: 1.5px solid var(--c-dark-2);
    border-bottom: 1.5px solid var(--c-dark-2);
    transform: translateY(-20%) rotate(45deg);
    pointer-events: none;
}
.field__error { display: block; margin-top: 4px; color: var(--c-red); font-size: 12px; }

.chip-group {
    align-self: flex-start;
    max-width: 100%;
    padding: 13px 17px 15px;
    border: 1px solid var(--c-border-soft);
    border-radius: var(--radius-lg);
}
.chip-group.has-error { border-color: var(--c-red); }
.chip-group legend { float: left; width: 100%; padding: 0 3px; color: var(--c-grey); font-size: 11px; line-height: 1.3; }
.chip-group__items { clear: both; display: flex; flex-wrap: wrap; gap: 11px; padding-top: 10px; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span {
    display: inline-block;
    padding: 15px;
    border-radius: var(--radius);
    background: var(--c-chip);
    color: var(--c-chip-ink);
    font-size: 15px;
    line-height: 23px;
    cursor: pointer;
    transition: background .15s ease;
}
.chip:hover span { background: #c9f4de; }
.chip input:checked + span { background: var(--c-chip-active); }
.chip input:focus-visible + span { outline: 2px solid var(--c-cyan); outline-offset: 2px; }
fieldset.chip-group { margin: 0; min-width: 0; }

.note { padding: 15px 20px; border-radius: var(--radius); background: var(--c-amber); font-size: 15px; line-height: 23px; }

.captcha { display: flex; align-items: center; gap: 64px; margin-top: 8px; }
.captcha img { width: 224px; height: 44px; }
.captcha button { width: 30px; height: 30px; padding: 8px; border: 0; background: transparent; }
.captcha button img { width: 14px; height: 14px; }

.form-actions { margin-top: 17px; }

.alert { padding: 14px 18px; border-radius: var(--radius); font-size: 15px; line-height: 23px; }
.alert--success { background: var(--c-chip); color: var(--c-chip-ink); }
.alert--error { background: #fde8e9; color: #a8151b; }
.alert + .alert { margin-top: 10px; }
.page-body > .container > .alert { margin-bottom: 24px; }

/* ---------- Accordion / panel samping ---------- */
.panel { align-self: start; padding: 27px 18px 37px; border-radius: var(--radius-lg); background: var(--c-form); }
.panel > .section-title { margin-bottom: 28px; }
.accordion { display: flex; flex-direction: column; gap: 17px; }
.accordion__item { border-radius: var(--radius-lg); background: var(--c-white); }
.accordion__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    width: 100%;
    min-height: 58px;
    padding: 12px 20px 12px 24px;
    border: 0;
    background: transparent;
    color: var(--c-navy);
    font-size: 15px;
    font-weight: 700;
    text-align: left;
}
.accordion__head img { width: 21px; height: 21px; flex: none; }
.accordion__head .icon-minus { display: none; }
.accordion__item.is-open .icon-minus { display: block; }
.accordion__item.is-open .icon-plus { display: none; }
.accordion__body { display: none; padding: 0 41px 24px 29px; font-size: 15px; line-height: 23px; }
.accordion__item.is-open .accordion__body { display: block; }
.accordion__body p + p { margin-top: 23px; }

/* ---------- Layout konten dengan menu samping ---------- */
.content-layout { display: grid; grid-template-columns: 300px 1fr; gap: 47px; align-items: start; }
.side-nav { position: sticky; top: 24px; padding: 18px; border-radius: var(--radius-lg); background: var(--c-form); }
.side-nav__title { padding: 6px 6px 14px; font-size: 17px; font-weight: 700; }
.side-nav a {
    display: block;
    padding: 14px 18px;
    border-radius: var(--radius);
    color: var(--c-navy);
    font-size: 15px;
    font-weight: 700;
}
.side-nav a + a { margin-top: 8px; }
.side-nav a { background: var(--c-white); }
.side-nav a.is-active { background: var(--grad-navy); color: var(--c-white); }

.prose { font-size: 15px; line-height: 25px; color: var(--c-black); overflow-wrap: anywhere; }
.prose > * + * { margin-top: 16px; }
.prose h2, .prose h3 { font-weight: 800; line-height: 1.35; }
.prose h2 { font-size: 22px; }
.prose h3 { font-size: 18px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { color: var(--c-navy); text-decoration: underline; }
.prose img { height: auto; border-radius: var(--radius); }
.prose table { width: 100%; border-collapse: collapse; }
.prose td, .prose th { padding: 8px 10px; border: 1px solid var(--c-border); }
.content-block + .content-block { margin-top: 32px; padding-top: 32px; border-top: 1px solid var(--c-border); }
.content-block__img { margin-bottom: 20px; border-radius: var(--radius); }

.empty-state {
    padding: 48px 24px;
    border: 1.5px dashed var(--c-border);
    border-radius: var(--radius);
    color: var(--c-grey);
    text-align: center;
}

/* ---------- Daftar informasi ---------- */
.toolbar { display: grid; grid-template-columns: 1fr; gap: 16px; align-items: center; }
.toolbar .search-bar { margin: 0; max-width: none; }
.filter-chips { display: flex; flex-wrap: wrap; gap: 11px; margin-top: 20px; }
.filter-chips a {
    padding: 10px 15px;
    border-radius: var(--radius);
    background: var(--c-chip);
    color: var(--c-chip-ink);
    font-size: 14px;
    line-height: 20px;
}
.filter-chips a.is-active { background: var(--c-chip-active); }
.result-meta { margin-top: 24px; color: var(--c-grey); font-size: 14px; }

.doc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 19px; margin-top: 16px; }
.doc-card {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 26px 26px 24px;
    border: 1.5px solid var(--c-border);
    border-radius: var(--radius);
    background: var(--c-white);
    box-shadow: var(--shadow-card);
    transition: transform .2s ease, box-shadow .2s ease;
}
.doc-card:hover { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12); }
.doc-card__top { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.doc-card__top img { width: 52px; height: 52px; }
.badge {
    display: inline-block;
    padding: 4px 10px;
    border-radius: 50px;
    background: var(--c-chip);
    color: var(--c-chip-ink);
    font-size: 12px;
    font-weight: 600;
    line-height: 18px;
}
.doc-card__title { font-size: 16px; font-weight: 700; line-height: 1.45; }
.doc-card__meta { margin-top: auto; color: var(--c-grey); font-size: 13px; line-height: 20px; }
.doc-card__link { color: var(--c-navy); font-size: 14px; font-weight: 700; }

.pagination { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 36px; }
.pagination a, .pagination span {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius);
    background: var(--c-form);
    font-size: 14px;
    font-weight: 600;
}
.pagination a:hover { background: var(--c-chip); color: var(--c-chip-ink); }
.pagination .is-active { background: var(--c-navy); color: var(--c-white); }
.pagination .is-disabled { opacity: .45; }

/* ---------- Detail informasi ---------- */
.detail-layout { display: grid; grid-template-columns: 1fr 340px; gap: 47px; align-items: start; }
.meta-table { width: 100%; border-collapse: collapse; margin-top: 24px; font-size: 15px; }
.meta-table th, .meta-table td { padding: 12px 0; border-bottom: 1px solid var(--c-border); text-align: left; vertical-align: top; }
.meta-table th { width: 200px; color: var(--c-grey); font-weight: 500; }
.download-box { margin-top: 28px; display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.download-box small { color: var(--c-grey); font-size: 13px; }
.related { display: flex; flex-direction: column; gap: 12px; }
.related a { display: block; padding: 14px 16px; border-radius: var(--radius); background: var(--c-white); font-size: 14px; font-weight: 600; line-height: 21px; }
.related a:hover { color: var(--c-navy); }
.related small { display: block; margin-top: 4px; color: var(--c-grey); font-weight: 400; }

/* ---------- Data anggaran ---------- */
.budget-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.budget-card { display: flex; flex-direction: column; border-radius: var(--radius); overflow: hidden; background: var(--c-white); border: 1.5px solid var(--c-border); box-shadow: var(--shadow-card); }
.budget-card__img { position: relative; aspect-ratio: 16 / 10; background: var(--c-navy) center / cover no-repeat; color: var(--c-white); }
.budget-card__img::before { content: ""; position: absolute; inset: 0; background: linear-gradient(237.57deg, rgba(28, 56, 156, 0) 40%, rgba(10, 19, 54, 0.6) 100%); }
.budget-card__year { position: absolute; left: 22px; bottom: 16px; font-size: 40px; font-weight: 800; line-height: 1; }
.budget-card__body { display: flex; flex-direction: column; gap: 10px; flex: 1; padding: 20px 22px 22px; }
.budget-card__title { font-size: 16px; font-weight: 700; line-height: 1.45; }
.budget-card__text { color: var(--c-grey); font-size: 14px; line-height: 22px; }
.budget-card .btn--lemon { align-self: flex-start; margin-top: auto; }

/* ---------- Login pemohon ---------- */
.auth-card { max-width: 542px; margin-inline: auto; }
.auth-card .section-title { margin-bottom: 8px; }
.auth-card__lead { margin-bottom: 18px; color: var(--c-dark-2); line-height: 23px; }
.auth-card .btn--primary { width: 100%; }
.auth-card__foot { margin-top: 22px; color: var(--c-dark-2); text-align: center; }
.auth-card__foot a { color: var(--c-navy); font-weight: 700; }

.riwayat { margin-top: 48px; }
.table-wrap { overflow-x: auto; margin-top: 18px; border: 1px solid var(--c-border); border-radius: var(--radius); }
.table { width: 100%; min-width: 560px; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: 12px 16px; border-bottom: 1px solid var(--c-border); text-align: left; }
.table th { background: var(--c-form); font-weight: 700; }
.table tr:last-child td { border-bottom: 0; }

/* ---------- Footer ---------- */
.site-footer { margin-top: 99px; background: var(--c-form); }
.page-body + .site-footer, .site-footer--flush { margin-top: 0; }
.footer-grid {
    display: grid;
    grid-template-columns: 400px 237px 297px 1fr;
    padding: 37px 0 46px;
}
.footer-brand { display: flex; align-items: center; gap: 18.79px; margin-left: -2px; }
.footer-brand img { width: 98.97px; height: 90px; object-fit: cover; }
.footer-brand span { font-size: 30.87px; font-weight: 800; line-height: 34.57px; }
.footer-address { font-style: normal; max-width: 263px; margin: 21px 0 0 5px; color: var(--c-dark-2); font-size: 15px; line-height: 20px; }
.footer-social { display: flex; align-items: center; gap: 29.97px; margin: 30px 0 0 5px; }
.footer-social img { height: 20.88px; width: auto; }
.footer-social a:hover { opacity: .75; }
.footer-col h3 { font-size: 17px; font-weight: 700; line-height: 28px; }
.footer-col h3::after { content: ""; display: block; width: 31px; height: 3px; margin-top: 12px; border-radius: 2px; background: var(--c-yellow); }
.footer-col ul { display: flex; flex-direction: column; gap: 9px; margin-top: 18px; }
.footer-col a { color: var(--c-dark-2); font-size: 15px; line-height: 20px; }
.footer-col a:hover { color: var(--c-navy); }
.footer-bottom { padding: 21px 0; background: var(--c-footer-bar); color: var(--c-copyright); font-size: 15px; line-height: 30px; text-align: center; }

.wa-float {
    position: fixed;
    right: 0;
    bottom: 80px;
    z-index: 60;
    width: 64px;
    height: 64px;
    transition: transform .2s ease;
}
.wa-float:hover { transform: scale(1.06); }
.wa-float img { width: 100%; height: 100%; }

/* ==========================================================================
   Tablet: 768px - 1199px
   ========================================================================== */
@media (max-width: 1199.98px) {
    .nav-toggle { display: inline-flex; }
    /* backdrop-filter membuat elemen fixed (panel menu) terkurung di header */
    .site-header--solid { -webkit-backdrop-filter: none; backdrop-filter: none; background: rgba(6, 6, 6, 0.82); }
    .nav-menu {
        position: fixed;
        inset: 0 0 0 auto;
        z-index: 49;
        width: min(360px, 100%);
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        margin: 0;
        padding: 96px 20px 32px;
        overflow-y: auto;
        background: #0b1440;
        transform: translateX(100%);
        transition: transform .25s ease;
    }
    .nav-open .nav-menu { transform: none; }
    .nav-open .wa-float { display: none; }
    .nav-open { overflow: hidden; }
    .nav-backdrop { position: fixed; inset: 0; z-index: 48; background: rgba(0, 0, 0, .45); opacity: 0; visibility: hidden; transition: opacity .2s ease; }
    .nav-open .nav-backdrop { opacity: 1; visibility: visible; }
    .nav-menu .nav-item { border-bottom: 1px solid rgba(255, 255, 255, 0.12); }
    .nav-link { justify-content: space-between; width: 100%; padding: 16px 4px; }
    .nav-link.is-active { box-shadow: none; color: var(--c-lemon); }
    .nav-menu .dropdown {
        position: static;
        min-width: 0;
        padding: 0 0 10px;
        background: transparent;
        box-shadow: none;
        opacity: 1;
        visibility: visible;
        transform: none;
        display: none;
    }
    .nav-menu .nav-item.is-open > .dropdown { display: block; }
    .nav-menu .dropdown a { color: rgba(255, 255, 255, 0.85); padding: 10px 12px; white-space: normal; }
    .nav-menu .dropdown a:hover { background: rgba(255, 255, 255, 0.08); color: var(--c-white); }
    .nav-actions { position: relative; z-index: 51; }
    .site-header .brand, .nav-toggle { position: relative; z-index: 51; }

    .hero__title { font-size: 46px; line-height: 56px; }
    .info-cards { grid-template-columns: repeat(2, 1fr); }
    .info-card__text { min-height: 0; }
    .cta-online { padding: 40px 32px 32px; }
    .slide { flex-basis: 78%; }
    .prosedur__grid { grid-template-columns: repeat(2, 1fr); }
    .form-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
    .content-layout { grid-template-columns: 260px 1fr; gap: 32px; }
    .detail-layout { grid-template-columns: 1fr; }
    .doc-grid, .budget-grid { grid-template-columns: repeat(2, 1fr); }
    .footer-grid { grid-template-columns: 1fr 1fr 1fr; gap: 32px; }
    .footer-grid > :first-child { grid-column: 1 / -1; }
}

/* ==========================================================================
   Mobile: <= 767px
   ========================================================================== */
@media (max-width: 767.98px) {
    body { font-size: 14px; }
    .btn-visit, .nav-actions > .nav-item { display: none; }
    .nav-item--mobile { display: block; }
    .brand__text { width: 88px; }
    .navbar, .site-header--solid .navbar { height: 72px; }
    .brand { margin-left: 0; }

    .hero { height: auto; min-height: 640px; padding-bottom: 140px; }
    .hero__inner { padding-top: 140px; }
    .hero__title { font-size: 32px; line-height: 40px; }
    .hero__lead { font-size: 14px; line-height: 22px; }
    .search-bar { gap: 10px; margin-top: 28px; }
    .search-bar input { font-size: 13px; }

    .info-cards { grid-template-columns: 1fr; gap: 16px; margin-top: -110px; }
    .info-card { flex-direction: row; align-items: flex-start; gap: 18px; padding: 24px 20px; }
    .info-card__icon { width: 56px; height: 56px; flex: none; }
    .info-card__text { margin-top: 8px; }

    .cta-online { margin-top: 36px; padding: 32px 18px 22px; }
    .cta-online__title, .section-title { font-size: 22px; }
    .cta-online__actions { grid-template-columns: 1fr; gap: 14px; margin-top: 22px; }

    .slider-section { margin-top: 40px; padding: 40px 0 32px; }
    .slide { flex-basis: 88%; height: 380px; }
    .slide__body { padding: 60px 26px 0; }
    .slide__label { font-size: 26px; }
    .slide__year { font-size: 52px; }

    .prosedur { padding-top: 44px; }
    .prosedur__grid { grid-template-columns: 1fr; margin-top: 28px; gap: 16px; }
    .proc-card--featured .proc-card__bar { padding-top: 46%; }

    .maklumat { flex-direction: column; align-items: flex-start; margin-top: 36px; padding: 28px 22px; }
    .maklumat .btn--primary { width: 100%; }

    .page-header { height: auto; padding-bottom: 48px; }
    .page-header__inner { padding-top: 118px; padding-left: var(--gutter); }
    .page-header__title { font-size: 28px; }
    .page-header__lead { font-size: 15px; line-height: 23px; }
    .page-body { padding: 36px 0 60px; }

    .form-grid { grid-template-columns: 1fr; gap: 36px; }
    .btn--lg { width: 100%; min-width: 0; }
    .chip-group { align-self: stretch; }
    .chip span { padding: 12px 14px; }
    .captcha { gap: 20px; }
    .panel { padding: 22px 14px 24px; }
    .accordion__body { padding: 0 20px 20px 24px; }

    .content-layout { grid-template-columns: 1fr; gap: 24px; }
    .side-nav { position: static; }
    .toolbar { grid-template-columns: 1fr; }
    .doc-grid, .budget-grid { grid-template-columns: 1fr; }
    .meta-table th { width: 130px; }

    .site-footer { margin-top: 64px; }
    .footer-grid { grid-template-columns: 1fr; gap: 28px; padding: 32px 0; }
    .footer-brand img { width: 72px; height: 66px; }
    .footer-brand span { font-size: 24px; line-height: 28px; }
    .footer-bottom { font-size: 13px; line-height: 20px; }
    .wa-float { width: 54px; height: 54px; bottom: 20px; right: 8px; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}

/* ---------- Utilitas kecil halaman form ---------- */
.form-title { margin-bottom: 26px; }
.auth-card__foot--left { text-align: left; }
.riwayat__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.riwayat__empty { margin-top: 18px; }
.text-danger { color: var(--c-red); }
.search-bar__icon--dark { filter: invert(1) brightness(.4); }
.detail-title { margin-top: 14px; }
.detail-content { margin-top: 28px; }
.icon-down { transform: rotate(180deg); }
.section-title--sm { font-size: 20px; margin-bottom: 18px; }
.text-muted { color: var(--c-grey); }
.btn--block { width: 100%; }
.panel__cta { margin-top: 24px; }
.content-stack { margin-top: 24px; }
.cta-online--compact { margin-top: 40px; padding: 30px 28px 28px; }
.cta-online--compact .cta-online__title { font-size: 20px; }
.cta-online--compact .cta-online__actions { margin-top: 20px; gap: 16px; }
@media (max-width: 1199.98px) { .cta-online--compact .cta-online__actions { grid-template-columns: 1fr; } }

/* Latar slide terpisah agar bisa dicerminkan (Figma: gambar buku di slide kedua) */
.slide { background: var(--c-navy-dark); }
.slide__bg { position: absolute; inset: 0; background: center / cover no-repeat; }
/* Posisi & zoom dari Figma (gambar 891x509 di slide 869x428; buku 1017x488, dicerminkan) */
.slide__bg--figma-a { background-size: auto 119%; background-position: 82% 51%; }
.slide__bg--figma-b { background-size: auto 114%; background-position: 45% 50%; transform: scaleX(-1); }
.slide::before { z-index: 1; }
.slide__body { z-index: 2; }
/* Slide yang belum aktif (mengintip di kanan) hanya menampilkan gambar, seperti di Figma */
.slide::before, .slide__body { transition: opacity .35s ease; }
[data-slider-ready] .slide:not(.is-active)::before,
[data-slider-ready] .slide:not(.is-active) .slide__body { opacity: 0; }
[data-slider-ready] .slide:not(.is-active) .slide__body { visibility: hidden; }
