/* ============================================================
   SISTEM INFORMASI DESA KARANGJAMBU — GAYA UTAMA SITUS PUBLIK
   ------------------------------------------------------------
   Palet warna (lihat juga variabel Bootstrap yang ditimpa):
   Biru utama  #175A94 | Biru tua #123B60 | Hijau #279B58
   Latar abu   #F3F6F9 | Teks     #202833
   ============================================================ */

:root {
  /* Identitas desa */
  --kj-primary: #175A94;
  --kj-primary-dark: #123B60;
  --kj-green: #279B58;
  --kj-bg: #F3F6F9;
  --kj-text: #202833;
  --kj-muted: #5B6B7B;
  --kj-border: #E3E9F0;
  --kj-radius: 14px;
  --kj-shadow: 0 2px 10px rgba(18, 59, 96, 0.08);
  --kj-shadow-lg: 0 10px 26px rgba(18, 59, 96, 0.14);

  /* Timpa variabel Bootstrap 5 agar komponen bawaan mengikuti tema */
  --bs-primary: #175A94;
  --bs-primary-rgb: 23, 90, 148;
  --bs-primary-dark-rgb: 18, 59, 96;
  --bs-success: #279B58;
  --bs-success-rgb: 39, 155, 88;
  --bs-body-bg: #F3F6F9;
  --bs-body-color: #202833;
  --bs-link-color: #175A94;
  --bs-link-hover-color: #123B60;
  --bs-border-color: #E3E9F0;
  --bs-body-font-family: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

/* ---------- Dasar ---------- */
html { scroll-behavior: smooth; }
body { font-family: var(--bs-body-font-family); color: var(--kj-text); }
img { max-width: 100%; height: auto; }
a { text-decoration: none; }
h1, h2, h3, h4, h5, h6 { font-weight: 700; color: var(--kj-primary-dark); }

:focus-visible { outline: 3px solid rgba(23, 90, 148, 0.45); outline-offset: 2px; }

/* Tombol tema */
.btn-primary {
  --bs-btn-bg: #175A94; --bs-btn-border-color: #175A94;
  --bs-btn-hover-bg: #124a7a; --bs-btn-hover-border-color: #124a7a;
  --bs-btn-active-bg: #123B60; --bs-btn-active-border-color: #123B60;
  --bs-btn-disabled-bg: #175A94; --bs-btn-disabled-border-color: #175A94;
  font-weight: 600;
}
.btn-success {
  --bs-btn-bg: #279B58; --bs-btn-border-color: #279B58;
  --bs-btn-hover-bg: #1f7d46; --bs-btn-hover-border-color: #1f7d46;
  --bs-btn-active-bg: #1b6c3d; --bs-btn-active-border-color: #1b6c3d;
  font-weight: 600;
}
.btn-outline-primary { --bs-btn-color: #175A94; --bs-btn-border-color: #175A94; --bs-btn-hover-bg: #175A94; --bs-btn-hover-border-color: #175A94; font-weight: 600; }
.btn-outline-success { --bs-btn-color: #279B58; --bs-btn-border-color: #279B58; --bs-btn-hover-bg: #279B58; --bs-btn-hover-border-color: #279B58; font-weight: 600; }

/* ============================================================
   LAPIS 1: HEADER IDENTITAS (BIRU)
   ========================================================== */
.topbar { background: var(--kj-primary); color: #fff; }
.topbar-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 13px 0; }
.brand { display: flex; align-items: center; gap: 14px; color: #fff; min-width: 0; }
.brand-logo {
  width: 56px; height: 56px; flex-shrink: 0; background: #fff;
  border-radius: 50%; padding: 5px; box-shadow: 0 2px 8px rgba(9, 30, 52, 0.35);
}
.brand-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.brand-text { display: flex; flex-direction: column; min-width: 0; }
.brand-title {
  font-weight: 800; font-size: 1.02rem; letter-spacing: 0.02em; line-height: 1.25;
  margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.brand-sub {
  font-size: 0.7rem; letter-spacing: 0.14em; font-weight: 500;
  color: #BCD5EE; margin-top: 3px;
}
.topbar-actions { display: flex; gap: 10px; flex-shrink: 0; }
.btn-topbar {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 0.85rem; font-weight: 600; padding: 8px 16px;
  border-radius: 8px; color: #fff; transition: all 0.18s ease; white-space: nowrap;
}
.btn-topbar span { display: none; }
@media (min-width: 400px) { .btn-topbar span { display: inline; } }
.btn-topbar-login { background: #fff; color: var(--kj-primary); }
.btn-topbar-login:hover { background: #EAF2FA; color: var(--kj-primary-dark); }
.btn-topbar-contact { background: var(--kj-green); }
.btn-topbar-contact:hover { background: #1f7d46; color: #fff; }

/* ============================================================
   LAPIS 2: NAVIGASI (PUTIH, STICKY)
   ========================================================== */
.site-nav {
  background: #fff; border-bottom: 1px solid var(--kj-border);
  position: sticky; top: 0; z-index: 1030;
  box-shadow: 0 2px 10px rgba(18, 59, 96, 0.06);
}
.site-nav .navbar-nav { margin: 0 auto; }
.site-nav .nav-link {
  color: #24303C; font-weight: 600; font-size: 0.95rem;
  padding: 15px 13px; position: relative;
}
.site-nav .nav-link:hover, .site-nav .nav-link:focus { color: var(--kj-primary); }
.site-nav .nav-link.active { color: var(--kj-primary); }
.site-nav .nav-link.active::after {
  content: ""; position: absolute; left: 13px; right: 13px; bottom: 7px;
  height: 3px; border-radius: 3px; background: var(--kj-primary);
}
.site-nav .dropdown-menu {
  border: 1px solid var(--kj-border); border-radius: 12px;
  box-shadow: var(--kj-shadow-lg); padding: 8px; margin-top: 4px !important;
}
.site-nav .dropdown-item { border-radius: 8px; font-weight: 500; font-size: 0.92rem; padding: 8px 14px; }
.site-nav .dropdown-item:hover { background: #EAF2FA; color: var(--kj-primary); }
.navbar-toggler { border: 1px solid var(--kj-border); padding: 6px 10px; }
.navbar-toggler:focus { box-shadow: 0 0 0 3px rgba(23, 90, 148, 0.25); }

/* ============================================================
   HERO CAROUSEL
   ========================================================== */
.hero-carousel .carousel-item { height: 400px; position: relative; background: var(--kj-primary-dark); }
.hero-carousel .carousel-item img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(15, 45, 75, 0.30) 0%, rgba(15, 45, 75, 0.45) 55%, rgba(15, 45, 75, 0.78) 100%);
}
.hero-caption {
  position: absolute; inset: 0; z-index: 5; display: flex; flex-direction: column;
  justify-content: center; align-items: center; text-align: center;
  color: #fff; padding: 24px 16px;
}
.hero-kicker {
  background: rgba(39, 155, 88, 0.9); font-size: 0.75rem; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  padding: 6px 14px; border-radius: 999px; margin-bottom: 16px;
}
.hero-title {
  font-size: clamp(1.55rem, 4vw, 2.6rem); font-weight: 800; color: #fff;
  letter-spacing: 0.01em; line-height: 1.2; max-width: 820px;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.4);
}
.hero-desc {
  color: rgba(255, 255, 255, 0.92); font-size: clamp(0.9rem, 1.6vw, 1.05rem);
  margin: 14px 0 0; max-width: 640px; text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4);
}
.hero-buttons { display: flex; gap: 12px; margin-top: 26px; flex-wrap: wrap; justify-content: center; }
.btn-hero { font-weight: 700; box-shadow: 0 6px 18px rgba(9, 30, 52, 0.35); }
.hero-carousel .carousel-indicators { margin-bottom: 14px; z-index: 6; }
.hero-carousel .carousel-indicators [data-bs-target] {
  width: 10px; height: 10px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.55); opacity: 1;
}
.hero-carousel .carousel-indicators .active { background: #fff; }
.hero-carousel .carousel-control-prev, .hero-carousel .carousel-control-next { z-index: 6; opacity: 0.55; }
.hero-carousel .carousel-control-prev:hover, .hero-carousel .carousel-control-next:hover { opacity: 0.95; }
.hero-empty { background: linear-gradient(135deg, #175A94, #123B60); }
@media (max-width: 767.98px) { .hero-carousel .carousel-item { height: 340px; } }
@media (max-width: 575.98px) { .hero-carousel .carousel-item { height: 300px; } }

/* ============================================================
   RUNNING TEXT
   ========================================================== */
.runningtext { background: #fff; border-bottom: 1px solid var(--kj-border); }
.badge-running {
  display: inline-flex; align-items: center; gap: 6px; white-space: nowrap;
  background: #EAF2FA; color: var(--kj-primary);
  font-size: 0.72rem; font-weight: 700; letter-spacing: 0.06em;
  padding: 6px 12px; border-radius: 999px; flex-shrink: 0;
}
.marquee { overflow: hidden; flex: 1; position: relative; }
.marquee-track {
  display: inline-flex; align-items: center; gap: 28px;
  white-space: nowrap; padding: 11px 0; will-change: transform;
}
.marquee-track.is-animating { animation: kj-marquee linear infinite; }
.marquee:hover .marquee-track.is-animating { animation-play-state: paused; }
.marquee-item { color: #33414F; font-size: 0.9rem; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; }
a.marquee-item:hover { color: var(--kj-primary); }
@keyframes kj-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee-track.is-animating { animation: none; white-space: normal; flex-wrap: wrap; }
  .marquee { overflow-x: auto; }
}

/* ============================================================
   BAGIAN & JUDUL SECTION
   ========================================================== */
.section { padding: 56px 0; }
.bg-white { background: #fff; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 30px; flex-wrap: wrap; }
.accent-bar { width: 5px; height: 28px; border-radius: 3px; background: var(--kj-primary); flex-shrink: 0; }
.section-title { font-size: 1.32rem; font-weight: 800; margin: 0; letter-spacing: 0.02em; }
.link-more { font-weight: 600; font-size: 0.9rem; color: var(--kj-primary); white-space: nowrap; }
.link-more:hover { color: var(--kj-primary-dark); }
.section-head-center { text-align: center; margin-bottom: 34px; }
.section-title-center { font-size: 1.32rem; font-weight: 800; margin: 0; letter-spacing: 0.02em; }
.section-head-center::after {
  content: ""; display: block; width: 58px; height: 4px;
  background: var(--kj-green); border-radius: 3px; margin: 12px auto 0;
}
.section-sub { color: var(--kj-muted); margin: 10px 0 0; font-size: 0.95rem; }

/* ============================================================
   KARTU BERITA
   ========================================================== */
.news-card {
  background: #fff; border-radius: var(--kj-radius); overflow: hidden;
  box-shadow: var(--kj-shadow); height: 100%; display: flex; flex-direction: column;
  border: 1px solid rgba(227, 233, 240, 0.7);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.news-card:hover { transform: translateY(-4px); box-shadow: var(--kj-shadow-lg); }
.news-thumb-link { display: block; }
.news-thumb { aspect-ratio: 16 / 9; overflow: hidden; background: #E7EEF5; position: relative; }
.news-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.news-card:hover .news-thumb img { transform: scale(1.045); }
.thumb-fallback {
  width: 100%; height: 100%; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #175A94, #279B58);
  color: rgba(255, 255, 255, 0.92); font-size: 2.1rem;
}
.news-body { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 9px; flex: 1; }
.news-meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.chip-category {
  display: inline-block; background: #EAF2FA; color: #175A94;
  font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 4px 11px; border-radius: 999px;
}
.news-date { color: var(--kj-muted); font-size: 0.8rem; display: inline-flex; align-items: center; gap: 5px; font-weight: 500; }
.news-title { font-size: 1.02rem; line-height: 1.4; margin: 0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.news-title a { color: var(--kj-text); }
.news-title a:hover { color: var(--kj-primary); }
.news-excerpt {
  color: var(--kj-muted); font-size: 0.88rem; line-height: 1.6; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}
.news-readmore { color: var(--kj-primary); font-weight: 600; font-size: 0.88rem; margin-top: auto; }
.news-readmore:hover { color: var(--kj-primary-dark); }

/* ============================================================
   WIDGET SAMPING: AGENDA & PENGUMUMAN
   ========================================================== */
.side-card { background: #fff; border-radius: var(--kj-radius); box-shadow: var(--kj-shadow); overflow: hidden; margin-bottom: 22px; }
.side-card-header {
  background: var(--kj-primary-dark); color: #fff; padding: 14px 18px;
  font-weight: 700; font-size: 0.9rem; letter-spacing: 0.03em;
  display: flex; align-items: center; gap: 9px;
}
.side-card-header-green { background: var(--kj-green); }
.side-card-body { padding: 6px 18px 18px; }
.agenda-item { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--kj-border); }
.agenda-item:last-child { border-bottom: 0; }
.agenda-date {
  flex-shrink: 0; width: 56px; text-align: center;
  background: #EAF2FA; border-radius: 10px; padding: 7px 2px; color: var(--kj-primary);
}
.agenda-date .d { display: block; font-size: 1.25rem; font-weight: 800; line-height: 1.1; }
.agenda-date .m { display: block; font-size: 0.68rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; }
.agenda-info { min-width: 0; }
.agenda-info h4 { font-size: 0.92rem; margin: 0 0 5px; line-height: 1.35; }
.agenda-info small { color: var(--kj-muted); display: flex; flex-direction: column; gap: 3px; font-size: 0.78rem; }
.agenda-info small span { display: inline-flex; gap: 5px; align-items: center; }
.agenda-empty { padding: 22px 0 16px; color: var(--kj-muted); text-align: center; font-size: 0.9rem; }
.announce-item { padding: 11px 0; border-bottom: 1px dashed var(--kj-border); }
.announce-item:last-of-type { border-bottom: 0; }
.announce-title { display: block; font-weight: 600; font-size: 0.9rem; color: var(--kj-text); line-height: 1.45; }
.announce-title:hover { color: var(--kj-primary); }
.announce-date { display: inline-flex; align-items: center; gap: 5px; color: var(--kj-muted); font-size: 0.78rem; margin-top: 4px; }
.category-item {
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 10px 10px; border-radius: 10px; color: var(--kj-text);
  font-size: 0.9rem; font-weight: 500;
}
.category-item:hover { background: #F3F6F9; color: var(--kj-primary); }
.category-item.active { background: #EAF2FA; color: var(--kj-primary); font-weight: 700; }
.category-item .badge { font-size: 0.7rem; }

/* ============================================================
   STATISTIK & PANEL
   ========================================================== */
.stat-card {
  background: #fff; border-radius: var(--kj-radius); box-shadow: var(--kj-shadow);
  padding: 20px; display: flex; align-items: center; gap: 15px; height: 100%;
}
.stat-icon {
  width: 54px; height: 54px; border-radius: 14px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.55rem;
}
.stat-icon.blue { background: #EAF2FA; color: #175A94; }
.stat-icon.green { background: #E8F6EE; color: #279B58; }
.stat-icon.orange { background: #FDF1E3; color: #D97706; }
.stat-icon.navy { background: #E7ECF3; color: #123B60; }
.stat-info { min-width: 0; }
.stat-value { font-size: 1.4rem; font-weight: 800; color: var(--kj-primary-dark); line-height: 1.15; }
.stat-value-empty { font-size: 0.95rem; color: #9AA8B5; font-weight: 700; }
.stat-label { color: var(--kj-muted); font-size: 0.76rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-top: 4px; }
@media (max-width: 575.98px) { .stat-card { padding: 14px; gap: 10px; } .stat-icon { width: 44px; height: 44px; font-size: 1.2rem; } .stat-value { font-size: 1.1rem; } }

.panel { background: #fff; border-radius: var(--kj-radius); box-shadow: var(--kj-shadow); overflow: hidden; }
.panel-header {
  padding: 15px 20px; border-bottom: 1px solid var(--kj-border);
  display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap;
  font-weight: 700; color: var(--kj-primary-dark); font-size: 0.98rem;
}
.panel-body { padding: 20px; }
.chip-year { background: #E8F6EE; color: #279B58; font-size: 0.74rem; font-weight: 700; padding: 4px 12px; border-radius: 999px; }
.chart-box { position: relative; height: 240px; }
.chart-box-tall { height: 300px; }
.chart-legend { display: flex; flex-wrap: wrap; gap: 8px 16px; justify-content: center; margin-top: 14px; }
.legend-item { display: inline-flex; align-items: center; gap: 7px; font-size: 0.82rem; color: #33414F; }
.legend-item strong { color: var(--kj-primary-dark); }
.legend-dot { width: 11px; height: 11px; border-radius: 3px; flex-shrink: 0; }
.chart-note { color: var(--kj-muted); font-size: 0.8rem; text-align: center; margin: 14px 0 0; }
.empty-panel { text-align: center; padding: 34px 16px; color: var(--kj-muted); }
.empty-panel i { font-size: 2.1rem; opacity: 0.45; display: block; margin-bottom: 10px; }
.empty-panel p { font-size: 0.92rem; margin: 0; }

/* ============================================================
   KARTU POTENSI
   ========================================================== */
.potential-card {
  display: block; background: #fff; border-radius: var(--kj-radius);
  overflow: hidden; box-shadow: var(--kj-shadow); height: 100%;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}
.potential-card:hover { transform: translateY(-4px); box-shadow: var(--kj-shadow-lg); }
.potential-thumb { aspect-ratio: 4 / 3; overflow: hidden; position: relative; background: #E7EEF5; }
.potential-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.3s ease; }
.potential-card:hover .potential-thumb img { transform: scale(1.05); }
.potential-chip {
  position: absolute; left: 12px; top: 12px; z-index: 2;
  background: rgba(18, 59, 96, 0.85); color: #fff; backdrop-filter: blur(3px);
  font-size: 0.7rem; font-weight: 700; padding: 4px 11px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.potential-body { padding: 15px 17px 17px; text-align: center; }
.potential-title { font-size: 1.02rem; margin: 0 0 6px; color: var(--kj-primary-dark); }
.potential-desc {
  color: var(--kj-muted); font-size: 0.85rem; line-height: 1.55; margin: 0;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
.potential-more { display: inline-block; margin-top: 10px; color: var(--kj-green); font-weight: 700; font-size: 0.84rem; }
.potential-card-lg .potential-body { text-align: left; }

/* ============================================================
   HEADER HALAMAN DALAM + BREADCRUMB
   ========================================================== */
.page-header { background: linear-gradient(135deg, #123B60 0%, #175A94 100%); color: #fff; padding: 38px 0 34px; }
.page-header .breadcrumb { --bs-breadcrumb-divider-color: rgba(255, 255, 255, 0.5); margin-bottom: 10px; }
.page-header .breadcrumb-item a { color: rgba(255, 255, 255, 0.8); }
.page-header .breadcrumb-item a:hover { color: #fff; }
.page-header .breadcrumb-item.active { color: rgba(255, 255, 255, 0.95); }
.page-title { color: #fff; font-size: clamp(1.35rem, 3vw, 1.9rem); font-weight: 800; margin: 0; }
.page-lead { color: rgba(255, 255, 255, 0.85); margin: 8px 0 0; font-size: 0.97rem; }
.error-code { font-size: clamp(4rem, 12vw, 6rem); font-weight: 800; color: var(--kj-primary); line-height: 1; opacity: 0.9; }

/* ============================================================
   ARTIKEL (detail berita/halaman/potensi)
   ========================================================== */
.article-panel .article-body { padding: 26px 28px; }
.article-meta { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; padding-bottom: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--kj-border); }
.meta-item { color: var(--kj-muted); font-size: 0.85rem; display: inline-flex; align-items: center; gap: 6px; font-weight: 500; }
.article-featured { margin: 0 0 20px; }
.article-featured img { width: 100%; border-radius: 12px; }
.article-lead { font-size: 1.06rem; color: var(--kj-muted); line-height: 1.7; margin-bottom: 18px; }
.article-content { font-size: 1.02rem; line-height: 1.85; color: #26313D; overflow-wrap: break-word; }
.article-content p { margin-bottom: 1.05rem; }
.article-content h2 { font-size: 1.28rem; margin: 1.5rem 0 0.8rem; }
.article-content h3 { font-size: 1.12rem; margin: 1.3rem 0 0.7rem; }
.article-content a { color: var(--kj-primary); text-decoration: underline; }
.article-content img { max-width: 100%; height: auto; border-radius: 12px; margin: 1.1rem auto; display: block; }
.article-content ul, .article-content ol { padding-left: 1.5rem; margin-bottom: 1.05rem; }
.article-content li { margin-bottom: 0.4rem; }
.article-content blockquote {
  border-left: 4px solid var(--kj-green); background: #F0F8F3;
  padding: 14px 20px; border-radius: 0 10px 10px 0; font-style: italic;
  margin: 1.1rem 0; color: #2E4A3B;
}
.article-content table { width: 100%; border-collapse: collapse; margin: 1.1rem 0; font-size: 0.94rem; }
.article-content th, .article-content td { border: 1px solid var(--kj-border); padding: 9px 12px; }
.article-content th { background: #F3F6F9; }
.announce-heading { font-size: 1.15rem; line-height: 1.45; }
.announce-content { font-size: 0.98rem; }

/* ============================================================
   GALERI + LIGHTBOX
   ========================================================== */
.album-card {
  position: relative; display: block; border-radius: var(--kj-radius); overflow: hidden;
  box-shadow: var(--kj-shadow); aspect-ratio: 4 / 3; color: #fff; background: var(--kj-primary-dark);
}
.album-card img, .album-card .thumb-fallback { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.album-card::after {
  content: ""; position: absolute; inset: 0; z-index: 1;
  background: linear-gradient(180deg, rgba(18, 59, 96, 0) 30%, rgba(18, 59, 96, 0.88) 100%);
}
.album-card:hover img, .album-card:hover .thumb-fallback { transform: scale(1.04); }
.album-body { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 18px; }
.album-count { position: absolute; right: 14px; top: 14px; z-index: 2; background: rgba(255, 255, 255, 0.92); color: var(--kj-primary-dark); font-size: 0.74rem; font-weight: 700; padding: 4px 11px; border-radius: 999px; }
.album-title { font-size: 1.05rem; color: #fff; margin: 0 0 4px; }
.album-meta { font-size: 0.8rem; color: rgba(255, 255, 255, 0.85); display: inline-flex; gap: 5px; align-items: center; }

.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.gallery-item {
  position: relative; border-radius: 12px; overflow: hidden; aspect-ratio: 4 / 3;
  cursor: zoom-in; border: 0; padding: 0; background: #E7EEF5; width: 100%;
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform 0.25s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-zoom {
  position: absolute; right: 10px; bottom: 10px; width: 34px; height: 34px;
  background: rgba(18, 59, 96, 0.82); color: #fff; border-radius: 50%;
  display: flex; align-items: center; justify-content: center; font-size: 0.95rem;
  opacity: 0; transition: opacity 0.2s ease;
}
.gallery-item:hover .gallery-zoom { opacity: 1; }
.gallery-caption {
  position: absolute; left: 0; right: 0; bottom: 0; padding: 22px 12px 10px;
  background: linear-gradient(180deg, transparent, rgba(18, 59, 96, 0.85));
  color: #fff; font-size: 0.78rem; text-align: left;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Lightbox (dibuat oleh main.js) */
.lightbox { position: fixed; inset: 0; z-index: 2050; background: rgba(10, 26, 42, 0.94); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 20px; }
.lightbox img { max-width: 94vw; max-height: 78vh; border-radius: 10px; box-shadow: 0 24px 70px rgba(0, 0, 0, 0.55); }
.lightbox-caption { color: #fff; margin-top: 14px; font-size: 0.92rem; text-align: center; max-width: 700px; }
.lightbox-counter { color: rgba(255, 255, 255, 0.7); font-size: 0.8rem; margin-top: 4px; }
.lightbox-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 46px; height: 46px; border-radius: 50%; border: 0;
  background: rgba(255, 255, 255, 0.14); color: #fff; font-size: 1.25rem;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.lightbox-btn:hover { background: rgba(255, 255, 255, 0.3); }
.lightbox-prev { left: 14px; }
.lightbox-next { right: 14px; }
.lightbox-close { position: absolute; top: 16px; right: 16px; }
@media (max-width: 575.98px) { .lightbox-btn { width: 38px; height: 38px; } }

/* ============================================================
   DOKUMEN
   ========================================================== */
.filter-bar { background: #fff; border: 1px solid var(--kj-border); border-radius: var(--kj-radius); padding: 14px 16px; box-shadow: var(--kj-shadow); }
.table-doc-head th { background: #F3F6F9; font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.04em; color: var(--kj-muted); }
.document-tile {
  display: flex; align-items: center; gap: 12px; background: #F8FAFD;
  border: 1px solid var(--kj-border); border-radius: 12px; padding: 13px 15px;
  color: var(--kj-text); height: 100%; transition: all 0.15s ease;
}
.document-tile:hover { border-color: var(--kj-primary); box-shadow: var(--kj-shadow); color: var(--kj-primary-dark); }
.document-icon { font-size: 1.9rem; color: #C0392B; flex-shrink: 0; }
.document-info { min-width: 0; flex: 1; }
.document-name { font-weight: 700; font-size: 0.92rem; line-height: 1.35; margin-bottom: 3px; }
.document-meta { color: var(--kj-muted); font-size: 0.78rem; }
.document-download { color: var(--kj-primary); font-size: 1.1rem; flex-shrink: 0; }

/* ============================================================
   KONTAK
   ========================================================== */
.contact-item { display: flex; gap: 14px; padding: 13px 0; border-bottom: 1px dashed var(--kj-border); }
.contact-item:last-of-type { border-bottom: 0; }
.contact-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  background: #EAF2FA; color: var(--kj-primary); font-size: 1.15rem;
  display: flex; align-items: center; justify-content: center;
}
.contact-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--kj-muted); margin-bottom: 3px; }
.contact-value { font-size: 0.95rem; font-weight: 500; line-height: 1.55; }
.contact-value a { color: var(--kj-primary); }
.hp-field { position: absolute !important; left: -9999px !important; top: -9999px !important; opacity: 0; height: 0; overflow: hidden; }

/* ============================================================
   FOOTER (BIRU TUA)
   ========================================================== */
.site-footer { background: var(--kj-primary-dark); color: rgba(255, 255, 255, 0.78); }
.footer-top { padding: 50px 0 38px; }
.footer-brand-name { color: #fff; font-weight: 800; font-size: 1.12rem; }
.footer-brand-sub { color: rgba(255, 255, 255, 0.65); font-size: 0.8rem; letter-spacing: 0.04em; }
.footer-about { font-size: 0.9rem; line-height: 1.7; color: rgba(255, 255, 255, 0.72); }
.footer-contact li { display: flex; gap: 10px; margin-bottom: 10px; font-size: 0.88rem; line-height: 1.55; }
.footer-contact i { color: #7FB4DC; flex-shrink: 0; margin-top: 3px; }
.footer-heading { color: #fff; font-weight: 700; font-size: 0.95rem; position: relative; padding-bottom: 10px; margin-bottom: 16px; }
.footer-heading::after { content: ""; position: absolute; left: 0; bottom: 0; width: 36px; height: 3px; background: var(--kj-green); border-radius: 2px; }
.footer-links li { margin-bottom: 2px; }
.footer-links a { color: rgba(255, 255, 255, 0.75); font-size: 0.9rem; display: inline-flex; align-items: center; gap: 6px; padding: 5px 0; transition: all 0.15s ease; }
.footer-links a i { font-size: 0.7rem; color: var(--kj-green); }
.footer-links a:hover { color: #fff; padding-left: 4px; }
.footer-map { border-radius: 12px; overflow: hidden; border: 1px solid rgba(255, 255, 255, 0.18); background: #0E3355; min-height: 190px; }
.footer-map iframe { width: 100%; height: 210px; border: 0; display: block; filter: saturate(0.85); }
.footer-map-empty { display: flex; align-items: center; justify-content: center; color: rgba(255, 255, 255, 0.55); }
.footer-social { display: flex; gap: 10px; align-items: center; }
.social-btn {
  width: 40px; height: 40px; border-radius: 50%; background: rgba(255, 255, 255, 0.12);
  color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 1.05rem;
  transition: all 0.18s ease;
}
.social-btn:hover { background: var(--kj-green); color: #fff; transform: translateY(-2px); }
.footer-social-empty { color: rgba(255, 255, 255, 0.5); font-size: 0.85rem; }
.footer-bottom { background: #0C2C49; padding: 15px 0; text-align: center; font-size: 0.84rem; color: rgba(255, 255, 255, 0.62); border-top: 1px solid rgba(255, 255, 255, 0.08); }

/* ============================================================
   LAIN-LAIN
   ========================================================== */
.btn-to-top {
  position: fixed; right: 22px; bottom: 22px; z-index: 1040;
  width: 44px; height: 44px; border-radius: 50%; border: 0;
  background: var(--kj-primary); color: #fff; font-size: 1.05rem;
  box-shadow: 0 8px 22px rgba(18, 59, 96, 0.4); cursor: pointer;
  opacity: 0; visibility: hidden; transform: translateY(8px);
  transition: all 0.25s ease;
}
.btn-to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.btn-to-top:hover { background: var(--kj-primary-dark); }
.table-budget th { background: #F3F6F9; }
@media print {
  .topbar, .site-nav, .site-footer, .btn-to-top, .runningtext, .hero-carousel { display: none !important; }
  body { background: #fff; }
}

/* Hormati preferensi pengguna yang mengurangi animasi */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .news-card:hover, .potential-card:hover { transform: none; }
}
