:root {
  --primary-base-color: #008BA9;
  --primary-darken-color: #006A82;
  --secondary-base-color: #D08E0D;
  --secondary-darken-color: #946200;
  --accent-base-color: #00BA88;
  --accent-darken-color: #00966D;
}

/* Marquee CSS Animation (pengganti tag <marquee> yang dihapus Chrome 146+) */
.marquee-track {
    display: flex;
    width: max-content;
    animation: marquee-scroll 20s linear infinite;
}

.marquee-track:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    0%   { transform: translateX(0); }
    100% { transform: translateX(-50%); }
}

/* Marquee vertikal - agenda lama */
.marquee-vertical-wrapper {
    overflow: hidden;
    position: relative;
}

.marquee-track-vertical {
    animation: marquee-scroll-vertical 10s linear infinite;
}

.marquee-track-vertical:hover {
    animation-play-state: paused;
}

@keyframes marquee-scroll-vertical {
    0%   { transform: translateY(0); }
    100% { transform: translateY(-50%); }
}

/* =========================================================
   BERDAYA PREMIUM - visual enhancement layer
   Compatible approach: additive CSS; keeps existing Blade logic.
   ========================================================= */
:root {
  --em-ink: #132b45;
  --em-muted: #61748a;
  --em-primary: #2463eb;
  --em-primary-deep: #1746b8;
  --em-surface: rgba(255,255,255,.86);
  --em-border: rgba(148,163,184,.22);
  --em-shadow: 0 12px 34px rgba(15, 39, 70, .075);
  --em-radius: 20px;
}
html { scroll-behavior: smooth; }
body {
  color: var(--em-ink);
  background:
    radial-gradient(ellipse at 4% 0%, rgba(59,130,246,.075), transparent 35%),
    linear-gradient(180deg, #f7faff 0%, #f2f6fb 100%);
  -webkit-font-smoothing: antialiased;
}
a { transition: color .2s ease, background-color .2s ease, box-shadow .2s ease, transform .2s ease; }
header:not(.bd-nav) {
  overflow: hidden;
  border-radius: 0 0 28px 28px;
  box-shadow: 0 18px 50px rgba(9,35,66,.16);
  background-position: center;
}
header .absolute.bg-gray-800.bg-opacity-60 {
  background: linear-gradient(115deg, rgba(8,28,52,.82), rgba(13,49,83,.43) 60%, rgba(12,35,62,.28));
  backdrop-filter: blur(2px);
}
header a, header a:hover { text-decoration: none; }
header .text-h2 {
  font-weight: 800;
  letter-spacing: -.035em;
  text-shadow: 0 2px 18px rgba(0,0,0,.18);
}
nav, .main-menu, .category-menu { backdrop-filter: blur(16px); }
.container { max-width: 1240px; margin-left: auto; margin-right: auto; }
main, aside, .bg-white.rounded-lg, .shadow, .rounded-lg {
  transition: box-shadow .25s ease, border-color .25s ease, transform .25s ease;
}
main, .bg-white.rounded-lg, .bg-white.rounded-xl {
  border: 1px solid var(--em-border);
  box-shadow: var(--em-shadow);
  border-radius: var(--em-radius);
}
main { background: var(--em-surface); backdrop-filter: blur(12px); }
/* Beranda (main.bd-main): hero tampil penuh tanpa bingkai kartu —
   border atas main sebelumnya tampak sebagai garis putih di atas
   gambar slider. */
main.bd-main {
  border: none;
  box-shadow: none;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
}
article, .article, .card, .widget, .sidebar-widget {
  border-radius: 16px;
}
article img, .article img, .sliderx img, .owl-carousel img {
  border-radius: 14px;
}
button, .btn, input[type="submit"], a.button {
  border-radius: 12px;
  transition: transform .2s ease, box-shadow .2s ease, filter .2s ease;
}
button:hover, .btn:hover, input[type="submit"]:hover, a.button:hover {
  transform: translateY(-1px);
  box-shadow: 0 8px 20px rgba(36,99,235,.16);
}
input:not([type=checkbox]):not([type=radio]):not([type=submit]),
select, textarea {
  border-radius: 12px;
  border-color: #dbe4ef;
  transition: border-color .2s ease, box-shadow .2s ease;
}
input:focus, select:focus, textarea:focus {
  outline: none;
  border-color: #80a8ff;
  box-shadow: 0 0 0 4px rgba(36,99,235,.10);
}
.sliderx { border-radius: 22px; overflow: hidden; box-shadow: var(--em-shadow); }
.sliderx .owl-carousel figure { position: relative; }
.sliderx .owl-carousel figure:after {
  content: "";
  position: absolute;
  inset: 35% 0 0;
  background: linear-gradient(transparent, rgba(5,20,39,.72));
  pointer-events: none;
}
.sliderx .owl-carousel figure > div { z-index: 2; background: transparent; }
.sliderx .owl-carousel figure > div a { text-shadow: 0 2px 12px rgba(0,0,0,.35); }
footer { margin-top: 28px; }
footer > div {
  border-radius: 22px 22px 0 0 !important;
  background: linear-gradient(135deg, #112b49, #1c4267) !important;
  box-shadow: 0 -8px 30px rgba(15,39,70,.07);
}
.marquee-track { align-items: center; }
table { border-collapse: separate; border-spacing: 0; }
table thead th { background: #f3f7fc; color: #314a66; font-weight: 700; }
table th:first-child { border-radius: 10px 0 0 10px; }
table th:last-child { border-radius: 0 10px 10px 0; }
tbody tr:hover { background-color: rgba(59,130,246,.045); }
img { max-width: 100%; height: auto; }
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(36,99,235,.55);
  outline-offset: 3px;
}
.em-reveal { opacity: 0; transform: translateY(12px); transition: opacity .55s ease, transform .55s ease; }
.em-reveal.em-visible { opacity: 1; transform: translateY(0); }

/* =========================================================
   NEXT-GEN EXECUTIVE LOADING SCREEN (Royal Gold & Batik Sogan)
   ========================================================= */
#berdaya-loading {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  text-align: center;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 50% 38%, rgba(254, 240, 138, 0.45) 0%, rgba(251, 191, 36, 0.22) 35%, rgba(180, 83, 9, 0.08) 65%, transparent 85%),
    linear-gradient(180deg, #fffcf5 0%, #fcf3dd 32%, #f8e5b6 68%, #edd293 100%);
  color: #2b1808;
  opacity: 1;
  visibility: visible;
  transition: opacity .45s cubic-bezier(.16, 1, .3, 1), visibility .45s ease;
  overflow: hidden;
}

#berdaya-loading.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

/* Authentic Indonesian Batik Kawung & Truntum Pattern Overlay */
.bd-loader-batik-pattern {
  position: absolute;
  inset: 0;
  background-image: url("data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHdpZHRoPSI1NiIgaGVpZ2h0PSI1NiIgdmlld0JveD0iMCAwIDU2IDU2Ij4KICA8ZGVmcz4KICAgIDxyYWRpYWxHcmFkaWVudCBpZD0iZyIgY3g9IjUwJSIgY3k9IjUwJSIgcj0iNTAlIj4KICAgICAgPHN0b3Agb2Zmc2V0PSIwJSIgc3RvcC1jb2xvcj0iI2ZiYmYyNCIgc3RvcC1vcGFjaXR5PSIwLjI1Ii8+CiAgICAgIDxzdG9wIG9mZnNldD0iMTAwJSIgc3RvcC1jb2xvcj0iI2I0NTMwOSIgc3RvcC1vcGFjaXR5PSIwLjA1Ii8+CiAgICA8L3JhZGlhbEdyYWRpZW50PgogIDwvZGVmcz4KICA8IS0tIEthd3VuZyBtYWluIHJpbmdzIC0tPgogIDxnIGZpbGw9Im5vbmUiIHN0cm9rZT0iI2I0NTMwOSIgc3RvcC1vcGFjaXR5PSIwLjMyIiBzdHJva2Utd2lkdGg9IjEuMiI+CiAgICA8Y2lyY2xlIGN4PSIyOCIgY3k9IjI4IiByPSIxOSIvPgogICAgPGNpcmNsZSBjeD0iMjgiIGN5PSIyOCIgcj0iOSIvPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjAiIHI9IjE5Ii8+CiAgICA8Y2lyY2xlIGN4PSI1NiIgY3k9IjAiIHI9IjE5Ii8+CiAgICA8Y2lyY2xlIGN4PSIwIiBjeT0iNTYiIHI9IjE5Ii8+CiAgICA8Y2lyY2xlIGN4PSI1NiIgY3k9IjU2IiByPSIxOSIvPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjAiIHI9IjkiLz4KICAgIDxjaXJjbGUgY3g9IjU2IiBjeT0iMCIgcj0iOSIvPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjU2IiByPSI5Ii8+CiAgICA8Y2lyY2xlIGN4PSI1NiIgY3k9IjU2IiByPSI5Ii8+CiAgPC9nPgogIDwhLS0gS2F3dW5nIGlubmVyIHBldGFsIGZpbGxzIC0tPgogIDxnIGZpbGw9InVybCgjZykiPgogICAgPGNpcmNsZSBjeD0iMjgiIGN5PSIyOCIgcj0iMTkiLz4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSIwIiByPSIxOSIvPgogICAgPGNpcmNsZSBjeD0iNTYiIGN5PSIwIiByPSIxOSIvPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjU2IiByPSIxOSIvPgogICAgPGNpcmNsZSBjeD0iNTYiIGN5PSI1NiIgcj0iMTkiLz4KICA8L2c+CiAgPCEtLSBUcnVudHVtIGdvbGQgYWNjZW50cyAmIGRvdHMgLS0+CiAgPGcgZmlsbD0iI2Q5NzcwNiIgZmlsbC1vcGFjaXR5PSIwLjQ1Ij4KICAgIDxjaXJjbGUgY3g9IjI4IiBjeT0iMjgiIHI9IjMuMiIvPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjAiIHI9IjMuMiIvPgogICAgPGNpcmNsZSBjeD0iNTYiIGN5PSIwIiByPSIzLjIiLz4KICAgIDxjaXJjbGUgY3g9IjAiIGN5PSI1NiIgcj0iMy4yIi8+CiAgICA8Y2lyY2xlIGN4PSI1NiIgY3k9IjU2IiByPSIzLjIiLz4KICAgIDxjaXJjbGUgY3g9IjI4IiBjeT0iMTQiIHI9IjEuNiIvPgogICAgPGNpcmNsZSBjeD0iMjgiIGN5PSI0MiIgcj0iMS42Ii8+CiAgICA8Y2lyY2xlIGN4PSIxNCIgY3k9IjI4IiByPSIxLjYiLz4KICAgIDxjaXJjbGUgY3g9IjQyIiBjeT0iMjgiIHI9IjEuNiIvPgogICAgPGNpcmNsZSBjeD0iMCIgY3k9IjI4IiByPSIyIi8+CiAgICA8Y2lyY2xlIGN4PSI1NiIgY3k9IjI4IiByPSIyIi8+CiAgICA8Y2lyY2xlIGN4PSIyOCIgY3k9IjAiIHI9IjIiLz4KICAgIDxjaXJjbGUgY3g9IjI4IiBjeT0iNTYiIHI9IjIiLz4KICA8L2c+CiAgPCEtLSBEaWFtb25kIGNyb3NzIHN0aXRjaCAtLT4KICA8ZyBzdHJva2U9IiM3ODM1MGYiIHN0cm9rZS1vcGFjaXR5PSIwLjI1IiBzdHJva2Utd2lkdGg9IjAuOCI+CiAgICA8bGluZSB4MT0iMjgiIHkxPSIyMyIgeDI9IjI4IiB5Mj0iMzMiLz4KICAgIDxsaW5lIHgxPSIyMyIgeTE9IjI4IiB4Mj0iMzMiIHkyPSIyOCIvPgogICAgPGxpbmUgeDE9IjAiIHkxPSIyNSIgeDI9IjAiIHkyPSIzMSIvPgogICAgPGxpbmUgeDE9IjU2IiB5MT0iMjUiIHgyPSI1NiIgeTI9IjMxIi8+CiAgICA8bGluZSB4MT0iMjUiIHkxPSIwIiB4Mj0iMzEiIHkyPSIwIi8+CiAgICA8bGluZSB4MT0iMjUiIHkxPSI1NiIgeDI9IjMxIiB5Mj0iNTYiLz4KICA8L2c+Cjwvc3ZnPg==");
  background-size: 56px 56px;
  background-repeat: repeat;
  opacity: 0.65;
  pointer-events: none;
  animation: bdLoaderBatikFloat 50s linear infinite;
}

@keyframes bdLoaderBatikFloat {
  from { background-position: 0 0; }
  to { background-position: 56px 56px; }
}

/* Ambient Radiant Gold Glow */
.bd-loader-glow {
  position: absolute;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.42) 0%, rgba(217, 119, 6, 0.22) 40%, rgba(120, 53, 15, 0.08) 65%, transparent 75%);
  filter: blur(48px);
  pointer-events: none;
  animation: bdLoaderGlowPulse 4s ease-in-out infinite;
}

@keyframes bdLoaderGlowPulse {
  0%, 100% { transform: scale(0.95); opacity: 0.8; }
  50% { transform: scale(1.18); opacity: 1; }
}

.bd-loader-core {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  animation: bdLoaderEnter .6s cubic-bezier(.16, 1, .3, 1) both;
}

@keyframes bdLoaderEnter {
  from { opacity: 0; transform: translateY(18px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

/* Orbital Rings Container */
.bd-loader-orbits {
  position: relative;
  width: 144px;
  height: 144px;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Outer Ring (Clockwise vivid metallic gold conic gradient) */
.bd-loader-ring--outer {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0deg, #b45309 140deg, #d97706 220deg, #f59e0b 290deg, #fbbf24 340deg, #fef08a 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3.5px));
  mask: radial-gradient(farthest-side, transparent calc(100% - 3.5px), #000 calc(100% - 3.5px));
  box-shadow: 0 0 18px rgba(245, 158, 11, 0.45);
  animation: bdSpin 1.35s linear infinite;
}

/* Inner Ring (Counter-clockwise dashed Batik Sogan ring) */
.bd-loader-ring--inner {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 2px dashed #b45309;
  opacity: 0.75;
  animation: bdSpinReverse 3.8s linear infinite;
}

/* Pulse Wave Aura */
.bd-loader-ring--pulse {
  position: absolute;
  inset: -8px;
  border-radius: 50%;
  border: 1.5px solid rgba(245, 158, 11, 0.45);
  box-shadow: 0 0 16px rgba(245, 158, 11, 0.25);
  animation: bdPulseWave 2.2s cubic-bezier(0.16, 1, 0.3, 1) infinite;
}

@keyframes bdSpin {
  to { transform: rotate(360deg); }
}

@keyframes bdSpinReverse {
  to { transform: rotate(-360deg); }
}

@keyframes bdPulseWave {
  0% { transform: scale(0.9); opacity: 0.85; }
  100% { transform: scale(1.32); opacity: 0; }
}

/* Center Pure White Glass Orb with Royal Gold & Sogan Rim */
.bd-loader-mark {
  position: relative;
  z-index: 2;
  width: 92px;
  height: 92px;
  border-radius: 50%;
  background: #ffffff;
  border: 3px solid #d4af37;
  box-shadow: 0 12px 32px rgba(180, 83, 9, 0.25), 0 0 20px rgba(251, 191, 36, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  animation: bdLoaderLevitate 3s ease-in-out infinite;
}

@keyframes bdLoaderLevitate {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-6px); }
}

.bd-loader-mark img {
  width: 56px;
  height: 56px;
  object-fit: contain;
  filter: drop-shadow(0 3px 6px rgba(0, 0, 0, 0.12));
}

/* Typography & Info */
.bd-loader-info {
  margin-top: 24px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
}

.bd-loader-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 14px;
  background: rgba(254, 243, 199, 0.85);
  backdrop-filter: blur(4px);
  border: 1px solid #d97706;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: #92400e;
  box-shadow: 0 2px 8px rgba(180, 83, 9, 0.12);
  margin-bottom: 3px;
}

.bd-loader-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #d97706;
  box-shadow: 0 0 8px #d97706;
  animation: bdLoaderDotBlink 1.4s ease-in-out infinite;
}

@keyframes bdLoaderDotBlink {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.75); }
}

.bd-loader-title {
  margin: 0;
  font-size: 19px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #2b1808;
}

.bd-loader-motto {
  margin: 2px 0 0;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #b45309;
}

.bd-loader-theme {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin: 8px 0 0;
  padding: 3px 10px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #7c2d12;
  background: rgba(212, 154, 69, 0.16);
  border: 1px solid rgba(212, 154, 69, 0.45);
  border-radius: 9999px;
}
.bd-loader-theme i { font-size: 9px; }

.bd-loader-subtitle {
  margin: 4px 0 0;
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.02em;
  color: #6d4825;
  transition: opacity 0.25s ease;
}

/* Warm Liquid Gold Flow Progress Bar */
.bd-loader-bar-wrap {
  margin-top: 22px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.bd-loader-bar {
  position: relative;
  width: 180px;
  height: 4.5px;
  background: rgba(217, 119, 6, 0.2);
  border-radius: 9999px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(120, 53, 15, 0.12) inset;
}

.bd-loader-bar-fill {
  position: absolute;
  top: 0;
  left: 0;
  height: 100%;
  width: 45%;
  border-radius: 9999px;
  background: linear-gradient(90deg, #b45309 0%, #d97706 40%, #fbbf24 80%, #fef08a 100%);
  box-shadow: 0 0 12px rgba(245, 158, 11, 0.65);
  animation: bdLoaderFlow 1.6s cubic-bezier(0.65, 0, 0.35, 1) infinite;
}

@keyframes bdLoaderFlow {
  0% { left: -50%; width: 30%; }
  50% { width: 55%; }
  100% { left: 110%; width: 30%; }
}

/* 3 Pulsing Amber/Gold Dots */
.bd-loader-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bd-loader-dots span {
  width: 5px;
  height: 5px;
  border-radius: 9999px;
  background: #d97706;
  opacity: 0.4;
  animation: bdLoaderDotSequence 1.2s infinite ease-in-out;
}

.bd-loader-dots span:nth-child(2) { animation-delay: 0.2s; }
.bd-loader-dots span:nth-child(3) { animation-delay: 0.4s; }

@keyframes bdLoaderDotSequence {
  0%, 100% { transform: scale(0.8); opacity: 0.3; }
  50% { transform: scale(1.3); opacity: 1; }
}

/* Spinner kecil untuk data yang dimuat via AJAX (disuntik ke dalam tabel). */
.bd-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 26px 12px;
  width: 100%;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}

.bd-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--primary-base-color);
  animation: bd-pulse 1.05s ease-in-out infinite;
}

.bd-dots span:nth-child(2) { background: var(--accent-base-color); animation-delay: .15s; }
.bd-dots span:nth-child(3) { background: var(--secondary-base-color); animation-delay: .30s; }

.bd-dots em {
  margin-left: 6px;
  font-style: normal;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--em-muted, #61748a);
}

@keyframes bd-pulse {
  0%, 80%, 100% { transform: translateY(0) scale(.85); opacity: .35; }
  40%           { transform: translateY(-7px) scale(1); opacity: 1; }
}

/* =========================================================
   Tampilan beranda baru.
   Ditulis CSS murni dengan prefix .bd- karena build
   style.min.css prebuilt/purged -- utility Tailwind baru
   tidak akan ikut ter-compile.
   ========================================================= */
.bd-wrap { max-width: 1240px; margin: 0 auto; padding: 0 24px !important; }
.bd-script { font-family: Caveat, "Segoe Script", "Brush Script MT", cursive; }

/* =========================================================
   Modern Government Header System
   ========================================================= */

/* ---------- Topbar ---------- */
.bd-topbar {
  background: linear-gradient(135deg, #071e26 0%, #0c333f 45%, #0d5563 100%);
  color: #e2f0f4;
  font-family: 'Plus Jakarta Sans', Poppins, system-ui, -apple-system, sans-serif;
  font-size: 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 60;
}
.bd-topbar__in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 8px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

/* Topbar Live Datetime Pill Widget */
.bd-topbar__datetime {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 4px 12px;
  gap: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  color: #e2f0f4;
}
.bd-topbar__datetime:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(56, 189, 248, 0.45);
  box-shadow: 0 0 12px rgba(56, 189, 248, 0.25);
}
.bd-topbar__date-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
}
.bd-topbar__cal-icon {
  color: #38bdf8;
  font-size: 11.5px;
}
.bd-topbar__day {
  font-weight: 700;
  color: #ffffff;
  letter-spacing: -0.01em;
}
.bd-topbar__date-text {
  font-weight: 500;
  color: #cbd5e1;
}
.bd-topbar__time-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-left: 1px solid rgba(255, 255, 255, 0.22);
  padding-left: 10px;
  font-size: 11.5px;
}
.bd-topbar__clock-icon {
  color: #34d399;
  font-size: 11.5px;
}
.bd-topbar__clock-digits {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 12px;
  font-weight: 700;
  color: #ffffff;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.04em;
}
.bd-topbar__tz-pill {
  font-size: 9.5px;
  font-weight: 700;
  color: #0284c7;
  background: #e0f2fe;
  padding: 1px 6px;
  border-radius: 4px;
  line-height: 1.3;
  letter-spacing: 0.03em;
}
.bd-topbar__list {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 0;
  padding: 0;
  list-style: none;
}
.bd-topbar__item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #d1e7ed;
  font-weight: 500;
  max-width: 480px;
}
.bd-topbar__item-icon {
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.1);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  color: #5eead4;
  flex-shrink: 0;
}
.bd-topbar__item-text {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bd-topbar__link {
  color: #d1e7ed;
  text-decoration: none;
  transition: color 0.18s ease;
}
.bd-topbar__link:hover {
  color: #ffffff;
  text-decoration: underline;
}
.bd-topbar__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}
.bd-topbar__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.bd-topbar__btn--primary {
  background: linear-gradient(135deg, #0284c7 0%, #008ba9 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
  border: 1px solid transparent;
}
.bd-topbar__btn--primary:hover {
  background: linear-gradient(135deg, #0369a1 0%, #007690 100%);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.45);
  color: #ffffff;
}
.bd-topbar__btn--outline {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #eaf6f9;
  backdrop-filter: blur(4px);
}
.bd-topbar__btn--outline:hover {
  background: rgba(255, 255, 255, 0.18);
  border-color: rgba(255, 255, 255, 0.35);
  color: #ffffff;
  transform: translateY(-1px);
}
.bd-topbar__btn--ghost {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #eaf6f9;
}
.bd-topbar__btn--ghost:hover {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  transform: translateY(-1px);
}
.bd-topbar__search {
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 9999px;
  padding: 3px 4px 3px 12px;
  gap: 6px;
  transition: all 0.25s ease;
}
.bd-topbar__search:focus-within {
  background: rgba(255, 255, 255, 0.2);
  border-color: #5eead4;
  box-shadow: 0 0 0 2px rgba(94, 234, 212, 0.2);
}
.bd-topbar__search input {
  width: 130px;
  border: 0;
  outline: 0;
  background: transparent;
  color: #ffffff;
  font-size: 12px;
  font-family: inherit;
  transition: width 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.bd-topbar__search input:focus {
  width: 175px;
}
.bd-topbar__search input::placeholder {
  color: #b9dbe4;
}
.bd-topbar__search button {
  border: 0;
  background: linear-gradient(135deg, #0284c7 0%, var(--primary-base-color, #008ba9) 100%);
  color: #ffffff;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  transition: transform 0.18s ease;
}
.bd-topbar__search button:hover {
  transform: scale(1.08);
}

/* ---------- Main Header Branding ---------- */
.bd-nav {
  position: relative;
  background: #12556a;
  background-image: radial-gradient(rgba(13, 85, 99, 0.05) 1px, transparent 1px);
  background-size: 24px 24px;
  border-bottom: none !important;
  font-family: 'Plus Jakarta Sans', Poppins, system-ui, -apple-system, sans-serif;
  overflow: visible !important;
}
header.em-scrolled {
  box-shadow: none;
}
.bd-nav__in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  overflow: visible !important;
}
.bd-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  text-decoration: none;
  min-width: 0;
  transition: opacity 0.2s ease;
}
.bd-brand:hover {
  opacity: 0.96;
}
.bd-brand__logo-wrap {
  width: 74px;
  height: 74px;
  border-radius: 16px;
  background: transparent;
  border: none;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
  flex-shrink: 0;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease;
}
.bd-brand:hover .bd-brand__logo-wrap {
  transform: translateY(-2px);
  box-shadow: 0 10px 22px -3px rgba(13, 85, 99, 0.18);
}
.bd-brand__logo {
  width: 100%;
  height: 100%;
  object-fit: contain;
  animation: bdLogoKedip 1.6s ease-in-out infinite;
  will-change: opacity;
}
@keyframes bdLogoKedip {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.22; }
}
@media (prefers-reduced-motion: reduce) {
  .bd-brand__logo {
    animation: none;
  }
}
.bd-brand__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}
.bd-brand__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #bae6fd;
  background: none;
  border: none;
  padding: 0;
  border-radius: 0;
  width: fit-content;
  margin-bottom: 4px;
}
.bd-brand__badge-pulse {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #38bdf8;
  box-shadow: 0 0 6px #38bdf8;
  animation: bdBrandPulse 2s infinite;
}
@keyframes bdBrandPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(0.85); }
}
.bd-brand__name {
  margin: 0;
  font-size: 22px;
  font-weight: 800;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  text-align: left;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: #e2e8f0;
}
.bd-brand__name-prefix,
.bd-brand__name-desa {
  display: inline-block;
  color: #e2e8f0;
  font-weight: 800;
}
@keyframes bdBrandNameFlow {
  0% {
    background-position: 0% 50%;
  }
  100% {
    background-position: 100% 50%;
  }
}
@keyframes bdBrandNameBob {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
  100% {
    transform: translateY(0);
  }
}
.bd-brand__sub {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  font-size: 12px;
  color: #64748b;
  line-height: 1.35;
  margin-top: 3px;
  text-align: left;
}
.bd-brand__sub-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-weight: 500;
}
.bd-brand__sub-item i {
  color: #0284c7;
  font-size: 11px;
}
.bd-brand__sub-sep {
  color: #cbd5e1;
  font-size: 10px;
}

