/*
 * SDI Beltim — Midnight Sapphire Premium Theme
 * Palette: Indigo 600 · Teal 600 · Amber Gold · Zinc Neutrals
 * Inspired by: Linear, Loom, Vercel + Webflow Elegant Palettes research
 */

/* ===================================================================
   FONTS — Inter + Plus Jakarta Sans
=================================================================== */
@import url('https://fonts.googleapis.com/css2?family=Inter:wght@300;400;500;600;700&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap');

/* ===================================================================
   DESIGN TOKENS — Light Mode
=================================================================== */
:root {
  /* Fonts */
  --default-font:  "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --heading-font:  "Plus Jakarta Sans", sans-serif;
  --nav-font:      "Inter", sans-serif;

  /* Brand — Indigo */
  --indigo-950:  #1e1b4b;
  --indigo-900:  #312e81;
  --indigo-800:  #3730a3;
  --indigo-700:  #4338ca;
  --indigo-600:  #4f46e5;   /* ← primary accent */
  --indigo-500:  #6366f1;
  --indigo-400:  #818cf8;
  --indigo-300:  #a5b4fc;
  --indigo-100:  #e0e7ff;
  --indigo-50:   #eef2ff;

  /* Secondary — Teal */
  --teal-700:  #0f766e;
  --teal-600:  #0d9488;
  --teal-400:  #2dd4bf;
  --teal-100:  #ccfbf1;
  --teal-50:   #f0fdfa;

  /* Highlight — Amber Gold (for stats, numbers) */
  --amber-600:  #d97706;
  --amber-500:  #f59e0b;
  --amber-400:  #fbbf24;
  --amber-100:  #fef3c7;

  /* Neutrals — Zinc */
  --zinc-950:  #09090b;
  --zinc-900:  #18181b;
  --zinc-800:  #27272a;
  --zinc-700:  #3f3f46;
  --zinc-600:  #52525b;
  --zinc-500:  #71717a;
  --zinc-400:  #a1a1aa;
  --zinc-300:  #d4d4d8;
  --zinc-200:  #e4e4e7;
  --zinc-100:  #f4f4f5;
  --zinc-50:   #fafafa;

  /* Semantic aliases (override main.css vars) */
  --background-color:               #ffffff;
  --default-color:                  #52525b;
  --heading-color:                  #09090b;
  --accent-color:                   #4f46e5;
  --surface-color:                  #ffffff;
  --contrast-color:                 #ffffff;

  --nav-color:                      #3f3f46;
  --nav-hover-color:                #4f46e5;
  --nav-mobile-background-color:    #ffffff;
  --nav-dropdown-background-color:  #ffffff;
  --nav-dropdown-color:             #52525b;
  --nav-dropdown-hover-color:       #4f46e5;
}

/* ===================================================================
   TOPBAR
=================================================================== */
#navbar-topbar {
  background: linear-gradient(90deg, #1e1b4b 0%, #4f46e5 55%, #312e81 100%);
  color: rgba(255, 255, 255, 0.9);
  font-size: 11.5px;
  font-family: var(--nav-font);
  font-weight: 400;
  letter-spacing: 0.02em;
  padding: 7px 0;
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 998;
  transition: transform 0.3s ease;
}

#navbar-topbar a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: none;
  transition: color 0.2s;
}
#navbar-topbar a:hover { color: #ffffff; }

#navbar-topbar .topbar-divider {
  width: 1px; height: 13px;
  background: rgba(255, 255, 255, 0.25);
  display: inline-block;
  margin: 0 10px;
  vertical-align: middle;
}

/* ===================================================================
   THEME TOGGLE BUTTON
=================================================================== */
#theme-toggle {
  background: var(--zinc-100);
  border: 1px solid var(--zinc-200);
  color: var(--zinc-600);
  border-radius: 8px;
  padding: 5px 10px;
  font-size: 14px;
  cursor: pointer;
  transition: all 0.18s ease;
  line-height: 1;
  flex-shrink: 0;
}
#theme-toggle:hover {
  background: var(--indigo-50);
  border-color: var(--indigo-300);
  color: var(--indigo-600);
}
html.dark-mode #theme-toggle {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.15);
  color: rgba(255, 255, 255, 0.85);
}
html.dark-mode #theme-toggle:hover {
  background: rgba(255, 255, 255, 0.15);
  border-color: rgba(255, 255, 255, 0.3);
}

/* ===================================================================
   HEADER
=================================================================== */
.header {
  top: 34px !important;
  background: transparent !important;
  border-bottom: 1px solid var(--zinc-100) !important;
  box-shadow: 0 1px 20px rgba(79, 70, 229, 0.06) !important;
  padding: 0 !important;
  transition: top 0.3s ease, box-shadow 0.3s ease !important;
}

.header::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(254, 252, 232, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: -1;
  pointer-events: none;
}

.header .header-inner {
  padding: 10px 0;
  width: 100%;
}


.scrolled .header {
  box-shadow: 0 4px 32px rgba(79, 70, 229, 0.1) !important;
}

body.scrolled #navbar-topbar { transform: translateY(-100%); }
body.scrolled .header { top: 0 !important; }

/* ===================================================================
   LOGO BADGE — dual-border glowing frame
=================================================================== */

/* Keyframe: inner border pulse */
@keyframes logo-glow-pulse {
  0%, 100% {
    box-shadow:
      inset 0 0 0 2px rgba(239, 68, 68, 0.80),
      0 0 14px rgba(239, 68, 68, 0.28),
      0 0 4px  rgba(239, 68, 68, 0.15);
  }
  50% {
    box-shadow:
      inset 0 0 0 2px rgba(239, 68, 68, 1.00),
      0 0 24px rgba(239, 68, 68, 0.50),
      0 0 8px  rgba(239, 68, 68, 0.30);
  }
}

.logo-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  padding: 5px;
  /* outer border — subtle */
  border: 1.5px solid rgba(220, 38, 38, 0.30);
  /* inner glowing border via inset shadow + outer ambient glow */
  box-shadow:
    inset 0 0 0 2px rgba(239, 68, 68, 0.80),
    0 0 14px rgba(239, 68, 68, 0.28),
    0 0 4px  rgba(239, 68, 68, 0.15);
  background: rgba(254, 226, 226, 0.10);
  animation: logo-glow-pulse 3s ease-in-out infinite;
  transition: transform 0.2s ease;
}

