/*
 * Sistem Desain Khas Portal Resmi Pemerintah Kabupaten Barito Utara
 * Menggabungkan tipografi editorial berwibawa dengan aksen geometris Talawang & warna Lambang Daerah.
 */

/* ===== Fondasi & Tipografi Editorial ===== */
html {
    direction: ltr;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

body {
    background-color: var(--light);
    color: var(--default);
    font-family: var(--font-sans);
    font-size: 15px;
    line-height: 1.7;
    margin: 0;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
    color: var(--dark);
    font-family: var(--font-sans);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.25;
}

/* Sentuhan serif editorial yang seragam pada seluruh judul section & angka statistik */
.page-header h1,
.heading-middle-border h2,
.main h2.text-7,
.main h2.text-6,
.pemkab-vm-judul,
.pemkab-info-judul,
.pemkab-semboyan-utama h2,
.word-rotator {
    font-family: var(--font-display);
    letter-spacing: -0.02em;
}

/* Seragamkan gaya judul section (Beranda, Berita, Galeri, Profil, Infografis) */
.main h2.text-7,
.main h2.text-6,
.pemkab-vm-judul,
.pemkab-info-judul {
    position: relative;
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.4rem;
    width: fit-content;
    max-width: 100%;
    font-weight: 700 !important;
    color: var(--dark);
    padding-bottom: 0.55rem;
}

.main h2.text-7 strong,
.main h2.text-6 strong {
    font-weight: 800 !important;
    color: var(--primary);
}

.main h2.text-7 > i,
.main h2.text-6 > i {
    color: var(--primary);
    font-size: 0.9em;
}

/* Pita aksen modern dua warna (Hijau & Kuning) sepanjang lebar teks judul */
.main h2.text-7::after,
.main h2.text-6::after,
.pemkab-vm-judul::after,
.pemkab-info-judul::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--tertiary) 100%);
    border-radius: 999px;
}

a {
    color: var(--primary);
    transition: color 0.2s ease, background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

a:hover {
    color: var(--primary-200);
}

.main {
    position: relative;
}

/* ===== Utilitas Tipografi & Warna ===== */
.text-1 { font-size: 0.75rem !important; }
.text-2 { font-size: 0.85rem !important; }
.text-3 { font-size: 0.95rem !important; }
.text-4 { font-size: 1.05rem !important; }
.text-4-5 { font-size: 1.15rem !important; }
.text-5 { font-size: 1.25rem !important; }
.text-6 { font-size: 1.5rem !important; }
.text-7 { font-size: 1.75rem !important; }
.text-8 { font-size: 2.15rem !important; }
.text-9 { font-size: clamp(1.8rem, 3.3vw, 2.75rem) !important; }
.text-10 { font-size: clamp(1.95rem, 3.7vw, 3.1rem) !important; }

.font-weight-light { font-weight: 300 !important; }
.font-weight-normal { font-weight: 400 !important; }
.font-weight-medium { font-weight: 500 !important; }
.font-weight-semibold, .font-weight-semi-bold { font-weight: 600 !important; }
.font-weight-bold { font-weight: 700 !important; }
.font-weight-extra-bold { font-weight: 800 !important; }

.line-height-2 { line-height: 1.18 !important; }
.line-height-4 { line-height: 1.4 !important; }
.line-height-5 { line-height: 1.5 !important; }

.text-color-primary { color: var(--primary) !important; }
.text-color-dark { color: var(--dark) !important; }
.text-color-light { color: #ffffff !important; }
.bg-primary { background-color: var(--primary) !important; }
.bg-color-light { background-color: #ffffff !important; }
.bg-color-grey { background-color: var(--grey-100) !important; }

.opacity-8 { opacity: 0.9 !important; }
.ws-nowrap { white-space: nowrap !important; }
.z-index-3 { z-index: 3 !important; }
.border-radius-0 { border-radius: var(--border-radius) !important; }
.transition-3ms { transition: all 0.22s ease !important; }

.box-shadow-1 {
    box-shadow: var(--pemkab-shadow-sm);
    border: 1px solid var(--grey-200) !important;
}
.box-shadow-1-hover:hover {
    box-shadow: var(--pemkab-shadow-md);
    border-color: var(--primary-rgba-40) !important;
    transform: translateY(-3px);
}

/* ===== Tombol Modern ===== */
.btn {
    font-weight: 600;
    border-radius: var(--border-radius);
    letter-spacing: 0.01em;
    transition: all 0.2s ease;
}

.btn-primary {
    background-color: var(--primary);
    border: 1.5px solid var(--primary);
    color: #fff;
    box-shadow: 0 4px 14px var(--primary-rgba-30);
}

.btn-primary:hover, .btn-primary:focus-visible {
    background-color: var(--primary-100);
    border-color: var(--primary-100);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 20px var(--primary-rgba-30);
}

.btn-outline.btn-primary {
    background-color: transparent;
    border: 1.5px solid var(--primary);
    color: var(--primary);
    box-shadow: none;
}

.btn-outline.btn-primary:hover, .btn-outline.btn-primary:focus-visible {
    background-color: var(--primary);
    color: #fff;
    box-shadow: 0 6px 16px var(--primary-rgba-20);
}

.btn-dark {
    background-color: var(--dark);
    border: 1.5px solid var(--dark);
    color: #fff;
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.16);
}

.btn-dark:hover, .btn-dark:focus-visible {
    background-color: var(--dark-100);
    border-color: var(--dark-100);
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 18px rgba(15, 23, 42, 0.22);
}

.btn-modern {
    padding: 0.65rem 1.5rem;
}

/* ===== Header & Navigasi ===== */
#header {
    position: sticky;
    top: 0;
    z-index: 1030;
    width: 100%;
}

#header .header-body {
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--grey-200);
    width: 100%;
    transition: box-shadow 0.25s ease, background-color 0.25s ease;
}

