/* ==========================================================================
   DISPENDIKBUD KABUPATEN SITUBONDO - MODERN FRONTEND THEME
   Sesuai Karakteristik Portal Resmi Pemerintahan:
   Modern, Stylish, Segar, Berwibawa, dan User-Friendly.
   ========================================================================== */

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

:root {
  --font-gov: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  
  /* Government Primary Palette (Deep Navy / Royal Blue) */
  --gov-primary: #1e3a8a;
  --gov-primary-dark: #0f172a;
  --gov-primary-light: #2563eb;
  --gov-primary-soft: #eff6ff;
  
  /* Government Secondary & Accents */
  --gov-teal: #0284c7;
  --gov-emerald: #059669;
  --gov-emerald-soft: #ecfdf5;
  --gov-amber: #d97706;
  --gov-amber-soft: #fffbeb;
  --gov-rose: #e11d48;
  --gov-purple: #7c3aed;
  
  /* Neutral Palette */
  --gov-bg: #f8fafc;
  --gov-surface: #ffffff;
  --gov-border: #e2e8f0;
  --gov-border-light: #f1f5f9;
  
  /* Typography */
  --gov-text-heading: #0f172a;
  --gov-text-body: #334155;
  --gov-text-muted: #64748b;
  
  /* Elevation Shadows */
  --gov-shadow-xs: 0 1px 2px 0 rgba(15, 23, 42, 0.05);
  --gov-shadow-sm: 0 2px 8px -1px rgba(15, 23, 42, 0.08), 0 1px 4px -1px rgba(15, 23, 42, 0.04);
  --gov-shadow-md: 0 10px 25px -3px rgba(15, 23, 42, 0.08), 0 4px 10px -2px rgba(15, 23, 42, 0.04);
  --gov-shadow-lg: 0 20px 35px -5px rgba(30, 58, 138, 0.12), 0 10px 15px -5px rgba(15, 23, 42, 0.04);
  --gov-shadow-hover: 0 20px 35px -5px rgba(37, 99, 235, 0.18), 0 8px 16px -4px rgba(37, 99, 235, 0.1);
  
  /* Radii */
  --gov-radius-sm: 8px;
  --gov-radius-md: 12px;
  --gov-radius-lg: 16px;
  --gov-radius-xl: 22px;
  --gov-radius-full: 9999px;
}

/* ==========================================================================
   BASE & TYPOGRAPHY
   ========================================================================== */
html, body {
  font-family: var(--font-gov) !important;
  color: var(--gov-text-body) !important;
  background-color: var(--gov-bg) !important;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-gov) !important;
  color: var(--gov-text-heading) !important;
  font-weight: 700;
  letter-spacing: -0.02em;
}

a {
  color: var(--gov-primary-light);
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

a:hover, a:focus {
  color: var(--gov-primary);
  text-decoration: none;
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 9px;
  height: 9px;
}
::-webkit-scrollbar-track {
  background: #f1f5f9;
}
::-webkit-scrollbar-thumb {
  background: #cbd5e1;
  border-radius: 10px;
}
::-webkit-scrollbar-thumb:hover {
  background: #94a3b8;
}

/* Scroll To Top Button */
.scrollToTop {
  background: linear-gradient(135deg, var(--gov-primary-light), var(--gov-primary)) !important;
  border-radius: var(--gov-radius-full) !important;
  width: 46px !important;
  height: 46px !important;
  line-height: 46px !important;
  box-shadow: 0 8px 20px rgba(30, 58, 138, 0.35) !important;
  border: 2px solid rgba(255, 255, 255, 0.2) !important;
  transition: all 0.3s ease !important;
}

.scrollToTop:hover {
  transform: translateY(-4px) !important;
  box-shadow: 0 12px 25px rgba(30, 58, 138, 0.45) !important;
}

/* ==========================================================================
   HEADER TOP & CONTACT BAR
   ========================================================================== */
#header {
  background: transparent;
}

