:root,
[data-theme="green"] {
    --primary: #08783e;
    --primary-dark: #055c30;
    --primary-hover: #066b37;
    --primary-light: #e9f7ef;
    --primary-rgb: 8, 120, 62;
    --secondary: #f3b419;
    --secondary-dark: #d99c0d;
    --dark: #172126;
    --muted: #667085;
    --border: #e5e7eb;
    --body-bg: #ffffff;
    --body-color: #263238;
}

[data-theme="blue"] {
    --primary: #0d6efd;
    --primary-dark: #084298;
    --primary-hover: #0b5ed7;
    --primary-light: #e7f1ff;
    --primary-rgb: 13, 110, 253;
    --secondary: #ffc107;
    --secondary-dark: #d9a406;
}

[data-theme="navy"] {
    --primary: #164e63;
    --primary-dark: #0c3543;
    --primary-hover: #123f50;
    --primary-light: #ecfeff;
    --primary-rgb: 22, 78, 99;
    --secondary: #f59e0b;
    --secondary-dark: #d97706;
}

[data-theme="maroon"] {
    --primary: #8b1e3f;
    --primary-dark: #65152e;
    --primary-hover: #781a37;
    --primary-light: #fdf2f5;
    --primary-rgb: 139, 30, 63;
    --secondary: #d4a017;
    --secondary-dark: #b58913;
}

body {
    font-family: 'Plus Jakarta Sans', sans-serif;
    background: #fff;
    color: #263238;
}

/* =========================
   PAGE LOADER
========================= */
.page-loader {
    position: fixed;
    inset: 0;
    z-index: 99999;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, .97);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    opacity: 1;
    visibility: visible;
    transition: opacity .35s ease, visibility .35s ease;
}

.page-loader.hide {
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
}

.page-loader-content {
    width: 280px;
    text-align: center;
}

.loader-logo {
    position: relative;
    width: 90px;
    height: 90px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.loader-logo img {
    position: relative;
    z-index: 2;
    width: 54px;
    height: 54px;
    object-fit: contain;
}

.loader-ring {
    position: absolute;
    inset: 0;
    border: 3px solid rgba(var(--primary-rgb), .12);
    border-top-color: var(--primary);
    border-right-color: var(--primary);
    border-radius: 50%;
    animation: loader-spin .85s linear infinite;
}

.loader-ring::before {
    content: '';
    position: absolute;
    inset: 7px;
    border: 1px solid rgba(var(--primary-rgb), .12);
    border-radius: 50%;
}

.loader-title {
    color: var(--dark);
    font-size: 15px;
    font-weight: 700;
    margin-bottom: 5px;
}

.loader-text {
    color: var(--muted);
    font-size: 12px;
    margin-bottom: 16px;
}

.loader-progress {
    width: 150px;
    height: 3px;
    margin: auto;
    background: var(--primary-light);
    border-radius: 10px;
    overflow: hidden;
}

.loader-progress span {
    display: block;
    width: 40%;
    height: 100%;
    background: var(--primary);
    border-radius: 10px;
    animation: loader-progress 1.2s ease-in-out infinite;
}

@keyframes loader-spin {
    to {
        transform: rotate(360deg);
    }
}

@keyframes loader-progress {
    0% {
        transform: translateX(-120%);
    }

    50% {
        transform: translateX(100%);
    }

    100% {
        transform: translateX(300%);
    }
}

@media (max-width: 576px) {
    .loader-logo {
        width: 78px;
        height: 78px;
    }

    .loader-logo img {
        width: 46px;
        height: 46px;
    }

    .loader-title {
        font-size: 14px;
    }
}

@media (prefers-reduced-motion: reduce) {

    .loader-ring,
    .loader-progress span {
        animation-duration: 2s;
    }
}

a {
    text-decoration: none;
}

.topbar {
    background: var(--primary-dark);
    color: #fff;
    font-size: 13px;
}

.topbar a {
    color: #fff;
    opacity: .9;
}

.topbar a:hover {
    opacity: 1;
}

.brand-header {
    background: #fff;
}

.brand-logo {
    width: 58px;
    height: 58px;
    object-fit: contain;
}

.brand-title {
    font-weight: 800;
    color: var(--primary-dark);
    margin: 0;
    font-size: 20px;
}

.brand-subtitle {
    color: var(--muted);
    margin: 0;
    font-size: 13px;
}

.main-navbar {
    background: var(--primary);
    box-shadow: 0 3px 12px rgba(0, 0, 0, .08);
}

.main-navbar .nav-link {
    color: var(--primary-light);
}

.main-navbar .navbar-nav .nav-link:hover,
.main-navbar .navbar-nav .nav-link.active {
    background: rgba(255, 255, 255, 0.12);
    color: var(--primary-light);
}

.main-navbar .nav-item {
    padding: 0 5px 0 5px;
}

.main-navbar .dropdown-menu {
    border: 0;
    border-radius: 10px;
    box-shadow: 0 12px 35px rgba(0, 0, 0, .12);
    padding: 8px;
    min-width: 260px;
}

.main-navbar .dropdown-item {
    font-size: 14px;
    padding: 9px 12px;
    border-radius: 7px;
}

.main-navbar .dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.dropdown-item:hover {
    background: var(--primary-light);
    color: var(--primary-dark);
}

.navbar-search {
    position: relative;
    width: 250px;
}

.navbar-search input {
    height: 39px;
    border: 0;
    border-radius: 30px;
    padding: 8px 42px 8px 16px;
    font-size: 13px;
    background: rgba(255, 255, 255, .95);
}

.navbar-search input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, .2);
}

