:root {
--blue-950: #0a1733;
--blue-900: #10245c;
--blue-800: #172f6f;
--blue-700: #1e3a8a;
--blue-600: #1d4ed8;
--blue-500: #3b82f6;
--blue-tint: #eef4fb;
--grad-brand: linear-gradient(135deg, #0a1733 0%, #1e3a8a 55%, #2563eb 100%);
--grad-accent: linear-gradient(135deg, #1d4ed8, #3b82f6);
--bs-primary: #1d4ed8;
--bs-primary-rgb: 29, 78, 216;
--bs-link-color: #1d4ed8;
--bs-link-color-rgb: 29, 78, 216;
--bs-link-hover-color: #2563eb;
--bs-link-hover-color-rgb: 37, 99, 235;
--bs-border-radius: .5rem;
--bs-border-radius-lg: 1rem;
}
html { scroll-behavior: smooth; }
body {
font-family: 'Plus Jakarta Sans', 'Segoe UI', system-ui, sans-serif;
background: #f8fafc;
color: #1e293b;
}
::selection { background: var(--blue-600); color: #fff; }

/* ---------- Topbar ---------- */
.topbar {
background: var(--blue-950);
color: #bfdbfe;
font-size: .8rem;
}
.topbar i { color: #60a5fa; }
.topbar span { letter-spacing: .2px; }

/* ---------- Navbar ---------- */
.navbar-kecamatan {
background: var(--grad-brand);
padding-block: .9rem;
}
.brand-badge {
width: 42px; height: 42px;
display: inline-flex; align-items: center; justify-content: center;
border-radius: .85rem;
background: linear-gradient(135deg, #60a5fa, #38bdf8);
color: #0a1733;
font-size: 1.25rem;
box-shadow: 0 6px 16px rgba(37, 99, 235, .35);
}
.navbar-kecamatan .navbar-brand { color: #fff; letter-spacing: .3px; }
.navbar-kecamatan .brand-text-accent { color: #93c5fd; }
.navbar-kecamatan .nav-link {
color: #dbeafe;
font-weight: 500;
position: relative;
padding-block: .5rem;
display: inline-flex;
align-items: center;
gap: .45rem;
white-space: nowrap;
}
.navbar-kecamatan .nav-link i { font-size: .95rem; opacity: .9; }
.navbar-kecamatan .nav-link:not(.dropdown-toggle)::after {
content: '';
position: absolute;
left: .5rem; right: .5rem; bottom: .15rem;
height: 2px;
border-radius: 2px;
background: #60a5fa;
transform: scaleX(0);
transform-origin: center;
transition: transform .25s ease;
}
.navbar-kecamatan .nav-link:hover, .navbar-kecamatan .nav-link.active { color: #fff; }
.navbar-kecamatan .nav-link:not(.dropdown-toggle):hover::after,
.navbar-kecamatan .nav-link:not(.dropdown-toggle).active::after { transform: scaleX(1); }
.navbar-kecamatan .nav-link:not(.dropdown-toggle).active { color: #fff; }
.navbar-kecamatan .nav-cta { padding-left: .75rem; }
.navbar-toggler { border-color: rgba(255,255,255,.4); }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(59, 130, 246, .4); }

/* ---------- Navbar dropdown ---------- */
.navbar-kecamatan .dropdown-toggle { display: inline-flex; align-items: center; gap: .3rem; }
.navbar-kecamatan .dropdown-toggle::after {
border-top: .3em solid;
border-right: .3em solid transparent;
border-left: .3em solid transparent;
border-bottom: 0;
vertical-align: .075em;
transition: transform .2s ease;
position: static;
width: auto;
height: auto;
background: none;
transform: none;
border-radius: 0;
}
.navbar-kecamatan .nav-item.dropdown.show .dropdown-toggle::after,
.navbar-kecamatan .nav-item.dropdown:hover .dropdown-toggle::after { transform: rotate(180deg); }
.navbar-kecamatan .dropdown-menu {
border-radius: 1rem;
padding: .65rem;
min-width: 310px;
border: 1px solid rgba(226,232,240,.95);
box-shadow: 0 18px 45px rgba(10,23,51,.18);
margin-top: .35rem;
}
.navbar-kecamatan .dropdown-menu .dropdown-header {
font-size: .66rem;
font-weight: 800;
letter-spacing: 1.4px;
text-transform: uppercase;
color: var(--blue-600);
padding: .35rem .85rem .2rem;
}
.navbar-kecamatan .dropdown-menu .dropdown-item {
border-radius: .6rem;
font-size: .9rem;
font-weight: 500;
padding: .55rem .85rem;
color: #1e293b;
display: flex;
align-items: center;
gap: .7rem;
transition: background .15s ease, color .15s ease, padding-left .15s ease;
}
.navbar-kecamatan .dropdown-menu .dropdown-item i {
width: 18px; text-align: center; font-size: .95rem;
color: var(--blue-600); transition: color .15s ease;
}
.navbar-kecamatan .dropdown-menu .dropdown-item:hover,
.navbar-kecamatan .dropdown-menu .dropdown-item:focus,
.navbar-kecamatan .dropdown-menu .dropdown-item.active {
background: rgba(37,99,235,.08);
color: var(--blue-700);
padding-left: 1.05rem;
}
.navbar-kecamatan .dropdown-menu .dropdown-item:hover i,
.navbar-kecamatan .dropdown-menu .dropdown-item.active i { color: var(--blue-700); }
.navbar-kecamatan .dropdown-menu .dropdown-item.external::after {
font-family: "bootstrap-icons";
content: "\F132";
font-size: .72rem;
margin-left: auto;
color: #94a3b8;
opacity: 0;
transition: opacity .15s ease;
}
.navbar-kecamatan .dropdown-menu .dropdown-item.external:hover::after { opacity: 1; }
.navbar-kecamatan .dropdown-menu .dropdown-divider { margin: .4rem 0; border-color: #e2e8f0; }

@media (min-width: 992px) {
.navbar-kecamatan .nav-item.dropdown:hover > .dropdown-menu { display: block; margin-top: 0; }
}

.navbar-toggler-icon {
background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255,255,255,.9)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ---------- Buttons ---------- */
.btn-gradient {
background: linear-gradient(135deg, #60a5fa, #1d4ed8);
border: 0;
color: #0a1733;
font-weight: 700;
border-radius: 50rem;
padding: .55rem 1.4rem;
box-shadow: 0 8px 20px rgba(37, 99, 235, .35);
transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
.btn-gradient:hover { color: #0a1733; transform: translateY(-2px); filter: brightness(1.05); box-shadow: 0 12px 26px rgba(37, 99, 235, .45); }
.btn-gradient-sm { padding: .35rem 1rem; font-size: .85rem; }
.btn-outline-accent {
border: 1.5px solid var(--blue-500);
color: var(--blue-600);
font-weight: 600;
border-radius: 50rem;
transition: background .2s ease, color .2s ease;
}
.btn-outline-accent:hover { background: var(--blue-600); color: #fff; }
.btn-ghost-light { color: #fff; border: 1.5px solid rgba(255,255,255,.55); border-radius: 50rem; font-weight: 600; }
.btn-ghost-light:hover { background: rgba(255,255,255,.14); color: #fff; }

/* ---------- Section helpers ---------- */
.section-chip {
display: inline-flex; align-items: center; gap: .4rem;
background: rgba(59, 130, 246, .12);
color: var(--blue-700);
font-size: .78rem; font-weight: 700;
letter-spacing: 1.5px; text-transform: uppercase;
padding: .35rem 1rem;
border-radius: 50rem;
margin-bottom: .75rem;
}
.section-title { font-weight: 800; letter-spacing: -.3px; }
.section-sub { color: #64748b; max-width: 620px; }
.bg-blue-tint { background: var(--blue-tint); }

/* ---------- Cards ---------- */
.card-lift {
border: 0;
border-radius: 1.1rem;
box-shadow: 0 4px 18px rgba(10, 23, 51, .06);
transition: transform .25s ease, box-shadow .25s ease;
}
.card-lift:hover {
transform: translateY(-6px);
box-shadow: 0 16px 36px rgba(10, 23, 51, .12);
}
.card-image-top {
border-radius: 1.1rem 1.1rem 0 0;
height: 210px;
object-fit: cover;
transition: transform .4s ease;
}
.card-img-zoom { overflow: hidden; border-radius: 1.1rem 1.1rem 0 0; }
.card-img-zoom:hover .card-image-top { transform: scale(1.06); }

/* ---------- Pagination Styling ---------- */
.pagination {
margin-bottom: 0;
gap: .3rem;
justify-content: center;
}
.page-link {
color: var(--blue-700);
border-radius: .5rem !important;
border: 1px solid #e2e8f0;
font-weight: 600;
font-size: .88rem;
padding: .45rem .85rem;
box-shadow: 0 1px 2px rgba(0,0,0,.04);
transition: all .18s ease;
}
.page-link:hover {
background-color: var(--blue-tint);
color: var(--blue-800);
border-color: #cbd5e1;
}
.page-item.active .page-link {
background-color: var(--blue-600);
border-color: var(--blue-600);
color: #fff;
box-shadow: 0 4px 12px rgba(29, 78, 216, .35);
}
.page-item.disabled .page-link {
color: #94a3b8;
background-color: #f8fafc;
border-color: #f1f5f9;
}

/* ---------- Stats ---------- */
.stat-card { border: 0; border-radius: 1.1rem; box-shadow: 0 4px 18px rgba(10, 23, 51, .06); }
.stat-icon {
width: 54px; height: 54px;
border-radius: 1rem;
display: flex; align-items: center; justify-content: center;
font-size: 1.4rem;
color: #fff;
flex-shrink: 0;
}
.stat-icon-blue { background: linear-gradient(135deg, #3b82f6, #1e3a8a); }
.stat-icon-indigo { background: linear-gradient(135deg, #60a5fa, #2563eb); }
.stat-icon-cyan { background: linear-gradient(135deg, #38bdf8, #1d4ed8); }
.stat-icon-amber { background: linear-gradient(135deg, #fbbf24, #d97706); }

/* ---------- Carousel ---------- */
.hero-carousel .carousel-item { position: relative; }
.hero-overlay {
position: absolute; inset: 0;
background: linear-gradient(90deg, rgba(8,51,68,.88) 0%, rgba(8,51,68,.55) 45%, rgba(16,185,129,.15) 100%);
}
.hero-caption {
position: absolute; inset: 0;
display: flex; align-items: center;
left: 0; right: 0;
padding: 3rem 0;
text-align: left;
}
.hero-caption h1 { text-shadow: 0 4px 18px rgba(8,51,68,.55); letter-spacing: -.5px; }
.hero-chip {
display: inline-flex; align-items: center; gap: .4rem;
background: rgba(255,255,255,.14);
border: 1px solid rgba(255,255,255,.35);
backdrop-filter: blur(6px);
color: #fff;
font-size: .78rem; font-weight: 700;
letter-spacing: 2px; text-transform: uppercase;
padding: .4rem 1.1rem;
border-radius: 50rem;
}
.hero-indicator {
width: 10px !important; height: 10px !important;
border-radius: 50rem !important;
border: 0 !important;
background: rgba(255,255,255,.4) !important;
transition: width .25s ease, background .25s ease;
}
.hero-indicator.active { width: 32px !important; background: #60a5fa !important; }
.carousel-control-prev-icon, .carousel-control-next-icon {
filter: invert(0);
border-radius: 50rem;
background-color: rgba(255,255,255,.18);
background-size: 50%;
width: 3rem; height: 3rem;
}

/* ---------- Footer ---------- */
.wave-divider { display: block; width: 100%; line-height: 0; }
.footer {
background: linear-gradient(160deg, #0a1733, #1e3a8a 85%);
color: #dbeafe;
position: relative;
}
.footer h5, .footer h6 { color: #fff; }
.footer a { color: #dbeafe; text-decoration: none; transition: color .2s ease; }
.footer a:hover { color: #93c5fd; }
.footer .foot-icon {
width: 36px; height: 36px;
border-radius: .6rem;
background: rgba(255,255,255,.08);
display: inline-flex; align-items: center; justify-content: center;
color: #60a5fa;
}
.footer .foot-link { padding: .2rem 0; display: flex; align-items: center; gap: .5rem; }
.footer .foot-link i { font-size: .7rem; color: #60a5fa; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); }

.avatar-placeholder { width: 120px; height: 120px; border-radius: 50%; object-fit: cover; }

/* ---------- Page hero ---------- */
.page-hero { background: var(--grad-brand); position: relative; overflow: hidden; }
.page-hero::before, .page-hero::after {
content: '';
position: absolute;
border-radius: 50%;
background: rgba(255,255,255,.07);
}
.page-hero::before { width: 320px; height: 320px; top: -140px; right: -80px; }
.page-hero::after { width: 220px; height: 220px; bottom: -120px; left: 5%; }
.breadcrumb-item a { color: #bfdbfe; }
.breadcrumb-item.active { color: #fff; }