/* Quick Info Badges di Kanan Header */
.bd-nav__quickinfo {
  display: none;
  align-items: center;
  gap: 14px;
  flex-shrink: 0;
}
.bd-quickcard {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  padding: 8px 14px;
  border-radius: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.03);
  transition: all 0.2s ease;
}
.bd-quickcard:hover {
  border-color: #cbd5e1;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
}
.bd-quickcard__icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 15px;
  flex-shrink: 0;
}
.bd-quickcard__icon.is-time {
  background: #eff6ff;
  color: #0284c7;
}
.bd-quickcard__icon.is-contact {
  background: #ecfdf5;
  color: #059669;
}
.bd-quickcard__info {
  display: flex;
  flex-direction: column;
}
.bd-quickcard__label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}
.bd-quickcard__val {
  font-size: 12.5px;
  font-weight: 600;
  color: #1e293b;
}
.bd-quickcard__val a {
  color: #1e293b;
  text-decoration: none;
}
.bd-quickcard__val a:hover {
  color: #0284c7;
}

/* Big Header CTA Button */
.bd-navcta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, #0284c7 0%, var(--primary-base-color, #008ba9) 100%);
  color: #ffffff;
  padding: 8px 16px;
  border-radius: 14px;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.28);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.bd-navcta:hover {
  background: linear-gradient(135deg, #0369a1 0%, #007690 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(2, 132, 199, 0.38);
  color: #ffffff;
}
.bd-navcta__icon {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #ffffff;
}
.bd-navcta__body {
  display: flex;
  flex-direction: column;
}
.bd-navcta__title {
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.2;
}
.bd-navcta__desc {
  font-size: 10.5px;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.2;
}
.bd-navcta__arrow {
  font-size: 11px;
  transition: transform 0.2s ease;
}
.bd-navcta:hover .bd-navcta__arrow {
  transform: translateX(3px);
}

/* ===== Kartu "Peringatan Hari Besar Nasional" (lebar alami, ringkas) ===== */
.bd-nav__quickinfo { flex: 0 0 auto; }
.bd-navcta--hari {
  gap: 12px;
  padding: 8px 12px 8px 10px;
  background: linear-gradient(135deg, #0d284b 0%, #153e6b 100%);
  box-shadow: 0 6px 18px -6px rgba(7, 23, 44, .45), 0 0 1px 1px rgba(255, 255, 255, .08) inset;
  align-items: center;
  min-height: 62px;
}
.bd-navcta--hari:hover { transform: translateY(-1px); }
.bd-navcta__datebox {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-width: 46px;
  padding: 4px 8px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .96);
  color: #0f2744;
  line-height: 1.05;
  box-shadow: 0 3px 10px rgba(2, 6, 23, .25);
}
.bd-navcta__date-num {
  font-size: 18px;
  font-weight: 800;
  letter-spacing: -.02em;
}
.bd-navcta__date-mon {
  font-size: 8.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .08em;
  color: #0369a1;
  margin-top: 1px;
  white-space: nowrap;
}
.bd-navcta--hari .bd-navcta__label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: #7dd3fc;
  line-height: 1.2;
}
.bd-navcta--hari .bd-navcta__label i { font-size: 9px; }
.bd-navcta--hari .bd-navcta__desc {
  font-size: 12.5px;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.3;
  margin-top: 2px;
  white-space: normal;
  max-width: 300px;
}
.bd-navcta__count {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .07em;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(56, 189, 248, .16);
  border: 1px solid rgba(56, 189, 248, .4);
  color: #e0f2fe;
  white-space: nowrap;
}

/* Kartu jam layanan & kontak di footer */
.bd-footer__quickinfo {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}
.bd-footer__quickinfo .bd-quickcard { padding: 7px 12px; border-radius: 12px; }

/* ---------- Modern Sticky Menubar ---------- */
.bd-menubar {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
  font-family: 'Plus Jakarta Sans', Poppins, system-ui, -apple-system, sans-serif;
  overflow: visible !important;
  transition: box-shadow 0.2s ease;
}
.bd-menubar__in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 24px !important;
  min-height: 52px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  overflow: visible !important;
}

/* Desktop Navigation Menu */
.bd-menu {
  display: none;
  list-style: none;
  margin: 0;
  padding: 0;
  gap: 4px;
}
.bd-menu li {
  position: relative;
}
.bd-menu__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 13px;
  font-family: 'Plus Jakarta Sans', Poppins, system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #334155;
  text-decoration: none;
  border-radius: 9px;
  transition: all 0.18s cubic-bezier(0.16, 1, 0.3, 1);
}
.bd-menu__icon {
  font-size: 13px;
  color: #64748b;
  transition: color 0.18s ease;
}
.bd-menu__arrow {
  font-size: 9.5px;
  color: #94a3b8;
  transition: transform 0.22s ease, color 0.18s ease;
}
.bd-menu > li:hover > .bd-menu__link,
.bd-menu > li.is-open > .bd-menu__link {
  background: #f0f9ff;
  color: #0284c7;
}
.bd-menu > li:hover > .bd-menu__link .bd-menu__icon,
.bd-menu > li:hover > .bd-menu__link .bd-menu__arrow,
.bd-menu > li.is-open > .bd-menu__link .bd-menu__arrow {
  color: #0284c7;
}
.bd-menu > li.is-open > .bd-menu__link .bd-menu__arrow {
  transform: rotate(180deg);
}
.bd-menu > li.is-active > .bd-menu__link {
  background: transparent;
  color: #e2e8f0;
  box-shadow: none;
}
.bd-menu > li.is-active > .bd-menu__link .bd-menu__icon {
  color: #e2e8f0;
}

/* Desktop Dropdown Menu */
.bd-dropdown-menu {
  display: none;
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  min-width: 240px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  box-shadow: 0 20px 30px -8px rgba(15, 23, 42, 0.12), 0 8px 12px -6px rgba(15, 23, 42, 0.08);
  z-index: 100;
  animation: bdDropdownFade 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes bdDropdownFade {
  0% { opacity: 0; transform: translateY(-6px); }
  100% { opacity: 1; transform: translateY(0); }
}
.bd-menu li:hover > .bd-dropdown-menu,
.bd-menu li.is-open > .bd-dropdown-menu,
.bd-menu li:focus-within > .bd-dropdown-menu {
  display: block !important;
}
.bd-dropdown-menu li {
  position: relative;
  margin: 2px 0;
}
.bd-dropdown__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.bd-dropdown__link:hover {
  background: #f8fafc;
  color: #0284c7;
  padding-left: 15px;
}
.bd-menu__subarrow {
  font-size: 9px;
  color: #94a3b8;
}

/* Desktop Submenu (Level 3) */
.bd-dropdown-submenu {
  display: none;
  position: absolute;
  top: -4px;
  left: 100%;
  margin-left: 6px;
  min-width: 230px;
  list-style: none;
  margin: 0;
  padding: 8px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 14px;
  box-shadow: 0 20px 30px -8px rgba(15, 23, 42, 0.12), 0 8px 12px -6px rgba(15, 23, 42, 0.08);
  z-index: 101;
}
.bd-dropdown-menu li:hover > .bd-dropdown-submenu,
.bd-dropdown-menu li.is-open > .bd-dropdown-submenu {
  display: block !important;
}

/* Menubar Brand & Tools (Sistem Navigasi Mobile, Android & Tablet) */
.bd-menubar__brand {
  display: none;
  align-items: center;
  gap: 8px;
  user-select: none;
  text-decoration: none;
}
.bd-menubar__brand-icon {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: #e0f2fe;
  color: #0284c7;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  flex-shrink: 0;
}
.bd-menubar__brand-text {
  font-size: 13.5px;
  font-weight: 700;
  color: #e2e8f0;
  letter-spacing: -0.01em;
  white-space: nowrap;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.35);
}

.bd-menubar__tools {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-left: auto;
}

/* Modern Hamburger Button */
.bd-nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #0f2b38;
  font-size: 15px;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.bd-nav-toggle:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
}
.bd-nav-toggle[aria-expanded="true"] {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* Menubar Fullscreen Button */
.bd-menubar__fs-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #ffffff;
  color: #0f2b38;
  font-size: 14px;
  cursor: pointer;
  box-sizing: border-box;
  vertical-align: middle;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.04);
}
.bd-menubar__fs-btn:hover {
  background: #f8fafc;
  border-color: #cbd5e1;
  color: var(--primary-base-color, #0284c7);
  transform: translateY(-1px);
}
.bd-menubar__fs-btn.is-fullscreen-active {
  background: var(--primary-base-color, #0284c7);
  border-color: var(--primary-base-color, #0284c7);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
}

/* ---------- Modern Mobile Navigation Panel ---------- */
.bd-nav-panel {
  display: none;
  background: #ffffff;
  border-top: 1px solid #eef3f6;
  border-bottom: 2px solid #e2e8f0;
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.12);
  width: 100%;
}
.bd-nav-panel.is-open {
  display: block;
  animation: bdPanelSlide 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes bdPanelSlide {
  0% { opacity: 0; transform: translateY(-8px); }
  100% { opacity: 1; transform: translateY(0); }
}
.bd-nav-panel__inner {
  max-width: 1240px;
  margin: 0 auto;
  padding: 14px 20px 20px;
}
.bd-nav-panel__actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}
.bd-nav-panel__action-btn {
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  text-align: center;
  transition: all 0.2s ease;
}
.bd-nav-panel__action-btn--primary {
  background: linear-gradient(135deg, #0284c7 0%, var(--primary-base-color, #008ba9) 100%);
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.3);
}
.bd-nav-panel__action-btn--outline {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
}
.bd-nav-panel__action-btn--ghost {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}
.bd-nav-panel__search {
  margin-bottom: 14px;
}
.bd-nav-panel__search form {
  display: flex;
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 4px 6px 4px 12px;
  gap: 8px;
}
.bd-nav-panel__search-icon {
  color: #94a3b8;
  font-size: 13px;
}
.bd-nav-panel__search input {
  flex: 1;
  border: 0;
  outline: 0;
  background: transparent;
  font-size: 13px;
  color: #1e293b;
  font-family: inherit;
}
.bd-nav-panel__search button {
  border: 0;
  background: #0284c7;
  color: #ffffff;
  font-size: 11px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 7px;
  cursor: pointer;
}
.bd-nav-panel__list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bd-nav-panel__list > li {
  border-bottom: 1px solid #f1f5f8;
}
.bd-nav-panel__list > li:last-child {
  border-bottom: 0;
}
.bd-nav-panel__link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 6px;
  text-decoration: none;
  color: #1e293b;
  font-family: 'Plus Jakarta Sans', Poppins, system-ui, -apple-system, sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  border-radius: 8px;
  transition: all 0.15s ease;
}
.bd-nav-panel__link:hover {
  background: #f8fafc;
  color: #0284c7;
}
.bd-nav-panel__link-icon {
  width: 20px;
  color: #64748b;
  font-size: 14px;
}
.bd-nav-panel__link-text {
  flex: 1;
}
.bd-nav-panel__chevron {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.2s ease;
}
.bd-nav-panel__list li.has-accordion.is-active > .bd-nav-panel__link .bd-nav-panel__chevron {
  transform: rotate(180deg);
  color: #0284c7;
}
.bd-nav-panel__sublist {
  display: none;
  background: #f8fafc;
  border-radius: 10px;
  padding: 6px 10px;
  margin-bottom: 8px;
}
.bd-nav-panel__sublist.is-open {
  display: block;
}
.bd-nav-panel__sublist ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.bd-nav-panel__sublink {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 10px;
  font-family: 'Plus Jakarta Sans', Poppins, system-ui, -apple-system, sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #475569;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.15s ease;
}
.bd-nav-panel__sublink:hover {
  background: #ffffff;
  color: #0284c7;
}
.bd-nav-panel__sublist .is-grandchild .bd-nav-panel__sublink {
  padding-left: 20px;
  font-size: 12.5px;
  color: #64748b;
}
.bd-nav-panel .is-group {
  padding-top: 14px;
}
.bd-nav-panel .is-heading {
  display: block;
  font-family: 'Plus Jakarta Sans', Poppins, system-ui, -apple-system, sans-serif;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #94a3b8;
  font-weight: 700;
  margin-bottom: 4px;
}
.bd-nav-panel__footer {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #eef3f6;
  font-family: 'Plus Jakarta Sans', Poppins, system-ui, -apple-system, sans-serif;
  font-size: 11.5px;
  color: #64748b;
}
.bd-nav-panel__footer-name {
  font-weight: 700;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: #0f2b38;
  margin-bottom: 2px;
}

/* ---------- Responsive Breakpoints for Header, Mobile, Android & Tablet ---------- */
@media (max-width: 1023px) {
  .bd-menubar__brand {
    display: inline-flex;
  }
  .bd-menu {
    display: none !important;
  }
  .bd-nav-toggle {
    display: inline-flex;
  }
  .bd-nav__quickinfo {
    display: none;
  }
}

@media (min-width: 1024px) {
  .bd-menubar__brand {
    display: none;
  }
  .bd-nav__quickinfo {
    display: flex;
  }
  .bd-menu {
    display: flex;
    align-items: center;
  }
  .bd-nav-toggle {
    display: none;
  }
  .bd-nav-panel,
  .bd-nav-panel.is-open {
    display: none;
  }
}

@media (max-width: 768px) {
  .bd-menubar__in {
    padding: 0 14px;
    min-height: 48px;
  }
  .bd-brand__logo-wrap {
    width: 60px;
    height: 60px;
    border-radius: 14px;
  }
  .bd-brand__name {
    font-size: 19px;
  }
  .bd-brand__sub {
    font-size: 11.5px;
  }
}

@media (max-width: 640px) {
  .bd-topbar__in {
    padding: 6px 12px;
    gap: 6px;
  }
  .bd-topbar__actions {
    gap: 5px;
    flex-wrap: wrap;
    justify-content: flex-end;
  }
  .bd-topbar__btn {
    padding: 4px 8px;
    font-size: 11px;
    gap: 4px;
  }
  .bd-topbar__search {
    padding: 2px 4px 2px 9px;
  }
  .bd-topbar__search input {
    width: 80px;
    font-size: 11px;
  }
  .bd-topbar__search input:focus {
    width: 120px;
  }
  .bd-topbar__search button {
    width: 20px;
    height: 20px;
    font-size: 9.5px;
  }
  .bd-menubar__in {
    padding: 0 12px;
    min-height: 46px;
  }
  .bd-menubar__brand-text {
    font-size: 12.5px;
  }
  .bd-menubar__brand-icon {
    width: 26px;
    height: 26px;
    font-size: 11.5px;
  }
  .bd-nav-toggle,
  .bd-brand__logo-wrap {
    width: 52px;
    height: 52px;
    border-radius: 12px;
  }
  .bd-brand__badge {
    font-size: 9px;
    padding: 0;
  }
  .bd-brand__name {
    font-size: 17px;
  }
  .bd-brand__sub {
    font-size: 10.5px;
    gap: 4px;
  }
}

/* ---------- Modern Executive News Ticker (Teks Berjalan) ---------- */
.bd-marquee {
  position: relative;
  background: #0b3a45 !important;
  border-top: none !important;
  border-bottom: none !important;
  box-shadow: none;
  font-family: Poppins, system-ui, -apple-system, sans-serif;
  font-size: 13px !important;
  color: #e2e8f0 !important;
  overflow: hidden;
  z-index: 10;
}

.bd-marquee__container {
  display: flex;
  align-items: center;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 16px;
  height: 44px;
  position: relative;
}

/* Fixed Badge di Kiri */
.bd-marquee__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, #0284c7 0%, #1e40af 100%);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  padding: 6px 14px;
  border-radius: 8px;
  flex-shrink: 0;
  box-shadow: 0 2px 8px rgba(2, 132, 199, 0.35);
  position: relative;
  z-index: 3;
  user-select: none;
}

.bd-marquee__badge-icon {
  font-size: 11.5px;
  animation: bdMarqueeIconSwing 2.5s ease-in-out infinite;
  transform-origin: center bottom;
}

@keyframes bdMarqueeIconSwing {
  0%, 100% { transform: rotate(0deg); }
  20% { transform: rotate(-15deg); }
  40% { transform: rotate(12deg); }
  60% { transform: rotate(-8deg); }
  80% { transform: rotate(4deg); }
}

.bd-marquee__badge-text {
  white-space: nowrap;
}

.bd-marquee__live-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #22c55e;
  box-shadow: 0 0 6px #22c55e;
  animation: bdMarqueePulse 1.8s infinite;
}

@keyframes bdMarqueePulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.85); }
}

/* Viewport & Fade Gradient Mask */
.bd-marquee__viewport {
  flex: 1;
  overflow: hidden;
  position: relative;
  height: 100%;
  display: flex;
  align-items: center;
  margin: 0 12px;
  mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 20px), transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 16px, black calc(100% - 20px), transparent);
}

.bd-marquee__track {
  display: flex;
  align-items: center;
  width: max-content;
  white-space: nowrap;
  animation: marquee-scroll 34s linear infinite;
  padding: 0;
}

.bd-marquee__track:hover {
  animation-play-state: paused !important;
}

.bd-marquee__item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 0 8px;
  color: #e2e8f0;
  font-weight: 500;
}

.bd-marquee__text {
  line-height: 1.4;
}

/* Pill Link Tautan */
.bd-marquee__link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px !important;
  background: rgba(255, 255, 255, 0.12) !important;
  color: #7dd3fc !important;
  border: 1px solid rgba(125, 211, 252, 0.45) !important;
  border-radius: 9999px !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  text-decoration: none !important;
  transition: all 0.2s ease;
  white-space: nowrap;
  transform: none !important;
  box-shadow: none !important;
}

.bd-marquee__link i {
  font-size: 9.5px;
  transition: transform 0.2s ease;
}

.bd-marquee__link:hover {
  background: #1d4ed8 !important;
  color: #ffffff !important;
  border-color: #1d4ed8 !important;
  box-shadow: 0 2px 6px rgba(29, 78, 216, 0.25) !important;
  transform: none !important;
}

.bd-marquee__link:hover i {
  transform: translateX(1px);
}

/* Separator Antar Pengumuman */
.bd-marquee__sep {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  font-size: 5px;
  margin: 0 14px;
}

/* Sisi Kanan (Tanggal & Tombol Jeda) */
.bd-marquee__aside {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;
  padding-left: 12px;
  border-left: 1px solid #e2e8f0;
  user-select: none;
}

/* Modern Datetime Pill Widget */
.bd-marquee__datetime {
  display: inline-flex;
  align-items: center;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 9999px;
  padding: 3px 10px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  gap: 8px;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

.bd-marquee__datetime:hover {
  background: #ffffff;
  border-color: #cbd5e1;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.08);
}

.bd-marquee__date-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
}

.bd-marquee__cal-icon {
  color: #0284c7;
  font-size: 11.5px;
}

.bd-marquee__day {
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.01em;
}

.bd-marquee__date-text {
  font-weight: 500;
  color: #475569;
}

.bd-marquee__time-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-left: 1px solid #cbd5e1;
  padding-left: 8px;
  font-size: 11.5px;
}

.bd-marquee__clock-icon {
  color: #059669;
  font-size: 11px;
}

.bd-marquee__clock-digits {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
  font-variant-numeric: tabular-nums;
  letter-spacing: 0.03em;
}

.bd-marquee__tz-pill {
  font-size: 9px;
  font-weight: 700;
  color: #0369a1;
  background: #e0f2fe;
  padding: 1px 5px;
  border-radius: 4px;
  line-height: 1.3;
  letter-spacing: 0.03em;
}

/* Legacy fallback support */
.bd-marquee__date {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
  white-space: nowrap;
}

.bd-marquee__date i {
  color: #0284c7;
  font-size: 12px;
}

.bd-marquee__toggle {
  width: 28px !important;
  height: 28px !important;
  border-radius: 7px !important;
  border: 1px solid #e2e8f0 !important;
  background: #f8fafc !important;
  color: #64748b !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  font-size: 10px !important;
  cursor: pointer;
  transition: all 0.15s ease;
  padding: 0 !important;
  box-shadow: none !important;
  transform: none !important;
}

.bd-marquee__toggle:hover {
  background: #e2e8f0 !important;
  color: #0f172a !important;
  transform: none !important;
}

.bd-marquee__toggle.is-paused {
  background: #fee2e2 !important;
  color: #dc2626 !important;
  border-color: #fca5a5 !important;
}

/* Responsive Rules */
@media (max-width: 1080px) {
  .bd-marquee__time-badge {
    display: none;
  }
  .bd-marquee__datetime {
    padding: 3px 8px;
  }
}

@media (max-width: 768px) {
  .bd-marquee__datetime,
  .bd-marquee__date {
    display: none;
  }
}

@media (max-width: 640px) {
  .bd-marquee__container {
    padding: 0 8px;
    height: 40px;
  }
  .bd-marquee__badge {
    padding: 4px 10px;
    font-size: 10.5px;
  }
  .bd-marquee__badge-text {
    display: none;
  }
  .bd-marquee__aside {
    border-left: none;
    padding-left: 4px;
  }
  .bd-marquee__viewport {
    margin: 0 6px;
  }
}