#header .header-container {
    position: relative;
    display: flex;
    align-items: center;
}

#header .header-row {
    display: flex;
    flex-grow: 1;
    align-items: center;
    justify-content: space-between;
}

#header .header-column {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

#header .header-column.justify-content-end {
    align-items: flex-end;
}

#header .header-nav-top {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--grey-700);
    letter-spacing: 0.02em;
}

#header .header-nav-top .nav-item {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.15rem 0.6rem;
    background: var(--grey-100);
    border: 1px solid var(--grey-200);
    border-radius: 3px;
}

#header .header-nav-top i {
    color: var(--primary);
}

#header .header-nav {
    display: flex;
    align-items: center;
    gap: 0.35rem;
}

#header .header-nav-main nav > ul {
    display: flex;
    align-items: center;
    gap: 0.15rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

#header .header-nav-main nav > ul > li {
    position: relative;
}

#header .header-nav-main nav > ul > li.dropdown-mega {
    position: static;
}

#header .header-nav-main nav > ul > li > a {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.55rem 0.95rem;
    font-size: 0.92rem;
    font-weight: 600;
    color: var(--dark);
    background: transparent;
    text-decoration: none;
    border-radius: 8px;
    position: relative;
    width: auto;
}

#header .header-nav-main nav > ul > li > a:hover,
#header .header-nav-main nav > ul > li > a:focus-visible,
#header .header-nav-main nav > ul > li.dropdown:hover > a {
    color: var(--primary);
    background: var(--primary-rgba-10);
}

#header .header-nav-main nav > ul > li > a.active {
    color: var(--primary);
    background: var(--primary-rgba-10);
    font-weight: 700;
}

#header .header-nav-main nav > ul > li.dropdown > a.dropdown-toggle::after {
    margin-left: 0.25rem;
    vertical-align: middle;
}