.navbar-search button {
    position: absolute;
    right: 3px;
    top: 3px;
    width: 33px;
    height: 33px;
    border: 0;
    border-radius: 50%;
    background: transparent;
    color: var(--primary);
}

.btn-login {
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    padding: 8px 13px;
}

.btn-login-publik {
    background: #fff;
    color: var(--primary);
    border: 1px solid #fff;
}

.btn-login-asn {
    background: var(--secondary);
    color: #252525;
    border: 1px solid var(--secondary);
}

/* =========================
    CARD
========================= */

.card {
    --bs-card-border-color: var(--border) !important;
    --bs-card-border-radius: 14px !important;
    background: #fff !important;
    border: 1px solid var(--border) !important;
    border-radius: 14px !important;
    box-shadow: 0 2px 8px rgba(16, 24, 40, .04) !important;
    transition: all .25s ease !important;
}

.card:hover {
    box-shadow: 0 10px 30px rgba(16, 24, 40, .09) !important;
}

.card-header {
    background: var(--body-bg) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 18px 20px !important;
    border-radius: 14px 14px 0 0 !important;
}

.card-header h5,
.card-header h6 {
    margin: 0;
    color: var(--dark);
    font-weight: 700;
}

.card-body {
    padding: 20px;
}

.card-footer {
    background: #fff;
    border-top: 1px solid var(--border);
    padding: 15px 20px;
    border-radius: 0 0 14px 14px !important;
}

.card-title {
    color: var(--dark);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.5;
    margin-bottom: 8px;
}

.card-text {
    color: var(--muted);
    font-size: 14px;
    line-height: 1.7;
}

.card-img-top {
    border-radius: 14px 14px 0 0;
    object-fit: cover;
}

/* Card tanpa efek hover */
.card-static:hover {
    box-shadow: 0 2px 8px rgba(16, 24, 40, .04);
}

/* Card interaktif */
.card-hover {
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.card-hover:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), .25);
    box-shadow: 0 14px 35px rgba(16, 24, 40, .10);
}

/* Card dengan garis warna theme */
.card-accent {
    border-top: 3px solid var(--primary);
}

/* Card header warna primary */
.card-header-primary {
    background: var(--primary);
    color: #fff;
    border-bottom: 0;
}

.card-header-primary h5,
.card-header-primary h6 {
    color: #fff;
}

/* Card background lembut */
.card-soft {
    background: var(--primary-light);
    border-color: rgba(var(--primary-rgb), .12);
}

/* Icon Card */
.card-icon {
    width: 50px;
    height: 50px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 24px;
    flex-shrink: 0;
    transition: all .25s ease;
}

.card-hover:hover .card-icon {
    background: var(--primary);
    color: #fff;
}

/* Icon kecil */
.card-icon-sm {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    font-size: 19px;
}