.logo-badge:hover,
a:hover .logo-badge {
  transform: scale(1.06);
}

.logo-badge-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Footer variant — slightly brighter glow on dark bg */
.logo-badge--footer {
  background: rgba(254, 226, 226, 0.05);
  border-color: rgba(220, 38, 38, 0.40);
}

/* Wordmark text next to badge */
.logo-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1;
  gap: 2px;
}
.logo-wordmark-top {
  font-family: var(--heading-font);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.18em;
  color: #dc2626;
  text-transform: uppercase;
}
.logo-wordmark-bottom {
  font-family: var(--heading-font);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #09090b;
  text-transform: uppercase;
}

/* Footer wordmark — white on dark */
.logo-wordmark--footer .logo-wordmark-top  { color: #f87171; }
.logo-wordmark--footer .logo-wordmark-bottom { color: #f4f4f5; }

/* Dark mode navbar wordmark */
html.dark-mode .logo-wordmark-top    { color: #f87171; }
html.dark-mode .logo-wordmark-bottom { color: #f4f4f5; }

/* Legacy logo img override — explicitly exclude .logo-badge-img */
.header .logo {
  display: flex;
  align-items: center;
  gap: 10px;
}
.header .logo img:not(.logo-badge-img) {
  max-height: 48px !important;
  width: auto;
  transition: opacity 0.2s;
}
.header .logo:hover img:not(.logo-badge-img) { opacity: 0.85; }

/* Reset main.css margin-right & max-height yang mengganggu centering badge */
.header .logo .logo-badge-img {
  margin-right: 0 !important;
  max-height: 100% !important;
  width: 100% !important;
}

/* ===================================================================
   NAVIGATION — desktop (premium upgrade)
=================================================================== */

/* --- Ripple keyframe --- */
@keyframes nav-ripple-anim {
  to { transform: scale(3.5); opacity: 0; }
}

.nav-ripple {
  position: absolute;
  border-radius: 50%;
  background: rgba(79, 70, 229, 0.14);
  transform: scale(0);
  animation: nav-ripple-anim 0.55s ease-out forwards;
  pointer-events: none;
  z-index: 0;
}

@media (min-width: 1200px) {

  /* ── Navmenu: dorong ke kanan, rapat ── */
  .header .navmenu {
    flex: 1;
    margin-left: 1.5rem;
    display: flex;
    align-items: center;
    justify-content: flex-end;
  }

  .header .navmenu > ul {
    justify-content: flex-end !important;
    flex-wrap: nowrap;
    width: auto;
  }

  /* Kompres jarak antar li */
  .navmenu > ul > li {
    padding-left: 2px !important;
    padding-right: 2px !important;
  }

  .navmenu > ul > li:last-child {
    padding-right: 0 !important;
  }

  /* ── Base link style ── */
  .navmenu a,
  .navmenu a:focus {
    font-size: 13px !important;
    font-weight: 500 !important;
    color: var(--zinc-600) !important;
    letter-spacing: 0.01em;
    transition: background 0.18s ease, color 0.18s ease !important;
  }

  /* ── Top-level links: pill shape, padding dikurangi ── */
  .navmenu > ul > li > a {
    padding: 6px 10px !important;
    border-radius: 8px !important;
    position: relative;
    overflow: hidden;
  }

  /* Remove old underline */
  .navmenu > ul > li > a::before { display: none !important; }

  /* Pill hover */
  .navmenu > ul > li:hover > a,
  .navmenu > ul > li.nav-active > a {
    background: #4f46e5 !important;
    color: #ffffff !important;
    border-radius: 8px !important;
  }

  /* ── Chevron rotation ── */
  .navmenu .dropdown > a .toggle-dropdown {
    display: inline-block;
    transition: transform 0.22s ease !important;
  }

  .navmenu .dropdown:hover > a .toggle-dropdown,
  .navmenu .dropdown.active > a .toggle-dropdown {
    transform: rotate(180deg) !important;
  }

  /* ── Dropdown: fade + slide in ── */
  .navmenu .dropdown ul {
    transform: translateY(-8px) !important;
    transition: opacity 0.22s ease, visibility 0.22s ease, transform 0.22s ease, top 0s !important;
    border-radius: 12px !important;
    border: 1px solid var(--zinc-100) !important;
    box-shadow: 0 16px 48px rgba(79, 70, 229, 0.13) !important;
    padding: 6px !important;
    min-width: 210px;
  }

  .navmenu .dropdown:hover > ul {
    transform: translateY(0) !important;
  }

  /* ── Dropdown items: left-accent on hover ── */
  .navmenu .dropdown ul li a {
    font-size: 13px !important;
    padding: 9px 14px 9px 12px !important;
    border-radius: 8px !important;
    color: var(--zinc-600) !important;
    font-weight: 400 !important;
    transition: all 0.18s ease !important;
    border-left: 2px solid transparent !important;
    display: block;
  }

  .navmenu .dropdown ul li a:hover {
    color: var(--indigo-600) !important;
    background: var(--indigo-50) !important;
    border-left-color: var(--indigo-500) !important;
    padding-left: 18px !important;
  }

  .navmenu .dropdown ul li a::before { display: none !important; }

}

/* Mobile nav toggle */
.mobile-nav-toggle {
  color: var(--indigo-600) !important;
  font-size: 26px !important;
}

@media (max-width: 1199px) {
  /* Dorong navmenu ke kanan agar burger & toggle flush right */
  .header .navmenu {
    margin-left: auto !important;
    display: flex !important;
    align-items: center !important;
  }

  /* Tombol X: geser ke bawah topbar (34px) agar tidak tertutup */
  .mobile-nav-active .mobile-nav-toggle {
    top: 40px !important;
    right: 16px !important;
    color: #fff !important;
    z-index: 9999 !important;
  }

  /* ul menu: mulai dari bawah topbar+header */
  .navmenu ul {
    inset: 96px 12px 12px 12px !important;
  }
}

/* ===================================================================
   BODY OFFSET
=================================================================== */
body { padding-top: 110px !important; }

/* ===================================================================
   HERO SECTION — light mode default
=================================================================== */
.hero.section {
  padding: 70px 0 90px !important;
  background: linear-gradient(160deg, #fafafe 0%, #f5f3ff 50%, #f0fdf9 100%) !important;
  position: relative !important;
  overflow: hidden !important;
  min-height: 90vh;
  display: flex;
  align-items: center;
}

/* Star canvas — fills entire hero */
#star-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

/* Radial glow centred on globe */
.hero.section::before {
  content: '';
  position: absolute;
  top: 50%; right: -5%;
  transform: translateY(-50%);
  width: 65vw; height: 65vw;
  background: radial-gradient(circle, rgba(79, 70, 229, 0.12) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
}

/* Content above canvas */
.hero-content-wrap {
  position: relative;
  z-index: 2;
}

/* Globe — absolute, dominates the right half */
#globe-wrap {
  position: absolute !important;
  right: 4%;
  top: 50%;
  transform: translateY(-50%);
  width: 58%;
  height: 104%;
  z-index: 1;
  pointer-events: none;
}

@media (max-width: 991px) {
  #globe-wrap {
    width: 100%;
    height: 50%;
    right: 0;
    top: auto;
    bottom: -10%;
    transform: none;
    opacity: 0.35;
  }
}

/* ── Text — light mode ── */
.hero h1 {
  font-size: clamp(2.2rem, 4.5vw, 3.4rem) !important;
  font-weight: 800 !important;
  line-height: 1.12 !important;
  color: #09090b !important;
  letter-spacing: -0.025em;
  margin-bottom: 0.5rem;
}

.hero h1 span {
  background: linear-gradient(135deg, #4f46e5, #0d9488);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero .subtitle {
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #4f46e5 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
  display: flex;
  align-items: center;
  gap: 10px;
}

.hero .subtitle::before {
  content: '';
  display: inline-block;
  width: 28px; height: 2px;
  background: linear-gradient(90deg, #4f46e5, #0d9488);
  border-radius: 2px;
}

.hero .hero-desc {
  font-size: 0.97rem;
  color: #52525b;
  line-height: 1.8;
  margin-bottom: 0;
}

/* ── Actions ── */
.hero .hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 2rem;
}

.hero .btn-primary {
  background: linear-gradient(135deg, #4f46e5, #4338ca) !important;
  border: none !important;
  color: #fff !important;
  padding: 13px 28px !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  font-size: 14px !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 4px 20px rgba(79, 70, 229, 0.45) !important;
  text-decoration: none !important;
  display: inline-flex;
  align-items: center;
}

.hero .btn-primary:hover {
  background: linear-gradient(135deg, #6366f1, #4f46e5) !important;
  transform: translateY(-2px) !important;
  box-shadow: 0 10px 32px rgba(79, 70, 229, 0.55) !important;
}

.hero .btn-video {
  display: flex !important;
  align-items: center !important;
  gap: 0 !important;
  padding: 0 !important;
  border: none !important;
  background: transparent !important;
  text-decoration: none !important;
}

.hero .btn-video .play-icon {
  width: 44px; height: 44px;
  background: linear-gradient(135deg, #4f46e5, #6366f1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.5);
  position: relative;
  z-index: 1;
  transition: transform 0.2s ease;
}
.hero .btn-video:hover .play-icon { transform: scale(1.1); }

.hero .btn-video .play-label {
  margin-left: -18px;
  padding: 11px 20px 11px 26px;
  background: #ffffff;
  border: 1.5px solid #e4e4e7;
  border-radius: 0 100px 100px 0;
  font-size: 14px;
  font-weight: 500;
  color: #3f3f46;
  white-space: nowrap;
  transition: all 0.25s ease;
}
.hero .btn-video:hover .play-label {
  border-color: #c7d2fe;
  background: #eef2ff;
  color: #4f46e5;
}

/* ── Stats — light mode ── */
.hero .stats-item {
  background: #ffffff !important;
  border: 1px solid #e4e4e7 !important;
  border-radius: 14px !important;
  padding: 16px 12px !important;
  box-shadow: 0 2px 12px rgba(79, 70, 229, 0.07) !important;
  transition: all 0.25s ease !important;
  text-decoration: none !important;
  display: block !important;
}

.hero .stats-item:hover {
  border-color: #c7d2fe !important;
  box-shadow: 0 8px 28px rgba(79, 70, 229, 0.14) !important;
  transform: translateY(-3px) !important;
}

.hero .stats-item h2 {
  font-size: 1.85rem !important;
  font-weight: 800 !important;
  background: linear-gradient(135deg, #f59e0b, #d97706) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  margin-bottom: 4px !important;
  line-height: 1 !important;
}

.hero .stats-item span {
  font-size: 10.5px !important;
  font-weight: 500 !important;
  color: #71717a !important;
  text-transform: uppercase !important;
  letter-spacing: 0.07em !important;
}

/* ===================================================================
   SECTION TITLES — global
=================================================================== */
.section-title h2 {
  font-size: 1.85rem !important;
  font-weight: 800 !important;
  color: var(--zinc-950) !important;
  letter-spacing: -0.01em;
}

.section-title h2::after {
  background: linear-gradient(90deg, var(--indigo-600), var(--teal-600)) !important;
  height: 3px !important;
  border-radius: 3px !important;
}

.section-title p {
  color: var(--zinc-500) !important;
  font-size: 15px !important;
}

/* ===================================================================
   FEATURES SECTION
=================================================================== */
.features.section {
  padding: 80px 0 !important;
  background: var(--zinc-50) !important;
}

.features .features-card {
  background: #ffffff !important;
  border: 1px solid var(--zinc-100) !important;
  border-radius: 16px !important;
  padding: 32px 28px !important;
  box-shadow: 0 1px 8px rgba(79, 70, 229, 0.04) !important;
  transition: all 0.3s ease !important;
  position: relative;
  overflow: hidden;
}

.features .features-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--indigo-600), var(--teal-600));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s ease;
  border-radius: 16px 16px 0 0;
}

.features .features-card:hover {
  border-color: var(--indigo-100) !important;
  box-shadow: 0 16px 48px rgba(79, 70, 229, 0.12) !important;
  transform: translateY(-5px) !important;
}

.features .features-card:hover::before { transform: scaleX(1); }

.features .icon-wrapper {
  width: 52px !important; height: 52px !important;
  background: var(--indigo-50) !important;
  border-radius: 12px !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  margin-bottom: 20px !important;
  transition: all 0.3s ease;
}

.features .icon-wrapper i {
  font-size: 22px !important;
  color: var(--indigo-600) !important;
}

.features .features-card:hover .icon-wrapper {
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-500)) !important;
}
.features .features-card:hover .icon-wrapper i { color: #ffffff !important; }

.features .features-card h3 {
  font-size: 16px !important;
  font-weight: 700 !important;
  color: var(--zinc-900) !important;
  margin-bottom: 10px !important;
}

.features .features-card p {
  font-size: 13.5px !important;
  color: var(--zinc-500) !important;
  line-height: 1.7 !important;
}

.features .feature-item {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
}
.features .feature-item i { color: var(--teal-600) !important; font-size: 14px; }
.features .feature-item span,
.features .feature-item a {
  font-size: 13px !important;
  color: var(--zinc-600) !important;
  font-weight: 500;
  transition: color 0.2s;
}
.features .feature-item a:hover { color: var(--indigo-600) !important; }

/* ===================================================================
   SERVICES SECTION
=================================================================== */
.services.section { padding: 80px 0 !important; }

.services .service-card {
  background: #ffffff !important;
  border: 1px solid var(--zinc-100) !important;
  border-radius: 16px !important;
  padding: 32px 28px !important;
  box-shadow: 0 2px 12px rgba(79, 70, 229, 0.04) !important;
  transition: all 0.3s ease !important;
  height: 100%;
}

.services .service-card:hover {
  border-color: var(--indigo-100) !important;
  box-shadow: 0 16px 48px rgba(79, 70, 229, 0.12) !important;
  transform: translateY(-4px) !important;
}

.services .service-card h3 {
  font-size: 17px !important;
  font-weight: 700 !important;
  color: var(--zinc-900) !important;
  margin-bottom: 10px !important;
}

.services .service-card p {
  font-size: 13.5px !important;
  color: var(--zinc-500) !important;
  line-height: 1.7 !important;
}

.services .service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--indigo-600) !important;
  font-weight: 600;
  font-size: 13.5px;
  margin-top: 16px;
  transition: gap 0.2s ease;
  text-decoration: none;
}
.services .service-link:hover { gap: 10px; color: var(--indigo-700) !important; }

/* ===================================================================
   PUBLIKASI / NEWS CARDS
=================================================================== */
.publikasi-card, .pub-card {
  background: #ffffff;
  border: 1px solid var(--zinc-100);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.05);
  transition: all 0.3s ease;
}
.publikasi-card:hover, .pub-card:hover {
  border-color: var(--indigo-100);
  box-shadow: 0 12px 36px rgba(79, 70, 229, 0.1);
  transform: translateY(-3px);
}

/* BPS dark-section cards */
.pub-bps-card {
  background: rgba(255, 255, 255, 0.07);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 14px;
  padding: 20px;
  transition: all 0.3s ease;
  backdrop-filter: blur(6px);
}
.pub-bps-card:hover {
  background: rgba(255, 255, 255, 0.11);
  border-color: rgba(165, 180, 252, 0.35);
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(0, 0, 0, 0.25);
}

/* BRS section cards */
.brs-card {
  background: #ffffff;
  border: 1px solid var(--zinc-100);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 2px 10px rgba(79, 70, 229, 0.05);
  transition: all 0.3s ease;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.brs-card:hover {
  border-color: var(--indigo-100);
  box-shadow: 0 12px 36px rgba(79, 70, 229, 0.1);
  transform: translateY(-3px);
}
.brs-card .brs-cover {
  height: 150px;
  overflow: hidden;
}
.brs-card .brs-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}
.brs-card:hover .brs-cover img { transform: scale(1.05); }
.brs-card .brs-body {
  padding: 16px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.brs-card .brs-tag {
  display: inline-block;
  background: var(--indigo-50);
  color: var(--indigo-700);
  font-size: 10.5px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
  letter-spacing: 0.04em;
}
.brs-card h3 {
  font-size: 14px !important;
  font-weight: 700 !important;
  color: var(--zinc-900) !important;
  line-height: 1.45 !important;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 8px !important;
}
.brs-card .brs-meta {
  font-size: 12px;
  color: var(--zinc-500);
  margin-bottom: 10px;
}
.brs-card .brs-abstract {
  font-size: 12.5px;
  color: var(--zinc-600);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex: 1;
}
.brs-card .brs-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--indigo-600);
  font-weight: 600;
  font-size: 13px;
  margin-top: 12px;
  text-decoration: none;
  transition: gap 0.2s ease;
}
.brs-card .brs-link:hover { gap: 9px; color: var(--indigo-700); }

/* ===================================================================
   BUTTONS — global
=================================================================== */
.btn-primary, a.btn-primary {
  background: linear-gradient(135deg, var(--indigo-600), var(--indigo-700)) !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  transition: all 0.25s ease !important;
  box-shadow: 0 2px 8px rgba(79, 70, 229, 0.2) !important;
}
.btn-primary:hover, a.btn-primary:hover {
  background: linear-gradient(135deg, var(--indigo-700), var(--indigo-800)) !important;
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.35) !important;
  transform: translateY(-1px) !important;
}