.header-top {
  background: linear-gradient(135deg, #0b192c 0%, #1e3a8a 100%) !important;
  padding: 8px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  font-size: 12.5px;
  color: #e2e8f0;
}

.header-bottom {
  background: #0f172a !important;
  padding: 7px 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.header-contact ul {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.header-contact ul li {
  display: inline-flex;
  align-items: center;
  color: #cbd5e1;
  font-size: 12px;
  font-weight: 500;
}

.header-contact ul li i {
  color: #38bdf8;
  margin-right: 7px;
  font-size: 13px;
}

.header-login {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.header-login .btn-lapor {
  background: linear-gradient(135deg, #e11d48, #be123c) !important;
  color: #ffffff !important;
  font-weight: 700 !important;
  font-size: 12px !important;
  padding: 5px 14px !important;
  border-radius: var(--gov-radius-full) !important;
  box-shadow: 0 2px 8px rgba(225, 29, 72, 0.35) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  border: none;
  text-decoration: none !important;
}

.header-login .btn-lapor:hover {
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(225, 29, 72, 0.5) !important;
}

.header-login .btn-admin-login {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  font-size: 12px !important;
  padding: 5px 14px !important;
  border-radius: var(--gov-radius-full) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
  text-decoration: none !important;
}

.header-login .btn-admin-login:hover {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
}

/* ==========================================================================
   NAVIGATION BAR (STICKY, MODERN FROSTED GLASS)
   ========================================================================== */
#menu-area {
  background: #ffffff !important;
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08) !important;
  position: sticky;
  top: 0;
  z-index: 9999;
  transition: all 0.3s ease;
  border-bottom: 1px solid var(--gov-border);
}

.navbar-default {
  background: transparent !important;
  border: none !important;
  margin-bottom: 0 !important;
  min-height: 74px !important;
  display: flex;
  align-items: center;
}

.navbar-default .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.navbar-header {
  display: flex;
  align-items: center;
  padding: 6px 0;
}

.brand-wrapper {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none !important;
}

.brand-logo-img {
  width: 50px;
  height: 50px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.15));
  transition: transform 0.2s ease;
}

.brand-wrapper:hover .brand-logo-img {
  transform: scale(1.04);
}

.brand-text {
  display: flex;
  flex-direction: column;
}

.brand-sub {
  font-size: 11px;
  font-weight: 700;
  color: var(--gov-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  line-height: 1.2;
}

.brand-title {
  font-size: 24px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

/* Animated Dispendikbud Logo (Signature flowing animation) */
.title-styling {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
  background-clip: text !important;
  -webkit-background-clip: text !important;
  box-decoration-break: clone;
  -webkit-box-decoration-break: clone;
  background-color: #0284c7;
  background-image: url("/assets/images/abstract1.jpg"), url("../images/abstract1.jpg") !important;
  background-repeat: repeat !important;
  background-size: 2048px !important;
  display: inline-block;
  -webkit-animation: 72s diagonal-flow infinite linear, 23s hue-rotate infinite linear !important;
  animation: 72s diagonal-flow infinite linear, 23s hue-rotate infinite linear !important;
  padding-left: 0;
  padding-right: 4px;
  letter-spacing: 0.5px;
}

.brand-wrapper:hover .title-styling,
.brand-wrapper:focus .title-styling,
.nav-title:hover .title-styling,
.nav-title:focus .title-styling {
  color: transparent !important;
  -webkit-text-fill-color: transparent !important;
}

@keyframes diagonal-flow {
  0% {
    background-position: 100px 100px;
  }
  100% {
    background-position: -5020px 4196px;
  }
}

@-webkit-keyframes diagonal-flow {
  0% {
    background-position: 100px 100px;
  }
  100% {
    background-position: -5020px 4196px;
  }
}

@keyframes hue-rotate {
  0% {
    filter: hue-rotate(0deg);
    -webkit-filter: hue-rotate(0deg);
  }
  50% {
    filter: hue-rotate(-60deg);
    -webkit-filter: hue-rotate(-60deg);
  }
  100% {
    filter: hue-rotate(0deg);
    -webkit-filter: hue-rotate(0deg);
  }
}

@-webkit-keyframes hue-rotate {
  0% {
    -webkit-filter: hue-rotate(0deg);
  }
  50% {
    -webkit-filter: hue-rotate(-60deg);
  }
  100% {
    -webkit-filter: hue-rotate(0deg);
  }
}

/* Navigation Menu Items */
.main-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin: 0 !important;
}

.main-nav > li > a {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: #334155 !important;
  padding: 10px 14px !important;
  border-radius: var(--gov-radius-md) !important;
  transition: all 0.2s ease !important;
  display: flex;
  align-items: center;
  gap: 5px;
}

.main-nav > li > a:hover,
.main-nav > li.active > a {
  background: var(--gov-primary-soft) !important;
  color: var(--gov-primary) !important;
}

.main-nav > li.active > a {
  font-weight: 700 !important;
}

/* Dropdown Menu */
.navbar-default .navbar-nav > .dropdown > a .fa-angle-down {
  font-size: 11px;
  transition: transform 0.2s ease;
  margin-left: 2px;
}

.navbar-default .navbar-nav > .dropdown:hover > a .fa-angle-down {
  transform: rotate(180deg);
}

.dropdown-menu {
  background: #ffffff !important;
  border: 1px solid var(--gov-border) !important;
  border-radius: var(--gov-radius-lg) !important;
  box-shadow: 0 20px 30px -5px rgba(15, 23, 42, 0.12), 0 8px 12px -3px rgba(15, 23, 42, 0.06) !important;
  padding: 8px !important;
  min-width: 260px !important;
  animation: fadeInSlide 0.2s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes fadeInSlide {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.dropdown-menu > li > a {
  padding: 9px 14px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: #475569 !important;
  border-radius: var(--gov-radius-sm) !important;
  transition: all 0.15s ease !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.dropdown-menu > li > a:hover,
.dropdown-menu > li.active > a {
  background: var(--gov-primary-soft) !important;
  color: var(--gov-primary) !important;
  transform: translateX(3px);
}

.navbar-toggle {
  border-radius: 10px !important;
  border: 1px solid var(--gov-border) !important;
  padding: 9px 10px !important;
  margin-top: 14px !important;
}

.navbar-toggle .icon-bar {
  background-color: var(--gov-primary) !important;
}

/* Quick Search Toggle */
.searchbar {
  margin-left: 10px;
}

#search-icon {
  width: 38px;
  height: 38px;
  border-radius: var(--gov-radius-full);
  background: var(--gov-primary-soft);
  color: var(--gov-primary);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: all 0.2s ease;
}

#search-icon:hover {
  background: var(--gov-primary);
  color: #ffffff;
  transform: scale(1.05);
}

/* Header Top Search Dropdown */
#search {
  background: #ffffff;
  border-radius: var(--gov-radius-full);
  padding: 4px 6px 4px 18px;
  display: flex;
  align-items: center;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
  max-width: 550px;
  margin: 6px auto;
}

#search input {
  border: none !important;
  outline: none !important;
  font-size: 13px;
  color: #0f172a;
  width: 100%;
  padding: 6px 0;
  font-family: var(--font-gov);
}

#search button {
  background: var(--gov-primary) !important;
  color: #ffffff !important;
  border: none !important;
  width: 34px !important;
  height: 34px !important;
  border-radius: var(--gov-radius-full) !important;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease;
}