/* Icon besar */
.card-icon-lg {
    width: 60px;
    height: 60px;
    border-radius: 16px;
    font-size: 28px;
}

/* Card link */
.card-link {
    color: var(--primary);
    font-size: 14px;
    font-weight: 600;
}

.card-link:hover {
    color: var(--primary-dark);
}

/* Card clickable */
.card-clickable {
    cursor: pointer;
}

.card-clickable:hover {
    transform: translateY(-4px);
    border-color: rgba(var(--primary-rgb), .25);
    box-shadow: 0 14px 35px rgba(16, 24, 40, .10);
}

.stat-card {
    position: relative;
    overflow: hidden;
}

.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    font-size: 23px;
}

.stat-card .stat-value {
    color: var(--dark);
    font-size: 1.8rem;
    font-weight: 700;
    line-height: 1.2;
}

.stat-card .stat-label {
    color: var(--muted);
    font-size: 13px;
    margin-top: 4px;
}

.stat-card::after {
    content: '';
    position: absolute;
    width: 80px;
    height: 80px;
    right: -25px;
    bottom: -30px;
    background: rgba(var(--primary-rgb), .06);
    border-radius: 50%;
}

/* Responsive */
@media (max-width: 767.98px) {
    .card-header {
        padding: 15px 16px;
    }

    .card-body {
        padding: 16px;
    }

    .card-footer {
        padding: 13px 16px;
    }
}

footer {
    background: #10251b;
    color: #cad5cf;
}

footer h6 {
    color: #fff;
    font-weight: 700;
}

footer a {
    color: #cad5cf;
}

footer a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, .1);
}

.back-to-top {
    position: fixed;
    right: 22px;
    bottom: 22px;
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: 0;
    display: none;
    z-index: 999;
    box-shadow: 0 5px 18px rgba(0, 0, 0, .2);
}

@media(max-width:1199px) {
    .navbar-search {
        width: 100%;
        margin: 10px 0;
    }

    .main-navbar {
        padding: 8px 0;
    }

    .main-navbar .navbar-nav .nav-link {
        padding: 10px 8px;
    }

    .navbar-login {
        padding-bottom: 10px;
    }
}

/* Hero Slider */
.hero-section {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 60%, var(--primary-hover) 100%);
    color: #fff;
    padding: 100px 0;
    position: relative;
    overflow: hidden;
}

.hero-section::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(var(--primary-rgb), .35) 0%, rgba(var(--primary-rgb), .08) 55%, transparent 100%);
    pointer-events: none;
}

.hero-section::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 55%;
    height: 100%;
    background: url('https://picsum.photos/id/1067/1200/800') no-repeat center center / cover;
    /* background: url('<?= base_url('assets/img/hero-bg.jpg') ?>') no-repeat center center / cover; */
    opacity: .16;
    clip-path: polygon(18% 0, 100% 0, 100% 100%, 0 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-content h1 {
    font-size: 2.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
    color: #fff;
}

.hero-content p {
    font-size: 1.15rem;
    font-weight: 400;
    margin-bottom: 2rem;
    max-width: 650px;
    color: rgba(255, 255, 255, .9);
}

.hero-video {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}

.hero-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Overlay agar teks tetap terbaca */
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(90deg,
            rgba(var(--primary-rgb), .96) 0%,
            rgba(var(--primary-rgb), .88) 35%,
            rgba(var(--primary-rgb), .65) 65%,
            rgba(var(--primary-rgb), .45) 100%),
        linear-gradient(180deg,
            rgba(0, 0, 0, .08) 0%,
            rgba(0, 0, 0, .20) 100%);
}

.btn-primary {
    --bs-btn-bg: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary-dark);
    --bs-btn-hover-border-color: var(--primary-dark);
    --bs-btn-active-bg: var(--primary-dark);
    --bs-btn-active-border-color: var(--primary-dark);
}

.btn-outline-primary {
    --bs-btn-color: var(--primary);
    --bs-btn-border-color: var(--primary);
    --bs-btn-hover-bg: var(--primary);
    --bs-btn-hover-border-color: var(--primary);
}

.text-primary {
    color: var(--primary) !important;
}

.bg-primary {
    background-color: var(--primary) !important;
}