.btn-outline-primary {
  border-color: var(--indigo-600) !important;
  color: var(--indigo-600) !important;
}
.btn-outline-primary:hover {
  background: var(--indigo-600) !important;
  color: #ffffff !important;
}

/* ===================================================================
   FOOTER
=================================================================== */
.footer {
  background: var(--zinc-950) !important;
  color: var(--zinc-300);
  padding: 0 !important;
}

.footer-main {
  padding: 32px 0 12px !important;
}

/* Brand column */
.footer-logo {
  max-height: 38px;
  width: auto;
  display: block;
}

.footer-tagline {
  font-size: 13px !important;
  color: var(--zinc-400) !important;
  line-height: 1.65;
  margin-bottom: 0;
}

/* Headings */
.footer h4 {
  color: #ffffff !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px !important;
}

/* Links */
.footer a { color: var(--zinc-300) !important; font-size: 13px; transition: color 0.2s; text-decoration: none; }
.footer a:hover { color: var(--indigo-400) !important; }

/* Portal links list */
.footer-links ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.footer-links ul li {
  margin-bottom: 0;
  line-height: 1.4;
}
.footer-links ul li a {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 12px !important;
}
.footer-links ul li a i {
  font-size: 10px;
  color: var(--indigo-500) !important;
  flex-shrink: 0;
}