/* ---------- Hero with Subtle Batik Gradient (Warna Batik Tipis-Tipis) ---------- */
.bd-hero {
  position: relative;
  overflow: hidden;
  background: #1c1008;
}
.bd-hero__media {
  position: absolute;
  inset: 0;
}
.bd-hero__slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center center;
  opacity: 0;
  transition: opacity .9s ease;
}
.bd-hero__slide.is-active {
  opacity: 1;
}
.bd-hero__veil {
  position: absolute;
  inset: 0;
  /* Gradien gelap hanya di sisi kiri agar teks terbaca, sisi kanan bening total agar foto aparatur tampak jelas di depan */
  background: linear-gradient(
    to right,
    rgba(10, 16, 26, 0.84) 0%,
    rgba(15, 23, 42, 0.68) 24%,
    rgba(15, 23, 42, 0.36) 42%,
    rgba(15, 23, 42, 0.12) 58%,
    rgba(15, 23, 42, 0) 72%
  );
}
.bd-hero__veil::before {
  content: "";
  position: absolute;
  inset: 0;
  /* Tekstur Motif Batik Halus (Kawung) hanya di sisi kiri belakang teks, tidak menimpa foto orang di sisi kanan */
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill='%23d49a45' fill-opacity='0.08'%3E%3Cellipse cx='30' cy='15' rx='8' ry='14' transform='rotate(45 30 15)'/%3E%3Cellipse cx='30' cy='15' rx='8' ry='14' transform='rotate(-45 30 15)'/%3E%3Cellipse cx='30' cy='45' rx='8' ry='14' transform='rotate(45 30 45)'/%3E%3Cellipse cx='30' cy='45' rx='8' ry='14' transform='rotate(-45 30 45)'/%3E%3Cellipse cx='15' cy='30' rx='14' ry='8' transform='rotate(45 15 30)'/%3E%3Cellipse cx='15' cy='30' rx='14' ry='8' transform='rotate(-45 15 30)'/%3E%3Cellipse cx='45' cy='30' rx='14' ry='8' transform='rotate(45 45 30)'/%3E%3Cellipse cx='45' cy='30' rx='14' ry='8' transform='rotate(-45 45 30)'/%3E%3Ccircle cx='30' cy='30' r='2.5' fill='%23ffffff' fill-opacity='0.1'/%3E%3Ccircle cx='0' cy='0' r='2.5' fill='%23ffffff' fill-opacity='0.1'/%3E%3Ccircle cx='60' cy='0' r='2.5' fill='%23ffffff' fill-opacity='0.1'/%3E%3Ccircle cx='0' cy='60' r='2.5' fill='%23ffffff' fill-opacity='0.1'/%3E%3Ccircle cx='60' cy='60' r='2.5' fill='%23ffffff' fill-opacity='0.1'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
  -webkit-mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.75) 28%, rgba(0, 0, 0, 0.15) 42%, rgba(0, 0, 0, 0) 52%);
  mask-image: linear-gradient(to right, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.75) 28%, rgba(0, 0, 0, 0.15) 42%, rgba(0, 0, 0, 0) 52%);
}
.bd-hero__veil::after {
  display: none;
}
.bd-hero__ribbon {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}
.bd-hero__ribbon::before,
.bd-hero__ribbon::after {
  content: "";
  position: absolute;
  width: 440px;
  height: 440px;
  border-radius: 46% 54% 60% 40% / 52% 40% 60% 48%;
  filter: blur(8px);
}
.bd-hero__ribbon::before {
  top: -210px;
  left: -180px;
  background: linear-gradient(135deg, rgba(212, 154, 69, 0.18), rgba(156, 90, 43, 0.12));
}
.bd-hero__ribbon::after {
  display: none;
}

@media (max-width: 768px) {
  .bd-hero__veil {
    background: linear-gradient(
      180deg,
      rgba(10, 16, 26, 0.72) 0%,
      rgba(15, 23, 42, 0.52) 42%,
      rgba(15, 23, 42, 0.12) 80%,
      rgba(15, 23, 42, 0.03) 100%
    );
  }
  .bd-hero__veil::before {
    -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0) 65%);
    mask-image: linear-gradient(180deg, rgba(0, 0, 0, 1) 0%, rgba(0, 0, 0, 0.4) 40%, rgba(0, 0, 0, 0) 65%);
  }
}
.bd-hero__in {
  position: relative;
  z-index: 2;
  max-width: 1240px;
  margin: 0 auto;
  padding: 74px 20px 96px;
  font-family: 'Plus Jakarta Sans', Poppins, system-ui, -apple-system, sans-serif;
}
.bd-hero__badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(197, 138, 62, 0.25);
  border: 1px solid rgba(247, 215, 148, 0.45);
  color: #fff8eb;
  font-size: 13px;
  font-weight: 600;
  padding: 8px 18px;
  border-radius: 999px;
  margin: 0 0 20px;
  backdrop-filter: blur(8px);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}
.bd-hero__badge i {
  color: #f7d794;
}
.bd-hero__title {
  margin: 0;
  font-size: clamp(30px, 5vw, 52px);
  line-height: 1.08;
  font-weight: 800;
  color: #fff;
  letter-spacing: -.01em;
}
.bd-hero__village {
  display: inline-flex;
  align-items: baseline;
  gap: 10px;
  flex-wrap: wrap;
  text-transform: uppercase;
  letter-spacing: 0.01em;
  animation: bdHeroFloat 4s ease-in-out infinite alternate;
}
.bd-hero__village-prefix {
  color: #ffffff;
  text-shadow: 0 4px 16px rgba(0, 0, 0, 0.4);
}
.bd-hero__village-name {
  display: inline-block;
  color: #e2e8f0;
  -webkit-text-fill-color: #e2e8f0;
  filter: drop-shadow(0 2px 10px rgba(0, 0, 0, 0.45));
}
@keyframes bdHeroFloat {
  0% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-5px);
  }
  100% {
    transform: translateY(0);
  }
}
@keyframes bdHeroNameShimmer {
  0% {
    background-position: 0% center;
  }
  50% {
    background-position: 100% center;
  }
  100% {
    background-position: 0% center;
  }
}
@keyframes bdHeroGlow {
  0% {
    filter: drop-shadow(0 2px 8px rgba(212, 154, 69, 0.3));
  }
  100% {
    filter: drop-shadow(0 4px 20px rgba(247, 215, 148, 0.65));
  }
}
.bd-hero__script {
  display: block;
  margin-top: 4px;
  font-size: clamp(40px, 6.5vw, 70px);
  font-weight: 700;
  line-height: 1.05;
  color: #f7d794;
  text-shadow: 0 4px 22px rgba(180, 100, 30, 0.45);
}
.bd-hero__lead {
  max-width: 540px;
  margin: 22px 0 0;
  font-size: 16.5px;
  line-height: 1.6;
  color: #f4ece1;
}
.bd-hero__cta {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}
.bd-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  border: 1.5px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease;
}
.bd-btn--fill {
  background: linear-gradient(135deg, #c58a3e 0%, #9c5a2b 100%);
  color: #fff;
  box-shadow: 0 10px 24px rgba(197, 138, 62, 0.35);
  border-color: rgba(255, 255, 255, 0.2);
}
.bd-btn--fill:hover {
  background: linear-gradient(135deg, #d49a45 0%, #aa6432 100%);
  transform: translateY(-2px);
  box-shadow: 0 14px 28px rgba(197, 138, 62, 0.45);
  color: #fff;
}
.bd-btn--ghost {
  background: rgba(28, 14, 8, 0.5);
  border-color: rgba(247, 215, 148, 0.45);
  color: #fff;
  backdrop-filter: blur(6px);
}
.bd-btn--ghost:hover {
  background: rgba(247, 215, 148, 0.2);
  border-color: #f7d794;
  transform: translateY(-2px);
  color: #fff;
}
.bd-hero__tagline {
  position: relative;
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 8px 20px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.65);
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.25);
  text-align: left;
  line-height: 1.25;
  pointer-events: auto;
}
.bd-hero__tagline span {
  display: block;
}
.bd-hero__dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 74px;
  z-index: 3;
  display: flex;
  justify-content: center;
  gap: 9px;
}
.bd-hero__dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  border: 0;
  padding: 0;
  background: rgba(255, 255, 255, .45);
  cursor: pointer;
  transition: all .2s ease;
}
.bd-hero__dot.is-active {
  background: #c58a3e;
  box-shadow: 0 0 0 3px rgba(197, 138, 62, .4);
}

/* ---------- Akses cepat atas ---------- */
.bd-quick {
  position: relative;
  z-index: 5;
  margin-top: -56px;
  background: #fff;
  border-radius: 20px;
  box-shadow: 0 22px 50px rgba(15, 47, 58, .12);
  padding: 24px 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 8px;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.bd-quick__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 9px; padding: 12px 8px; border-radius: 14px; text-decoration: none; transition: background .2s ease, transform .2s ease; }