/* Pencarian di Header */
.header-nav-features {
    position: relative;
    display: inline-flex;
    align-items: center;
    margin-left: 0.45rem;
    padding-left: 0.7rem;
    border-left: 1.5px solid var(--grey-300);
}

.header-nav-features-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: var(--border-radius);
    border: 1px solid var(--grey-200);
    color: var(--dark);
    background: var(--light-100);
}

.header-nav-features-toggle:hover,
.header-nav-features-toggle[aria-expanded="true"] {
    color: #fff;
    background-color: var(--primary);
    border-color: var(--primary);
}

.header-nav-features-dropdown {
    position: absolute;
    top: calc(100% + 12px);
    right: 0;
    width: min(330px, 88vw);
    padding: 0.85rem;
    background: #fff;
    border: 2px solid var(--primary);
    border-top: 4px solid var(--tertiary);
    border-radius: var(--border-radius);
    box-shadow: var(--pemkab-shadow-lg);
    display: none;
    z-index: 1050;
}

.header-nav-features-dropdown.show {
    display: block;
}

.header-nav-features-dropdown .simple-search .form-control {
    border-color: var(--grey-300);
    border-radius: var(--border-radius) 0 0 var(--border-radius);
    font-size: 0.9rem;
    background: var(--light);
}

.header-nav-features-dropdown .simple-search .form-control:focus {
    border-color: var(--primary);
    box-shadow: none;
}

.header-nav-features-dropdown .simple-search .btn {
    background: var(--primary);
    color: #fff;
    border-radius: 0 var(--border-radius) var(--border-radius) 0;
    padding-inline: 0.95rem;
    box-shadow: none;
}

/* Tombol Menu Mobile */
.header-btn-collapse-nav {
    display: none;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    padding: 0;
    border: 1.5px solid var(--dark);
    border-radius: var(--border-radius);
    background: #fff;
    color: var(--dark);
    font-size: 1.05rem;
    margin-left: 0.4rem;
}

.header-btn-collapse-nav:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
}

/* Mega Menu Desktop & Mobile */
@media (min-width: 992px) {
    #header .header-nav-main,
    #header .header-nav-main nav.collapse,
    #header .header-nav-main nav > ul,
    #header .header-nav-main nav > ul > li {
        display: flex !important;
        align-items: center;
        align-self: stretch;
    }

    /* Jembatan kursor tak kasatmata agar perpindahan mouse dari tombol Profil ke panel mega-menu tidak terputus */
    #header .header-nav-main nav > ul > li.dropdown:hover > a::before {
        content: "";
        position: absolute;
        left: -12px;
        right: -12px;
        top: 100%;
        height: 48px;
        z-index: 1046;
    }

    #header .header-nav-main nav > ul > li.dropdown > .dropdown-menu {
        position: absolute;
        top: 100%;
        margin-top: 0;
        list-style: none;
        border-top: 3px solid var(--tertiary);
        border-bottom: 4px solid var(--tertiary);
        box-shadow: var(--pemkab-shadow-lg);
        z-index: 1045;
    }

    #header .header-nav-main nav > ul > li.dropdown:hover > .dropdown-menu,
    #header .header-nav-main nav > ul > li.dropdown:focus-within > .dropdown-menu,
    #header .header-nav-main nav > ul > li.dropdown.show > .dropdown-menu {
        display: block;
    }
}