/* Layanan Digital list */
.footer-services-list li a i {
  font-size: 11px !important;
  color: var(--indigo-400) !important;
  width: 14px;
  flex-shrink: 0;
}

/* Contact list */
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 9px;
}

/* Icon box */
.fc-icon {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  background: rgba(99, 102, 241, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--indigo-400);
  font-size: 13px;
}

/* Text block */
.fc-body {
  display: flex;
  flex-direction: column;
  gap: 1px;
  padding-top: 1px;
}
.fc-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--zinc-400);
  line-height: 1.2;
}
.fc-value {
  font-size: 12px;
  color: var(--zinc-300);
  line-height: 1.45;
}
.fc-link {
  color: var(--indigo-400) !important;
  text-decoration: none;
}
.fc-link:hover {
  color: var(--indigo-300) !important;
}

/* Visitor stats grid */
.visitor-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.visitor-item {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.07);
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.visitor-item--wide {
  grid-column: 1 / -1;
}
.visitor-value {
  font-size: 18px;
  font-weight: 700;
  color: var(--amber-400) !important;
  line-height: 1.1;
  font-family: var(--heading-font);
}
.visitor-value--total {
  font-size: 22px;
  background: linear-gradient(135deg, var(--amber-400), var(--amber-500));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.visitor-label {
  font-size: 10.5px;
  color: var(--zinc-600) !important;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* Social links */
.social-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px; height: 32px;
  background: transparent;
  border: 1.5px solid var(--zinc-600);
  border-radius: 50%;
  color: var(--zinc-400) !important;
  font-size: 14px;
  margin-right: 5px;
  transition: all 0.25s;
  text-decoration: none !important;
}
.social-links a:hover {
  background: var(--indigo-600) !important;
  border-color: var(--indigo-600) !important;
  color: #ffffff !important;
  transform: translateY(-2px);
}

/* Footer bottom bar */
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12) !important;
  padding: 10px 0 !important;
  background: #000000 !important;
}
.footer-bottom p,
.footer-bottom a {
  font-size: 12px !important;
  color: var(--zinc-400) !important;
  margin: 0;
}
.footer-bottom a:hover { color: var(--indigo-400) !important; }
.footer-bottom .footer-copyright-link,
.footer-bottom .footer-copyright-link:hover { color: var(--indigo-400) !important; }