.bd-quick__item:hover { background: #f4fafc; transform: translateY(-6px); }
.bd-quick__icon {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 23px;
  box-shadow: 0 10px 20px rgba(15, 47, 58, .16);
}
.bd-quick__label { font-size: 14px; font-weight: 600; color: #12323f; line-height: 1.3; }
.bd-quick__desc { font-size: 11.5px; color: #7a93a3; line-height: 1.45; }
.bd-ico-blue   { background: linear-gradient(135deg, #3b82f6, #2563eb); }
.bd-ico-green  { background: linear-gradient(135deg, #34c98a, #12a06a); }
.bd-ico-orange { background: linear-gradient(135deg, #f7a83c, #e8850c); }
.bd-ico-violet { background: linear-gradient(135deg, #a678f0, #7c3aed); }
.bd-ico-teal   { background: linear-gradient(135deg, #2bbfc4, #0d949a); }
.bd-ico-red    { background: linear-gradient(135deg, #f75f6d, #e11d48); }
.bd-ico-sky    { background: linear-gradient(135deg, #54a7ff, #2563eb); }

/* ---------- Statistik ---------- */
.bd-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(238px, 1fr)); gap: 18px; margin-top: 26px; font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif; }
.bd-stat { display: flex; align-items: center; gap: 14px; padding: 18px 24px; border-radius: 16px; border: 1px solid #edf2f6; background: #fff; box-shadow: 0 10px 26px rgba(15, 47, 58, .06); }
.bd-stat__icon { width: 54px; height: 54px; flex: 0 0 auto; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.bd-stat__body { min-width: 0; flex: 1; }
.bd-stat__label { display: block; font-size: 12.5px; color: #7a93a3; font-weight: 500; }
.bd-stat__value { display: block; font-size: 26px; font-weight: 700; color: #12323f; line-height: 1.2; margin-top: 1px; }
.bd-stat__value small { font-size: 15px; font-weight: 600; color: #4d6f80; }
.bd-stat__sub { display: block; font-size: 11.5px; color: #8ba2b0; margin-top: 3px; line-height: 1.4; }
.bd-stat__go { flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 13px; background: #fff; border: 1px solid #e6edf2; color: #4d6f80; text-decoration: none; }
.bd-stat__go:hover { background: var(--primary-base-color); border-color: var(--primary-base-color); color: #fff; }
.bd-stat--blue   { background: linear-gradient(180deg, #f2f7ff, #fbfdff); }
.bd-stat--blue .bd-stat__icon { background: #e2edff; color: #2563eb; }
.bd-stat--green  { background: linear-gradient(180deg, #f1fbf6, #fbfffd); }
.bd-stat--green .bd-stat__icon { background: #dff5ea; color: #12a06a; }
.bd-stat--amber  { background: linear-gradient(180deg, #fff8ec, #fffdf9); }
.bd-stat--amber .bd-stat__icon { background: #fdeed3; color: #d08e0d; }
.bd-stat--violet { background: linear-gradient(180deg, #f7f3ff, #fdfbff); }
.bd-stat--violet .bd-stat__icon { background: #eee4ff; color: #7c3aed; }

/* ---------- Grid konten beranda ---------- */
.bd-home { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; margin-top: 30px; font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif; }
/* berita: 1 baris kartu lebar penuh di baris teratas */
.bd-berita { grid-column: 1 / -1; }
.bd-card { background: #fff; border: 1px solid #edf2f6; border-radius: 18px; box-shadow: 0 12px 30px rgba(15, 47, 58, .07); padding: 20px 24px; }
.bd-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.bd-head__title { display: flex; align-items: center; gap: 9px; margin: 0 0 12px 0; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; color: #0f172a; letter-spacing: -0.02em; line-height: 1.25; }
.bd-head__title i { color: #0284c7; font-size: 0.9em; margin-right: 8px; }
.bd-head__link { font-size: 13px; font-weight: 500; color: var(--primary-base-color); text-decoration: none; white-space: nowrap; }
.bd-head__link:hover { color: var(--primary-darken-color); text-decoration: underline; }

/* ---------- Berita lama: diganti blok BERDAYA v2.7 ---------- */
.bd-empty { padding: 26px 8px; text-align: center; color: #8ba2b0; font-size: 13.5px; }

/* ---------- Banner promo ---------- */
.bd-promo {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 24px 20px;
  color: #fff;
  background: linear-gradient(150deg, #0d7a5f 0%, #16a34a 45%, #0f8f7d 100%);
  box-shadow: 0 16px 34px rgba(13, 122, 95, .28);
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.bd-promo::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -70px;
  width: 190px;
  height: 190px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .12);
}
.bd-promo__title { position: relative; z-index: 1; margin: 0; font-size: 27px; font-weight: 700; line-height: 1.12; }
.bd-promo__lead { position: relative; z-index: 1; margin: 0; font-size: 13px; color: #dcfff0; line-height: 1.6; }
.bd-promo__items { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: auto; padding-top: 16px; border-top: 1px solid rgba(255, 255, 255, .25); }
.bd-promo__item { text-align: center; font-size: 11.5px; line-height: 1.35; color: #eafff6; }
.bd-promo__item i { display: block; font-size: 19px; margin-bottom: 6px; color: #b6ffdc; }

/* ---------- Akses cepat (kolom kanan) ---------- */
.bd-akses__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.bd-akses__item { display: flex; align-items: center; gap: 12px; padding: 12px 20px; border-radius: 14px; text-decoration: none; transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1); background: rgba(18, 85, 106, 0.06); color: #e2e8f0; border: 1px solid rgba(226, 232, 240, 0.6); }
.bd-akses__item:hover { background: rgba(18, 85, 106, 0.10); transform: translateX(4px); box-shadow: 0 6px 12px rgba(2, 132, 199, 0.12); border-color: rgba(226, 232, 240, 0.8); }
.bd-akses__icon { width: 44px; height: 44px; flex: 0 0 auto; border-radius: 14px; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 18px; background: linear-gradient(135deg, #0284c7, #0369a1); box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3); }
.bd-akses__text { min-width: 0; flex: 1; }
.bd-akses__title { display: block; font-size: 14px; font-weight: 700; color: #e2e8f0; }
.bd-akses__desc { display: block; font-size: 12px; color: #a8d5e2; line-height: 1.5; }
.bd-akses__chev { color: #b9cad4; font-size: 12px; }

/* ---------- Widget: gaya lama dihapus, model baru "grid bento" di bagian akhir halaman ---------- */

/* ---------- Footer ---------- */
.bd-footer { background: #0d4f5c; color: #cfe6ec; font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif; margin-top: 44px; }
.bd-footer__in { max-width: 1240px; margin: 0 auto; padding: 44px 24px 30px !important; display: grid; grid-template-columns: 1.3fr 1.2fr 1.3fr 1fr; gap: 30px; }
.bd-footer__brand { display: flex; align-items: flex-start; gap: 12px; }
.bd-footer__brand img { width: 52px; height: 52px; object-fit: contain; flex: 0 0 auto; }
.bd-footer__name { margin: 0; font-size: 19px; font-weight: 700; color: #fff; line-height: 1.2; }
.bd-footer__sub { margin: 5px 0 0; font-size: 12px; line-height: 1.55; color: #a9ccd6; }
.bd-footer__title { margin: 0 0 14px; font-size: 15px; font-weight: 700; color: #fff; }
.bd-footer__contact { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; font-size: 12.5px; line-height: 1.5; }
.bd-footer__contact i { width: 30px; height: 30px; border-radius: 50%; background: rgba(255, 255, 255, .12); color: #6fe0c2; display: inline-flex; align-items: center; justify-content: center; margin-right: 10px; font-size: 13px; }
.bd-footer__contact a { color: #cfe6ec; text-decoration: none; }
.bd-footer__contact a:hover { color: #fff; text-decoration: underline; }
.bd-footer__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.bd-footer__links { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; }
.bd-footer__links a { color: #cfe6ec; text-decoration: none; }
.bd-footer__links a::before { content: "\203A"; color: #6fe0c2; margin-right: 7px; }
.bd-footer__links a:hover { color: #fff; text-decoration: underline; }
.bd-footer__social { display: flex; flex-wrap: wrap; gap: 9px; margin: 0 0 18px; padding: 0; list-style: none; }
.bd-footer__social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255, 255, 255, .14); color: #fff; display: flex; align-items: center; justify-content: center; text-decoration: none; font-size: 15px; }
.bd-footer__social a:hover { background: var(--primary-base-color); }
.bd-footer__os { display: flex; align-items: center; gap: 9px; font-size: 12px; color: #a9ccd6; }
.bd-footer__os img { height: 34px; width: auto; }
.bd-footer__bottom { background: #0a414c; border-top: 1px solid rgba(255, 255, 255, .1); }
.bd-footer__bottom-in { max-width: 1240px; margin: 0 auto; padding: 15px 24px !important; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; font-size: 12.5px; color: #a9ccd6; }
.bd-footer__bottom-in a { color: #cfe6ec; text-decoration: none; }
.bd-footer__bottom-in a:hover { color: #fff; text-decoration: underline; }

@media (max-width: 1023px) {
  .bd-home { grid-template-columns: minmax(0, 1fr); }
  .bd-footer__in { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
}
@media (max-width: 767px) {
  .bd-topbar__list { gap: 12px; font-size: 12px; }
  .bd-topbar__search { display: none; }
  .bd-hero__in { padding: 54px 24px 92px !important; }
  .bd-quick { margin-top: -44px; grid-template-columns: repeat(auto-fit, minmax(112px, 1fr)); }
  .bd-footer__in { grid-template-columns: minmax(0, 1fr); gap: 24px; }
}

@media (max-width: 767px) {
  header { border-radius: 0 0 20px 20px; }
  header .text-h2 { font-size: clamp(1.35rem, 5vw, 2rem); }
  main, .bg-white.rounded-lg, .bg-white.rounded-xl { border-radius: 16px; }
  .sliderx { border-radius: 16px; }
  footer > div { border-radius: 18px 18px 0 0 !important; }
  .em-reveal { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .em-reveal { opacity: 1; transform: none; }
}

/* ---------- Widget slider: responsif (lama, dihapus) ---------- */

/* Footer: netralkan aturan lama yang menyasar struktur footer sebelumnya */
.bd-footer__in { background: transparent !important; border-radius: 0 !important; box-shadow: none !important; }
.bd-footer__bottom { background: #0a414c !important; border-radius: 0 !important; box-shadow: none !important; }

/* =========================================================
   ENTERPRISE & MODERN LUXURY DESIGN OVERRIDE LAYER
   ========================================================= */
:root {
  --primary-base-color: #0f375a;
  --primary-darken-color: #0a253e;
  --secondary-base-color: #c9933b;
  --secondary-darken-color: #a47326;
  --accent-base-color: #10b981;
  --accent-darken-color: #059669;

  --ep-navy-900: #0a192f;
  --ep-navy-800: #0f2744;
  --ep-navy-700: #153e6b;
  --ep-navy-600: #1e5288;
  --ep-gold-500: #cfa052;
  --ep-gold-600: #b88636;
  --ep-slate-50:  #f8fafc;
  --ep-slate-100: #f1f5f9;
  --ep-slate-200: #e2e8f0;
  --ep-slate-500: #64748b;
  --ep-slate-700: #334155;
  --ep-slate-900: #0f172a;
}

body {
  font-family: 'Plus Jakarta Sans', Poppins, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
  background-color: #f8fafc !important;
  color: var(--ep-slate-900) !important;
  letter-spacing: -0.011em;
}

/* TOPBAR: Enterprise Executive Style */
.bd-topbar {
  background: linear-gradient(90deg, #07172c 0%, #0d284b 100%) !important;
  border-bottom: none !important;
  font-size: 12.5px;
  letter-spacing: 0.01em;
  padding: 2px 0;
}
.bd-topbar__list li {
  color: #cbd5e1;
  font-weight: 400;
}
.bd-topbar__list i {
  color: #38bdf8 !important;
}
.bd-topbar__actions a {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #f1f5f9 !important;
  font-weight: 500;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.bd-topbar__actions a:hover {
  background: rgba(56, 189, 248, 0.15) !important;
  border-color: rgba(56, 189, 248, 0.4) !important;
  color: #ffffff !important;
  transform: translateY(-1px);
}
.bd-topbar__search {
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: all 0.25s ease;
}
.bd-topbar__search:focus-within {
  background: rgba(255, 255, 255, 0.15) !important;
  border-color: #38bdf8;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, 0.2);
}
.bd-topbar__search button {
  background: linear-gradient(135deg, #1e5288, #0f2744) !important;
}

/* NAVBAR: High-end Corporate Navigation */
.bd-nav {
  background: #12556a !important;
  background-image: radial-gradient(rgba(13, 85, 99, 0.05) 1px, transparent 1px) !important;
  background-size: 24px 24px !important;
}
.bd-menubar {
  background: #12556a !important;
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-bottom: none !important;
  box-shadow: none !important;
  overflow: visible !important;
}
.bd-brand__name {
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  font-size: 20px !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #e2e8f0 !important;
  color: #e2e8f0 !important;
  animation: none !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.5) !important;
  filter: none !important;
}
.bd-brand__name-prefix {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #e2e8f0 !important;
  color: #e2e8f0 !important;
}
.bd-brand__name-desa {
  background: none !important;
  -webkit-background-clip: initial !important;
  -webkit-text-fill-color: #e2e8f0 !important;
  color: #e2e8f0 !important;
}
.bd-brand__sub {
  color: #e2e8f0 !important;
  font-weight: 500;
}
.bd-brand__sub strong {
  color: #1e3a5f !important;
}
.bd-brand__sub-item {
  color: #e2e8f0 !important;
}
.bd-brand__sub-item i {
  color: #0284c7 !important;
}
.bd-menu > li > a {
  font-weight: 600 !important;
  color: #e2e8f0 !important;
  font-size: 13.5px !important;
  padding: 8px 14px !important;
  border-radius: 8px !important;
  transition: all 0.2s ease !important;
}
.bd-menu > li > a:hover,
.bd-menu > li.is-open > a {
  background: rgba(255, 255, 255, 0.12) !important;
  color: #ffffff !important;
}
.bd-menu ul {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 14px !important;
  box-shadow: 0 20px 40px -8px rgba(15, 23, 42, 0.16), 0 0 1px 1px rgba(15, 23, 42, 0.05) !important;
  padding: 8px !important;
  z-index: 9999 !important;
}
.bd-menu ul a {
  border-radius: 6px !important;
  font-weight: 500 !important;
  color: #334155 !important;
  transition: all 0.15s ease !important;
}
.bd-menu ul a:hover,
.bd-menu ul li.is-open > a {
  background: #f8fafc !important;
  color: #0284c7 !important;
  padding-left: 15px !important;
}

/* HERO SECTION: Enterprise Prestige Banner */
.bd-hero {
  background: #091728 !important;
  position: relative;
}
.bd-hero__veil {
  background: linear-gradient(110deg, rgba(6, 17, 33, 0.86) 0%, rgba(9, 27, 49, 0.74) 45%, rgba(13, 37, 66, 0.42) 85%, rgba(6, 17, 33, 0.68) 100%) !important;
}
.bd-hero__ribbon::before {
  background: radial-gradient(circle, rgba(56, 189, 248, 0.22) 0%, rgba(56, 189, 248, 0) 70%) !important;
}
.bd-hero__ribbon::after {
  background: radial-gradient(circle, rgba(207, 160, 82, 0.20) 0%, rgba(207, 160, 82, 0) 70%) !important;
}
.bd-hero__badge {
  background: linear-gradient(135deg, #12556a 0%, #0e7490 100%) !important;
  border: 1px solid rgba(103, 232, 249, 0.45) !important;
  box-shadow: 0 4px 14px rgba(8, 51, 68, 0.35) !important;
  backdrop-filter: blur(10px);
  color: #ffffff !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  padding: 6px 16px !important;
}
.bd-hero__badge i {
  color: #67e8f9;
  margin-right: 6px;
}
.bd-hero__title {
  font-weight: 800 !important;
  letter-spacing: -0.035em !important;
  color: #ffffff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.55) !important;
}
.bd-hero__script {
  color: #e2e8f0 !important;
  font-family: 'Plus Jakarta Sans', Poppins, sans-serif !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  font-size: clamp(26px, 4vw, 42px) !important;
  margin-top: 6px !important;
  background: linear-gradient(120deg, #ffffff 0%, #cbd5e1 25%, #ffffff 50%, #cbd5e1 75%, #ffffff 100%) !important;
  background-size: 200% auto !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  text-shadow: 0 2px 14px rgba(255, 255, 255, 0.35) !important;
  animation: bdSloganKedip 1.6s ease-in-out infinite !important;
  filter: none !important;
}
@keyframes bdSloganKedip {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}
.bd-hero__lead {
  color: #ffffff !important;
  font-size: 16px !important;
  line-height: 1.65 !important;
  text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4) !important;
}
.bd-btn {
  font-family: inherit !important;
  font-weight: 600 !important;
  font-size: 14.5px !important;
  letter-spacing: -0.01em;
  padding: 12px 26px !important;
  border-radius: 10px !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.bd-btn--fill {
  background: #0284c7 !important;
  box-shadow: 0 10px 24px -4px rgba(2, 132, 199, 0.45) !important;
  color: #ffffff !important;
}
.bd-btn--fill:hover {
  background: #0369a1 !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 14px 28px -4px rgba(2, 132, 199, 0.55) !important;
}
.bd-btn--ghost {
  background: #0f2744 !important;
  border: 1px solid rgba(255, 255, 255, 0.35) !important;
  backdrop-filter: none !important;
  color: #f8fafc !important;
}
.bd-btn--ghost:hover {
  background: #153e6b !important;
  border-color: #ffffff !important;
  color: #ffffff !important;
  transform: translateY(-2px) !important;
}
/* Bedakan warna: Pemerintah Desa (hijau) & Berita Desa (amber) */
.bd-hero__cta .bd-btn--ghost:nth-of-type(2) {
  background: #0d9488 !important;
}
.bd-hero__cta .bd-btn--ghost:nth-of-type(2):hover {
  background: #0f766e !important;
}
.bd-hero__cta .bd-btn--ghost:nth-of-type(3) {
  background: #b45309 !important;
}
.bd-hero__cta .bd-btn--ghost:nth-of-type(3):hover {
  background: #92400e !important;
}
.bd-hero__cta {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 14px !important;
  margin-top: 30px !important;
  width: 100% !important;
}
.bd-hero__tagline {
  position: relative !important;
  right: auto !important;
  top: auto !important;
  bottom: auto !important;
  left: auto !important;
  transform: none !important;
  display: inline-flex !important;
  flex-direction: column !important;
  justify-content: center !important;
  align-items: flex-start !important;
  background: #12556a !important;
  border: 1px solid rgba(255, 255, 255, 0.25) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  padding: 8px 22px !important;
  border-radius: 999px !important;
  font-family: 'Plus Jakarta Sans', sans-serif !important;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.35) !important;
  margin: 0 0 0 auto !important;
  text-align: left !important;
  line-height: 1.25 !important;
}
.bd-hero__tagline .bd-hero__tagline-sub {
  color: #e2e8f0 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  letter-spacing: 0.01em !important;
}
.bd-hero__tagline .bd-hero__tagline-main,
.bd-hero__tagline span {
  color: #facc15 !important;
  font-weight: 700 !important;
  font-size: 14.5px !important;
  margin-top: 2px !important;
  display: block !important;
  animation: bdTaglineKedip 1.6s ease-in-out infinite !important;
}
@keyframes bdTaglineKedip {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.25; }
}
@media (max-width: 640px) {
  .bd-hero__tagline {
    margin: 8px 0 0 0 !important;
  }
}

/* QUICK ACCESS: Sleek Corporate Cards */
.bd-quick {
  background: #ffffff !important;
  border: 1px solid rgba(226, 232, 240, 0.9) !important;
  border-radius: 18px !important;
  box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.08), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  padding: 22px 24px !important; /* lebar samping tambah */
  gap: 12px !important; /* jarak antar card */
}
.bd-quick__item {
  border-radius: 14px !important;
  padding: 12px 14px !important; /* ruang horizontal per card tambah */
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
}
.bd-quick__item:hover {
  background: #f8fafc !important;
  transform: translateY(-4px) !important;
  box-shadow: 0 10px 20px -6px rgba(15, 23, 42, 0.06);
}
.bd-quick__icon {
  width: 52px !important;
  height: 52px !important;
  border-radius: 14px !important;
  font-size: 20px !important;
  box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.14) !important;
}
.bd-quick__label {
  color: #0f172a !important;
  font-weight: 700 !important;
  font-size: 13.5px !important;
}
.bd-quick__desc {
  color: #64748b !important;
}

/* ENTERPRISE GRADIENT ACCENTS */
.bd-ico-blue   { background: linear-gradient(135deg, #0284c7, #0369a1) !important; }
.bd-ico-green  { background: linear-gradient(135deg, #059669, #047857) !important; }
.bd-ico-orange { background: linear-gradient(135deg, #d97706, #b45309) !important; }
.bd-ico-violet { background: linear-gradient(135deg, #6366f1, #4f46e5) !important; }
.bd-ico-teal   { background: linear-gradient(135deg, #0d9488, #0f766e) !important; }
.bd-ico-red    { background: linear-gradient(135deg, #e11d48, #be123c) !important; }
.bd-ico-sky    { background: linear-gradient(135deg, #0ea5e9, #0284c7) !important; }

/* STATS SECTION: Clean KPI Metrics */
.bd-stat {
  background: #ffffff !important;
  border: 1px solid #e2e8f0 !important;
  border-radius: 16px !important;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.04) !important;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1) !important;
  padding: 20px !important;
}
.bd-stat:hover {
  transform: translateY(-3px) !important;
  box-shadow: 0 16px 32px -8px rgba(15, 23, 42, 0.09) !important;
  border-color: #cbd5e1 !important;
}
.bd-stat__icon {
  width: 50px !important;
  height: 50px !important;
  border-radius: 14px !important;
  font-size: 20px !important;
}
.bd-stat__label {
  color: #64748b !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.bd-stat__value {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: 26px !important;
  letter-spacing: -0.03em;
}
.bd-stat__sub {
  color: #94a3b8 !important;
}

/* CARDS & CONTENT TILES */
.bd-card {
  background: #ffffff !important;
  border: 1px solid #cbd5e1 !important;
  border-radius: 18px !important;
  box-shadow: 0 12px 28px -6px rgba(15, 23, 42, 0.12) !important;
  padding: 24px !important;
}
.bd-head__title {
  color: #0f172a !important;
  font-weight: 800 !important;
  font-size: clamp(20px, 2.2vw, 26px) !important;
  letter-spacing: -0.02em;
}
.bd-head__title i {
  color: #0284c7 !important;
}
.bd-head__link {
  color: #0284c7 !important;
  font-weight: 600 !important;
}

/* NEWS ARTICLES lama: diganti blok BERDAYA v2.7 */

/* PROMO BANNER: Enterprise Mission Statement */
.bd-promo {
  background: linear-gradient(145deg, #0a1e38 0%, #0f3460 50%, #174d85 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 18px !important;
  box-shadow: 0 18px 40px -8px rgba(10, 30, 56, 0.35) !important;
  padding: 28px 24px !important;
}
.bd-promo__title {
  font-family: 'Plus Jakarta Sans', Poppins, sans-serif !important;
  font-weight: 800 !important;
  letter-spacing: -0.025em !important;
  color: #ffffff !important;
  font-size: 22px !important;
}
.bd-promo__lead {
  color: #cbd5e1 !important;
  font-size: 13.5px !important;
  line-height: 1.6 !important;
}
.bd-promo__items {
  border-top-color: rgba(255, 255, 255, 0.15) !important;
}
.bd-promo__item {
  color: #e2e8f0 !important;
  font-weight: 600 !important;
}
.bd-promo__item i {
  color: #38bdf8 !important;
}

/* SIDEBAR / QUICK ACCESS COLUMN */
.bd-akses__item {
  border: 1px solid transparent;
  border-radius: 14px !important;
  transition: all 0.2s ease !important;
}
.bd-akses__item:hover {
  background: #f8fafc !important;
  border-color: #e2e8f0 !important;
  transform: translateX(3px);
}
.bd-akses__title {
  color: #0f172a !important;
  font-weight: 700 !important;
}
.bd-akses__desc {
  color: #64748b !important;
}

/* WIDGET DESA Ã¢â‚¬â€ dipindah ke blok "BERDAYA v2.2" di bagian akhir berkas */

/* FOOTER: Corporate Enterprise Architecture */
.bd-footer {
  background: #07172b !important;
  color: #e2e8f0 !important;
  border-top: 1px solid #1e293b;
  margin-top: 60px !important;
}
.bd-footer__name {
  color: #ffffff !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
}
.bd-footer__sub {
  color: #e2e8f0 !important;
}
.bd-footer__title {
  color: #f8fafc !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em;
  font-size: 14.5px !important;
  text-transform: uppercase;
}
.bd-footer__contact i {
  background: rgba(56, 189, 248, 0.12) !important;
  color: #38bdf8 !important;
}
.bd-footer__links a {
  color: #e2e8f0 !important;
  transition: all 0.2s ease;
}
.bd-footer__links a::before {
  color: #38bdf8 !important;
}
.bd-footer__links a:hover {
  color: #ffffff !important;
  padding-left: 4px;
}
.bd-footer__social a {
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: all 0.2s ease;
}
.bd-footer__social a:hover {
  background: #0284c7 !important;
  border-color: #0284c7 !important;
  transform: translateY(-2px);
}
.bd-footer__bottom {
  background: #040e1b !important;
  border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
}
.bd-footer__bottom-in {
  color: #64748b !important;
}

/* SELECTION & SCROLLBAR */
::selection {
  background: #0284c7;
  color: #ffffff;
}
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 99px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* =========================================================
   TOPBAR FIX: SINGLE ROW ALIGNMENT (ENTERPRISE BAR)
   ========================================================= */
.bd-topbar {
  padding: 6px 0 !important;
  line-height: 1.5;
}
.bd-topbar__in {
  max-width: 1320px !important;
  padding: 0 24px !important;
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 20px !important;
}
.bd-topbar__list {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 18px !important;
  margin: 0 !important;
  padding: 0 !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
  overflow: hidden !important;
}
.bd-topbar__list li {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12.5px !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
  color: #cbd5e1 !important;
}
.bd-topbar__list li:first-child {
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.bd-topbar__actions {
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  gap: 10px !important;
  flex-shrink: 0 !important;
}
.bd-topbar__actions a {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  font-size: 12px !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
  line-height: 1.4 !important;
}
.bd-topbar__actions a i {
  font-size: 11px !important;
}
.bd-topbar__search {
  padding: 3px 6px 3px 12px !important;
  border-radius: 8px !important;
  margin-left: 2px !important;
  height: 32px !important;
}
.bd-topbar__search input {
  width: 140px !important;
  height: 24px !important;
  font-size: 12px !important;
}

@media (max-width: 1100px) {
  .bd-topbar__in {
    flex-wrap: wrap !important;
    gap: 10px !important;
    padding: 6px 16px !important;
  }
  .bd-topbar__list {
    flex-wrap: wrap !important;
    gap: 12px !important;
  }
}
@media (max-width: 767px) {
  .bd-topbar__in {
    justify-content: center !important;
  }
  .bd-topbar__list {
    display: none !important;
  }
  .bd-topbar__actions {
    width: 100% !important;
    justify-content: center !important;
  }
}

/* =========================================================
   NAV ACTIONS BRAND & LOGO ENHANCEMENT
   ========================================================= */
.bd-nav-actions {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
}
.bd-nav-actions__brand {
  display: inline-flex !important;
  align-items: center !important;
  text-decoration: none !important;
  transition: opacity 0.2s ease, transform 0.2s ease !important;
}
.bd-nav-actions__brand:hover {
  opacity: 0.88;
  transform: translateY(-1px);
}
.bd-nav-actions__logo {
  height: 38px !important;
  width: auto !important;
  max-width: 140px !important;
  object-fit: contain !important;
  display: block !important;
}
.bd-nav-actions__badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  background: #f1f5f9 !important;
  color: #0f2744 !important;
  border: 1px solid #cbd5e1 !important;
  padding: 5px 12px !important;
  border-radius: 8px !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.02em !important;
}

/* =========================================================
   BERDAYA v2 Ã¢â‚¬â€ Grid Layanan & Informasi + Jadwal Shalat
   (menyerupai grid widget situs referensi DeNava)
   ========================================================= */
.bd-sholat {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 26px;
  padding: 18px 24px;
  border-radius: 18px;
  background: linear-gradient(120deg, #0b3a45, #12556a 55%, #146c80);
  color: #eafff7;
  box-shadow: 0 12px 30px rgba(15, 47, 58, 0.07);
}
.bd-sholat__head { display: flex; align-items: center; gap: 12px; min-width: 200px; }
.bd-sholat__badge {
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 14px;
  background: rgba(255,255,255,.14); font-size: 20px; color: #ffd76e;
}
.bd-sholat__title strong { display: block; font-size: clamp(20px, 2.2vw, 26px); font-weight: 800; color: #0f172a; letter-spacing: -0.02em; line-height: 1.25; text-transform: uppercase; }
.bd-sholat__title span { display: block; font-size: 12.5px; opacity: .92; }
.bd-sholat__title small { font-size: 11px; opacity: .75; }
.bd-sholat__row { display: flex; flex-wrap: wrap; gap: 4px; margin-left: auto; }
.bd-sholat__cell {
  display: flex; flex-direction: column; align-items: center;
  padding: 8px 14px; border-radius: 12px;
  background: rgba(255,255,255,.09); transition: background .2s ease;
}
.bd-sholat__cell:hover { background: rgba(255,255,255,.17); }
.bd-sholat__label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .8px; opacity: .8; }
.bd-sholat__jam { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }

.bd-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 14px;
  margin-top: 6px;
}
.bd-tile {
  position: relative;
  display: flex; align-items: center; gap: 12px;
  padding: 16px;
  border: 1px solid var(--em-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: var(--em-shadow);
  color: var(--em-ink);
  text-decoration: none;
  overflow: hidden;
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.bd-tile:hover {
  transform: translateY(-3px);
  border-color: var(--em-primary, #2463eb);
  box-shadow: 0 16px 34px rgba(19, 43, 69, .14);
}
.bd-tile__icon {
  flex: none;
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 13px;
  font-size: 19px; color: #fff;
}
.bd-tile__body { display: flex; flex-direction: column; min-width: 0; }
.bd-tile__title { font-size: 14px; font-weight: 700; line-height: 1.25; }
.bd-tile__sub { font-size: 12px; color: var(--em-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bd-tile__go {
  margin-left: auto; font-size: 12px; color: #a8b7c6;
  transition: color .18s ease, transform .18s ease;
}
.bd-tile:hover .bd-tile__go { color: var(--em-primary, #2463eb); transform: translateX(3px); }
.bd-tile__thumbs {
  position: absolute; right: 34px; top: 12px;
  display: flex; gap: 3px;
}
.bd-tile__thumbs img {
  width: 30px; height: 30px; object-fit: cover;
  border-radius: 7px; border: 1.5px solid #fff;
  box-shadow: 0 2px 6px rgba(15, 39, 70, .18);
}

/* ikon warna tile (reuse skema berdaya) */
.bd-ico-blue { background: linear-gradient(135deg, #2f6fed, #1746b8); }
.bd-ico-green { background: linear-gradient(135deg, #17b26a, #0a8f53); }
.bd-ico-orange { background: linear-gradient(135deg, #f59e0b, #d97706); }
.bd-ico-violet { background: linear-gradient(135deg, #8b5cf6, #6d28d9); }
.bd-ico-teal { background: linear-gradient(135deg, #14b8a6, #0f766e); }
.bd-ico-sky { background: linear-gradient(135deg, #0ea5e9, #0369a1); }
.bd-ico-red { background: linear-gradient(135deg, #ef4444, #b91c1c); }
.bd-ico-amber { background: linear-gradient(135deg, #f97316, #c2410c); }
.bd-ico-rose { background: linear-gradient(135deg, #f43f5e, #be123c); }

@media (max-width: 640px) {
  .bd-sholat__row { margin-left: 0; width: 100%; justify-content: space-between; }
  .bd-sholat__cell { padding: 6px 8px; }
  .bd-tile__thumbs { display: none; }
}

/* =========================================================
   BERDAYA v2.1 Ã¢â‚¬â€ Kategori Artikel + Aksi Mengambang + Overlay Aparatur
   ========================================================= */
.bd-kategori {
  margin-top: -26px;
  position: relative;
  z-index: 5;
  padding: 0 24px;
}
.bd-kategori__in {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 14px;
  background: #fff;
  border: 1px solid rgba(15, 39, 70, .08);
  border-radius: 16px;
  padding: 12px 16px;
  box-shadow: 0 14px 30px rgba(9, 40, 55, .10);
}
.bd-kategori__label {
  flex: none;
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 800; letter-spacing: .6px;
  text-transform: uppercase; color: var(--primary-darken-color, #006A82);
}
.bd-kategori__scroll {
  display: flex; align-items: center; gap: 8px;
  overflow-x: auto; scrollbar-width: thin;
  padding-bottom: 2px;
}
.bd-kategori__scroll::-webkit-scrollbar { height: 6px; }
.bd-kategori__scroll::-webkit-scrollbar-thumb { background: #cdd8e0; border-radius: 99px; }
.bd-kategori__chip {
  flex: none;
  display: inline-flex; align-items: center;
  padding: 7px 15px;
  border-radius: 999px;
  background: #f1f6f9;
  color: #21415c;
  font-size: 13px; font-weight: 600;
  text-decoration: none;
  border: 1px solid transparent;
  transition: background .18s ease, color .18s ease, border-color .18s ease, transform .18s ease;
}
.bd-kategori__chip:hover {
  background: var(--primary-base-color, #008BA9);
  color: #fff;
  transform: translateY(-1px);
}
.bd-kategori__chip.is-sub { background: #f7fafb; font-weight: 500; color: #52708a; }

/* --- Aksi mengambang (kanan bawah) --- */
.bd-fab {
  position: fixed;
  right: 18px; bottom: 22px;
  z-index: 60;
  display: flex; flex-direction: column; gap: 10px;
}
.bd-fab__btn {
  display: flex; align-items: center; gap: 8px;
  padding: 11px 16px;
  border: 0; border-radius: 999px;
  background: linear-gradient(135deg, #0b3a45, #146c80);
  color: #fff;
  font-size: 13px; font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 24px rgba(9, 40, 55, .30);
  cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.bd-fab__btn:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(9, 40, 55, .36); }
.bd-fab__btn--main { background: linear-gradient(135deg, #008BA9, #146c80); }
.bd-fab__btn--wa { background: linear-gradient(135deg, #25d366, #128c4b); }
.bd-fab__btn i { font-size: 15px; }

/* --- Modal / overlay profil aparatur --- */
.bd-modal {
  position: fixed; inset: 0;
  z-index: 90;
  display: flex; align-items: center; justify-content: center;
  padding: 22px;
  background: rgba(8, 30, 45, .62);
  backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden;
  transition: opacity .22s ease, visibility .22s ease;
}
.bd-modal.is-open { opacity: 1; visibility: visible; }
.bd-modal__panel {
  width: min(860px, 100%);
  max-height: 86vh;
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(5, 25, 40, .45);
  transform: translateY(14px) scale(.98);
  transition: transform .22s ease;
}
.bd-modal.is-open .bd-modal__panel { transform: translateY(0) scale(1); }
.bd-modal__head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 16px 22px;
  background: linear-gradient(120deg, #0b3a45, #12556a 60%, #146c80);
  color: #fff;
}
.bd-modal__head strong { display: block; font-size: 16px; }
.bd-modal__head span { font-size: 12.5px; opacity: .85; }
.bd-modal__close {
  flex: none;
  width: 36px; height: 36px;
  display: grid; place-items: center;
  border: 0; border-radius: 10px;
  background: rgba(255,255,255,.14);
  color: #fff; font-size: 15px; cursor: pointer;
  transition: background .18s ease;
}
.bd-modal__close:hover { background: rgba(255, 90, 90, .55); }
.bd-modal__body { padding: 20px 22px; overflow-y: auto; }
.bd-aparatur {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(210px, 1fr));
  gap: 14px;
}
.bd-aparatur__card {
  display: flex; align-items: center; gap: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 39, 70, .08);
  border-radius: 14px;
  background: #f8fbfc;
  transition: box-shadow .18s ease, border-color .18s ease;
}
.bd-aparatur__card:hover { border-color: var(--primary-base-color, #008BA9); box-shadow: 0 10px 22px rgba(9, 40, 55, .12); }
.bd-aparatur__foto {
  flex: none;
  width: 64px; height: 80px;
  object-fit: cover; object-position: top;
  border-radius: 10px;
  background: #dfe7ec;
}
.bd-aparatur__info { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.bd-aparatur__nama { font-size: 13.5px; line-height: 1.3; color: #12384f; }
.bd-aparatur__jabatan { font-size: 12px; font-weight: 600; color: var(--primary-base-color, #008BA9); }
.bd-aparatur__niap { font-size: 11px; color: #7d94a6; }
.bd-aparatur__badge {
  align-self: flex-start;
  margin-top: 3px;
  padding: 2px 9px;
  border-radius: 999px;
  font-size: 10.5px; font-weight: 700; letter-spacing: .4px; text-transform: uppercase;
}
.bd-aparatur__badge.is-hadir { background: #dcf5e9; color: #0a8f53; }
.bd-aparatur__badge.is-tidak { background: #fdeaec; color: #be123c; }

@media (max-width: 640px) {
  .bd-kategori { margin-top: -18px; padding: 0 14px; }
  .bd-fab__btn span { display: inline; }
  .bd-aparatur { grid-template-columns: 1fr 1fr; }
}

/* =========================================================
   BERDAYA v2.6 â€” Widget Desa: SLIDER bergaya Berdaya
   (peta & counter & rel progres â€” bukan titik ala DeNava)
   ========================================================= */
.bd-wslide {
  max-width: 1240px;
  margin: 36px auto 48px;
  padding: 0;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.bd-wslide__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}
.bd-wslide__head::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 90px;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
}
.bd-wslide__intro {
  flex: 1 1 360px;
}
.bd-wslide__badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.bd-wslide__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08);
}
.bd-wslide__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #0284c7;
  box-shadow: 0 0 6px #0284c7;
}
.bd-wslide__badge-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
}
.bd-wslide__title {
  margin: 0;
  font-size: clamp(22px, 2.5vw, 28px);
  font-weight: 800;
  color: #07172c;
  letter-spacing: -0.025em;
  line-height: 1.25;
  display: flex;
  align-items: center;
}
.bd-wslide__title i {
  color: #0284c7;
  font-size: 0.9em;
  margin-right: 8px;
}
.bd-wslide__lead {
  margin: 8px 0 0;
  max-width: 620px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #64748b;
  font-weight: 400;
}

/* Control Pills & Buttons */
.bd-wslide__ctrl {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 6px 8px 6px 14px;
  box-shadow: 0 4px 16px -2px rgba(15, 23, 42, 0.05);
}
.bd-wslide__counter-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-right: 4px;
}
.bd-wslide__counter-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #94a3b8;
}
.bd-wslide__counter {
  display: flex;
  align-items: baseline;
  gap: 4px;
  font-size: 13px;
  font-weight: 600;
  color: #64748b;
}
.bd-wslide__counter b {
  font-size: 18px;
  font-weight: 800;
  color: #0284c7;
  font-variant-numeric: tabular-nums;
}
.bd-wslide__counter i {
  font-style: normal;
  font-weight: 700;
  color: #475569;
}
.bd-wslide__nav-group {
  display: flex;
  align-items: center;
  gap: 6px;
}
.bd-wslide__btn {
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #0f2744 100%);
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 3px 10px rgba(2, 132, 199, 0.35);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.bd-wslide__btn:hover:not(:disabled) {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0369a1 0%, #07172c 100%);
  box-shadow: 0 6px 16px rgba(2, 132, 199, 0.45);
  color: #ffffff;
}
.bd-wslide__btn:active:not(:disabled) {
  transform: translateY(0);
}
.bd-wslide__btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
  box-shadow: none;
  filter: grayscale(0.5);
}

/* --- viewport dengan tepi memudar (menggulir via transform) --- */
.bd-wslide__viewport {
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 22px, #000 calc(100% - 22px), transparent 100%);
}
.bd-wslide__track {
  display: flex;
  align-items: stretch;
  gap: 20px;
  padding: 2px 22px;
  transition: transform .5s cubic-bezier(.16, 1, .3, 1);
  will-change: transform;
}
.bd-wslide__item {
  flex: 0 0 calc((100% - 44px - 44px) / 3);
  min-width: 0;
  display: flex;
  scroll-snap-align: start;
}
.bd-wslide__item .bd-widget { width: 100%; height: 340px; max-height: 340px; }

/* aksen gradasi di puncak kartu (ciri khas berbeda dari DeNava) */
.bd-widget::before {
  content: "";
  display: block;
  flex: none;
  height: 4px;
  background: #0284c7;
}
.bd-wslide__item:nth-child(3n+1) .bd-widget::before { background: linear-gradient(90deg, #0284c7, #00BA88); }
.bd-wslide__item:nth-child(3n+2) .bd-widget::before { background: linear-gradient(90deg, #0d9488, #0284c7); }
.bd-wslide__item:nth-child(3n+3) .bd-widget::before { background: linear-gradient(90deg, #f59e0b, #d97706); }

/* --- rel progres (pengganti titik navigasi) --- */
.bd-wslide__rail {
  position: relative;
  height: 4px;
  margin-top: 18px;
  border-radius: 99px;
  background: #e6edf2;
  overflow: hidden;
}
.bd-wslide__rail-thumb {
  position: absolute;
  top: 0; left: 0;
  height: 4px;
  border-radius: 99px;
  background: linear-gradient(90deg, #0284c7, #008BA9);
}
/* --- kartu --- */
.bd-widget {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #e6edf2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 4px 18px -6px rgba(15, 23, 42, .06);
  transition: transform .22s cubic-bezier(.16, 1, .3, 1), box-shadow .22s ease, border-color .22s ease;
}
.bd-widget:hover {
  transform: translateY(-6px);
  border-color: #cfdde6;
  box-shadow: 0 18px 36px -10px rgba(15, 23, 42, .12);
}
/* semua kartu seragam: setiap baris berisi 3 kartu; sisa di baris terakhir menyesuaikan:
   - sisa 1 kartu  -> memenuhi lebar grid
   - sisa 2 kartu  -> 2 kolom + 1 kolom (penuh juga) */
.bd-widget--wide { grid-column: auto; }
.bd-widget:last-child:nth-child(3n+1) { grid-column: 1 / -1; }
.bd-widget:nth-last-child(2):nth-child(3n+1) { grid-column: 1 / 3; }

.bd-widget .box {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  margin: 0;
  max-width: 100%;
}
.bd-widget .box-header {
  display: flex;
  align-items: center;
  padding: 15px 18px;
  border-bottom: 1px solid #f1f5f9;
  background: #fff;
}
.bd-widget .box-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-size: 15px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -.01em;
  line-height: 1.35;
}
.bd-widget .box-title i {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7, #0f2744);
  color: #fff;
  font-size: 13px;
}
/* palet ikon berputar agar kartu bervariasi */
.bd-widget:nth-child(3n+2) .box-title i { background: linear-gradient(135deg, #0d9488, #065f46); }
.bd-widget:nth-child(3n+3) .box-title i { background: linear-gradient(135deg, #d97706, #92400e); }
.bd-widget .box-title a { color: inherit; text-decoration: none; }
.bd-widget .box-title a:hover { color: #0284c7; }

.bd-widget .box-body {
  flex: 1 1 auto;
  min-height: 0;
  min-width: 0;
  padding: 18px;
  color: #475569;
  font-size: 13.5px;
  line-height: 1.65;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.bd-widget .box-body::-webkit-scrollbar { width: 6px; height: 6px; }
.bd-widget .box-body::-webkit-scrollbar-track { background: transparent; }
.bd-widget .box-body::-webkit-scrollbar-thumb {
  background: #dbe3ec;
  border-radius: 99px;
}
.bd-widget .box-body::-webkit-scrollbar-thumb:hover { background: #c3ceda; }
.bd-widget .box-body a { color: #0f2744; }
.bd-widget .box-body a:hover { color: #0284c7; text-decoration: none; }
.bd-widget .box-body ul,
.bd-widget .box-body ol { margin: 0; padding: 0; list-style: none; }
.bd-widget .box-body img { max-width: 100%; height: auto; border-radius: 10px; }
.bd-widget .box-body table { width: 100%; }
.bd-widget .box-body .nav-tabs { border-bottom: 1px solid #eef2f6; }
.bd-widget .box-body .nav-link {
  padding: 8px 12px;
  border: 0; border-bottom: 2px solid transparent;
  background: transparent;
  color: #64748b;
  font-size: 13px;
}
.bd-widget .box-body .nav-link.active,
.bd-widget .box-body .nav-link.show { background: transparent; color: #0284c7; border-bottom-color: #0284c7; }

/* daftar menu kategori */
.bd-widget .box-body .divide-y > * + * { border-top: 1px solid #f1f5f9; }
.bd-widget .box-body .divide-y > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  font-weight: 600;
  color: #334155;
  transition: background .2s ease, color .2s ease, padding .2s ease;
}
.bd-widget .box-body .divide-y > li > a::before {
  content: "\f054";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  font-size: 10px;
  margin-right: 10px;
  color: #94a3b8;
  transition: transform .2s ease, color .2s ease;
}
.bd-widget .box-body .divide-y > li > a:hover {
  background: #f0f7ff;
  color: #0284c7;
  padding-left: 18px;
}
.bd-widget .box-body .divide-y > li > a:hover::before { color: #0284c7; transform: translateX(2px); }

/* tab arsip artikel */
.bd-widget #tab-arsip {
  display: flex;
  gap: 4px;
  padding: 4px;
  margin-bottom: 14px;
  border: 0;
  border-radius: 12px;
  background: #f1f5f9;
}
.bd-widget #tab-arsip .nav-item { margin-bottom: 0; }
.bd-widget #tab-arsip .nav-link {
  padding: 8px 14px;
  margin: 0;
  border: 0;
  border-radius: 8px;
  font-size: 12.5px;
  font-weight: 600;
  color: #64748b;
  transition: background .2s ease, color .2s ease;
}
.bd-widget #tab-arsip .nav-link:hover { background: rgba(255, 255, 255, .6); color: #0f172a; }
.bd-widget #tab-arsip .nav-link.active,
.bd-widget #tab-arsip .nav-item.active .nav-link {
  background: #fff;
  color: #0284c7;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .08);
}
.bd-widget .tab-pane .divide-y > div {
  padding: 12px 6px;
  border-radius: 10px;
  transition: background .2s ease;
}
.bd-widget .tab-pane .divide-y > div:hover { background: #f8fafc; }
.bd-widget .tab-pane img { border-radius: 8px; object-fit: cover; box-shadow: 0 2px 5px rgba(15, 23, 42, .08); }
.bd-widget .tab-pane a.text-sm {
  font-size: 13.5px;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.4;
}
.bd-widget .tab-pane a.text-sm:hover { color: #0284c7; }
.bd-widget .tab-pane span.text-xs { font-size: 11.5px; color: #94a3b8; font-weight: 500; }
.bd-widget .tab-pane span.text-xs i { color: #0284c7; }

/* grafik & iframe peta */
.bd-widget #container_widget,
.bd-widget .highcharts-container,
.bd-widget .highcharts-container,
.bd-widget canvas,
.bd-widget iframe { width: 100% !important; max-width: 100%; border-radius: 12px; }

/* responsif slider */
@media (max-width: 920px) {
  .bd-wslide__item { flex-basis: calc((100% - 20px - 44px) / 2); }
}
@media (max-width: 640px) {
  .bd-wslide__head { flex-direction: column; align-items: flex-start; gap: 12px; }
  .bd-wslide__item { flex-basis: calc(100% - 44px); }
}


/* =========================================================
   BERDAYA v2.5 — PEMERINTAH DESA: kartu aparatur satu baris
   Panel memakai gradasi teal khas tema Berdaya
   ========================================================= */
.bd-apar {
  max-width: 1240px;
  margin: 36px auto 44px;
  padding: 0;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 47, 58, 0.07);
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.bd-apar__judul {
  margin: 0 0 12px 0;
  text-align: center;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  text-transform: uppercase;
}
.bd-apar__judul::after {
  content: "";
  display: block;
  width: 140px; height: 4px;
  margin: 8px auto 0;
  border-radius: 99px;
  background: linear-gradient(90deg, transparent, #0284c7 25%, #008BA9 75%, transparent);
}
.bd-apar__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}
.bd-apar__head::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 90px;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
}
.bd-apar__intro {
  flex: 1 1 360px;
}
.bd-apar__badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.bd-apar__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(2, 132, 199, 0.08);
}
.bd-apar__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #0284c7;
  box-shadow: 0 0 6px #0284c7;
}
.bd-apar__badge-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
}
.bd-apar__title {
  margin: 0 0 12px 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  display: flex;
  align-items: center;
}
.bd-apar__title i {
  color: #0284c7;
  font-size: 0.9em;
  margin-right: 8px;
}
.bd-apar__lead {
  margin: 8px 0 0;
  max-width: 620px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #64748b;
  font-weight: 400;
}
.bd-apar__actions {
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.bd-apar__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f2744;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.bd-apar__link:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}
.bd-apar__nav-group {
  display: flex;
  align-items: center;
  gap: 6px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 4px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}
.bd-apar__btn {
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 10px;
  background: linear-gradient(135deg, #0284c7 0%, #0f2744 100%);
  color: #ffffff;
  font-size: 13px;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.3);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}
.bd-apar__btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #0369a1 0%, #07172c 100%);
  box-shadow: 0 5px 14px rgba(2, 132, 199, 0.45);
}

/* Band Container */
.bd-apar__band {
  background: linear-gradient(135deg, var(--ep-navy-900) 0%, var(--ep-navy-800) 55%, var(--ep-navy-700) 100%);
  padding: 24px 20px;
  border-radius: 20px;
  box-shadow: 0 14px 36px -4px rgba(7, 23, 44, 0.28), 0 0 1px 1px rgba(255, 255, 255, 0.08) inset;
  position: relative;
  overflow: hidden;
}
.bd-apar__row {
  display: flex;
  flex-wrap: nowrap;
  justify-content: flex-start;
  gap: 18px;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 6px 4px 10px;
  scrollbar-width: thin;
}
.bd-apar__row::-webkit-scrollbar { height: 7px; }
.bd-apar__row::-webkit-scrollbar-thumb { background: rgba(255, 255, 255, .30); border-radius: 99px; }

/* Cards */
.bd-apar__card {
  flex: 0 0 190px;
  margin: 0;
  border-radius: 18px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
  background: #ffffff;
  box-shadow: 0 8px 24px rgba(15, 47, 58, 0.07);
  transition: transform .25s cubic-bezier(.16, 1, .3, 1), box-shadow .25s ease, border-color .25s ease;
  display: flex;
  flex-direction: column;
}
.bd-apar__card:hover {
  transform: translateY(-6px);
  border-color: #0284c7;
  box-shadow: 0 14px 28px rgba(15, 47, 58, 0.12);
}
.bd-apar__photo {
  position: relative;
  aspect-ratio: 3 / 4;
  background-color: #f1f5f9;
  overflow: hidden;
}
.bd-apar__photo img {
  display: block;
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform .35s ease;
}
.bd-apar__card:hover .bd-apar__photo img {
  transform: scale(1.05);
}
.bd-apar__jabatan {
  align-self: center;
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  background: rgba(18, 85, 106, 0.85);
  border: none;
  color: #fff;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 2px 9px;
  border-radius: 9999px;
  line-height: 1.5;
  box-shadow: 0 2px 8px rgba(15, 47, 58, 0.15);
}
.bd-apar__nama {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 44px 10px 9px;
  background: linear-gradient(180deg, rgba(18, 85, 106, 0) 0%, rgba(18, 85, 106, 0.78) 40%, #0b3a45 100%);
  color: #fff;
  text-align: center;
  pointer-events: none;
}
.bd-apar__nama strong {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bd-apar__nama small {
  font-size: 10.5px;
  color: #ccfbf1;
  font-weight: 500;
}

/* Widget aparatur: batasi lebar kartu agar foto tidak di-upscale (buram) */
.bd-aparw-item {
  max-width: 300px;
  margin: 0 auto;
}
.bd-aparw-item .bd-aparw-photo {
  width: 80% !important;
  max-width: 240px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  aspect-ratio: 3 / 4;
}

/* Strip nama aparatur bergradien (dipakai widget sidebar juga) */
.bd-apar-strip {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 44px 10px 9px;
  background: linear-gradient(180deg, rgba(18, 85, 106, 0) 0%, rgba(18, 85, 106, 0.78) 40%, #0b3a45 100%);
  color: #fff;
  text-align: center;
}
.bd-apar-strip .bd-apar-strip__jabatan {
  display: block;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #99f6e4;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.bd-apar-strip strong {
  display: block;
  font-family: Poppins, system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 700;
  line-height: 1.3;
  color: #ffffff;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.45);
}

/* Card Foot */
.bd-apar__foot {
  padding: 8px 10px;
  background: #f8fafc;
  color: #475569;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  border-top: 1px solid #e2e8f0;
  font-size: 11px;
  transition: all 0.2s ease;
}
.bd-apar__foot-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #94a3b8;
  flex-shrink: 0;
  transition: all 0.2s ease;
}
.bd-apar__foot span {
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.bd-apar__foot strong {
  font-size: 11.5px;
  font-weight: 700;
  color: #0f172a;
}
.bd-apar__foot.is-hadir {
  background: #f0fdf4;
  border-top-color: #bbf7d0;
}
.bd-apar__foot.is-hadir .bd-apar__foot-dot {
  background: #22c55e;
  box-shadow: 0 0 6px rgba(34, 197, 94, 0.7);
}
.bd-apar__foot.is-hadir strong {
  color: #16a34a;
}
.bd-apar__foot.is-izin,
.bd-apar__foot.is-sakit {
  background: #fffbeb;
  border-top-color: #fde68a;
}
.bd-apar__foot.is-izin .bd-apar__foot-dot,
.bd-apar__foot.is-sakit .bd-apar__foot-dot {
  background: #f59e0b;
  box-shadow: 0 0 6px rgba(245, 158, 11, 0.6);
}
.bd-apar__foot.is-izin strong,
.bd-apar__foot.is-sakit strong {
  color: #b45309;
}
.bd-apar__foot.is-cuti,
.bd-apar__foot.is-dinas {
  background: #eff6ff;
  border-top-color: #bfdbfe;
}
.bd-apar__foot.is-cuti .bd-apar__foot-dot,
.bd-apar__foot.is-dinas .bd-apar__foot-dot {
  background: #3b82f6;
  box-shadow: 0 0 6px rgba(59, 130, 246, 0.6);
}
.bd-apar__foot.is-cuti strong,
.bd-apar__foot.is-dinas strong {
  color: #1d4ed8;
}
.bd-apar__foot.is-libur {
  background: #f8fafc;
  border-top-color: #e2e8f0;
}
.bd-apar__foot.is-libur .bd-apar__foot-dot {
  background: #94a3b8;
}
.bd-apar__foot.is-libur strong {
  color: #64748b;
}
.bd-apar__foot.is-tutup {
  background: #f1f5f9;
  border-top-color: #cbd5e1;
}
.bd-apar__foot.is-tutup .bd-apar__foot-dot {
  background: #64748b;
}
.bd-apar__foot.is-tutup strong {
  color: #475569;
}

@media (max-width: 720px) {
  .bd-apar__band { padding: 18px 14px; border-radius: 16px; }
  .bd-apar__row { justify-content: flex-start; gap: 14px; }
  .bd-apar__card { flex: 0 0 160px; }
}


/* =========================================================
   BERDAYA v2.8 â€” Berita & Kegiatan Terbaru: 1 BARIS KARTU
   Semua berita tampil seragam sejajar dalam satu baris.
   ========================================================= */
.bd-news {
  display: flex;
  flex-wrap: nowrap;
  gap: 18px;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.bd-news-card {
  flex: 1 1 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6edf2;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 26px -14px rgba(15, 23, 42, .16);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease, border-color .3s ease;
}
.bd-news-card:hover {
  transform: translateY(-6px);
  border-color: #cfe3ec;
  box-shadow: 0 22px 40px -18px rgba(2, 60, 90, .30);
}

/* --- gambar + chip & tanggal --- */
.bd-news-card__fig {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  max-height: 240px;
  background: #eef4f7;
  overflow: hidden;
}
.bd-news-card__fig img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.bd-news-card__figlink {
  display: block;
  width: 100%;
  height: 100%;
}
.bd-news-card:hover .bd-news-card__fig img { transform: scale(1.07); }
.bd-news-card__chip,
.bd-news-card__date {
  position: absolute;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 11px;
  border-radius: 999px;
  font-size: 10.5px;
  font-weight: 700;
  line-height: 1.3;
}
.bd-news-card__chip {
  top: 12px; left: 12px;
  max-width: calc(100% - 24px);
  background: #b45309;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 6px 14px rgba(0, 0, 0, .35);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bd-news-card__chip:hover {
  background: #92400e;
  color: #fff;
  text-decoration: none;
}
.bd-news-card__date {
  bottom: 12px; left: 12px;
  background: rgba(9, 32, 45, .68);
  color: #f1f7fa;
  backdrop-filter: blur(4px);
}
.bd-news-card__date i { font-size: 9.5px; color: #7dd3fc; }

/* --- isi kartu --- */
.bd-news-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 15px 16px 16px;
  flex: 1;
}
.bd-news-card__title {
  margin: 0;
  font-size: 14.5px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: -.01em;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bd-news-card__title a { color: inherit; text-decoration: none; transition: color .2s ease; }
.bd-news-card__title a:hover { color: #0284c7; }
.bd-news-card__excerpt {
  margin: 0;
  font-size: 12.5px;
  line-height: 1.65;
  color: #64748b;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bd-news-card__more {
  margin-top: auto;
  padding-top: 4px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  font-weight: 700;
  color: #0284c7;
  text-decoration: none;
  transition: gap .2s ease;
}
.bd-news-card__more i { font-size: 10.5px; }
.bd-news-card__more:hover { gap: 11px; }

/* --- responsif: 1 baris berubah jadi tumpuk --- */
@media (max-width: 920px) {
  .bd-news { flex-wrap: wrap; }
  .bd-news-card { flex: 1 1 calc(50% - 9px); }
}
@media (max-width: 640px) {
  .bd-news-card { flex: 1 1 100%; }
}

/* =========================================================
   GALERI â€” halaman album & foto
   ========================================================= */
.bd-galeri__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 4px;
  padding: 18px 24px !important;
  background: linear-gradient(135deg, #f0f9ff, #ffffff 55%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}
.bd-galeri__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #0284c7, #0f2744);
  color: #fff;
  font-size: 19px;
  box-shadow: 0 8px 18px -6px rgba(2, 60, 90, .45);
}
.bd-galeri__head-text { min-width: 0; }
.bd-galeri__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #0f172a;
  line-height: 1.3;
}
.bd-galeri__subtitle {
  margin: 3px 0 0;
  font-size: 13px;
  color: #64748b;
}

.bd-galeri__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 18px;
  padding: 18px 0 6px;
}
.bd-galeri__grid--photo {
  grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
  gap: 14px;
}

.bd-galeri-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6edf2;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 26px -14px rgba(15, 23, 42, .16);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease, border-color .3s ease;
  height: 100%;
}
.bd-galeri-card:hover {
  transform: translateY(-5px);
  border-color: #cfe3ec;
  box-shadow: 0 22px 40px -18px rgba(2, 60, 90, .30);
}

/* --- media --- */
.bd-galeri-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 3;
  background: #eef4f7;
  overflow: hidden;
}
.bd-galeri-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .6s cubic-bezier(.16, 1, .3, 1);
}
.bd-galeri-card:hover .bd-galeri-card__media img { transform: scale(1.07); }
.bd-galeri-card__placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #e8f4f8, #f1f5f9);
  color: #94a3b8;
  font-size: 34px;
}
.bd-galeri-card__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(9, 32, 45, .45);
  color: #fff;
  font-size: 22px;
  opacity: 0;
  transition: opacity .25s ease;
}
.bd-galeri-card:hover .bd-galeri-card__overlay { opacity: 1; }
.bd-galeri-card--photo .bd-galeri-card__media { aspect-ratio: 1 / 1; border-radius: 14px; }

/* --- isi kartu --- */
.bd-galeri-card__body {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 12px 14px 14px;
  flex: 1;
}
.bd-galeri-card__name {
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: -.01em;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bd-galeri-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
  font-size: 11.5px;
  font-weight: 600;
  color: #64748b;
}
.bd-galeri-card__meta i { font-size: 10px; color: #0284c7; }

/* --- state: skeleton & kosong --- */
.bd-galeri-card.is-skeleton .bd-galeri-card__media,
.bd-galeri-card.is-skeleton .bd-galeri-card__name,
.bd-galeri-card.is-skeleton .bd-galeri-card__meta {
  background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%);
  background-size: 200% 100%;
  animation: bd-galeri-shimmer 1.4s ease infinite;
  border-radius: 8px;
}
.bd-galeri-card.is-skeleton .bd-galeri-card__name { height: 14px; }
.bd-galeri-card.is-skeleton .bd-galeri-card__meta { height: 10px; width: 45%; }
@keyframes bd-galeri-shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

.bd-galeri__empty {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 46px 20px;
  text-align: center;
  color: #94a3b8;
}
.bd-galeri__empty i { font-size: 42px; color: #cbd5e1; }
.bd-galeri__empty p { margin: 0; font-size: 14px; color: #64748b; }

@media (max-width: 640px) {
  .bd-galeri__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bd-galeri__grid--photo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bd-galeri__head { padding: 14px 16px; }
  .bd-galeri__title { font-size: 17px; }
}

/* =========================================================
   PEMERINTAHAN â€” kartu perangkat desa (foto utuh)
   ========================================================= */
.bd-perangkat__head {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 6px 0 4px;
  padding: 18px 24px !important;
  background: linear-gradient(135deg, #f0f9ff, #ffffff 55%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
}
.bd-perangkat__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: linear-gradient(135deg, #0284c7, #0f2744);
  color: #fff;
  font-size: 19px;
  box-shadow: 0 8px 18px -6px rgba(2, 60, 90, .45);
}
.bd-perangkat__head-text { min-width: 0; }
.bd-perangkat__title {
  margin: 0;
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -.01em;
  color: #0f172a;
  line-height: 1.3;
}
.bd-perangkat__subtitle {
  margin: 3px 0 0;
  font-size: 13px;
  color: #64748b;
}

.bd-perangkat__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 18px;
  padding: 18px 0 6px;
}

.bd-perangkat-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid #e6edf2;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 10px 26px -14px rgba(15, 23, 42, .16);
  transition: transform .3s cubic-bezier(.16, 1, .3, 1), box-shadow .3s ease, border-color .3s ease;
  height: 100%;
}
.bd-perangkat-card:hover {
  transform: translateY(-5px);
  border-color: #cfe3ec;
  box-shadow: 0 22px 40px -18px rgba(2, 60, 90, .30);
}

/* --- foto utuh: proporsi 3/4, tidak terpotong (object-contain) --- */
.bd-perangkat-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 3 / 4;
  background:
    radial-gradient(circle at 50% 0%, rgba(2, 132, 199, .08), transparent 60%),
    linear-gradient(180deg, #f1f7fa, #eef2f7);
  overflow: hidden;
}
.bd-perangkat-card__media img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: top center;
}

/* --- isi kartu --- */
.bd-perangkat-card__body {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 5px;
  padding: 14px 14px 16px;
  text-align: center;
  flex: 1;
}
.bd-perangkat-card__name {
  font-size: 15px;
  font-weight: 800;
  line-height: 1.35;
  letter-spacing: -.01em;
  color: #0f172a;
}
.bd-perangkat-card__jabatan {
  font-size: 12.5px;
  font-weight: 600;
  color: #0284c7;
}
.bd-perangkat-card__niap {
  font-size: 11.5px;
  color: #64748b;
}
.bd-perangkat-card__badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-top: 2px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
}
.bd-perangkat-card__badge.is-hadir {
  background: #ecfdf5;
  color: #047857;
  border: 1px solid #a7f3d0;
}
.bd-perangkat-card__badge.is-absen {
  background: #fff1f2;
  color: #be123c;
  border: 1px solid #fecdd3;
}
.bd-perangkat-card__sosmed-list {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 6px;
  flex-wrap: wrap;
}
.bd-perangkat-card__sosmed {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0284c7, #0f2744);
  color: #fff !important;
  font-size: 13px;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.bd-perangkat-card__sosmed:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -6px rgba(2, 60, 90, .45);
}

/* --- state: skeleton & kosong --- */
.bd-perangkat-card.is-skeleton .bd-perangkat-card__media,
.bd-perangkat-card.is-skeleton .bd-perangkat-card__name,
.bd-perangkat-card.is-skeleton .bd-perangkat-card__jabatan,
.bd-perangkat-card.is-skeleton .bd-perangkat-card__badge {
  background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%);
  background-size: 200% 100%;
  animation: bd-galeri-shimmer 1.4s ease infinite;
  border-radius: 8px;
}
.bd-perangkat-card.is-skeleton .bd-perangkat-card__name { height: 15px; width: 60%; }
.bd-perangkat-card.is-skeleton .bd-perangkat-card__jabatan { height: 12px; width: 45%; }
.bd-perangkat-card.is-skeleton .bd-perangkat-card__badge { height: 20px; width: 35%; border-radius: 999px; }

.bd-perangkat__empty {
  display: none;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 46px 20px;
  text-align: center;
  color: #94a3b8;
}
.bd-perangkat__empty i { font-size: 40px; color: #cbd5e1; }
.bd-perangkat__empty p { margin: 0; font-size: 14px; color: #64748b; }

@media (max-width: 640px) {
  .bd-perangkat__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .bd-perangkat__head { padding: 14px 16px; }
  .bd-perangkat__title { font-size: 17px; }
}

/* --- sidenav statistik --- */
.bd-stat__nav {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #e6edf2;
  box-shadow: 0 10px 26px -14px rgba(15, 23, 42, .16) !important;
}
.bd-stat__nav .accordion-button:not(.collapsed) {
  background: linear-gradient(135deg, #f0f9ff, #ffffff);
  color: #0f172a;
}
.bd-stat__nav .accordion-button:hover {
  background: #eef8fa;
}
.bd-stat__nav .accordion-body ul { margin: 0; }
.bd-stat__nav .accordion-body a {
  transition: padding-left .2s ease, background .2s ease, color .2s ease;
}
.bd-stat__nav .accordion-body a:hover {
  padding-left: 22px !important;
}

/* =========================================================
   SIDEBAR WIDGETS — tampilan widget samping (executive style)
   ========================================================= */

/* --- panel widget --- */
.sidebar .box {
  background: #fff;
  border: 1px solid #e6edf2;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 26px -14px rgba(15, 23, 42, .16) !important;
  transition: box-shadow .25s ease, transform .25s ease;
}
.sidebar .box:hover {
  box-shadow: 0 16px 34px -14px rgba(15, 23, 42, .22) !important;
}

/* --- header kartu widget: pakai warna background header (teal) --- */
.sidebar .box-header {
  position: relative;
  display: flex;
  align-items: center;
  padding: 12px 16px !important;
  background: #12556a !important;
  color: #fff;
  border-bottom: 0 !important;
}
.sidebar .box-header:before {
  content: none !important;
}
.sidebar .box-title {
  position: relative;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 !important;
  padding: 0 !important;
  font-family: Poppins, system-ui, sans-serif;
  font-size: 13.5px !important;
  line-height: 1.35 !important;
  font-weight: 700 !important;
  color: #fff !important;
  letter-spacing: .01em;
}
.sidebar .box-title a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: #fff !important;
  text-decoration: none;
}
.sidebar .box-title a:hover { color: #7dd3fc !important; }
.sidebar .box-title i {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, #0284c7, #2563eb);
  color: #fff !important;
  font-size: 12px;
  margin-right: 0 !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, .3);
}

/* --- isi widget --- */
.sidebar .box-body {
  padding: 14px 16px !important;
  font-size: 13px;
  color: #334155;
}
.sidebar .box-body a { color: #0f2744; }
.sidebar .box-body a:hover { color: #0284c7; text-decoration: none; }

/* --- tab kapsul (arsip artikel / profil desa / agenda) --- */
.sidebar .box-body .nav-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  border: 0 !important;
  border-radius: 10px;
  padding: 4px;
  margin: 0 0 12px 0 !important;
}
.sidebar .box-body .nav-tabs .nav-item { flex: 1; text-align: center; }
.sidebar .box-body .nav-link {
  display: block;
  width: 100%;
  border: 0 !important;
  border-bottom: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #64748b !important;
  padding: 7px 8px !important;
  margin: 0 !important;
  font-family: Poppins, system-ui, sans-serif;
  font-size: 12px !important;
  font-weight: 600 !important;
  cursor: pointer;
  transition: all .18s ease;
}
.sidebar .box-body .nav-link:hover { color: #0f2744 !important; background: #e2e8f0 !important; }
.sidebar .box-body .nav-link.active,
.sidebar .box-body .nav-link.show {
  background: #0284c7 !important;
  color: #fff !important;
  box-shadow: 0 2px 6px rgba(2, 132, 199, .3);
}

/* --- tabel di dalam widget (jam kerja, agenda, dll.) --- */
.sidebar .box-body table { width: 100%; }
.sidebar .box-body table th,
.sidebar .box-body table td {
  border: 0 !important;
  padding: 8px 10px;
  font-size: 12.5px;
  color: #334155;
  background: transparent !important;
}
.sidebar .box-body thead th {
  background: #f1f5f9 !important;
  color: #0f2744 !important;
  font-weight: 700;
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: .04em;
}
.sidebar .box-body tbody tr { border-bottom: 1px solid #f1f5f9; }
.sidebar .box-body tbody tr:last-child { border-bottom: 0; }
.sidebar .box-body tbody tr:hover { background: #f0f9ff; }

/* label libur */
.sidebar .box-body .label-danger {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 9999px;
  background: #fff1f2;
  color: #be123c;
  font-size: 10.5px;
  font-weight: 700;
}

/* --- statistik pengunjung --- */
.sidebar .box-body table.counter td {
  padding: 9px 2px;
  vertical-align: middle;
}
.sidebar .box-body table.counter tr + tr td { border-top: 1px solid #f1f5f9; }
.sidebar .box-body table.counter td:last-child {
  font-weight: 800;
  color: #0f2744;
  font-variant-numeric: tabular-nums;
}

/* --- menu kategori --- */
.sidebar .box-body ul.divide-y { list-style: none; margin: 0; padding: 0; }
.sidebar .box-body ul.divide-y > * + * { border-top: 1px solid #f1f5f9; }
.sidebar .box-body ul.divide-y > li > a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 2px;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
  transition: color .15s ease, padding-left .2s ease;
}
.sidebar .box-body ul.divide-y > li > a::after {
  content: '\f105';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: #94a3b8;
  font-size: 10px;
  transition: color .15s ease, transform .2s ease;
}
.sidebar .box-body ul.divide-y > li > a:hover { color: #0284c7; padding-left: 6px; }
.sidebar .box-body ul.divide-y > li > a:hover::after { color: #0284c7; transform: translateX(2px); }
.sidebar .box-body ul.divide-y ul { margin: 0; padding-left: 12px; list-style: none; }
.sidebar .box-body ul.divide-y ul a { font-weight: 500; font-size: 12px; color: #64748b; }

/* --- galeri widget --- */
.sidebar .box-body.grid { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sidebar .box-body.grid img {
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  transition: all .2s ease;
}
.sidebar .box-body.grid a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -6px rgba(15, 23, 42, .25);
  border-color: #0284c7;
}

/* --- media sosial --- */
.sidebar .box-body.flex { display: flex; gap: 8px; flex-wrap: wrap; }
.sidebar .box-body.flex img {
  width: 42px !important;
  height: 42px !important;
  border-radius: 11px !important;
  border: 1px solid #e2e8f0;
  transition: all .18s ease;
}
.sidebar .box-body.flex a:hover img {
  transform: translateY(-2px);
  box-shadow: 0 8px 16px -6px rgba(15, 23, 42, .25);
}

/* --- sinergi program --- */
.sidebar #sinergi_program img { border-radius: 10px; border: 1px solid #e2e8f0; }

/* --- peta widget --- */
.sidebar .box-body [id^='map_'],
.sidebar .box-body #map_canvas {
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  overflow: hidden;
}

/* --- aparatur desa (carousel) --- */
.sidebar .owl-carousel img { border-radius: 14px; width: 100%; }
.sidebar .owl-carousel .btn {
  border-radius: 9999px !important;
  font-size: 11px !important;
  padding: 3px 12px !important;
  border: 0 !important;
  box-shadow: 0 3px 8px -2px rgba(15, 23, 42, .2) !important;
}

/* --- komentar widget --- */
.sidebar .box-body blockquote { margin: 0; }
.sidebar .box-body .marquee-vertical-wrapper { overflow: hidden; }

/* --- keuangan widget --- */
.sidebar .box-body .graph-sub {
  font-family: Poppins, system-ui, sans-serif !important;
  font-size: 12px !important;
  color: #334155 !important;
  padding: 6px 12px 2px 12px;
}
.sidebar .box-body .graph-not-available {
  font-family: Poppins, system-ui, sans-serif !important;
  color: #94a3b8 !important;
  font-size: 12px !important;
}
.sidebar .box-body .btn-primary {
  border-radius: 9px !important;
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  border: 0 !important;
  box-shadow: 0 4px 10px rgba(2, 132, 199, .3) !important;
}
.sidebar .box-body .btn-primary:hover { background: linear-gradient(135deg, #0369a1, #075985) !important; }

/* --- tombol umum di widget --- */
.sidebar .box-body .btn { border-radius: 9px; }
.sidebar .box-body .btn-accent {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  border: 0;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 4px 10px rgba(2, 132, 199, .3);
  transition: transform .18s ease, box-shadow .18s ease;
}
.sidebar .box-body .btn-accent:hover { transform: translateY(-1px); box-shadow: 0 6px 14px rgba(2, 132, 199, .4); }

/* --- formulir pencarian di atas widget --- */
.sidebar > form { position: relative; }
.sidebar > form .form-input {
  height: 46px !important;
  border-radius: 14px !important;
  border: 1px solid #e6edf2 !important;
  background: #fff !important;
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, .18) !important;
  font-size: 13px;
  padding-left: 42px !important;
  outline: none;
  transition: border-color .18s ease, box-shadow .18s ease;
}
.sidebar > form .form-input:focus {
  border-color: #0284c7 !important;
  box-shadow: 0 0 0 3px rgba(2, 132, 199, .15) !important;
}
.sidebar > form i {
  left: 14px !important;
  color: #94a3b8 !important;
}

/* --- modal detail desa --- */
.sidebar .modal-content { border-radius: 16px; border: 1px solid #e2e8f0; }
.sidebar .modal-header {
  background: linear-gradient(135deg, #07172c 0%, #153e6b 100%);
  border-radius: 16px 16px 0 0;
}
.sidebar .modal-header h5 { color: #fff; font-size: 15px; font-weight: 700; }
.sidebar .modal-header .btn-close {
  filter: invert(1) grayscale(100%) brightness(200%);
  opacity: .8;
}
.sidebar .modal-body table td { padding: 7px 6px; font-size: 12.5px; }
.sidebar .modal-body table td:first-child { color: #64748b; width: 38%; }

/* ==========================================================================
   BERITA DUKA CITA (LELAYU) - LUMINOUS EXECUTIVE & SOLEMN NOTIFICATION POPUP
   ========================================================================== */
body.bd-duka-modal-open {
  overflow: hidden !important;
}

.bd-duka-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow-y: auto;
  padding: 20px 16px;
  opacity: 1;
  transition: opacity .26s ease;
}

.bd-duka-modal-overlay.bd-duka-fade-out {
  opacity: 0;
  pointer-events: none;
}

.bd-duka-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.bd-duka-container {
  position: relative;
  z-index: 10;
  width: min(96%, 900px);
  max-width: 900px;
  margin: auto;
  animation: bdDukaPop .32s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes bdDukaPop {
  0% {
    opacity: 0;
    transform: scale(0.93) translateY(16px);
  }
  100% {
    opacity: 1;
    transform: scale(1) translateY(0);
  }
}

.bd-duka-card {
  position: relative;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 25px 65px -12px rgba(15, 23, 42, 0.35),
              0 0 1px rgba(0, 0, 0, 0.12);
  color: #0f172a;
  overflow: hidden;
}

/* TOP HEADER: DEEP EMERALD & GOLD */
.bd-duka-header {
  position: relative;
  background: linear-gradient(135deg, #064e3b 0%, #065f46 55%, #042f2e 100%);
  padding: 15px 24px 13px;
  text-align: center;
  color: #ffffff;
}

.bd-duka-header::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, #d97706 0%, #fbbf24 50%, #d97706 100%);
}

.bd-duka-close-btn {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.18);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #ffffff;
  cursor: pointer;
  transition: all .2s ease;
  z-index: 20;
}
.bd-duka-close-btn:hover {
  background: #ef4444;
  border-color: #dc2626;
  color: #ffffff;
  transform: rotate(90deg);
}

.bd-duka-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 12px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(251, 191, 36, 0.45);
  color: #fef08a;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}

.bd-duka-badge-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #fbbf24;
  box-shadow: 0 0 8px #fbbf24;
  animation: bdDukaPulse 2s infinite;
}

@keyframes bdDukaPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.35; transform: scale(0.8); }
}

.bd-duka-calligraphy {
  font-family: 'Traditional Arabic', 'Scheherazade New', 'Amiri', 'Lateef', serif;
  font-size: 24px;
  line-height: 1.35;
  color: #fbbf24;
  letter-spacing: 0.5px;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  margin-bottom: 2px;
}

.bd-duka-transliteration {
  font-size: 11.5px;
  font-style: italic;
  color: #e2e8f0;
  margin-bottom: 4px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
}

.bd-duka-lead {
  font-size: 12px;
  color: #cbd5e1;
  margin: 0;
  line-height: 1.35;
}

/* CARD BODY */
.bd-duka-body {
  padding: 14px 20px 14px;
  background: #ffffff;
}

/* SLIDER */
.bd-duka-slider {
  position: relative;
  min-height: auto;
}

.bd-duka-slide {
  display: none;
  animation: bdDukaFadeIn .28s ease forwards;
}

.bd-duka-slide.active {
  display: block;
}

@keyframes bdDukaFadeIn {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: translateY(0); }
}

/* PROFILE WRAP */
.bd-duka-profile-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  padding: 11px 13px;
  margin-bottom: 10px;
}

.bd-duka-avatar {
  position: relative;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  flex-shrink: 0;
  border: 3px solid #d97706;
  box-shadow: 0 0 0 3px #fef3c7, 0 8px 18px -4px rgba(15, 23, 42, 0.16);
  background: #ffffff;
  overflow: visible;
}

.bd-duka-img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

.bd-duka-avatar-placeholder {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  background: #f1f5f9;
}

.bd-duka-ribbon-badge {
  position: absolute;
  bottom: -4px;
  right: -4px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #0f172a;
  border: 1.5px solid #d97706;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
}

.bd-duka-identity {
  flex: 1;
  min-width: 0;
}

.bd-duka-sebutan-pill {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 4px;
}

.bd-duka-sebutan-pill.female {
  background: #fdf2f8;
  color: #be185d;
  border: 1px solid #fbcfe8;
}

.bd-duka-sebutan-pill.male {
  background: #eff6ff;
  color: #1d4ed8;
  border: 1px solid #bfdbfe;
}

.bd-duka-name {
  font-family: Georgia, Cambria, 'Times New Roman', serif;
  font-size: 20px;
  font-weight: 800;
  color: #0f172a;
  letter-spacing: 0.3px;
  line-height: 1.25;
  margin: 0 0 4px;
  word-break: break-word;
}

.bd-duka-usia {
  font-size: 13px;
  color: #475569;
}

.bd-duka-usia strong {
  color: #0f172a;
  font-weight: 700;
}

.bd-duka-birth {
  color: #64748b;
  margin-left: 4px;
}

/* META GRID */
.bd-duka-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  margin-bottom: 8px;
}

.bd-duka-meta-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 11px;
  padding: 8px 10px;
  box-shadow: 0 2px 6px -1px rgba(15, 23, 42, 0.04);
}

.bd-duka-meta-item.bd-duka-meta-full {
  grid-column: 1 / -1;
}

.bd-duka-meta-icon {
  font-size: 13px;
  line-height: 1;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.bd-duka-meta-info {
  flex: 1;
  min-width: 0;
}

.bd-duka-meta-info label {
  display: block;
  font-size: 10px;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  margin-bottom: 1px;
}

.bd-duka-meta-info strong {
  display: block;
  font-size: 12.5px;
  color: #0f172a;
  font-weight: 700;
  line-height: 1.25;
}

.bd-duka-meta-info small {
  display: block;
  font-size: 11px;
  color: #64748b;
  margin-top: 1px;
}

.bd-duka-meta-info p {
  font-size: 12px;
  color: #334155;
  margin: 0;
  line-height: 1.35;
}

/* MULTI-SLIDE NAVIGATION */.bd-duka-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 8px 0;
}

.bd-duka-nav-btn {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #475569;
  cursor: pointer;
  transition: all .2s ease;
}
.bd-duka-nav-btn:hover {
  background: #065f46;
  border-color: #065f46;
  color: #ffffff;
}

.bd-duka-dots {
  display: flex;
  align-items: center;
  gap: 6px;
}

.bd-duka-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cbd5e1;
  cursor: pointer;
  transition: all .2s ease;
}

.bd-duka-dot.active {
  width: 22px;
  border-radius: 999px;
  background: #059669;
  box-shadow: 0 0 8px rgba(5, 150, 105, 0.4);
}

/* PRAYER CALLOUT */
.bd-duka-prayer {
  background: linear-gradient(135deg, #f0fdf4 0%, #ecfdf5 100%);
  border: 1px solid #bbf7d0;
  border-left: 4px solid #059669;
  border-radius: 12px;
  padding: 8px 14px;
  margin-top: 6px;
}

.bd-duka-prayer-text {
  font-size: 11.5px;
  line-height: 1.5;
  color: #1e3a5f;
  font-style: italic;
  margin: 0 0 3px;
}

.bd-duka-prayer-from {
  font-size: 10px;
  font-weight: 800;
  color: #047857;
  letter-spacing: 0.5px;
  text-transform: uppercase;
}

/* ACTIONS */
.bd-duka-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
}

.bd-duka-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 38px;
  padding: 0 18px;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all .2s ease;
  border: none;
  outline: none;
}

.bd-duka-btn-wa {
  background: linear-gradient(135deg, #059669 0%, #10b981 100%);
  color: #ffffff;
  box-shadow: 0 4px 14px -2px rgba(16, 185, 129, 0.4);
}
.bd-duka-btn-wa:hover {
  background: linear-gradient(135deg, #047857 0%, #059669 100%);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -2px rgba(16, 185, 129, 0.5);
  color: #ffffff;
}

.bd-duka-btn-close {
  background: #f1f5f9;
  border: 1px solid #cbd5e1;
  color: #334155;
}
.bd-duka-btn-close:hover {
  background: #e2e8f0;
  color: #0f172a;
}

/* FLOATING TRIGGER PILL */
.bd-duka-floating-pill {
  position: fixed;
  bottom: 24px;
  left: 24px;
  z-index: 9998;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px 8px 10px;
  border-radius: 999px;
  background: #ffffff;
  border: 1.5px solid #059669;
  box-shadow: 0 10px 25px -4px rgba(15, 23, 42, 0.18),
              0 0 15px rgba(5, 150, 105, 0.15);
  cursor: pointer;
  color: #0f172a;
  transition: all .25s cubic-bezier(0.16, 1, 0.3, 1);
  animation: bdDukaPillIn .4s ease forwards;
}

@keyframes bdDukaPillIn {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.bd-duka-floating-pill:hover {
  transform: translateY(-2px);
  border-color: #047857;
  box-shadow: 0 14px 30px -4px rgba(15, 23, 42, 0.22),
              0 0 20px rgba(5, 150, 105, 0.25);
}

.bd-duka-floating-avatar-wrap {
  position: relative;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
}

.bd-duka-floating-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid #059669;
  background: #f1f5f9;
  display: block;
  box-shadow: 0 2px 5px rgba(5, 150, 105, 0.2);
}

.bd-duka-floating-ribbon {
  position: absolute;
  bottom: -2px;
  right: -3px;
  width: 17px;
  height: 17px;
  background: #059669;
  border-radius: 50%;
  border: 1.5px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #ffffff;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.2);
}

.bd-duka-floating-icon {
  font-size: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  flex-shrink: 0;
}

.bd-duka-floating-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.bd-duka-floating-label {
  font-size: 9.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: #059669;
}

.bd-duka-floating-name {
  font-size: 13px;
  font-weight: 700;
  color: #0f172a;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bd-duka-floating-address {
  font-size: 11px;
  font-weight: 500;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 4px;
  margin-top: 1px;
  max-width: 200px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.bd-duka-floating-address i {
  color: #059669;
  font-size: 10px;
}

.bd-duka-floating-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #059669;
  color: #ffffff;
  font-size: 10px;
  font-weight: 800;
}

@media (max-width: 640px) {
  .bd-duka-header {
    padding: 20px 16px 16px;
  }
  .bd-duka-body {
    padding: 18px 16px 16px;
  }
  .bd-duka-calligraphy {
    font-size: 24px;
  }
  .bd-duka-name {
    font-size: 20px;
  }
  .bd-duka-meta-grid {
    grid-template-columns: 1fr;
  }
  .bd-duka-meta-item.bd-duka-meta-full {
    grid-column: span 1 / span 1;
  }
  .bd-duka-floating-pill {
    bottom: 16px;
    left: 16px;
  }
}

/* Layar lebar: profil & detail berdampingan agar modal lebih pendek */
@media (min-width: 820px) {
  .bd-duka-slide {
    display: grid;
    grid-template-columns: 290px minmax(0, 1fr);
    gap: 10px 16px;
    align-items: stretch;
  }
  .bd-duka-slide.active {
    display: grid;
  }
  .bd-duka-profile-wrap {
    margin-bottom: 0;
    height: 100%;
  }
  .bd-duka-meta-grid {
    margin-bottom: 0;
    align-content: start;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* =========================================================
   TOPBAR V3: EXECUTIVE STRIP
   Gradient navy + glow, ikon kontak chip, CTA pill gradien.
   Rata kiri 16px sejajar navbar & bar menu.
   ========================================================= */
.bd-topbar {
  position: relative;
  background: linear-gradient(90deg, #061427 0%, #0a213d 55%, #12355c 100%) !important;
  color: #cbd5e1;
  overflow: hidden;
}
.bd-topbar::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(420px 130px at 88% 130%, rgba(56, 189, 248, .16), transparent 70%),
    radial-gradient(360px 120px at 0% -80%, rgba(2, 132, 199, .2), transparent 70%);
  pointer-events: none;
}
.bd-topbar::after {
  content: none; /* garis aksen gradien dihapus — tampak seperti garis putih memisahkan topbar dan header */
}
.bd-topbar__in {
  position: relative;
  z-index: 1;
  max-width: 1240px !important;
  padding: 0 16px !important;
  min-height: 44px;
}
/* --- kontak kiri: ikon chip --- */
.bd-topbar__list li {
  gap: 10px !important;
  font-size: 12px !important;
  font-weight: 500;
  letter-spacing: .01em;
  color: #cfe0ee !important;
}
.bd-topbar__list li i {
  color: #7dd3fc !important;
  width: 20px !important;
  height: 20px;
  font-size: 9.5px !important;
  background: rgba(56, 189, 248, .12);
  border: 1px solid rgba(56, 189, 248, .28);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  margin: 0 !important;
}
.bd-topbar__list a {
  color: #e2e8f0;
  font-weight: 500;
  transition: color .18s ease;
}
.bd-topbar__list a:hover {
  color: #7dd3fc;
  text-decoration: none;
}
/* --- aksi kanan --- */
.bd-topbar__actions {
  gap: 10px !important;
}
.bd-topbar__actions a {
  gap: 7px !important;
  font-size: 12px !important;
  font-weight: 600;
  padding: 6px 14px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .07) !important;
  border: 1px solid rgba(255, 255, 255, .18) !important;
  color: #eef4fa !important;
  white-space: nowrap;
  transition: all .22s cubic-bezier(.16, 1, .3, 1);
}
.bd-topbar__actions a:hover {
  background: rgba(56, 189, 248, .18) !important;
  border-color: rgba(56, 189, 248, .45) !important;
  color: #fff !important;
  transform: translateY(-1px);
}
/* CTA utama: Layanan Mandiri */
.bd-topbar__actions a:first-child {
  background: linear-gradient(135deg, #0284c7, #2563eb) !important;
  border-color: transparent !important;
  color: #fff !important;
  box-shadow: 0 4px 14px -3px rgba(2, 132, 199, .55);
}
.bd-topbar__actions a:first-child:hover {
  background: linear-gradient(135deg, #0369a1, #1d4ed8) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 18px -4px rgba(2, 132, 199, .65);
}
/* --- pencarian --- */
.bd-topbar__search {
  height: 30px !important;
  padding: 2px 5px 2px 12px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, .08) !important;
  border: 1px solid rgba(255, 255, 255, .16) !important;
}
.bd-topbar__search input {
  width: 130px !important;
  height: 24px !important;
  font-size: 12px !important;
  color: #fff !important;
  transition: width .25s ease;
}
.bd-topbar__search input::placeholder {
  color: #8fa8c0;
}
.bd-topbar__search:focus-within {
  background: rgba(255, 255, 255, .14) !important;
  border-color: #38bdf8 !important;
  box-shadow: 0 0 0 3px rgba(56, 189, 248, .22);
}
.bd-topbar__search:focus-within input {
  width: 170px !important;
}
.bd-topbar__search button {
  width: 22px !important;
  height: 22px !important;
  border-radius: 999px !important;
  font-size: 9.5px !important;
  background: linear-gradient(135deg, #0284c7, #0369a1) !important;
  transition: filter .18s ease;
}
.bd-topbar__search button:hover {
  filter: brightness(1.15);
}

@media (max-width: 1100px) {
  .bd-topbar__in {
    padding: 6px 16px !important;
  }
}
@media (max-width: 767px) {
  .bd-topbar__in {
    justify-content: center !important;
    gap: 10px !important;
  }
  .bd-topbar__datetime {
    font-size: 11px;
    padding: 3px 10px;
    gap: 8px;
    margin-bottom: 2px;
  }
  .bd-topbar__list {
    display: flex !important;
    flex-wrap: wrap;
    gap: 10px !important;
  }
  .bd-topbar__list li:last-child {
    display: none;
  }
  .bd-topbar__actions a:first-child {
    order: -1;
  }
}

@media (max-width: 480px) {
  .bd-topbar__date-text {
    display: none; /* Di layar sangat kecil cukup Hari & Jam */
  }
}

/* =========================================================
   MOBILE RESPONSIVE FIX: Eliminasi Elemen Saling Tertindih
   (Hero CTA, Tagline, Slider Dots, Quick Access & Topbar)
   ========================================================= */
@media (max-width: 767px) {
  /* 1. Hero Container & Padding yang adaptif tanpa overflow terpotong */
  .bd-hero {
    min-height: auto !important;
    overflow: visible !important;
  }
  .bd-hero__in {
    padding: 36px 16px 36px !important;
  }

  /* 2. Hero CTA Buttons & Tagline: Ditata rapi secara Grid agar tidak tumpang tindih */
  .bd-hero__cta {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 10px !important;
    margin-top: 20px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Tombol Layanan Warga lebar penuh sebagai aksi utama */
  .bd-hero__cta .bd-btn--fill {
    grid-column: 1 / -1 !important;
    justify-content: center !important;
    font-size: 14px !important;
    padding: 12px 18px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* Tombol Pemerintah Desa dan Berita Desa berdampingan 50% / 50% */
  .bd-hero__cta .bd-btn--ghost {
    justify-content: center !important;
    font-size: 12.5px !important;
    padding: 10px 8px !important;
    text-align: center !important;
    white-space: nowrap !important;
    box-sizing: border-box !important;
  }

  /* Kartu / Tagline Bersama OpenSID lebar penuh di bawah tombol, terpusat dan elegan */
  .bd-hero__tagline {
    grid-column: 1 / -1 !important;
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    text-align: center !important;
    padding: 10px 16px !important;
    margin-top: 4px !important;
    border-radius: 14px !important;
  }
  .bd-hero__tagline .bd-hero__tagline-sub {
    font-size: 11px !important;
    text-align: center !important;
  }
  .bd-hero__tagline .bd-hero__tagline-main {
    font-size: 13.5px !important;
    text-align: center !important;
  }

  /* 3. Slider Dots: Berpindah dari absolute ke flow alami agar tidak menimpa tombol/tagline */
  .bd-hero__dots {
    position: static !important;
    margin: 16px auto 4px !important;
    padding: 0 !important;
    display: flex !important;
    justify-content: center !important;
    z-index: 4 !important;
  }

  /* 4. Quick Access Card (Akses Cepat): Margin negatif diperhalus agar tidak menindih hero */
  .bd-quick {
    margin-top: -12px !important;
    position: relative !important;
    z-index: 5 !important;
    box-shadow: 0 14px 34px rgba(15, 47, 58, .10) !important;
  }
}

@media (max-width: 640px) {
  /* Akses Cepat grid 3 kolom pada ponsel pintar, ringkas & presisi */
  .bd-quick {
    grid-template-columns: repeat(3, 1fr) !important;
    gap: 10px !important;
    padding: 20px 12px !important;
  }
  .bd-quick__item {
    padding: 10px 6px !important;
    gap: 8px !important;
  }
  .bd-quick__icon {
    width: 48px !important;
    height: 48px !important;
    font-size: 20px !important;
    border-radius: 14px !important;
  }
  .bd-quick__label {
    font-size: 12px !important;
  }
  /* Sembunyikan deskripsi panjang akses cepat di mobile agar tidak berdesakan */
  .bd-quick__desc {
    display: none !important;
  }

  /* Topbar di mobile tidak membuat horizontal overflow */
  .bd-topbar__in {
    padding: 6px 10px !important;
  }
  .bd-topbar__actions {
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .bd-fullscreen-btn {
    display: none !important;
  }
  .bd-topbar__search {
    max-width: 150px !important;
  }

  /* Berita Duka Floating Pill aman dari tombol Back to Top kanan */
  .bd-duka-floating-pill {
    bottom: 16px !important;
    left: 14px !important;
    max-width: calc(100vw - 84px) !important;
    padding: 6px 12px 6px 8px !important;
  }
}

@media (max-width: 380px) {
  .bd-quick {
    grid-template-columns: repeat(2, 1fr) !important;
  }
  .bd-hero__cta .bd-btn--ghost {
    font-size: 12px !important;
    padding: 9px 6px !important;
  }
}



/* =========================================================
   BERDAYA v2.6 - LAPAK DESA: produk warga di beranda
   Kartu putih rounded, aksen biru tema, grid 4 kolom
   ========================================================= */
.bd-lapak {
  max-width: 1240px;
  margin: 8px auto 44px;
  padding: 0;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.bd-lapak__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}
.bd-lapak__head::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 90px;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #059669 0%, #34d399 100%);
}
.bd-lapak__intro { flex: 1 1 360px; }
.bd-lapak__badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.bd-lapak__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: #ecfdf5;
  border: 1px solid #a7f3d0;
  color: #047857;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(5, 150, 105, 0.08);
}
.bd-lapak__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #059669;
  box-shadow: 0 0 6px #059669;
}
.bd-lapak__badge-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
}
.bd-lapak__title {
  margin: 0 0 12px 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  display: flex;
  align-items: center;
}
.bd-lapak__title i {
  color: #059669;
  font-size: 0.9em;
  margin-right: 8px;
}
.bd-lapak__lead {
  margin: 8px 0 0;
  max-width: 640px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #64748b;
  font-weight: 400;
}
.bd-lapak__actions { flex: 0 0 auto; }
.bd-lapak__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f2744;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.bd-lapak__link:hover {
  background: #059669;
  border-color: #059669;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(5, 150, 105, 0.28);
}
.bd-lapak__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.bd-lapak__grid[hidden] { display: none; }
.bd-lapak__card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px -10px rgba(15, 23, 42, 0.10), 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.bd-lapak__card:hover {
  transform: translateY(-6px);
  border-color: #bae6fd;
  box-shadow: 0 22px 40px -14px rgba(7, 23, 44, 0.28), 0 4px 10px rgba(15, 23, 42, 0.08);
}
.bd-lapak__media {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eef7ff 0%, #e6f4f1 100%);
  overflow: hidden;
  text-decoration: none;
}
.bd-lapak__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.bd-lapak__card:hover .bd-lapak__media img { transform: scale(1.05); }
.bd-lapak__media-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.18);
}
.bd-lapak__body {
  display: flex;
  flex-direction: column;
  gap: 7px;
  padding: 14px 16px 16px;
  flex: 1;
}
.bd-lapak__chip {
  align-self: flex-start;
  padding: 3px 9px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.bd-lapak__name {
  margin: 0;
  font-size: 13.5px;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bd-lapak__name a { color: inherit; text-decoration: none; }
.bd-lapak__name a:hover { color: #0284c7; }
.bd-lapak__price {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px;
}
.bd-lapak__price strong {
  font-size: 15px;
  font-weight: 800;
  color: #059669;
  letter-spacing: -0.01em;
}
.bd-lapak__price s {
  font-size: 11px;
  font-weight: 500;
  color: #94a3b8;
  text-decoration: line-through;
}
.bd-lapak__unit { font-size: 10.5px; color: #94a3b8; font-weight: 500; }
.bd-lapak__seller {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
  min-width: 0;
}
.bd-lapak__seller i { color: #0284c7; font-size: 10.5px; }
.bd-lapak__seller span {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bd-lapak__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}
.bd-lapak__wa {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 12px;
  background: #059669;
  color: #ffffff;
  border: 1px solid #059669;
  border-radius: 9px;
  font-size: 11.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.18s ease;
}
.bd-lapak__wa:hover {
  background: #047857;
  border-color: #047857;
  color: #ffffff;
  transform: translateY(-1px);
}
.bd-lapak__wa--ghost {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #475569;
}
.bd-lapak__wa--ghost:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
}
.bd-lapak__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #0f2744;
  text-decoration: none;
  transition: color 0.18s ease;
}
.bd-lapak__more:hover { color: #0284c7; }
.bd-lapak__more i { font-size: 9.5px; }
.bd-lapak__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 24px;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  color: #64748b;
}
.bd-lapak__empty[hidden] { display: none; }
.bd-lapak__empty i { font-size: 30px; color: #cbd5e1; margin-bottom: 4px; }
.bd-lapak__empty strong { font-size: 14px; font-weight: 700; color: #334155; }
.bd-lapak__empty p { margin: 0; font-size: 12px; }

/* Kerangka memuat (skeleton) */
.bd-lapak__card--skeleton { pointer-events: none; }
.bd-lapak__card--skeleton .bd-lapak__media,
.bd-lapak__card--skeleton .bd-lapak__chip,
.bd-lapak__card--skeleton .bd-lapak__name,
.bd-lapak__card--skeleton .bd-lapak__price-line,
.bd-lapak__card--skeleton .bd-lapak__seller-line {
  display: block;
  background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%);
  background-size: 200% 100%;
  animation: bdLapakShimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}
.bd-lapak__card--skeleton .bd-lapak__media { aspect-ratio: 4 / 3; border-radius: 0; }
.bd-lapak__card--skeleton .bd-lapak__body { gap: 10px; }
.bd-lapak__card--skeleton .bd-lapak__chip { width: 70px; height: 16px; }
.bd-lapak__card--skeleton .bd-lapak__name { width: 85%; height: 14px; }
.bd-lapak__card--skeleton .bd-lapak__price-line { width: 55%; height: 16px; }
.bd-lapak__card--skeleton .bd-lapak__seller-line { width: 45%; height: 12px; }
@keyframes bdLapakShimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (max-width: 1100px) {
  .bd-lapak__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .bd-lapak__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .bd-lapak { margin-bottom: 32px; }
  .bd-lapak__head { gap: 14px; }
  .bd-lapak__grid { grid-template-columns: 1fr; gap: 12px; }
  .bd-lapak__media { aspect-ratio: 16 / 9; }
}

/* =========================================================
   BERDAYA v2.6 - PEMBANGUNAN DESA: proyek & realisasi di beranda
   Kartu putih rounded, aksen amber, progres fisik
   ========================================================= */
.bd-pbg {
  max-width: 1240px;
  margin: 8px auto 44px;
  padding: 0;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.bd-pbg__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}
.bd-pbg__head::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 90px;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #d97706 0%, #fbbf24 100%);
}
.bd-pbg__intro { flex: 1 1 360px; }
.bd-pbg__badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.bd-pbg__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(217, 119, 6, 0.08);
}
.bd-pbg__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #d97706;
  box-shadow: 0 0 6px #d97706;
}
.bd-pbg__badge-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
}
.bd-pbg__title {
  margin: 0 0 12px 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  display: flex;
  align-items: center;
}
.bd-pbg__title i {
  color: #d97706;
  font-size: 0.9em;
  margin-right: 8px;
}
.bd-pbg__lead {
  margin: 8px 0 0;
  max-width: 640px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #64748b;
  font-weight: 400;
}
.bd-pbg__actions { flex: 0 0 auto; }
.bd-pbg__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f2744;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.bd-pbg__link:hover {
  background: #d97706;
  border-color: #d97706;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.28);
}
.bd-pbg__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}
.bd-pbg__grid[hidden] { display: none; }
.bd-pbg__card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px -10px rgba(15, 23, 42, 0.10), 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.bd-pbg__card:hover {
  transform: translateY(-6px);
  border-color: #fde68a;
  box-shadow: 0 22px 40px -14px rgba(7, 23, 44, 0.28), 0 4px 10px rgba(15, 23, 42, 0.08);
}
.bd-pbg__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 10;
  background: linear-gradient(135deg, #fff7ed 0%, #eef7ff 100%);
  overflow: hidden;
  text-decoration: none;
}
.bd-pbg__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.bd-pbg__card:hover .bd-pbg__media img { transform: scale(1.05); }
.bd-pbg__media-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #d97706, #b45309);
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.18);
}
.bd-pbg__media::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 56%;
  background: linear-gradient(180deg, rgba(7, 23, 44, 0) 0%, rgba(7, 23, 44, 0.45) 100%);
  pointer-events: none;
}
.bd-pbg__year,
.bd-pbg__pill {
  position: absolute;
  top: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  backdrop-filter: blur(6px);
}
.bd-pbg__year {
  left: 10px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #0f2744;
}
.bd-pbg__pill { right: 10px; }
.bd-pbg__pill--done { background: rgba(5, 150, 105, 0.92); color: #ffffff; }
.bd-pbg__pill--ongoing { background: rgba(217, 119, 6, 0.94); color: #ffffff; }
.bd-pbg__pill--new { background: rgba(71, 85, 105, 0.9); color: #ffffff; }
.bd-pbg__bar {
  height: 5px;
  background: #eef2f7;
  overflow: hidden;
}
.bd-pbg__bar-fill {
  display: block;
  height: 100%;
  border-radius: 0 9999px 9999px 0;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.bd-pbg__bar-fill--done { background: linear-gradient(90deg, #059669, #34d399); }
.bd-pbg__bar-fill--ongoing { background: linear-gradient(90deg, #d97706, #fbbf24); }
.bd-pbg__bar-fill--new { background: linear-gradient(90deg, #94a3b8, #cbd5e1); }
.bd-pbg__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 16px 16px;
  flex: 1;
}
.bd-pbg__name {
  margin: 0;
  font-size: 14px;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.bd-pbg__name a { color: inherit; text-decoration: none; }
.bd-pbg__name a:hover { color: #d97706; }
.bd-pbg__chip {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  background: #fffbeb;
  border: 1px solid #fde68a;
  color: #b45309;
  border-radius: 9999px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}
.bd-pbg__meta {
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11.5px;
  color: #64748b;
  line-height: 1.45;
}
.bd-pbg__meta-row {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  min-width: 0;
}
.bd-pbg__meta-row i {
  color: #94a3b8;
  font-size: 10.5px;
  margin-top: 3px;
  flex: 0 0 auto;
  width: 12px;
  text-align: center;
}
.bd-pbg__meta-row b { color: #0f2744; font-weight: 700; }
.bd-pbg__foot {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px dashed #e2e8f0;
}
.bd-pbg__more {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 600;
  color: #b45309;
  text-decoration: none;
  transition: color 0.18s ease, gap 0.18s ease;
}
.bd-pbg__more:hover { color: #d97706; gap: 8px; }
.bd-pbg__more i { font-size: 9.5px; }
.bd-pbg__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 24px;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  color: #64748b;
}
.bd-pbg__empty[hidden] { display: none; }
.bd-pbg__empty i { font-size: 30px; color: #cbd5e1; margin-bottom: 4px; }
.bd-pbg__empty strong { font-size: 14px; font-weight: 700; color: #334155; }
.bd-pbg__empty p { margin: 0; font-size: 12px; }

/* Kerangka memuat (skeleton) */
.bd-pbg__card--skeleton { pointer-events: none; }
.bd-pbg__card--skeleton .bd-pbg__media,
.bd-pbg__card--skeleton .bd-pbg__name,
.bd-pbg__card--skeleton .bd-pbg__meta-line {
  display: block;
  background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%);
  background-size: 200% 100%;
  animation: bdLapakShimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}
.bd-pbg__card--skeleton .bd-pbg__media { aspect-ratio: 16 / 10; border-radius: 0; }
.bd-pbg__card--skeleton .bd-pbg__body { gap: 10px; }
.bd-pbg__card--skeleton .bd-pbg__name { width: 85%; height: 14px; }
.bd-pbg__card--skeleton .bd-pbg__meta-line { width: 65%; height: 12px; }
.bd-pbg__card--skeleton .bd-pbg__meta-line--short { width: 45%; }

@media (max-width: 900px) {
  .bd-pbg__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .bd-pbg { margin-bottom: 32px; }
  .bd-pbg__head { gap: 14px; }
  .bd-pbg__grid { grid-template-columns: 1fr; gap: 12px; }
}

/* =========================================================
   BERDAYA v2.6 - GALERI DESA: album dokumentasi di beranda
   Kartu putih rounded, aksen violet, grid 4 kolom
   ========================================================= */
.bd-gal {
  max-width: 1240px;
  margin: 8px auto 44px;
  padding: 0;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.bd-gal__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}
.bd-gal__head::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 90px;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #6366f1 0%, #a78bfa 100%);
}
.bd-gal__intro { flex: 1 1 360px; }
.bd-gal__badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.bd-gal__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: #eef2ff;
  border: 1px solid #c7d2fe;
  color: #4338ca;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(99, 102, 241, 0.08);
}
.bd-gal__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #6366f1;
  box-shadow: 0 0 6px #6366f1;
}
.bd-gal__badge-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
}
.bd-gal__title {
  margin: 0 0 12px 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  display: flex;
  align-items: center;
}
.bd-gal__title i {
  color: #6366f1;
  font-size: 0.9em;
  margin-right: 8px;
}
.bd-gal__lead {
  margin: 8px 0 0;
  max-width: 640px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #64748b;
  font-weight: 400;
}
.bd-gal__actions { flex: 0 0 auto; }
.bd-gal__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f2744;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
.bd-gal__link:hover {
  background: #6366f1;
  border-color: #6366f1;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(99, 102, 241, 0.28);
}
.bd-gal__grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.bd-gal__grid[hidden] { display: none; }
.bd-gal__card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 8px 22px -10px rgba(15, 23, 42, 0.10), 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.bd-gal__card:hover {
  transform: translateY(-6px);
  border-color: #c7d2fe;
  box-shadow: 0 22px 40px -14px rgba(7, 23, 44, 0.28), 0 4px 10px rgba(15, 23, 42, 0.08);
}
.bd-gal__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #eef2ff 0%, #eef7ff 100%);
  overflow: hidden;
}
.bd-gal__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}
.bd-gal__card:hover .bd-gal__media img { transform: scale(1.12); }
.bd-gal__media-fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, #6366f1, #4f46e5);
  color: #ffffff;
  font-size: 22px;
  box-shadow: 0 8px 18px -4px rgba(15, 23, 42, 0.18);
}
.bd-gal__overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(7, 23, 44, 0.05) 0%, rgba(49, 46, 129, 0.62) 100%);
  color: #ffffff;
  font-size: 20px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.bd-gal__card:hover .bd-gal__overlay { opacity: 1; }
.bd-gal__count {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(226, 232, 240, 0.9);
  color: #0f2744;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}
.bd-gal__count i { color: #6366f1; font-size: 10px; }
.bd-gal__body {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 13px 16px 15px;
}
.bd-gal__name {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.4;
  color: #0f172a;
  letter-spacing: 0.01em;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}
.bd-gal__card:hover .bd-gal__name { color: #4338ca; }
.bd-gal__meta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: #64748b;
  font-weight: 500;
}
.bd-gal__meta i { font-size: 10.5px; color: #94a3b8; }
.bd-gal__empty {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 24px;
  text-align: center;
  background: #ffffff;
  border: 1px dashed #cbd5e1;
  border-radius: 16px;
  color: #64748b;
}
.bd-gal__empty[hidden] { display: none; }
.bd-gal__empty i { font-size: 30px; color: #cbd5e1; margin-bottom: 4px; }
.bd-gal__empty strong { font-size: 14px; font-weight: 700; color: #334155; }
.bd-gal__empty p { margin: 0; font-size: 12px; }

/* Kerangka memuat (skeleton) */
.bd-gal__card--skeleton { pointer-events: none; box-shadow: none; }
.bd-gal__card--skeleton .bd-gal__media,
.bd-gal__card--skeleton .bd-gal__name,
.bd-gal__card--skeleton .bd-gal__meta-line {
  display: block;
  background: linear-gradient(90deg, #eef2f7 25%, #f8fafc 50%, #eef2f7 75%);
  background-size: 200% 100%;
  animation: bdLapakShimmer 1.4s ease-in-out infinite;
  border-radius: 8px;
}
.bd-gal__card--skeleton .bd-gal__media { aspect-ratio: 4 / 3; border-radius: 0; }
.bd-gal__card--skeleton .bd-gal__body { gap: 10px; }
.bd-gal__card--skeleton .bd-gal__name { width: 80%; height: 13px; }
.bd-gal__card--skeleton .bd-gal__meta-line { width: 50%; height: 11px; }

@media (max-width: 1100px) {
  .bd-gal__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .bd-gal__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 560px) {
  .bd-gal { margin-bottom: 32px; }
  .bd-gal__head { gap: 14px; }
  .bd-gal__grid { grid-template-columns: 1fr; gap: 12px; }
  .bd-gal__media { aspect-ratio: 16 / 10; }
}

/* =========================================================
   BERDAYA v2.9 - SAMBUTAN KEPALA DESA (menggantikan promo)
   ========================================================= */
.bd-sambutan {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  padding: 24px 24px 20px;
  box-shadow: 0 12px 30px rgba(15, 47, 58, 0.07);
  text-align: center;
}
.bd-sambutan__photo {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  overflow: hidden;
  background: linear-gradient(135deg, #0284c7, #0f2744);
  box-shadow: 0 8px 20px -4px rgba(2, 132, 199, 0.35);
  border: 3px solid #ffffff;
  flex: none;
}
.bd-sambutan__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  display: block;
}
.bd-sambutan__photo-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 34px;
}
.bd-sambutan__body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  width: 100%;
}
.bd-sambutan__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  align-self: center;
  padding: 4px 12px;
  background: #eef7ff;
  border: 1px solid #bae6fd;
  color: #0369a1;
  border-radius: 9999px;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.bd-sambutan__nama {
  margin: 6px 0 0;
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 800;
  color: #0f172a;
  line-height: 1.25;
  letter-spacing: -0.01em;
}
.bd-sambutan__jabatan {
  margin: 0;
  font-size: 11.5px;
  color: #0284c7;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.bd-sambutan__text {
  margin-top: 10px;
  font-size: 12.5px;
  line-height: 1.7;
  color: #475569;
  text-align: justify;
  max-height: 260px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}
.bd-sambutan__text::-webkit-scrollbar { width: 5px; }
.bd-sambutan__text::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 99px; }
@media (max-width: 900px) {
  .bd-sambutan__photo { width: 96px; height: 96px; }
  .bd-sambutan__text { max-height: 200px; }
}

/* ===== WIDGET STATISTIK PENGUNJUNG ===== */
.bd-visitor {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.bd-visitor__row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  transition: background .2s ease, border-color .2s ease;
}
.bd-visitor__row:hover {
  background: #f0fdfa;
  border-color: #99f6e4;
}
.bd-visitor__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  border-radius: 8px;
  font-size: 12.5px;
  color: #fff;
}
.bd-visitor__icon--today { background: #0284c7; }
.bd-visitor__icon--yesterday { background: #0d9488; }
.bd-visitor__icon--total { background: #12556a; }
.bd-visitor__label {
  flex: 1;
  font-family: Poppins, system-ui, sans-serif;
  font-size: 12.5px;
  font-weight: 600;
  color: #334155;
}
.bd-visitor__num {
  font-family: Poppins, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 800;
  color: #12556a;
  font-variant-numeric: tabular-nums;
}
.bd-visitor__row--total {
  background: #12556a;
  border-color: #12556a;
}
.bd-visitor__row--total:hover {
  background: #0b3a45;
  border-color: #0b3a45;
}
.bd-visitor__row--total .bd-visitor__label { color: #e2e8f0; }
.bd-visitor__row--total .bd-visitor__num { color: #ffffff; }
.bd-visitor__row--total .bd-visitor__icon { background: rgba(255, 255, 255, 0.18); }

/* =========================================================
   VARIANT LATAR ANIMASI LOADING (Pengaturan Tema)
   ========================================================= */
#berdaya-loading.bd-loader--teal  { filter: hue-rotate(145deg); }
#berdaya-loading.bd-loader--biru  { filter: hue-rotate(170deg); }
#berdaya-loading.bd-loader--hijau { filter: hue-rotate(100deg); }
#berdaya-loading.bd-loader--ungu  { filter: hue-rotate(235deg); }
#berdaya-loading.bd-loader--merah { filter: hue-rotate(320deg); }

/* Gelap Elegan */
#berdaya-loading.bd-loader--gelap {
  background:
    radial-gradient(circle at 50% 38%, rgba(45, 212, 191, 0.28) 0%, rgba(13, 148, 136, 0.16) 35%, transparent 70%),
    linear-gradient(180deg, #0b1f2a 0%, #083044 40%, #07172c 100%);
  color: #e2e8f0;
}
#berdaya-loading.bd-loader--gelap .bd-loader-batik-pattern { opacity: 0.3; }
#berdaya-loading.bd-loader--gelap .bd-loader-title { color: #f1f5f9; }
#berdaya-loading.bd-loader--gelap .bd-loader-motto { color: #5eead4; }
#berdaya-loading.bd-loader--gelap .bd-loader-pill { background: rgba(15, 118, 130, 0.35); border-color: rgba(94, 234, 212, 0.5); color: #ccfbf1; }
#berdaya-loading.bd-loader--gelap .bd-loader-dot { background: #5eead4; box-shadow: 0 0 8px #5eead4; }
#berdaya-loading.bd-loader--gelap .bd-loader-theme { color: #99f6e4; background: rgba(45, 212, 191, 0.12); border-color: rgba(45, 212, 191, 0.4); }
#berdaya-loading.bd-loader--gelap .bd-loader-subtitle { color: #94a3b8; }

/* Polos Tanpa Animasi */
#berdaya-loading.bd-loader--polos { background: #f8fafc; }
#berdaya-loading.bd-loader--polos .bd-loader-batik-pattern,
#berdaya-loading.bd-loader--polos .bd-loader-glow { display: none; }
/* =========================================================
   BERDAYA - GALERI VIDEO DESA (di bawah Galeri Foto)
   ========================================================= */
.bd-vid {
  max-width: 1240px;
  margin: 8px auto 44px;
  padding: 0;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
}
.bd-vid__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
  margin-bottom: 22px;
  padding-bottom: 18px;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}
.bd-vid__head::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 90px;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #dc2626 0%, #f87171 100%);
}
.bd-vid__intro { flex: 1 1 360px; }
.bd-vid__badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.bd-vid__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  box-shadow: 0 1px 3px rgba(220, 38, 38, 0.08);
}
.bd-vid__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: #dc2626;
  box-shadow: 0 0 6px #dc2626;
}
.bd-vid__badge-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
}
.bd-vid__title {
  margin: 0 0 12px 0;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  color: #0f172a;
  letter-spacing: -0.02em;
  line-height: 1.25;
  display: flex;
  align-items: center;
}
.bd-vid__title i {
  color: #dc2626;
  font-size: 0.9em;
  margin-right: 8px;
}
.bd-vid__lead {
  margin: 8px 0 0;
  max-width: 640px;
  font-size: 13.5px;
  line-height: 1.6;
  color: #64748b;
  font-weight: 400;
}
.bd-vid__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.bd-vid__card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 22px -10px rgba(15, 23, 42, 0.10), 0 1px 3px rgba(15, 23, 42, 0.04);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.bd-vid__card:hover {
  transform: translateY(-6px);
  border-color: #fecaca;
  box-shadow: 0 22px 40px -14px rgba(7, 23, 44, 0.28), 0 4px 10px rgba(15, 23, 42, 0.08);
}
.bd-vid__thumb {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  background: #0f172a;
  overflow: hidden;
  text-decoration: none;
}
.bd-vid__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.bd-vid__card:hover .bd-vid__thumb img { transform: scale(1.05); }
.bd-vid__play {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: rgba(220, 38, 38, 0.92);
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  box-shadow: 0 8px 22px -4px rgba(220, 38, 38, 0.55);
  transition: transform 0.2s ease, background 0.2s ease;
}
.bd-vid__card:hover .bd-vid__play {
  transform: translate(-50%, -50%) scale(1.1);
  background: #b91c1c;
}
.bd-vid__play i { margin-left: 3px; }
@media (max-width: 900px) {
  .bd-vid__grid { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  .bd-vid { margin-bottom: 32px; }
  .bd-vid__head { gap: 14px; }
}
/* Galeri Video: tampilan slider (Owl Carousel) */
.bd-vid__grid.owl-carousel { display: block; }
.bd-vid__grid.owl-carousel .owl-stage-outer { border-radius: 16px; }
.bd-vid__grid.owl-carousel .owl-item { padding: 0; }
.bd-vid__grid.owl-carousel .owl-dots { margin-top: 14px; text-align: center; }
.bd-vid__grid.owl-carousel .owl-dot span {
  width: 10px; height: 10px; margin: 0 4px;
  background: #cbd5e1; border-radius: 9999px; display: inline-block;
  transition: all .2s ease;
}
.bd-vid__grid.owl-carousel .owl-dot.active span {
  width: 24px; background: #dc2626;
}
/* Galeri Foto: efek hover diperhalus */
.bd-gal__overlay { transition: opacity 0.3s ease; }
.bd-gal__overlay i { transform: scale(0.7); transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1); }
.bd-gal__card:hover .bd-gal__overlay i { transform: scale(1); }
.bd-gal__count { transition: transform 0.25s ease; }
.bd-gal__card:hover .bd-gal__count { transform: scale(1.08); }
/* === Safety net responsif mobile === */
/* overflow-x: clip (bukan hidden) agar position: sticky header tetap bekerja;
   hidden akan menjadikan body scroll-container dan mematikan sticky. */
html, body { overflow-x: clip; max-width: 100%; }
img, iframe, video, svg { max-width: 100%; height: auto; }
.bd-home, .bd-quick { max-width: 100%; box-sizing: border-box; }
.bd-topbar__btn span { white-space: nowrap; }
@media (max-width: 640px) {
  .bd-topbar__btn { padding: 5px 10px !important; font-size: 11px !important; }
  .bd-topbar__btn span { display: none; }
  .bd-topbar__btn i { margin: 0; }
  .bd-hero__title { word-break: break-word; }
  .bd-vid__grid { grid-template-columns: 1fr; }
}
/* === Mobile header rapi (Android) === */
@media (max-width: 767px) {
  .bd-topbar { background: #12556a !important; }
  .bd-topbar::before, .bd-topbar::after { display: none !important; }
  .bd-topbar__in {
    min-height: 40px !important;
    padding: 6px 12px !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .bd-topbar__actions {
    width: 100% !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
    gap: 8px !important;
  }
  .bd-topbar__search { max-width: 160px !important; }
  .bd-menubar { background: #12556a !important; }
  .bd-marquee { background: #0b3a45 !important; font-size: 12px !important; }
  .bd-brand__logo-wrap { width: 46px !important; height: 46px !important; }
  .bd-brand__name { font-size: 20px !important; }
  .bd-menubar__brand-text { font-size: 12px !important; }
}
/* Mobile: sembunyikan kartu statistik (data-statistik) agar akses cepat tidak terlalu panjang */
@media (max-width: 640px) {
  .bd-quick__item[href*="data-statistik"] { display: none !important; }
}
/* === Mobile: sembunyikan topbar === */
@media (max-width: 767px) {
  .bd-topbar { display: none !important; }
}
/* Mobile: hilangkan pojok melengkung header yang memperlihatkan warna putih */
@media (max-width: 767px) {
  header, header:not(.bd-nav), .bd-topbar, .bd-nav, .bd-menubar, .bd-marquee {
    border-radius: 0 !important;
  }
}
/* Mobile: hapus scroll pada sambutan Pemerintah Desa (teks penuh) */
@media (max-width: 767px) {
  .bd-sambutan__text { max-height: none !important; overflow: visible !important; }
  .bd-apar__row { overflow-x: auto !important; scrollbar-width: none; -ms-overflow-style: none; }
  .bd-apar__row::-webkit-scrollbar { display: none; }
}
/* =========================================================
   APBDes Transparansi: tampilan lebih halus (smooth)
   ========================================================= */
.bd-apbdes-section { font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif; }
.bd-apbdes-kpi-card,
.bd-apbdes-card {
  border-radius: 16px;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
}
.bd-apbdes-kpi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 28px -8px rgba(15, 23, 42, 0.12);
}
.bd-apbdes-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px -12px rgba(15, 23, 42, 0.18);
}
.bd-apbdes-card__head { border-radius: 16px 16px 0 0; }
.bd-apbdes-card__tot-val,
.bd-apbdes-kpi-val { font-variant-numeric: tabular-nums; }
.bd-apbdes-progress, .bd-apbdes-bar, .bd-apbdes-bar-fill {
  border-radius: 9999px;
  transition: width 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
.bd-apbdes-pill {
  border-radius: 9999px;
  transition: transform 0.2s ease;
}
.bd-apbdes-section .bd-apbdes-title { letter-spacing: -0.02em; }
/* Tombol Absensi & Full Screen di topbar hanya tampil di desktop */
@media (max-width: 991.98px) {
  .bd-topbar .bd-desktop-only { display: none !important; }
}


/* Mobile & tablet: hamburger sejajar dengan teks berjalan (sebelah kanan) */
.bd-marquee__nav-toggle { display: none !important; }
@media (max-width: 1023px) {
  .bd-menubar--has-marquee { display: none !important; }
  .bd-marquee-bar { position: sticky; top: 0; z-index: 50; }
  .bd-marquee__aside { border-left: none; gap: 6px; }
  .bd-marquee__nav-toggle {
    display: inline-flex !important;
    width: 32px;
    height: 32px;
    font-size: 14px;
    border-radius: 8px;
    flex-shrink: 0;
  }
}
@media (max-width: 1023px) {
  .bd-marquee-bar .bd-nav-panel.is-open { max-height: calc(100vh - 44px); overflow-y: auto; }
}


/* =========================================================
   PENYERAGAMAN JUDUL SECTION BERANDA
   Satu standar untuk: Berita, Akses Cepat, Pemerintah Desa,
   Lapak, Pembangunan, Galeri, Video, Widget, APBDes.
   ========================================================= */

/* --- Kartu section yang ber-border: beri ruang dalam --- */
body .bd-apar,
body .bd-apb {
  padding: 26px 28px;
  box-sizing: border-box;
}

/* --- Baris kepala --- */
body .bd-sec__head,
body .bd-apar__head,
body .bd-lapak__head,
body .bd-pbg__head,
body .bd-gal__head,
body .bd-vid__head,
body .bd-wslide__head,
body .bd-apb__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px 24px;
  margin: 0 0 24px;
  padding: 0 0 18px;
  border-bottom: 1px solid #e2e8f0;
  position: relative;
}
body .bd-sec__head::after,
body .bd-apb__head::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 90px;
  height: 3px;
  border-radius: 9999px;
  background: linear-gradient(90deg, #0284c7 0%, #38bdf8 100%);
}
body .bd-sec__head--green::after,
body .bd-apb__head::after {
  background: linear-gradient(90deg, #059669 0%, #34d399 100%);
}
body .bd-sec__head--compact {
  margin-bottom: 18px;
  padding-bottom: 14px;
}

/* --- Kolom teks --- */
body .bd-sec__intro,
body .bd-apar__intro,
body .bd-lapak__intro,
body .bd-pbg__intro,
body .bd-gal__intro,
body .bd-vid__intro,
body .bd-wslide__intro,
body .bd-apb__head-text {
  flex: 1 1 360px;
  min-width: 0;
  max-width: 760px;
}

/* --- Baris badge --- */
body .bd-sec__badge-wrap,
body .bd-apar__badge-wrap,
body .bd-lapak__badge-wrap,
body .bd-pbg__badge-wrap,
body .bd-gal__badge-wrap,
body .bd-vid__badge-wrap,
body .bd-wslide__badge-wrap {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 10px;
}
body .bd-sec__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  background: #f0f9ff;
  border: 1px solid #bae6fd;
  color: #0284c7;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 700;
  line-height: 1.4;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
body .bd-sec__badge--green {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
body .bd-sec__badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 9999px;
  background: currentColor;
  box-shadow: 0 0 6px currentColor;
}
body .bd-sec__badge-info {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 10px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  color: #64748b;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 500;
  line-height: 1.4;
}

/* --- Judul (h2) --- */
body .bd-sec__title,
body .bd-apar__title,
body .bd-lapak__title,
body .bd-pbg__title,
body .bd-gal__title,
body .bd-vid__title,
body .bd-wslide__title,
body .bd-apb__title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  padding: 0;
  font-family: Poppins, system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: clamp(20px, 2.2vw, 26px);
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -0.02em;
  color: #0f172a;
  text-align: left;
  text-transform: none;
}
body .bd-sec__title i,
body .bd-apar__title i,
body .bd-lapak__title i,
body .bd-pbg__title i,
body .bd-gal__title i,
body .bd-vid__title i,
body .bd-wslide__title i,
body .bd-apb__title i {
  flex: 0 0 auto;
  width: 1.15em;
  margin: 0;
  font-size: 0.9em;
  text-align: center;
}
body .bd-sec__title i { color: #0284c7; }
body .bd-sec__title--green i { color: #059669; }
body .bd-sec__text { min-width: 0; }
body .bd-sec__head--compact .bd-sec__title { font-size: clamp(18px, 1.8vw, 22px); }

/* --- Deskripsi singkat --- */
body .bd-sec__lead,
body .bd-apar__lead,
body .bd-lapak__lead,
body .bd-pbg__lead,
body .bd-gal__lead,
body .bd-vid__lead,
body .bd-wslide__lead,
body .bd-apb__desc {
  margin: 8px 0 0;
  max-width: 640px;
  font-size: 13.5px;
  font-weight: 400;
  line-height: 1.6;
  color: #64748b;
}

/* --- Tombol aksi kanan --- */
body .bd-sec__actions,
body .bd-apar__actions,
body .bd-lapak__actions,
body .bd-pbg__actions,
body .bd-gal__actions,
body .bd-wslide__ctrl,
body .bd-apb__year {
  flex: 0 0 auto;
  align-self: flex-end;
}
body .bd-sec__link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  color: #0f2744;
  border-radius: 12px;
  font-size: 12.5px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: all 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}
body .bd-sec__link:hover {
  background: #0284c7;
  border-color: #0284c7;
  color: #ffffff;
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(2, 132, 199, 0.3);
}

/* --- Mobile --- */
@media (max-width: 640px) {
  body .bd-apar,
  body .bd-apb {
    padding: 20px 16px;
  }
  body .bd-sec__head,
  body .bd-apar__head,
  body .bd-lapak__head,
  body .bd-pbg__head,
  body .bd-gal__head,
  body .bd-vid__head,
  body .bd-wslide__head,
  body .bd-apb__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
    margin-bottom: 18px;
    padding-bottom: 14px;
  }
  body .bd-sec__intro,
  body .bd-apar__intro,
  body .bd-lapak__intro,
  body .bd-pbg__intro,
  body .bd-gal__intro,
  body .bd-vid__intro,
  body .bd-wslide__intro,
  body .bd-apb__head-text {
    flex: 0 0 auto;
    width: 100%;
  }
  body .bd-sec__title,
  body .bd-apar__title,
  body .bd-lapak__title,
  body .bd-pbg__title,
  body .bd-gal__title,
  body .bd-vid__title,
  body .bd-wslide__title,
  body .bd-apb__title {
    align-items: flex-start;
    font-size: 19px;
  }
  body .bd-sec__title i,
  body .bd-apar__title i,
  body .bd-lapak__title i,
  body .bd-pbg__title i,
  body .bd-gal__title i,
  body .bd-vid__title i,
  body .bd-wslide__title i,
  body .bd-apb__title i {
    margin-top: 0.2em;
  }
  body .bd-sec__lead,
  body .bd-apar__lead,
  body .bd-lapak__lead,
  body .bd-pbg__lead,
  body .bd-gal__lead,
  body .bd-vid__lead,
  body .bd-wslide__lead,
  body .bd-apb__desc {
    font-size: 13px;
  }
  body .bd-sec__actions,
  body .bd-apar__actions,
  body .bd-lapak__actions,
  body .bd-pbg__actions,
  body .bd-gal__actions,
  body .bd-wslide__ctrl,
  body .bd-apb__year {
    align-self: flex-start;
  }
}

/* --- Lapak Desa: kartu putih berbingkai (selaras Pemerintah Desa & APBDes) --- */
body .bd-lapak {
  max-width: 1240px;
  margin: 36px auto 44px;
  padding: 26px 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 47, 58, 0.07);
  box-sizing: border-box;
}
body .bd-lapak__empty {
  background: #f8fafc;
}
@media (max-width: 640px) {
  body .bd-lapak {
    margin: 28px auto 32px;
    padding: 20px 16px;
  }
}

/* --- Pembangunan Desa: kartu putih berbingkai (selaras Lapak, Pemerintah Desa & APBDes) --- */
body .bd-pbg {
  max-width: 1240px;
  margin: 36px auto 44px;
  padding: 26px 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 47, 58, 0.07);
  box-sizing: border-box;
}
body .bd-pbg__empty {
  background: #f8fafc;
}
@media (max-width: 640px) {
  body .bd-pbg {
    margin: 28px auto 32px;
    padding: 20px 16px;
  }
}

/* --- Galeri Desa, Galeri Video Desa, Informasi & Layanan Desa: kartu putih berbingkai --- */
body .bd-gal,
body .bd-vid,
body .bd-wslide {
  max-width: 1240px;
  margin: 36px auto 44px;
  padding: 26px 28px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(15, 47, 58, 0.07);
  box-sizing: border-box;
}
body .bd-gal__empty {
  background: #f8fafc;
}
@media (max-width: 640px) {
  body .bd-gal,
  body .bd-vid,
  body .bd-wslide {
    margin: 28px auto 32px;
    padding: 20px 16px;
  }
}

/* --- Jadwal Shalat: tema putih-abu --- */
body .bd-sholat {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  color: #334155;
  box-shadow: 0 12px 30px rgba(15, 47, 58, 0.07);
}
body .bd-sholat__badge {
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  color: #475569;
}
body .bd-sholat__title strong { color: #0f172a; }
body .bd-sholat__title span { color: #475569; opacity: 1; }
body .bd-sholat__title small { color: #94a3b8; opacity: 1; }
body .bd-sholat__cell {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
}
body .bd-sholat__cell:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}
body .bd-sholat__label { color: #64748b; opacity: 1; }
body .bd-sholat__jam { color: #0f172a; }


/* Perbaikan Topbar / Header warna putih */
.topbar, 
.header-top, 
.navbar-top,
header .topbar,
.top-header {
    background-color: transparent !important;
}

/* Memastikan tidak ada background putih yang menumpuk di area header atas */
header, .main-header {
    background-color: transparent;
}

/* Fix: Remove top white line/bar */
body, html {
    margin-top: 0 !important;
    padding-top: 0 !important;
}
.bd-topbar, header, .navbar {
    background-color: #07172b !important;
}

/* BULLETPROOF FIX FOR TOP WHITE BAR */
html, body {
    background-color: #07172b !important;
    margin: 0 !important;
    padding: 0 !important;
}
.bd-topbar {
    background-color: #07172b !important;
    background: #07172b !important;
    margin-top: 0 !important;
}

/* =========================================================
   HEADER STICKY: header branding + menubar tetap tampil
   saat halaman di-scroll ke bawah
   ========================================================= */
.bd-headsticky {
  position: sticky;
  top: 0;
  /* 2000 > z-index tertinggi Leaflet (kontrol peta 1000) agar peta tidak menutupi header */
  z-index: 2000;
}
/* Menubar di dalam wadah sticky tidak perlu sticky sendiri */
.bd-headsticky .bd-menubar {
  position: static;
  top: auto;
}
/* Dropdown menu tetap tampil di atas konten halaman */
.bd-headsticky .bd-dropdown-menu,
.bd-headsticky .bd-dropdown-submenu {
  z-index: 9999;
}