@media (max-width: 991.98px) {
    .header-btn-collapse-nav {
        display: inline-flex;
    }

    #header .header-nav-top {
        display: none;
    }

    #header .header-container {
        padding-top: 0.5rem;
        padding-bottom: 0.5rem;
    }

    #header .header-nav-main nav.collapse:not(.show) {
        display: none !important;
    }

    #header .header-nav-main nav.collapse.show,
    #header .header-nav-main nav.collapsing {
        display: block !important;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--light);
        border-top: 3px solid var(--tertiary);
        border-bottom: 3px solid var(--primary);
        box-shadow: var(--pemkab-shadow-lg);
        padding: 0.65rem 1rem 1rem;
        max-height: 80vh;
        overflow-y: auto;
        z-index: 1040;
    }

    #header .header-nav-main nav > ul {
        display: flex;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
    }

    #header .header-nav-main nav > ul > li {
        display: block;
        width: 100%;
    }

    #header .header-nav-main nav > ul > li > a {
        display: flex;
        width: 100%;
        justify-content: space-between;
        align-items: center;
        padding: 0.75rem 0.5rem;
        border-bottom: 1px solid var(--grey-200);
    }

    #header .header-nav-main nav > ul > li:last-child > a {
        border-bottom: 0;
    }

    #header .header-nav-main nav > ul > li.pemkab-mega > .dropdown-menu {
        position: static !important;
        width: 100% !important;
        margin: 0.35rem 0 0.5rem;
        border-radius: var(--border-radius);
        border-top: 2px solid var(--tertiary);
        overflow: hidden;
        display: none;
    }

    #header .header-nav-main nav > ul > li.pemkab-mega.open > .dropdown-menu {
        display: block;
    }

    .header-nav-features {
        margin-left: 0.25rem;
        padding-left: 0.45rem;
    }

    .header-nav-features-dropdown {
        position: fixed;
        top: 64px;
        left: 0.75rem;
        right: 0.75rem;
        width: auto;
    }
}

/* ===== Hero & Overlay & Owl Carousel ===== */
.overlay-show {
    position: relative;
}

.overlay-show::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(circle at 50% 30%, var(--primary-rgba-30), transparent 65%),
        linear-gradient(180deg, rgba(10, 22, 14, 0.52) 0%, rgba(10, 22, 14, 0.86) 100%);
    z-index: 1;
}

/* Bingkai Aksen Emas pada Teks Hero */
.owl-carousel-light h2,
.pemkab-hero h2,
.pemkab-hero-judul {
    font-family: var(--font-display);
    text-shadow: 0 2px 18px rgba(0, 0, 0, 0.45);
}

.owl-carousel-light h3,
.pemkab-hero h3,
.pemkab-hero-label {
    display: inline-block;
    padding: 0.3rem 0.9rem !important;
    background: rgba(16, 28, 20, 0.72);
    border-left: 3px solid var(--tertiary);
    border-right: 3px solid var(--tertiary);
    letter-spacing: 0.12em;
    font-size: 0.82rem !important;
    text-transform: uppercase;
}

.owl-carousel-light .owl-stage-outer,
.owl-carousel-light .owl-stage,
.owl-carousel-light .owl-item,
.owl-carousel-light .pemkab-hero-slide {
    height: 100%;
}

.owl-carousel-light .owl-item {
    min-height: 480px;
}

.owl-carousel-light .pemkab-hero-slide {
    display: flex;
    align-items: center;
    width: 100%;
    min-height: 480px;
}

/* Navigasi Panah Modern */
.owl-carousel .owl-nav button.owl-prev,
.owl-carousel .owl-nav button.owl-next {
    width: 44px;
    height: 44px;
    border-radius: 50% !important;
    background: rgba(15, 23, 42, 0.55) !important;
    backdrop-filter: blur(6px);
    border: 1px solid rgba(255, 255, 255, 0.25) !important;
    color: #fff !important;
    display: inline-flex !important;
    align-items: center;
    justify-content: center;
    transition: background-color 0.2s ease, transform 0.2s ease;
    position: relative;
}

.owl-carousel .owl-nav button.owl-prev:hover,
.owl-carousel .owl-nav button.owl-next:hover {
    background: var(--primary) !important;
    border-color: #fff !important;
}

.owl-carousel .owl-nav button.owl-prev span,
.owl-carousel .owl-nav button.owl-next span {
    display: none;
}

.owl-carousel .owl-nav button.owl-prev::before,
.owl-carousel .owl-nav button.owl-next::before {
    font-family: "Font Awesome 6 Free", "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 0.95rem;
    line-height: 1;
}

