/* =========================================================
   instansi pemerintah daerah
   wilayah kerja instansi — Portal design system 2026
   Navy-led, soft blue surfaces, rounded editorial cards.
   ========================================================= */

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 300;
    font-display: swap;
    src: url("../fonts/poppins/poppins-300.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 400;
    font-display: swap;
    src: url("../fonts/poppins/poppins-400.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 500;
    font-display: swap;
    src: url("../fonts/poppins/poppins-500.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 600;
    font-display: swap;
    src: url("../fonts/poppins/poppins-600.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 700;
    font-display: swap;
    src: url("../fonts/poppins/poppins-700.woff2") format("woff2");
}

@font-face {
    font-family: "Poppins";
    font-style: normal;
    font-weight: 800;
    font-display: swap;
    src: url("../fonts/poppins/poppins-800.woff2") format("woff2");
}

:root {
    --navy-950: #04162b;
    --navy-900: #071f3b;
    --navy-800: #0a2a4f;
    --navy-700: #0e3565;
    --navy-600: #134a86;
    --navy-500: #1a5fa5;
    --blue-400: #3b86c7;
    --blue-300: #79b0dd;
    --sky-50: #f4f8fd;
    --sky-100: #e7f0fa;
    --sky-200: #d5e5f6;
    --gold: #f2b134;
    --gold-soft: #ffe1a6;
    --ink: #0b1f35;
    --ink-soft: #24384f;
    --muted: #5c7290;
    --white: #ffffff;
    --paper: #f5f8fc;
    --line: rgba(13, 47, 84, 0.12);
    --line-strong: rgba(13, 47, 84, 0.2);
    --radius-xs: 8px;
    --radius-sm: 12px;
    --radius: 18px;
    --radius-lg: 26px;
    --radius-xl: 34px;
    --shadow-sm: 0 2px 10px rgba(9, 38, 71, 0.06);
    --shadow: 0 16px 40px -18px rgba(9, 38, 71, 0.28);
    --shadow-lg: 0 34px 90px -34px rgba(4, 25, 50, 0.48);
    --font: "Poppins", "Helvetica Neue", Helvetica, Arial, sans-serif;
    --shell: 1240px;
    --gutter: clamp(18px, 4vw, 32px);
    --header-h: 76px;
    --masthead-offset: 118px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    overflow-x: clip;
    background: var(--paper);
    color: var(--ink);
    font-family: var(--font);
    font-size: 16px;
    font-weight: 400;
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    text-rendering: optimizeLegibility;
}

body:has(dialog[open]),
body:has(.modal.show) {
    overflow: hidden;
}

img {
    display: block;
    max-width: 100%;
}

a {
    color: inherit;
    text-decoration: none;
}

button {
    font: inherit;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    margin-top: 0;
    color: var(--ink);
    font-family: var(--font);
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.2;
}

p {
    margin-top: 0;
}

em {
    color: var(--navy-500);
    font-style: normal;
}

::selection {
    background: var(--gold);
    color: var(--navy-950);
}

:focus-visible {
    outline: 2px solid var(--highlight, var(--gold));
    outline-offset: 3px;
}

.shell {
    width: min(var(--shell), calc(100% - (var(--gutter) * 2)));
    margin-inline: auto;
}

.section {
    position: relative;
    overflow: hidden;
    padding: clamp(68px, 8vw, 108px) 0;
    background: linear-gradient(180deg, #f9fbfe 0%, #f2f7fc 100%);
}

.section--paper {
    background:
        radial-gradient(1100px 480px at 112% -10%, rgba(59, 134, 199, 0.1), transparent 60%),
        linear-gradient(180deg, #fbfdff 0%, var(--sky-50) 100%);
}

.section--white {
    background: var(--white);
}

.section--tint {
    background:
        radial-gradient(900px 420px at -8% 0%, rgba(59, 134, 199, 0.16), transparent 58%),
        linear-gradient(150deg, #eaf2fb 0%, #f5f9fe 52%, #e9f1fb 100%);
}

.section--dark {
    background:
        radial-gradient(900px 520px at 100% 0%, rgba(59, 134, 199, 0.32), transparent 60%),
        radial-gradient(700px 500px at 0% 100%, rgba(242, 177, 52, 0.1), transparent 60%),
        linear-gradient(160deg, var(--navy-900) 0%, var(--navy-800) 62%, var(--navy-700) 100%);
    color: rgba(255, 255, 255, 0.92);
}

.section--ink {
    background:
        radial-gradient(880px 480px at 100% 0%, rgba(59, 134, 199, 0.28), transparent 58%),
        radial-gradient(760px 520px at 0% 100%, rgba(242, 177, 52, 0.11), transparent 62%),
        linear-gradient(160deg, var(--navy-950) 0%, var(--navy-900) 58%, var(--navy-800) 100%);
    color: rgba(255, 255, 255, 0.9);
}

.section--dark h2,
.section--dark h3,
.section--dark h4,
.section--ink h2,
.section--ink h3,
.section--ink h4 {
    color: #fff;
}

.section--dark em,
.section--ink em {
    color: var(--gold-soft);
}

section[id] {
    scroll-margin-top: calc(var(--header-h) + 24px);
}

/* ---------- Typography helpers ---------- */

.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin: 0 0 16px;
    padding: 7px 15px;
    border: 1px solid rgba(19, 74, 134, 0.14);
    border-radius: 999px;
    background: rgba(19, 74, 134, 0.06);
    color: var(--navy-600);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.15em;
    line-height: 1.4;
    text-transform: uppercase;
    align-self: flex-start;
}

.eyebrow::before {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: var(--gold);
    content: "";
}

.eyebrow--light {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.09);
    color: rgba(255, 255, 255, 0.9);
}

.section--dark .eyebrow,
.section--ink .eyebrow {
    border-color: rgba(255, 255, 255, 0.18);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.92);
}

.tag {
    display: inline-flex;
    align-items: center;
    padding: 5px 12px;
    border-radius: 999px;
    background: var(--sky-100);
    color: var(--navy-600);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.04em;
    line-height: 1.5;
    white-space: nowrap;
}

.section--dark .tag,
.section--ink .tag {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.meta {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    color: var(--muted);
    font-size: 12.5px;
    font-weight: 400;
}

.meta span + span::before {
    margin-right: 8px;
    color: var(--blue-300);
    content: "•";
}

.text-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--navy-600);
    font-size: 13.5px;
    font-weight: 600;
    transition: color 0.2s ease, gap 0.2s ease;
}

.text-link:hover {
    gap: 12px;
    color: var(--navy-800);
}

button.text-link {
    padding: 0;
    border: 0;
    background: transparent;
    font-family: var(--font);
    cursor: pointer;
}

.section--dark .text-link,
.section--ink .text-link {
    color: var(--gold-soft);
}

/* ---------- Buttons ---------- */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
    padding: 12px 22px;
    border: 1px solid transparent;
    border-radius: 999px;
    background: transparent;
    color: var(--navy-800);
    font-family: var(--font);
    font-size: 13.5px;
    font-weight: 600;
    letter-spacing: 0.01em;
    line-height: 1.4;
    text-align: center;
    transition: transform 0.2s ease, background 0.2s ease, border-color 0.2s ease,
        color 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

.button:hover {
    transform: translateY(-2px);
}

.button--primary {
    background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
    color: #fff;
    box-shadow: 0 16px 34px -18px rgba(10, 42, 79, 0.7);
}

.button--primary:hover {
    background: linear-gradient(135deg, var(--navy-600), var(--navy-500));
    color: #fff;
    box-shadow: 0 22px 44px -18px rgba(10, 42, 79, 0.72);
}

.button--ghost {
    border-color: var(--line-strong);
    color: var(--ink-soft);
}

.button--ghost:hover {
    border-color: var(--navy-600);
    background: rgba(19, 74, 134, 0.06);
    color: var(--navy-700);
}

.section--dark .button--ghost,
.section--ink .button--ghost {
    border-color: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.section--dark .button--ghost:hover,
.section--ink .button--ghost:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: rgba(255, 255, 255, 0.1);
}

.button--paper {
    background: #fff;
    color: var(--navy-800);
    box-shadow: var(--shadow-sm);
}

.button--paper:hover {
    background: var(--gold-soft);
    color: var(--navy-900);
}

.icon-button {
    display: inline-flex;
    width: 44px;
    height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: #fff;
    color: var(--navy-700);
    transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease,
        transform 0.2s ease;
    cursor: pointer;
}

.icon-button:hover {
    border-color: var(--navy-700);
    background: var(--navy-700);
    color: #fff;
    transform: translateY(-1px);
}

.hero .icon-button {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.hero .icon-button:hover {
    border-color: rgba(255, 255, 255, 0.6);
    background: #fff;
    color: var(--navy-800);
}

.filter-chip {
    padding: 9px 17px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.2s ease;
    cursor: pointer;
}

.filter-chip:hover {
    border-color: var(--navy-600);
    color: var(--navy-700);
}

.filter-chip.is-active {
    border-color: var(--navy-700);
    background: var(--navy-700);
    color: #fff;
    box-shadow: 0 10px 22px -12px rgba(10, 42, 79, 0.6);
}

.skip-link {
    position: fixed;
    top: -60px;
    left: 16px;
    z-index: 1100;
    padding: 10px 18px;
    border-radius: 0 0 12px 12px;
    background: var(--navy-800);
    color: #fff;
    font-size: 13px;
    font-weight: 600;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

/* ---------- Masthead / utility / header ---------- */

.masthead {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.utility-bar {
    overflow: hidden;
    background: var(--navy-950);
    color: rgba(255, 255, 255, 0.66);
    font-size: 12px;
    transition: max-height 0.3s ease, opacity 0.3s ease, padding 0.3s ease;
}

.utility-bar__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    padding: 9px 0;
}

.utility-bar__left,
.utility-bar__right {
    display: flex;
    align-items: center;
    margin-left: auto;
    gap: 14px;
    min-width: 0;
}

.utility-bar__brandline {
    display: inline-flex;
    max-width: min(560px, 52vw);
    align-items: center;
    gap: 7px;
    overflow: hidden;
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
    white-space: nowrap;
    text-overflow: ellipsis;
}

.utility-bar__shortname {
    display: none;
}

.utility-bar__sep {
    color: rgba(255, 255, 255, 0.28);
}

.utility-bar a {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: color 0.2s ease;
}

.utility-bar a:hover {
    color: #fff;
}

.utility-bar__date {
    color: rgba(255, 255, 255, 0.56);
}

.utility-bar__socials {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-left: 4px;
    padding-left: 12px;
    border-left: 1px solid rgba(255, 255, 255, 0.14);
}

.utility-bar__socials a {
    display: inline-flex;
    width: 24px;
    height: 24px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    color: rgba(255, 255, 255, 0.62);
}

.utility-bar__socials a:hover {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.site-header {
    border-bottom: 1px solid var(--line);
    background: rgba(255, 255, 255, 0.96);
    transition: background 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
}

.site-header__inner {
    display: flex;
    min-height: var(--header-h);
    align-items: center;
    justify-content: space-between;
    gap: 26px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 13px;
    flex-shrink: 0;
}

.brand__mark {
    width: 42px;
    height: auto;
    filter: drop-shadow(0 4px 8px rgba(9, 38, 71, 0.16));
}

.brand__text {
    display: flex;
    flex-direction: column;
    gap: 1px;
    line-height: 1.2;
}

.brand__eyebrow {
    color: var(--muted);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.brand__name {
    color: var(--navy-800);
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.02em;
}

.primary-nav {
    display: flex;
    align-items: center;
    gap: 22px;
}

.primary-nav__list {
    display: flex;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.primary-nav__link {
    position: relative;
    display: inline-flex;
    align-items: center;
    padding: 9px 12px;
    border-radius: 10px;
    color: var(--ink-soft);
    font-size: 13px;
    font-weight: 500;
    white-space: nowrap;
    transition: color 0.2s ease, background 0.2s ease;
}

.primary-nav__link:hover {
    background: var(--sky-100);
    color: var(--navy-700);
}

.primary-nav__link.is-active {
    color: var(--navy-800);
    font-weight: 600;
}

.primary-nav__link.is-active::after {
    position: absolute;
    bottom: 2px;
    left: 50%;
    width: 18px;
    height: 2px;
    border-radius: 2px;
    background: var(--gold);
    content: "";
    transform: translateX(-50%);
}

.primary-nav__cta {
    padding: 10px 18px;
}

.nav-toggle {
    display: inline-flex;
    width: 44px;
    height: 44px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 5px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    cursor: pointer;
}

.nav-toggle span {
    display: block;
    width: 19px;
    height: 2px;
    border-radius: 2px;
    background: var(--navy-800);
    transition: background 0.2s ease;
}

/* Home: transparent masthead over the hero */

.page-home .masthead {
    position: fixed;
    top: 0;
    right: 0;
    left: 0;
}

.page-home .utility-bar {
    max-height: 44px;
    background: transparent;
    border-bottom: 1px solid rgba(255, 255, 255, 0.14);
}

.page-home .site-header {
    border-bottom-color: rgba(255, 255, 255, 0.14);
    background: transparent;
    box-shadow: none;
}

.page-home .brand__eyebrow {
    color: rgba(255, 255, 255, 0.62);
}

.page-home .masthead:not(.is-scrolled) .brand__mark {
    width: 44px;
    height: 44px;
    padding: 4px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.94);
    object-fit: contain;
}

.page-home .brand__name,
.page-home .primary-nav__link {
    color: rgba(255, 255, 255, 0.9);
}

.page-home .primary-nav__link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
}

.page-home .primary-nav__link.is-active {
    color: #fff;
}

.page-home .primary-nav__cta {
    background: #fff;
    color: var(--navy-800);
    box-shadow: none;
}

.page-home .primary-nav__cta:hover {
    background: var(--gold-soft);
    color: var(--navy-900);
}

.page-home .nav-toggle {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.1);
}

.page-home .nav-toggle span {
    background: #fff;
}

.masthead.is-scrolled .utility-bar {
    max-height: 0;
    padding-top: 0;
    padding-bottom: 0;
    opacity: 0;
    border-bottom-color: transparent;
}

.masthead.is-scrolled .site-header {
    border-bottom-color: var(--line);
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 18px 40px -28px rgba(4, 25, 50, 0.4);
    backdrop-filter: blur(14px);
}

.masthead.is-scrolled .brand__eyebrow {
    color: var(--muted);
}

.masthead.is-scrolled .brand__name,
.masthead.is-scrolled .primary-nav__link {
    color: var(--ink-soft);
}

.masthead.is-scrolled .primary-nav__link:hover {
    background: var(--sky-100);
    color: var(--navy-700);
}

.masthead.is-scrolled .primary-nav__link.is-active {
    color: var(--navy-800);
}

.masthead.is-scrolled .primary-nav__cta {
    background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
    color: #fff;
    box-shadow: 0 16px 34px -18px rgba(10, 42, 79, 0.7);
}

.masthead.is-scrolled .nav-toggle {
    border-color: var(--line-strong);
    background: #fff;
}

.masthead.is-scrolled .nav-toggle span {
    background: var(--navy-800);
}

/* Mobile navigation panel */

@media (max-width: 1199.98px) {
    .primary-nav {
        position: absolute;
        top: 100%;
        right: var(--gutter);
        left: var(--gutter);
        display: block;
        padding: 16px;
        border: 1px solid var(--line);
        border-radius: 20px;
        background: #fff;
        box-shadow: var(--shadow-lg);
    }

    .primary-nav__list {
        flex-direction: column;
        align-items: stretch;
        gap: 2px;
    }

    .primary-nav__link {
        justify-content: space-between;
        padding: 12px 14px;
        color: var(--ink-soft);
        font-size: 14px;
    }

    .page-home .primary-nav__link {
        color: var(--ink-soft);
    }

    .page-home .primary-nav__link:hover {
        background: var(--sky-100);
        color: var(--navy-700);
    }

    .page-home .primary-nav__link.is-active,
    .masthead.is-scrolled .primary-nav__link.is-active {
        color: var(--navy-800);
    }

    .primary-nav__link.is-active::after {
        display: none;
    }

    .primary-nav__cta {
        margin-top: 12px;
        width: 100%;
    }

    .page-home .primary-nav__cta {
        background: linear-gradient(135deg, var(--navy-700), var(--navy-600));
        color: #fff;
    }
}

/* ---------- Hero ---------- */

.hero {
    position: relative;
    overflow: hidden;
    padding: calc(var(--masthead-offset) + 46px) 0 0;
    background: var(--navy-950);
    color: #fff;
}

.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 42%;
    transition: opacity 0.6s ease, transform 8s ease;
}

.hero__veil {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        radial-gradient(900px 520px at 78% 18%, rgba(59, 134, 199, 0.4), transparent 62%),
        radial-gradient(700px 500px at 8% 90%, rgba(242, 177, 52, 0.1), transparent 60%),
        linear-gradient(180deg, rgba(4, 22, 43, 0.88) 0%, rgba(7, 31, 59, 0.82) 46%, rgba(7, 31, 59, 0.94) 100%);
}

.hero__veil::after {
    position: absolute;
    inset: 0;
    opacity: 0.5;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.04) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
    background-size: 68px 68px;
    content: "";
    mask-image: linear-gradient(180deg, #000 0%, transparent 78%);
}

.hero__inner {
    position: relative;
    z-index: 2;
    padding-bottom: 36px;
}

.hero__intro {
    max-width: 820px;
    margin: 0 auto 34px;
    text-align: center;
}

.hero__title {
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(2rem, 4.4vw, 3.5rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.08;
}

.hero__title em {
    color: var(--gold-soft);
}

.hero__lead {
    max-width: 640px;
    margin: 0 auto;
    color: rgba(255, 255, 255, 0.76);
    font-size: clamp(14px, 1.4vw, 16px);
    line-height: 1.75;
}

.hero-carousel {
    max-width: 1080px;
    margin: 0 auto;
}

.hero-slide {
    display: grid;
    min-height: 420px;
    grid-template-columns: 1.04fr 0.96fr;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.hero-media {
    position: relative;
    min-height: 420px;
    margin: 0;
    overflow: hidden;
    background: var(--navy-800);
}

.hero-media img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.hero-slide:hover .hero-media img {
    transform: scale(1.045);
}

.hero-media::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(4, 22, 43, 0.06) 30%, rgba(4, 22, 43, 0.66) 100%);
    content: "";
}

.hero-media__badge {
    position: absolute;
    top: 18px;
    left: 18px;
    z-index: 1;
    padding: 6px 13px;
    border-radius: 999px;
    background: rgba(7, 31, 59, 0.62);
    color: #fff;
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.hero-media__block {
    position: absolute;
    right: 18px;
    bottom: 18px;
    left: 18px;
    z-index: 1;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.hero-media figcaption {
    position: absolute;
    right: 18px;
    bottom: 16px;
    left: 18px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.82);
    font-size: 11.5px;
    line-height: 1.5;
}

.hero-media__frame {
    display: contents;
}

.hero-copy {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 46px);
    color: var(--ink);
}

.hero-copy .eyebrow {
    margin-bottom: 16px;
}

.hero-title {
    margin: 0 0 14px;
    font-size: clamp(1.5rem, 2.5vw, 2.1rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.16;
}

.hero-description {
    margin: 0 0 26px;
    color: var(--muted);
    font-size: 14px;
    line-height: 1.75;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.hero-controls {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin-top: 18px;
    padding: 0 4px;
}

.hero-counter {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    color: rgba(255, 255, 255, 0.72);
    font-size: 13px;
    font-weight: 500;
    letter-spacing: 0.08em;
}

.hero-counter span:first-child {
    color: #fff;
    font-size: 16px;
    font-weight: 600;
}

.hero-counter__sep {
    color: rgba(255, 255, 255, 0.36);
}

.hero-arrows {
    display: inline-flex;
    gap: 10px;
}

.hero-dots {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin: 0;
    padding: 7px 13px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.1);
    list-style: none;
}

.hero-dots [data-bs-target] {
    display: block;
    width: 8px;
    height: 8px;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.42);
    opacity: 1;
    transition: width 0.25s ease, background 0.25s ease;
    text-indent: -999px;
}

.hero-dots .active {
    width: 26px;
    background: var(--gold);
}

.hero-stats {
    position: relative;
    z-index: 3;
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    margin: 34px auto -52px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.6);
    border-top: 3px solid var(--gold);
    border-radius: 24px;
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.hero-stat {
    position: relative;
    padding: 24px 26px;
    text-align: left;
}

.hero-stat + .hero-stat::before {
    position: absolute;
    top: 22%;
    bottom: 22%;
    left: 0;
    width: 1px;
    background: var(--line);
    content: "";
}

.hero-stat__value {
    display: block;
    color: var(--navy-800);
    font-size: clamp(1.5rem, 2.4vw, 2rem);
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1.1;
}

.hero-stat__label {
    display: block;
    margin-top: 4px;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.5;
}

/* ---------- Section heading ---------- */

.section-heading {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 18px 36px;
    align-items: end;
    margin-bottom: clamp(34px, 4vw, 48px);
}

.section-heading__index {
    display: flex;
    grid-column: 1 / -1;
    align-items: center;
    gap: 11px;
    color: var(--navy-600);
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
}

.section-heading__index span:first-child {
    display: inline-flex;
    width: 28px;
    height: 28px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--navy-700);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0;
}

.section-heading__body {
    max-width: 760px;
}

.section-title {
    margin: 0;
    font-size: clamp(1.75rem, 3.4vw, 2.7rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.12;
}

.section-description {
    max-width: 68ch;
    margin: 14px 0 0;
    color: var(--muted);
    font-size: 14.5px;
    line-height: 1.75;
}

.section-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 11px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    background: #fff;
    color: var(--navy-700);
    font-size: 12.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.section-link:hover {
    border-color: var(--navy-700);
    background: var(--navy-700);
    color: #fff;
    transform: translateY(-1px);
}

.section-heading--dark .section-heading__index {
    color: rgba(255, 255, 255, 0.72);
}

.section-heading--dark .section-heading__index span:first-child {
    background: var(--gold);
    color: var(--navy-950);
}

.section-heading--dark .section-title {
    color: #fff;
}

.section-heading--dark .section-description {
    color: rgba(255, 255, 255, 0.72);
}

.section-heading--dark .section-link {
    border-color: rgba(255, 255, 255, 0.28);
    background: rgba(255, 255, 255, 0.06);
    color: #fff;
}

.section-heading--dark .section-link:hover {
    border-color: #fff;
    background: #fff;
    color: var(--navy-800);
}

/* ---------- Greeting / region ---------- */

.greeting-layout {
    display: grid;
    grid-template-columns: minmax(0, 0.72fr) minmax(0, 1.28fr);
    gap: clamp(22px, 3vw, 34px);
    align-items: stretch;
}

.portrait {
    position: relative;
    margin: 0;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background: var(--sky-100);
    box-shadow: var(--shadow);
}

.portrait::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 62%, rgba(4, 22, 43, 0.55) 100%);
    content: "";
}

.portrait img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    object-position: top center;
}