.border-primary {
    border-color: var(--primary) !important;
}

a {
    color: var(--primary);
}

a:hover {
    color: var(--primary-dark);
}

.form-control:focus,
.form-select:focus {
    border-color: var(--primary) !important;
    box-shadow: 0 0 0 .25rem rgba(var(--primary-rgb), .15) !important;
}


.page-header {
    background: linear-gradient(135deg, var(--primary-light) 0%, #fff 100%) !important;
    border-bottom: 1px solid var(--border) !important;
    padding: 28px 0 !important;
}

.page-header h1 {
    margin: 0 0 8px;
    font-size: 1.7rem;
    font-weight: 700;
    color: var(--dark);
}

.breadcrumb {
    margin-bottom: 0;
    font-size: 14px;
}

.breadcrumb-item a {
    color: var(--primary);
    font-weight: 500;
}

.breadcrumb-item a:hover {
    color: var(--primary-dark);
}

.breadcrumb-item.active {
    color: var(--muted);
}

.breadcrumb-item+.breadcrumb-item::before {
    color: #98a2b3;
}

.page-header-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
    flex-shrink: 0;
}

.dropdown-submenu {
    position: relative;
}

.dropdown-submenu>.dropdown-menu {
    top: 0;
    left: 100%;
    margin-top: -.5rem;
    margin-left: .1rem;
}

.dropdown-submenu:hover>.dropdown-menu {
    display: block;
}

.berita-image {
    height: 220px;
    object-fit: cover;
}

.berita-content {
    line-height: 1.8;
}

.berita-content h2,
.berita-content h3,
.berita-content h4 {
    margin-top: 1.75rem;
    margin-bottom: 1rem;
}

.berita-content p {
    margin-bottom: 1rem;
}

.berita-content img {
    max-width: 100%;
    height: auto;
    border-radius: .5rem;
}

.berita-content table {
    width: 100%;
    margin-bottom: 1rem;
    border-collapse: collapse;
}

.berita-content table th,
.berita-content table td {
    padding: .75rem;
    border: 1px solid var(--border);
}

.berita-content ul,
.berita-content ol {
    padding-left: 1.5rem;
}

.galeri-card {
    overflow: hidden;
}

.galeri-cover {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
}

.galeri-cover img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.galeri-card:hover .galeri-cover img {
    transform: scale(1.05);
}

.galeri-cover-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #98a2b3;
}

.galeri-cover-empty i {
    font-size: 3rem;
}

.galeri-count {
    position: absolute;
    right: 12px;
    bottom: 12px;
    padding: 6px 10px;
    border-radius: 20px;
    background: rgba(0, 0, 0, .65);
    color: #fff;
    font-size: .8rem;
}

.galeri-description {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.galeri-item {
    overflow: hidden;
    border-radius: .75rem;
    background: #fff;
    border: 1px solid var(--border);
}

.galeri-image-button {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    padding: 0;
    border: 0;
    background: #f5f5f5;
    display: block;
    overflow: hidden;
}

.galeri-image-button img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.galeri-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0, 0, 0, .35);
    color: #fff;
    opacity: 0;
    transition: opacity .3s ease;
}

.galeri-overlay i {
    font-size: 2rem;
}

.galeri-image-button:hover img {
    transform: scale(1.06);
}

.galeri-image-button:hover .galeri-overlay {
    opacity: 1;
}

.galeri-caption {
    padding: .75rem 1rem;
    font-size: .875rem;
    color: var(--muted);
}

.lightbox-image {
    max-height: 80vh;
    width: auto;
    max-width: 100%;
    object-fit: contain;
}

.min-vh-hero {
    min-height: 520px;
}