.owl-carousel .owl-nav button.owl-prev::before { content: "\f053"; }
.owl-carousel .owl-nav button.owl-next::before { content: "\f054"; }

.nav-inside .owl-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding-inline: 1.25rem;
    pointer-events: none;
    margin-top: 0;
}

.nav-inside .owl-nav button {
    pointer-events: auto;
}

.dots-inside .owl-dots {
    position: absolute;
    bottom: 1.35rem;
    left: 0;
    right: 0;
    z-index: 5;
}

.owl-theme .owl-dots .owl-dot span {
    width: 8px;
    height: 8px;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.45);
    transition: all 0.25s ease;
}

.owl-theme .owl-dots .owl-dot.active span,
.owl-theme .owl-dots .owl-dot:hover span {
    background: var(--tertiary--100);
    width: 24px;
    height: 8px;
}

.pemkab-berita-carousel .owl-nav {
    margin-top: 1.25rem;
    display: flex;
    justify-content: center;
    gap: 0.5rem;
}

/* ===== Maklumat / Pita Sambutan Portal (.home-intro) ===== */
.home-intro {
    position: relative;
    background-color: var(--primary-200) !important;
    background-image: var(--motif-talawang), linear-gradient(135deg, var(--primary-300) 0%, var(--primary) 100%) !important;
    color: #fff;
    padding: 2.1rem 0;
    border-top: 3px solid var(--tertiary);
    border-bottom: 4px solid var(--tertiary);
    margin-bottom: 3rem;
}

.home-intro p {
    margin: 0;
    padding-left: 1.15rem;
    border-left: 4px solid var(--tertiary);
    font-size: 1.18rem;
    font-weight: 600;
    line-height: 1.45;
    color: #fff;
}

.home-intro p .highlighted-word {
    font-family: var(--font-display);
    color: var(--tertiary--200);
    font-weight: 700;
    text-decoration: underline;
    text-decoration-color: var(--tertiary-rgba-50);
    text-underline-offset: 4px;
}

.home-intro p > span:last-child {
    display: block;
    margin-top: 0.3rem;
    font-size: 0.92rem;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.88);
}

.home-intro .get-started .btn {
    border-radius: var(--border-radius);
    font-size: 0.92rem !important;
    padding: 0.7rem 1.45rem !important;
    background: var(--tertiary);
    border-color: var(--tertiary);
    color: var(--dark);
    box-shadow: 4px 4px 0 rgba(0, 0, 0, 0.35);
}

.home-intro .get-started .btn:hover {
    background: var(--tertiary--100);
    color: var(--dark);
}

.home-intro .get-started .learn-more {
    margin-top: 0.55rem;
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.88);
}

.home-intro .get-started .learn-more a {
    color: var(--tertiary--200);
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 3px;
}

/* ===== Word Rotator ===== */
.word-rotator-words {
    display: inline-block;
    position: relative;
    text-align: left;
    padding: 0.04em 0.45em;
    border-radius: var(--border-radius);
    border-bottom: 3px solid var(--tertiary);
    color: #fff;
    vertical-align: bottom;
    overflow: hidden;
    transition: width 0.35s ease;
}

.word-rotator-words b {
    display: inline-block;
    position: absolute;
    left: 0.45em;
    top: 0.04em;
    white-space: nowrap;
    opacity: 0;
    transform: translateY(35%);
    transition: opacity 0.35s ease, transform 0.35s ease;
}

.word-rotator-words b.is-visible {
    position: relative;
    left: 0;
    top: 0;
    opacity: 1;
    transform: translateY(0);
}

/* ===== Heading Section dengan Garis Pembatas ===== */
.heading-middle-border {
    position: relative;
    margin-bottom: 1.75rem;
}

.heading-middle-border h2 {
    margin: 0;
}