.portrait figcaption {
    position: absolute;
    right: 16px;
    bottom: 16px;
    left: 16px;
    z-index: 1;
    color: rgba(255, 255, 255, 0.86);
    font-size: 11.5px;
}

.greeting-copy {
    padding: 4px 0;
}

.greeting-copy p {
    margin: 0 0 16px;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.85;
}

.greeting-copy p:first-child::first-letter {
    float: left;
    padding: 4px 8px 0 0;
    color: var(--navy-700);
    font-size: 3rem;
    font-weight: 700;
    line-height: 0.78;
}

.signature {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: 24px;
    padding-top: 18px;
    border-top: 1px solid var(--line);
}

.signature__name {
    color: var(--navy-800);
    font-size: 15px;
    font-weight: 600;
}

.signature__role {
    color: var(--muted);
    font-size: 12.5px;
}

.region-panel {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.region-panel__map {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: linear-gradient(160deg, var(--sky-100), #fff);
}

.region-panel__map img {
    width: 100%;
    height: 210px;
    object-fit: cover;
}

.region-panel__map span {
    position: absolute;
    right: 14px;
    bottom: 14px;
    left: 14px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--navy-700);
    font-size: 11px;
    font-weight: 500;
    text-align: center;
    box-shadow: var(--shadow-sm);
}

.region-panel__rows {
    display: flex;
    flex-direction: column;
    padding: 8px 22px 18px;
}

.region-row {
    display: grid;
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.region-row:first-child {
    border-top: 0;
}

.region-row__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 13px;
    background: var(--sky-100);
    color: var(--navy-600);
}

.region-row__label {
    display: block;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.region-row p {
    margin: 2px 0 0;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
}

/* ---------- Service catalog ---------- */

.service-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
    margin-bottom: 26px;
    padding: 14px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow-sm);
    backdrop-filter: blur(6px);
}

.service-search {
    position: relative;
    flex: 1 1 260px;
    margin: 0;
}

.service-search::before {
    position: absolute;
    top: 50%;
    left: 16px;
    width: 15px;
    height: 15px;
    border: 2px solid var(--muted);
    border-radius: 50%;
    content: "";
    transform: translateY(-60%);
}

.service-search::after {
    position: absolute;
    top: 50%;
    left: 28px;
    width: 6px;
    height: 2px;
    border-radius: 2px;
    background: var(--muted);
    content: "";
    transform: translateY(4px) rotate(45deg);
}

.service-search input {
    width: 100%;
    padding: 12px 16px 12px 44px;
    border: 1px solid var(--line);
    border-radius: 12px;
    background: var(--sky-50);
    color: var(--ink);
    font-family: var(--font);
    font-size: 13.5px;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.service-search input:focus {
    border-color: var(--blue-300);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 134, 199, 0.12);
    outline: none;
}

.service-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.service-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
}

.service-card {
    position: relative;
    display: flex;
    min-height: 100%;
    flex-direction: column;
    padding: 24px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.service-card::after {
    position: absolute;
    right: -40px;
    bottom: -60px;
    width: 150px;
    height: 150px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(59, 134, 199, 0.14), transparent 68%);
    content: "";
    transition: transform 0.3s ease;
}

.service-card:hover {
    border-color: rgba(59, 134, 199, 0.4);
    box-shadow: var(--shadow);
    transform: translateY(-4px);
}

.service-card:hover::after {
    transform: scale(1.25);
}

.service-card__top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
}

.service-card__icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--sky-100), #dbeaf9);
    color: var(--navy-600);
    transition: background 0.25s ease, color 0.25s ease;
}

.service-card:hover .service-card__icon {
    background: linear-gradient(145deg, var(--navy-700), var(--navy-600));
    color: #fff;
}

.service-card h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
}

.service-card__excerpt {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.65;
}

.service-card__platform {
    margin: 0 0 18px;
    color: var(--navy-500);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.5;
}

.service-card__link {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px dashed var(--line);
    color: var(--navy-600);
    font-size: 12.5px;
    font-weight: 600;
}

.service-card__link .icon {
    transition: transform 0.2s ease;
}

.service-card:hover .service-card__link .icon {
    transform: translate(3px, -3px);
}

.service-empty {
    margin: 24px 0 0;
    padding: 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    color: var(--muted);
    font-size: 14px;
    text-align: center;
}

/* ---------- Publications / agenda / announcements / IKM ---------- */