#search button:hover {
  background: var(--gov-primary-light) !important;
}

/* ==========================================================================
   HERO BANNER & RUNNING TICKER
   ========================================================================== */
#slider {
  padding: 20px 0 0 0 !important;
  background: var(--gov-bg);
}

.main-slider {
  border-radius: var(--gov-radius-xl) !important;
  overflow: hidden !important;
  box-shadow: var(--gov-shadow-md);
  padding: 0 !important;
  margin-bottom: 14px;
}

.main-slider .single-slide img {
  width: 100%;
  border-radius: var(--gov-radius-xl);
  object-fit: cover;
  max-height: 480px;
}

/* Running Announcement Ticker */
.pengumuman-modern-box {
  background: #ffffff;
  border-radius: var(--gov-radius-full);
  padding: 6px 14px 6px 8px;
  box-shadow: var(--gov-shadow-sm);
  border: 1px solid var(--gov-border);
  display: flex;
  align-items: center;
  margin-bottom: 24px;
  overflow: hidden;
}

.pengumuman-badge {
  background: linear-gradient(135deg, #0284c7, #0369a1);
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--gov-radius-full);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(2, 132, 199, 0.35);
}

.pengumuman-ticker-text {
  flex-grow: 1;
  padding-left: 14px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  color: #334155;
  white-space: nowrap;
}

/* Legacy ticker compatibility */
.pengumuman {
  background: #ffffff !important;
  border-radius: var(--gov-radius-full) !important;
  border: 1px solid var(--gov-border) !important;
  box-shadow: var(--gov-shadow-sm) !important;
  margin-top: 10px;
  margin-bottom: 25px;
  padding: 10px 18px !important;
}

.pengumuman .scroller {
  font-size: 13.5px !important;
  font-weight: 600 !important;
  color: var(--gov-primary) !important;
}

/* ==========================================================================
   SECTION TITLES (OFFICIAL GOVERNMENT LOOK)
   ========================================================================== */
.title-area {
  text-align: center;
  margin-bottom: 36px !important;
}

.title-area .badge-pill-title {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--gov-primary-soft);
  color: var(--gov-primary);
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 5px 14px;
  border-radius: var(--gov-radius-full);
  margin-bottom: 10px;
  border: 1px solid #dbeafe;
}

.title-area .title {
  font-size: 26px !important;
  font-weight: 800 !important;
  color: var(--gov-text-heading) !important;
  letter-spacing: -0.02em !important;
  margin-top: 0 !important;
  margin-bottom: 8px !important;
}

.title-area p {
  color: var(--gov-text-muted) !important;
  font-size: 14px !important;
  max-width: 650px;
  margin: 0 auto !important;
}