/* ===== Kartu Loket Layanan Informasi (.feature-box) ===== */
.feature-box.feature-box-style-2 {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    height: 100%;
    padding: 1.4rem 1.35rem;
    background: #fff;
    border: 1px solid var(--grey-200);
    border-radius: var(--border-radius2x);
    box-shadow: var(--pemkab-shadow-sm);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

a:hover .feature-box.feature-box-style-2,
a:focus-visible .feature-box.feature-box-style-2 {
    transform: translateY(-4px);
    box-shadow: var(--pemkab-shadow-md);
    border-color: var(--primary-rgba-40);
}

.feature-box-icon {
    flex: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    border-radius: var(--border-radius);
    background: var(--light-100);
    border: 1.5px solid var(--primary-rgba-30);
    font-size: 1.35rem;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

a:hover .feature-box-icon {
    background: var(--primary);
    border-color: var(--tertiary);
}

a:hover .feature-box-icon i {
    color: #fff !important;
}

.feature-box-info h4 {
    font-family: var(--font-display);
    color: var(--dark);
    margin-bottom: 0.35rem;
}

.feature-box-info p {
    color: var(--grey-800);
    font-size: 0.9rem;
    line-height: 1.55;
    margin-bottom: 0 !important;
}

/* ===== Section Band Bawah ===== */
.section.section-default {
    background: var(--grey-100);
    padding: 3.5rem 0;
    border-top: 2px solid var(--grey-200);
}

/* ===== Page Header Halaman Dalam ===== */
.page-header.page-header-modern {
    background: linear-gradient(135deg, color-mix(in srgb, var(--primary) 7%, #fff) 0%, var(--light-100) 100%);
    border-top: 1px solid var(--grey-200);
    border-bottom: 1px solid var(--grey-200);
    padding: 2.5rem 0 2.15rem;
    margin-bottom: 2.5rem;
    position: relative;
}

.page-header .breadcrumb {
    display: flex !important;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 0.45rem;
    margin-bottom: 0.65rem;
    padding: 0;
    list-style: none;
    font-size: 0.82rem;
    letter-spacing: 0.02em;
    color: var(--grey-700);
}

.page-header .breadcrumb li + li::before {
    content: "/";
    margin-right: 0.45rem;
    color: var(--grey-500);
}

.page-header .breadcrumb li a {
    color: var(--primary);
    text-decoration: none;
    font-weight: 700;
}

.page-header .breadcrumb li a:hover {
    text-decoration: underline;
}

.page-header .breadcrumb li.active {
    color: var(--dark);
    font-weight: 700;
}

.page-header .sub-title {
    display: block;
    margin-top: 0.45rem;
    font-size: 1rem;
    color: var(--grey-800) !important;
}

/* ===== Process Timeline (Sejarah Kepemimpinan) ===== */
.process .process-step {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.process .process-step-circle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 90px;
    height: 90px;
    border-radius: var(--border-radius);
    border: 2px solid var(--grey-400);
    background: #fff;
    margin-bottom: 1rem;
    position: relative;
    box-shadow: 3px 3px 0 var(--primary-rgba-10);
}

.process.process-shapes .process-step-circle {
    width: auto;
    min-width: 76px;
    height: 44px;
    padding: 0 0.95rem;
    border-radius: var(--border-radius);
}

.process .process-step-circle-content {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--dark);
}

/* ===== Footer Modern ===== */
#footer {
    background: linear-gradient(180deg, #0b1912 0%, #07110c 100%);
    color: #cbd5e1;
    position: relative;
    border-top: 3px solid var(--primary);
    font-size: 0.92rem;
}

#footer h5,
#footer .pemkab-footer-judul {
    display: inline-block;
    width: fit-content;
    max-width: 100%;
    font-family: var(--font-display);
    color: var(--tertiary--200);
    font-weight: 700;
    letter-spacing: 0.04em;
    font-size: 0.95rem !important;
    padding-bottom: 0.4rem;
    border-bottom: 2px solid var(--tertiary-rgba-50);
}

#footer a {
    color: #d5ddd7;
    text-decoration: none;
}

#footer a:hover {
    color: var(--tertiary--200);
}