.pub-panel {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.pub-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.pub-panel__head h3 {
    margin: 0;
    font-size: 17px;
    font-weight: 600;
}

.pub-panel__head a {
    color: var(--navy-600);
    font-size: 12px;
    font-weight: 600;
}

.agenda-item {
    display: grid;
    grid-template-columns: 54px minmax(0, 1fr);
    gap: 14px;
    align-items: center;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.agenda-item:last-child {
    border-bottom: 0;
    padding-bottom: 0;
}

.date-chip {
    display: flex;
    width: 54px;
    height: 58px;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: linear-gradient(150deg, var(--navy-700), var(--navy-600));
    color: #fff;
    line-height: 1;
}

.date-chip span {
    font-size: 20px;
    font-weight: 700;
}

.date-chip small {
    margin-top: 4px;
    color: rgba(255, 255, 255, 0.72);
    font-size: 9.5px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.agenda-item h4 {
    margin: 0 0 4px;
    font-size: 13.5px;
    font-weight: 600;
    line-height: 1.45;
}

.agenda-item p {
    margin: 0;
    color: var(--muted);
    font-size: 11.5px;
    line-height: 1.5;
}

.announcement {
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 15px 0;
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
    color: inherit;
    font: inherit;
    text-align: left;
    cursor: pointer;
}

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

.announcement h4 {
    margin: 0;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.announcement:hover h4 {
    color: var(--navy-600);
}

.announcement .meta {
    font-size: 11.5px;
}

.ikm-card {
    display: flex;
    height: 100%;
    flex-direction: column;
    padding: 26px;
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(420px 300px at 100% 0%, rgba(59, 134, 199, 0.4), transparent 62%),
        linear-gradient(155deg, var(--navy-800), var(--navy-700));
    color: rgba(255, 255, 255, 0.82);
    box-shadow: var(--shadow);
}

.ikm-card .eyebrow {
    margin-bottom: 18px;
}

.ikm-card__score {
    display: flex;
    align-items: baseline;
    gap: 6px;
    color: #fff;
    line-height: 1;
}

.ikm-card__score span {
    font-size: clamp(2.6rem, 5vw, 3.4rem);
    font-weight: 700;
    letter-spacing: -0.04em;
}

.ikm-card__score small {
    color: rgba(255, 255, 255, 0.5);
    font-size: 15px;
    font-weight: 500;
}

.ikm-card__predicate {
    align-self: flex-start;
    margin: 12px 0 16px;
    padding: 5px 12px;
    border-radius: 999px;
    background: rgba(242, 177, 52, 0.18);
    color: var(--gold-soft);
    font-size: 11.5px;
    font-weight: 600;
}

.ikm-card h3 {
    margin: 0 0 6px;
    color: #fff;
    font-size: 17px;
    font-weight: 600;
}

.ikm-card > p {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12.5px;
    line-height: 1.65;
}

.ikm-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 18px;
    color: rgba(255, 255, 255, 0.55);
    font-size: 11.5px;
}

.ikm-bars {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 22px;
}

.ikm-bar {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr) 30px;
    gap: 10px;
    align-items: center;
    color: rgba(255, 255, 255, 0.72);
    font-size: 11px;
}

.ikm-bar__track {
    height: 7px;
    overflow: hidden;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.14);
}

.ikm-bar__fill {
    display: block;
    height: 100%;
    border-radius: inherit;
    background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}

.ikm-card .button {
    margin-top: auto;
    align-self: flex-start;
}

/* ---------- News ---------- */

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr);
    gap: 24px;
    align-items: start;
}

.news-lead {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.news-lead:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.news-lead > a {
    display: grid;
    height: 100%;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

.news-lead figure {
    position: relative;
    margin: 0;
    overflow: hidden;
    background: var(--sky-100);
}

.news-lead figure img {
    width: 100%;
    height: 100%;
    min-height: 300px;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.news-lead:hover figure img {
    transform: scale(1.04);
}

.news-lead__body {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(22px, 3vw, 34px);
}

.news-lead__body .tag {
    align-self: flex-start;
    margin-bottom: 14px;
}

.news-lead__body h3 {
    margin: 0 0 12px;
    font-size: clamp(1.2rem, 2vw, 1.55rem);
    font-weight: 600;
    line-height: 1.35;
}

.news-lead__body p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
}

.news-lead__body .meta {
    margin-top: auto;
}

.news-popular {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.news-popular__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 6px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.news-popular__head h3 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.news-popular ol {
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-popular li {
    border-bottom: 1px solid var(--line);
}

.news-popular li:last-child {
    border-bottom: 0;
}

.news-popular li > a {
    display: grid;
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 15px 0;
}

.news-popular__rank {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--sky-100);
    color: var(--navy-600);
    font-size: 11.5px;
    font-weight: 700;
}

.news-popular li h4 {
    margin: 0 0 5px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1.5;
    transition: color 0.2s ease;
}

.news-popular li a:hover h4 {
    color: var(--navy-600);
}

.news-popular .meta {
    font-size: 11px;
}

.news-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.news-item:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.news-item > a {
    display: grid;
    grid-template-columns: 132px minmax(0, 1fr);
    gap: 16px;
    align-items: center;
    padding: 12px;
}

.news-item img {
    width: 100%;
    height: 104px;
    border-radius: 12px;
    object-fit: cover;
}

.news-item h3 {
    margin: 8px 0 8px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
}

/* ---------- FAQ ---------- */

.section-intro {
    max-width: 520px;
}

.help-card {
    margin-top: 24px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: var(--radius);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.help-card p {
    margin: 0 0 10px;
    color: var(--ink-soft);
    font-size: 13.5px;
}

.faq-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.faq-item {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.faq-item[open] {
    border-color: rgba(59, 134, 199, 0.4);
    box-shadow: var(--shadow);
}

.faq-item summary {
    display: grid;
    grid-template-columns: 38px minmax(0, 1fr) 26px;
    gap: 14px;
    align-items: center;
    padding: 18px 22px;
    color: var(--ink);
    font-size: 14px;
    font-weight: 500;
    line-height: 1.6;
    list-style: none;
    cursor: pointer;
}

.faq-item summary::-webkit-details-marker {
    display: none;
}

.faq-item__index {
    display: inline-flex;
    width: 32px;
    height: 32px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--sky-100);
    color: var(--navy-600);
    font-size: 11px;
    font-weight: 700;
}

.faq-item__icon {
    position: relative;
    width: 20px;
    height: 20px;
    justify-self: end;
}

.faq-item__icon::before,
.faq-item__icon::after {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 14px;
    height: 2px;
    border-radius: 2px;
    background: var(--navy-600);
    content: "";
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.faq-item__icon::after {
    transform: translate(-50%, -50%) rotate(90deg);
}

.faq-item[open] .faq-item__icon::after {
    transform: translate(-50%, -50%) rotate(0deg);
}

.faq-item__body {
    padding: 0 22px 22px 74px;
}

.faq-item__body p {
    margin: 0;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.75;
}

.faq-item__body .tag {
    margin-bottom: 10px;
}

/* ---------- Gallery & video ---------- */

.gallery-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.8fr) minmax(0, 1fr);
    gap: 20px;
    align-items: stretch;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-auto-rows: 190px;
    gap: 16px;
}

.gallery-item {
    position: relative;
    display: block;
    padding: 0;
    overflow: hidden;
    border: 0;
    border-radius: 18px;
    background: var(--navy-800);
    cursor: zoom-in;
}

.gallery-item:last-child:nth-child(odd) {
    grid-column: 1 / -1;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.gallery-item::after {
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 42%, rgba(4, 22, 43, 0.82) 100%);
    content: "";
}

.gallery-item:hover img {
    transform: scale(1.06);
}

.gallery-item__caption {
    position: absolute;
    right: 16px;
    bottom: 14px;
    left: 16px;
    z-index: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    color: #fff;
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    text-align: left;
}

.gallery-item__caption small {
    color: rgba(255, 255, 255, 0.62);
    font-size: 10.5px;
    font-weight: 400;
}

.gallery-credit {
    margin: 20px 0 0;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11.5px;
}

.gallery-credit a {
    color: var(--gold-soft);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.video-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: var(--radius-lg);
    background: rgba(255, 255, 255, 0.06);
    backdrop-filter: blur(8px);
}

.video-card__poster {
    position: relative;
    display: block;
    width: 100%;
    padding: 0;
    overflow: hidden;
    border: 0;
    background: var(--navy-800);
    cursor: pointer;
}

.video-card__poster img {
    width: 100%;
    height: 230px;
    object-fit: cover;
    transition: transform 0.6s ease, opacity 0.3s ease;
}

.video-card:hover .video-card__poster img {
    transform: scale(1.04);
    opacity: 0.9;
}

.video-card__play {
    position: absolute;
    top: 50%;
    left: 50%;
    display: inline-flex;
    width: 62px;
    height: 62px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--gold);
    color: var(--navy-950);
    box-shadow: 0 18px 40px -14px rgba(0, 0, 0, 0.6);
    transform: translate(-50%, -50%);
    transition: transform 0.2s ease;
}

.video-card__poster:hover .video-card__play {
    transform: translate(-50%, -50%) scale(1.08);
}

.video-card__duration {
    position: absolute;
    right: 14px;
    bottom: 14px;
    padding: 4px 10px;
    border-radius: 999px;
    background: rgba(4, 22, 43, 0.74);
    color: #fff;
    font-size: 11px;
    font-weight: 500;
}

.video-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 24px;
}

.video-card__body h3 {
    margin: 0 0 10px;
    color: #fff;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.35;
}

.video-card__body p {
    margin: 0 0 18px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 13px;
    line-height: 1.7;
}

.video-card__body .text-link {
    margin-top: auto;
}

/* ---------- Page hero (inner pages) ---------- */

.page-hero {
    position: relative;
    overflow: hidden;
    padding: clamp(38px, 5vw, 62px) 0 0;
    background:
        radial-gradient(760px 420px at 88% 6%, rgba(59, 134, 199, 0.42), transparent 62%),
        radial-gradient(620px 420px at 4% 100%, rgba(242, 177, 52, 0.12), transparent 60%),
        linear-gradient(150deg, var(--navy-900) 0%, var(--navy-800) 62%, var(--navy-700) 100%);
    color: #fff;
}

.page-hero::before {
    position: absolute;
    inset: 0;
    opacity: 0.45;
    background-image:
        linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
    background-size: 64px 64px;
    content: "";
    mask-image: linear-gradient(180deg, #000 0%, transparent 86%);
}

.page-hero .shell {
    position: relative;
    z-index: 1;
}

.breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    margin-bottom: 26px;
    color: rgba(255, 255, 255, 0.5);
    font-size: 11.5px;
    font-weight: 500;
    letter-spacing: 0.04em;
}

.breadcrumb a {
    color: rgba(255, 255, 255, 0.72);
}

.breadcrumb a:hover {
    color: #fff;
}

.breadcrumb span[aria-current] {
    color: #fff;
}

.page-hero__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: 38px;
}

.page-title {
    max-width: 20ch;
    margin: 0 0 14px;
    color: #fff;
    font-size: clamp(2rem, 4.2vw, 3.2rem);
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1.05;
}

.page-title em {
    color: var(--gold-soft);
}

.page-description {
    max-width: 62ch;
    margin: 0;
    color: rgba(255, 255, 255, 0.7);
    font-size: 14.5px;
    line-height: 1.8;
}

.page-hero .eyebrow {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.9);
}

.page-hero__facts {
    display: flex;
    flex-wrap: wrap;
    gap: 26px;
    margin: 0;
    padding: 20px 24px;
    border: 1px solid rgba(255, 255, 255, 0.18);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.07);
    backdrop-filter: blur(10px);
}

.page-hero__facts div {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.page-hero__facts dt {
    color: rgba(255, 255, 255, 0.55);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.page-hero__facts dd {
    margin: 0;
    color: #fff;
    font-size: 24px;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
}

.profile-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    padding: 0 0 30px;
}

.profile-nav a {
    padding: 9px 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.06);
    color: rgba(255, 255, 255, 0.82);
    font-size: 12px;
    font-weight: 500;
    line-height: 1.4;
    transition: all 0.2s ease;
}

.profile-nav a:hover {
    border-color: #fff;
    background: #fff;
    color: var(--navy-800);
}

/* ---------- Profil page ---------- */

.visi-grid {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    gap: 22px;
}

.visi-card {
    position: relative;
    display: flex;
    min-height: 320px;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    padding: 32px;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(420px 320px at 100% 0%, rgba(59, 134, 199, 0.42), transparent 62%),
        linear-gradient(150deg, var(--navy-800), var(--navy-700));
    color: rgba(255, 255, 255, 0.86);
    box-shadow: var(--shadow);
}

.visi-card::after {
    position: absolute;
    top: 18px;
    right: 22px;
    color: rgba(255, 255, 255, 0.12);
    font-size: 7rem;
    font-weight: 700;
    line-height: 1;
    content: "\201C";
}

.visi-card .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

.visi-card__text {
    position: relative;
    z-index: 1;
    margin: 0;
    color: #fff;
    font-size: clamp(1.35rem, 2.4vw, 1.85rem);
    font-weight: 500;
    letter-spacing: -0.02em;
    line-height: 1.45;
}