.title-area .line {
  display: block;
  width: 50px;
  height: 3.5px;
  background: linear-gradient(90deg, #0284c7, var(--gov-primary));
  border-radius: 4px;
  margin: 12px auto 0 auto;
}

/* ==========================================================================
   4 BIDANG DINAS (CARDS)
   ========================================================================== */
#feature {
  padding: 40px 0 30px 0 !important;
}

.bidang-card {
  background: #ffffff;
  border-radius: var(--gov-radius-xl);
  border: 1px solid var(--gov-border);
  box-shadow: var(--gov-shadow-sm);
  padding: 26px 20px;
  text-align: center;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  text-decoration: none !important;
  margin-bottom: 24px;
}

.bidang-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: transparent;
  transition: background 0.3s ease;
}

.bidang-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--gov-shadow-hover);
  border-color: #cbd5e1;
}

.bidang-card.card-paud::before { background: linear-gradient(90deg, #0284c7, #38bdf8); }
.bidang-card.card-dikdas::before { background: linear-gradient(90deg, #10b981, #34d399); }
.bidang-card.card-budaya::before { background: linear-gradient(90deg, #f59e0b, #fbbf24); }
.bidang-card.card-tendik::before { background: linear-gradient(90deg, #8b5cf6, #a78bfa); }

.bidang-icon-wrap {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  margin: 0 auto 16px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  transition: all 0.3s ease;
}

.bidang-card:hover .bidang-icon-wrap {
  transform: scale(1.1);
}

.card-paud .bidang-icon-wrap { background: #e0f2fe; color: #0284c7; }
.card-dikdas .bidang-icon-wrap { background: #ecfdf5; color: #059669; }
.card-budaya .bidang-icon-wrap { background: #fffbeb; color: #d97706; }
.card-tendik .bidang-icon-wrap { background: #f3e8ff; color: #7c3aed; }

.bidang-title {
  font-size: 14.5px;
  font-weight: 800;
  color: var(--gov-text-heading);
  line-height: 1.35;
  margin-bottom: 12px;
}

.bidang-link-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--gov-primary-light);
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.bidang-card:hover .bidang-link-label {
  color: var(--gov-primary);
}

/* ==========================================================================
   PELAYANAN DIGITAL DISPENDIK (QUICK PUBLIC SERVICES)
   ========================================================================== */
.service-grid-card {
  background: #ffffff;
  border-radius: var(--gov-radius-lg);
  border: 1px solid var(--gov-border);
  box-shadow: var(--gov-shadow-xs);
  padding: 18px 14px;
  text-align: center;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  display: block;
  text-decoration: none !important;
  margin-bottom: 18px;
  height: calc(100% - 18px);
}

.service-grid-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--gov-shadow-md);
  border-color: #93c5fd;
  background: #ffffff;
}

.service-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 14px;
  margin: 0 auto 12px auto;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.25s ease;
}

.service-grid-card:hover .service-icon-box {
  transform: scale(1.08);
}

/* Service icon color themes */
.service-icon-blue { background: #eff6ff; color: #2563eb; }
.service-icon-teal { background: #f0fdfa; color: #0d9488; }
.service-icon-emerald { background: #ecfdf5; color: #059669; }
.service-icon-amber { background: #fffbeb; color: #d97706; }
.service-icon-purple { background: #f5f3ff; color: #7c3aed; }
.service-icon-rose { background: #fff1f2; color: #e11d48; }
.service-icon-indigo { background: #eef2ff; color: #4f46e5; }
.service-icon-cyan { background: #ecfeff; color: #0891b2; }

.service-title {
  font-size: 13px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  line-height: 1.35;
  letter-spacing: -0.01em;
}

/* ==========================================================================
   BERITA & ARTIKEL TERBARU
   ========================================================================== */
#latest-news {
  padding: 45px 0 !important;
}

.news-card {
  background: #ffffff;
  border-radius: var(--gov-radius-xl);
  border: 1px solid var(--gov-border);
  box-shadow: var(--gov-shadow-sm);
  overflow: hidden;
  margin-bottom: 30px;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  height: calc(100% - 30px);
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--gov-shadow-hover);
  border-color: #cbd5e1;
}

.news-img-wrap {
  position: relative;
  overflow: hidden;
  height: 200px;
  background: #f1f5f9;
}

.news-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.news-card:hover .news-img-wrap img {
  transform: scale(1.05);
}

.news-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(15, 23, 42, 0.85);
  backdrop-filter: blur(8px);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: var(--gov-radius-full);
  z-index: 2;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.news-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
  justify-content: space-between;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  color: var(--gov-text-muted);
  margin-bottom: 10px;
}

.news-meta i {
  color: #0284c7;
}

.news-headline {
  font-size: 16px;
  font-weight: 800;
  color: var(--gov-text-heading);
  line-height: 1.4;
  margin-bottom: 10px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-headline a {
  color: var(--gov-text-heading) !important;
}

.news-headline a:hover {
  color: var(--gov-primary-light) !important;
}

.news-excerpt {
  font-size: 13px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 16px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-read-more {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--gov-primary-light);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: auto;
}

.news-read-more:hover {
  color: var(--gov-primary);
  transform: translateX(4px);
}

/* ==========================================================================
   STATISTIK PENDIDIKAN (DAPODIK COUNTER)
   ========================================================================== */
#counter {
  padding: 50px 0 !important;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%) !important;
  position: relative;
  overflow: hidden;
}

#counter::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 80% 20%, rgba(2, 132, 199, 0.25) 0%, transparent 60%);
  pointer-events: none;
}

.stat-modern-card {
  background: rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--gov-radius-xl);
  padding: 24px 20px;
  text-align: center;
  color: #ffffff;
  transition: all 0.3s ease;
  margin-bottom: 20px;
}

.stat-modern-card:hover {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.3);
}

.stat-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px auto;
  font-size: 24px;
  color: #38bdf8;
}

.stat-number {
  font-size: 32px;
  font-weight: 800;
  color: #ffffff;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}

.stat-label {
  font-size: 13px;
  font-weight: 600;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* ==========================================================================
   CHARTS / TENTANG KAMI
   ========================================================================== */
#about {
  padding: 50px 0 !important;
  background: var(--gov-bg);
}

.chart-card-wrapper {
  background: #ffffff;
  border-radius: var(--gov-radius-xl);
  border: 1px solid var(--gov-border);
  box-shadow: var(--gov-shadow-sm);
  padding: 24px;
  margin-bottom: 24px;
  transition: box-shadow 0.2s ease;
}

.chart-card-wrapper:hover {
  box-shadow: var(--gov-shadow-md);
}

.chart-card-wrapper h3 {
  font-size: 16px;
  font-weight: 800;
  color: var(--gov-text-heading);
  margin-top: 0;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.chart-card-wrapper p {
  font-size: 12.5px;
  color: var(--gov-text-muted);
  margin-bottom: 16px;
}

/* ==========================================================================
   PEJABAT STRUKTURAL SLIDER
   ========================================================================== */
#our-team {
  padding: 50px 0 !important;
  background: #ffffff;
}

.pejabat-card-modern {
  background: #ffffff;
  border-radius: var(--gov-radius-xl);
  border: 1px solid var(--gov-border);
  box-shadow: var(--gov-shadow-sm);
  padding: 24px 16px;
  text-align: center;
  margin: 10px 12px;
  transition: all 0.3s ease;
}

.pejabat-card-modern:hover {
  transform: translateY(-5px);
  box-shadow: var(--gov-shadow-hover);
  border-color: #cbd5e1;
}

.pejabat-avatar-wrap {
  width: 110px;
  height: 110px;
  border-radius: var(--gov-radius-full);
  margin: 0 auto 16px auto;
  overflow: hidden;
  border: 4px solid var(--gov-primary-soft);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.pejabat-avatar-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.pejabat-jabatan-badge {
  display: inline-block;
  background: var(--gov-primary-soft);
  color: var(--gov-primary);
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--gov-radius-full);
  margin-bottom: 8px;
}

.pejabat-name {
  font-size: 15px;
  font-weight: 800;
  color: var(--gov-text-heading);
  line-height: 1.3;
  margin-bottom: 4px;
}

.pejabat-nip {
  font-size: 11.5px;
  color: var(--gov-text-muted);
  font-weight: 500;
}

/* ==========================================================================
   MODERN GOVERNMENT FOOTER
   ========================================================================== */
#footer {
  background: #0b1528 !important;
  color: #cbd5e1;
  padding-top: 50px;
  border-top: 4px solid var(--gov-primary-light);
}

.footer-top {
  padding-bottom: 40px;
}

.footer-col h4 {
  color: #ffffff !important;
  font-size: 14.5px !important;
  font-weight: 800 !important;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-top: 0;
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}

.footer-col h4::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 35px;
  height: 3px;
  background: #38bdf8;
  border-radius: 2px;
}

.footer-about-text {
  font-size: 13px;
  color: #94a3b8;
  line-height: 1.7;
  margin-bottom: 16px;
}

.footer-links-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-links-list li {
  margin-bottom: 10px;
}

.footer-links-list li a {
  color: #94a3b8 !important;
  font-size: 13px;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.footer-links-list li a:hover {
  color: #38bdf8 !important;
  transform: translateX(4px);
}

.footer-contact-info {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-contact-info li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
  font-size: 13px;
  color: #94a3b8;
}

.footer-contact-info li i {
  color: #38bdf8;
  font-size: 15px;
  margin-top: 3px;
  flex-shrink: 0;
}

.footer-social-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
}

.footer-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  transition: all 0.2s ease;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.footer-social-btn:hover {
  background: var(--gov-primary-light);
  transform: translateY(-2px);
  border-color: transparent;
}

.footer-bottom {
  background: #070d19;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding: 18px 0;
  font-size: 12.5px;
  color: #64748b;
}

.footer-bottom a {
  color: #94a3b8;
}

.footer-bottom a:hover {
  color: #38bdf8;
}

/* ==========================================================================
   SUBPAGE & SIDEBAR STYLING
   ========================================================================== */
#berita-page-header,
#informasi-page-header,
#pages-page-header,
#pejabat-page-header {
  background: linear-gradient(135deg, #0f172a 0%, #1e3a8a 100%) !important;
  padding: 40px 0 !important;
  position: relative;
  overflow: hidden;
}

#berita-page-header .overlay,
#informasi-page-header .overlay,
#pages-page-header .overlay,
#pejabat-page-header .overlay {
  background: transparent !important;
}

.single-page-header-left h2 {
  color: #ffffff !important;
  font-size: 26px !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em;
  margin-top: 0;
}

.single-page-header-left p {
  color: #94a3b8 !important;
  font-size: 13.5px;
  margin: 0;
}

.single-page-header-right .breadcrumb {
  background: rgba(255, 255, 255, 0.1) !important;
  border-radius: var(--gov-radius-full) !important;
  padding: 8px 18px !important;
  display: inline-flex;
  font-size: 12.5px;
  margin-top: 8px;
}

.single-page-header-right .breadcrumb li a {
  color: #cbd5e1;
}

.single-page-header-right .breadcrumb > .active {
  color: #ffffff;
  font-weight: 700;
}

#blog-archive {
  padding: 45px 0 !important;
}

.blog-archive-area {
  margin: 0 !important;
}

/* Article inside subpages */
.blog-news-single {
  background: #ffffff;
  border-radius: var(--gov-radius-xl);
  border: 1px solid var(--gov-border);
  box-shadow: var(--gov-shadow-sm);
  padding: 26px;
  margin-bottom: 28px;
  overflow: hidden;
  transition: box-shadow 0.2s ease;
}

.blog-news-single:hover {
  box-shadow: var(--gov-shadow-md);
}

.blog-news-img {
  border-radius: var(--gov-radius-lg);
  overflow: hidden;
  margin-bottom: 20px;
}

.blog-news-img img {
  width: 100%;
  border-radius: var(--gov-radius-lg);
}

.blog-news-title h2,
.blog-news-title h4 {
  font-size: 22px !important;
  font-weight: 800 !important;
  line-height: 1.35;
  margin-top: 0;
  margin-bottom: 12px;
}

.blog-news-title h2 a,
.blog-news-title h4 a {
  color: var(--gov-text-heading) !important;
}

.blog-news-title h2 a:hover,
.blog-news-title h4 a:hover {
  color: var(--gov-primary-light) !important;
}

.blog-news-title p {
  font-size: 12.5px;
  color: var(--gov-text-muted);
  margin-bottom: 16px;
}

.blog-more-btn {
  background: var(--gov-primary-soft) !important;
  color: var(--gov-primary) !important;
  font-size: 12.5px !important;
  font-weight: 700 !important;
  padding: 7px 16px !important;
  border-radius: var(--gov-radius-full) !important;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.blog-more-btn:hover {
  background: var(--gov-primary) !important;
  color: #ffffff !important;
}

/* Sidebar Widgets */
.blog-side-bar {
  margin-left: 10px;
}

.sidebar-widget {
  background: #ffffff;
  border-radius: var(--gov-radius-xl);
  border: 1px solid var(--gov-border);
  box-shadow: var(--gov-shadow-sm);
  padding: 22px;
  margin-bottom: 24px;
}

.sidebar-widget .widget-title {
  font-size: 15px !important;
  font-weight: 800 !important;
  color: var(--gov-text-heading) !important;
  margin-top: 0;
  margin-bottom: 16px;
  position: relative;
  padding-bottom: 8px;
}

.sidebar-widget .widget-title::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 32px;
  height: 3px;
  background: var(--gov-primary);
  border-radius: 2px;
}

.search-group {
  position: relative;
  display: flex;
  align-items: center;
}

.search-group input {
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  border-radius: var(--gov-radius-full);
  padding: 10px 18px 10px 42px;
  font-size: 13px;
  width: 100%;
  outline: none;
  transition: all 0.2s ease;
}

.search-group input:focus {
  border-color: var(--gov-primary);
  background: #ffffff;
  box-shadow: 0 0 0 3px rgba(30, 58, 138, 0.12);
}

.search-group .blog-search-btn {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: #94a3b8;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
}

.widget-category {
  list-style: none;
  padding: 0;
  margin: 0;
}

.widget-category li {
  border-bottom: 1px solid var(--gov-border-light);
}

.widget-category li:last-child {
  border-bottom: none;
}

.widget-category li a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 4px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
}

.widget-category li a:hover {
  color: var(--gov-primary);
  padding-left: 8px;
}

.tag-cloud a {
  display: inline-block;
  background: var(--gov-primary-soft);
  color: var(--gov-primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: var(--gov-radius-full);
  margin: 3px 2px;
  border: 1px solid #dbeafe;
}

.tag-cloud a:hover {
  background: var(--gov-primary);
  color: #ffffff;
}

/* Responsive adjustments */
@media (max-width: 991px) {
  .navbar-default .container {
    flex-wrap: wrap;
  }
  .main-nav {
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
    padding: 10px 0;
  }
  .main-nav > li {
    width: 100%;
  }
  .dropdown-menu {
    position: static !important;
    float: none !important;
    width: 100% !important;
    box-shadow: none !important;
    border: none !important;
    background: #f8fafc !important;
  }
  .blog-side-bar {
    margin-left: 0;
    margin-top: 30px;
  }
}

/* ==========================================================================
   SUBPAGE HERO BANNER & BREADCRUMBS
   ========================================================================== */
.subpage-hero-banner,
#berita-page-header,
#informasi-page-header,
#pengaduan-page-header,
#pejabat-page-header,
#galeri-page-header,
#pages-page-header,
#download-page-header,
#kontak-page-header,
#single-page-header {
  background: linear-gradient(135deg, #0b192c 0%, #1e3a8a 65%, #0369a1 100%) !important;
  position: relative;
  padding: 50px 0 45px !important;
  color: #ffffff;
  border-bottom: 3px solid var(--gov-teal);
  box-shadow: 0 10px 25px -5px rgba(11, 25, 44, 0.4);
}

.subpage-hero-banner .overlay {
  background: transparent !important;
  padding: 0 !important;
}

.subpage-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 255, 255, 0.12);
  color: #7dd3fc;
  font-size: 11.5px;
  font-weight: 700;
  padding: 4px 12px;
  border-radius: var(--gov-radius-full);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(6px);
}

.single-page-header-left h2 {
  font-size: 28px !important;
  font-weight: 800 !important;
  color: #ffffff !important;
  margin: 0 0 8px !important;
  letter-spacing: -0.02em;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.single-page-header-left p {
  font-size: 14px;
  color: #cbd5e1;
  margin: 0;
  max-width: 600px;
  line-height: 1.5;
}

.single-page-header-right {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  height: 100%;
}

@media (max-width: 767px) {
  .single-page-header-right {
    justify-content: flex-start;
    margin-top: 15px;
  }
}

.single-page-header-right .breadcrumb {
  background: rgba(255, 255, 255, 0.1) !important;
  padding: 8px 16px !important;
  border-radius: var(--gov-radius-full) !important;
  margin: 0 !important;
  border: 1px solid rgba(255, 255, 255, 0.15);
  font-size: 12.5px;
  backdrop-filter: blur(4px);
}

.single-page-header-right .breadcrumb > li + li:before {
  color: rgba(255, 255, 255, 0.5);
  padding: 0 8px;
  content: "/";
}

.single-page-header-right .breadcrumb li a {
  color: #cbd5e1 !important;
  font-weight: 600;
}

.single-page-header-right .breadcrumb li a:hover {
  color: #ffffff !important;
}

.single-page-header-right .breadcrumb > .active {
  color: #ffffff !important;
  font-weight: 700;
}

/* ==========================================================================
   SUBPAGE CONTENT CONTAINER & CARDS
   ========================================================================== */
.subpage-content-area {
  padding: 45px 0 !important;
  background-color: var(--gov-bg);
}

.empty-state-card {
  background: #ffffff;
  border-radius: var(--gov-radius-xl);
  border: 1px solid var(--gov-border);
  box-shadow: var(--gov-shadow-sm);
  padding: 45px 30px;
  text-align: center;
}

.empty-state-icon {
  width: 70px;
  height: 70px;
  border-radius: 50%;
  background: var(--gov-primary-soft);
  color: var(--gov-primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  margin: 0 auto 18px;
}

.empty-state-card h3 {
  font-size: 19px;
  font-weight: 800;
  color: var(--gov-text-heading);
  margin-bottom: 8px;
}

.empty-state-card p {
  color: var(--gov-text-muted);
  font-size: 13.5px;
  max-width: 440px;
  margin: 0 auto 20px;
}

/* Article Reader Styling */
.article-reader-card {
  padding: 32px !important;
}

.article-rich-text {
  font-size: 15.5px;
  line-height: 1.85;
  color: #334155;
}

.article-rich-text p {
  margin-bottom: 18px;
}

.article-rich-text h1,
.article-rich-text h2,
.article-rich-text h3,
.article-rich-text h4 {
  margin-top: 25px;
  margin-bottom: 14px;
  color: var(--gov-text-heading);
}

.article-rich-text img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: var(--gov-radius-md);
  margin: 15px auto;
  box-shadow: var(--gov-shadow-xs);
}

.article-rich-text blockquote {
  border-left: 4px solid var(--gov-primary-light);
  background: #f8fafc;
  padding: 14px 20px;
  border-radius: 0 var(--gov-radius-md) var(--gov-radius-md) 0;
  font-style: italic;
  color: #475569;
  margin: 20px 0;
}

.article-rich-text table {
  width: 100% !important;
  margin: 20px 0;
  border-collapse: collapse;
  border: 1px solid var(--gov-border);
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
}

.article-rich-text table th,
.article-rich-text table td {
  padding: 10px 14px;
  border: 1px solid var(--gov-border);
  font-size: 13.5px;
}

.article-rich-text table th {
  background: #f1f5f9;
  font-weight: 700;
  color: var(--gov-text-heading);
}

/* Pejabat Profile Cards */
.pejabat-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--gov-shadow-hover) !important;
  border-color: #cbd5e1 !important;
}

.pejabat-card:hover .pejabat-img-wrapper img {
  transform: scale(1.06);
}

/* Contact Info Card Hover */
.contact-info-card {
  transition: all 0.3s ease;
}

.contact-info-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--gov-shadow-md) !important;
  border-color: #cbd5e1 !important;
}