.hero-section {
    position: relative;
    overflow: hidden;
    padding: 60px 0;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

.hero-section::before {
    content: "";
    position: absolute;
    width: 500px;
    height: 500px;
    border-radius: 50%;
    right: -150px;
    top: -200px;
    background: rgba(255, 255, 255, .06);
}

.hero-section::after {
    content: "";
    position: absolute;
    width: 350px;
    height: 350px;
    border-radius: 50%;
    left: -180px;
    bottom: -230px;
    background: rgba(255, 255, 255, .05);
}

.hero-content {
    position: relative;
    z-index: 2;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    padding: 7px 14px;
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 50px;
    background: rgba(255, 255, 255, .1);
    font-size: .85rem;
}

.hero-content h1 {
    font-size: clamp(2.25rem, 5vw, 4rem);
    line-height: 1.1;
    font-weight: 700;
    margin-bottom: 1.5rem;
}

.hero-content h1 span {
    color: var(--secondary);
}

.hero-description {
    max-width: 720px;
    font-size: 1.05rem;
    line-height: 1.8;
    color: rgba(255, 255, 255, .85);
    margin-bottom: 2rem;
}

.hero-illustration {
    position: relative;
    width: 340px;
    height: 340px;
}

.hero-icon-main {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    width: 210px;
    height: 210px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 7rem;
    background: rgba(255, 255, 255, .12);
    border: 1px solid rgba(255, 255, 255, .2);
    backdrop-filter: blur(10px);
}

.hero-floating {
    position: absolute;
    width: 68px;
    height: 68px;
    border-radius: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    background: #fff;
    color: var(--primary);
    box-shadow: 0 20px 40px rgba(0, 0, 0, .15);
}

.hero-floating-1 {
    top: 10px;
    right: 35px;
}

.hero-floating-2 {
    left: 5px;
    bottom: 70px;
}

.hero-floating-3 {
    right: 5px;
    bottom: 20px;
}

.home-services {
    position: relative;
    margin-top: -55px;
    z-index: 10;
}

.service-card {
    position: relative;
    display: flex;
    align-items: flex-start;
    gap: 18px;
    height: 100%;
    padding: 24px;
    text-decoration: none;
    color: var(--dark);
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 15px 40px rgba(16, 24, 40, .08);
    transition: all .25s ease;
}

.service-card:hover {
    transform: translateY(-5px);
    color: var(--dark);
    box-shadow: 0 20px 45px rgba(16, 24, 40, .12);
}

.service-icon {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.8rem;
}

.service-card h5 {
    margin-bottom: 8px;
}

.service-card p {
    margin: 0;
    color: var(--muted);
    line-height: 1.6;
    font-size: .9rem;
}

.service-arrow {
    margin-left: auto;
    color: var(--primary);
    font-size: 1.4rem;
}

.home-statistics {
    padding: 70px 0 20px;
}

.statistics-wrapper {
    padding: 30px;
    border-radius: 20px;
    background: var(--primary-light);
}

.stat-item {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.stat-item i {
    font-size: 2rem;
    color: var(--primary);
    margin-bottom: 8px;
}

.stat-item strong {
    display: block;
    font-size: 2rem;
    line-height: 1.2;
    color: var(--dark);
}

.stat-item span {
    margin-top: 4px;
    color: var(--muted);
    font-size: .9rem;
}

.section-label {
    display: inline-block;
    margin-bottom: 10px;
    color: var(--primary);
    font-size: .85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: .08em;
}

.section-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    font-weight: 700;
    color: var(--dark);
}

.section-description {
    color: var(--muted);
    line-height: 1.8;
}

.about-visual {
    position: relative;
    min-height: 330px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary-light), #fff);
    border: 1px solid var(--border);
}

.about-icon {
    position: absolute;
    inset: 50% auto auto 50%;
    transform: translate(-50%, -50%);
    font-size: 9rem;
    color: var(--primary);
}

.about-floating-card {
    position: absolute;
    left: 30px;
    right: 30px;
    bottom: 25px;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    border-radius: 14px;
    background: #fff;
    box-shadow: 0 15px 30px rgba(16, 24, 40, .1);
}

.about-floating-card i {
    color: var(--primary);
    font-size: 2rem;
}

.about-floating-card strong,
.about-floating-card span {
    display: block;
}

.about-floating-card span {
    color: var(--muted);
    font-size: .8rem;
}

.about-feature {
    display: flex;
    align-items: center;
    gap: 10px;
}

.about-feature i {
    color: var(--primary);
    font-size: 1.3rem;
}

.home-news {
    background: #f8fafb;
}

.section-link {
    align-items: center;
    color: var(--primary);
    font-weight: 600;
    text-decoration: none;
}