.misi-panel {
    padding: 32px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.misi-panel h3 {
    margin: 0 0 18px;
    font-size: 20px;
    font-weight: 600;
}

.misi-list {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.misi-list li {
    display: grid;
    grid-template-columns: 36px minmax(0, 1fr);
    gap: 14px;
    padding: 14px 0;
    border-top: 1px solid var(--line);
}

.misi-list li:first-child {
    padding-top: 0;
    border-top: 0;
}

.misi-list span {
    display: inline-flex;
    width: 30px;
    height: 30px;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--sky-100);
    color: var(--navy-600);
    font-size: 11px;
    font-weight: 700;
}

.misi-list p {
    margin: 0;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.7;
}

.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-head {
    min-width: 300px;
    padding: 24px 30px;
    border: 1px solid var(--line);
    border-radius: 18px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.org-role {
    display: block;
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.org-head strong,
.org-unit strong {
    display: block;
    margin-top: 6px;
    color: var(--navy-800);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    line-height: 1.35;
}

.org-line {
    width: 2px;
    height: 34px;
    background: var(--line-strong);
}

.org-units {
    position: relative;
    display: grid;
    width: 100%;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 14px;
    padding-top: 32px;
}

.org-units::before {
    position: absolute;
    top: 0;
    right: 10%;
    left: 10%;
    height: 2px;
    background: var(--line-strong);
    content: "";
}

.org-unit {
    position: relative;
    padding: 20px 16px;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.org-unit:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.org-unit::before {
    position: absolute;
    top: -32px;
    left: 50%;
    width: 2px;
    height: 32px;
    background: var(--line-strong);
    content: "";
}

.maklumat-card {
    padding: clamp(24px, 3vw, 34px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.maklumat-card__statement {
    margin: 0 0 22px;
    color: var(--navy-800);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 500;
    line-height: 1.65;
}

.check-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.check-list li {
    position: relative;
    padding-left: 30px;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.7;
}

.check-list li::before {
    position: absolute;
    top: 4px;
    left: 0;
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sky-100);
    color: var(--navy-600);
    font-size: 10px;
    font-weight: 700;
    content: "\2713";
}

.section--dark .check-list li,
.section--ink .check-list li {
    color: rgba(255, 255, 255, 0.78);
}

.section--dark .check-list li::before,
.section--ink .check-list li::before {
    background: rgba(255, 255, 255, 0.12);
    color: var(--gold-soft);
}

.check-list--two {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px 28px;
}

.tupoksi-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
    gap: 26px;
    align-items: start;
}

.tupoksi-copy p {
    margin: 0 0 14px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.85;
}

.doc-card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.doc-card__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
    padding-bottom: 16px;
    border-bottom: 1px solid var(--line);
}

.doc-card__icon {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--sky-100);
    color: var(--navy-600);
}

.doc-card__head h3 {
    margin: 0;
    font-size: 15px;
    font-weight: 600;
}

.doc-card__head p {
    margin: 2px 0 0;
    color: var(--muted);
    font-size: 11.5px;
}

.doc-item {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 12px;
    padding: 15px 0;
    border-bottom: 1px solid var(--line);
}

.doc-item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.doc-item__icon {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--sky-50);
    color: var(--navy-600);
}

.doc-item__body {
    flex: 1 1 160px;
    min-width: 0;
}

.doc-item__body h4 {
    margin: 0 0 3px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.4;
}

.doc-item__body .meta {
    font-size: 11px;
}

.doc-item__button {
    padding: 8px 13px;
    font-size: 11.5px;
}

.functions-panel {
    margin-top: 26px;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.functions-panel h3 {
    margin: 0 0 16px;
    font-size: 17px;
    font-weight: 600;
}

.unit-section {
    margin-top: 40px;
}

.unit-section__head {
    margin-bottom: 22px;
}

.unit-section__head h3 {
    margin: 0;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 700;
}

.unit-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.unit-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.unit-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.unit-card__icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 13px;
    background: var(--sky-100);
    color: var(--navy-600);
}

.unit-card h4 {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.4;
}

.unit-card > p {
    margin: 0 0 14px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.unit-card__items {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0 0 18px;
    padding: 0;
    list-style: none;
}

.unit-card__items li {
    position: relative;
    padding-left: 16px;
    color: var(--ink-soft);
    font-size: 12px;
    line-height: 1.6;
}

.unit-card__items li::before {
    position: absolute;
    top: 8px;
    left: 0;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--blue-300);
    content: "";
}

.unit-card__head {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin-top: auto;
    padding-top: 14px;
    border-top: 1px solid var(--line);
}

.unit-card__head-label {
    color: var(--muted);
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.unit-card__head strong {
    color: var(--navy-700);
    font-size: 12.5px;
    font-weight: 600;
}

/* ---------- Documents ---------- */

.document-library {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.document-toolbar {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    padding: 18px;
    border-bottom: 1px solid var(--line);
    background: linear-gradient(180deg, #fff, var(--sky-50));
}

.document-search {
    flex: 1 1 280px;
    margin: 0;
}

.document-search input,
.document-filter select,
.document-per-page select {
    width: 100%;
    padding: 11px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: #fff;
    color: var(--ink);
    font-family: var(--font);
    font-size: 13px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.document-search input:focus,
.document-filter select:focus,
.document-per-page select:focus {
    border-color: var(--blue-300);
    box-shadow: 0 0 0 4px rgba(59, 134, 199, 0.12);
    outline: none;
}

.document-filter {
    flex: 0 1 220px;
    margin: 0;
}

.document-per-page {
    flex: 0 0 160px;
    margin: 0;
}

.document-table-wrap {
    overflow-x: auto;
}

.document-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 13px;
}

.document-table thead th {
    padding: 13px 18px;
    border-bottom: 1px solid var(--line);
    background: var(--sky-50);
    color: var(--muted);
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-align: left;
    text-transform: uppercase;
    white-space: nowrap;
}

.document-table tbody td {
    padding: 15px 18px;
    border-bottom: 1px solid var(--line);
    color: var(--ink-soft);
    vertical-align: middle;
}

.document-table tbody tr {
    transition: background 0.15s ease;
}

.document-table tbody tr:hover {
    background: var(--sky-50);
}

.document-table tbody tr:last-child td {
    border-bottom: 0;
}

.document-title {
    display: block;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.5;
}

.document-meta {
    display: block;
    margin-top: 2px;
    color: var(--muted);
    font-size: 11.5px;
}

.document-download {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 7px 13px;
    border: 1px solid var(--line-strong);
    border-radius: 999px;
    color: var(--navy-600);
    font-size: 11.5px;
    font-weight: 600;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.document-download:hover {
    border-color: var(--navy-700);
    background: var(--navy-700);
    color: #fff;
}

.document-empty {
    margin: 0;
    padding: 24px;
    color: var(--muted);
    text-align: center;
}

.document-count {
    margin: 0;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    background: var(--sky-50);
    color: var(--muted);
    font-size: 12px;
}

.document-count strong {
    color: var(--navy-700);
}

.document-note {
    margin: 18px 0 0;
    padding: 14px 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 14px;
    background: rgba(255, 255, 255, 0.6);
    color: var(--muted);
    font-size: 12px;
    line-height: 1.7;
}

.document-note a {
    color: var(--navy-600);
    font-weight: 600;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ---------- Contact ---------- */

.contact-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 16px;
}

.contact-card {
    display: flex;
    flex-direction: column;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

a.contact-card:hover {
    border-color: rgba(59, 134, 199, 0.45);
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.contact-card__icon {
    display: inline-flex;
    width: 48px;
    height: 48px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 14px;
    background: linear-gradient(145deg, var(--sky-100), #dbeaf9);
    color: var(--navy-600);
}

.contact-card__label {
    margin-bottom: 6px;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.contact-card p {
    margin: 0;
    color: var(--ink);
    font-size: 13.5px;
    font-weight: 500;
    line-height: 1.65;
    overflow-wrap: anywhere;
}

.map-card {
    position: relative;
    margin: 0;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.map-card img {
    width: 100%;
    height: 340px;
    object-fit: cover;
}

.map-card figcaption {
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 18px 22px;
    border-top: 1px solid var(--line);
    background: #fff;
    color: var(--ink-soft);
    font-size: 12.5px;
    line-height: 1.6;
}

.map-card figcaption .eyebrow {
    margin: 0;
    align-self: flex-start;
    padding: 4px 10px;
    font-size: 9.5px;
}

.contact-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.9fr);
    gap: 24px;
    align-items: start;
}

.contact-side {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.contact-side h3 {
    margin: 0 0 12px;
    font-size: 15px;
    font-weight: 600;
}

.contact-side h3 + .unit-contact-list,
.contact-side h3 + .contact-social {
    margin-bottom: 24px;
}

.unit-contact-list {
    display: flex;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.unit-contact-list li {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 11px 0;
    border-bottom: 1px solid var(--line);
}

.unit-contact-list li:last-child {
    border-bottom: 0;
}

.unit-contact-list strong {
    color: var(--ink);
    font-size: 12.5px;
    font-weight: 600;
}

.unit-contact-list a,
.unit-contact-list span {
    color: var(--muted);
    font-size: 11.5px;
    overflow-wrap: anywhere;
}

.unit-contact-list a:hover {
    color: var(--navy-600);
}

.contact-social {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.contact-social a {
    display: inline-flex;
    width: 40px;
    height: 40px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--navy-600);
    transition: all 0.2s ease;
}

.contact-social a:hover {
    border-color: var(--navy-700);
    background: var(--navy-700);
    color: #fff;
}

/* ---------- Forms / survey ---------- */

.survey-card {
    padding: clamp(22px, 3vw, 32px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.survey-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
}

.survey-field {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin: 0;
}

.survey-field--full {
    grid-column: 1 / -1;
    margin-top: 18px;
}

.survey-field > span {
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 600;
}

.survey-field input,
.survey-field textarea,
.survey-field select {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--line-strong);
    border-radius: 12px;
    background: var(--sky-50);
    color: var(--ink);
    font-family: var(--font);
    font-size: 13.5px;
    line-height: 1.5;
    transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.survey-field textarea {
    resize: vertical;
    min-height: 120px;
}

.survey-field input:focus,
.survey-field textarea:focus,
.survey-field select:focus {
    border-color: var(--blue-300);
    background: #fff;
    box-shadow: 0 0 0 4px rgba(59, 134, 199, 0.12);
    outline: none;
}

.survey-field input::placeholder,
.survey-field textarea::placeholder {
    color: #93a5ba;
}

.form-error {
    margin: 0;
    color: #b42318;
    font-size: 11.5px;
}

.form-notice {
    margin: 0 0 20px;
    padding: 14px 18px;
    border-radius: 14px;
    font-size: 13px;
    font-weight: 500;
}

.form-notice--success {
    border: 1px solid rgba(16, 122, 87, 0.24);
    background: #e8f7f1;
    color: #0f6b4c;
}

.form-notice--error {
    border: 1px solid rgba(180, 35, 24, 0.24);
    background: #fdecea;
    color: #8f1d14;
}

.survey-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    margin-top: 22px;
}

.survey-note {
    margin: 0;
    color: var(--muted);
    font-size: 11.5px;
}

.survey-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.85fr);
    gap: 24px;
    align-items: start;
}

.survey-side {
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: linear-gradient(160deg, var(--sky-100), #fff);
    box-shadow: var(--shadow-sm);
}

.survey-side h3 {
    margin: 0 0 10px;
    font-size: 18px;
    font-weight: 600;
}

.survey-side > p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

/* ---------- PPID ---------- */

.ppid-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 18px;
}

.ppid-card {
    display: flex;
    flex-direction: column;
    padding: 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ppid-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.ppid-card__icon {
    display: inline-flex;
    width: 50px;
    height: 50px;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    border-radius: 15px;
    background: linear-gradient(145deg, var(--sky-100), #dbeaf9);
    color: var(--navy-600);
}

.ppid-card h3 {
    margin: 0 0 8px;
    font-size: 16px;
    font-weight: 600;
}

.ppid-card p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.ppid-card .text-link {
    margin-top: auto;
}

.step-list {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 18px;
    margin: 0;
    padding: 0;
    list-style: none;
    counter-reset: step;
}

.step-item {
    position: relative;
    padding: 26px 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.step-item::before {
    position: absolute;
    top: 34px;
    right: -10px;
    width: 20px;
    height: 2px;
    background: var(--blue-300);
    content: "";
}

.step-item:last-child::before {
    display: none;
}

.step-number {
    display: inline-flex;
    width: 42px;
    height: 42px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border-radius: 13px;
    background: linear-gradient(145deg, var(--navy-700), var(--navy-600));
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.step-item h3 {
    margin: 0 0 7px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.4;
}

.step-item p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.ppid-cta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    overflow: hidden;
    padding: clamp(28px, 4vw, 42px);
    border-radius: var(--radius-xl);
    background:
        radial-gradient(520px 340px at 100% 0%, rgba(59, 134, 199, 0.4), transparent 62%),
        linear-gradient(150deg, var(--navy-800), var(--navy-700));
    color: rgba(255, 255, 255, 0.78);
    box-shadow: var(--shadow);
}

.ppid-cta > div {
    max-width: 620px;
}

.ppid-cta h2 {
    margin: 0 0 10px;
    color: #fff;
    font-size: clamp(1.4rem, 2.6vw, 1.9rem);
    font-weight: 700;
}

.ppid-cta p {
    margin: 0;
    font-size: 13.5px;
    line-height: 1.75;
}

.ppid-cta .eyebrow {
    color: rgba(255, 255, 255, 0.82);
}

/* ---------- SKM ---------- */

.skm-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 24px;
    align-items: stretch;
}

.skm-report {
    display: flex;
    flex-direction: column;
    padding: clamp(26px, 3vw, 36px);
    overflow: hidden;
    border-radius: var(--radius-lg);
    background:
        radial-gradient(460px 340px at 100% 0%, rgba(59, 134, 199, 0.42), transparent 62%),
        linear-gradient(155deg, var(--navy-800), var(--navy-700));
    color: rgba(255, 255, 255, 0.8);
    box-shadow: var(--shadow);
}

.skm-report__description {
    margin: 0 0 20px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12.5px;
    line-height: 1.7;
}

.skm-summary {
    display: flex;
    flex-direction: column;
    padding: clamp(26px, 3vw, 36px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.skm-summary h3 {
    margin: 0 0 12px;
    font-size: 19px;
    font-weight: 600;
}

.skm-summary > p {
    margin: 0 0 18px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.8;
}

.skm-summary .document-download {
    align-self: flex-start;
    margin-top: auto;
}

.skm-cta {
    display: grid;
    grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
    overflow: hidden;
    border-radius: var(--radius-xl);
    background: #fff;
    box-shadow: var(--shadow);
}

.skm-cta__score {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: clamp(28px, 4vw, 40px);
    background:
        radial-gradient(460px 340px at 100% 0%, rgba(59, 134, 199, 0.42), transparent 62%),
        linear-gradient(155deg, var(--navy-800), var(--navy-700));
    color: rgba(255, 255, 255, 0.78);
}

.skm-cta__description {
    margin: 0;
    color: rgba(255, 255, 255, 0.66);
    font-size: 12.5px;
    line-height: 1.7;
}

.skm-cta__body {
    padding: clamp(28px, 4vw, 40px);
}

.skm-cta__body h3 {
    margin: 0 0 8px;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 700;
}

.skm-cta__body > p {
    margin: 0 0 20px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.75;
}

.skm-cta__body .ikm-bar {
    color: var(--ink-soft);
}

.skm-cta__body .ikm-bar__track {
    background: var(--sky-200);
}

.skm-cta__body .ikm-bars {
    margin-bottom: 24px;
}

.unsur-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.unsur-card {
    position: relative;
    overflow: hidden;
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.unsur-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.unsur-card__number {
    display: block;
    margin-bottom: 12px;
    color: var(--blue-300);
    font-size: 30px;
    font-weight: 700;
    letter-spacing: -0.04em;
    line-height: 1;
}

.unsur-card h3 {
    margin: 0 0 7px;
    font-size: 14.5px;
    font-weight: 600;
    line-height: 1.45;
}

.unsur-card p {
    margin: 0;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.skm-report .ikm-bar {
    color: rgba(255, 255, 255, 0.72);
}

/* ---------- Dokumen detail / viewer ---------- */

.doc-viewer-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.8fr);
    gap: 24px;
    align-items: start;
}

.doc-viewer {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow);
}

.doc-viewer__bar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 14px 20px;
    border-bottom: 1px solid var(--line);
    background: var(--sky-50);
}

.doc-viewer__file {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--ink-soft);
    font-size: 12px;
    font-weight: 500;
    overflow-wrap: anywhere;
}

.doc-viewer__badge {
    padding: 4px 10px;
    border-radius: 999px;
    background: var(--navy-700);
    color: #fff;
    font-size: 10px;
    font-weight: 600;
    letter-spacing: 0.08em;
}

.doc-viewer__page {
    padding: clamp(24px, 4vw, 44px);
}

.doc-viewer__page h2 {
    margin: 0 0 20px;
    font-size: clamp(1.3rem, 2.4vw, 1.7rem);
    font-weight: 700;
}

.doc-viewer__page h3 {
    margin: 26px 0 10px;
    color: var(--navy-700);
    font-size: 15px;
    font-weight: 600;
}

.doc-viewer__page p {
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.85;
}

.doc-viewer__note {
    margin-top: 26px;
    padding: 14px 18px;
    border: 1px dashed var(--line-strong);
    border-radius: 12px;
    color: var(--muted) !important;
    font-size: 12px !important;
}

.doc-sidebar {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.doc-sidebar__card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.doc-sidebar__card--download {
    background:
        radial-gradient(360px 260px at 100% 0%, rgba(59, 134, 199, 0.36), transparent 62%),
        linear-gradient(155deg, var(--navy-800), var(--navy-700));
    color: rgba(255, 255, 255, 0.76);
}

.doc-sidebar__card--download h2 {
    color: #fff;
}

.doc-sidebar__card--download p {
    color: rgba(255, 255, 255, 0.66);
}

.doc-sidebar__card--download .button {
    width: 100%;
    margin-top: 6px;
}

.doc-sidebar__card h2 {
    margin: 0 0 10px;
    font-size: 15px;
    font-weight: 600;
}

.doc-sidebar__card > p {
    margin: 0 0 16px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.doc-detail {
    display: flex;
    flex-direction: column;
    margin: 0;
}

.doc-detail div {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 14px;
    padding: 9px 0;
    border-bottom: 1px solid var(--line);
}

.doc-detail div:last-child {
    border-bottom: 0;
}

.doc-detail dt {
    color: var(--muted);
    font-size: 11.5px;
}

.doc-detail dd {
    margin: 0;
    color: var(--ink);
    font-size: 12px;
    font-weight: 500;
    text-align: right;
}

.doc-back {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border: 1px solid var(--line-strong);
    border-radius: 14px;
    background: #fff;
    color: var(--navy-700);
    font-size: 12.5px;
    font-weight: 600;
    transition: all 0.2s ease;
}

.doc-back:hover {
    border-color: var(--navy-700);
    background: var(--navy-700);
    color: #fff;
}

/* ---------- Footer ---------- */

.site-footer {
    position: relative;
    overflow: hidden;
    padding: clamp(56px, 7vw, 84px) 0 0;
    background:
        radial-gradient(900px 520px at 100% 0%, rgba(59, 134, 199, 0.28), transparent 60%),
        radial-gradient(700px 460px at 0% 100%, rgba(242, 177, 52, 0.09), transparent 60%),
        linear-gradient(165deg, var(--navy-950) 0%, var(--navy-900) 58%, var(--navy-800) 100%);
    color: rgba(255, 255, 255, 0.64);
}

.site-footer::before {
    position: absolute;
    top: 0;
    right: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--gold), var(--blue-400), var(--gold));
    content: "";
    opacity: 0.85;
}

.footer-lead {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 28px;
    padding-bottom: clamp(38px, 5vw, 56px);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-title {
    max-width: 22ch;
    margin: 0;
    color: #fff;
    font-size: clamp(1.8rem, 3.6vw, 2.8rem);
    font-weight: 700;
    letter-spacing: -0.035em;
    line-height: 1.15;
}

.footer-title em {
    color: var(--gold-soft);
}

.footer-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.footer-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) repeat(3, minmax(0, 1fr));
    gap: 34px;
    padding: clamp(38px, 5vw, 54px) 0;
}

.footer-brand {
    max-width: 360px;
}

.footer-logo {
    display: inline-flex;
    width: 58px;
    height: 58px;
    align-items: center;
    justify-content: center;
    margin-bottom: 16px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 16px;
    background: rgba(255, 255, 255, 0.06);
}

.footer-logo img {
    width: 36px;
    height: auto;
}

.footer-brand__name {
    margin: 0 0 10px;
    color: #fff;
    font-size: 15px;
    font-weight: 600;
    line-height: 1.5;
}

.footer-brand__address {
    margin: 0 0 16px;
    color: rgba(255, 255, 255, 0.56);
    font-size: 12.5px;
    line-height: 1.7;
}

.footer-contact {
    display: flex;
    flex-direction: column;
    gap: 7px;
    margin-bottom: 18px;
}

.footer-contact span {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 12.5px;
    overflow-wrap: anywhere;
}

.footer-contact .icon {
    color: var(--gold-soft);
}

.footer-social {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.footer-social a {
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 10px;
    color: rgba(255, 255, 255, 0.72);
    transition: all 0.2s ease;
}

.footer-social a:hover {
    border-color: var(--gold);
    background: var(--gold);
    color: var(--navy-950);
}

.footer-col h3 {
    margin: 0 0 14px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.footer-col ul {
    display: flex;
    flex-direction: column;
    gap: 9px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.footer-col a {
    color: rgba(255, 255, 255, 0.6);
    font-size: 12.5px;
    line-height: 1.6;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.footer-col a:hover {
    padding-left: 4px;
    color: var(--gold-soft);
}

.footer-col span {
    color: rgba(255, 255, 255, 0.48);
    font-size: 12.5px;
    line-height: 1.6;
}

.footer-bottom {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    padding: 22px 0 26px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom > p {
    margin: 0;
    color: rgba(255, 255, 255, 0.46);
    font-size: 11.5px;
}

.footer-stats {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.footer-stats span {
    padding: 6px 11px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.04);
    color: rgba(255, 255, 255, 0.5);
    font-size: 10.5px;
}

.footer-stats strong {
    color: var(--gold-soft);
    font-weight: 600;
}

.footer-legal {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: 11px;
    transition: color 0.2s ease;
}

.footer-legal a:hover {
    color: #fff;
}

.footer-legal span {
    color: rgba(255, 255, 255, 0.36);
    font-size: 11px;
}

/* ---------- Modal & gallery dialog ---------- */

.modal-content {
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.modal-header {
    padding: 20px 24px;
    border-bottom: 1px solid var(--line);
    background: var(--sky-50);
}

.modal-title {
    font-size: 16px;
    font-weight: 600;
}

.modal-body {
    padding: 24px;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.75;
}

.modal-note {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
}

.gallery-dialog {
    max-width: min(1040px, 92vw);
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: var(--radius-lg);
    background: transparent;
}

.gallery-dialog::backdrop {
    background: rgba(4, 22, 43, 0.86);
    backdrop-filter: blur(4px);
}

.gallery-dialog img {
    width: 100%;
    max-height: 78vh;
    border-radius: var(--radius-lg);
    object-fit: contain;
    background: var(--navy-900);
}

.gallery-dialog p {
    margin: 14px 0 0;
    color: rgba(255, 255, 255, 0.76);
    font-size: 13px;
    text-align: center;
}

.gallery-dialog__close {
    position: absolute;
    top: -48px;
    right: 0;
    display: inline-flex;
    width: 38px;
    height: 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.1);
    color: #fff;
    cursor: pointer;
}

.gallery-dialog__close:hover {
    background: #fff;
    color: var(--navy-900);
}

/* ---------- Service detail ---------- */

.service-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 0.82fr);
    gap: 26px;
    align-items: start;
}

.service-detail {
    padding: clamp(24px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.service-detail__intro {
    margin-bottom: 8px;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.85;
}

.service-detail__section {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.service-detail__section h2 {
    margin: 0 0 14px;
    font-size: 18px;
    font-weight: 600;
}

.service-detail__list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-detail__list li {
    position: relative;
    padding-left: 28px;
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.7;
}

.service-detail__list li::before {
    position: absolute;
    top: 4px;
    left: 0;
    display: inline-flex;
    width: 18px;
    height: 18px;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: var(--sky-100);
    color: var(--navy-600);
    font-size: 10px;
    font-weight: 700;
    content: "\2713";
}

.service-detail__meta {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.service-detail__meta div {
    padding: 16px 18px;
    border-radius: 14px;
    background: var(--sky-50);
}

.service-detail__meta span {
    display: block;
    color: var(--muted);
    font-size: 10.5px;
    font-weight: 500;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.service-detail__meta strong {
    display: block;
    margin-top: 4px;
    color: var(--navy-800);
    font-size: 14px;
    font-weight: 600;
}

.service-side {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.service-side__card {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.service-side__card:first-child {
    border-color: transparent;
    background:
        radial-gradient(360px 260px at 100% 0%, rgba(59, 134, 199, 0.38), transparent 62%),
        linear-gradient(155deg, var(--navy-800), var(--navy-700));
    color: rgba(255, 255, 255, 0.78);
}

.service-side__card h2 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
}

.service-side__card:first-child h2 {
    color: #fff;
}

.service-side__card:first-child .eyebrow {
    border-color: rgba(255, 255, 255, 0.2);
    background: rgba(255, 255, 255, 0.08);
    color: rgba(255, 255, 255, 0.88);
}

.service-side__card > p {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 12.5px;
    line-height: 1.7;
}

.service-side__card:first-child > p {
    color: rgba(255, 255, 255, 0.66);
}

.service-side__card .button {
    margin-top: 8px;
}

.service-side__card:first-child .button {
    background: #fff;
    color: var(--navy-800);
    box-shadow: none;
}

.service-side__card:first-child .button:hover {
    background: var(--gold-soft);
    color: var(--navy-900);
}

.service-side__platform {
    margin: 0 0 16px;
    color: var(--gold-soft) !important;
    font-size: 12px !important;
    font-weight: 500;
}

.service-side__card .text-link {
    display: flex;
    width: fit-content;
    margin-top: 4px;
}

.service-other {
    display: flex;
    flex-direction: column;
    margin: 0;
    padding: 0;
    list-style: none;
}

.service-other li {
    border-top: 1px solid var(--line);
}

.service-other li:first-child {
    border-top: 0;
}

.service-other a {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 11px 0;
    color: var(--ink-soft);
    font-size: 12.5px;
    font-weight: 500;
    line-height: 1.5;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

.service-other a:hover {
    padding-left: 4px;
    color: var(--navy-600);
}

/* ---------- Agenda cards & announcement panel ---------- */

.agenda-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 16px;
}

.agenda-card {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 22px;
    border: 1px solid var(--line);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.agenda-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-3px);
}

.agenda-card__body {
    min-width: 0;
}

.agenda-card__body h3 {
    margin: 0 0 4px;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.45;
}

.agenda-card__body p {
    margin: 0;
    color: var(--muted);
    font-size: 12px;
    line-height: 1.55;
}

.announcement-panel {
    padding: 6px 26px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.announcement-panel .announcement {
    padding: 18px 0;
}

.announcement-panel .announcement h4 {
    font-size: 15px;
}

/* ---------- Content dialog ---------- */

.content-dialog {
    position: relative;
    width: min(640px, 92vw);
    max-width: 640px;
    padding: 0;
    overflow: visible;
    border: 0;
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-lg);
}

.content-dialog::backdrop {
    background: rgba(4, 22, 43, 0.74);
    backdrop-filter: blur(4px);
}

.content-dialog__inner {
    padding: clamp(26px, 4vw, 38px);
}

.content-dialog__close {
    position: absolute;
    top: 16px;
    right: 16px;
    display: inline-flex;
    width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--line-strong);
    border-radius: 50%;
    background: #fff;
    color: var(--navy-700);
    cursor: pointer;
    transition: all 0.2s ease;
}

.content-dialog__close:hover {
    border-color: var(--navy-700);
    background: var(--navy-700);
    color: #fff;
}

.content-dialog h2 {
    margin: 0 0 8px;
    padding-right: 36px;
    font-size: clamp(1.25rem, 2.4vw, 1.55rem);
    font-weight: 700;
    line-height: 1.35;
}

.content-dialog .meta {
    margin: 0 0 16px;
    color: var(--muted);
}

.content-dialog__body {
    margin: 0 0 22px;
    color: var(--ink-soft);
    font-size: 14px;
    line-height: 1.8;
    white-space: pre-line;
}

.content-dialog__body:empty {
    display: none;
}

.agenda-item--button,
.agenda-card--button {
    width: 100%;
    font: inherit;
    color: inherit;
    text-align: left;
    cursor: pointer;
    appearance: none;
}

.agenda-item--button {
    border: 0;
    border-bottom: 1px solid var(--line);
    border-radius: 0;
    background: transparent;
}

.agenda-item--button:last-child {
    border-bottom: 0;
}

.agenda-item--button:hover h4,
.agenda-card--button:hover h3 {
    color: var(--navy-600);
}

.doc-viewer__frame {
    display: block;
    width: 100%;
    height: min(78vh, 860px);
    border: 0;
    background: var(--sky-50);
}

.doc-viewer__body {
    color: var(--ink-soft);
    font-size: 13.5px;
    line-height: 1.85;
}

.doc-viewer__body p {
    margin: 0 0 14px;
}

.button.is-disabled {
    pointer-events: none;
    opacity: 0.55;
}

.document-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 14px 20px;
    border-top: 1px solid var(--line);
    background: #fff;
}

.document-pagination[hidden] {
    display: none;
}

.document-page {
    display: inline-flex;
    min-width: 36px;
    height: 36px;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid var(--line-strong);
    border-radius: 10px;
    background: #fff;
    color: var(--ink-soft);
    font-family: var(--font);
    font-size: 12.5px;
    font-weight: 500;
    cursor: pointer;
    transition: all 0.2s ease;
}

.document-page:hover:not(:disabled) {
    border-color: var(--navy-600);
    color: var(--navy-700);
}

.document-page.is-active {
    border-color: var(--navy-700);
    background: var(--navy-700);
    color: #fff;
}

.document-page:disabled {
    cursor: not-allowed;
    opacity: 0.4;
}

.service-document {
    margin-top: 28px;
    padding-top: 24px;
    border-top: 1px solid var(--line);
}

.service-document__head {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 18px;
}

.service-document__head h2 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.service-document__head .eyebrow {
    margin-bottom: 8px;
}

.service-document__frame {
    display: block;
    width: 100%;
    height: min(74vh, 780px);
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--sky-50);
}

.service-document__empty {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    padding: 28px;
    border: 1px dashed var(--line-strong);
    border-radius: 16px;
    background: var(--sky-50);
}

.service-document__icon {
    display: inline-flex;
    width: 46px;
    height: 46px;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    border-radius: 13px;
    background: #fff;
    color: var(--navy-600);
    box-shadow: var(--shadow-sm);
}

.service-document__empty h3 {
    margin: 0 0 6px;
    font-size: 16px;
    font-weight: 600;
}

.service-document__empty p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
    line-height: 1.7;
}

.flyer-card {
    position: relative;
    display: block;
    margin-top: 16px;
    overflow: hidden;
    border: 1px solid var(--line);
    border-radius: 16px;
    background: var(--navy-800);
    box-shadow: var(--shadow-sm);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.flyer-card:hover {
    box-shadow: var(--shadow);
    transform: translateY(-2px);
}

.flyer-card img {
    width: 100%;
    height: 190px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.flyer-card:hover img {
    transform: scale(1.04);
}

.flyer-card__body {
    position: absolute;
    right: 0;
    bottom: 0;
    left: 0;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding: 18px;
    background: linear-gradient(180deg, transparent 0%, rgba(4, 22, 43, 0.88) 100%);
}

.flyer-card__body .tag {
    background: rgba(242, 177, 52, 0.18);
    color: var(--gold-soft);
}

.flyer-card__body strong {
    color: #fff;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.4;
}

.flyer-card__body small {
    color: rgba(255, 255, 255, 0.66);
    font-size: 11.5px;
    line-height: 1.5;
}

/* ---------- News detail ---------- */

.news-detail__title {
    max-width: 28ch;
}

.news-detail__meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    margin-top: 18px;
    color: rgba(255, 255, 255, 0.62);
    font-size: 12.5px;
}

.news-detail__meta span {
    display: inline-flex;
    align-items: center;
    gap: 7px;
}

.news-detail__meta .icon {
    color: var(--gold-soft);
}

.news-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 0.72fr);
    gap: 26px;
    align-items: start;
}

.news-detail {
    padding: clamp(22px, 4vw, 40px);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.news-detail__figure {
    margin: 0 0 28px;
    overflow: hidden;
    border-radius: 20px;
    background: var(--sky-100);
}

.news-detail__figure img {
    width: 100%;
    max-height: 480px;
    object-fit: cover;
}

.news-detail__lead {
    margin: 0 0 26px;
    padding-left: 18px;
    border-left: 3px solid var(--gold);
    color: var(--navy-800);
    font-size: 16px;
    font-weight: 500;
    line-height: 1.8;
}

.news-detail__body p {
    margin: 0 0 18px;
    color: var(--ink-soft);
    font-size: 14.5px;
    line-height: 1.9;
}

.news-detail__body p:last-child {
    margin-bottom: 0;
}

.news-detail__source {
    margin-top: 26px;
}

.news-detail__footer {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid var(--line);
}

.news-detail-side {
    position: sticky;
    top: calc(var(--header-h) + 20px);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.news-related {
    padding: 24px;
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    background: #fff;
    box-shadow: var(--shadow-sm);
}

.news-related h2 {
    margin: 0 0 8px;
    padding-bottom: 14px;
    border-bottom: 1px solid var(--line);
    font-size: 16px;
    font-weight: 600;
}

.news-related__item {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    align-items: center;
    padding: 13px 0;
    border-bottom: 1px solid var(--line);
}

.news-related__item:last-child {
    padding-bottom: 0;
    border-bottom: 0;
}

.news-related__item img {
    width: 84px;
    height: 72px;
    border-radius: 10px;
    object-fit: cover;
}

.news-related__item .tag {
    margin-bottom: 6px;
    font-size: 10px;
}

.news-related__item h3 {
    margin: 0 0 5px;
    font-size: 12.5px;
    font-weight: 600;
    line-height: 1.45;
    transition: color 0.2s ease;
}

.news-related__item:hover h3 {
    color: var(--navy-600);
}

.news-related__item .meta {
    font-size: 10.5px;
}

.news-detail-side__button {
    width: 100%;
}

/* ---------- Responsive ---------- */

@media (max-width: 1199.98px) {
    :root {
        --header-h: 70px;
    }

    .primary-nav__cta {
        display: inline-flex;
    }
}

@media (max-width: 991.98px) {
    .hero {
        padding-top: calc(var(--masthead-offset) + 34px);
    }

    .hero-slide {
        grid-template-columns: 1fr;
    }

    .hero-media {
        min-height: 300px;
        height: 320px;
    }

    .hero-copy {
        padding: 30px;
    }

    .service-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-lead > a {
        grid-template-columns: 1fr;
    }

    .news-lead figure img {
        min-height: 260px;
        max-height: 320px;
    }

    .gallery-layout {
        grid-template-columns: 1fr;
    }

    .video-card {
        flex-direction: row;
    }

    .video-card__poster {
        width: 46%;
        flex-shrink: 0;
    }

    .video-card__poster img {
        height: 100%;
        min-height: 230px;
    }

    .video-card__body {
        width: 54%;
    }

    .contact-grid,
    .agenda-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .contact-layout,
    .survey-layout,
    .skm-layout,
    .tupoksi-layout,
    .doc-viewer-layout,
    .service-detail-layout,
    .news-detail-layout {
        grid-template-columns: 1fr;
    }

    .news-detail-side {
        position: static;
    }

    .service-side {
        position: static;
    }

    .visi-grid {
        grid-template-columns: 1fr;
    }

    .org-units {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .org-units::before,
    .org-unit::before {
        display: none;
    }

    .unit-grid,
    .ppid-grid,
    .unsur-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .step-item::before {
        display: none;
    }

    .skm-cta {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
    }
}

@media (max-width: 767.98px) {
    :root {
        --masthead-offset: 104px;
    }

    body {
        font-size: 15px;
    }

    .utility-bar {
        font-size: 11px;
    }

    .utility-bar__inner {
        justify-content: space-between;
        gap: 12px;
    }

    .utility-bar__brandline {
        max-width: 58vw;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .utility-bar__fullname {
        display: none;
    }

    .utility-bar__shortname {
        display: inline;
    }

    .utility-bar__date,
    .utility-bar__socials {
        display: none;
    }

    .utility-bar__right a span {
        display: none;
    }

    .brand__eyebrow {
        font-size: 8.5px;
    }

    .brand__name {
        font-size: 16px;
    }

    .brand__mark {
        width: 36px;
    }

    .hero {
        padding-top: calc(var(--masthead-offset) + 26px);
    }

    .hero__intro {
        margin-bottom: 24px;
        text-align: left;
    }

    .hero__title {
        font-size: clamp(1.8rem, 7vw, 2.4rem);
    }

    .hero-slide {
        border-radius: 24px;
    }

    .hero-media {
        min-height: 210px;
        height: 220px;
    }

    .hero-copy {
        padding: 24px;
    }

    .hero-title {
        font-size: 1.35rem;
    }

    .hero-description {
        font-size: 13px;
    }

    .hero-controls {
        flex-wrap: wrap;
        justify-content: center;
        gap: 12px;
    }

    .hero-dots {
        order: -1;
    }

    .hero-stats {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        margin-bottom: -34px;
    }

    .hero-stat {
        padding: 18px 20px;
    }

    .hero-stat:nth-child(3)::before {
        display: none;
    }

    .hero-stat:nth-child(n + 3) {
        border-top: 1px solid var(--line);
    }

    .section {
        padding: 56px 0;
    }

    .section-heading {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .section-link {
        justify-self: start;
    }

    .section-title {
        font-size: clamp(1.55rem, 6vw, 2rem);
    }

    .greeting-layout {
        grid-template-columns: 1fr;
    }

    .portrait img {
        min-height: 280px;
        max-height: 360px;
    }

    .service-grid {
        grid-template-columns: 1fr;
    }

    .service-toolbar {
        flex-direction: column;
        align-items: stretch;
    }

    .service-filters {
        overflow-x: auto;
        flex-wrap: nowrap;
        padding-bottom: 4px;
        scrollbar-width: none;
    }

    .service-filters::-webkit-scrollbar {
        display: none;
    }

    .filter-chip {
        flex-shrink: 0;
    }

    .news-popular {
        padding: 20px;
    }

    .faq-item summary {
        grid-template-columns: 30px minmax(0, 1fr) 22px;
        gap: 10px;
        padding: 16px;
        font-size: 13px;
    }

    .faq-item__body {
        padding: 0 16px 18px 56px;
    }

    .gallery-grid {
        grid-auto-rows: 160px;
        gap: 12px;
    }

    .gallery-item:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .video-card {
        flex-direction: column;
    }

    .video-card__poster,
    .video-card__body {
        width: 100%;
    }

    .video-card__poster img {
        height: 220px;
    }

    .page-hero__head {
        padding-bottom: 30px;
    }

    .page-hero__facts {
        width: 100%;
        gap: 18px;
        padding: 16px 18px;
    }

    .page-hero__facts dd {
        font-size: 20px;
    }

    .profile-nav {
        padding-bottom: 24px;
    }

    .contact-grid,
    .agenda-grid {
        grid-template-columns: 1fr;
    }

    .survey-grid {
        grid-template-columns: 1fr;
    }

    .survey-field--full {
        margin-top: 0;
    }

    .unit-grid,
    .ppid-grid,
    .unsur-grid,
    .step-list {
        grid-template-columns: 1fr;
    }

    .org-units {
        grid-template-columns: 1fr;
    }

    .org-units::before,
    .org-unit::before {
        display: none;
    }

    .org-line {
        height: 26px;
    }

    .check-list--two {
        grid-template-columns: 1fr;
    }

    .doc-item__button {
        width: 100%;
    }

    .document-toolbar {
        flex-direction: column;
    }

    .document-filter,
    .document-per-page {
        flex: 1 1 auto;
    }

    .doc-viewer__page {
        padding: 22px 18px;
    }

    .doc-detail div {
        flex-direction: column;
        align-items: flex-start;
        gap: 2px;
    }

    .doc-detail dd {
        text-align: left;
    }

    .footer-lead {
        align-items: flex-start;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .footer-bottom {
        flex-direction: column;
        align-items: flex-start;
    }

    .footer-legal {
        gap: 12px;
    }

    .news-item > a {
        grid-template-columns: 104px minmax(0, 1fr);
    }

    .news-item img {
        height: 88px;
    }
}

@media (max-width: 479.98px) {
    .hero-actions .button {
        width: 100%;
    }

    .gallery-grid {
        grid-template-columns: 1fr;
        grid-auto-rows: 190px;
    }

    .gallery-item:last-child:nth-child(odd) {
        grid-column: auto;
    }

    .hero-stats {
        grid-template-columns: 1fr;
    }

    .hero-stat + .hero-stat::before {
        display: none;
    }

    .hero-stat + .hero-stat {
        border-top: 1px solid var(--line);
    }

    .footer-actions {
        width: 100%;
    }

    .footer-actions .button {
        flex: 1 1 auto;
    }
}

@media (prefers-reduced-motion: reduce) {
    html {
        scroll-behavior: auto;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* PPID API application and tracking forms */
.ppid-form{display:grid;gap:1.25rem;max-width:900px;padding:1.5rem;background:#fff;border:1px solid var(--line,#e5e7eb);border-radius:1rem;box-shadow:0 12px 32px rgba(20,35,70,.05)}
.ppid-form-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem}
.ppid-form label{display:grid;gap:.45rem;font-size:.9rem;font-weight:600;color:var(--ink,#1f2937)}
.ppid-form input:not([type=checkbox]):not([type=file]),.ppid-form select,.ppid-form textarea{width:100%;min-height:46px;padding:.75rem .85rem;border:1px solid #d6dce7;border-radius:.55rem;background:#fff;color:inherit;font:inherit}
.ppid-form textarea{min-height:100px;resize:vertical}
.ppid-form input[type=file]{max-width:100%;padding:.5rem;border:1px dashed #cbd5e1;border-radius:.55rem;background:#f8fafc}
.ppid-form-wide{grid-column:1/-1}
.ppid-consent{display:flex!important;grid-template-columns:auto 1fr;align-items:center;gap:.6rem!important}
.ppid-form h3{margin:.5rem 0 0;font-size:1.05rem}
.ppid-track-form{max-width:700px}
.ppid-form .document-meta{margin:0}
@media(max-width:680px){.ppid-form-grid{grid-template-columns:1fr}.ppid-form-wide{grid-column:auto}.ppid-form{padding:1rem}}

/* =========================================
   CAMPAIGN LOGOS - BERAKHLAK & BANGGA
========================================= */

.campaign-logos {
    background: #fff;
    padding: 22px 0 12px;
}

.campaign-logos__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 52px;
    flex-wrap: wrap;
}

.campaign-logos__item {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 260px;
    max-width: 42%;
}

.campaign-logos__item img {
    display: block;
    width: 100%;
    height: 100px;
    object-fit: contain;
}

/* Mendekatkan bagian layanan dengan logo */
.campaign-logos + .section {
    padding-top: 32px;
}

/* Tampilan tablet */
@media (max-width: 768px) {
    .campaign-logos__inner {
        gap: 32px;
    }

    .campaign-logos__item {
        width: 220px;
    }

    .campaign-logos__item img {
        height: 85px;
    }
}

/* Tampilan smartphone */
@media (max-width: 480px) {
    .campaign-logos {
        padding: 18px 0 8px;
    }

    .campaign-logos__inner {
        gap: 18px;
    }

    .campaign-logos__item {
        width: calc(50% - 12px);
        max-width: 190px;
    }

    .campaign-logos__item img {
        height: 68px;
    }

    .campaign-logos + .section {
        padding-top: 24px;
    }
}
}
.masthead.is-scrolled .utility-bar {
    max-height: none !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    opacity: 0 !important;
    border-bottom-color: transparent !important;
    pointer-events: none !important;
}
/*
 * CONTACT MASTHEAD STRUCTURAL FIX v1.0.4
 * Non-home pages: let the utility bar scroll away naturally and make only
 * the white site header sticky. This avoids collapsing a child inside the
 * same sticky masthead and prevents header/content reflow.
 * Homepage fixed/transparent masthead behavior is intentionally untouched.
 */
body:not(.page-home) .masthead {
    position: static;
    top: auto;
}

body:not(.page-home) .site-header {
    position: sticky;
    top: 0;
    z-index: 1000;
}

/* Override the global scrolled-state collapse only on non-home pages.
   The utility bar leaves the viewport through normal document scrolling. */
body:not(.page-home) .masthead.is-scrolled .utility-bar {
    max-height: none !important;
    padding-top: 9px !important;
    padding-bottom: 9px !important;
    opacity: 1 !important;
    visibility: visible !important;
    border-bottom-color: initial;
    pointer-events: auto !important;
}


/* =====================================================
   HERO LAYOUT UPDATE
   Desktop: Text Left | Slider Right
   Mobile: Text Top | Slider Bottom
===================================================== */

@media (min-width: 992px) {
    .hero__inner {
        display: grid;
        grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
        align-items: center;
        column-gap: clamp(32px, 5vw, 72px);
    }

    .hero__intro {
        max-width: none;
        margin: 0;
        text-align: left;
    }

    .hero__lead {
        margin-left: 0;
        margin-right: 0;
    }

    .hero-carousel {
        width: 100%;
        max-width: none;
        margin: 0;
    }

    .hero-stats {
        grid-column: 1 / -1;
    }
}

/* Tablet dan Mobile */
@media (max-width: 991.98px) {
    .hero__inner {
        display: block;
    }

    .hero__intro {
        margin: 0 0 24px;
        text-align: left;
    }

    .hero-carousel {
        width: 100%;
        max-width: 1080px;
        margin: 0 auto;
    }
}


/* PATCH COUNTER HOMEPAGE */
.hero-stats--compact .hero-stat {
    text-align: center;
    align-items: center;
}

.hero-stats--compact .hero-stat__value,
.hero-stats--compact .hero-stat__label {
    text-align: center;
}


/* PATCH COUNTER DYNAMIC COLUMNS */
@media (min-width: 769px) {
    .hero-stats {
        grid-template-columns: repeat(var(--hero-stat-count, 4), minmax(0, 1fr));
    }
}


/* HOMEPAGE FLYER SECTION */
.flyer-section {
    position: relative;
}

.flyer-section .flyer-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.flyer-section .flyer-card {
    display: block;
    width: 100%;
    min-width: 0;
}

.flyer-section .flyer-card img {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
}

@media (max-width: 767.98px) {
    .flyer-section .flyer-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
}


/* FLYER GALLERY V2 */
.flyer-section .flyer-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 22px;
    align-items: start;
}

.flyer-section .flyer-card {
    display: flex;
    flex-direction: column;
    width: 100%;
    min-width: 0;
    padding: 0;
    overflow: hidden;
    text-align: left;
    color: inherit;
    font: inherit;
    cursor: pointer;
    background: var(--surface, #fff);
    border: 1px solid rgba(25, 55, 90, .10);
    border-radius: 16px;
    box-shadow: 0 5px 20px rgba(25, 55, 90, .06);
    transition: transform .25s ease, box-shadow .25s ease;
}

.flyer-section .flyer-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(25, 55, 90, .12);
}

.flyer-section .flyer-card__media {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 3 / 4;
    overflow: hidden;
    background: #f0f3f7;
}

.flyer-section .flyer-card__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    transition: transform .35s ease;
}

.flyer-section .flyer-card:hover .flyer-card__media img {
    transform: scale(1.025);
}

.flyer-section .flyer-card__zoom {
    position: absolute;
    inset: auto 10px 10px auto;
    padding: 7px 12px;
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    background: rgba(17, 42, 72, .82);
    border-radius: 30px;
    opacity: 0;
    transition: opacity .2s ease;
}

.flyer-section .flyer-card:hover .flyer-card__zoom,
.flyer-section .flyer-card:focus-visible .flyer-card__zoom {
    opacity: 1;
}

.flyer-section .flyer-card__body {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    width: 100%;
    padding: 15px;
}

.flyer-section .flyer-card__body strong {
    display: -webkit-box;
    overflow: hidden;
    font-size: 14px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.flyer-section .flyer-card__body small {
    display: -webkit-box;
    overflow: hidden;
    color: var(--muted, #68778a);
    font-size: 12px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.flyer-section .flyer-card[hidden] {
    display: none !important;
}

.flyer-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    margin-top: 30px;
}

.flyer-pagination[hidden] {
    display: none !important;
}

.flyer-page-btn {
    padding: 10px 17px;
    color: var(--text, #18324f);
    font-size: 13px;
    font-weight: 600;
    background: #fff;
    border: 1px solid rgba(25, 55, 90, .15);
    border-radius: 30px;
    cursor: pointer;
    transition: .2s ease;
}

.flyer-page-btn:hover:not(:disabled) {
    color: #fff;
    background: var(--primary, #174c7e);
}

.flyer-page-btn:disabled {
    cursor: not-allowed;
    opacity: .4;
}

.flyer-page-info {
    color: var(--muted, #68778a);
    font-size: 13px;
    font-weight: 600;
    font-variant-numeric: tabular-nums;
}

.flyer-preview-dialog {
    width: min(94vw, 920px);
    max-width: 920px;
    max-height: 92vh;
    padding: 0;
    overflow: auto;
    color: var(--text, #18324f);
    background: #fff;
    border: 0;
    border-radius: 18px;
    box-shadow: 0 24px 80px rgba(0, 0, 0, .3);
}

.flyer-preview-dialog::backdrop {
    background: rgba(9, 22, 38, .78);
    backdrop-filter: blur(4px);
}

.flyer-preview {
    position: relative;
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(220px, .8fr);
    min-height: 300px;
}

.flyer-preview__close {
    position: absolute;
    z-index: 2;
    top: 12px;
    right: 12px;
    display: grid;
    width: 38px;
    height: 38px;
    place-items: center;
    color: #fff;
    font-size: 27px;
    line-height: 1;
    background: rgba(15, 30, 48, .78);
    border: 0;
    border-radius: 50%;
    cursor: pointer;
}

.flyer-preview__image {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 420px;
    padding: 24px;
    background: #f0f3f7;
}

.flyer-preview__image img {
    display: block;
    max-width: 100%;
    max-height: 78vh;
    width: auto;
    height: auto;
    object-fit: contain;
}

.flyer-preview__details {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    gap: 14px;
    padding: 34px 26px;
}

.flyer-preview__details h3 {
    margin: 0;
    font-size: 20px;
    line-height: 1.4;
}

.flyer-preview__details p {
    margin: 0;
    color: var(--muted, #68778a);
    font-size: 14px;
    line-height: 1.7;
}

.flyer-preview__details a {
    margin-top: 8px;
    color: var(--primary, #174c7e);
    font-size: 13px;
    font-weight: 700;
}

@media (max-width: 991.98px) {
    .flyer-section .flyer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 18px;
    }
}

@media (max-width: 575.98px) {
    .flyer-section .flyer-grid {
        gap: 12px;
    }

    .flyer-section .flyer-card__body {
        padding: 11px;
    }

    .flyer-section .flyer-card__body strong {
        font-size: 12px;
    }

    .flyer-pagination {
        gap: 10px;
    }

    .flyer-page-btn {
        padding: 9px 12px;
        font-size: 11px;
    }

    .flyer-preview {
        grid-template-columns: 1fr;
    }

    .flyer-preview__image {
        min-height: 220px;
        padding: 16px;
    }

    .flyer-preview__image img {
        max-height: 62vh;
    }

    .flyer-preview__details {
        padding: 20px;
    }
}

@media (max-width: 359.98px) {
    .flyer-section .flyer-grid {
        grid-template-columns: 1fr;
    }
}


/* FLYER SOCIAL SHARING V3 */
.flyer-preview__details {
    justify-content: flex-start;
    align-items: flex-start;
    padding-top: 66px;
    gap: 12px;
}

.flyer-share {
    width: 100%;
    margin-top: 12px;
}

.flyer-share > strong {
    display: block;
    margin-bottom: 12px;
    font-size: 14px;
}

.flyer-share__grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 9px;
}

.flyer-share__button {
    display: flex;
    align-items: center;
    gap: 9px;
    min-width: 0;
    padding: 10px;
    color: #253247;
    font-size: 12px;
    font-weight: 600;
    background: #f4f6f9;
    border: 1px solid rgba(30, 50, 75, .08);
    border-radius: 10px;
    cursor: pointer;
    transition: transform .2s ease, box-shadow .2s ease;
}

.flyer-share__button:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 14px rgba(20, 40, 65, .10);
}

.flyer-share__icon {
    display: grid;
    flex: 0 0 27px;
    width: 27px;
    height: 27px;
    place-items: center;
    color: white;
    font-size: 17px;
    font-weight: 700;
    border-radius: 8px;
}

.flyer-share--whatsapp .flyer-share__icon {
    background: #25D366;
}

.flyer-share--tiktok .flyer-share__icon {
    background: #171717;
}

.flyer-share--instagram .flyer-share__icon {
    background: #C13584;
}

.flyer-share--facebook .flyer-share__icon {
    background: #1877F2;
}

.flyer-copy-link {
    width: 100%;
    margin-top: 10px;
    padding: 10px 12px;
    color: var(--primary, #174c7e);
    font-size: 12px;
    font-weight: 700;
    background: #edf4fb;
    border: 1px solid rgba(23, 76, 126, .12);
    border-radius: 9px;
    cursor: pointer;
}

.flyer-share__feedback {
    min-height: 18px;
    margin: 7px 0 0;
    color: #247448;
    font-size: 11px;
    line-height: 1.5;
}

@media (max-width: 575.98px) {
    .flyer-preview__details {
        padding-top: 24px;
    }

    .flyer-share__button {
        padding: 9px;
    }
}


/* GALLERY YOUTUBE MODULE */
.gallery-pagination {
    display:flex; flex-wrap:wrap; align-items:center;
    justify-content:center; gap:8px; margin:28px 0;
}
.gallery-pagination a,.gallery-pagination span {
    display:inline-flex; min-width:40px; min-height:40px;
    align-items:center; justify-content:center; padding:8px 12px;
    border:1px solid rgba(255,255,255,.2); border-radius:8px;
    color:inherit; text-decoration:none; font-size:13px;
}
.gallery-pagination a.is-active {
    color:#17212b; background:#fff; border-color:#fff; font-weight:700;
}
.gallery-pagination a:hover { background:rgba(255,255,255,.12); }
.gallery-pagination__disabled { opacity:.45; }
.youtube-library { margin-top:56px; }
.youtube-library__heading { margin-bottom:22px; }
.youtube-library__heading h3 { margin:8px 0 0; font-size:clamp(26px,3vw,38px); }
.youtube-library__grid {
    display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:22px;
}
.youtube-video {
    overflow:hidden; border:1px solid rgba(255,255,255,.12);
    border-radius:14px; background:rgba(255,255,255,.045);
}
.youtube-video__player {
    position:relative; width:100%; aspect-ratio:16 / 9; background:#080d12;
}
.youtube-video__player iframe {
    position:absolute; inset:0; width:100%; height:100%; border:0;
}
.youtube-video__body { padding:16px; }
.youtube-video__body h4 { margin:0 0 8px; color:inherit; font-size:16px; line-height:1.45; }
.youtube-video__body p { margin:0; color:rgba(255,255,255,.68); font-size:13px; line-height:1.6; }
@media (max-width:992px) {
    .youtube-library__grid { grid-template-columns:repeat(2,minmax(0,1fr)); }
}
@media (max-width:600px) {
    .youtube-library__grid { grid-template-columns:1fr; }
    .gallery-pagination { gap:5px; }
    .gallery-pagination a,.gallery-pagination span {
        min-width:34px; min-height:36px; padding:6px 9px;
    }
}


/* YOUTUBE SIDEBAR LAYOUT */
.gallery-layout {
    align-items: start;
}

.youtube-sidebar {
    display: flex;
    flex-direction: column;
    gap: 18px;
    min-width: 0;
    padding: 20px;
    border: 1px solid rgba(255,255,255,.13);
    border-radius: 18px;
    background: rgba(255,255,255,.045);
}

.youtube-sidebar__heading {
    margin-bottom: 2px;
}

.youtube-sidebar__heading h3 {
    margin: 8px 0 0;
    color: #fff;
    font-size: clamp(22px, 2vw, 30px);
    line-height: 1.2;
}

.youtube-sidebar__item {
    min-width: 0;
    overflow: hidden;
    border: 1px solid rgba(255,255,255,.12);
    border-radius: 12px;
    background: rgba(0,0,0,.16);
}

.youtube-sidebar__player {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #080d12;
}

.youtube-sidebar__player iframe {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.youtube-sidebar__body {
    padding: 12px 14px;
}

.youtube-sidebar__body h4 {
    margin: 0;
    color: #fff;
    font-size: 14px;
    line-height: 1.5;
}

.youtube-sidebar__body p {
    margin: 6px 0 0;
    color: rgba(255,255,255,.68);
    font-size: 12px;
    line-height: 1.6;
}

.youtube-sidebar__empty {
    padding: 22px 14px;
    border: 1px dashed rgba(255,255,255,.2);
    border-radius: 12px;
    color: rgba(255,255,255,.7);
    font-size: 13px;
}

@media (max-width: 767px) {
    .gallery-layout {
        grid-template-columns: 1fr;
    }

    .youtube-sidebar {
        width: 100%;
    }
}


/* YOUTUBE CARD PAGINATION */
.youtube-pagination {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding-top: 4px;
}

.youtube-pagination__label {
    color: rgba(255,255,255,.65);
    font-size: 11px;
    letter-spacing: .04em;
}

.youtube-pagination__buttons {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 7px;
}

.youtube-pagination__buttons a,
.youtube-pagination__buttons button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border: 1px solid rgba(255,255,255,.22);
    border-radius: 8px;
    color: #fff;
    text-decoration: none;
    font-size: 12px;
    transition: background .2s ease, color .2s ease;
}

.youtube-pagination__buttons a:hover,
.youtube-pagination__buttons button:hover {
    background: rgba(255,255,255,.15);
}

.youtube-pagination__buttons a.is-active,
.youtube-pagination__buttons button.is-active {
    background: #f2bd35;
    border-color: #f2bd35;
    color: #15243a;
    font-weight: 700;
}


/* YOUTUBE CLIENT PAGINATION */
.youtube-pagination__buttons button {
    cursor: pointer;
    font: inherit;
    background: transparent;
}
.youtube-sidebar__item[hidden] {
    display: none !important;
}

/* NEWS PAGINATION - PUBLICATION PAGE */
.news-pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin: 34px auto 12px;
    padding: 10px 0;
}

.news-pagination__pages {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
}

.news-pagination__page {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #dce3ed;
    border-radius: 10px;
    background: #fff;
    color: #243858;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.news-pagination__page:hover {
    border-color: #243858;
    background: #f1f5fa;
    color: #172c50;
}

.news-pagination__page.is-active {
    border-color: #20365f;
    background: #20365f;
    color: #fff;
    box-shadow: 0 4px 10px rgba(32, 54, 95, .18);
}

.news-pagination__arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-height: 40px;
    padding: 0 15px;
    border: 1px solid #dce3ed;
    border-radius: 10px;
    background: #fff;
    color: #243858;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    transition: all .2s ease;
}

.news-pagination__arrow:hover {
    border-color: #243858;
    background: #20365f;
    color: #fff;
}

.news-pagination__arrow.is-disabled {
    background: #f4f6f9;
    border-color: #e8edf3;
    color: #a0a9b7;
    cursor: not-allowed;
    pointer-events: none;
}

@media (max-width: 600px) {
    .news-pagination {
        gap: 6px;
        margin-top: 25px;
    }

    .news-pagination__pages {
        gap: 5px;
    }

    .news-pagination__page {
        width: 35px;
        height: 35px;
        border-radius: 8px;
        font-size: 12px;
    }

    .news-pagination__arrow {
        min-height: 35px;
        padding: 0 9px;
        font-size: 11px;
    }
}



/* Struktur organisasi bertingkat - OPD dan Kecamatan */
.org-chart {
    width: 100%;
    gap: 0;
}

.org-chart__head {
    display: flex;
    width: min(100%, 390px);
    flex-direction: column;
    align-items: center;
    padding: 28px 30px;
    border: 1px solid var(--line);
    border-top: 4px solid var(--navy-600);
    border-radius: 20px;
    background: #fff;
    box-shadow: var(--shadow);
    text-align: center;
}

.org-chart__head strong {
    display: block;
    margin-top: 8px;
    color: var(--navy-800);
    font-size: 17px;
    font-weight: 700;
    line-height: 1.45;
}

.org-person__photo {
    display: block;
    width: 88px;
    height: 88px;
    margin: 0 auto 14px;
    border: 3px solid #fff;
    border-radius: 50%;
    background: var(--sky-100);
    box-shadow: 0 0 0 1px var(--line);
    object-fit: cover;
}

.org-person__photo--head {
    width: 112px;
    height: 112px;
}

.org-person__photo-placeholder {
    display: flex;
    width: 88px;
    height: 88px;
    align-items: center;
    justify-content: center;
    margin: 0 auto 14px;
    border: 1px solid var(--line);
    border-radius: 50%;
    background: var(--sky-100);
    color: var(--navy-700);
    font-size: 28px;
    font-weight: 700;
}

.org-person__photo-placeholder--head {
    width: 112px;
    height: 112px;
    font-size: 36px;
}

.org-person__meta {
    display: block;
    margin-top: 5px;
    color: var(--muted);
    font-size: 11px;
    line-height: 1.5;
}

.org-chart__connector {
    width: 2px;
    height: 34px;
    background: var(--line-strong);
}

.org-tree {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
}

.org-node {
    position: relative;
    display: flex;
    min-width: 0;
    flex: 1 1 220px;
    flex-direction: column;
    align-items: center;
}

.org-unit {
    width: 100%;
    min-height: 100%;
    padding: 22px 16px;
    border: 1px solid var(--line);
    border-top: 3px solid var(--sky-500, var(--navy-600));
    border-radius: 16px;
    background: #fff;
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.org-unit__title {
    margin: 9px 0 5px;
    color: var(--navy-800);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.45;
}

.org-unit strong {
    overflow-wrap: anywhere;
}

.org-node__children {
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: column;
    align-items: center;
    gap: 14px;
    margin-top: 28px;
    padding-top: 20px;
}

.org-node__children::before {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: 20px;
    background: var(--line-strong);
    content: "";
}

.org-node__children > .org-node {
    width: 100%;
    flex: none;
}

.org-node__children > .org-node > .org-unit {
    border-top-color: var(--gold, var(--navy-600));
}

.org-chart__empty {
    padding: 20px;
    color: var(--muted);
    text-align: center;
}

@media (max-width: 767.98px) {
    .org-chart__head {
        width: min(100%, 340px);
        padding: 24px 18px;
    }

    .org-tree {
        position: relative;
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
        padding-left: 18px;
    }

    .org-tree::before {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 7px;
        width: 2px;
        background: var(--line-strong);
        content: "";
    }

    .org-tree > .org-node {
        width: 100%;
        flex: none;
    }

    .org-tree > .org-node::before {
        position: absolute;
        top: 28px;
        left: -11px;
        width: 11px;
        height: 2px;
        background: var(--line-strong);
        content: "";
    }

    .org-node__children {
        width: 100%;
    }

    .org-unit {
        padding: 20px 14px;
    }
}


/* Kelompok dokumen OPD dan Kecamatan */
.home-document-groups { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin-bottom:34px; }
.home-document-group { display:flex; min-height:190px; flex-direction:column; align-items:flex-start; padding:24px; border:1px solid var(--line); border-radius:18px; background:#fff; box-shadow:var(--shadow-sm); color:var(--ink); text-decoration:none; transition:transform .2s ease,box-shadow .2s ease; }
.home-document-group:hover { color:var(--ink); box-shadow:var(--shadow); transform:translateY(-3px); }
.home-document-group__icon { display:inline-flex; width:44px; height:44px; align-items:center; justify-content:center; margin-bottom:16px; border-radius:13px; background:var(--sky-100); color:var(--navy-700); }
.home-document-group__name { color:var(--navy-800); font-size:17px; font-weight:700; }
.home-document-group__count,.home-document-group__link { margin-top:6px; color:var(--muted); font-size:12px; }
.home-document-group__link { display:inline-flex; align-items:center; gap:5px; margin-top:auto; padding-top:18px; color:var(--navy-700); font-weight:600; }
.home-document-latest { overflow:hidden; border:1px solid var(--line); border-radius:18px; background:#fff; }
.home-document-latest__head { display:flex; align-items:center; justify-content:space-between; gap:16px; padding:20px 24px; border-bottom:1px solid var(--line); }
.home-document-latest__head h3 { margin:0; color:var(--navy-800); font-size:17px; font-weight:700; }
.home-document-latest__head a { color:var(--navy-700); font-size:12px; font-weight:600; }
.home-document-latest__item { display:flex; align-items:center; gap:14px; padding:16px 24px; border-bottom:1px solid var(--line); color:var(--ink); text-decoration:none; }
.home-document-latest__item:last-child { border-bottom:0; }
.home-document-latest__file { display:inline-flex; width:38px; height:38px; flex:0 0 38px; align-items:center; justify-content:center; border-radius:11px; background:var(--sky-100); color:var(--navy-700); }
.home-document-latest__content { display:flex; min-width:0; flex:1; flex-direction:column; gap:4px; }
.home-document-latest__content strong { overflow:hidden; color:var(--navy-800); font-size:13px; text-overflow:ellipsis; }
.home-document-latest__content small,.home-document-latest__date { color:var(--muted); font-size:11px; }
.home-document-latest__empty { margin:0; padding:22px 24px; color:var(--muted); }
@media (max-width:767.98px) { .home-document-groups { grid-template-columns:1fr; gap:12px; } .home-document-group { min-height:150px; } .home-document-latest__item { padding:14px 16px; } .home-document-latest__date { display:none; } }


/* Admin document category summary */
.admin-document-category {
    display: flex;
    min-height: 132px;
    flex-direction: column;
    justify-content: center;
    gap: 6px;
    padding: 18px;
    border: 1px solid var(--line, #e5e7eb);
    border-radius: 14px;
    background: var(--surface, #fff);
}

.admin-document-category span {
    color: var(--ink-soft, #475569);
    font-size: 13px;
    font-weight: 600;
}

.admin-document-category strong {
    color: var(--navy-800, #17365d);
    font-size: 30px;
    line-height: 1.1;
}

.admin-document-category small {
    color: var(--muted, #64748b);
    font-size: 12px;
}


/* Service detail content placement */
.service-side {
    position: static;
}

.service-side__content {
    width: 100%;
    min-width: 0;
}

.service-side__content .service-detail__meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

@media (max-width: 640px) {
    .service-side__content .service-detail__meta {
        grid-template-columns: 1fr;
    }
}


/* Service detail back link */
.service-back-link {
    display: inline-flex;
    align-items: center;
    gap: 9px;
    margin-bottom: 22px;
    color: var(--navy-700);
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s ease, gap 0.2s ease;
}

.service-back-link:hover {
    gap: 12px;
    color: var(--navy-900);
}

.service-back-link:focus-visible {
    outline: 2px solid var(--navy-600);
    outline-offset: 4px;
    border-radius: 4px;
}

/* ORG-CHART-HIERARCHY-REFERENCE-V1 */
/* Desktop: setiap tingkat anak berjajar dan dihubungkan dengan garis bercabang. */
.org-chart {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.org-tree {
    display: flex;
    width: 100%;
    align-items: flex-start;
    justify-content: center;
    gap: 18px;
}

.org-tree > .org-node {
    min-width: 0;
    flex: 1 1 0;
}

.org-node {
    position: relative;
    display: flex;
    min-width: 0;
    flex-direction: column;
    align-items: stretch;
}

.org-node > .org-unit {
    width: 100%;
    height: 100%;
}

.org-node__children {
    --org-connector-space: 42px;
    position: relative;
    display: flex;
    width: 100%;
    flex-direction: row;
    align-items: flex-start;
    justify-content: center;
    gap: 16px;
    margin-top: var(--org-connector-space);
    padding-top: var(--org-connector-space);
}

.org-node__children::before {
    position: absolute;
    top: calc(-1 * var(--org-connector-space));
    left: 50%;
    width: 2px;
    height: var(--org-connector-space);
    background: var(--line-strong);
    content: "";
    transform: translateX(-50%);
}

.org-node__children::after {
    position: absolute;
    top: 0;
    left: calc(50% / var(--org-child-count, 1));
    right: calc(50% / var(--org-child-count, 1));
    height: 2px;
    background: var(--line-strong);
    content: "";
}

.org-node__children:has(> .org-node:only-child)::after {
    display: none;
}

.org-node__children > .org-node {
    position: relative;
    width: auto;
    min-width: 0;
    flex: 1 1 0;
}

.org-node__children > .org-node::before {
    position: absolute;
    top: calc(-1 * var(--org-connector-space));
    left: 50%;
    width: 2px;
    height: var(--org-connector-space);
    background: var(--line-strong);
    content: "";
    transform: translateX(-50%);
}

.org-node__children > .org-node > .org-unit {
    width: 100%;
    height: 100%;
    border-top-color: var(--gold, var(--navy-600));
}

@media (max-width: 767.98px) {
    .org-tree {
        position: relative;
        flex-direction: column;
        align-items: stretch;
        gap: 22px;
        padding-left: 18px;
    }

    .org-tree::before {
        position: absolute;
        top: 0;
        bottom: 0;
        left: 7px;
        width: 2px;
        background: var(--line-strong);
        content: "";
    }

    .org-tree > .org-node {
        width: 100%;
        flex: none;
    }

    .org-tree > .org-node::before {
        position: absolute;
        top: 28px;
        left: -11px;
        width: 11px;
        height: 2px;
        background: var(--line-strong);
        content: "";
    }

    .org-node__children {
        --org-connector-space: 18px;
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
        margin-top: 18px;
        padding-top: 0;
        padding-left: 18px;
    }

    .org-node__children::before {
        top: calc(-1 * var(--org-connector-space));
        bottom: 0;
        left: 0;
        width: 2px;
        height: auto;
        transform: none;
    }

    .org-node__children::after {
        display: none;
    }

    .org-node__children > .org-node {
        width: 100%;
        flex: none;
    }

    .org-node__children > .org-node::before {
        top: 28px;
        left: -18px;
        width: 18px;
        height: 2px;
        transform: none;
    }
}


/* ORG-CHART-HIERARCHY-REFERENCE-V2 */

/* Cabang utama: Kepala Dinas ke Sekretariat dan Bidang */
.org-tree {
    --org-root-space: 42px;
    position: relative;
    padding-top: var(--org-root-space);
}

.org-tree::before {
    position: absolute;
    top: var(--org-root-space);
    left: calc(50% / var(--org-child-count, 1));
    right: calc(50% / var(--org-child-count, 1));
    height: 2px;
    background: var(--line-strong);
    content: "";
}

.org-tree::after {
    position: absolute;
    top: 0;
    left: 50%;
    width: 2px;
    height: var(--org-root-space);
    background: var(--line-strong);
    content: "";
    transform: translateX(-50%);
}

.org-tree > .org-node::before {
    position: absolute;
    top: calc(-1 * var(--org-root-space));
    left: 50%;
    width: 2px;
    height: var(--org-root-space);
    background: var(--line-strong);
    content: "";
    transform: translateX(-50%);
}

/* Jarak dan garis antarunit bawahan */
.org-node__children {
    margin-top: 0;
    padding-top: var(--org-connector-space, 42px);
}

.org-node__children::before {
    top: 0;
    height: var(--org-connector-space, 42px);
}

.org-node__children::after {
    top: var(--org-connector-space, 42px);
}

.org-node__children > .org-node::before {
    top: calc(-1 * var(--org-connector-space, 42px));
    height: var(--org-connector-space, 42px);
}

/* Satu bawahan: garis lurus tepat di tengah */
.org-node__children:has(> .org-node:only-child)::after {
    display: none;
}

@media (max-width: 767.98px) {
    .org-tree {
        padding-top: 0;
    }

    .org-tree::after {
        display: none;
    }

    .org-tree::before {
        top: 0;
        left: 7px;
        right: auto;
        bottom: 0;
        width: 2px;
        height: auto;
    }

    .org-tree > .org-node::before {
        top: 28px;
        left: -11px;
        width: 11px;
        height: 2px;
        transform: none;
    }

    .org-node__children {
        margin-top: 18px;
        padding-top: 0;
    }

    .org-node__children::before {
        top: -18px;
        height: auto;
        bottom: 0;
    }

    .org-node__children > .org-node::before {
        top: 28px;
        left: -18px;
        width: 18px;
        height: 2px;
        transform: none;
    }
}

/* ORG-CHART-UPLOADED-IMAGE-V1 */
.org-chart-image { width:100%; max-width:1200px; margin:0 auto; overflow:hidden; border:1px solid var(--line, #e5e7eb); border-radius:18px; background:#fff; padding:clamp(10px, 2vw, 24px); }
.org-chart-image__link { display:block; cursor:zoom-in; }
.org-chart-image__img { display:block; width:100%; max-width:100%; height:auto; object-fit:contain; margin:0 auto; }
.org-chart-image__empty { padding:48px 20px; text-align:center; color:var(--muted, #64748b); background:var(--surface, #f8fafc); border:1px dashed var(--line-strong, #cbd5e1); border-radius:12px; }