/* Modern DataTables enhancements */
.dataTables_wrapper {
  font-size: 13px;
}

.dataTables_wrapper .dataTables_length select {
  border-radius: 8px !important;
  border: 1px solid #cbd5e1 !important;
  padding: 4px 8px !important;
  outline: none;
}

.dataTables_wrapper .dataTables_filter input {
  border-radius: 999px !important;
  border: 1px solid #cbd5e1 !important;
  padding: 6px 14px !important;
  outline: none;
  background: #f8fafc;
  transition: all 0.2s ease;
}

.dataTables_wrapper .dataTables_filter input:focus {
  background: #ffffff;
  border-color: var(--gov-primary-light);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.dataTables_wrapper .dataTables_paginate .paginate_button {
  border-radius: 8px !important;
  border: 1px solid transparent !important;
  padding: 4px 10px !important;
  margin: 0 2px !important;
  font-weight: 600 !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button.current,
.dataTables_wrapper .dataTables_paginate .paginate_button.current:hover {
  background: var(--gov-primary) !important;
  color: #ffffff !important;
  border-color: var(--gov-primary) !important;
}

.dataTables_wrapper .dataTables_paginate .paginate_button:hover {
  background: var(--gov-primary-soft) !important;
  color: var(--gov-primary) !important;
  border-color: #dbeafe !important;
}

/* ==========================================================================
   BLOG & SUBPAGE PAGINATION (Pills & Modern Active State)
   ========================================================================== */
.blog-pagination {
  margin-top: 35px;
  margin-bottom: 25px;
  text-align: center;
}

.pagination-nav {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  list-style: none;
  padding: 6px 12px;
  margin: 0;
  background: #ffffff;
  border-radius: var(--gov-radius-full);
  box-shadow: var(--gov-shadow-xs);
  border: 1px solid var(--gov-border);
}

.pagination-nav .page-item {
  display: inline-block;
}

.pagination-nav .page-item .page-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: var(--gov-radius-full) !important;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
  background: transparent;
  border: 1px solid transparent;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  text-decoration: none;
}

.pagination-nav .page-item:not(.active):not(.disabled) .page-link:hover {
  background: var(--gov-primary-soft);
  color: var(--gov-primary);
  border-color: #dbeafe;
  transform: translateY(-1px);
}

.pagination-nav .page-item.active .page-link {
  background: var(--gov-primary) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(30, 58, 138, 0.3);
  border-color: var(--gov-primary);
}

.pagination-nav .page-item.disabled .page-link {
  color: #cbd5e1;
  cursor: not-allowed;
  pointer-events: none;
}