.news-card {
    overflow: hidden;
}

.news-image {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: var(--primary-light);
}

.news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.news-card:hover .news-image img {
    transform: scale(1.05);
}

.news-image-empty {
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 4rem;
}

.news-date {
    margin-bottom: 10px;
    color: var(--muted);
    font-size: .8rem;
}

.news-card h5 a {
    color: var(--dark);
    text-decoration: none;
}

.news-card p {
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.7;
}

.home-gallery-item {
    position: relative;
    display: block;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #f5f5f5;
}

.home-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .3s ease;
}

.home-gallery-item:hover img {
    transform: scale(1.05);
}

.gallery-empty {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary);
    font-size: 4rem;
}

.gallery-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    padding: 22px;
    color: #fff;
    background: linear-gradient(to top, rgba(0, 0, 0, .75), transparent 65%);
}

.gallery-overlay span {
    font-size: .8rem;
}

.gallery-overlay h5 {
    margin: 5px 0 0;
    color: #fff;
}

.home-cta {
    padding: 40px 0 70px;
}

.cta-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
    padding: 45px;
    border-radius: 24px;
    background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    color: #fff;
}

.cta-label {
    display: inline-block;
    margin-bottom: 8px;
    color: var(--secondary);
    font-weight: 600;
}

.cta-wrapper h2 {
    margin-bottom: 10px;
    color: #fff;
}

.cta-wrapper p {
    max-width: 720px;
    margin: 0;
    color: rgba(255, 255, 255, .8);
}

.cta-action {
    flex-shrink: 0;
}

@media (max-width: 991.98px) {
    .min-vh-hero {
        min-height: auto;
    }

    .hero-section {
        padding: 80px 0 100px;
    }

    .home-services {
        margin-top: -40px;
    }

    .cta-wrapper {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 767.98px) {
    .hero-content h1 {
        font-size: 2.3rem;
    }

    .statistics-wrapper {
        padding: 25px 15px;
    }

    .cta-wrapper {
        padding: 30px 24px;
    }
}

.informasi-filter-card {
    top: 90px;
}

.informasi-item {
    transition: all .2s ease;
}

.informasi-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 30px rgba(16, 24, 40, .08);
}

.informasi-title a {
    color: var(--dark);
    text-decoration: none;
}

.informasi-title a:hover {
    color: var(--primary);
}

.informasi-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    color: var(--muted);
    font-size: .85rem;
}

.informasi-ringkasan {
    color: var(--muted);
    line-height: 1.7;
}

.bg-label-primary {
    background: var(--primary-light);
    color: var(--primary);
}

.bg-label-secondary {
    background: #f2f4f7;
    color: #475467;
}

.bg-label-info {
    background: #ecfdff;
    color: #087e8b;
}

.informasi-summary {
    padding: 18px;
    border-left: 4px solid var(--primary);
    background: var(--primary-light);
    border-radius: 0 10px 10px 0;
    line-height: 1.7;
}

.informasi-content {
    line-height: 1.8;
    color: var(--dark);
}

.informasi-file {
    display: flex;
    align-items: center;
    gap: 15px;
    padding: 14px;
    border: 1px solid var(--border);
    border-radius: 10px;
}

.file-icon {
    flex: 0 0 46px;
    width: 46px;
    height: 46px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.6rem;
}

.document-preview-frame {
    width: 100%;
    height: 75vh;
    min-height: 600px;
    border: 0;
    display: block;
    background: #f8f9fa;
}

.document-preview-loading {
    min-height: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

@media (max-width: 767.98px) {
    .document-preview-frame {
        height: 65vh;
        min-height: 450px;
    }
}


/* =========================
   HOME NEWS
========================= */
.home-news {
    background: #fff;
}

.section-description {
    color: var(--muted);
    font-size: 14px;
}

.news-list {
    border-top: 1px solid var(--border);
}

.news-list-item {
    display: flex;
    gap: 24px;
    padding: 24px 0;
    border-bottom: 1px solid var(--border);
    transition: background-color .2s ease;
}

.news-list-image {
    width: 240px;
    height: 155px;
    flex-shrink: 0;
    overflow: hidden;
    border-radius: 12px;
    background: var(--primary-light);
}

.news-list-image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .35s ease;
}