#footer .footer-ribbon {
    display: inline-block;
    background: var(--primary);
    border: 1px solid var(--tertiary);
    border-top: 0;
    color: #fff;
    font-size: 0.76rem;
    font-weight: 800;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    padding: 0.45rem 1.15rem;
    border-radius: 0 0 var(--border-radius) var(--border-radius);
    box-shadow: 3px 3px 0 rgba(0, 0, 0, 0.35);
}

#footer .list-icons {
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .list-icons li {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    margin-bottom: 0.65rem !important;
}

#footer .list-icons li i {
    margin-top: 0.25rem;
    color: var(--tertiary--100) !important;
}

#footer .social-icons {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    list-style: none;
    padding: 0;
    margin: 0;
}

#footer .social-icons li a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.08);
    color: #fff;
    border: 1px solid rgba(255, 255, 255, 0.14);
    transition: background-color 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

#footer .social-icons li a:hover {
    background: var(--primary);
    border-color: var(--primary);
    color: #fff;
    transform: translateY(-2px);
}

#footer .footer-copyright {
    background: #07100b;
    border-top: 1px solid var(--tertiary-rgba-20);
    color: #9bab9f;
    font-size: 0.85rem;
}

#footer .footer-copyright p {
    margin: 0;
}

/* ===== Animasi Kemunculan ===== */
.appear-animation {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 0.55s ease, transform 0.55s ease;
}

.appear-animation.appear-animation-visible {
    opacity: 1;
    transform: none;
}

@media (prefers-reduced-motion: reduce) {
    .appear-animation {
        opacity: 1;
        transform: none;
        transition: none;
    }
}

/* ===== Tombol Kembali ke Atas ===== */
.pemkab-ke-atas {
    position: fixed;
    right: 1.25rem;
    bottom: 1.25rem;
    z-index: 1020;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    background: var(--dark);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--pemkab-shadow-md);
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: opacity 0.25s ease, visibility 0.25s ease, transform 0.25s ease, background-color 0.2s ease;
    cursor: pointer;
}

.pemkab-ke-atas.tampil {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.pemkab-ke-atas:hover {
    background: var(--primary);
    color: #fff;
}

@media (max-width: 767.98px) {
    .pemkab-ke-atas {
        left: 0.75rem;
        right: auto;
        bottom: 0.85rem;
        width: 36px;
        height: 36px;
    }

    /* Penyesuaian skala tipografi & komponen di layar ponsel */
    .text-6 { font-size: 1.25rem !important; }
    .text-7 { font-size: 1.4rem !important; }
    .text-8 { font-size: 1.55rem !important; }
    .text-9 { font-size: 1.45rem !important; }
    .text-10 { font-size: 1.6rem !important; }

    /* Hero di ponsel: sembunyikan tombol panah samping agar tidak menutupi teks, cukup geser & dots */
    .owl-carousel-light .nav-inside .owl-nav,
    .owl-carousel-light.nav-inside .owl-nav {
        display: none !important;
    }

    .owl-carousel-light h2,
    .pemkab-hero h2,
    .pemkab-hero-judul {
        line-height: 1.28 !important;
        margin-bottom: 0.65rem !important;
    }

    .owl-carousel-light p,
    .pemkab-hero p {
        font-size: 0.92rem !important;
        line-height: 1.5 !important;
        display: -webkit-box;
        -webkit-line-clamp: 3;
        -webkit-box-orient: vertical;
        overflow: hidden;
        margin-bottom: 1rem !important;
    }

    .owl-carousel-light .btn-lg,
    .pemkab-hero .btn-lg {
        padding: 0.55rem 1.25rem !important;
        font-size: 0.9rem !important;
    }

    .home-intro {
        padding: 1.5rem 0;
        margin-bottom: 2rem;
    }

    .home-intro p {
        font-size: 1.02rem;
        padding-left: 0.85rem;
    }

    .home-intro .get-started {
        margin-top: 1.15rem;
    }

    .page-header.page-header-modern {
        padding: 1.75rem 0 1.5rem;
        margin-bottom: 1.75rem;
    }

    .section.section-default {
        padding: 2.25rem 0;
    }

    #footer .footer-copyright {
        padding-bottom: 3.25rem;
    }
}