/* ===================================================================
   SCROLL TO TOP
=================================================================== */
.scroll-top {
  background: var(--indigo-600) !important;
  border-radius: 10px !important;
  box-shadow: 0 4px 16px rgba(79, 70, 229, 0.35) !important;
}
.scroll-top:hover { background: var(--indigo-700) !important; }

/* ===================================================================
   TYPOGRAPHY SYSTEM — WCAG AA compliant (4.5:1 min)
   Research: Inter body + Plus Jakarta Sans headings
   Contrast targets: body #3f3f46 on white = 9.7:1 ✓
                     muted #52525b on white = 7.0:1 ✓
                     caption #71717a on white = 4.6:1 ✓
=================================================================== */
body {
  font-family: var(--default-font);
  font-size: 15px;
  line-height: 1.7;
  color: #3f3f46;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--heading-font);
  color: #09090b;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(1.75rem, 3vw, 2.5rem); font-weight: 800; }
h2 { font-size: clamp(1.4rem, 2.5vw, 1.9rem); font-weight: 700; }
h3 { font-size: clamp(1.15rem, 2vw, 1.4rem); font-weight: 700; }
h4 { font-size: 1.1rem; font-weight: 600; }
h5 { font-size: 1rem;   font-weight: 600; }
h6 { font-size: 0.9rem; font-weight: 600; }

p { margin-bottom: 1rem; }

small, .small { font-size: 0.83rem; }

/* ===================================================================
   BOOTSTRAP UTILITY OVERRIDES — light mode
   Goal: align Bootstrap defaults with our Indigo/Zinc palette
=================================================================== */

/* Colors */
.text-primary   { color: #4f46e5 !important; }
.text-secondary { color: #52525b !important; }
.text-muted     { color: #52525b !important; } /* 7.0:1 on white ✓ */
.text-dark      { color: #09090b !important; }
.text-info      { color: #0891b2 !important; }
.text-success   { color: #059669 !important; }
.text-warning   { color: #d97706 !important; }
.text-danger    { color: #dc2626 !important; }

/* Backgrounds */
.bg-light       { background-color: #f4f4f5 !important; }
.bg-primary     { background-color: #4f46e5 !important; }
.bg-info        { background-color: #0891b2 !important; }

/* Badges */
.badge.bg-primary   { background: #4f46e5 !important; color: #fff !important; }
.badge.bg-light     { background: #e4e4e7 !important; color: #3f3f46 !important; }
.badge.bg-secondary { background: #e4e4e7 !important; color: #52525b !important; }
.badge.text-secondary { color: #52525b !important; }
.badge.text-dark    { color: #09090b !important; }

/* Buttons — unified SDI brand button */
.btn-sdi {
  background: #ffffff !important;
  color: #09090b !important;
  border: 1.5px solid rgba(255,255,255,0.3) !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 13.5px !important;
  padding: 9px 20px !important;
  transition: all 0.22s ease !important;
  text-decoration: none !important;
  display: inline-flex !important;
  align-items: center !important;
}
.btn-sdi:hover {
  background: #4f46e5 !important;
  color: #ffffff !important;
  border-color: #4f46e5 !important;
  box-shadow: 0 4px 16px rgba(79,70,229,0.3) !important;
}

.btn-outline-primary {
  border-color: #4f46e5 !important;
  color: #4f46e5 !important;
  border-radius: 8px !important;
  font-weight: 500 !important;
}
.btn-outline-primary:hover {
  background: #4f46e5 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(79,70,229,0.25) !important;
}

.btn-outline-secondary {
  border-color: #d4d4d8 !important;
  color: #52525b !important;
  border-radius: 8px !important;
}
.btn-outline-secondary:hover {
  background: #f4f4f5 !important;
  color: #3f3f46 !important;
  border-color: #a1a1aa !important;
}

.btn-outline-success {
  border-color: #059669 !important;
  color: #059669 !important;
  border-radius: 8px !important;
}
.btn-outline-success:hover {
  background: #059669 !important;
  color: #ffffff !important;
}

/* Any inline teal/info button — force white text for contrast */
[style*="background-color: #17a2b8"],
[style*="background-color:#17a2b8"],
.btn-info { color: #ffffff !important; }

/* List group */
.list-group-item {
  color: #3f3f46 !important;
  border-color: #f4f4f5 !important;
}
.list-group-item:hover { background-color: #fafafa !important; }
.list-group-item h6, .list-group-item .fw-bold { color: #09090b !important; }

/* Nav tabs — news/data pages */
.nav-tabs .nav-link {
  border: none !important;
  border-bottom: 2.5px solid transparent !important;
  color: #71717a !important;
  font-weight: 500 !important;
  border-radius: 0 !important;
  padding: 10px 16px !important;
}
.nav-tabs .nav-link.active {
  color: #4f46e5 !important;
  border-bottom-color: #4f46e5 !important;
  background-color: transparent !important;
  font-weight: 600 !important;
}
.nav-tabs .nav-link:hover:not(.active) {
  color: #3f3f46 !important;
  background-color: #f4f4f5 !important;
}

/* Card overlay gradient */
.card-img-overlay {
  background: linear-gradient(to top, rgba(9,9,11,0.88) 0%, rgba(9,9,11,0.2) 60%, transparent 100%) !important;
}

/* Pagination */
.pagination .page-link {
  color: #4f46e5 !important;
  border-color: #e4e4e7 !important;
  border-radius: 8px !important;
  margin: 0 2px;
  font-weight: 500;
}
.pagination .page-item.active .page-link {
  background: #4f46e5 !important;
  border-color: #4f46e5 !important;
  color: #ffffff !important;
}

/* General links */
a { color: #4f46e5; }
a:hover { color: #4338ca; }

/* Selection */
::selection {
  background: rgba(79, 70, 229, 0.12);
  color: #09090b;
}

/* ===================================================================
   BADGE / MISC
=================================================================== */

/* ===================================================================
   DARK MODE — TOKENS
=================================================================== */
html.dark-mode {
  --background-color:               #09090b;
  --default-color:                  #a1a1aa;
  --heading-color:                  #f4f4f5;
  --accent-color:                   #818cf8;
  --surface-color:                  #18181b;
  --nav-color:                      #a1a1aa;
  --nav-hover-color:                #818cf8;
  --nav-dropdown-background-color:  #18181b;
  --nav-dropdown-color:             #a1a1aa;
  --nav-dropdown-hover-color:       #818cf8;
}

/* ===================================================================
   DARK MODE — COMPONENTS
=================================================================== */
html.dark-mode body,
body.dark-mode {
  background-color: #09090b !important;
  color: #a1a1aa !important;
}

/* Header */
html.dark-mode .header {
  background: transparent !important;
  border-bottom-color: #27272a !important;
  box-shadow: 0 2px 24px rgba(0, 0, 0, 0.5) !important;
}
html.dark-mode .header::before {
  background: rgba(9, 9, 11, 0.92);
}

/* Nav */
html.dark-mode .navmenu a,
html.dark-mode .navmenu a:focus { color: #a1a1aa !important; }
html.dark-mode .navmenu .active { color: #818cf8 !important; }
html.dark-mode .navmenu > ul > li:hover > a,
html.dark-mode .navmenu > ul > li.nav-active > a {
  background: #4f46e5 !important;
  color: #ffffff !important;
}
html.dark-mode .navmenu .dropdown ul {
  background: #18181b !important;
  border-color: #27272a !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.5) !important;
}
html.dark-mode .navmenu .dropdown ul li a { color: #a1a1aa !important; }
html.dark-mode .navmenu .dropdown ul li a:hover {
  color: #818cf8 !important;
  background: rgba(129, 140, 248, 0.08) !important;
}

/* ── Hero dark mode ── */
html.dark-mode .hero.section {
  background: linear-gradient(160deg, #06040f 0%, #1a1640 45%, #071714 100%) !important;
}
html.dark-mode .hero.section::before {
  background: radial-gradient(circle, rgba(99, 102, 241, 0.18) 0%, transparent 65%);
}
html.dark-mode .hero h1 { color: #ffffff !important; }
html.dark-mode .hero h1 span {
  background: linear-gradient(135deg, #a5b4fc, #2dd4bf) !important;
  -webkit-background-clip: text !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
}
html.dark-mode .hero .subtitle { color: #a5b4fc !important; }
html.dark-mode .hero .subtitle::before { background: linear-gradient(90deg, #818cf8, #2dd4bf); }
html.dark-mode .hero .hero-desc { color: rgba(255,255,255,0.5) !important; }
html.dark-mode .hero .btn-video .play-label {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.12) !important;
  color: rgba(255,255,255,0.8) !important;
}
html.dark-mode .hero .btn-video:hover .play-label {
  border-color: rgba(165,180,252,0.35) !important;
  background: rgba(79,70,229,0.15) !important;
  color: #a5b4fc !important;
}
html.dark-mode .hero .stats-item {
  background: rgba(255,255,255,0.05) !important;
  border-color: rgba(255,255,255,0.08) !important;
  box-shadow: none !important;
  backdrop-filter: blur(12px) !important;
  -webkit-backdrop-filter: blur(12px) !important;
}
html.dark-mode .hero .stats-item:hover {
  background: rgba(79,70,229,0.15) !important;
  border-color: rgba(165,180,252,0.25) !important;
  box-shadow: 0 12px 32px rgba(79,70,229,0.2) !important;
}
html.dark-mode .hero .stats-item span { color: rgba(255,255,255,0.4) !important; }

/* Features */
html.dark-mode .features.section { background: #09090b !important; }
html.dark-mode .features .features-card {
  background: #18181b !important;
  border-color: #27272a !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2) !important;
}
html.dark-mode .features .features-card:hover {
  border-color: #3f3f46 !important;
  box-shadow: 0 16px 48px rgba(129, 140, 248, 0.08) !important;
}
html.dark-mode .features .features-card h3 { color: #f4f4f5 !important; }
html.dark-mode .features .features-card p { color: #71717a !important; }
html.dark-mode .features .icon-wrapper {
  background: rgba(99, 102, 241, 0.1) !important;
}
html.dark-mode .features .icon-wrapper i { color: #818cf8 !important; }
html.dark-mode .features .features-card:hover .icon-wrapper {
  background: linear-gradient(135deg, #4f46e5, #6366f1) !important;
}
html.dark-mode .features .feature-item i { color: #2dd4bf !important; }
html.dark-mode .features .feature-item span,
html.dark-mode .features .feature-item a { color: #a1a1aa !important; }

/* Services */
html.dark-mode .services.section { background: #09090b !important; }
html.dark-mode .services .service-card {
  background: #18181b !important;
  border-color: #27272a !important;
}
html.dark-mode .services .service-card:hover { border-color: #3f3f46 !important; }
html.dark-mode .services .service-card h3 { color: #f4f4f5 !important; }
html.dark-mode .services .service-card p { color: #71717a !important; }
html.dark-mode .services .service-link { color: #818cf8 !important; }
html.dark-mode .services .service-link:hover { color: #a5b4fc !important; }

/* Section titles */
html.dark-mode .section-title h2 { color: #f4f4f5 !important; }
html.dark-mode .section-title p { color: #71717a !important; }

/* Bootstrap cards */
html.dark-mode .card {
  background: #18181b !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}
html.dark-mode .card-header {
  background: #27272a !important;
  border-bottom-color: #3f3f46 !important;
  color: #f4f4f5 !important;
}
html.dark-mode .list-group-item {
  background: #18181b !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}
html.dark-mode .list-group-item:hover { background: #27272a !important; }

/* Tables */
html.dark-mode .table,
html.dark-mode table { color: #a1a1aa !important; }
html.dark-mode .table > :not(caption) > * > * {
  background-color: #18181b !important;
  border-bottom-color: #27272a !important;
  color: #a1a1aa !important;
}
html.dark-mode .table-header { background-color: #312e81 !important; color: #fff !important; }

/* Forms */
html.dark-mode input,
html.dark-mode select,
html.dark-mode textarea,
html.dark-mode .form-control,
html.dark-mode .form-select {
  background-color: #18181b !important;
  border-color: #3f3f46 !important;
  color: #f4f4f5 !important;
}
html.dark-mode input::placeholder { color: #52525b !important; }
html.dark-mode .input-group-text {
  background: #27272a !important;
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}

/* Tabs */
html.dark-mode .nav-tabs .nav-link { color: #71717a !important; }
html.dark-mode .nav-tabs .nav-link.active {
  background: var(--indigo-700, #4338ca) !important;
  color: #fff !important;
}
html.dark-mode .nav-tabs .nav-link:hover:not(.active) { background: #18181b !important; }

/* Pagination */
html.dark-mode .pagination .page-link {
  background: #18181b !important;
  border-color: #27272a !important;
  color: #818cf8 !important;
}
html.dark-mode .pagination .page-item.active .page-link {
  background: var(--indigo-600, #4f46e5) !important;
  border-color: var(--indigo-600, #4f46e5) !important;
}

/* Misc */
html.dark-mode h1, html.dark-mode h2, html.dark-mode h3,
/* Typography */
html.dark-mode body { color: #a1a1aa !important; }
html.dark-mode h1, html.dark-mode h2, html.dark-mode h3,
html.dark-mode h4, html.dark-mode h5, html.dark-mode h6 { color: #e4e4e7 !important; }
html.dark-mode p { color: #a1a1aa !important; }

/* Prinsip SDI — ratakan posisi baris link pertama antar kartu */
.features-grid-2r {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0 20px;
}
/* fc-top: bagian atas kartu (teks) — shadow hanya sisi atas & kiri/kanan */
.features-grid-2r .fc-top {
  border-radius: 15px 15px 0 0 !important;
  padding-bottom: 20px !important;
  box-shadow: 0 -6px 25px rgba(0,0,0,0.05), -4px 0 15px rgba(0,0,0,0.03), 4px 0 15px rgba(0,0,0,0.03) !important;
  transition: transform 0.3s, box-shadow 0.3s;
  height: auto !important;
}
/* fc-bot: bagian bawah kartu (link) — shadow hanya sisi bawah & kiri/kanan */
.features-grid-2r .fc-bot {
  background: var(--surface-color);
  border-radius: 0 0 15px 15px;
  padding: 16px 30px 30px;
  border-top: 1px solid rgba(0,0,0,0.05);
  box-shadow: 4px 8px 25px rgba(0,0,0,0.05), -4px 8px 25px rgba(0,0,0,0.05);
}
html.dark-mode .features-grid-2r .fc-bot {
  background: var(--surface-color);
  border-top-color: rgba(255,255,255,0.06);
}
@media (max-width: 768px) {
  .features-grid-2r {
    grid-template-columns: 1fr;
  }
  .features-grid-2r .fc-top {
    border-radius: 15px 15px 0 0 !important;
  }
  .features-grid-2r .fc-bot {
    border-radius: 0 0 15px 15px;
    margin-bottom: 20px;
  }
}

/* Bootstrap bg overrides — paksa bg-light/dark tidak dikalahkan .section rule main.css */
section.bg-light { background-color: #f3f4f6 !important; }
section.bg-dark  { background-color: #09090b !important; }
html.dark-mode section.bg-light                  { background-color: #18181b !important; }
html.dark-mode section.bg-dark                   { background-color: #09090b !important; }
html.dark-mode .features.section.bg-light        { background: #18181b !important; }
html.dark-mode .services.section.bg-light        { background: #18181b !important; }

/* Publikasi BPS card background */
.pub-bps-card {
    background: #f3f4f6;
    border-radius: 12px;
    padding: 16px;
}
html.dark-mode .pub-bps-card { background: #18181b; }

/* Tabs section — redesign nav menjadi pill buttons individual */
.tabs .tabs-header { margin-bottom: 40px !important; }
.tabs .tabs-header .nav-tabs {
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    padding: 0 !important;
    gap: 10px !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}
.tabs .tabs-header .nav-tabs .nav-item { flex: none !important; }
.tabs .tabs-header .nav-tabs .nav-link {
    border: 1.5px solid #d1d5db !important;
    border-radius: 50px !important;
    padding: 10px 24px !important;
    background: #ffffff !important;
    transition: all 0.2s ease !important;
}
.tabs .tabs-header .nav-tabs .nav-link:hover:not(.active) {
    border-color: #a5b4fc !important;
    background: #f5f3ff !important;
}
.tabs .tabs-header .nav-tabs .nav-link.active {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
}
.tabs .tab-content .visual-content {
    border-radius: 16px !important;
    border: none !important;
    overflow: hidden;
    box-shadow: 0 4px 24px rgba(0,0,0,0.08) !important;
}
/* Dark mode */
html.dark-mode .tabs .tabs-header .nav-tabs .nav-link {
    border-color: #3f3f46 !important;
    background: #18181b !important;
}
html.dark-mode .tabs .tabs-header .nav-tabs .nav-link:hover:not(.active) {
    border-color: #6366f1 !important;
    background: #1e1b4b !important;
}
html.dark-mode .tabs .tabs-header .nav-tabs .nav-link.active {
    background: #4f46e5 !important;
    border-color: #4f46e5 !important;
}

/* Publikasi BPS link — tema-aware */
.pub-bps-link { color: #4f46e5; }
.pub-bps-link:hover { color: #3730a3; }
html.dark-mode .pub-bps-link { color: #a5b4fc; }
html.dark-mode .pub-bps-link:hover { color: #c7d2fe; }

/* Bootstrap utility — dark mode corrections
   Target: muted text 5.1:1 on #09090b ✓, links 5.5:1 ✓ */
html.dark-mode .text-primary    { color: #818cf8 !important; }  /* indigo-400, 5.5:1 */
html.dark-mode .text-secondary  { color: #a1a1aa !important; }  /* zinc-400, 5.1:1 */
html.dark-mode .text-muted      { color: #a1a1aa !important; }  /* zinc-400, 5.1:1 ✓ */
html.dark-mode .text-dark       { color: #f4f4f5 !important; }
html.dark-mode .text-info       { color: #22d3ee !important; }
html.dark-mode .text-success    { color: #34d399 !important; }
html.dark-mode .text-warning    { color: #fbbf24 !important; }
html.dark-mode .text-danger     { color: #f87171 !important; }

/* Backgrounds */
html.dark-mode .bg-light        { background: #18181b !important; }
html.dark-mode .bg-primary      { background: #4338ca !important; }

/* Badges */
html.dark-mode .badge.bg-primary   { background: #4f46e5 !important; color: #fff !important; }
html.dark-mode .badge.bg-light     { background: #3f3f46 !important; color: #e4e4e7 !important; }
html.dark-mode .badge.bg-secondary { background: #3f3f46 !important; color: #a1a1aa !important; }
html.dark-mode .badge.text-secondary { color: #a1a1aa !important; }
html.dark-mode .badge.text-dark    { color: #f4f4f5 !important; }

/* Buttons */
html.dark-mode .btn-sdi {
  background: rgba(255,255,255,0.1) !important;
  color: #f4f4f5 !important;
  border-color: rgba(255,255,255,0.2) !important;
}
html.dark-mode .btn-sdi:hover {
  background: #4f46e5 !important;
  color: #ffffff !important;
}
html.dark-mode .btn-outline-primary {
  border-color: #818cf8 !important;
  color: #818cf8 !important;
}
html.dark-mode .btn-outline-primary:hover {
  background: #4f46e5 !important;
  color: #ffffff !important;
}
html.dark-mode .btn-outline-secondary {
  border-color: #3f3f46 !important;
  color: #a1a1aa !important;
}
html.dark-mode .btn-outline-secondary:hover {
  background: #27272a !important;
  color: #e4e4e7 !important;
  border-color: #52525b !important;
}
html.dark-mode .btn-outline-success {
  border-color: #34d399 !important;
  color: #34d399 !important;
}
html.dark-mode .btn-outline-success:hover {
  background: #059669 !important;
  color: #ffffff !important;
}

/* Nav tabs */
html.dark-mode .nav-tabs .nav-link { color: #71717a !important; }
html.dark-mode .nav-tabs .nav-link.active {
  color: #818cf8 !important;
  border-bottom-color: #818cf8 !important;
}
html.dark-mode .nav-tabs .nav-link:hover:not(.active) {
  background: #18181b !important;
  color: #a1a1aa !important;
}

/* List group */
html.dark-mode .list-group-item {
  background: #18181b !important;
  border-color: #27272a !important;
  color: #a1a1aa !important;
}
html.dark-mode .list-group-item:hover { background: #27272a !important; }
html.dark-mode .list-group-item h6,
html.dark-mode .list-group-item .fw-bold { color: #e4e4e7 !important; }

/* Misc */
html.dark-mode .border    { border-color: #27272a !important; }
html.dark-mode .shadow-sm { box-shadow: 0 2px 8px rgba(0,0,0,0.4) !important; }
html.dark-mode a { color: #818cf8; }
html.dark-mode a:hover { color: #a5b4fc; }
html.dark-mode .publikasi-card,
html.dark-mode .pub-card {
  background: #18181b !important;
  border-color: #27272a !important;
}
html.dark-mode #preloader { background: #09090b !important; }
html.dark-mode ::selection {
  background: rgba(129, 140, 248, 0.18);
  color: #f4f4f5;
}