.news-list-item:hover .news-list-image img {
    transform: scale(1.04);
}

.news-list-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--primary-light), rgba(var(--primary-rgb), .12));
    color: var(--primary);
    font-size: 42px;
}

.news-list-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.news-meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 8px;
    color: var(--muted);
    font-size: 12px;
    font-weight: 500;
}

.news-meta span {
    display: inline-flex;
    align-items: center;
    gap: 5px;
}

.news-meta i {
    color: var(--primary);
    font-size: 15px;
}

.news-category {
    color: var(--primary) !important;
}

.news-list-title {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
    line-height: 1.45;
}

.news-list-title a {
    color: var(--dark);
    transition: color .2s ease;
}

.news-list-title a:hover {
    color: var(--primary);
}

.news-list-summary {
    margin: 0 0 12px;
    color: var(--muted);
    font-size: 13.5px;
    line-height: 1.7;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-read-more {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: auto;
    color: var(--primary);
    font-size: 13px;
    font-weight: 600;
    transition: gap .2s ease, color .2s ease;
}

.news-read-more i {
    font-size: 19px;
}

.news-read-more:hover {
    gap: 8px;
    color: var(--primary-dark);
}

/* Empty */
.news-empty {
    padding: 60px 20px;
    text-align: center;
    border-bottom: 1px solid var(--border);
}

.news-empty-icon {
    width: 64px;
    height: 64px;
    margin: 0 auto 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 16px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 30px;
}

.news-empty h5 {
    margin-bottom: 6px;
    color: var(--dark);
    font-weight: 700;
}

.news-empty p {
    margin: 0;
    color: var(--muted);
    font-size: 13px;
}

/* Tablet */
@media (max-width: 991.98px) {
    .news-list-item {
        gap: 18px;
    }

    .news-list-image {
        width: 200px;
        height: 135px;
    }

    .news-list-title {
        font-size: 17px;
    }

    .news-list-summary {
        -webkit-line-clamp: 2;
    }
}

/* Mobile */
@media (max-width: 575.98px) {
    .news-list-item {
        display: block;
        padding: 20px 0;
    }

    .news-list-image {
        width: 100%;
        height: 200px;
        display: block;
        margin-bottom: 15px;
        border-radius: 10px;
    }

    .news-meta {
        gap: 10px;
        margin-bottom: 7px;
        font-size: 11px;
    }

    .news-list-title {
        font-size: 16px;
        line-height: 1.45;
        margin-bottom: 7px;
    }

    .news-list-summary {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 10px;
    }
}

/* Mobile kecil */
@media (max-width: 400px) {
    .news-list-image {
        height: 175px;
    }
}

/* =========================
   LANGUAGE SWITCHER
========================= */
.language-switcher {
    position: relative;
    min-width: 185px;
    height: 48px;
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 6px 13px;
    background: #fff;
    border: 1px solid var(--border);
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(16, 24, 40, .05);
    transition: border-color .2s ease, box-shadow .2s ease;
}

.language-switcher:hover {
    border-color: rgba(var(--primary-rgb), .35);
    box-shadow: 0 5px 18px rgba(16, 24, 40, .08);
}

.language-switcher:focus-within {
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(var(--primary-rgb), .10);
}

.language-icon {
    width: 34px;
    height: 34px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 9px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 17px;
}

.language-content {
    min-width: 0;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.language-label {
    display: block;
    margin-bottom: 1px;
    color: var(--muted);
    font-size: 9px;
    font-weight: 600;
    line-height: 1;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.language-arrow {
    color: var(--muted);
    font-size: 11px;
    pointer-events: none;
}

/* Google Translate */
.language-switcher .goog-te-gadget {
    height: 19px;
    color: transparent !important;
    font-family: inherit !important;
    font-size: 0 !important;
    line-height: 1 !important;
}

.language-switcher .goog-te-gadget .goog-te-combo {
    width: 100%;
    height: 20px;
    margin: 0 !important;
    padding: 0 20px 0 0;
    border: 0 !important;
    outline: 0 !important;
    background: transparent !important;
    color: var(--dark) !important;
    font-family: inherit !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    cursor: pointer;
    appearance: none;
    -webkit-appearance: none;
    box-shadow: none !important;
}

.language-switcher .goog-te-gadget .goog-te-combo:focus {
    outline: 0 !important;
    box-shadow: none !important;
}

/* Hilangkan tulisan Powered by Google */
.language-switcher .goog-logo-link,
.language-switcher .goog-te-gadget span {
    display: none !important;
}

/* Google Translate top banner */
.goog-te-banner-frame {
    display: none !important;
}

body {
    top: 0 !important;
}

/* Hindari highlight default translate */
.goog-text-highlight {
    background: transparent !important;
    box-shadow: none !important;
}

/* Mobile */
@media (max-width: 767.98px) {
    .language-switcher {
        min-width: 145px;
        height: 44px;
        padding: 5px 10px;
    }

    .language-icon {
        width: 31px;
        height: 31px;
        font-size: 15px;
    }

    .language-label {
        display: none;
    }

    .language-switcher .goog-te-gadget .goog-te-combo {
        font-size: 11px !important;
    }
}

.poster-wrapper {
    position: relative;
    display: block;
    overflow: hidden;
    border-radius: 20px;
    background: var(--primary-light);
    box-shadow: 0 12px 35px rgba(16, 24, 40, .08);
}

.poster-wrapper img {
    width: 100%;
    height: auto;
    display: block;
    transition: transform .5s ease;
}

.poster-wrapper:hover img {
    transform: scale(1.01);
}

/* slider */
.hero-slide {
    position: relative;
    height: 560px;
    overflow: hidden;
}

.hero-slide-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 10px 10px 10px 10px;
}

.hero-slide-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(0, 0, 0, .78) 0%,
            rgba(0, 0, 0, .45) 30%,
            rgba(0, 0, 0, .10) 60%,
            transparent 100%);
}