@media (min-width: 768px) and (max-width: 991.98px) {
    .home-intro .get-started {
        margin-top: 1.15rem;
    }
}

@media print {
    .pemkab-ke-atas,
    .pemkab-loader { display: none !important; }
}

/* ===== Page Loader (Pemkab Barito Utara - GASPOL 11-12) ===== */
.pemkab-loader {
    position: fixed;
    inset: 0;
    z-index: 9999;
    display: grid;
    place-items: center;
    padding: 1.5rem;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    transition: opacity 0.35s ease, visibility 0.35s ease;
}

.pemkab-loader.selesai {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.pemkab-loader-kotak {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.75rem;
}

.pemkab-loader-logo {
    width: 64px;
    height: auto;
    filter: drop-shadow(0 8px 18px var(--primary-rgba-20));
    animation: pemkab-loader-apung 1.8s ease-in-out infinite;
}

.pemkab-loader-nama {
    line-height: 1.2;
}

.pemkab-loader-nama small {
    display: block;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--grey-600);
}

.pemkab-loader-nama strong {
    display: block;
    font-family: var(--font-display);
    font-size: 1.35rem;
    font-weight: 800;
    letter-spacing: -0.015em;
    color: var(--dark);
}

.pemkab-loader-gaspol {
    margin-top: 0.25rem;
    font-family: var(--font-display);
    font-size: 1.15rem;
    font-weight: 800;
    letter-spacing: 0.14em;
    background: linear-gradient(90deg, var(--primary) 0%, var(--tertiary-100) 50%, var(--primary) 100%);
    background-size: 200% auto;
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
    animation: pemkab-loader-kilau 1.4s linear infinite;
}

.pemkab-loader-bar {
    width: 148px;
    height: 4px;
    border-radius: 999px;
    background: var(--grey-200);
    overflow: hidden;
}

.pemkab-loader-bar span {
    display: block;
    width: 45%;
    height: 100%;
    border-radius: 999px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--tertiary) 100%);
    animation: pemkab-loader-geser 1.1s ease-in-out infinite;
}

@keyframes pemkab-loader-apung {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-4px); }
}

@keyframes pemkab-loader-kilau {
    0% { background-position: 0% center; }
    100% { background-position: 200% center; }
}

@keyframes pemkab-loader-geser {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(260%); }
}

@media (prefers-reduced-motion: reduce) {
    .pemkab-loader { transition: none; }
    .pemkab-loader-logo,
    .pemkab-loader-gaspol,
    .pemkab-loader-bar span { animation: none; }
}

/* Teks bergaya judul tetapi bukan heading (mis. slide hero, judul menu): menjaga hierarki H1-H6 halaman tetap runtut */
:where(.pemkab-heading) { color: var(--dark); font-family: var(--font-sans); font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; margin-top: 0; margin-bottom: .5rem; }

/* Navigasi tautan situs di footer (tautan internal ke seluruh bagian situs) */
.pemkab-footer-nav { display: flex; flex-wrap: wrap; justify-content: center; gap: .35rem 1.25rem; padding: 1.1rem 0 .1rem; border-bottom: 1px solid rgba(255, 255, 255, .12); font-size: .85rem; }
.pemkab-footer-nav a { color: #d5ddd7; }
.pemkab-footer-nav a:hover, .pemkab-footer-nav a:focus-visible { color: var(--tertiary--200); text-decoration: underline; }