.hero-slide-content {
    position: relative;
    z-index: 2;
    height: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    padding-bottom: 70px;
}

.hero-slide-caption {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    color: #fff;
}

.hero-slide-caption h1 {
    margin-bottom: 12px;
    color: #fff;
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 700;
    line-height: 1.15;
    text-shadow: 0 2px 10px rgba(0, 0, 0, .35);
}

.hero-slide-caption p {
    max-width: 800px;
    margin: 0 auto 20px;
    color: rgba(255, 255, 255, .92);
    font-size: 1.05rem;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, .35);
}

.hero-slide-caption .btn {
    min-width: 150px;
}

#heroSlider .carousel-indicators {
    z-index: 4;
    margin-bottom: 18px;
}

@media (max-width: 767.98px) {
    .hero-slide {
        height: 480px;
    }

    .hero-slide-content {
        padding-bottom: 60px;
    }

    .hero-slide-caption h1 {
        font-size: 2rem;
    }

    .hero-slide-caption p {
        font-size: .95rem;
    }
}

/* end slider */

.search-section-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--dark);
}

.search-section-title>i {
    color: var(--primary);
    font-size: 1.4rem;
}

.search-section-title>span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 26px;
    height: 26px;
    padding: 0 7px;
    border-radius: 20px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: .75rem;
}

.search-result-item {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fff;
    color: var(--dark);
    text-decoration: none;
    transition: all .2s ease;
}

.search-result-item:hover {
    color: var(--dark);
    border-color: var(--primary);
    box-shadow: 0 8px 25px rgba(16, 24, 40, .07);
    transform: translateY(-2px);
}

.search-result-icon {
    flex: 0 0 48px;
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    background: var(--primary-light);
    color: var(--primary);
    font-size: 1.5rem;
}

.search-result-item h5 {
    margin-bottom: 6px;
    font-size: 1rem;
}

.search-result-item p {
    margin: 8px 0 0;
    color: var(--muted);
    font-size: .9rem;
    line-height: 1.6;
}

.search-result-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--muted);
    font-size: .8rem;
}

.search-result-meta span {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.search-result-arrow {
    align-self: center;
    color: var(--muted);
    font-size: 1.5rem;
}

.footer-map {
    width: 100%;
    max-height: 180px;
    overflow: hidden;
    border-radius: 12px;
}

.footer-map iframe {
    display: block;
    width: 100% !important;
    height: 180px !important;
    border: 0;
}