* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
  color: #333;
  background-color: #f5f5f5;
}

.logo-image {
  width: 44px;
  height: 44px;
  object-fit: contain;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(33, 98, 226, 0.08);
  margin-right: 0px;
  display: inline-block;
  vertical-align: middle;
}

/* Header Styles */
:root {
  --header-height: 70px;
}

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.11);
  z-index: 1000;
  transition: all 0.3s ease;
}

.header-container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  height: var(--header-height);
}

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #333;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #2162e2, #1a4bb8);
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 18px;
}

.logo-text {
  font-size: 16px;
  font-weight: 500;
}


/* Header search (desktop) */
/* (reverted) no header-search styles */

/* Navigasi */
.nav-menu {
  display: flex;
  list-style: none;
  gap: 28px;
}

.nav-menu li {
  position: relative;
}

.nav-menu a {
  text-decoration: none;
  color: #4b5563;
  /* slate-600 */
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.25s ease;
  position: relative;
  padding: 14px 0;
}

.nav-menu a:hover {
  color: #1f2937;
  /* gray-800 */
}

.nav-menu a:focus-visible {
  outline: 3px solid rgba(33, 98, 226, 0.25);
  border-radius: 8px;
}

.nav-menu a:hover {
  color: #2162e2;
}

/* Dropdown Menu */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  background: white;
  box-shadow: 0 14px 28px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  min-width: 260px;
  padding: 8px 0;
  border: 1px solid #e5e7eb;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-10px);
  transition: all 0.3s ease;
  z-index: 1000;
}

.dropdown-menu li {
  list-style: none;
  position: relative;
}

.dropdown-menu a {
  display: block;
  padding: 12px 16px;
  color: #374151;
  /* gray-700 */
  text-decoration: none;
  transition: background 0.25s ease, color 0.25s ease;
}

.dropdown-menu a:hover {
  background: #edeef0ff;
  color: #111827;
}

.nav-menu li:hover>.dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

/* Multi-level flyout */
.dropdown-menu .dropdown-menu {
  top: 0;
  left: 100%;
  transform: translateX(10px);
  opacity: 0;
  visibility: hidden;
  min-width: 240px;
}

.dropdown-menu>li>a {
  white-space: nowrap;
  font-weight: 500;
}

.dropdown-menu .dropdown-menu>li>a {
  font-weight: 400;
}

.dropdown-menu li:hover>.dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(0);
}

/* Search Menu*/
.search-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-icon {
  background: #ffffff03;
  border: 2px solid transparent;
  font-size: 18px;
  color: #333;
  cursor: pointer;
  padding: 10px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  margin-left: 10px;
  margin-right: 10px;
}

.search-icon:hover {
  background: #e8eef4ff;
  transform: scale(1.05);
}

.search-icon span {
  display: none;
}

/* Search Bar Below Navigation */
.search-bar {
  background: #f7f8fb;
  padding: 14px 0;
  border-bottom: 1px solid #e7ebf3;
  position: fixed;
  top: 70px;
  left: 0;
  right: 0;
  z-index: 999;
  display: none;
}

.search-bar.active {
  display: block;
}

.search-bar-container {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 20px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.search-input-group {
  display: flex;
  width: 100%;
  background: #fff;
  border: 1px solid #d8dde8;
  /* gray-300 softer */
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
}

.search-input-group:focus-within {
  border-color: #2563eb;
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.12);
}

.search-input-group:focus-within {
  border-color: #2162e2;
}

.search-input {
  position: relative;
  flex: 1;
}

.search-input i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: #9ca3af;
  /* gray-400 */
  font-size: 14px;
}

.search-bar-input {
  width: 100%;
  height: 46px;
  padding: 0 16px 0 40px;
  /* space for icon */
  border: 0;
  outline: none;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  background: #ffffff;
}

.news-filter-form input,
.news-filter-form select,
.search-bar-input,
.mobile-menu input,
.mobile-menu select,
.news-section input,
.news-section select,
.news-section textarea {
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  padding: 12px 14px;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  transition: border 0.2s ease, box-shadow 0.2s ease;
}

.news-filter-form input:focus,
.news-filter-form select:focus,
.search-bar-input:focus,
.news-section input:focus,
.news-section select:focus,
.news-section textarea:focus {
  border-color: #2563eb;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
  outline: none;
}

.search-bar-input:focus {
  border-color: #c7d2fe;
  box-shadow: 0 0 0 3px rgba(33, 98, 226, 0.12);
}

.search-bar-input::placeholder {
  color: #6b7280;
  /* gray-500 */
  font-family: "Poppins", sans-serif;
}

/* remove old button spacing (button no longer used) */
.search-bar-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-width: 120px;
  height: 46px;
  padding: 0 16px;
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-weight: 600;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(37, 99, 235, 0.22);
  transition: background 0.2s ease, transform 0.1s ease, box-shadow 0.2s ease;
}

.search-bar-button:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  box-shadow: 0 12px 30px rgba(29, 78, 216, 0.25);
}

.search-bar-button:active {
  transform: translateY(1px);
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  font-size: 24px;
  cursor: pointer;
  color: #333;
  transition: color 0.3s ease;
}

/* (reverted) remove auth button styles */

.mobile-menu-btn:hover {
  color: #2162e2;
}

/* Mobile Menu */
.mobile-menu {
  position: fixed;
  top: var(--header-height);
  left: 0;
  right: 0;
  background: white;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
  z-index: 999;
  display: none;
  max-height: calc(100vh - 70px);
  overflow-y: auto;
}

.mobile-menu.active {
  display: block;
}

.mobile-menu ul {
  list-style: none;
  padding: 20px;
}

.mobile-menu li {
  margin-bottom: 15px;
}

.mobile-menu a {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 14px 0;
  /* match desktop nav link height */
  color: #333;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  /* match desktop size */
  border-bottom: 1px solid #eee;
  transition: color 0.3s ease;
}

.mobile-menu a:hover {
  color: #2162e2;
}

.mobile-menu a i {
  transition: transform 0.3s ease;
}

.mobile-menu a[onclick*="toggleMobileSubmenu"] i {
  transform: rotate(0deg);
}

.mobile-menu a[onclick*="toggleMobileSubmenu"].active i {
  transform: rotate(180deg);
}

.mobile-submenu {
  display: none;
  padding-left: 20px;
  margin-top: 10px;
  background-color: #f5f5f5;
  border-radius: 5px;
  margin: 10px 0;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transition: all 0.3s ease;
}

.mobile-submenu.active {
  display: block;
  opacity: 1;
  max-height: 300px;
}

.mobile-submenu a {
  padding: 10px 15px;
  font-size: 0.9rem;
  color: #535353;
  border-bottom: 1px solid #e9ecef;
  display: block;
  border-radius: 5px;
}

.mobile-submenu a:last-child {
  border-bottom: none;
}

.mobile-submenu a:hover {
  background-color: #e7e7e7;
  color: #000000;
}

/* Hero Section */
.hero {
  height: 60vh;
  margin-top: 0;
  padding-top: 0;
  position: relative;
  overflow: hidden;
}

.hero-slider {
  width: 100%;
  height: 100%;
  position: relative;
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.hero-slide.active {
  opacity: 1;
}

.hero-slide::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg,
      rgba(33, 98, 226, 0.1),
      rgba(26, 75, 184, 0.1));
  z-index: 1;
}

.hero-content {
  max-width: none;
  /* biar bisa pakai padding berbasis viewport */
  margin: 0;
  /* jangan center */
  padding-left: calc((100vw - 1200px) / 2);
  /* sejajar kiri dengan container 1200px */
  padding-right: 20px;
  /* sedikit ruang kanan */
  padding-top: calc(var(--header-height) + 10px);
  /* hindari ketumpuk navbar tanpa beri ruang kosong */
  text-align: left;
  position: relative;
  z-index: 2;
}

.hero-pretitle {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.25em;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: 0.35rem;
  font-weight: 500;
}

.hero h1 {
  font-size: 2rem;
  margin-bottom: 20px;
  animation: fadeInUp 1s ease;
  font-weight: 600;
  line-height: 1.2;
}

.hero p {
  font-size: 1rem;
  margin-bottom: 30px;
  animation: fadeInUp 1s ease 0.3s both;
  font-weight: 400;
  opacity: 0.9;
}

.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background: #2162e2;
  color: white;
  text-decoration: none;
  border-radius: 6px;
  font-weight: 500;
  transition: all 0.3s ease;
  animation: fadeInUp 1s ease 0.6s both;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
}

.cta-button:hover {
  background: #1a4bb8;
  transform: translateY(-2px);
}

.hero-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0);
  border: none;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #ffffff;
  transition: all 0.3s ease;
}

.hero-nav:hover {
  background: rgba(255, 255, 255, 0);
  transform: translateY(-50%) scale(1.1);
}

.hero-nav.prev {
  left: 20px;
  margin-left: -20px;
}

.hero-nav.next {
  right: 20px;
  margin-right: -20px;
}


.hero-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 10px;
  z-index: 10;
}

.hero-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.hero-dot.active {
  background: white;
}

/* Statistics Section */
@media (max-width: 992px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: inline-flex;
  }

  .hero {
    height: 50vh;
  }
}

@media (max-width: 600px) {
  .hero {
    height: 42vh;
  }

  /* Smaller search input + button on mobile */
  .search-input-group {
    border-radius: 10px;
  }

  .search-bar-input {
    height: 40px;
    font-size: 13px;
    padding: 0 12px 0 36px;
  }

  .search-input i {
    left: 10px;
    font-size: 13px;
  }

  .search-bar-button {
    height: 40px;
    min-width: 110px;
    padding: 0 14px;
    font-size: 13px;
    border-top-right-radius: 10px;
    border-bottom-right-radius: 10px;
  }
}

@media (min-width: 993px) {
  .mobile-menu {
    display: none !important;
  }
}

.stats-section {
  margin-top: -55px;
  position: relative;
  z-index: 10;
  padding: 15px 20px;
  font-family: "Poppins", sans-serif;
}

.stats-card {
  max-width: 1200px;
  margin: 0 auto;
  background: #fff;
  border-radius: 16px;
  padding: 15px 20px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.06);
  border: 1px solid #f1f5f9;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 15px;
}

.stat-item {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  padding: 5px;
  transition: transform 0.3s ease;
}

.stat-item:hover {
  transform: translateY(-2px);
}

.stat-icon {
  font-size: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: color 0.3s ease;
}

/* Individual Icon Colors */
.stat-item:nth-child(1) .stat-icon {
  color: #3b82f6;
}
.stat-item:nth-child(2) .stat-icon {
  color: #8b5cf6;
}
.stat-item:nth-child(3) .stat-icon {
  color: #10b981;
}
.stat-item:nth-child(4) .stat-icon {
  color: #f43f5e;
}

.stat-info {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.stat-number {
  font-size: 1.5rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.2;
  margin-bottom: 2px;
  letter-spacing: -0.5px;
}

.stat-label {
  color: #64748b;
  font-size: 0.85rem;
  font-weight: 600;
  line-height: 1.3;
}

/* Info Banner (Running Text) */
.info-banner {
  background: #e3f2fd;
  padding: 10px;
  margin: 5px auto;
  border-radius: 8px;
  display: flex;
  align-items: center;
  gap: 10px;
  overflow: hidden;
  max-width: 1200px;
  border: 1px solid #70a0ed;
}

.info-tag {
  background: #2162e2;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.info-tag {
  background: #2162e2;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.running-text {
  flex: 1;
  overflow: hidden;
  position: relative;
  font-size: 0.9rem;
}

.running-text-content {
  display: inline-block;
  white-space: nowrap;
  animation: scrollText 45s linear infinite;
}

@keyframes scrollText {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Bottom banner slider (placed above footer) */
.bottom-banner {
  background: #ffffff;
  padding: 0;
  margin: 16px auto 24px;
  border-radius: 16px;
  max-width: 1200px;
  border: 1px solid #ececec;
  position: relative;
  overflow: hidden;
}

.bottom-slider {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.bottom-slides {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(.22, .61, .36, 1);
}

.bottom-slide {
  min-width: 100%;
  height: 260px;
  position: relative;
}

.bottom-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bottom-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  cursor: pointer;
  box-shadow: none;
  transition: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.bottom-arrow:hover {
  background: transparent;
}

.bottom-arrow i {
  font-size: 20px;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 0 4px rgba(0, 0, 0, .6), 0 0 8px rgba(0, 0, 0, .35);
  pointer-events: none;
}

.bottom-arrow.prev {
  left: 12px;
}

.bottom-arrow.next {
  right: 12px;
}

.bottom-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .25);
  cursor: pointer;
}

.bottom-dot.active {
  background: rgba(0, 0, 0, .55);
}

@media (max-width: 600px) {
  .bottom-slide {
    height: 190px;
  }

  .bottom-arrow {
    width: 38px;
    height: 38px;
  }

  .footer .footer-section h3 {
    font-size: 1rem;
    font-weight: 600;
    font-family: "Poppins", sans-serif;
  }

  .footer-address {
    font-size: 0.8rem;
    font-weight: 500;
    font-family: "Poppins", sans-serif;
  }

  .footer-bottom-left {
    font-size: 0.8rem;
    font-weight: 500;
  }

  .footer-section li {
    font-size: 0.8rem;
    font-weight: 500;
  }

  .infografis-header h3 {
    font-size: 1rem;
    font-weight: 600;
  }

  .galeri-link {
    color: #2162e2;
    font-size: 0.8rem;
    text-decoration: none;
    font-weight: 500;
    transition: color 0.3s;
  }

  .galeri-link:hover {
    color: #1a4bb8;
  }
}

/* Statistics Dashboard Section */
.statistics-dashboard {
  padding: 40px 0px;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dashboard-title {
  font-size: 1.8rem;
  color: #030303;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  margin: 0;
}

.dashboard-link {
  color: #2162e2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: "Poppins", sans-serif;
  font-size: 1.2rem;
}

.dashboard-link:hover {
  color: #1a4bb8;
}

.dashboard-container {
  overflow-x: auto;
  padding: 0;
  scrollbar-width: thin;
  scrollbar-color: #2162e2 #f0f0f0;
  cursor: grab;
}

.dashboard-container:active {
  cursor: grabbing;
}

.dashboard-container::-webkit-scrollbar {
  height: 8px;
}

.dashboard-container::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.dashboard-container::-webkit-scrollbar-thumb {
  background: #2162e2;
  border-radius: 4px;
}

.dashboard-container::-webkit-scrollbar-thumb:hover {
  background: #1a4bb8;
}

.dashboard-scroll {
  display: flex;
  gap: 25px;
  min-width: max-content;
  padding-bottom: 10px;
  padding-top: 10px;
}

/* Card Penduduk */
.stat-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #ececec;
  padding: 26px;
  min-width: 320px;
  max-width: 350px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(33, 98, 226, 0.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stat-card-wide {
  min-width: 1000px;
  max-width: 1050px;
}

.stat-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
  margin: 0;
}

/* Compact stats (ringkas) */
.compact-stats {
  margin-top: 14px;
  background: #f8fafc;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  padding: 16px 18px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.compact-stats__header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.compact-stats__eyebrow {
  font-size: 0.78rem;
  font-weight: 700;
  color: #2162e2;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.compact-stats__title {
  margin: 2px 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
}

.compact-stats__desc {
  margin: 0;
  font-size: 0.95rem;
  color: #64748b;
}

.compact-stats__filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.compact-stats__filters button {
  border: 1px solid #dbe4f3;
  background: #fff;
  color: #0f172a;
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.compact-stats__filters button:hover {
  border-color: #bcd0f7;
  box-shadow: 0 8px 16px rgba(33, 98, 226, 0.12);
}

.compact-stats__filters button.active {
  background: #2162e2;
  color: #fff;
  border-color: #2162e2;
  box-shadow: 0 10px 24px rgba(33, 98, 226, 0.22);
}

.compact-stats__list {
  margin-top: 14px;
  display: grid;
  gap: 10px;
}

.compact-stat-item {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 10px 12px;
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.04);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}

.compact-stat-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.07);
  border-color: #cbd5e1;
}

.compact-stat-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.compact-stat-label {
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
}

.compact-stat-value {
  font-weight: 700;
  color: #111827;
  font-size: 0.95rem;
}

.compact-stat-bar {
  position: relative;
  height: 10px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
}

.compact-stat-bar-fill {
  height: 100%;
  width: 0;
  background: #2162e2;
  border-radius: 999px;
  transition: width 0.4s ease;
}

.compact-stat-percent {
  position: absolute;
  right: 10px;
  top: -18px;
  font-size: 0.8rem;
  color: #475569;
  font-weight: 600;
}

.compact-stat-empty {
  padding: 12px;
  text-align: center;
  color: #475569;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  background: #f8fafc;
}

/* Dark mode: compact stats */
body.dark-mode .compact-stats {
  background: #111827;
  border-color: #262c3a;
  box-shadow: none;
}

body.dark-mode .compact-stats__eyebrow {
  color: #93c5fd;
}

body.dark-mode .compact-stats__title {
  color: #e7e8ea;
}

body.dark-mode .compact-stats__desc {
  color: #b5bac3;
}

body.dark-mode .compact-stats__filters button {
  background: #1b2232;
  border-color: #2a3244;
  color: #e7e8ea;
  box-shadow: none;
}

body.dark-mode .compact-stats__filters button:hover {
  border-color: #3b4860;
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
}

body.dark-mode .compact-stats__filters button.active {
  background: #2563eb;
  border-color: #2563eb;
  color: #fff;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

body.dark-mode .compact-stat-item {
  background: #161b26;
  border-color: #262c3a;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
}

body.dark-mode .compact-stat-item:hover {
  border-color: #3b4860;
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.45);
}

body.dark-mode .compact-stat-label,
body.dark-mode .compact-stat-value {
  color: #e7e8ea;
}

body.dark-mode .compact-stat-bar {
  background: #1f2937;
}

body.dark-mode .compact-stat-bar-fill {
  background: linear-gradient(135deg, #60a5fa, #a78bfa);
}

body.dark-mode .compact-stat-percent {
  color: #cbd5e1;
}

body.dark-mode .compact-stat-empty {
  background: #1b2232;
  border-color: #2a3244;
  color: #cbd5e1;
}

/* Header row inside stat-card to align title and 3-dots */
.stat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Three-dots menu on stat cards */
.stat-card {
  position: relative;
}

.card-menu-btn {
  position: static;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: #9aa3af;
  cursor: pointer;
  border-radius: 6px;
}

.card-menu-btn:hover {
  background: #f3f4f6;
  color: #4b5563;
}

.card-menu {
  position: absolute;
  top: 44px;
  right: 10px;
  min-width: 160px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
  padding: 8px;
  display: none;
  z-index: 5;
}

.card-menu.open {
  display: block;
}

.card-menu-item {
  display: block;
  padding: 8px 10px;
  color: #111;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.92rem;
}

.card-menu-item:hover {
  background: #f3f4f6;
}

/* Disable zoom/transform on click interactions */
.stat-card:active,
.transparansi-card:active,
.pegawai-card:active,
.bottom-arrow:active,
.info-graphic-nav:active,
.hero-nav:active,
.card-menu-btn:active,
.service-card:active,
.announcement-tab:active {
  transform: none !important;
}

.chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

/* SVG donut styled to match reference */
.donut-wrap {
  position: relative;
  width: 220px;
  height: 220px;
}

.donut-svg {
  width: 220px;
  height: 220px;
  transform: rotate(-70deg);
}

.donut-ring {
  fill: none;
  stroke: #eef3ff;
  stroke-width: 10;
}

.donut-segment {
  fill: none;
  stroke-linecap: round;
  stroke-width: 10;
}

.donut-segment.primary {
  stroke: #1e66f5;
}

.donut-segment.secondary {
  stroke: #2a61a8ff;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(242, 247, 255, 0.85);
  width: 170px;
  height: 170px;
  border-radius: 50%;
  margin: auto;
}

.donut-center i {
  font-size: 18px;
  color: #333;
  margin-bottom: 6px;
}

.donut-center .total-number {
  font-size: 1.8rem;
  font-weight: 600;
  color: #000;
}

.donut-center .total-label {
  font-size: 0.8rem;
  color: #666;
}

/* Donut Chart */
.donut-chart {
  width: 200px;
  height: 200px;
  border-radius: 0%;
  background: conic-gradient(#2162e2 0deg 110deg,
      transparent 210deg 230deg,
      #6aa6ff 230deg 340deg,
      transparent 340deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform .3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(33, 98, 226, .12);
  border-color: #2162e2;
}

.donut-hole {
  width: 170px;
  /* lebih besar → ring lebih tipis */
  height: 170px;
  background: #f2f7ff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-hole i {
  font-size: 18px;
  color: #333;
  margin-bottom: 5px;
}

.total-number {
  font-size: 2.2rem;
  font-weight: 600;
  color: #000;
}

.total-label {
  font-size: 0.9rem;
  color: #666;
}

/* Detail Item */
.stat-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #333;
}

.stat-detail-item i {
  font-size: 16px;
  color: #000;
  width: 20px;
}

.stat-detail-item span {
  flex: 1;
  margin-left: 8px;
}

.stat-detail-item strong {
  font-weight: 600;
  color: #000;
}

/* Donut: render ring via pseudo-element so center content is visible */
.donut-css {
  background: none !important;
  -webkit-mask: none !important;
  mask: none !important;
}

.donut-css::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from var(--start), var(--pri) 0deg calc(var(--p1) * 3.6deg), transparent 0 360deg),
    conic-gradient(from var(--start), var(--sec) 0 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 calc(100% - var(--thickness)));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 calc(100% - var(--thickness)));
}

.donut-center {
  z-index: 1;
}

/* CSS-only Donut (interactive, no SVG) */
.donut-css {
  --p1: 51;
  /* primary percent */
  --p2: 49;
  /* secondary percent (optional) */
  --gap: 0;
  /* no separation */
  --start: -90deg;
  /* start angle */
  --thickness: 14px;
  /* ring thickness */
  --pri: #1e66f5;
  /* primary color */
  --sec: #7fb6ff;
  /* secondary color */
  --ring: #eef3ff;
  /* base ring color */
  width: 220px;
  height: 220px;
  border-radius: 50%;
  position: relative;
  transition: transform .25s ease;
  background:
    /* top: primary arc length */
    conic-gradient(from var(--start), var(--pri) 0deg calc(var(--p1) * 3.6deg), transparent 0 360deg),
    /* bottom: remaining arc ensures no gap */
    conic-gradient(from var(--start), var(--sec) 0 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 calc(100% - var(--thickness)));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 calc(100% - var(--thickness)));
}

/* Focus states: dim the other arc */
.donut-css.focus-primary {
  --sec: #cfe3ff;
}

.donut-css.focus-secondary {
  --pri: #aac7ff;
}

/* Map Container */
.map-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.map-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.map-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  color: white;
  transition: background 0.3s;
}

/* Warna khusus */
.map-btn-blue {
  background: #2162e2;
}

.map-btn-blue:hover {
  background: #174bb5;
}

.map-btn-gray {
  background: #7f8c8d;
}

.map-btn-gray:hover {
  background: #5f6f70;
}

/* Pie Chart */
.pie-chart {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(var(--color) 0deg calc(var(--percentage) * 3.6deg),
      transparent calc(var(--percentage) * 3.6deg) 360deg);
}

.pie-slice {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  clip-path: polygon(50% 50%, 100% 0%, 100% 100%);
}

/* Bar Chart */
.bar-chart {
  display: flex;
  align-items: end;
  gap: 15px;
  height: 150px;
  padding: 0 10px;
}

.bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.bar {
  width: 100%;
  min-height: 20px;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
}

.bar-item:hover .bar {
  transform: scaleY(1.1);
}

.bar-item span {
  font-size: 0.8rem;
  color: #7f8c8d;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

/* Chart Legend */
.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-item span:last-child {
  font-size: 0.8rem;
  color: #7f8c8d;
  font-family: "Poppins", sans-serif;
}

/* Announcement Section */
.announcement-section {
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
}

.announcement-container {
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e7e9f2;
}

.announcement-header {
  background: #fafbff;
  padding: 24px 24px 14px 24px;
  border-bottom: 1px solid #eceff6;
}

.announcement-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.announcement-title i {
  background: #2162e2;
  color: rgb(255, 255, 255);
  padding: 12px;
  border-radius: 50%;
  font-size: 18px;
}

.announcement-title h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  margin: 0;
}

.announcement-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.announcement-tab {
  background: #f4f6fb;
  border: 1px solid #e7eaf4;
  color: #374151;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.announcement-tab:hover {
  border-color: #cfd7ef;
  background: #eef2fb;
}

.announcement-tab.active {
  background: #ffffff;
  color: #1f2937;
  border-color: #cfd7ef;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
}

.announcement-content {
  display: block;
  padding: 24px 30px;
}

.announcement-list {
  max-height: 560px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px;
}

.announcement-item {
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #eceef3;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  display: grid;
  grid-template-columns: 84px 160px 1fr;
  gap: 18px;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding-right: 56px;
}

.announcement-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
  border-color: #d7def3;
  background: #fbfcff;
}

.announcement-item:hover .announcement-title-text {
  color: #1a4bb8;
}

.announcement-item::after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa3b2;
  font-size: 16px;
}

.announcement-item::before {
  content: "";
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60a5fa;
  opacity: .8;
}

/* Left media strip (speaker image full height) */
.announcement-media {
  width: 80px;
  border-radius: 8px;
  overflow: hidden;
  align-self: stretch;
}

.announcement-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.announcement-date {
  color: #64748b;
  font-family: "Poppins", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 16px;
  border-right: 1px solid #eef1f4;
}

.announcement-date .date-top {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: capitalize;
}

.announcement-date .date-bottom {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: .2px;
}

.announcement-body {
  padding-left: 4px;
}

.announcement-title-text {
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
}

/* Title row with speaker icon */
.announcement-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.announcement-icon {
  display: none;
}

.announcement-desc {
  color: #6b7280;
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
  line-height: 1.55;
  max-width: 80ch;
}

/* Info Graphic */
.info-graphic {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-graphic-slider {
  position: relative;
  height: 400px;
}

.info-graphic-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.info-graphic-slide.active {
  opacity: 1;
}

.info-graphic-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-graphic-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #2162e2;
  transition: all 0.3s ease;
}

.info-graphic-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.info-graphic-nav.prev {
  left: 10px;
}

.info-graphic-nav.next {
  right: 10px;
}

.info-graphic-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.info-graphic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.info-graphic-dot.active {
  background: white;
}

/* Announcement Pagination */
.announcement-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px 30px;
  border-top: 1px solid #e9ecef;
}

/* Search bar */
.announcement-search {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid #eef1f4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.announcement-search i {
  color: #94a3b8;
}

.announcement-search input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  outline: none;
}

.announcement-search input:focus {
  border-color: #2162e2;
  box-shadow: 0 0 0 3px rgba(33, 98, 226, .12);
}

.announcement-pagination-btn {
  background: white;
  border: 1px solid #e9ecef;
  color: #7f8c8d;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  min-width: 40px;
  text-align: center;
}

.announcement-pagination-btn:hover {
  background: #2162e2;
  color: white;
  border-color: #2162e2;
}

.announcement-pagination-btn.active {
  background: #2162e2;
  color: white;
  border-color: #2162e2;
}

.announcement-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.announcement-pagination-btn--dots {
  cursor: default;
  box-shadow: none;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0 2px;
  min-width: 14px;
}

/* Services Section */
.services-section {
  padding: 20px 0px;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #2c3e50;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.section-subtitle {
  text-align: center;
  color: #7f8c8d;
  margin-bottom: 40px;
  font-size: 0.95rem;
  font-weight: 400;
  font-family: "Poppins", sans-serif;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-toggle {
  display: flex;
  justify-content: center;
  margin: 6px 0 22px;
}

.services-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: linear-gradient(135deg, #2162e2, #2e8bff);
  color: #fff;
  border: none;
  border-radius: 14px;
  padding: 14px 20px;
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.2px;
  box-shadow: 0 12px 30px rgba(33, 98, 226, 0.25);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.25s ease, background 0.3s ease;
}

.services-toggle-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 34px rgba(33, 98, 226, 0.28);
}

.services-toggle-btn:active {
  transform: translateY(0);
  box-shadow: 0 10px 24px rgba(33, 98, 226, 0.22);
}

.services-toggle-btn:focus-visible {
  outline: 2px solid #2e8bff;
  outline-offset: 4px;
}

.services-toggle-btn .btn-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.15);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.35s ease;
}

.services-toggle-btn.active {
  background: linear-gradient(135deg, #1a4bb8, #2162e2);
}

.services-toggle-btn.active .btn-icon {
  transform: rotate(180deg);
}

.services-collapse {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  transform: translateY(12px);
  transition: max-height 0.6s ease, opacity 0.35s ease, transform 0.35s ease;
}

.services-collapse.is-open {
  opacity: 1;
  transform: translateY(0);
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
  border: 1px solid #eceef3;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
  border-color: #2162e2;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px 0;
  color: #1e3a8a;
  font-size: 20px;
  background: #f3f6ff;
  border: 1px solid #e8edff;
}

.service-card:nth-child(4n + 1) .service-icon {
  background: white;
}

.service-card:nth-child(4n + 2) .service-icon {
  background: white;
}

.service-card:nth-child(4n + 3) .service-icon {
  background: white;
}

.service-card:nth-child(4n + 4) .service-icon {
  background: white;
}

.service-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
}

.service-desc {
  color: #6b7280;
  font-size: 0.92rem;
  font-family: "Poppins", sans-serif;
  line-height: 1.5;
}

/* Illustration area inside service card */
.service-illustration {
  margin-top: 14px;
  height: 140px;
  border-radius: 14px;
  border: 1px solid #eef1f6;
  background: radial-gradient(100% 100% at 50% 0%, #ffffff 0%, #f7f9fc 55%, #f1f4f9 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02), 0 8px 18px rgba(17, 24, 39, 0.04);
  position: relative;
  overflow: hidden;
}

.service-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card .service-title {
  order: 2;
}

.service-card .service-desc {
  order: 3;
}

.service-card .service-illustration {
  order: 4;
}

/* Illustration variants (no external images) */
.service-illustration.illustration--pill {
  background: radial-gradient(120% 100% at 50% 0%, #ffffff 0%, #f6f8fc 50%, #eef2f9 100%);
}

.service-illustration.illustration--pill::before {
  content: "";
  position: absolute;
  inset: 18% 28% 8% 28%;
  border-radius: 18px;
  background: linear-gradient(180deg, #4f46e5 0%, #1e40af 50%, #0ea5e9 100%);
  box-shadow: 0 20px 38px rgba(59, 130, 246, 0.35), inset 0 -10px 18px rgba(255, 255, 255, 0.2);
}

.service-illustration.illustration--pill::after {
  content: "";
  position: absolute;
  inset: auto 22% 18% 22%;
  height: 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  filter: blur(8px);
}

.service-illustration .pill-label {
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 700;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
}

.service-illustration.illustration--inbox {
  background: radial-gradient(120% 100% at 50% 0%, #ffffff 0%, #f7f9fc 55%, #f1f4f9 100%);
}

.illustration--inbox i {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.illustration--inbox i:nth-child(1) {
  left: 18%;
  top: 26%;
  background: #25D366;
}

.illustration--inbox i:nth-child(2) {
  left: 44%;
  top: 18%;
  background: #0A66C2;
}

.illustration--inbox i:nth-child(3) {
  left: 68%;
  top: 30%;
  background: #1DA1F2;
}

.illustration--inbox i:nth-child(4) {
  left: 56%;
  top: 58%;
  background: #229ED9;
}

.illustration--inbox::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 16%;
  height: 44%;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e8ecf3;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.service-illustration.illustration--dashboard {
  background: radial-gradient(120% 100% at 50% 0%, #ffffff 0%, #f7f9fc 55%, #f1f4f9 100%);
}

.illustration--dashboard::before {
  content: "";
  position: absolute;
  left: 12%;
  top: 20%;
  width: 52%;
  height: 54%;
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.illustration--dashboard::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 22%;
  width: 32%;
  height: 56%;
  border-radius: 50%;
  background: conic-gradient(#2563eb 0 40%, #9ec5ff 40% 65%, #e5e7eb 65% 100%);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 52%, #000 53%);
  mask: radial-gradient(circle at 50% 50%, transparent 52%, #000 53%);
}

/* Auto-generated illustrations for remaining cards (cycle styles) */
.services-grid .service-card:nth-child(4n+1) .service-illustration:not(.illustration--pill):not(.illustration--inbox):not(.illustration--dashboard) {
  background: radial-gradient(100% 100% at 50% 0%, #ffffff 0%, #f6f8fc 50%, #eef2f9 100%),
    repeating-linear-gradient(to right, rgba(37, 99, 235, .14) 0 6px, transparent 6px 14px);
}

.services-grid .service-card:nth-child(4n+1) .service-illustration::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 14%;
  height: 34%;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8ecf3;
  box-shadow: 0 8px 18px rgba(17, 24, 39, .06);
}

.services-grid .service-card:nth-child(4n+2) .service-illustration:not(.illustration--pill):not(.illustration--inbox):not(.illustration--dashboard) {
  background: radial-gradient(100% 100% at 50% 0%, #ffffff 0%, #f7f9fc 60%, #eef2f7 100%);
}

.services-grid .service-card:nth-child(4n+2) .service-illustration::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  height: 60%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(#3b82f6 0 38%, #93c5fd 38% 60%, #e5e7eb 60% 100%);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 52%, #000 53%);
  mask: radial-gradient(circle at 50% 50%, transparent 52%, #000 53%);
}

.services-grid .service-card:nth-child(4n+3) .service-illustration:not(.illustration--pill):not(.illustration--inbox):not(.illustration--dashboard) {
  background: radial-gradient(100% 100% at 50% 0%, #ffffff 0%, #f6f8fc 55%, #eef2f7 100%);
}

.services-grid .service-card:nth-child(4n+3) .service-illustration::before {
  content: "";
  position: absolute;
  left: 20%;
  top: 24%;
  width: 56%;
  height: 48%;
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, .06);
}

.services-grid .service-card:nth-child(4n+3) .service-illustration::after {
  content: "";
  position: absolute;
  left: 28%;
  top: 34%;
  width: 40%;
  height: 10px;
  background: linear-gradient(to right, #dbeafe, #60a5fa);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(96, 165, 250, .35);
}

.services-grid .service-card:nth-child(4n+4) .service-illustration:not(.illustration--pill):not(.illustration--inbox):not(.illustration--dashboard) {
  background: radial-gradient(100% 100% at 50% 0%, #ffffff 0%, #f6f8fc 50%, #eef2f7 100%);
}

.services-grid .service-card:nth-child(4n+4) .service-illustration::before {
  content: "";
  position: absolute;
  left: 18%;
  bottom: 18%;
  width: 64%;
  height: 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .06);
  filter: blur(6px);
}

.services-grid .service-card:nth-child(4n+4) .service-illustration::after {
  content: "";
  position: absolute;
  left: 26%;
  top: 24%;
  right: 26%;
  bottom: 32%;
  border-radius: 12px;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
  border: 1px solid #e8ecf3;
  box-shadow: 0 10px 20px rgba(17, 24, 39, .06);
}

@media (max-width: 900px) {
  .service-illustration {
    height: 120px;
  }
}

@media (max-width: 480px) {
  .service-illustration {
    height: 110px;
    margin-top: 10px;
  }
}

/* Pelayanan Masyarakat - Responsive */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }
}

/* News Section */
.news-section {
  padding: 30px 0 40px;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
  border-radius: 20px;
  padding-inline: 12px;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
}

.news-title {
  font-size: 2rem;
  color: #0f172a;
  font-weight: 700;
  font-family: "Poppins", sans-serif;
  letter-spacing: -0.01em;
}

.news-subtitle {
  color: #6b7280;
  font-size: 1rem;
  font-weight: 400;
  margin-top: 6px;
}

.news-link {
  color: #2563eb;
  text-decoration: none;
  font-weight: 500;
  background: transparent;
  border: none;
  border-radius: 0;
  padding: 4px 0;
  box-shadow: none;
  transition: color 0.2s ease;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
}

.news-link:hover {
  color: #1d4ed8;
}

@media (max-width: 1100px) {
  .header-container {
    padding: 0 16px;
  }

  .nav-menu {
    gap: 18px;
    flex-wrap: wrap;
    justify-content: center;
  }

  .nav-menu a {
    font-size: 0.92rem;
    padding: 10px 0;
  }

  .news-section {
    padding: 26px 0 34px;
    padding-inline: 16px;
  }

  .news-header {
    flex-wrap: wrap;
  }

  .news-title {
    font-size: 1.7rem;
  }
}

@media (max-width: 768px) {
  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  .news-section {
    padding: 15px 0 20px;
    padding-inline: 14px;
  }

  .news-title {
    font-size: 1.2rem;
    margin-bottom: 4px;
  }

  .news-subtitle {
    font-size: 0.85rem;
    line-height: 1.4;
  }

  .news-link {
    font-size: 0.75rem;
  }

  .logo-text {
    font-size: 0.9rem;
  }

  /* Hide scrollbar for news section but keep functionality */
  .news-grid,
  .news-container {
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
  }

  .news-grid::-webkit-scrollbar,
  .news-container::-webkit-scrollbar {
    display: none;
  }
}

@media (max-width: 600px) {
  .news-header {
    align-items: stretch;
  }

  .news-link {
    align-self: flex-start;
  }
}

/* Informasi Publik Section */
.info-publik-section {
  padding-top: 30px;
  padding-bottom: 0px;
  max-width: 1200px;
  margin: 0 auto;
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  background: #fff;
  border: 1px solid #eceff4;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.info-card:hover {
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
  border-color: #e3e8f3;
}

.info-card .info-card-body {
  min-height: 70px;
}

.info-card-body {
  padding: 18px 18px 0 18px;
}

.info-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
  font-family: "Poppins", sans-serif;
}

.info-desc {
  color: #6b7280;
  font-size: 0.94rem;
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
}

.info-media {
  margin: 0px;
  border-radius: 19px;
  height: 200px;
  overflow: hidden;
  border: 1px solid #ffffffff;
  background: #fff;
}

.info-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.info-media--map {
  height: 280px;
}

/* Button overlay di atas gambar dalam info-media */
.info-media--with-btn {
  position: relative;
}

.info-media-btn {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(7, 7, 7, 0.26);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.info-media-btn:hover {
  background: rgba(0, 0, 0, 0.35);
  border-color: #fff;
}

.info-media--grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  padding: 1rem;
  height: auto;
}

.info-banner-item {
  background: #fff;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.4);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.info-banner-item img {
  width: 100%;
  height: 140px;
  object-fit: cover;
}

.info-banner-item figcaption {
  padding: 0.75rem 0.9rem 0.8rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.info-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.info-badge--active {
  color: #047857;
  background: rgba(16, 185, 129, 0.15);
}

.info-badge--draft {
  color: #c2410c;
  background: rgba(249, 115, 22, 0.2);
}

.info-panel-empty {
  margin: 0;
  padding: 1rem;
  border-radius: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.5);
  background: #fff5f5;
  color: #b91c1c;
}

/* Asymmetric row heights (2 cards per row: one tall, one short) */
.info-card--tall .info-media {
  min-height: 220px;
  height: auto;
  flex: 1 1 auto;
}

.info-card--short .info-media {
  height: 319px;
}

.info-card--full {
  grid-column: 1 / -1;
}

.info-card--tall.info-card .info-media.info-media--map {
  height: 260px;
}

/* Jam kerja embedded in info card */
.jam-kerja--inline {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.jam-kerja--inline .jam-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jam-kerja--inline .jam-item {
  background: #fbfbfd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.15;
}

.jam-kerja--inline .jam-item .day {
  font-weight: 600;
  color: #111827;
}

.jam-kerja--inline .jam-item .time {
  font-weight: 600;
  color: #374151;
}

.jam-kerja--inline .jam-note {
  margin-top: 6px;
  font-size: 10px;
  color: #6b7280;
}

/* highlight current day inside inline card */
.jam-kerja--inline .jam-item.is-today {
  background: #eef4ff;
  border: 1px solid #dbe6ff;
}

.jam-kerja--inline .jam-item.is-today .time {
  color: #1d4ed8;
}

.jam-kerja--inline .jam-item.is-off.is-today {
  background: #fff3f3;
  border-color: #ffd6d6;
}

/* Hide old jam-kerja beside gallery */
.galeri-jam-grid .jam-kerja {
  display: none;
}

@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-media {
    height: 220px;
  }

  .info-card--tall .info-media,
  .info-card--short .info-media,
  .info-media--map {
    height: 240px;
  }
}

/* Mobile polish for Informasi Publik */
@media (max-width: 600px) {
  .info-publik-section {
    padding: 20px 0;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-card {
    margin: 0 12px;
    border-radius: 12px;
  }

  .info-card-body {
    padding: 12px 12px 0 12px;
  }

  .info-title {
    font-size: 0.95rem;
  }

  .info-desc {
    font-size: 0.82rem;
  }

  .info-media {
    height: 200px;
    margin: 10px 12px 12px;
    border-radius: 12px;
  }

  .info-media--map {
    height: 240px;
  }

  .info-media-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    left: 12px;
    bottom: 12px;
    border-radius: 12px;
  }

  /* Banner card: fill the card, remove inner space */
  .info-card--full .info-media {
    height: 240px;
    margin: 0;
    border-radius: 12px;
    border: 0;
  }

  .info-card--full .ip-slider {
    height: 100%;
    border-radius: 10px;
  }
}

/* Info Publik - slider card simple */
.ip-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.ip-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .6s ease;
  position: relative;
  z-index: 1;
}

.ip-item {
  min-width: 100%;
  height: 100%;
}

.ip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ip-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 20;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.ip-arrow i {
  pointer-events: none;
}

.ip-arrow i {
  color: #ffffff;
  text-shadow: 0 0 4px rgba(0, 0, 0, .6), 0 0 8px rgba(0, 0, 0, .35);
}

.ip-arrow.prev {
  left: 8px;
}

.ip-arrow.next {
  right: 8px;
}

@media (max-width: 600px) {
  .ip-slider {
    height: 180px;
  }
}

/* Tinggikan banner pada card full-width */
.info-card--full .info-media {
  height: 360px;
}

@media (max-width: 900px) {
  .info-card--full .info-media {
    height: 280px;
  }
}

.news-container {
  overflow: visible;
  padding-bottom: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
  row-gap: 20px;
  min-width: 0;
  padding-bottom: 0;
}

.news-card {
  position: relative;
  background: #ffffff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  overflow: hidden;
  padding: 0;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.news-card:hover {
  border-color: #2160de;
  box-shadow: 0 16px 36px rgba(33, 96, 222, 0.2);
}

.news-card::after,
.news-card__glow,
.news-card__media-layer,
.news-hero,
.news-orbit {
  display: none;
}

.news-card__thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #eef2ff, #f8fafc);
  overflow: hidden;
  cursor: pointer;
}

.news-card__thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-card__thumb-placeholder {
  width: 100%;
  height: 100%;
  background: linear-gradient(120deg, #e0e7ff, #f5f5f5);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 32px;
}

.news-card__thumb-placeholder i {
  opacity: 0.85;
}

.news-card__info {
  padding: 16px 18px 20px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.news-card__meta-row--top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 2px;
}

.news-meta-value {
  font-size: 0.80rem;
  font-weight: 400;
  color: #4b5563;
}

.news-meta-value--muted {
  color: #6b7280;
}

.news-card__body {
  position: relative;
  z-index: 2;
  margin: 0;
  padding: 0;
}

.news-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(99, 102, 241, 0.12);
  color: #312e81;
  font-weight: 700;
  font-size: 0.85rem;
  border: 1px solid rgba(99, 102, 241, 0.25);
}

.news-card__title {
  font-weight: 600;
  margin: 2px 0 6px;
  color: black;
  font-family: "Poppins", sans-serif;
  font-size: 1.1rem;
  line-height: 1.6;
}

.news-card__desc {
  color: #4b5563;
  margin: 0 0 10px;
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
}

.news-card__link {
  margin-top: 6px;
  color: #2160DE;
  font-weight: 400;
  font-size: 0.9rem;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.news-card__link:hover {
  color: #1C56C9;
}

.news-card__meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.news-card__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1f2937;
  font-weight: 600;
  font-size: 0.92rem;
}

.news-card__meta i {
  color: #16a34a;
}

.news-card__cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-weight: 700;
  text-decoration: none;
  background: #fff;
  padding: 10px 14px;
  border-radius: 12px;
  border: 1px solid #d7deeb;
  box-shadow: 0 12px 24px rgba(15, 23, 42, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.news-card__cta:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.1);
  border-color: #cbd5e1;
  color: #0f172a;
}

/* News Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 22px;
}

.pagination-btn {
  background: #f5f7fb;
  border: 1px solid #e5e9f2;
  color: rgb(33, 98, 226);
  padding: 10px 14px;
  border-radius: 12px;
  cursor: pointer;
  transition: color 0.3s ease, all 0.2s ease;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  min-width: 42px;
  text-align: center;
  font-weight: 500;
  box-shadow: 0 8px 22px rgba(15, 23, 42, 0.08);
  text-decoration: none;
}

.pagination-btn:hover:not(:disabled) {
  background: #ecf2ff;
  border-color: rgb(33, 98, 226);
  color: rgb(33, 98, 226);
  transform: translateY(-1px);
}

.pagination-btn.active {
  background: rgb(33, 98, 226);
  color: #ffffff;
  border-color: rgb(33, 98, 226);
  box-shadow: 0 12px 28px #A8C5FF;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
  transform: none;
}

.pagination-btn--dots {
  cursor: default;
  box-shadow: none;
  background: transparent;
  border: none;
  color: #94a3b8;
  padding: 0 4px;
  min-width: 24px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  height: 42px;
  font-weight: 700;
  letter-spacing: 2px;
}

@media (max-width: 768px) {
  .news-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .news-card {
    padding: 18px;
  }

  .news-card__floating {
    flex-direction: column;
  }

  .news-orbit {
    height: 200px;
  }

  .news-orbit__badge {
    font-size: 0.9rem;
  }

  .news-orbit__badge--author {
    left: 12px;
    bottom: 16px;
  }

  .news-orbit__badge--date {
    right: 12px;
    top: 16px;
  }
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  padding: 60px 20px 20px;
  margin-top: 10px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 60px;
}

.footer-map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 12px;
}

.footer-address {
  margin-top: 12px;
  color: #bdc3c7;
  line-height: 1.6;
}

.footer-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: "Poppins", sans-serif;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.footer-section a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: #34495e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #2162e2;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #34495e;
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-left {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: white;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.footer-logo-icon {
  width: 30px;
  height: 30px;
  background: #2162e2;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

/* Bottom Banner */
.bottom-banner {
  color: white;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.bottom-banner h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: "Poppins", sans-serif;
}

.bottom-banner p {
  font-size: 1rem;
  opacity: 0.9;
  font-family: "Poppins", sans-serif;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    height: 70vh;
    margin-top: 0;
    padding-top: 0;
  }

  .hero-content {
    padding: calc(var(--header-height) + 6px) 20px 0;
    /* sejajarkan dengan padding section statistik & aman dari navbar */
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p {
    font-size: 0.9rem;
  }

  .stats-card {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px 20px;
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .news-grid {
    display: grid;
    grid-template-columns: repeat(1, minmax(0, 1fr));
    gap: 16px;
    row-gap: 20px;
    overflow: visible;
  }

  .news-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .search-bar {
    padding: 15px;
    top: 70px;
  }

  .search-bar-container {
    gap: 10px;
  }

  .search-bar-button {
    padding: 10px 15px;
    font-size: 12px;
  }

  .services-section,
  .news-section {
    padding: 60px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .hero-nav.prev {
    left: 10px;
  }

  .hero-nav.next {
    right: 10px;
  }

  .news-pagination {
    gap: 6px;
    justify-content: center;
  }

  .pagination-btn {
    padding: 6px 10px;
    font-size: 0.82rem;
    min-width: 34px;
  }

  /* Statistics Dashboard Tablet */
  .statistics-dashboard {
    padding: 50px 20px;
  }

  .dashboard-scroll {
    gap: 20px;
  }

  .stat-card {
    min-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .section-title,
  .news-title,
  .dashboard-title,
  .transparansi-header h2,
  .pegawai-header h2,
  .galeri-header h3 {
    font-size: 1.5rem;
  }

  /* Samakan style Transparansi dengan Kabar Desa Terkini (mobile) */
  .transparansi-header h2 {
    color: #000000;
  }

  .transparansi-desc {
    font-size: 0.95rem;
    color: #7f8c8d;
  }

  .transparansi-link {
    font-size: 0.95rem;
  }

  .stats-card {
    margin: 0 10px;
  }

  .info-banner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin: 20px 10px;
    padding: 10px;
  }

  .info-tag {
    margin-bottom: 8px;
    margin-left: 0;
    align-self: flex-start;
    text-align: left;
    border-radius: 20px;
    font-size: 0.9rem;
    padding: 7px 18px;
  }

  .running-text {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  .bottom-slide {
    height: 180px;
  }

  .search-bar {
    padding: 10px;
    top: 70px;
  }

  .search-bar-container {
    gap: 8px;
  }

  .search-bar-button {
    padding: 8px 12px;
    font-size: 11px;
  }

  .announcement-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .announcement-nav {
    flex-direction: column;
    gap: 8px;
  }

  .announcement-tab {
    padding: 10px 15px;
    font-size: 13px;
  }

  .info-graphic-slider {
    height: 300px;
  }

  .info-graphic-nav {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  /* Statistik Desa: scroll horizontal, 1 baris */
  .stats-card {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    padding: 16px 8px;
    min-width: max-content;
    scrollbar-width: thin;
    scrollbar-color: #2162e2 #f0f0f0;
  }

  .stat-item {
    min-width: 160px;
    flex: 0 0 auto;
    padding: 7px;
    font-size: 0.75rem;
    scroll-snap-align: start;
  }

  .stats-card::-webkit-scrollbar {
    height: 8px;
  }

  .stats-card::-webkit-scrollbar-thumb {
    background: #2162e2;
    border-radius: 4px;
  }

  /* Statistik Penduduk (gambar di atas): 2 baris grid, kecil */
  .stats-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 20px;
    min-width: 0;
    overflow-x: unset;
    box-sizing: border-box;
  }

  .stat-item {
    gap: 8px;
    padding: 8px 4px;
    font-size: 0.75rem;
  }

  .stat-icon {
    font-size: 22px;
  }

  .stat-number {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* Pelayanan Masyarakat (mobile): 1 kolom, padding nyaman */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    padding: 14px;
    font-size: 0.9rem;
    border-radius: 14px;
  }

  .service-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .service-desc {
    font-size: 0.8rem;
  }

  .service-icon {
    width: 34px;
    height: 34px;
    font-size: 14px;
    margin-bottom: 8px;
  }
}


/* Transparansi Anggaran Desa - Layout & Animasi */
.transparansi-section {
  padding: 0px;
  max-width: 1200px;
  margin: 0 auto;
}

.transparansi-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  gap: 12px;
  flex-wrap: wrap;
}

.transparansi-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #222;
  letter-spacing: -0.8px;
}

.transparansi-desc {
  margin-top: 6px;
  color: #555;
  font-size: 0.95rem;
}

.transparansi-link {
  color: #2162e2;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.25s ease;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  padding: 10px 14px;
  background: none;
  border-radius: 10px;
}

.transparansi-link:hover {
  color: #1a4bb8;
  background: none;
}

.transparansi-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.transparansi-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  align-items: stretch;
}

.transparansi-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e5e7eb;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 240px;
  position: relative;
  animation: fadeInUp 0.6s;
  box-shadow: 0 8px 26px rgba(17, 24, 39, 0.05);
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #000000ff;
  margin-bottom: 10px;
}

.card-header i {
  font-size: 28px;
  color: #000000ff;
}

.transparansi-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.transparansi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(159, 159, 159, 0.12);
  border-color: #0b63f6;
}

.card-header i {
  background: #ffffffff;
  padding: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #ffffffff;
}

.card-title {
  letter-spacing: -.2px;
}

.card-value.highlight {
  color: #0b63f6;
}

.card-value {
  transition: color .2s ease;
}

.transparansi-card:hover .card-value.highlight {
  color: #0849ba;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #222;
}

.card-content-2col,
.card-content-3col {
  display: grid;
  gap: 16px;
  width: 100%;
  height: 100%;
  align-items: start;
}

.card-content-2col {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.card-content-3col {
  grid-template-columns: repeat(3, 1fr);
}

@media (max-width: 900px) {
  .card-content-3col {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .card-content-3col {
    grid-template-columns: 1fr;
  }
}

.card-content-2col .card-col,
.card-content-3col .card-col {
  padding: 10px 4px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.card-content-single {
  padding: 0 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.card-divider {
  display: none;
}

.pendapatan-card .card-content-3col {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

@media (max-width: 960px) {
  .transparansi-row:first-child {
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  }
}

.card-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}

.card-label {
  font-size: 0.95rem;
  color: #666;
  font-weight: 600;
  margin-bottom: 2px;
}

.card-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 4px;
}

.card-value.highlight {
  color: #2162e2;
  font-weight: 600;
}

.card-bar {
  background: #e3f2fd;
  border-radius: 6px;
  height: 8px;
  margin: 10px 0 2px 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.card-bar span {
  display: block;
  height: 100%;
  background: #2162e2;
  border-radius: 6px;
  position: absolute;
  left: 0;
  top: 0;
  transition: width 1.2s cubic-bezier(.77, 0, .18, 1);
}

.card-percent {
  font-size: 0.95rem;
  color: #666;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: right;
}

/* Force layout: setiap blok satu baris penuh (Pelaksanaan, Pendapatan, Pembelanjaan) */
.transparansi-grid {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.transparansi-grid>.transparansi-row {
  display: grid;
  gap: 18px;
  align-items: stretch;
  grid-template-columns: 1fr;
}

@media (max-width: 720px) {
  .transparansi-grid>.transparansi-row {
    grid-template-columns: 1fr;
  }
}

/* Responsive */
@media (max-width: 900px) {
  .transparansi-row {
    flex-direction: column;
    gap: 18px;
  }

  .transparansi-card {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .transparansi-section {
    padding: 14px 12px;
    /* beri sedikit jarak kiri-kanan */
  }

  .transparansi-head h1 {
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0;
  }

  .transparansi-header {
    flex-direction: column;
    align-items: center;
    /* judul dan link di tengah */
    gap: 4px;
    text-align: center;
  }

  .transparansi-header h2 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0;
  }

  .transparansi-desc {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
  }

  .transparansi-link {
    align-self: center;
    /* pusatkan link */
  }

  .transparansi-grid {
    gap: 10px;
  }

  .transparansi-row {
    flex-direction: column;
    gap: 10px;
  }

  /* Layout: pelaksanaan, pendapatan, pembelanjaan satu per baris */
  .transparansi-row:first-child {
    flex-direction: column;
    gap: 10px;
  }

  .transparansi-row:first-child .pelaksanaan-card {
    max-width: 100%;
    flex: 1 1 100%;
    margin-bottom: 0;
  }

  .transparansi-row:first-child .pendapatan-card {
    max-width: 100%;
    flex: 1 1 100%;
    margin-bottom: 0;
  }

  .transparansi-row:last-child .pembelanjaan-card {
    max-width: 100%;
    flex: 1 1 100%;
    margin-bottom: 0;
  }

  .transparansi-card {
    padding: 12px 10px;
    /* sedikit padding kiri-kanan biar rapi */
    min-height: 0;
    border-radius: 10px;
    gap: 8px;
  }

  .card-header {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .card-header i {
    font-size: 18px;
  }

  .card-title {
    font-size: 0.9rem;
  }

  .card-content-2col,
  .card-content-3col {
    flex-direction: column !important;
    gap: 10px !important;
    width: 100%;
  }

  .card-col {
    padding: 0 4px !important;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
  }

  .card-col:last-child {
    border-bottom: none;
  }

  .card-divider {
    display: none !important;
  }

  .card-subtitle {
    font-size: 0.75rem;
    margin-bottom: 3px;
  }

  .card-label {
    font-size: 0.7rem;
    margin-bottom: 1px;
  }

  .card-value {
    font-size: 0.8rem;
    margin-bottom: 2px;
  }

  .card-percent {
    font-size: 0.7rem;
    margin-bottom: 4px;
  }
}

/* Pegawai Section */
.pegawai-section {
  background: #2162e2;
  padding: 32px 0 24px 0;
  margin-top: 40px;
}

.pegawai-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  margin-bottom: 18px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  gap: 12px;
}

.pegawai-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.pegawai-link {
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  background: transparent;
  /* hapus shape */
  padding: 0;
  /* hapus padding */
  border-radius: 0;
  /* hapus rounded */
  margin-top: 2px;
}

.pegawai-link:hover {
  color: #e6ecff;
  /* hanya ubah warna, tanpa shape */
}

.pegawai-slider-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Deskripsi Pegawai */
.pegawai-desc {
  max-width: 1200px;
  margin: 6px auto 14px auto;
  color: #ffffff;
  opacity: 0.9;
  font-size: 0.95rem;
  text-align: left;
}

.pegawai-section--page {
  padding: 32px 0 32px 0;
  margin-top: 26px;
}

.pegawai-section--page .pegawai-header,
.pegawai-section--page .pegawai-slider-wrapper,
.pegawai-section--page .pegawai-desc {
  max-width: none;
  width: 100%;
  padding: 0 18px;
  margin-left: auto;
  margin-right: auto;
}

.pegawai-section--page .pegawai-header {
  align-items: flex-start;
}

.pegawai-section--page .pegawai-slider-wrapper {
  padding-bottom: 8px;
}

.pegawai-section--page .pegawai-desc {
  margin: 8px auto 12px auto;
}

.pegawai-section--page .pegawai-empty {
  max-width: none;
  width: calc(100% - 36px);
  margin-left: auto;
  margin-right: auto;
}

.pegawai-empty {
  max-width: 1200px;
  margin: 12px auto 0 auto;
  color: #fff;
  text-align: center;
  padding: 14px 16px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.12);
}

/* Runner marquee: auto scroll loop */
.pegawai-runner {
  overflow-x: hidden;
  overflow-y: hidden;
  flex: 1;
  margin: 0 12px;
  min-width: 0;
  cursor: default;
  /* Remove grab cursor since we disable manual scroll */
  padding-bottom: 14px;

  /* Hide scrollbar */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.pegawai-runner:active {
  cursor: default;
}

/* WebKit */
.pegawai-runner::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.pegawai-runner::-webkit-scrollbar-track {
  display: none;
}

.pegawai-runner::-webkit-scrollbar-thumb {
  display: none;
}

.pegawai-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: pegawaiScroll 40s linear infinite;
}

.pegawai-track:hover {
  animation-play-state: paused;
}

.pegawai-track.paused {
  animation-play-state: paused;
}

@keyframes pegawaiScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Card pertama sticky di kiri - ukuran lebih besar */
.pegawai-card-sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  background: linear-gradient(135deg, #e3f2fd 70%, #f8faff 100%);
  box-shadow: 0 8px 32px rgba(33, 98, 226, 0.12);
  border-radius: 22px;
  min-width: 220px;
  max-width: 240px;
  margin-right: 20px;
  flex-shrink: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Card lainnya scroll horizontal */
.pegawai-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 0 24px 0;
  scrollbar-width: thin;
  scrollbar-color: #f0f0f0 #2162e2;
  flex: 1;
  margin: 0 12px;
  min-width: 0;
  cursor: grab;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.pegawai-slider:active {
  cursor: grabbing;
}

.pegawai-slider::-webkit-scrollbar {
  height: 8px;
}

.pegawai-slider::-webkit-scrollbar-track {
  background: #8c0808ff;
  border-radius: 4px;
}

.pegawai-slider::-webkit-scrollbar-thumb {
  background: #2162e2;
  border-radius: 4px;
}

.pegawai-slider::-webkit-scrollbar-thumb:hover {
  background: #1a4bb8;
}

/* Card style tetap, tanpa animasi zoom */
.pegawai-card {
  background: #000;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  border: none;
  min-width: 220px;
  max-width: 240px;
  width: 100%;
  position: relative;
  display: block;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  scroll-snap-align: start;
  transform-origin: center center;
  will-change: transform;
  aspect-ratio: 2 / 3;
}

.pegawai-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 22px;
  transition: transform 0.4s ease, opacity 0.2s ease;
}

.pegawai-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35) 78%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

/* Ensure consistent spacing for name/role */
.pegawai-info {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #fff;
  z-index: 1;
}

.pegawai-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

/* Hover: zoom in (tidak naik ke atas) */
.pegawai-card:hover {
  transform: scale(1.04);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.22);
}

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

/* Responsive */
@media (max-width: 900px) {
  .pegawai-slider {
    gap: 10px;
    padding-bottom: 10px;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: #f0f0f0 #2162e2;
  }
}

/* Additional responsive tuning for new card style */
@media (max-width: 900px) {
  .pegawai-card img {
    height: 200px;
  }
}

@media (max-width: 600px) {
  .pegawai-slider {
    gap: 8px;
    padding-bottom: 8px;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: #f0f0f0 #2162e2;
  }
}

@media (max-width: 600px) {
  .pegawai-card {
    min-width: 180px;
    max-width: 190px;
  }

  .pegawai-card img {
    height: 100%;
  }

  .pegawai-card .pegawai-name {
    font-size: 0.9rem;
  }

  .pegawai-card .pegawai-role {
    font-size: 0.68rem;
    padding: 6px 10px;
  }
}

/* Pegawai Card: Nama lebih besar, keterangan lebih kecil, ukuran card sama */
.pegawai-card .pegawai-name {
  font-size: 0.9rem;
  font-weight: 700;
  color: #ffffff;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  font-family: "Poppins", sans-serif;
}

.pegawai-card .pegawai-role {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Poppins", sans-serif;
  padding: 10px 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.pegawai-card .pegawai-status {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.92);
  font-family: "Poppins", sans-serif;
  padding: 6px 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
  position: relative;
  top: auto;
  right: auto;
  transform: none;
  z-index: 1;
  pointer-events: none;
}

.pegawai-card .pegawai-status.status-aktif {
  background: rgba(34, 197, 94, 0.22);
  border-color: rgba(34, 197, 94, 0.45);
  color: #16a34a;
}

.pegawai-card .pegawai-status.status-tidak-aktif {
  background: rgba(239, 68, 68, 0.22);
  border-color: rgba(239, 68, 68, 0.45);
  color: #dc2626;
}

.pegawai-card .pegawai-status.status-cuti {
  background: rgba(249, 115, 22, 0.24);
  border-color: rgba(249, 115, 22, 0.48);
  color: #ea580c;
}

.pegawai-card .pegawai-status.status-pensiun {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.65);
  color: #ffffff;
}

/* Pegawai Modal - Modern Light Theme */
.pegawai-modal {
  position: fixed;
  inset: 0;
  display: flex;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  align-items: center;
  justify-content: center;
  z-index: 2000;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.pegawai-modal.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.pegawai-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.4);
  backdrop-filter: blur(8px);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.pegawai-modal.open .pegawai-modal__backdrop {
  opacity: 1;
}

.pegawai-modal__dialog {
  position: relative;
  background: #ffffff;
  border-radius: 28px;
  padding: 0;
  width: min(520px, 92vw);
  box-shadow: 0 40px 100px rgba(15, 23, 42, 0.15);
  transform: translateY(30px) scale(0.95);
  opacity: 0;
  transition: all 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.8);
}

.pegawai-modal.open .pegawai-modal__dialog {
  transform: translateY(0) scale(1);
  opacity: 1;
}

.pegawai-modal__img-container {
  width: 100%;
  background: #f8fafc;
  position: relative;
  height: 480px;
}

.pegawai-modal__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pegawai-modal__body {
  padding: 24px 28px 32px;
  background: #fff;
  border-top: 1px solid #f1f5f9;
}

.pegawai-modal__name {
  font-size: 1.75rem;
  font-weight: 800;
  margin: 0 0 16px;
  color: #0f172a;
  line-height: 1.2;
  font-family: 'Poppins', sans-serif;
}

.pegawai-modal__meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.pegawai-modal__info-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.pegawai-modal__label {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: #94a3b8;
}

.pegawai-modal__role {
  font-size: 1rem;
  color: #242424;
  font-weight: 600;
}

.pegawai-modal__status {
  font-size: 0.85rem;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 99px;
  width: fit-content;
  background: #f1f5f9;
  color: #64748b;
  text-transform: uppercase;
}

.pegawai-modal__status.status-aktif {
  background: #dcfce7;
  color: #166534;
}

.pegawai-modal__status.status-tidak-aktif,
.pegawai-modal__status.status-nonaktif {
  background: #fef2f2;
  color: #991b1b;
}

.pegawai-modal__close {
  position: absolute;
  top: 20px;
  right: 20px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  color: #0f172a;
  border: 1px solid rgba(255, 255, 255, 0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
  transition: all 0.2s ease;
  font-size: 1.2rem;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pegawai-modal__close:hover {
  background: #fff;
  transform: rotate(90deg) scale(1.1);
  color: #ef4444;
}

@media (max-width: 640px) {
  .pegawai-modal__img-container {
    height: 360px;
  }

  .pegawai-modal__name {
    font-size: 1.5rem;
  }

  .pegawai-modal__body {
    padding: 20px;
  }

  .pegawai-modal__meta {
    grid-template-columns: 1fr;
    gap: 12px;
  }
}

/* Responsive */
@media (max-width: 600px) {
  .pegawai-card .pegawai-name {
    font-size: 0.95rem;
  }

  .pegawai-card .pegawai-role {
    font-size: 0.6rem;
    margin-bottom: 6px;
  }

  .pegawai-card .pegawai-status {
    font-size: 0.58rem;
    padding: 6px 10px;
    top: 0;
    right: 0;
  }
}

/* Mobile layout: Kepala Desa di atas, pegawai lain di bawah; kecilkan font */
@media (max-width: 768px) {
  .pegawai-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    margin-bottom: 12px;
  }

  .pegawai-desc {
    text-align: center;
    padding: 0 10px;
    font-size: 0.7px;
    font-weight: 400;
  }

  .pegawai-slider-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .pegawai-card-sticky {
    position: relative;
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    margin-right: 0;
  }

  .pegawai-runner {
    width: 100%;
    margin: 0;
    padding-bottom: 10px;
  }

  .pegawai-track {
    gap: 10px;
  }

  .pegawai-card {
    min-width: 170px;
    max-width: 180px;
  }

  /* gunakan rasio 2:3, gambar isi penuh */
  .pegawai-card img {
    height: 100%;
  }

  .pegawai-card .pegawai-name {
    font-size: 0.85rem;
  }

  .pegawai-card .pegawai-role {
    font-size: 0.58rem;
  }
}

/* Galeri Jam Section */
.galeri-jam-section {
  background: transparent;
  /* samakan tampilan seperti section berita */
  padding: 20px 0;
  /* samakan ukuran/padding dengan .news-section */
}

.galeri-jam-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.galeri-video {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  border: 1.5px solid #ececec;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Infografis slider card on the right */
.infografis-card {
  background: #fff;
  border-radius: 24px;
  padding: 24px 20px;
  border: 1.5px solid #ececec;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.infografis-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 6px 0;
  font-family: "Poppins", sans-serif;
}

.infografis-slider {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  flex: 1 1 auto;
  /* isi tinggi card agar sejajar galeri */
  min-height: 0;
  cursor: zoom-in;
}

.infografis-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s ease;
}

.infografis-slide.active {
  opacity: 1;
}

.infografis-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.infografis-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.infografis-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: background .2s ease;
}

.infografis-dot.active {
  background: #2162e2;
}

@media (max-width: 900px) {
  .infografis-card {
    padding: 18px 12px;
    border-radius: 16px;
  }

  /* Ensure infografis slider has height on mobile */
  .infografis-slider {
    min-height: 240px;
    height: 240px;
  }

  /* Add horizontal margins for cards on tablet/mobile widths */
  .galeri-video,
  .infografis-card,
  .jam-kerja {
    margin-left: 12px;
    margin-right: 12px;
  }

  /* Also give each video card breathing space on mobile */
  .galeri-card {
    margin-left: 12px;
    margin-right: 12px;
  }

  /* General card sections: add side gutters for tidy layout */
  .stat-card,
  .info-card,
  .transparansi-card,
  .announcement-item,
  .service-card {
    margin-left: 12px;
    margin-right: 12px;
  }
}

@media (max-width: 600px) {

  /* Slightly smaller on small phones */
  .infografis-slider {
    min-height: 200px;
    height: 200px;
  }

  /* Tighter margins on small phones */
  .galeri-video,
  .infografis-card,
  .jam-kerja {
    margin-left: 10px;
    margin-right: 10px;
  }

  .galeri-card {
    margin-left: 10px;
    margin-right: 10px;
  }

  .stat-card,
  .info-card,
  .transparansi-card,
  .announcement-item,
  .service-card {
    margin-left: 10px;
    margin-right: 10px;
  }
}

.galeri-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.galeri-header h3 {
  font-size: 1.25rem;
  /* seragam dengan Jam Kerja */
  font-weight: 600;
  color: #222;
  margin-bottom: 0;
}

.galeri-link {
  color: #2162e2;
  font-size: 1.2rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.galeri-link:hover {
  color: #1a4bb8;
}

.galeri-list {
  /* 1 baris 2 video */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.galeri-card {
  position: relative;
  background: #fff;
  border: 1px solid #eeeeee;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Ensure YouTube embeds are responsive on all breakpoints */
.galeri-card .video-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.galeri-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.galeri-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.10);
}

/* Minimal overlay: only play button, no text */
.galeri-overlay {
  position: absolute;
  inset: 0;
  display: none;
}

.galeri-overlay.minimal {
  display: none;
}

.overlay-play {
  display: none;
}

.galeri-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(33, 98, 226, 0.10);
}

.galeri-meta {
  display: none;
}

.meta-title,
.meta-row,
.meta-pill,
.meta-link {
  display: none;
}

.galeri-title {
  font-weight: 600;
  font-size: 1.15rem;
  color: #222;
  margin-bottom: 6px;
  font-family: "Poppins", sans-serif;
}

.galeri-desc {
  font-size: 0.95rem;
  color: #888;
  font-family: "Poppins", sans-serif;
  margin-bottom: 0;
}

/* Jam Kerja */
.jam-kerja {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
  border: 1px solid #ececec;
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
}

.jam-header {
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
  margin: 0;
  font-family: "Poppins", sans-serif;
}

/* New list layout */
.jam-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.jam-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  background: #fbfbfd;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.jam-item .day {
  font-weight: 600;
  color: #1f2937;
}

.jam-item .time {
  font-weight: 500;
  color: #4b5563;
  background: #eef2ff;
  border: 1px solid #e3e9ff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .9rem;
}

.jam-item:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.jam-item.is-today {
  border-color: #dbe6ff;
  background: #f6f9ff;
}

.jam-item.is-today .time {
  background: #eaf0ff;
  color: #1d4ed8;
}

.jam-item.is-off {
  border-color: #ffe4e6;
  background: #fff8f8;
}

.jam-item.is-off .time {
  background: #fff1f2;
  color: #e03131;
  border-color: #ffe2e5;
}

.jam-note {
  font-size: 0.9rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend.live {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .2);
}

/* Responsive */
@media (max-width: 900px) {
  .galeri-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .galeri-card {
    border-radius: 12px;
  }

  .galeri-card img {
    height: 120px;
    border-radius: 8px;
  }

  .galeri-video,
  .jam-kerja {
    padding: 18px 12px;
    border-radius: 14px;
  }

  .jam-header {
    font-size: 1.1rem;
  }

  .jam-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .galeri-jam-section {
    padding: 10px 0;
    max-width: 100vw;
  }

  .galeri-jam-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
    max-width: 100vw;
    margin: 0 auto;
  }

  .galeri-video,
  .jam-kerja {
    padding: 12px 12px;
    border-radius: 8px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .galeri-header h3 {
    font-size: 1rem;
  }

  .galeri-list {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    justify-items: center;
  }

  .galeri-list {
    grid-auto-columns: 88vw;
    gap: 10px;
    width: 100%;
    justify-items: center;
  }

  /* Center each video card with a little side gutter */
  .galeri-card {
    width: calc(100% - 24px);
    min-width: 0;
    max-width: 640px;
    padding: 0;
    margin: 0 12px 12px;
    box-sizing: border-box;
  }

  /* Youtube video responsive */
  .galeri-card .video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    display: block;
  }

  .galeri-card iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    border-radius: 12px;
  }

  .galeri-title {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .galeri-desc {
    font-size: 0.7rem;
  }

  /* Jam kerja card kiri kanan sama rata */
  .jam-kerja {
    width: 100%;
    margin: 0;
    border-radius: 8px;
    box-sizing: border-box;
    align-self: stretch;
  }

  .jam-header {
    font-size: 0.85rem;
    margin-bottom: 6px;
    text-align: left;
  }

  .jam-list {
    grid-template-columns: 1fr;
  }

  .jam-item {
    padding: 10px 12px;
  }
}

/* --- Galeri Video: overlay redesign & hover --- */
.galeri-list {
  gap: 18px;
}

.galeri-card {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.galeri-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(17, 24, 39, 0.10);
}

.galeri-card .video-wrapper {
  margin: 0;
  border-radius: 18px;
  position: relative;
}

.galeri-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 42%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.galeri-overlay .overlay-meta {
  margin-bottom: 10px;
}

.galeri-overlay .galeri-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 2px 0;
}

.galeri-overlay .galeri-desc {
  color: rgba(255, 255, 255, .88);
  font-size: 0.95rem;
  margin: 0;
}

.galeri-cta {
  align-self: flex-start;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
  backdrop-filter: blur(4px);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.galeri-cta .cta-arrow {
  margin-left: 6px;
  opacity: .9;
}

.galeri-cta:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* Jam Kerja: tidy dashboard look */
.jam-kerja {
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.jam-header {
  font-size: 1.35rem;
}

.jam-table {
  border-spacing: 0 10px;
}

.jam-table th {
  background: #f7f9ff;
  color: #1d4ed8;
  border: 1px solid #e6ecff;
}

.jam-table td {
  background: #fbfbfb;
}

.jam-table .libur td {
  background: #fff2f2;
  color: #e03131;
}

@media (max-width: 900px) {
  .galeri-list {
    gap: 16px;
  }

  .galeri-card {
    border-radius: 16px;
  }

  .galeri-card .video-wrapper {
    border-radius: 16px;
  }
}

@media (max-width: 600px) {
  .galeri-overlay .galeri-title {
    font-size: 0.98rem;
  }

  .galeri-overlay .galeri-desc {
    font-size: 0.8rem;
  }

  .galeri-cta {
    padding: 8px 12px;
    font-size: 0.86rem;
    border-radius: 10px;
  }
}

/* Extra responsive polish for all sizes */
.galeri-jam-grid {
  max-width: 1200px;
  width: 100%;
}

@media (min-width: 1400px) {
  .galeri-list {
    grid-auto-columns: minmax(300px, 320px);
    gap: 18px;
  }

  .overlay-play {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 1200px) and (min-width: 901px) {
  .galeri-list {
    grid-auto-columns: minmax(260px, 300px);
  }

  .galeri-header h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .galeri-list {
    grid-auto-columns: 92vw;
  }

  .overlay-play {
    width: 36px;
    height: 36px;
  }
}

/* Announcement mobile tweaks */
@media (max-width: 600px) {
  .announcement-content {
    padding: 16px;
  }

  .announcement-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .announcement-media {
    width: 100%;
    height: 140px;
  }

  .announcement-date {
    flex-direction: row;
    align-items: center;
    border-right: 0;
    padding-right: 0;
    gap: 8px;
  }

  .announcement-body {
    padding-left: 0;
  }
}

/* Jam Kerja: compact spacing and smaller typography */
.jam-kerja {
  padding: 16px 16px;
  gap: 8px;
}

.jam-header {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.jam-list {
  gap: 6px;
}

.jam-item {
  padding: 8px 10px;
}

.jam-item .time {
  padding: 4px 8px;
  font-size: 0.85rem;
}

.jam-note {
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .jam-kerja {
    padding: 14px;
  }

  .jam-header {
    font-size: 1rem;
  }

  .jam-item {
    padding: 7px 9px;
  }

  .jam-item .time {
    font-size: 0.82rem;
  }

  .jam-note {
    font-size: 0.82rem;
  }
}

/* End of file */
/* Override: show only the image in service illustration (no overlay) */
.services-grid .service-illustration {
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.services-grid .service-illustration::before,
.services-grid .service-illustration::after,
.services-grid .illustration--inbox::before,
.services-grid .illustration--dashboard::before,
.services-grid .illustration--dashboard::after {
  content: none !important;
  display: none !important;
}

.services-grid .illustration--inbox i {
  display: none !important;
}

/* News: compact layout on small screens */
@media (max-width: 600px) {
  .news-grid {
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  }

  .news-card {
    min-width: 0;
    max-width: 100%;
    border-radius: 10px;
  }

  .news-image {
    height: 140px;
    font-size: 1.6rem;
  }

  .news-content {
    padding: 14px;
  }

  .news-date {
    font-size: 0.7rem;
  }

  .news-card-title {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .news-card-desc {
    font-size: 0.8rem;
    margin-bottom: 12px;
    line-height: 1.45;
  }

  .news-link {
    font-size: 0.9rem;
  }

  .news-pagination {
    margin-top: 16px;
  }

  .pagination-btn {
    min-width: 32px;
    padding: 6px 9px;
  }
}

@media (max-width: 480px) {
  .news-card {
    min-width: 0;
    max-width: 100%;
  }

  .news-image {
    height: 130px;
    font-size: 1.4rem;
  }

  .news-card-title {
    font-size: 0.9rem;
  }

  .news-card-desc {
    font-size: 0.78rem;
  }

  .news-title {
    font-size: 1.35rem;
  }

  .news-subtitle {
    font-size: 0.9rem;
    padding: 0 10px;
  }
}

/* Modal (Infografis viewer) */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal.open {
  display: flex;
}

.modal-content {
  position: relative;
  background: transparent;
  border-radius: 12px;
  max-width: 92vw;
  max-height: 92vh;
}

.modal-content img {
  display: block;
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .9);
  color: #111827;
  font-size: 24px;
  line-height: 36px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.modal-close:hover {
  background: #fff;
}


/* Keyframe Animations for Floating Widgets */
@keyframes pulse {

  0%,
  100% {
    box-shadow: 0 10px 24px rgba(33, 98, 226, 0.35);
  }

  50% {
    box-shadow: 0 10px 24px rgba(33, 98, 226, 0.35), 0 0 0 8px rgba(33, 98, 226, 0.1);
  }
}

@keyframes pulsePrimary {

  0%,
  100% {
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  }

  50% {
    box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35), 0 0 0 8px rgba(37, 211, 102, 0.15);
  }
}

@keyframes pulseSecondary {

  0%,
  100% {
    box-shadow: 0 10px 24px rgba(198, 40, 40, 0.35);
  }

  50% {
    box-shadow: 0 10px 24px rgba(198, 40, 40, 0.35), 0 0 0 8px rgba(198, 40, 40, 0.15);
  }
}

@keyframes pulseTertiary {

  0%,
  100% {
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.35);
  }

  50% {
    box-shadow: 0 10px 24px rgba(2, 132, 199, 0.35), 0 0 0 8px rgba(2, 132, 199, 0.15);
  }
}

@keyframes slideInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes bounce {

  0%,
  100% {
    transform: translateY(0) scale(1);
  }

  50% {
    transform: translateY(-4px) scale(1.1);
  }
}

@keyframes iconRotate {
  0% {
    transform: rotate(0deg) scale(1);
  }

  50% {
    transform: rotate(180deg) scale(1.15);
  }

  100% {
    transform: rotate(360deg) scale(1);
  }
}

@keyframes iconPulse {

  0%,
  100% {
    transform: scale(1);
  }

  50% {
    transform: scale(1.2);
  }
}

/* Back to top */

.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #2162e2;
  color: #fff;
  border: 1px solid #1a4bb8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(33, 98, 226, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
  z-index: 1100;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #1a4bb8;
  box-shadow: 0 12px 28px rgba(26, 75, 184, 0.38);
}

@media (max-width: 600px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}

/* WhatsApp floating button (matches back-to-top style, green) */
.whatsapp-float {
  position: fixed;
  right: 76px;
  /* 24 + 44 + 8 gap from back-to-top */
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  border: 1px solid #1ebe57;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
  z-index: 1100;
}

.whatsapp-float.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.whatsapp-float:hover {
  background: #1ebe57;
  box-shadow: 0 12px 28px rgba(30, 190, 87, 0.38);
  transform: scale(1.08);
}

.whatsapp-float:hover i {
  animation: bounce 0.5s ease;
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: 62px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}

/* WhatsApp info panel */
.whatsapp-panel {
  position: fixed;
  right: 130px;
  /* opens to the left of the WA icon */
  bottom: 24px;
  width: 280px;
  max-width: calc(100vw - 40px);
  background: #fff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1101;
}

.whatsapp-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 600px) {
  .whatsapp-panel {
    right: 14px;
    bottom: 64px;
    width: calc(100vw - 28px);
  }
}

.whatsapp-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  font-weight: 600;
}

.whatsapp-panel-header i {
  color: #25D366;
}

.whatsapp-panel-close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #6b7280;
  font-size: 18px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
}

.whatsapp-panel-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.whatsapp-panel-body {
  padding: 12px;
}

.wa-info-number {
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

.wa-info-text {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 12px;
}

.wa-chat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #1ebe57;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
}

.wa-chat-button:hover {
  background: #1ebe57;
}

/* Accessibility (Ramah Disabilitas) floating button - same style, placed left of WA */
.accessibility-float {
  position: fixed;
  right: 128px;
  /* 24 + (44+8)*2 */
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #C62828;
  /* dark red */
  color: #fff;
  border: 1px solid #a01f1f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(198, 40, 40, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
  z-index: 1100;
}

.accessibility-float.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.accessibility-float:hover {
  background: #a01f1f;
  box-shadow: 0 12px 28px rgba(160, 31, 31, 0.38);
}

@media (max-width: 600px) {
  .accessibility-float {
    right: 110px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}

/* Accessibility panel (same style as WA panel) */
.a11y-panel {
  position: fixed;
  right: 182px;
  /* opens to the left of the a11y icon */
  bottom: 24px;
  width: 300px;
  max-width: calc(100vw - 40px);
  background: #fff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1101;
}

.a11y-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 600px) {
  .a11y-panel {
    right: 14px;
    bottom: 64px;
    width: calc(100vw - 28px);
  }
}

.a11y-header i {
  color: #C62828;
}

.a11y-panel-body {
  padding: 12px;
}

.a11y-divider {
  height: 1px;
  background: #eef2f7;
  margin: 8px 0 6px;
}

.a11y-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.a11y-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px solid #eef2f7;
  background: #f9fafb;
  color: #111827;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.a11y-tile i {
  font-size: 18px;
  color: #111827;
}

.a11y-tile span {
  font-size: .92rem;
  font-weight: 600;
  color: #111827;
}

.a11y-tile:hover {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.a11y-tile[aria-pressed="true"] {
  border-color: #C62828;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.15) inset;
}

.a11y-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.a11y-label {
  font-weight: 600;
  color: #111827;
}

.a11y-actions {
  display: inline-flex;
  gap: 8px;
}

.a11y-btn {
  background: #C62828;
  color: #fff;
  border: 1px solid #a01f1f;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
}

.a11y-btn:hover {
  background: #a01f1f;
}

/* Simple switch */
.a11y-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.a11y-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.a11y-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e5e7eb;
  transition: .2s;
  border-radius: 999px;
}

.a11y-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: white;
  transition: .2s;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.a11y-switch input:checked+.a11y-slider {
  background: #C62828;
}

.a11y-switch input:checked+.a11y-slider:before {
  transform: translateX(20px);
}

/* High contrast mode */
body.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast a {
  color: #ff0 !important;
  text-decoration: underline;
}

body.high-contrast .header,
body.high-contrast .nav-menu,
body.high-contrast .dropdown-menu,
body.high-contrast .news-card,
body.high-contrast .card,
body.high-contrast .stats-card,
body.high-contrast .modal-content {
  background: #111 !important;
  color: #fff !important;
  border-color: #333 !important;
}

body.high-contrast .cta-button,
body.high-contrast .read-more,
body.high-contrast .wa-chat-button,
body.high-contrast .a11y-btn {
  filter: brightness(1.1) contrast(1.1);
}

/* Extra accessibility effects */
body.a11y-contrast-boost {
  filter: contrast(1.15) saturate(1.05);
}

body.a11y-highlight-links a {
  outline: 2px dashed #C62828;
  outline-offset: 2px;
  text-decoration: underline !important;
  background: rgba(198, 40, 40, 0.08);
}

body.a11y-big-text {
  font-size: 120% !important;
}

body.a11y-text-spacing * {
  letter-spacing: 0.06em !important;
  word-spacing: 0.12em !important;
}

body.a11y-reduced-motion *,
body.a11y-reduced-motion *::before,
body.a11y-reduced-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

body.a11y-hide-images img,
body.a11y-hide-images picture,
body.a11y-hide-images video,
body.a11y-hide-images figure {
  filter: grayscale(1) brightness(.9);
  opacity: .06 !important;
}

body.dyslexia-friendly {
  font-family: 'OpenDyslexic', 'Atkinson Hyperlegible', Arial, Verdana, sans-serif !important;
  letter-spacing: 0.03em;
  word-spacing: 0.12em;
}

body.a11y-big-cursor :focus {
  outline: 3px solid #C62828 !important;
  outline-offset: 3px;
}

body.a11y-tooltips [title] {
  border-bottom: 1px dotted #6b7280;
  position: relative;
}

body.a11y-tooltips [title]:hover::after,
body.a11y-tooltips [title]:focus::after {
  content: attr(title);
  position: absolute;
  left: 0;
  bottom: 100%;
  transform: translateY(-6px);
  background: #111;
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: .8rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  z-index: 9999;
}

body.a11y-line-height * {
  line-height: 1.8 !important;
}

body.a11y-left-align p,
body.a11y-left-align li {
  text-align: left !important;
}

body.a11y-align-center p,
body.a11y-align-center li {
  text-align: center !important;
}

body.a11y-align-right p,
body.a11y-align-right li {
  text-align: right !important;
}

body.a11y-desaturate {
  filter: saturate(.5);
}

body.a11y-saturation-low {
  filter: saturate(.6);
}

body.a11y-saturation-high {
  filter: saturate(1.5);
}

/* Theme modes: invert, dark contrast, light contrast */
body.a11y-invert {
  filter: invert(1) hue-rotate(180deg);
}

body.a11y-contrast-dark {
  background: #000 !important;
  color: #e6e6e6 !important;
}

body.a11y-contrast-dark a {
  color: #ffea00 !important;
}

body.a11y-contrast-dark .header,
body.a11y-contrast-dark .nav-menu,
body.a11y-contrast-dark .dropdown-menu,
body.a11y-contrast-dark .news-card,
body.a11y-contrast-dark .card,
body.a11y-contrast-dark .stats-card,
body.a11y-contrast-dark .modal-content,
body.a11y-contrast-dark .search-bar,
body.a11y-contrast-dark .hero-content,
body.a11y-contrast-dark footer {
  background: #0d0d0d !important;
  color: #eaeaea !important;
  border-color: #222 !important;
}

body.a11y-contrast-light {
  background: #fff !important;
  color: #111 !important;
}

body.a11y-contrast-light a {
  color: #0b63ce !important;
}

body.a11y-contrast-light .header,
body.a11y-contrast-light .nav-menu,
body.a11y-contrast-light .dropdown-menu,
body.a11y-contrast-light .news-card,
body.a11y-contrast-light .card,
body.a11y-contrast-light .stats-card,
body.a11y-contrast-light .modal-content,
body.a11y-contrast-light .search-bar,
body.a11y-contrast-light .hero-content,
body.a11y-contrast-light footer {
  background: #ffffff !important;
  color: #111 !important;
  border-color: #e5e7eb !important;
}

/* Better close button for A11y panel */
.a11y-panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #C62828;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  outline: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.a11y-panel-close i {
  font-size: 18px;
  line-height: 1;
}

.a11y-panel-close:hover {
  background: rgba(198, 40, 40, 0.08);
  color: #a01f1f;
}

.a11y-panel-close:focus {
  outline: 2px solid #C62828;
  outline-offset: 2px;
}

/* Big cursor (SVG data URI). Fallback to default/pointer if unsupported */
body.a11y-big-cursor,
body.a11y-big-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36'><circle cx='8' cy='8' r='8' fill='white' stroke='black' stroke-width='2'/></svg>") 2 2, auto !important;
}

body.a11y-big-cursor a,
body.a11y-big-cursor button,
body.a11y-big-cursor [role='button'],
body.a11y-big-cursor input,
body.a11y-big-cursor select,
body.a11y-big-cursor textarea,
body.a11y-big-cursor .clickable {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36'><circle cx='18' cy='18' r='12' fill='none' stroke='black' stroke-width='3'/><circle cx='18' cy='18' r='4' fill='black'/></svg>") 18 18, pointer !important;
}

/* Reset-all button */
.a11y-reset-all {
  width: 100%;
  margin-top: 8px;
  background: #C62828;
  color: #fff;
  border: 1px solid #a01f1f;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

.a11y-reset-all:hover {
  background: #a01f1f;
}

/* Video modal sizing */
.modal-content.video {
  background: transparent;
  max-width: 92vw;
}

.video-modal-wrapper {
  width: min(90vw, 1000px);
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-modal-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Click-capture overlay on gallery video */
.video-click-capture {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: transparent;
}

/* Fancy date layout (Month/Day/Year) - clean, black/gray, no shapes */
.announcement-date.fancy {
  align-items: flex-start;
  justify-content: center;
  padding-right: 16px;
  border-right: 1px solid #eef1f4;
  gap: 2px;
  text-align: left;
}

.announcement-date .date-day {
  font-size: 1.4rem;
  line-height: 1.1;
  font-weight: 600;
  color: #4b5563;
}

.announcement-date .date-month {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: .2px;
  color: #6b7280;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
}

.announcement-date .date-year {
  font-size: 0.85rem;
  color: #9ca3af;
  font-weight: 600;
}

.announcement-date .date-time {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 500;
}

/* Bottom-left Weather Card (animated gradient) */
.top-left-info {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 1200;
  width: min(90vw, 240px);
  padding: 10px 12px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #7c3aed 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  background-size: 200% 200%;
  animation: tliGradient 14s ease infinite;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-auto-rows: auto;
  column-gap: 10px;
  align-items: start;
}

.top-left-info::before,
.top-left-info::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .22;
  animation: tliFloat 10s ease-in-out infinite;
  pointer-events: none;
  /* don't block clicks on clock/weather */
}

.top-left-info::before {
  width: 120px;
  height: 120px;
  left: -30px;
  bottom: -30px;
  background: radial-gradient(closest-side, #fff, transparent 70%);
  animation-delay: .3s;
}

.top-left-info::after {
  width: 80px;
  height: 80px;
  right: -20px;
  top: -20px;
  background: radial-gradient(closest-side, #fff, transparent 70%);
  animation-direction: reverse;
}

.tli-clock {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .5px;
  line-height: 1;
  grid-column: 1;
  justify-self: start;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

.tli-clock:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .9);
  outline-offset: 2px;
  border-radius: 6px;
}

.tli-date {
  font-size: .74rem;
  opacity: .92;
  margin-top: 6px;
  grid-column: 1;
  justify-self: start;
  text-align: left;
}

.tli-weather {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin: 0;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.tli-weather-icon {
  font-size: 1rem;
  opacity: .92;
}

.tli-weather-text {
  font-weight: 600;
  font-size: .88rem;
}

/* Theme variants (auto via JS) */
.tli--sunny {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #f59e0b 100%);
}

.tli--cloudy {
  background: linear-gradient(135deg, #64748b 0%, #475569 50%, #242424 100%);
}

.tli--partly {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #f472b6 100%);
}

.tli--rain {
  background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 50%, #2563eb 100%);
}

.tli--night {
  background: linear-gradient(135deg, #1f2937 0%, #0f172a 50%, #111827 100%);
}

.tli--snow {
  background: linear-gradient(135deg, #a5f3fc 0%, #67e8f9 50%, #e0f2fe 100%);
  color: #0f172a;
}

/* Time-aware clock widget theme. */
.top-left-info {
  border-radius: 10px;
}

.tli-clock {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.tli-period-icon {
  font-size: .88rem;
  color: #fde68a;
  filter: drop-shadow(0 1px 4px rgba(0, 0, 0, .2));
}

.top-left-info.tli-period-day {
  color: #10233e;
  background: linear-gradient(135deg, rgba(239,248,255,.96) 0%, rgba(147,210,255,.94) 55%, rgba(255,220,125,.96) 100%);
  border-color: rgba(255,255,255,.72);
  box-shadow: 0 12px 30px rgba(30,105,165,.22);
}

.top-left-info.tli-period-day .tli-period-icon {
  color: #f59e0b;
}

.top-left-info.tli-period-day .tli-weather-icon {
  color: #075bd8;
}

.top-left-info.tli-period-night {
  color: #f8fbff;
  background: linear-gradient(135deg, rgba(25,42,74,.97) 0%, rgba(9,22,48,.98) 58%, rgba(43,36,88,.97) 100%);
  border-color: rgba(173,205,255,.24);
  box-shadow: 0 12px 32px rgba(0,0,0,.34);
}

.top-left-info.tli-period-night .tli-period-icon {
  color: #dbeafe;
}

.top-left-info.tli-period-night .tli-weather-icon {
  color: #bfdbfe;
}

@keyframes tliGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Admin Login Modal */
.admin-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity .4s ease;
}

.admin-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .35s ease;
}

.admin-modal.open .admin-modal-overlay {
  opacity: 1;
}

.admin-card {
  position: relative;
  width: min(960px, 96vw);
  min-height: 540px;
  background: #f8fafc;
  border-radius: 20px;
  margin: 6vh auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(15, 23, 42, .18);
  border: 1px solid rgba(148, 163, 184, .3);
  z-index: 1;
  opacity: 0;
  transform: translateY(36px) scale(.97);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .35s ease;
  will-change: transform, opacity;
}

.admin-modal.open .admin-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1080px) {
  .admin-card {
    width: min(880px, 94vw);
  }

  .admin-card-form {
    padding: 44px 40px;
  }
}

@media (max-width: 900px) {
  .admin-visual-overlay {
    display: none;
  }
}



@media (max-width: 768px) {
  .admin-card {
    width: min(520px, 94vw);
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .15);
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, .7);
  }

  .admin-card-visual {
    display: none;
  }

  .admin-card-form {
    padding: 36px 30px 32px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .admin-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .admin-brand-logo {
    width: 76px;
    height: 76px;
    padding: 16px;
    border-radius: 999px;
    background: #fff;
    box-shadow: none;
  }

  .admin-brand-copy {
    align-items: center;
    gap: 6px;
  }

  .admin-brand-meta {
    display: none;
  }

  .admin-brand-eyebrow {
    font-size: .7rem;
    letter-spacing: .22em;
  }

  .admin-form-header {
    display: none;
  }

  .admin-form-fields {
    width: 100%;
    margin-top: 10px;
    gap: 18px;
  }

  .admin-actions {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .admin-actions .admin-check {
    flex: 1;
    justify-content: flex-start;
  }

  .admin-link {
    margin-left: auto;
  }

  .admin-submit {
    margin-top: 12px;
    border-radius: 18px;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-modal {
    transition: none;
  }

  .admin-modal-overlay {
    transition: none;
  }

  .admin-card {
    transition: none;
    transform: none;
  }

  .admin-modal.open .admin-card {
    transform: none;
  }

  .admin-input-group {
    transition: none;
  }

  .admin-submit {
    transition: none;
  }
}

.admin-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: rgba(15, 23, 42, .08);
  color: #0f172a;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  transition: background .2s ease, transform .2s ease;
}

.admin-close:hover {
  background: rgba(15, 23, 42, .14);
  transform: scale(1.05);
}

.admin-card-pane {
  position: relative;
  display: flex;
  flex-direction: column;
}

.admin-card-form {
  padding: 48px 48px 44px;
  gap: 10px;
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 60%);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #0f172a;
}

.admin-brand-logo {
  width: 60px;
  height: 60px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  object-fit: contain;
}

.admin-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-brand-eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  font-size: .72rem;
  color: #64748b;
}

.admin-brand-title {
  font-weight: 600;
  font-size: 1.18rem;
  color: #0f172a;
}

.admin-brand-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 600;
  font-size: .86rem;
}

.admin-brand-meta i {
  font-size: .6rem;
}

.admin-form-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

@media (max-width: 768px) {
  .admin-form-header {
    display: none !important;
  }
}



.admin-form-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.16;
  color: #0f172a;
}

.admin-form-sub {
  margin: 0;
  font-size: .8rem;
  line-height: 1.55;
  color: #64748b;
}

.admin-form-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-input-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-label {
  font-weight: 600;
  font-size: .9rem;
  color: #475569;
}

.admin-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border: 1.5px solid #d4dae5;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  transition: border-color .18s ease, transform .18s ease;
}

.admin-input-group:focus-within {
  border-color: #2563eb;
  box-shadow: none;
}

.admin-input-group:focus-within .admin-input-icon {
  color: #2563eb;
}

.admin-input-icon {
  color: #9aa7bd;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .18s ease;
}

.admin-input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 14px 0;
  font-size: 1rem;
  color: #0f172a;
  font-weight: 500;
  outline: none;
}

.admin-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.admin-input-toggle {
  border: 0;
  background: none;
  color: #9aa7bd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0;
  transition: color .18s ease;
}

.admin-input-toggle:hover {
  color: #64748b;
}

.admin-input-group:focus-within .admin-input-toggle {
  color: #2563eb;
}

.admin-input-toggle:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 50%;
}

.admin-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 14px 0 6px;
  flex-wrap: wrap;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: #64748b;
}

.admin-pass-checklist {
  list-style: none;
  padding: 10px 0 0;
  margin: 6px 0 0;
  display: grid;
  gap: 4px;
  font-size: .8rem;
  color: #6b7280;
}


.admin-form-alert {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.14);
  color: #b91c1c;
  font-size: 0.86rem;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.admin-link--disabled {
  color: #94a3b8 !important;
  pointer-events: none;
  cursor: not-allowed;
}

body.dark-mode .admin-form-alert {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.admin-pass-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-pass-checklist i {
  font-size: .48rem;
  color: #cbd5f5;
  transition: color .2s ease, transform .2s ease;
}

.admin-pass-checklist li.valid i {
  color: #000;
  transform: scale(1.15);
}

.admin-pass-checklist li.valid span {
  color: #000;
}

.admin-check input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.admin-link {
  text-decoration: none;
  color: #2563eb;
  font-weight: 600;
  font-size: .9rem;
  margin-left: auto;
}

.admin-link:hover {
  text-decoration: underline;
}

.admin-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background .2s ease, transform .18s ease;
}

.admin-submit:hover {
  background: #1d4ed8;
}

.admin-submit:active {
  transform: translateY(0);
}

.admin-submit:disabled {
  background: #cbd5f5;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: .7;
}

body.dark-mode .admin-submit:disabled {
  background: #1E1E1E;
  color: #64748b;
}

.admin-card-visual {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.admin-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, .65) 0%, rgba(15, 23, 42, .05) 55%);
  z-index: 0;
}

.admin-visual-img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  flex: 1 1 auto;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

.admin-visual-overlay {
  position: absolute;
  inset: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  color: #f8fafc;
  z-index: 1;
  pointer-events: none;
}

.admin-visual-body {
  margin-top: auto;
}

.admin-visual-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 8px 2px;
  font-weight: 500;
  font-size: .75rem;
}

.admin-visual-badge i {
  color: #fbbf24;
}

.admin-visual-body h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.admin-visual-body p {
  margin: 10px 0 0;
  max-width: 260px;
  line-height: 1.5;
  color: #e2e8f0;
}








@media (max-width: 900px) {
  .admin-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .admin-card-form {
    padding: 40px 32px 36px;
  }

  .admin-card-visual {
    display: none;
  }
}

/* Dark mode for admin modal */
body.dark-mode .admin-card {
  background: #0f172a;
  border-color: rgba(37, 99, 235, .24);
  box-shadow: 0 36px 90px rgba(0, 0, 0, .55);
}

body.dark-mode .admin-card-form {
  background: linear-gradient(180deg, rgba(15, 23, 42, .92) 0%, rgba(17, 24, 39, 1) 70%);
  color: #e2e8f0;
}

body.dark-mode .admin-brand-logo {
  background: #fff;
  box-shadow: none;
}

body.dark-mode .admin-brand-eyebrow {
  color: #94a3b8;
}

body.dark-mode .admin-brand-title {
  color: #f8fafc;
}

body.dark-mode .admin-brand-meta {
  background: rgba(16, 185, 129, .18);
  color: #34d399;
}

body.dark-mode .admin-close {
  background: rgba(148, 163, 184, .16);
  color: #f8fafc;
}

body.dark-mode .admin-close:hover {
  background: rgba(148, 163, 184, .25);
}

body.dark-mode .admin-form-title {
  color: #f8fafc;
}

body.dark-mode .admin-form-sub {
  color: #9ca3af;
}

body.dark-mode .admin-label {
  color: #cbd5f5;
}

body.dark-mode .admin-input-group {
  background: rgba(15, 23, 42, .85);
  border-color: rgba(148, 163, 184, .35);
  box-shadow: none;
}

body.dark-mode .admin-input {
  color: #e2e8f0;
}

body.dark-mode .admin-input::placeholder {
  color: #94a3b8;
}

body.dark-mode .admin-input-toggle {
  color: #cbd5f5;
}

body.dark-mode .admin-input-group:focus-within .admin-input-toggle {
  color: #60a5fa;
}

body.dark-mode .admin-check {
  color: #9ca3af;
}

body.dark-mode .admin-pass-checklist {
  color: #a3acc4;
}

body.dark-mode .admin-pass-checklist li.valid span {
  color: #000;
}

body.dark-mode .admin-pass-checklist i {
  color: #475569;
}

body.dark-mode .admin-pass-checklist li.valid i {
  color: #000;
}

body.dark-mode .admin-submit {
  background: #2563eb;
  box-shadow: none;
}

body.dark-mode .admin-submit:hover {
  background: #1d4ed8;
  box-shadow: none;
}

body.dark-mode .admin-card-visual::after {
  background: linear-gradient(135deg, rgba(15, 23, 42, .78) 0%, rgba(15, 23, 42, .28) 60%);
}

body.dark-mode .admin-visual-body p {
  color: #cbd5f5;
}

@keyframes tliFloat {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(8px, -8px);
  }

  100% {
    transform: translate(0, 0);
  }
}

@media (max-width: 640px) {
  .top-left-info {
    left: 10px;
    bottom: 10px;
    width: min(90vw, 160px);
    padding: 6px 8px;
    column-gap: 6px;
  }

  .tli-clock {
    font-size: .85rem;
  }

  .tli-date {
    font-size: .6rem;
  }

  .tli-weather-icon {
    font-size: .85rem;
  }

  .tli-weather-text {
    font-size: .65rem;
  }

  .admin-card {
    width: min(440px, 92vw);
    border-radius: 22px;
  }

  .admin-card-form {
    padding: 30px 24px 28px;
    background: #fff;
  }

  .admin-brand {
    row-gap: 12px;
  }

  .admin-brand-copy {
    align-items: center;
  }

  .admin-brand-meta {
    display: none;
  }

  .admin-form-title {
    font-size: 1.2rem;
  }

  .admin-form-fields {
    gap: 16px;
  }

  .admin-submit {
    padding: 14px 18px;
    border-radius: 18px;
  }

  .admin-actions {
    gap: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .admin-card {
    width: min(400px, 90vw);
    border-radius: 20px;
  }

  .admin-card-form {
    padding: 26px 20px 24px;
  }

  .admin-brand-logo {
    width: 70px;
    height: 70px;
    padding: 14px;
    background: #fff;
    box-shadow: none;
  }

  .admin-form-title {
    font-size: 1.5 rem;
  }

  .admin-form-sub {
    font-size: .94 rem;
  }

  .admin-submit {
    border-radius: 8px;
    font-size: 1 rem;
    padding: 13px 16px;
  }

  .admin-actions {
    row-gap: 10px;
  }
}


/* Dark mode toggle (header icon) */
.darkmode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  margin-left: 8px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
}

.darkmode-icon:hover {
  background: #e2e8f0;
}

/* Global dark mode (modern dashboard-like) */
body.dark-mode {
  background: #0f1115;
  color: #e7e8ea;
}

body.dark-mode a {
  color: #89b4ff;
}

/* Make most text light in dark mode (komponen d-* memakai token sendiri) */
body.dark-mode h1:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode h2:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode h3:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode h4:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode h5:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode h6:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode p:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode span:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode li:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode dt:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode dd:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode small:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode strong:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode label:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode th:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode td:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]) {
  color: #e7e8ea !important;
}

body.dark-mode .muted,
body.dark-mode .text-muted {
  color: #b5bac3 !important;
}

body.dark-mode .header,
body.dark-mode .nav-menu,
body.dark-mode .dropdown-menu,
body.dark-mode .news-card,
body.dark-mode .card,
body.dark-mode .stats-card,
body.dark-mode .modal-content,
body.dark-mode .search-bar,
body.dark-mode footer {
  background: #151923 !important;
  color: #e7e8ea !important;
  border-color: #242a36 !important;
}

body.dark-mode .cta-button,
body.dark-mode .read-more {
  filter: brightness(.9) saturate(.95);
}

body.dark-mode .darkmode-icon {
  background: #1a2030;
  color: #e7e8ea;
  border-color: #2a3244;
}

body.dark-mode .darkmode-icon:hover {
  background: #222a3b;
}

body.dark-mode .top-left-info {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Header search trigger icon (dark) */
body.dark-mode .search-icon {
  background: #1b2232 !important;
  border-color: #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .search-icon:hover {
  background: #222a3b !important;
  border-color: #2a3244 !important;
}

body.dark-mode .search-icon i {
  color: #ffffff !important;
}

/* Global search bar input */
body.dark-mode .search-input-group {
  background: #1b2232 !important;
  border-color: #2a3244 !important;
  box-shadow: none !important;
}

body.dark-mode .search-input i {
  color: #9aa1ab !important;
}

body.dark-mode .search-bar-input {
  background: #1b2232 !important;
  color: #e7e8ea !important;
}

body.dark-mode .search-bar-input::placeholder {
  color: #9aa1ab !important;
}

/* Pagination buttons (news/gallery) */
body.dark-mode .pagination-btn {
  background: #1b2232 !important;
  border: 1px solid #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .pagination-btn:hover {
  background: #222a3b !important;
  color: #ffffff !important;
  border-color: #2a3244 !important;
}

body.dark-mode .pagination-btn.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

/* Mobile navigation (drawer) */
body.dark-mode .mobile-menu {
  background: #151923 !important;
  color: #e7e8ea !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35) !important;
}

body.dark-mode .mobile-menu a {
  color: #e7e8ea !important;
  border-bottom: 1px solid #2a3244 !important;
}

body.dark-mode .mobile-menu a:hover {
  color: #ffffff !important;
}

body.dark-mode .mobile-submenu {
  background: #1b2232 !important;
  border-radius: 8px !important;
}

body.dark-mode .mobile-submenu a {
  color: #e7e8ea !important;
  border-bottom: 1px solid #2a3244 !important;
}

body.dark-mode .mobile-submenu a:hover {
  background: #222a3b !important;
  color: #ffffff !important;
}

body.dark-mode .mobile-menu-btn {
  color: #e7e8ea !important;
}

/* Navbar dropdown */
body.dark-mode .dropdown-menu {
  background: #1b2232 !important;
  border-color: #2a3244 !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35) !important;
}

body.dark-mode .dropdown-menu a {
  color: #e7e8ea !important;
}

body.dark-mode .dropdown-menu a:hover {
  background: #222a3b !important;
  color: #ffffff !important;
}

/* Navbar text in dark */
body.dark-mode .nav-menu a {
  color: #e7e8ea !important;
}

/* Hero buttons in dark */
body.dark-mode .hero .cta-button {
  color: #ffffff !important;
  background: #2563eb !important;
  border-color: #3b82f6 !important;
}

body.dark-mode .hero .cta-button:hover {
  background: #1d4ed8 !important;
  border-color: #2563eb !important;
}

/* Data penduduk & statistics */
body.dark-mode .stat-card,
body.dark-mode .stats-card {
  background: #161b26 !important;
  border-color: #262c3a !important;
}

body.dark-mode .stat-card-title,
body.dark-mode .stat-number {
  color: #ffffff !important;
}

body.dark-mode .stat-label,
body.dark-mode .stat-detail-item span,
body.dark-mode .announcement-date .date-bottom {
  color: #cbd5e1 !important;
}

/* Statistik bar & icon overrides */
body.dark-mode .stat-icon {
  color: #ffffff !important;
}

body.dark-mode .dashboard-title {
  color: #e7e8ea !important;
}

body.dark-mode .dashboard-link {
  color: #89b4ff !important;
}

body.dark-mode .card-menu-btn {
  color: #cbd5e1 !important;
}

body.dark-mode .card-menu-btn:hover {
  background: #222a3b !important;
  color: #ffffff !important;
}

/* Donut center (angka + label + icon) dark */
body.dark-mode .donut-center {
  background: rgba(20, 24, 32, 0.85) !important;
}

body.dark-mode .donut-center i {
  color: #cbd5e1 !important;
}

body.dark-mode .donut-center .total-number {
  color: #ffffff !important;
}

body.dark-mode .donut-center .total-label {
  color: #9aa1ab !important;
}

/* Alternative donut-hole center if used */
body.dark-mode .donut-hole {
  background: #141820 !important;
}

body.dark-mode .donut-hole i {
  color: #cbd5e1 !important;
}

body.dark-mode .total-number {
  color: #ffffff !important;
}

body.dark-mode .total-label {
  color: #cbd5e1 !important;
}

/* Dashboard scroller colors */
body.dark-mode .dashboard-container {
  scrollbar-color: #2a3244 #141820;
}

body.dark-mode .dashboard-container::-webkit-scrollbar-track {
  background: #141820;
}

body.dark-mode .dashboard-container::-webkit-scrollbar-thumb {
  background: #2a3244;
}

/* Statistics legends/labels */
body.dark-mode .chart-legend,
body.dark-mode .legend-item span:last-child,
body.dark-mode .bar-item span {
  color: #cbd5e1 !important;
}

/* Global dark scrollbars */
body.dark-mode {
  scrollbar-color: #2a3244 #141820;
  scrollbar-width: thin;
}

body.dark-mode ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.dark-mode ::-webkit-scrollbar-track {
  background: #141820;
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: #2a3244;
  border-radius: 10px;
  border: 2px solid #141820;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: #3a4560;
}

/* Specific scrollable containers */
body.dark-mode .announcement-list::-webkit-scrollbar,
body.dark-mode .news-grid::-webkit-scrollbar,
body.dark-mode .info-graphic-slider::-webkit-scrollbar,
body.dark-mode .galeri-list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* Apply dark scrollbars to all scrollable elements (fallback) */
body.dark-mode * {
  scrollbar-color: #2a3244 #141820;
}

body.dark-mode *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.dark-mode *::-webkit-scrollbar-track {
  background: #141820;
}

body.dark-mode *::-webkit-scrollbar-thumb {
  background: #2a3244;
  border-radius: 10px;
  border: 2px solid #141820;
}

body.dark-mode *::-webkit-scrollbar-thumb:hover {
  background: #3a4560;
}

body.dark-mode *::-webkit-scrollbar-corner {
  background: #141820;
}

/* Horizontal scroller for Statistik Desa row */
body.dark-mode .statistics-dashboard::-webkit-scrollbar {
  height: 8px;
}

body.dark-mode .statistics-dashboard::-webkit-scrollbar-track {
  background: #141820;
}

body.dark-mode .statistics-dashboard::-webkit-scrollbar-thumb {
  background: #2a3244;
  border-radius: 8px;
  border: 2px solid #141820;
}

/* Pelayanan masyarakat tiles */
body.dark-mode .service-card {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

body.dark-mode .service-title {
  color: #ffffff !important;
}

body.dark-mode .service-card i,
body.dark-mode .service-icon {
  color: #ffffff !important;
}

/* Fix service icon background (the rounded square arrow-like) */
body.dark-mode .service-icon {
  background: #1b2232 !important;
  border-color: #2a3244 !important;
}

/* Kabar berita terkini */
body.dark-mode .news-card {
  background: #161b26 !important;
  border-color: #262c3a !important;
}

body.dark-mode .news-card-title {
  color: #ffffff !important;
}

body.dark-mode .news-card-desc {
  color: #cbd5e1 !important;
}

/* Pengumuman */
body.dark-mode .announcement-container {
  background: #151923 !important;
  border-color: #242a36 !important;
}

body.dark-mode .announcement-header {
  background: #1a2030 !important;
  border-color: #2a3244 !important;
}

body.dark-mode .announcement-tab {
  background: #1b2232 !important;
  border-color: #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .announcement-tab.active {
  background: #20283a !important;
  color: #ffffff !important;
}

body.dark-mode .announcement-item {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

body.dark-mode .announcement-title-text {
  color: #ffffff !important;
}

body.dark-mode .announcement-desc {
  color: #cbd5e1 !important;
}

body.dark-mode .announcement-date {
  border-color: #2a3244 !important;
}

/* Announcement search bar */
body.dark-mode .announcement-search {
  background: #151923 !important;
  border-color: #242a36 !important;
}

body.dark-mode .announcement-search i {
  color: #b5bac3 !important;
}

body.dark-mode .announcement-search input {
  background: #1b2232 !important;
  border-color: #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .announcement-search input::placeholder {
  color: #9aa1ab !important;
}

/* Announcement pagination (dark) */
body.dark-mode .announcement-pagination {
  border-top: 1px solid #242a36 !important;
  background: transparent !important;
}

body.dark-mode .announcement-pagination-btn {
  background: #1b2232 !important;
  border: 1px solid #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .announcement-pagination-btn:hover {
  background: #222a3b !important;
  border-color: #2a3244 !important;
  color: #ffffff !important;
}

body.dark-mode .announcement-pagination-btn.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

body.dark-mode .announcement-pagination-btn:disabled {
  background: #141820 !important;
  color: #7b8391 !important;
  border-color: #242a36 !important;
  opacity: .6;
  cursor: not-allowed;
}

/* Transparansi anggaran */
body.dark-mode .transparansi-card {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

body.dark-mode .transparansi-header {
  color: #e7e8ea !important;
}

body.dark-mode .transparansi-desc {
  color: #b5bac3 !important;
}

body.dark-mode .transparansi-link {
  color: #89b4ff !important;
}

/* Transparansi: title/label/value colors */
body.dark-mode .transparansi-card .card-title,
body.dark-mode .transparansi-card .card-subtitle {
  color: #ffffff !important;
}

body.dark-mode .transparansi-card .card-label {
  color: #9aa1ab !important;
}

body.dark-mode .transparansi-card .card-value {
  color: #e7e8ea !important;
}

body.dark-mode .transparansi-card .card-value.highlight {
  color: #93c5fd !important;
}

body.dark-mode .transparansi-card .card-divider {
  background: #2a3244 !important;
}

/* Progress bar */
body.dark-mode .transparansi-card .card-bar {
  background: #1b2232 !important;
}

body.dark-mode .transparansi-card .card-bar span {
  background: #3b82f6 !important;
}

/* Header icon (bulat) */
body.dark-mode .transparansi-card .card-header i {
  color: #ffffff !important;
  background: #1b2232 !important;
  box-shadow: inset 0 0 0 1px #2a3244 !important;
}

/* Sekilas info running text */
body.dark-mode .info-banner {
  background: #1a2030 !important;
  border-color: #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .running-text-content {
  color: #e7e8ea !important;
}

/* Galeri video & Info grafis */
body.dark-mode .galeri-card {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

body.dark-mode .galeri-video {
  background: #0b1020 !important;
  border: 1px solid #262c3a !important;
}

body.dark-mode .galeri-title {
  color: #ffffff !important;
}

body.dark-mode .galeri-desc {
  color: #cbd5e1 !important;
}

body.dark-mode .info-graphic-slide {
  background: #161b26 !important;
  border-color: #262c3a !important;
}

body.dark-mode .info-graphic {
  background: #151923 !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35) !important;
}

body.dark-mode .info-graphic-slider {
  background: transparent !important;
}

body.dark-mode .galeri-header h3 {
  color: #ffffff !important;
}

/* Darken infographics nav arrows */
body.dark-mode .info-graphic-nav {
  background: rgba(27, 34, 50, 0.92) !important;
  color: #ffffff !important;
  border: 1px solid #2a3244 !important;
}

body.dark-mode .info-graphic-nav:hover {
  background: rgba(34, 42, 59, 0.96) !important;
}

/* Dots a bit dimmer in dark */
body.dark-mode .info-graphic-dot {
  background: rgba(255, 255, 255, 0.6) !important;
}

/* Infografis (infografis-*) dark variants */
body.dark-mode .infografis-card {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

body.dark-mode .infografis-header h3 {
  color: #ffffff !important;
}

body.dark-mode .infografis-slider {
  background: #0b1020 !important;
}

body.dark-mode .infografis-dot {
  background: rgba(255, 255, 255, 0.45) !important;
}

body.dark-mode .infografis-dot.active {
  background: #2563eb !important;
}

/* Ensure video wrapper borders dark */
body.dark-mode .galeri-card .video-wrapper {
  background: #0b1020 !important;
  border: 1px solid #262c3a !important;
}

/* Jam Kerja dark mode */
body.dark-mode .jam-kerja {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

body.dark-mode .jam-header {
  color: #ffffff !important;
}

body.dark-mode .jam-item {
  background: #1b2232 !important;
  border-color: #2a3244 !important;
}

body.dark-mode .jam-item:hover {
  background: #20283a !important;
}

body.dark-mode .jam-item .day {
  color: #e7e8ea !important;
}

body.dark-mode .jam-item .time {
  background: #222a3b !important;
  border-color: #2f3850 !important;
  color: #e7e8ea !important;
}

body.dark-mode .jam-item.is-today {
  border-color: #2a3244 !important;
  background: #20283a !important;
}

body.dark-mode .jam-item.is-today .time {
  background: #27314a !important;
  color: #93c5fd !important;
}

body.dark-mode .jam-item.is-off {
  border-color: #3b2430 !important;
  background: #281a1e !important;
}

body.dark-mode .jam-item.is-off .time {
  background: #331e25 !important;
  color: #ff9aa9 !important;
  border-color: #4d2a30 !important;
}

body.dark-mode .jam-note {
  color: #b5bac3 !important;
}

body.dark-mode .jam-table th {
  background: #1b2232 !important;
  color: #93c5fd !important;
  border: 1px solid #2a3244 !important;
}

body.dark-mode .jam-table td {
  background: #161b26 !important;
  color: #e7e8ea !important;
  border: 1px solid #262c3a !important;
}

body.dark-mode .jam-table .libur td {
  background: #2a1b1e !important;
  color: #ffa6b4 !important;
}

/* Ensure all icons white */
body.dark-mode .news-card i,
body.dark-mode .announcement-item i,
body.dark-mode .transparansi-card i,
body.dark-mode .service-card i,
body.dark-mode .stats-card i,
body.dark-mode .stat-card i {
  color: #ffffff !important;
}

/* Force icons white in dark mode (kecuali komponen d-*) */
body.dark-mode i:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode .fas:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode .far:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode .fab:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode svg:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]) {
  color: #ffffff !important;
  fill: #ffffff !important;
}

body.dark-mode .tli-weather-icon {
  color: #ffffff !important;
}

/* Generic cards dark appearance if not covered */
body.dark-mode .card,
body.dark-mode .info-card,
body.dark-mode .service-card,
body.dark-mode .galeri-card,
body.dark-mode .announcement-card {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

/* Dark mode: Accessibility panel */
body.dark-mode .a11y-panel {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

body.dark-mode .a11y-header {
  background: #1b2232 !important;
  border-bottom: 1px solid #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .a11y-panel-close {
  color: #e7e8ea !important;
}

body.dark-mode .a11y-panel-close:hover {
  background: #222a3b !important;
  color: #ffffff !important;
}

body.dark-mode .a11y-panel-body {
  color: #e7e8ea !important;
}

body.dark-mode .a11y-divider {
  background: #2a3244 !important;
}

body.dark-mode .a11y-tile {
  background: #1b2232 !important;
  border-color: #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .a11y-tile:hover {
  background: #222a3b !important;
  border-color: #2a3244 !important;
}

body.dark-mode .a11y-tile i,
body.dark-mode .a11y-tile span {
  color: #e7e8ea !important;
}

body.dark-mode .a11y-tile[aria-pressed="true"] {
  border-color: #C62828 !important;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.18) inset !important;
}

body.dark-mode .a11y-btn {
  background: #C62828 !important;
  border-color: #a01f1f !important;
  color: #fff !important;
}

body.dark-mode .a11y-btn:hover {
  background: #a01f1f !important;
}

body.dark-mode .a11y-switch input:checked+.a11y-slider {
  background: #C62828 !important;
}

body.dark-mode .a11y-slider {
  background: #2a3244 !important;
}

body.dark-mode .a11y-reset-all {
  background: #C62828 !important;
  border-color: #a01f1f !important;
  color: #fff !important;
}

body.dark-mode .a11y-reset-all:hover {
  background: #a01f1f !important;
}

/* Dark mode: WhatsApp panel */
body.dark-mode .whatsapp-panel {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

body.dark-mode .whatsapp-panel-header {
  background: #1b2232 !important;
  border-bottom: 1px solid #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .whatsapp-panel-close {
  color: #e7e8ea !important;
}

body.dark-mode .whatsapp-panel-close:hover {
  background: #222a3b !important;
  color: #ffffff !important;
}

body.dark-mode .wa-info-number {
  color: #ffffff !important;
}

body.dark-mode .wa-info-text {
  color: #cbd5e1 !important;
}

body.dark-mode .wa-chat-button {
  color: #ffffff !important;
  border-color: #1ebe57 !important;
}

/* Transparansi Anggaran - Halaman Detail */
.transparansi-body {
  background: #f6f7fb;
}

.transparansi-page {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 0 0px;
  background-color: #F2F5FA;
}

.transparansi-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 16px;
  display: grid;
  gap: 0px;
}

.transparansi-hero {
  width: 100%;
  padding-top: 90px;
  margin-top: 0;
}

.transparansi-head {
  background: linear-gradient(135deg, #1e4fb3, #153d9f);
  color: #fff;
  border-radius: 0;
  padding: 100px 0 40px;
  box-shadow: 0 4px 20px rgba(21, 61, 159, 0.15);
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  animation: none !important;
  transition: none !important;
}

.transparansi-head *,
.transparansi-head *::before,
.transparansi-head *::after {
  animation: none !important;
  transition: none !important;
}

.transparansi-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 18% 18%, rgba(255, 255, 255, 0.12), transparent 38%), radial-gradient(circle at 80% 0%, rgba(255, 255, 255, 0.1), transparent 32%);
  pointer-events: none;
}

.transparansi-head__meta {
  position: relative;
  z-index: 1;
}

.transparansi-head h1 {
  margin: 0 0 6px;
  font-size: 2rem;
}

.transparansi-head p {
  margin: 0;
  opacity: 0.92;
}

.transparansi-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 10px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  font-weight: 600;
  font-size: 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.pill-primary {
  background: #fff;
  color: #1e4fb3;
  border-color: #e3ecff;
}

.pill-muted {
  background: #eef2f7;
  color: #475569;
  border-color: #e2e8f0;
}

.transparansi-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 20px;
}

.summary-card {
  background: #fff;
  border-radius: 14px;
  padding: 14px 16px;
  color: #1b2434;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.08);
  border: 1px solid #e5e7eb;
}

/* Force all budget cards to be full width and consistent */
.transparansi-card,
.pelaksanaan-card,
.pendapatan-card,
.pembelanjaan-card {
  width: 100% !important;
  max-width: 100% !important;
  flex: none !important;

}

.summary-label {
  font-size: 0.95rem;
  color: #526175;
  margin: 0 0 4px;
}

.summary-card h3 {
  margin: 0 0 6px;
  font-size: 1.3rem;
}

.summary-note {
  margin: 0 0 8px;
  color: #6b7280;
  font-size: 0.95rem;
}

.text-accent {
  color: #1e4fb3;
}

.progress-line {
  width: 100%;
  height: 8px;
  background: #f1f5f9;
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0 4px;
}

.progress-line span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2162e2, #5a8af2);
  border-radius: 999px;
  transition: width 0.8s ease;
}

.progress-meta {
  display: flex;
  justify-content: space-between;
  font-size: 0.88rem;
  color: #6b7280;
}

.summary-links {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cta-link {
  color: #1e4fb3;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.cta-link:hover {
  text-decoration: underline;
}

.transparansi-section--page {
  padding-top: 15px;
}

.transparansi-dokumen {
  margin-top: 15px;
}

.doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.doc-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 14px;
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.05);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.doc-label {
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #1e4fb3;
  font-weight: 600;
  margin: 0;
}

.doc-card h4 {
  margin: 2px 0 4px;
  font-size: 1.05rem;
  color: #0f172a;
}

.doc-meta {
  margin: 0;
  color: #6b7280;
  font-size: 0.95rem;
}

.doc-button {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 12px;
  background: #2162e2;
  color: #fff;
  text-decoration: none;
  border-radius: 10px;
  font-weight: 600;
  border: 1px solid #1c52bc;
}

.doc-button:hover {
  background: #1a4bb8;
}

.transparansi-contact {
  margin: 28px 0 0;
}

.contact-card {
  background: linear-gradient(135deg, #2162e2, #153d9f);
  color: #fff;
  border-radius: 16px;
  padding: 18px;
  box-shadow: 0 15px 40px rgba(21, 61, 159, 0.25);
  display: grid;
  gap: 12px;
}

.contact-card .transparansi-desc {
  color: #e8edff;
}

.contact-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.contact-label {
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-size: 0.8rem;
  opacity: 0.9;
  margin: 0;
}

.contact-value {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 2px 0 4px;
}

.contact-note {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.85;
}

@media (max-width: 768px) {
  .transparansi-head {
    padding: 22px 16px;
  }

  .transparansi-head h1 {
    font-size: 1.6rem;
  }

  .transparansi-page {
    padding-top: 0px;
  }
}

/* Statistik Desa Page */
.stats-body {
  background: #f6f8fb;
}

.stats-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 110px 16px 70px;
}

.stats-hero {
  background: #fff;
  border-radius: 18px;
  padding: 20px;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 12px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.06);
  border: 1px solid #e5e7eb;
  height: auto;
  min-height: 0;
  margin-top: 0;
  padding-top: 20px;
}

.stats-hero__copy h1 {
  margin: 4px 0 8px;
  font-size: 1.9rem;
  color: #111;
}

.stats-hero__copy p {
  margin: 0;
  color: #4b5563;
}

.meta-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.stats-hero__cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.filter-bar {
  margin: 18px 0;
}

.filter-form {
  background: #fff;
  border: 1px solid #e5e7eb;
  padding: 12px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 12px;
  box-shadow: 0 8px 28px rgba(0, 0, 0, 0.04);
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.filter-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #242424;
}

.filter-group select {
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 16px 0;
}

.stats-panel {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  position: relative;
}

.stats-panel__header {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding-right: 60px;
  position: relative;
}

.stats-panel__header h3 {
  margin: 0 0 4px;
  color: #111;
}

.stats-panel__header p {
  margin: 0 0 10px;
  color: #64748b;
  font-size: 0.95rem;
}

.stats-body .stats-panel__header p {
  display: none;
}

.stats-panel .card-menu {
  display: contents;
  position: static;
}

.stats-panel .menu-trigger {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #f3f5f8;
  border: 1px solid #e5e7eb;
  color: #1f2937;
  font-size: 1.2rem;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
  transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  position: absolute;
  top: 12px;
  right: 12px;
}

.stats-panel .menu-trigger:hover {
  background: #e9eef5;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.1);
  transform: translateY(-1px);
}

.stats-panel .menu-dropdown {
  top: 58px;
  right: 12px;
  left: auto;
  position: absolute;
}

.chart-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.chip {
  padding: 6px 10px;
  border-radius: 8px;
  background: #e9f0ff;
  color: #1e4fb3;
  font-weight: 600;
  font-size: 0.85rem;
}

.chip.muted {
  background: #f3f4f6;
  color: #475569;
}

.export-btn {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  color: #1f2937;
  border-radius: 8px;
  padding: 6px 10px;
  font-size: 0.85rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.export-btn:hover {
  background: #e9f0ff;
  border-color: #dce6ff;
}

.card-menu {
  margin-left: auto;
  position: relative;
}

.menu-trigger {
  border: 1px solid #e5e7eb;
  background: #f8fafc;
  border-radius: 12px;
  width: 42px;
  height: 38px;
  display: grid;
  place-items: center;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
}

.menu-trigger:hover {
  background: #e9f0ff;
  border-color: #dce6ff;
}

.menu-dropdown {
  position: absolute;
  right: 0;
  top: 44px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 16px;
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.12);
  min-width: 170px;
  padding: 8px 0;
  display: none;
  z-index: 30;
  overflow: hidden;
}

.menu-dropdown.open {
  display: block;
}

.menu-dropdown button {
  width: 100%;
  border: none;
  background: transparent;
  padding: 10px 14px;
  text-align: left;
  font-size: 0.98rem;
  color: #1f2937;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 10px;
}

.menu-dropdown button:hover {
  background: #f0f4ff;
}

.menu-dropdown button.danger {
  color: #c0392b;
}

.stats-widgets {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin: 12px 0 6px;
}

.mini-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 14px;
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 10px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
  align-items: center;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mini-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.mini-card__icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  color: #fff;
  font-size: 1.1rem;
}

.mini-card__icon.primary {
  background: #2162e2;
}

.mini-card__icon.success {
  background: #22c55e;
}

.mini-card__icon.info {
  background: #0ea5e9;
}

.mini-card__icon.warning {
  background: #f59e0b;
}

.mini-card__body p {
  margin: 0;
  color: #475569;
  font-weight: 600;
}

.mini-card__body h3 {
  margin: 2px 0 4px;
  font-size: 1.2rem;
  color: #111827;
}

.stats-table table {
  width: 100%;
  border-collapse: collapse;
}

.stats-table th,
.stats-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #e5e7eb;
  font-size: 0.95rem;
}

.stats-table th {
  background: #f8fafc;
  color: #1f2937;
}

.stats-table .table-responsive {
  overflow-x: auto;
}

.stats-table .table-progress {
  background: #eef2f7;
  border-radius: 10px;
  height: 10px;
  position: relative;
  overflow: hidden;
}

.stats-table .table-progress span {
  display: block;
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #2162e2, #4dabf7);
  border-radius: 10px;
  transition: width 0.8s ease;
}

.stats-table .table-progress em {
  position: absolute;
  right: 10px;
  top: -18px;
  font-style: normal;
  font-weight: 600;
  color: #1f2937;
  font-size: 0.9rem;
}

@media (max-width: 900px) {
  .stats-page {
    padding-top: 96px;
  }

  .stats-hero {
    grid-template-columns: 1fr;
  }

  .stats-grid {
    grid-template-columns: 1fr;
  }

  .news-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .search-bar-container {
    padding: 0 16px;
  }
}

/* Population-specific tweaks */
.pop-hero .summary-card {
  background: linear-gradient(135deg, #f0f7ff, #e8f1ff);
  border-color: #dce6ff;
}

/* Pegawai Page */
.pegawai-body {
  background: #f6f7fb;
}

.pegawai-page {
  width: 100%;
  max-width: none;
  margin: 0 auto;
  padding: 110px 16px 70px;
}

.pegawai-hero {
  background: transparent;
  border-radius: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 16px;
  box-shadow: none;
  border: none;
}

.pegawai-hero__copy h1 {
  margin: 2px 0 6px;
  font-size: 1.9rem;
  color: #111;
}

.pegawai-hero__copy p {
  margin: 0;
  color: #4b5563;
}

.pegawai-hero__filters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.input-icon {
  display: flex;
  align-items: center;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 10px 12px;
  gap: 8px;
  background: #f8fafc;
}

.input-icon input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 0.95rem;
  background: transparent;
}

.filter-group label {
  font-weight: 600;
  font-size: 0.9rem;
  color: #242424;
}

.filter-group select {
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid #e2e8f0;
  font-size: 0.95rem;
}

.pegawai-grid {
  margin-top: 18px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.pegawai-card-full {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 14px;
  padding: 12px;
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
  align-items: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.05);
}

.pegawai-photo img {
  width: 96px;
  height: 96px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
}

.pegawai-name-row {
  display: flex;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.pegawai-name-row h3 {
  margin: 0;
  font-size: 1.05rem;
  color: #111;
}

.pegawai-role {
  margin: 2px 0 6px;
  color: #475569;
  font-weight: 600;
}

.pegawai-meta {
  color: #64748b;
  font-size: 0.95rem;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.badge.status {
  background: #e3ecff;
  color: #1f4fbf;
  padding: 6px 10px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 0.85rem;
}

.empty-state {
  text-align: center;
  padding: 18px;
  color: #64748b;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
}

@media (max-width: 900px) {
  .pegawai-page {
    padding: 96px 14px 60px;
  }

  .pegawai-hero {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .pegawai-card-full {
    grid-template-columns: 80px 1fr;
  }

  .pegawai-section--page .pegawai-header,
  .pegawai-section--page .pegawai-slider-wrapper,
  .pegawai-section--page .pegawai-desc {
    padding: 0 14px;

  }

  .pegawai-section--page .pegawai-empty {
    width: calc(100% - 28px);
  }
}

@media (max-width: 600px) {
  .pegawai-page {
    padding: 84px 12px 56px;
  }

  .pegawai-hero__copy h1 {
    font-size: 1.6rem;
  }

  .pegawai-section--page .pegawai-header,
  .pegawai-section--page .pegawai-slider-wrapper,
  .pegawai-section--page .pegawai-desc {
    padding: 0 12px;
  }

  .pegawai-section--page .pegawai-empty {
    width: calc(100% - 24px);
  }
}

/* Layout overrides: full width + tighter gutters */
.bottom-banner {
  max-width: none;
  width: 100%;
  margin: 16px 0 24px;
  border-radius: 0;
  padding: 0;
}

.footer {
  width: 100%;
  padding: 60px 24px 24px;
  margin-top: 0;
}

.footer-container {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 0 24px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 50px;
}

.footer-bottom {
  width: 100%;
  margin-top: 32px;
  padding-top: 18px;
}

/* News overrides (stabilize card layout) */
.news-container {
  overflow: hidden;
  padding-bottom: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(1, minmax(0, 1fr));
  gap: 16px;
  row-gap: 20px;
  min-width: auto;
  padding-bottom: 0;
}

.news-card {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-image {
  height: 180px;
  background: linear-gradient(135deg, #2162e2, #1a4bb8);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card-desc {
  flex: 1;
}

/* Transparansi: samakan lebar pelaksanaan & pendapatan */
.transparansi-row:first-child .pelaksanaan-card,
.transparansi-row:first-child .pendapatan-card {
  flex: 1 1 0;
  max-width: 100%;
}

.transparansi-row {
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.info-tag {
  background: #2162e2;
  color: white;
  padding: 5px 15px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 500;
  white-space: nowrap;
}

.running-text {
  flex: 1;
  overflow: hidden;
  position: relative;
  font-size: 0.9rem;
}

.running-text-content {
  display: inline-block;
  white-space: nowrap;
  animation: scrollText 45s linear infinite;
}

@keyframes scrollText {
  0% {
    transform: translateX(100%);
  }

  100% {
    transform: translateX(-100%);
  }
}

/* Bottom banner slider (placed above footer) */
.bottom-banner {
  background: #ffffff;
  padding: 0;
  margin: 16px auto 24px;
  border-radius: 16px;
  max-width: 1200px;
  border: 1px solid #ececec;
  position: relative;
  overflow: hidden;
}

.bottom-slider {
  flex: 1;
  overflow: hidden;
  position: relative;
}

.bottom-slides {
  display: flex;
  width: 100%;
  transition: transform 0.6s cubic-bezier(.22, .61, .36, 1);
}

.bottom-slide {
  min-width: 100%;
  height: 260px;
  position: relative;
}

.bottom-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.bottom-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 20;
  background: transparent;
  border: none;
  width: 44px;
  height: 44px;
  border-radius: 0;
  display: grid;
  place-items: center;
  color: #ffffff;
  cursor: pointer;
  box-shadow: none;
  transition: none;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.bottom-arrow:hover {
  background: transparent;
}

.bottom-arrow i {
  font-size: 20px;
  line-height: 1;
  color: #ffffff;
  text-shadow: 0 0 4px rgba(0, 0, 0, .6), 0 0 8px rgba(0, 0, 0, .35);
  pointer-events: none;
}

.bottom-arrow.prev {
  left: 12px;
}

.bottom-arrow.next {
  right: 12px;
}

.bottom-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(0, 0, 0, .25);
  cursor: pointer;
}

.bottom-dot.active {
  background: rgba(0, 0, 0, .55);
}

@media (max-width: 600px) {
  .bottom-slide {
    height: 190px;
  }

  .bottom-arrow {
    width: 38px;
    height: 38px;
  }
}

/* Statistics Dashboard Section */
.statistics-dashboard {
  padding: 40px 0px;
  max-width: 1200px;
  margin: 0 auto;
}

.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.dashboard-title {
  font-size: 1.8rem;
  color: #030303;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  margin: 0;
}

.dashboard-link {
  color: #2162e2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: "Poppins", sans-serif;
  font-size: 1rem;
}

.dashboard-link:hover {
  color: #1a4bb8;
}

.dashboard-container {
  overflow-x: auto;
  padding-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: #2162e2 #f0f0f0;
  cursor: grab;
}

.dashboard-container:active {
  cursor: grabbing;
}

.dashboard-container::-webkit-scrollbar {
  height: 8px;
}

.dashboard-container::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.dashboard-container::-webkit-scrollbar-thumb {
  background: #2162e2;
  border-radius: 4px;
}

.dashboard-container::-webkit-scrollbar-thumb:hover {
  background: #1a4bb8;
}

.dashboard-scroll {
  display: flex;
  gap: 25px;
  min-width: max-content;
  padding-bottom: 10px;
  padding-top: 10px;
}

/* Card Penduduk */
.stat-card {
  background: #ffffff;
  border-radius: 24px;
  border: 1px solid #ececec;
  padding: 26px;
  min-width: 320px;
  max-width: 350px;
  flex-shrink: 0;
  box-shadow: 0 8px 24px rgba(33, 98, 226, 0.06);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.stat-card-title {
  font-size: 1.2rem;
  font-weight: 600;
  color: #111;
  margin: 0;
}

/* Header row inside stat-card to align title and 3-dots */
.stat-card-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

/* Three-dots menu on stat cards */
.stat-card {
  position: relative;
}

.card-menu-btn {
  position: static;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: none;
  background: transparent;
  color: #9aa3af;
  cursor: pointer;
  border-radius: 6px;
}

.card-menu-btn:hover {
  background: #f3f4f6;
  color: #4b5563;
}

.card-menu {
  position: absolute;
  top: 44px;
  right: 10px;
  min-width: 160px;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, .08);
  padding: 8px;
  display: none;
  z-index: 5;
}

.card-menu.open {
  display: block;
}

.card-menu-item {
  display: block;
  padding: 8px 10px;
  color: #111;
  text-decoration: none;
  border-radius: 6px;
  font-size: 0.92rem;
}

.card-menu-item:hover {
  background: #f3f4f6;
}

/* Disable zoom/transform on click interactions */
.stat-card:active,
.transparansi-card:active,
.pegawai-card:active,
.bottom-arrow:active,
.info-graphic-nav:active,
.hero-nav:active,
.card-menu-btn:active,
.service-card:active,
.announcement-tab:active {
  transform: none !important;
}

.chart-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 25px;
}

/* SVG donut styled to match reference */
.donut-wrap {
  position: relative;
  width: 220px;
  height: 220px;
}

.donut-svg {
  width: 220px;
  height: 220px;
  transform: rotate(-70deg);
}

.donut-ring {
  fill: none;
  stroke: #eef3ff;
  stroke-width: 10;
}

.donut-segment {
  fill: none;
  stroke-linecap: round;
  stroke-width: 10;
}

.donut-segment.primary {
  stroke: #1e66f5;
}

.donut-segment.secondary {
  stroke: #2a61a8ff;
}

.donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background: rgba(242, 247, 255, 0.85);
  width: 170px;
  height: 170px;
  border-radius: 50%;
  margin: auto;
}

.donut-center i {
  font-size: 18px;
  color: #333;
  margin-bottom: 6px;
}

.donut-center .total-number {
  font-size: 1.8rem;
  font-weight: 600;
  color: #000;
}

.donut-center .total-label {
  font-size: 0.8rem;
  color: #666;
}

/* Donut Chart */
.donut-chart {
  width: 200px;
  height: 200px;
  border-radius: 0%;
  background: conic-gradient(#2162e2 0deg 110deg,
      transparent 210deg 230deg,
      #6aa6ff 230deg 340deg,
      transparent 340deg 360deg);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  transition: transform .3s ease;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(33, 98, 226, .12);
  border-color: #2162e2;
}

.donut-hole {
  width: 170px;
  /* lebih besar → ring lebih tipis */
  height: 170px;
  background: #f2f7ff;
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.donut-hole i {
  font-size: 18px;
  color: #333;
  margin-bottom: 5px;
}

.total-number {
  font-size: 2.2rem;
  font-weight: 600;
  color: #000;
}

.total-label {
  font-size: 0.9rem;
  color: #666;
}

/* Detail Item */
.stat-details {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.stat-detail-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.95rem;
  color: #333;
}

.stat-detail-item i {
  font-size: 16px;
  color: #000;
  width: 20px;
}

.stat-detail-item span {
  flex: 1;
  margin-left: 8px;
}

.stat-detail-item strong {
  font-weight: 600;
  color: #000;
}

/* Donut: render ring via pseudo-element so center content is visible */
.donut-css {
  background: none !important;
  -webkit-mask: none !important;
  mask: none !important;
}

.donut-css::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: 50%;
  background:
    conic-gradient(from var(--start), var(--pri) 0deg calc(var(--p1) * 3.6deg), transparent 0 360deg),
    conic-gradient(from var(--start), var(--sec) 0 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 calc(100% - var(--thickness)));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 calc(100% - var(--thickness)));
}

.donut-center {
  z-index: 1;
}

/* CSS-only Donut (interactive, no SVG) */
.donut-css {
  --p1: 51;
  /* primary percent */
  --p2: 49;
  /* secondary percent (optional) */
  --gap: 0;
  /* no separation */
  --start: -90deg;
  /* start angle */
  --thickness: 14px;
  /* ring thickness */
  --pri: #1e66f5;
  /* primary color */
  --sec: #7fb6ff;
  /* secondary color */
  --ring: #eef3ff;
  /* base ring color */
  width: 220px;
  height: 220px;
  border-radius: 50%;
  position: relative;
  transition: transform .25s ease;
  background:
    /* top: primary arc length */
    conic-gradient(from var(--start), var(--pri) 0deg calc(var(--p1) * 3.6deg), transparent 0 360deg),
    /* bottom: remaining arc ensures no gap */
    conic-gradient(from var(--start), var(--sec) 0 360deg);
  -webkit-mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 calc(100% - var(--thickness)));
  mask: radial-gradient(farthest-side, transparent calc(100% - var(--thickness)), #000 calc(100% - var(--thickness)));
}

/* Focus states: dim the other arc */
.donut-css.focus-primary {
  --sec: #cfe3ff;
}

.donut-css.focus-secondary {
  --pri: #aac7ff;
}

/* Map Container */
.map-container {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

.map-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
}

.map-btn {
  flex: 1;
  text-align: center;
  padding: 10px;
  border: none;
  border-radius: 8px;
  font-size: 0.95rem;
  font-weight: 500;
  cursor: pointer;
  text-decoration: none;
  color: white;
  transition: background 0.3s;
}

/* Warna khusus */
.map-btn-blue {
  background: #2162e2;
}

.map-btn-blue:hover {
  background: #174bb5;
}

.map-btn-gray {
  background: #7f8c8d;
}

.map-btn-gray:hover {
  background: #5f6f70;
}

/* Pie Chart */
.pie-chart {
  width: 150px;
  height: 150px;
  border-radius: 50%;
  position: relative;
  background: conic-gradient(var(--color) 0deg calc(var(--percentage) * 3.6deg),
      transparent calc(var(--percentage) * 3.6deg) 360deg);
}

.pie-slice {
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  clip-path: polygon(50% 50%, 100% 0%, 100% 100%);
}

/* Bar Chart */
.bar-chart {
  display: flex;
  align-items: end;
  gap: 15px;
  height: 150px;
  padding: 0 10px;
}

.bar-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.bar {
  width: 100%;
  min-height: 20px;
  border-radius: 4px 4px 0 0;
  transition: all 0.3s ease;
}

.bar-item:hover .bar {
  transform: scaleY(1.1);
}

.bar-item span {
  font-size: 0.8rem;
  color: #7f8c8d;
  font-family: "Poppins", sans-serif;
  font-weight: 500;
}

/* Chart Legend */
.chart-legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend-color {
  width: 12px;
  height: 12px;
  border-radius: 2px;
  flex-shrink: 0;
}

.legend-item span:last-child {
  font-size: 0.8rem;
  color: #7f8c8d;
  font-family: "Poppins", sans-serif;
}

/* Announcement Section */
.announcement-section {
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
}

.announcement-container {
  padding: 0px;
  background: #ffffff;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e7e9f2;
}

.announcement-header {
  background: #fafbff;
  padding: 24px 24px 14px 24px;
  border-bottom: 1px solid #eceff6;
}

.announcement-title {
  display: flex;
  align-items: center;
  gap: 15px;
  margin-bottom: 25px;
}

.announcement-title i {
  background: #2162e2;
  color: rgb(255, 255, 255);
  padding: 12px;
  border-radius: 50%;
  font-size: 18px;
}

.announcement-title h2 {
  font-size: 1.8rem;
  color: #2c3e50;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
  margin: 0;
}

.announcement-nav {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.announcement-tab {
  background: #f4f6fb;
  border: 1px solid #e7eaf4;
  color: #374151;
  padding: 8px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-family: "Poppins", sans-serif;
  font-size: 13px;
  font-weight: 500;
  transition: all 0.2s ease;
}

.announcement-tab:hover {
  border-color: #cfd7ef;
  background: #eef2fb;
}

.announcement-tab.active {
  background: #ffffff;
  color: #1f2937;
  border-color: #cfd7ef;
  box-shadow: 0 2px 8px rgba(17, 24, 39, 0.06);
}

.announcement-content {
  display: block;
  padding: 24px 30px;
}

.announcement-list {
  max-height: 560px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 6px;
}

.announcement-item {
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #eceef3;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(17, 24, 39, 0.05);
  transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease, background .18s ease;
  display: grid;
  grid-template-columns: 84px 160px 1fr;
  gap: 18px;
  align-items: stretch;
  text-decoration: none;
  color: inherit;
  position: relative;
  padding-right: 56px;
}

.announcement-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.08);
  border-color: #d7def3;
  background: #fbfcff;
}

.announcement-item:hover .announcement-title-text {
  color: #1a4bb8;
}

.announcement-item::after {
  content: "\f105";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: #9aa3b2;
  font-size: 16px;
}

.announcement-item::before {
  content: "";
  position: absolute;
  right: 44px;
  top: 50%;
  transform: translateY(-50%);
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #60a5fa;
  opacity: .8;
}

/* Left media strip (speaker image full height) */
.announcement-media {
  width: 80px;
  border-radius: 8px;
  overflow: hidden;
  align-self: stretch;
}

.announcement-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.announcement-date {
  color: #64748b;
  font-family: "Poppins", sans-serif;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-right: 16px;
  border-right: 1px solid #eef1f4;
}

.announcement-date .date-top {
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: .3px;
  text-transform: capitalize;
}

.announcement-date .date-bottom {
  font-size: 0.78rem;
  color: #94a3b8;
  font-weight: 600;
  letter-spacing: .2px;
}

.announcement-body {
  padding-left: 4px;
}

.announcement-title-text {
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
  line-height: 1.35;
}

/* Title row with speaker icon */
.announcement-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
}

.announcement-icon {
  display: none;
}

.announcement-desc {
  color: #6b7280;
  font-size: 0.9rem;
  font-family: "Poppins", sans-serif;
  line-height: 1.55;
  max-width: 80ch;
}

/* Info Graphic */
.info-graphic {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.info-graphic-slider {
  position: relative;
  height: 400px;
}

.info-graphic-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 0.5s ease;
}

.info-graphic-slide.active {
  opacity: 1;
}

.info-graphic-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.info-graphic-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.9);
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  color: #2162e2;
  transition: all 0.3s ease;
}

.info-graphic-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.info-graphic-nav.prev {
  left: 10px;
}

.info-graphic-nav.next {
  right: 10px;
}

.info-graphic-dots {
  position: absolute;
  bottom: 15px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 8px;
  z-index: 10;
}

.info-graphic-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
  transition: all 0.3s ease;
}

.info-graphic-dot.active {
  background: white;
}

/* Announcement Pagination */
.announcement-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  padding: 20px 30px;
  border-top: 1px solid #e9ecef;
}

/* Search bar */
.announcement-search {
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
  padding-bottom: 14px;
  margin-bottom: 6px;
  border-bottom: 1px solid #eef1f4;
  display: flex;
  align-items: center;
  gap: 10px;
}

.announcement-search i {
  color: #94a3b8;
}

.announcement-search input {
  flex: 1;
  border: 1px solid #e5e7eb;
  border-radius: 10px;
  padding: 10px 12px;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
  outline: none;
}

.announcement-search input:focus {
  border-color: #2162e2;
  box-shadow: 0 0 0 3px rgba(33, 98, 226, .12);
}

.announcement-pagination-btn {
  background: white;
  border: 1px solid #e9ecef;
  color: #7f8c8d;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  min-width: 40px;
  text-align: center;
}

.announcement-pagination-btn:hover {
  background: #2162e2;
  color: white;
  border-color: #2162e2;
}

.announcement-pagination-btn.active {
  background: #2162e2;
  color: white;
  border-color: #2162e2;
}

.announcement-pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Services Section */
.services-section {
  padding: 20px 0px;
  max-width: 1200px;
  margin: 0 auto;
  background: transparent;
}

.section-title {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 10px;
  color: #2c3e50;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.section-subtitle {
  text-align: center;
  color: #7f8c8d;
  margin-bottom: 40px;
  font-size: 0.95rem;
  font-weight: 400;
  font-family: "Poppins", sans-serif;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.service-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 22px;
  text-align: left;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
  cursor: pointer;
  border: 1px solid #eceef3;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
}

.service-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
  border-color: #2162e2;
}

.service-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 0 14px 0;
  color: #1e3a8a;
  font-size: 20px;
  background: #f3f6ff;
  border: 1px solid #e8edff;
}

.service-card:nth-child(4n + 1) .service-icon {
  background: white;
}

.service-card:nth-child(4n + 2) .service-icon {
  background: white;
}

.service-card:nth-child(4n + 3) .service-icon {
  background: white;
}

.service-card:nth-child(4n + 4) .service-icon {
  background: white;
}

.service-title {
  font-weight: 600;
  margin-bottom: 6px;
  color: #111827;
  font-family: "Poppins", sans-serif;
  font-size: 1.05rem;
}

.service-desc {
  color: #6b7280;
  font-size: 0.92rem;
  font-family: "Poppins", sans-serif;
  line-height: 1.5;
}

/* Illustration area inside service card */
.service-illustration {
  margin-top: 14px;
  height: 140px;
  border-radius: 14px;
  border: 1px solid #eef1f6;
  background: radial-gradient(100% 100% at 50% 0%, #ffffff 0%, #f7f9fc 55%, #f1f4f9 100%);
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.02), 0 8px 18px rgba(17, 24, 39, 0.04);
  position: relative;
  overflow: hidden;
}

.service-illustration img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: inherit;
}

.service-card {
  display: flex;
  flex-direction: column;
}

.service-card .service-title {
  order: 2;
}

.service-card .service-desc {
  order: 3;
}

.service-card .service-illustration {
  order: 4;
}

/* Illustration variants (no external images) */
.service-illustration.illustration--pill {
  background: radial-gradient(120% 100% at 50% 0%, #ffffff 0%, #f6f8fc 50%, #eef2f9 100%);
}

.service-illustration.illustration--pill::before {
  content: "";
  position: absolute;
  inset: 18% 28% 8% 28%;
  border-radius: 18px;
  background: linear-gradient(180deg, #4f46e5 0%, #1e40af 50%, #0ea5e9 100%);
  box-shadow: 0 20px 38px rgba(59, 130, 246, 0.35), inset 0 -10px 18px rgba(255, 255, 255, 0.2);
}

.service-illustration.illustration--pill::after {
  content: "";
  position: absolute;
  inset: auto 22% 18% 22%;
  height: 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.08);
  filter: blur(8px);
}

.service-illustration .pill-label {
  position: absolute;
  top: 34%;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  font-weight: 600;
  letter-spacing: 1.5px;
  font-size: 0.9rem;
}

.service-illustration.illustration--inbox {
  background: radial-gradient(120% 100% at 50% 0%, #ffffff 0%, #f7f9fc 55%, #f1f4f9 100%);
}

.illustration--inbox i {
  position: absolute;
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  color: #fff;
  box-shadow: 0 12px 24px rgba(17, 24, 39, 0.12), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.illustration--inbox i:nth-child(1) {
  left: 18%;
  top: 26%;
  background: #25D366;
}

.illustration--inbox i:nth-child(2) {
  left: 44%;
  top: 18%;
  background: #0A66C2;
}

.illustration--inbox i:nth-child(3) {
  left: 68%;
  top: 30%;
  background: #1DA1F2;
}

.illustration--inbox i:nth-child(4) {
  left: 56%;
  top: 58%;
  background: #229ED9;
}

.illustration--inbox::before {
  content: "";
  position: absolute;
  left: 18%;
  right: 18%;
  bottom: 16%;
  height: 44%;
  border-radius: 14px;
  background: #ffffff;
  border: 1px solid #e8ecf3;
  box-shadow: 0 10px 24px rgba(17, 24, 39, 0.06);
}

.service-illustration.illustration--dashboard {
  background: radial-gradient(120% 100% at 50% 0%, #ffffff 0%, #f7f9fc 55%, #f1f4f9 100%);
}

.illustration--dashboard::before {
  content: "";
  position: absolute;
  left: 12%;
  top: 20%;
  width: 52%;
  height: 54%;
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 12px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.06);
}

.illustration--dashboard::after {
  content: "";
  position: absolute;
  right: 12%;
  top: 22%;
  width: 32%;
  height: 56%;
  border-radius: 50%;
  background: conic-gradient(#2563eb 0 40%, #9ec5ff 40% 65%, #e5e7eb 65% 100%);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 52%, #000 53%);
  mask: radial-gradient(circle at 50% 50%, transparent 52%, #000 53%);
}

/* Auto-generated illustrations for remaining cards (cycle styles) */
.services-grid .service-card:nth-child(4n+1) .service-illustration:not(.illustration--pill):not(.illustration--inbox):not(.illustration--dashboard) {
  background: radial-gradient(100% 100% at 50% 0%, #ffffff 0%, #f6f8fc 50%, #eef2f9 100%),
    repeating-linear-gradient(to right, rgba(37, 99, 235, .14) 0 6px, transparent 6px 14px);
}

.services-grid .service-card:nth-child(4n+1) .service-illustration::before {
  content: "";
  position: absolute;
  left: 10%;
  right: 10%;
  bottom: 14%;
  height: 34%;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #e8ecf3;
  box-shadow: 0 8px 18px rgba(17, 24, 39, .06);
}

.services-grid .service-card:nth-child(4n+2) .service-illustration:not(.illustration--pill):not(.illustration--inbox):not(.illustration--dashboard) {
  background: radial-gradient(100% 100% at 50% 0%, #ffffff 0%, #f7f9fc 60%, #eef2f7 100%);
}

.services-grid .service-card:nth-child(4n+2) .service-illustration::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 60%;
  height: 60%;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  background: conic-gradient(#3b82f6 0 38%, #93c5fd 38% 60%, #e5e7eb 60% 100%);
  -webkit-mask: radial-gradient(circle at 50% 50%, transparent 52%, #000 53%);
  mask: radial-gradient(circle at 50% 50%, transparent 52%, #000 53%);
}

.services-grid .service-card:nth-child(4n+3) .service-illustration:not(.illustration--pill):not(.illustration--inbox):not(.illustration--dashboard) {
  background: radial-gradient(100% 100% at 50% 0%, #ffffff 0%, #f6f8fc 55%, #eef2f7 100%);
}

.services-grid .service-card:nth-child(4n+3) .service-illustration::before {
  content: "";
  position: absolute;
  left: 20%;
  top: 24%;
  width: 56%;
  height: 48%;
  background: #fff;
  border: 1px solid #e8ecf3;
  border-radius: 10px;
  box-shadow: 0 8px 18px rgba(17, 24, 39, .06);
}

.services-grid .service-card:nth-child(4n+3) .service-illustration::after {
  content: "";
  position: absolute;
  left: 28%;
  top: 34%;
  width: 40%;
  height: 10px;
  background: linear-gradient(to right, #dbeafe, #60a5fa);
  border-radius: 6px;
  box-shadow: 0 10px 24px rgba(96, 165, 250, .35);
}

.services-grid .service-card:nth-child(4n+4) .service-illustration:not(.illustration--pill):not(.illustration--inbox):not(.illustration--dashboard) {
  background: radial-gradient(100% 100% at 50% 0%, #ffffff 0%, #f6f8fc 50%, #eef2f7 100%);
}

.services-grid .service-card:nth-child(4n+4) .service-illustration::before {
  content: "";
  position: absolute;
  left: 18%;
  bottom: 18%;
  width: 64%;
  height: 16px;
  border-radius: 999px;
  background: rgba(0, 0, 0, .06);
  filter: blur(6px);
}

.services-grid .service-card:nth-child(4n+4) .service-illustration::after {
  content: "";
  position: absolute;
  left: 26%;
  top: 24%;
  right: 26%;
  bottom: 32%;
  border-radius: 12px;
  background: linear-gradient(180deg, #eef2ff 0%, #ffffff 100%);
  border: 1px solid #e8ecf3;
  box-shadow: 0 10px 20px rgba(17, 24, 39, .06);
}

@media (max-width: 900px) {
  .service-illustration {
    height: 120px;
  }

  .footer {
    padding-top: 20px;
  }
}

@media (max-width: 480px) {
  .service-illustration {
    height: 110px;
    margin-top: 10px;
  }

}

/* Pelayanan Masyarakat - Responsive */
@media (max-width: 900px) {
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 14px;
  }

}

/* News Section */
.news-section {
  padding: 20px 0px;
  max-width: 1200px;
  margin: 0 auto;
}

.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.news-title {
  font-size: 1.8rem;
  color: #000000;
  font-weight: 600;
  font-family: "Poppins", sans-serif;
}

.news-subtitle {
  color: #7f8c8d;
  font-size: 0.95rem;
  font-weight: 400;
  margin-top: 5px;
}

.news-link {
  color: #2162e2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
}

.news-link:hover {
  color: #1a4bb8;
}

/* Informasi Publik Section */
.info-publik-section {
  padding: 30px 0px;
  max-width: 1200px;
  margin: 0 auto;
}

.info-header {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 20px;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.info-card {
  background: #fff;
  border: 1px solid #eceff4;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.info-card:hover {
  box-shadow: 0 10px 26px rgba(17, 24, 39, 0.08);
  border-color: #e3e8f3;
}

.info-card .info-card-body {
  min-height: 70px;
}

.info-card-body {
  padding: 18px 18px 0 18px;
}

.info-title {
  font-size: 1.05rem;
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
  font-family: "Poppins", sans-serif;
}

.info-desc {
  color: #6b7280;
  font-size: 0.94rem;
  margin-bottom: 10px;
  font-family: "Poppins", sans-serif;
}

.info-media {
  margin: 14px;
  border-radius: 15px;
  height: 200px;
  overflow: hidden;
  border: 1px solid #ffffffff;
  background: #fff;
}

.info-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.info-media iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.info-media--map {
  height: 280px;
}

/* Button overlay di atas gambar dalam info-media */
.info-media--with-btn {
  position: relative;
}

.info-media-btn {
  position: absolute;
  left: 14px;
  bottom: 14px;
  padding: 8px 16px;
  border-radius: 999px;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 0.9rem;
  background: rgba(7, 7, 7, 0.26);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
  transition: background .2s ease, color .2s ease, border-color .2s ease;
}

.info-media-btn:hover {
  background: rgba(0, 0, 0, 0.35);
  border-color: #fff;
}

/* Asymmetric row heights (2 cards per row: one tall, one short) */
.info-card--tall .info-media {
  min-height: 220px;
  height: auto;
  flex: 1 1 auto;
}

.info-card--short .info-media {
  height: 319px;
}

.info-card--full {
  grid-column: 1 / -1;
}

.info-card--tall.info-card .info-media.info-media--map {
  height: 260px;
}

/* Jam kerja embedded in info card */
.jam-kerja--inline {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0;
}

.jam-kerja--inline .jam-list {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.jam-kerja--inline .jam-item {
  background: #fbfbfd;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 3px 6px;
  border-radius: 8px;
  font-size: 11px;
  line-height: 1.15;
}

.jam-kerja--inline .jam-item .day {
  font-weight: 600;
  color: #111827;
}

.jam-kerja--inline .jam-item .time {
  font-weight: 600;
  color: #374151;
}

.jam-kerja--inline .jam-note {
  margin-top: 6px;
  font-size: 10px;
  color: #6b7280;
}

/* highlight current day inside inline card */
.jam-kerja--inline .jam-item.is-today {
  background: #eef4ff;
  border: 1px solid #dbe6ff;
}

.jam-kerja--inline .jam-item.is-today .time {
  color: #1d4ed8;
}

.jam-kerja--inline .jam-item.is-off.is-today {
  background: #fff3f3;
  border-color: #ffd6d6;
}

/* Hide old jam-kerja beside gallery */
.galeri-jam-grid .jam-kerja {
  display: none;
}

@media (max-width: 900px) {
  .info-grid {
    grid-template-columns: 1fr;
  }

  .info-media {
    height: 220px;
  }

  .info-card--tall .info-media,
  .info-card--short .info-media,
  .info-media--map {
    height: 240px;
  }
}

/* Mobile polish for Informasi Publik */
@media (max-width: 600px) {
  .dashboard-link {
    font-size: 0.8rem;
    font-weight: 500;
  }

  .info-publik-section {
    padding: 20px 0;
  }

  .info-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .info-card {
    margin: 0 12px;
    border-radius: 12px;
  }

  .info-card-body {
    padding: 12px 12px 0 12px;
  }

  .info-title {
    font-size: 0.95rem;
  }

  .info-desc {
    font-size: 0.82rem;
  }

  .info-media {
    height: 200px;
    margin: 10px 12px 12px;
    border-radius: 12px;
  }

  .info-media--map {
    height: 240px;
  }

  .info-media-btn {
    padding: 6px 12px;
    font-size: 0.85rem;
    left: 12px;
    bottom: 12px;
    border-radius: 12px;
  }

  /* Banner card: fill the card, remove inner space */
  .info-card--full .info-media {
    height: 240px;
    margin: 0;
    border-radius: 12px;
    border: 0;
  }

  .info-card--full .ip-slider {
    height: 100%;
    border-radius: 10px;
  }
}

/* Info Publik - slider card simple */
.ip-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
  border-radius: 10px;
}

.ip-track {
  display: flex;
  width: 100%;
  height: 100%;
  transition: transform .6s ease;
  position: relative;
  z-index: 1;
}

.ip-item {
  min-width: 100%;
  height: 100%;
}

.ip-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.ip-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: transparent;
  color: #fff;
  border: none;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  cursor: pointer;
  z-index: 20;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
}

.ip-arrow i {
  pointer-events: none;
}

.ip-arrow i {
  color: #ffffff;
  text-shadow: 0 0 4px rgba(0, 0, 0, .6), 0 0 8px rgba(0, 0, 0, .35);
}

.ip-arrow.prev {
  left: 8px;
}

.ip-arrow.next {
  right: 8px;
}

@media (max-width: 600px) {
  .ip-slider {
    height: 180px;
  }
}

/* Tinggikan banner pada card full-width */
.info-card--full .info-media {
  height: 360px;
}

@media (max-width: 900px) {
  .info-card--full .info-media {
    height: 280px;
  }
}

.news-container {
  overflow-x: auto;
  padding-bottom: 20px;
  scrollbar-width: thin;
  scrollbar-color: #2162e2 #f0f0f0;
}

.news-container::-webkit-scrollbar {
  height: 8px;
}

.news-container::-webkit-scrollbar-track {
  background: #f0f0f0;
  border-radius: 4px;
}

.news-container::-webkit-scrollbar-thumb {
  background: #2162e2;
  border-radius: 4px;
}

.news-container::-webkit-scrollbar-thumb:hover {
  background: #1a4bb8;
}

.news-grid {
  display: flex;
  gap: 18px;
  min-width: max-content;
  padding-bottom: 12px;
}

.news-card {
  background: white;
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
  transition: all 0.25s ease;
  border: 1px solid #ecf0f1;
  min-width: 360px;
  max-width: 380px;
  flex-shrink: 0;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.1);
  border-color: #2162e2;
}

.news-image {
  width: 100%;
  height: 220px;
  background: linear-gradient(135deg, #2162e2, #1a4bb8);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 2.2rem;
}

.news-content {
  padding: 22px;
}

.news-date {
  color: #95a5a6;
  font-size: 0.75rem;
  font-weight: 500;
  margin-bottom: 8px;
  font-family: "Poppins", sans-serif;
}

.news-card-title {
  font-weight: 600;
  margin-bottom: 12px;
  color: #2c3e50;
  font-family: "Poppins", sans-serif;
  font-size: 1.15rem;
  line-height: 1.45;
}

.news-card-desc {
  color: #7f8c8d;
  margin-bottom: 16px;
  font-size: 0.95rem;
  font-family: "Poppins", sans-serif;
  line-height: 1.6;
}

.read-more {
  color: #2162e2;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.read-more:hover {
  color: #1a4bb8;
}

/* News Pagination */
.news-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 20px;
}

.pagination-btn {
  background: #e9e9e9;
  border: 1px solid #dadada;
  color: #6b6b6b;
  padding: 8px 12px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.3s ease;
  font-family: "Poppins", sans-serif;
  font-size: 0.9rem;
  min-width: 40px;
  text-align: center;
}

.pagination-btn:hover {
  background: #2162e2;
  color: white;
  border-color: #2162e2;
}

.pagination-btn.active {
  background: #2162e2;
  color: white;
  border-color: #2162e2;
}

.pagination-btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

/* Footer */
.footer {
  background: #2c3e50;
  color: white;
  padding: 50px 20px 20px;
  margin-top: 10px;
}

.footer-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 2fr 1fr 2fr;
  gap: 60px;
}

.footer-map iframe {
  width: 100%;
  height: 200px;
  border: 0;
  border-radius: 12px;
}

.footer-address {
  margin-top: 12px;
  color: #bdc3c7;
  line-height: 1.6;
}

.footer-section h3 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 20px;
  font-family: "Poppins", sans-serif;
}

.footer-section ul {
  list-style: none;
}

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

.footer-section a {
  color: #bdc3c7;
  text-decoration: none;
  transition: color 0.3s ease;
  font-family: "Poppins", sans-serif;
}

.footer-section a:hover {
  color: white;
}

.social-icons {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: #34495e;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  text-decoration: none;
  transition: all 0.3s ease;
}

.social-icon:hover {
  background: #2162e2;
  transform: translateY(-2px);
}

.footer-bottom {
  border-top: 1px solid #34495e;
  margin-top: 40px;
  padding-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 20px;
}

.footer-bottom-left {
  display: flex;
  gap: 30px;
  flex-wrap: wrap;
}

.footer-bottom a {
  color: #bdc3c7;
  text-decoration: none;
  font-size: 0.9rem;
  transition: color 0.3s ease;
}

.footer-bottom a:hover {
  color: white;
}

.footer-bottom-right {
  display: flex;
  align-items: center;
  gap: 20px;
}

.footer-logo {
  display: flex;
  align-items: center;
  font-size: 0.9rem;
}

.footer-logo-icon {
  width: 30px;
  height: 30px;
  background: #2162e2;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 14px;
}

/* Bottom Banner */
.bottom-banner {
  color: white;
  text-align: center;
  margin-left: auto;
  margin-right: auto;
}

.bottom-banner h3 {
  font-size: 1.8rem;
  font-weight: 600;
  margin-bottom: 15px;
  font-family: "Poppins", sans-serif;
}

.bottom-banner p {
  font-size: 1rem;
  opacity: 0.9;
  font-family: "Poppins", sans-serif;
}

/* Animations */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Responsive Design */
@media (max-width: 768px) {
  .nav-menu {
    display: none;
  }

  .mobile-menu-btn {
    display: block;
  }

  .hero {
    height: 70vh;
    margin-top: 70px;
  }

  .hero-content {
    padding: 0 30px;
    /* sejajarkan dengan padding section statistik */
  }

  .hero h1 {
    font-size: 1.8rem;
    /* kecilkan sedikit di mobile */
  }

  .hero p {
    font-size: 0.9rem;
  }

  .stats-card {
    grid-template-columns: repeat(2, 1fr);
    padding: 30px 20px;
    gap: 20px;
  }

  .services-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }

  .news-grid {
    display: flex;
    gap: 20px;
    overflow-x: auto;
  }

  .news-header {
    flex-direction: column;
    gap: 20px;
    text-align: center;
  }

  .search-bar {
    padding: 15px;
    top: 70px;
  }

  .search-bar-container {
    gap: 10px;
  }

  .search-bar-button {
    padding: 10px 15px;
    font-size: 12px;
  }

  .services-section,
  .news-section {
    padding: 60px 20px;
  }

  .footer-container {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .footer-bottom {
    flex-direction: column;
    text-align: center;
  }

  .hero-nav {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .hero-nav.prev {
    left: 10px;
  }

  .hero-nav.next {
    right: 10px;
  }

  .news-pagination {
    gap: 8px;
  }

  .pagination-btn {
    padding: 6px 10px;
    font-size: 0.8rem;
    min-width: 35px;
  }

  /* Statistics Dashboard Tablet */
  .statistics-dashboard {
    padding: 50px 20px;
  }

  .dashboard-scroll {
    gap: 20px;
  }

  .stat-card {
    min-width: 300px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }

  .section-title,
  .news-title,
  .dashboard-title,
  .transparansi-header h2,
  .pegawai-header h2,
  .galeri-header h3 {
    font-size: 1.3rem;
  }

  /* Samakan style Transparansi dengan Kabar Desa Terkini (mobile) */
  .transparansi-header h2 {
    color: #000000;
  }

  .transparansi-desc {
    font-size: 0.95rem;
    color: #7f8c8d;
  }

  .transparansi-link {
    font-size: 0.95rem;
  }

  .stats-card {
    margin: 0 10px;
  }

  .info-banner {
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    margin: 20px 10px;
    padding: 10px;
  }

  .info-tag {
    margin-bottom: 8px;
    margin-left: 0;
    align-self: flex-start;
    text-align: left;
    border-radius: 20px;
    font-size: 0.9rem;
    padding: 7px 18px;
  }

  .running-text {
    width: 100%;
    margin-left: 0;
    margin-right: 0;
    text-align: left;
  }

  .bottom-slide {
    height: 180px;
  }

  .search-bar {
    padding: 10px;
    top: 70px;
  }

  .search-bar-container {
    gap: 8px;
  }

  .search-bar-button {
    padding: 8px 12px;
    font-size: 11px;
  }

  .announcement-content {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .announcement-nav {
    flex-direction: column;
    gap: 8px;
  }

  .announcement-tab {
    padding: 10px 15px;
    font-size: 13px;
  }

  .info-graphic-slider {
    height: 300px;
  }

  .info-graphic-nav {
    width: 35px;
    height: 35px;
    font-size: 14px;
  }

  /* Statistik Desa: scroll horizontal, 1 baris */
  .stats-card {
    display: flex;
    flex-direction: row;
    gap: 12px;
    overflow-x: auto;
    padding: 16px 8px;
    min-width: max-content;
    scrollbar-width: thin;
    scrollbar-color: #2162e2 #f0f0f0;
  }

  .stat-item {
    min-width: 160px;
    flex: 0 0 auto;
    padding: 7px;
    font-size: 0.75rem;
    scroll-snap-align: start;
  }

  .stats-card::-webkit-scrollbar {
    height: 8px;
  }

  .stats-card::-webkit-scrollbar-thumb {
    background: #2162e2;
    border-radius: 4px;
  }

  /* Statistik Penduduk (gambar di atas): 2 baris grid, kecil */
  .stats-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px;
    padding: 12px 20px;
    min-width: 0;
    overflow-x: unset;
    box-sizing: border-box;
  }

  .stat-item {
    gap: 8px;
    padding: 8px 4px;
    font-size: 0.75rem;
  }

  .stat-icon {
    font-size: 22px;
  }

  .stat-number {
    font-size: 1rem;
  }

  .stat-label {
    font-size: 0.7rem;
  }

  /* Pelayanan Masyarakat (mobile): 1 kolom, padding nyaman */
  .services-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .service-card {
    padding: 14px;
    font-size: 0.9rem;
    border-radius: 14px;
  }

  .service-title {
    font-size: 0.95rem;
    margin-bottom: 4px;
  }

  .service-desc {
    font-size: 0.8rem;
  }

  .service-icon {
    width: 34px;
    height: 34px;
    font-size: 14px;
    margin-bottom: 8px;
  }
}


/* Transparansi Anggaran Desa - Layout & Animasi */
.transparansi-section {
  padding: 150px 0 0 0;
  max-width: 1200px;
  margin: 0 auto;
}

.transparansi-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
  gap: 12px;
}

.transparansi-header h2 {
  font-size: 1.8rem;
  font-weight: 600;
  color: #222;
  letter-spacing: -1px;
}

.transparansi-desc {
  margin-top: 6px;
  color: #555;
  font-size: 0.95rem;
}

.transparansi-link {
  color: #2162e2;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s ease;
  font-family: "Poppins", sans-serif;
  font-size: 0.95rem;
}

.transparansi-link:hover {
  color: #1a4bb8;
}

.transparansi-grid {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.transparansi-row {
  display: flex;
  gap: 24px;
}

.transparansi-row:first-child .transparansi-card {
  flex: 1 1 0;
  min-width: 0;
}

.transparansi-row:last-child .transparansi-card {
  flex: 1 1 0;
  min-width: 0;
}

.transparansi-card {
  background: #fff;
  border-radius: 16px;
  border: 1px solid #e0e0e0;
  padding: 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-height: 260px;
  position: relative;
  animation: fadeInUp 0.8s;
}

.card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.2rem;
  font-weight: 600;
  color: #000000ff;
  margin-bottom: 50px;
}

.card-header i {
  font-size: 28px;
  color: #000000ff;
}

.transparansi-card {
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.transparansi-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(159, 159, 159, 0.12);
  border-color: #0b63f6;
}

.card-header i {
  background: #ffffffff;
  padding: 10px;
  border-radius: 50%;
  box-shadow: inset 0 0 0 1px #ffffffff;
}

.card-title {
  letter-spacing: -.2px;
}

.card-value.highlight {
  color: #0b63f6;
}

.card-value {
  transition: color .2s ease;
}

.transparansi-card:hover .card-value.highlight {
  color: #0849ba;
}

.card-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: #222;
}

.card-content-2col,
.card-content-3col {
  display: flex;
  gap: 0;
  width: 100%;
  height: 100%;
}

.card-content-2col .card-col,
.card-content-3col .card-col {
  flex: 1;
  padding: 0 18px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-content-2col .card-col:first-child,
.card-content-3col .card-col:first-child {
  padding-left: 0;
}

.card-content-2col .card-col:last-child,
.card-content-3col .card-col:last-child {
  padding-right: 0;
}

.card-content-single {
  padding: 0 8px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.card-divider {
  width: 2px;
  background: #e0e0e0;
  margin: 0 0px;
  border-radius: 2px;
  align-self: stretch;
  min-height: 120px;
}

.card-subtitle {
  font-size: 1rem;
  font-weight: 600;
  color: #222;
  margin-bottom: 6px;
}

.card-label {
  font-size: 0.95rem;
  color: #666;
  font-weight: 600;
  margin-bottom: 2px;
}

.card-value {
  font-size: 1.05rem;
  font-weight: 500;
  color: #222;
  margin-bottom: 4px;
}

.card-value.highlight {
  color: #2162e2;
  font-weight: 600;
}

.card-bar {
  background: #e3f2fd;
  border-radius: 6px;
  height: 8px;
  margin: 10px 0 2px 0;
  position: relative;
  overflow: hidden;
  width: 100%;
}

.card-bar span {
  display: block;
  height: 100%;
  background: #2162e2;
  border-radius: 6px;
  position: absolute;
  left: 0;
  top: 0;
  transition: width 1.2s cubic-bezier(.77, 0, .18, 1);
}

.card-percent {
  font-size: 0.95rem;
  color: #666;
  font-weight: 600;
  margin-bottom: 8px;
  text-align: right;
}

/* Responsive */
@media (max-width: 900px) {
  .transparansi-row {
    flex-direction: column;
    gap: 18px;
  }

  .transparansi-card {
    min-height: 0;
  }
}

@media (max-width: 600px) {
  .transparansi-section {
    padding: 14px 12px;
    /* beri sedikit jarak kiri-kanan */
  }

  .transparansi-header {
    flex-direction: column;
    align-items: center;
    /* judul dan link di tengah */
    gap: 4px;
    text-align: center;
  }

  .transparansi-header h2 {
    font-size: 1.05rem;
    font-weight: 600;
    letter-spacing: 0;
  }

  .transparansi-desc {
    font-size: 0.9rem;
    color: #666;
    margin-top: 2px;
  }

  .transparansi-link {
    align-self: center;
    /* pusatkan link */
  }

  .transparansi-grid {
    gap: 10px;
  }

  .transparansi-row {
    flex-direction: column;
    gap: 10px;
  }

  /* Layout: pelaksanaan, pendapatan, pembelanjaan satu per baris */
  .transparansi-row:first-child {
    flex-direction: column;
    gap: 10px;
  }

  .transparansi-row:first-child .pelaksanaan-card {
    max-width: 100%;
    flex: 1 1 100%;
    margin-bottom: 0;
  }

  .transparansi-row:first-child .pendapatan-card {
    max-width: 100%;
    flex: 1 1 100%;
    margin-bottom: 0;
  }

  .transparansi-row:last-child .pembelanjaan-card {
    max-width: 100%;
    flex: 1 1 100%;
    margin-bottom: 0;
  }

  .transparansi-card {
    padding: 10px 10px;
    /* sedikit padding kiri-kanan biar rapi */
    min-height: 0;
    border-radius: 10px;
    gap: 10px;
  }

  .card-header {
    font-size: 0.9rem;
    margin-bottom: 6px;
  }

  .card-header i {
    font-size: 18px;
  }

  .card-title {
    font-size: 0.9rem;
  }

  /* Conflicting rule removed: .card-content-2col, .card-content-3col forced column direction */

  .card-col {
    padding: 0 4px !important;
    margin-bottom: 10px;
    border-bottom: 1px solid #f0f0f0;
    border-radius: 0;
  }

  .card-col:last-child {
    border-bottom: none;
  }

  .card-divider {
    display: none !important;
  }

  .card-subtitle {
    font-size: 0.75rem;
    margin-bottom: 3px;
  }

  .card-label {
    font-size: 0.7rem;
    margin-bottom: 1px;
  }

  .card-value {
    font-size: 0.8rem;
    margin-bottom: 2px;
  }

  .card-percent {
    font-size: 0.7rem;
    margin-bottom: 4px;
  }
}

/* Pegawai Section */
.pegawai-section {
  background: #2162e2;
  padding: 32px 0 24px 0;
  margin-top: 40px;
}

.pegawai-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: #fff;
  margin-bottom: 18px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  gap: 12px;
}

.pegawai-header h2 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #fff;
}

.pegawai-link {
  color: #fff;
  font-size: 0.9rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s ease;
  background: transparent;
  /* hapus shape */
  padding: 0;
  /* hapus padding */
  border-radius: 0;
  /* hapus rounded */
  margin-top: 2px;
}

.pegawai-link:hover {
  color: #e6ecff;
  /* hanya ubah warna, tanpa shape */
}

.pegawai-slider-wrapper {
  display: flex;
  align-items: flex-start;
  gap: 0;
  max-width: 1200px;
  margin: 0 auto;
  position: relative;
}

/* Deskripsi Pegawai */
.pegawai-desc {
  max-width: 1200px;
  margin: 6px auto 14px auto;
  color: #ffffff;
  opacity: 0.9;
  font-size: 0.95rem;
  text-align: left;
}

/* Runner marquee: auto scroll loop */
.pegawai-runner {
  overflow-x: auto;
  overflow-y: hidden;
  flex: 1;
  margin: 0 12px;
  min-width: 0;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  cursor: grab;
  padding-bottom: 14px;
  /* beri jarak dari scrollbar ke kartu */
  /* sembunyikan scrollbar namun tetap dapat discroll */
  scrollbar-width: none;
  /* Firefox */
  -ms-overflow-style: none;
  /* IE/Edge legacy */
}

.pegawai-runner:active {
  cursor: grabbing;
}

/* WebKit */
.pegawai-runner::-webkit-scrollbar {
  display: none;
  width: 0;
  height: 0;
}

.pegawai-runner::-webkit-scrollbar-track {
  display: none;
}

.pegawai-runner::-webkit-scrollbar-thumb {
  display: none;
}

.pegawai-track {
  display: flex;
  gap: 14px;
  width: max-content;
  animation: pegawaiScroll 40s linear infinite;
}

.pegawai-track:hover {
  animation-play-state: paused;
}

.pegawai-track.paused {
  animation-play-state: paused;
}

@keyframes pegawaiScroll {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-50%);
  }
}

/* Card pertama sticky di kiri - ukuran lebih besar */
.pegawai-card-sticky {
  position: sticky;
  left: 0;
  z-index: 2;
  background: linear-gradient(135deg, #e3f2fd 70%, #f8faff 100%);
  box-shadow: 0 8px 32px rgba(33, 98, 226, 0.12);
  border-radius: 22px;
  min-width: 220px;
  max-width: 240px;
  margin-right: 20px;
  flex-shrink: 0;
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Card lainnya scroll horizontal */
.pegawai-slider {
  display: flex;
  gap: 14px;
  overflow-x: auto;
  padding: 0 0 24px 0;
  scrollbar-width: thin;
  scrollbar-color: #f0f0f0 #2162e2;
  flex: 1;
  margin: 0 12px;
  min-width: 0;
  cursor: grab;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.pegawai-slider:active {
  cursor: grabbing;
}

.pegawai-slider::-webkit-scrollbar {
  height: 8px;
}

.pegawai-slider::-webkit-scrollbar-track {
  background: #8c0808ff;
  border-radius: 4px;
}

.pegawai-slider::-webkit-scrollbar-thumb {
  background: #2162e2;
  border-radius: 4px;
}

.pegawai-slider::-webkit-scrollbar-thumb:hover {
  background: #1a4bb8;
}

/* Card style tetap, tanpa animasi zoom */
.pegawai-card {
  background: #000;
  border-radius: 22px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.18);
  border: none;
  min-width: 200px;
  max-width: 220px;
  width: 100%;
  position: relative;
  display: block;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  scroll-snap-align: start;
  transform-origin: center center;
  will-change: transform;
  aspect-ratio: 2 / 3;
}

.pegawai-card img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 22px;
  transition: transform 0.4s ease, opacity 0.2s ease;
}

.pegawai-card::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 55%, rgba(0, 0, 0, 0.35) 78%, rgba(0, 0, 0, 0.6) 100%);
  pointer-events: none;
}

/* Ensure consistent spacing for name/role */
.pegawai-info {
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 14px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  color: #fff;
  z-index: 1;
}

/* Hover: zoom in (tidak naik ke atas) */
.pegawai-card:hover {
  transform: scale(1.04);
  box-shadow: 0 26px 80px rgba(0, 0, 0, 0.22);
}

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

/* Responsive */
@media (max-width: 900px) {
  .pegawai-slider {
    gap: 10px;
    padding-bottom: 10px;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: #f0f0f0 #2162e2;
  }
}

/* Additional responsive tuning for new card style */
@media (max-width: 900px) {
  .pegawai-card img {
    height: 200px;
  }
}

@media (max-width: 600px) {
  .pegawai-slider {
    gap: 8px;
    padding-bottom: 8px;
    margin: 0;
    scrollbar-width: thin;
    scrollbar-color: #f0f0f0 #2162e2;
  }
}

@media (max-width: 600px) {
  .pegawai-card {
    min-width: 160px;
    max-width: 170px;
  }

  .pegawai-card img {
    height: 100%;
  }

  .pegawai-card .pegawai-name {
    font-size: 0.9rem;
  }

  .pegawai-card .pegawai-role {
    font-size: 0.6rem;
    padding: 6px 10px;
  }
}

/* Pegawai Card: Nama lebih besar, keterangan lebih kecil, ukuran card sama */
.pegawai-card .pegawai-name {
  font-size: 0.9rem;
  font-weight: 500;
  color: #ffffff;
  letter-spacing: 0.2px;
  text-shadow: 0 2px 6px rgba(0, 0, 0, 0.35);
  font-family: "Poppins", sans-serif;
}

.pegawai-card .pegawai-role {
  font-size: 0.6rem;
  color: rgba(255, 255, 255, 0.9);
  font-family: "Poppins", sans-serif;
  padding: 6px 10px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06) 0%, rgba(255, 255, 255, 0.08) 100%);
  border: 1px solid rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

/* Responsive */
@media (max-width: 600px) {
  .pegawai-card .pegawai-name {
    font-size: 0.95rem;
  }

  .pegawai-card .pegawai-role {
    font-size: 0.6rem;
    margin-bottom: 6px;
  }
}

/* Mobile layout: Kepala Desa di atas, pegawai lain di bawah; kecilkan font */
@media (max-width: 768px) {
  .pegawai-header {
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    gap: 4px;
    margin-bottom: 12px;
  }

  .pegawai-desc {
    text-align: center;
  }

  .pegawai-slider-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 12px;
  }

  .pegawai-card-sticky {
    position: relative;
    min-width: 100%;
    max-width: 100%;
    width: 100%;
    margin-right: 0;
  }

  .pegawai-runner {
    width: 100%;
    margin: 0;
    padding-bottom: 10px;
  }

  .pegawai-track {
    gap: 10px;
  }

  .pegawai-card {
    min-width: 150px;
    max-width: 160px;
  }

  /* gunakan rasio 2:3, gambar isi penuh */
  .pegawai-card img {
    height: 100%;
  }

  .pegawai-card .pegawai-name {
    font-size: 0.85rem;
  }

  .pegawai-card .pegawai-role {
    font-size: 0.58rem;
  }
}

/* Galeri Jam Section */
.galeri-jam-section {
  background: transparent;
  /* samakan tampilan seperti section berita */
  padding: 20px 0;
  /* samakan ukuran/padding dengan .news-section */
}

.galeri-jam-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 28px;
  max-width: 1200px;
  margin: 0 auto;
  align-items: stretch;
}

.galeri-video {
  background: #fff;
  border-radius: 16px;
  padding: 32px 28px;
  border: 1.5px solid #ececec;
  display: flex;
  flex-direction: column;
  height: 100%;
}

/* Infografis slider card on the right */
.infografis-card {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  border: 1.5px solid #ececec;
  display: flex;
  flex-direction: column;
  gap: 12px;
  height: 100%;
}

.infografis-header h3 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
  margin: 0 0 6px 0;
  font-family: "Poppins", sans-serif;
}

.infografis-slider {
  position: relative;
  width: 100%;
  border-radius: 16px;
  overflow: hidden;
  background: #000;
  flex: 1 1 auto;
  /* isi tinggi card agar sejajar galeri */
  min-height: 0;
  cursor: zoom-in;
}

.infografis-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity .4s ease;
}

.infografis-slide.active {
  opacity: 1;
}

.infografis-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.infografis-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
}

.infografis-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d1d5db;
  cursor: pointer;
  transition: background .2s ease;
}

.infografis-dot.active {
  background: #2162e2;
}

@media (max-width: 900px) {
  .infografis-card {
    padding: 18px 12px;
    border-radius: 16px;
  }

  /* Ensure infografis slider has height on mobile */
  .infografis-slider {
    min-height: 240px;
    height: 240px;
  }

  /* Add horizontal margins for cards on tablet/mobile widths */
  .galeri-video,
  .infografis-card,
  .jam-kerja {
    margin-left: 12px;
    margin-right: 12px;
  }

  /* Also give each video card breathing space on mobile */
  .galeri-card {
    margin-left: 12px;
    margin-right: 12px;
  }

  /* General card sections: add side gutters for tidy layout */
  .stat-card,
  .info-card,
  .transparansi-card,
  .announcement-item,
  .service-card {
    margin-left: 12px;
    margin-right: 12px;
  }
}

@media (max-width: 600px) {

  /* Slightly smaller on small phones */
  .infografis-slider {
    min-height: 200px;
    height: 200px;
  }

  /* Tighter margins on small phones */
  .galeri-video,
  .infografis-card,
  .jam-kerja {
    margin-left: 10px;
    margin-right: 10px;
  }

  .galeri-card {
    margin-left: 10px;
    margin-right: 10px;
  }

  .stat-card,
  .info-card,
  .transparansi-card,
  .announcement-item,
  .service-card {
    margin-left: 0px;
    margin-right: 0px;
  }
}

.galeri-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 18px;
}

.galeri-header h3 {
  font-size: 1.25rem;
  /* seragam dengan Jam Kerja */
  font-weight: 600;
  color: #222;
  margin-bottom: 0;
}

.galeri-link {
  color: #2162e2;
  font-size: 1rem;
  text-decoration: none;
  font-weight: 500;
  transition: color 0.3s;
}

.galeri-link:hover {
  color: #1a4bb8;
}

.galeri-list {
  /* 1 baris 2 video */
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.galeri-card {
  position: relative;
  background: #fff;
  border: 1px solid #eeeeee;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(17, 24, 39, 0.06);
  transition: transform .2s ease, box-shadow .2s ease;
}

/* Ensure YouTube embeds are responsive on all breakpoints */
.galeri-card .video-wrapper {
  width: 100%;
  aspect-ratio: 16/9;
  margin: 0;
  border-radius: 12px;
  overflow: hidden;
  background: #000;
  position: relative;
}

.galeri-card iframe {
  width: 100%;
  height: 100%;
  border: 0;
  display: block;
}

.galeri-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 34px rgba(17, 24, 39, 0.10);
}

/* Minimal overlay: only play button, no text */
.galeri-overlay {
  position: absolute;
  inset: 0;
  display: none;
}

.galeri-overlay.minimal {
  display: none;
}

.overlay-play {
  display: none;
}

.galeri-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 18px;
  margin-bottom: 18px;
  box-shadow: 0 2px 12px rgba(33, 98, 226, 0.10);
}

.galeri-meta {
  display: none;
}

.meta-title,
.meta-row,
.meta-pill,
.meta-link {
  display: none;
}

.galeri-title {
  font-weight: 600;
  font-size: 1.15rem;
  color: #222;
  margin-bottom: 6px;
  font-family: "Poppins", sans-serif;
}

.galeri-desc {
  font-size: 0.95rem;
  color: #888;
  font-family: "Poppins", sans-serif;
  margin-bottom: 0;
}

/* Jam Kerja */
.jam-kerja {
  background: #fff;
  border-radius: 16px;
  padding: 24px 20px;
  box-shadow: 0 8px 22px rgba(17, 24, 39, 0.06);
  border: 1px solid #ececec;
  width: 100%;
  height: fit-content;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-self: start;
}

.jam-header {
  font-size: 1.25rem;
  font-weight: 600;
  color: #222;
  margin: 0;
  font-family: "Poppins", sans-serif;
}

/* New list layout */
.jam-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.jam-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 12px;
  border: 1px solid #eef0f5;
  border-radius: 12px;
  background: #fbfbfd;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.jam-item .day {
  font-weight: 600;
  color: #1f2937;
}

.jam-item .time {
  font-weight: 500;
  color: #4b5563;
  background: #eef2ff;
  border: 1px solid #e3e9ff;
  padding: 6px 10px;
  border-radius: 999px;
  font-size: .9rem;
}

.jam-item:hover {
  background: #ffffff;
  transform: translateY(-1px);
}

.jam-item.is-today {
  border-color: #dbe6ff;
  background: #f6f9ff;
}

.jam-item.is-today .time {
  background: #eaf0ff;
  color: #1d4ed8;
}

.jam-item.is-off {
  border-color: #ffe4e6;
  background: #fff8f8;
}

.jam-item.is-off .time {
  background: #fff1f2;
  color: #e03131;
  border-color: #ffe2e5;
}

.jam-note {
  font-size: 0.9rem;
  color: #6b7280;
  display: flex;
  align-items: center;
  gap: 8px;
}

.legend.live {
  width: 8px;
  height: 8px;
  background: #22c55e;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 0 3px rgba(34, 197, 94, .2);
}

/* Responsive */
@media (max-width: 900px) {
  .galeri-list {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .galeri-card {
    border-radius: 16px;
  }

  .galeri-card img {
    height: 120px;
    border-radius: 12px;
  }

  .galeri-video,
  .jam-kerja {
    padding: 18px 12px;
    border-radius: 16px;
  }

  .jam-header {
    font-size: 1.1rem;
  }

  .jam-list {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .galeri-jam-section {
    padding: 10px 0;
    max-width: 100vw;
  }

  .galeri-jam-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    align-items: stretch;
    max-width: 100vw;
    margin: 0 auto;
  }

  .galeri-video,
  .jam-kerja {
    padding: 12px 12px;
    border-radius: 8px;
    width: 100%;
    margin: 0;
    box-sizing: border-box;
  }

  .galeri-header h3 {
    font-size: 1rem;
  }

  .galeri-list {
    grid-template-columns: 1fr;
    gap: 12px;
    width: 100%;
    justify-items: center;
  }

  .galeri-list {
    grid-auto-columns: 88vw;
    gap: 10px;
    width: 100%;
    justify-items: center;
  }

  /* Center each video card with a little side gutter */
  .galeri-card {
    width: calc(100% - 24px);
    min-width: 0;
    max-width: 640px;
    padding: 0;
    margin: 0 12px 12px;
    box-sizing: border-box;
  }

  /* Youtube video responsive */
  .galeri-card .video-wrapper {
    width: 100%;
    aspect-ratio: 16/9;
    margin-bottom: 0;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
    display: block;
  }

  .galeri-card iframe {
    width: 100%;
    height: 100%;
    border: none;
    display: block;
    border-radius: 12px;
  }

  .galeri-title {
    font-size: 0.9rem;
    margin-bottom: 4px;
  }

  .galeri-desc {
    font-size: 0.7rem;
  }

  /* Jam kerja card kiri kanan sama rata */
  .jam-kerja {
    width: 100%;
    margin: 0;
    border-radius: 8px;
    box-sizing: border-box;
    align-self: stretch;
  }

  .jam-header {
    font-size: 0.85rem;
    margin-bottom: 6px;
    text-align: left;
  }

  .jam-list {
    grid-template-columns: 1fr;
  }

  .jam-item {
    padding: 10px 12px;
  }
}

/* Card Pelaksanaan dan Pendapatan: 70% : 30% */
.transparansi-row:first-child {
  display: flex;
  gap: 24px;
}

.transparansi-row:first-child .pelaksanaan-card {
  flex: 0 0 68%;
  max-width: 68%;
}

.transparansi-row:first-child .pendapatan-card {
  flex: 0 0 30%;
  max-width: 30%;
}

/* Responsive */
@media (max-width: 900px) {
  .transparansi-row:first-child {
    flex-direction: column;
    gap: 18px;
  }

  .transparansi-row:first-child .pelaksanaan-card,
  .transparansi-row:first-child .pendapatan-card {
    max-width: 100%;
    flex: 1 1 100%;
  }
}


/* --- Galeri Video: overlay redesign & hover --- */
.galeri-list {
  gap: 18px;
}

.galeri-card {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 14px 30px rgba(17, 24, 39, 0.08);
  transition: transform .25s ease, box-shadow .25s ease;
}

.galeri-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 20px 36px rgba(17, 24, 39, 0.10);
}

.galeri-card .video-wrapper {
  margin: 0;
  border-radius: 18px;
  position: relative;
}

.galeri-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 16px;
  background: linear-gradient(0deg, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0.25) 42%, rgba(0, 0, 0, 0) 70%);
  pointer-events: none;
}

.galeri-overlay .overlay-meta {
  margin-bottom: 10px;
}

.galeri-overlay .galeri-title {
  color: #fff;
  font-size: 1.15rem;
  font-weight: 600;
  margin: 0 0 2px 0;
}

.galeri-overlay .galeri-desc {
  color: rgba(255, 255, 255, .88);
  font-size: 0.95rem;
  margin: 0;
}

.galeri-cta {
  align-self: flex-start;
  pointer-events: auto;
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  padding: 10px 14px;
  font-size: 0.95rem;
  text-decoration: none;
  font-weight: 500;
  backdrop-filter: blur(4px);
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.galeri-cta .cta-arrow {
  margin-left: 6px;
  opacity: .9;
}

.galeri-cta:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: rgba(255, 255, 255, 0.4);
  transform: translateY(-1px);
}

/* Jam Kerja: tidy dashboard look */
.jam-kerja {
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(17, 24, 39, 0.06);
}

.jam-header {
  font-size: 1.35rem;
}

.jam-table {
  border-spacing: 0 10px;
}

.jam-table th {
  background: #f7f9ff;
  color: #1d4ed8;
  border: 1px solid #e6ecff;
}

.jam-table td {
  background: #fbfbfb;
}

.jam-table .libur td {
  background: #fff2f2;
  color: #e03131;
}

@media (max-width: 900px) {
  .galeri-list {
    gap: 16px;
  }

  .galeri-card {
    border-radius: 16px;
  }

  .galeri-card .video-wrapper {
    border-radius: 16px;
  }
}

@media (max-width: 600px) {
  .galeri-overlay .galeri-title {
    font-size: 0.98rem;
  }

  .galeri-overlay .galeri-desc {
    font-size: 0.8rem;
  }

  .galeri-cta {
    padding: 8px 12px;
    font-size: 0.86rem;
    border-radius: 10px;
  }
}

/* Extra responsive polish for all sizes */
.galeri-jam-grid {
  max-width: 1200px;
  width: 100%;
}

@media (min-width: 1400px) {
  .galeri-list {
    grid-auto-columns: minmax(300px, 320px);
    gap: 18px;
  }

  .overlay-play {
    width: 44px;
    height: 44px;
  }
}

@media (max-width: 1200px) and (min-width: 901px) {
  .galeri-list {
    grid-auto-columns: minmax(260px, 300px);
  }

  .galeri-header h3 {
    font-size: 1.2rem;
  }
}

@media (max-width: 480px) {
  .galeri-list {
    grid-auto-columns: 92vw;
  }

  .overlay-play {
    width: 36px;
    height: 36px;
  }
}

/* Announcement mobile tweaks */
@media (max-width: 600px) {
  .announcement-content {
    padding: 16px;
  }

  .announcement-item {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .announcement-media {
    width: 100%;
    height: 140px;
  }

  .announcement-date {
    flex-direction: row;
    align-items: center;
    border-right: 0;
    padding-right: 0;
    gap: 8px;
  }

  .announcement-body {
    padding-left: 0;
  }
}

/* Jam Kerja: compact spacing and smaller typography */
.jam-kerja {
  padding: 16px 16px;
  gap: 8px;
}

.jam-header {
  font-size: 1.05rem;
  margin-bottom: 4px;
}

.jam-list {
  gap: 6px;
}

.jam-item {
  padding: 8px 10px;
}

.jam-item .time {
  padding: 4px 8px;
  font-size: 0.85rem;
}

.jam-note {
  font-size: 0.85rem;
}

@media (max-width: 600px) {
  .jam-kerja {
    padding: 14px;
  }

  .jam-header {
    font-size: 1rem;
  }

  .jam-item {
    padding: 7px 9px;
  }

  .jam-item .time {
    font-size: 0.82rem;
  }

  .jam-note {
    font-size: 0.82rem;
  }
}

/* End of file */
/* Override: show only the image in service illustration (no overlay) */
.services-grid .service-illustration {
  background: none !important;
  box-shadow: none !important;
  border: 0 !important;
}

.services-grid .service-illustration::before,
.services-grid .service-illustration::after,
.services-grid .illustration--inbox::before,
.services-grid .illustration--dashboard::before,
.services-grid .illustration--dashboard::after {
  content: none !important;
  display: none !important;
}

.services-grid .illustration--inbox i {
  display: none !important;
}

/* News: compact layout on small screens */
@media (max-width: 600px) {
  .news-grid {
    gap: 12px;
  }

  .news-card {
    min-width: 240px;
    max-width: 260px;
    border-radius: 10px;
  }

  .news-image {
    height: 140px;
    font-size: 1.6rem;
  }

  .news-content {
    padding: 14px;
  }

  .news-date {
    font-size: 0.7rem;
  }

  .news-card-title {
    font-size: 0.95rem;
    margin-bottom: 8px;
  }

  .news-card-desc {
    font-size: 0.8rem;
    margin-bottom: 12px;
    line-height: 1.45;
  }

  .news-link {
    font-size: 0.9rem;
  }
}

@media (max-width: 480px) {
  .news-card {
    min-width: 220px;
    max-width: 240px;
  }

  .news-image {
    height: 130px;
    font-size: 1.4rem;
  }

  .news-card-title {
    font-size: 0.9rem;
  }

  .news-card-desc {
    font-size: 0.78rem;
  }

  .news-title {
    font-size: 1.35rem;
  }

  .news-subtitle {
    font-size: 0.9rem;
  }
}

/* Modal (Infografis viewer) */
.modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, .6);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
  z-index: 1000;
}

.modal.open {
  display: flex;
}

.modal-content {
  position: relative;
  background: transparent;
  border-radius: 12px;
  max-width: 92vw;
  max-height: 92vh;
}

.modal-content img {
  display: block;
  max-width: 92vw;
  max-height: 92vh;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .35);
}

.modal-close {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 0;
  background: rgba(255, 255, 255, .9);
  color: #111827;
  font-size: 24px;
  line-height: 36px;
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(0, 0, 0, .2);
}

.modal-close:hover {
  background: #fff;
}

/* Back to top */
.back-to-top {
  position: fixed;
  right: 24px;
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #2162e2;
  color: #fff;
  border: 1px solid #1a4bb8;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(33, 98, 226, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
  z-index: 1100;
}

.back-to-top.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.back-to-top:hover {
  background: #1a4bb8;
  box-shadow: 0 12px 28px rgba(26, 75, 184, 0.38);
}

@media (max-width: 600px) {
  .back-to-top {
    right: 14px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}

/* WhatsApp floating button (matches back-to-top style, green) */
.whatsapp-float {
  position: fixed;
  right: 76px;
  /* 24 + 44 + 8 gap from back-to-top */
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #25D366;
  color: #fff;
  border: 1px solid #1ebe57;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
  z-index: 1100;
}

.whatsapp-float.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.whatsapp-float:hover {
  background: #1ebe57;
  box-shadow: 0 12px 28px rgba(30, 190, 87, 0.38);
}

@media (max-width: 600px) {
  .whatsapp-float {
    right: 62px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}

/* WhatsApp info panel */
.whatsapp-panel {
  position: fixed;
  right: 130px;
  /* opens to the left of the WA icon */
  bottom: 24px;
  width: 280px;
  max-width: calc(100vw - 40px);
  background: #fff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1101;
}

.whatsapp-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 600px) {
  .whatsapp-panel {
    right: 14px;
    bottom: 64px;
    width: calc(100vw - 28px);
  }
}

.whatsapp-panel-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid #eef2f7;
  font-weight: 600;
}

.whatsapp-panel-header i {
  color: #25D366;
}

.whatsapp-panel-close {
  margin-left: auto;
  background: transparent;
  border: 0;
  color: #6b7280;
  font-size: 18px;
  width: 28px;
  height: 28px;
  border-radius: 6px;
  cursor: pointer;
}

.whatsapp-panel-close:hover {
  background: #f3f4f6;
  color: #374151;
}

.whatsapp-panel-body {
  padding: 12px;
}

.wa-info-number {
  font-weight: 600;
  color: #111827;
  margin-bottom: 6px;
}

.wa-info-text {
  font-size: 0.9rem;
  color: #6b7280;
  margin-bottom: 12px;
}

.wa-chat-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  padding: 10px 12px;
  border-radius: 10px;
  background: #25D366;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  border: 1px solid #1ebe57;
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.25);
}

.wa-chat-button:hover {
  background: #1ebe57;
}

/* Accessibility (Ramah Disabilitas) floating button - same style, placed left of WA */
.accessibility-float {
  position: fixed;
  right: 128px;
  /* 24 + (44+8)*2 */
  bottom: 24px;
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #C62828;
  /* dark red */
  color: #fff;
  border: 1px solid #a01f1f;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 24px rgba(198, 40, 40, 0.35);
  cursor: pointer;
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease, background .2s ease, box-shadow .2s ease;
  z-index: 1100;
}

.accessibility-float.show {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.accessibility-float:hover {
  background: #a01f1f;
  box-shadow: 0 12px 28px rgba(160, 31, 31, 0.38);
}

@media (max-width: 600px) {
  .accessibility-float {
    right: 110px;
    bottom: 14px;
    width: 40px;
    height: 40px;
  }
}

/* Accessibility panel (same style as WA panel) */
.a11y-panel {
  position: fixed;
  right: 182px;
  /* opens to the left of the a11y icon */
  bottom: 24px;
  width: 300px;
  max-width: calc(100vw - 40px);
  background: #fff;
  color: #1f2937;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  box-shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  z-index: 1101;
}

.a11y-panel.open {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

@media (max-width: 600px) {
  .a11y-panel {
    right: 14px;
    bottom: 64px;
    width: calc(100vw - 28px);
  }
}

.a11y-header i {
  color: #C62828;
}

.a11y-panel-body {
  padding: 12px;
}

.a11y-divider {
  height: 1px;
  background: #eef2f7;
  margin: 8px 0 6px;
}

.a11y-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}

.a11y-tile {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 10px;
  border-radius: 12px;
  border: 1px solid #eef2f7;
  background: #f9fafb;
  color: #111827;
  cursor: pointer;
  transition: background .15s ease, border-color .15s ease, box-shadow .15s ease;
}

.a11y-tile i {
  font-size: 18px;
  color: #111827;
}

.a11y-tile span {
  font-size: .92rem;
  font-weight: 600;
  color: #111827;
}

.a11y-tile:hover {
  background: #fff;
  border-color: #e5e7eb;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.a11y-tile[aria-pressed="true"] {
  border-color: #C62828;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.15) inset;
}

.a11y-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
}

.a11y-label {
  font-weight: 600;
  color: #111827;
}

.a11y-actions {
  display: inline-flex;
  gap: 8px;
}

.a11y-btn {
  background: #C62828;
  color: #fff;
  border: 1px solid #a01f1f;
  border-radius: 8px;
  padding: 6px 10px;
  font-weight: 600;
  cursor: pointer;
}

.a11y-btn:hover {
  background: #a01f1f;
}

/* Simple switch */
.a11y-switch {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
}

.a11y-switch input {
  opacity: 0;
  width: 0;
  height: 0;
}

.a11y-slider {
  position: absolute;
  cursor: pointer;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #e5e7eb;
  transition: .2s;
  border-radius: 999px;
}

.a11y-slider:before {
  position: absolute;
  content: "";
  height: 20px;
  width: 20px;
  left: 3px;
  top: 3px;
  background: white;
  transition: .2s;
  border-radius: 50%;
  box-shadow: 0 1px 4px rgba(0, 0, 0, .2);
}

.a11y-switch input:checked+.a11y-slider {
  background: #C62828;
}

.a11y-switch input:checked+.a11y-slider:before {
  transform: translateX(20px);
}

/* High contrast mode */
body.high-contrast {
  background: #000 !important;
  color: #fff !important;
}

body.high-contrast a {
  color: #ff0 !important;
  text-decoration: underline;
}

body.high-contrast .header,
body.high-contrast .nav-menu,
body.high-contrast .dropdown-menu,
body.high-contrast .news-card,
body.high-contrast .card,
body.high-contrast .stats-card,
body.high-contrast .modal-content {
  background: #111 !important;
  color: #fff !important;
  border-color: #333 !important;
}

body.high-contrast .cta-button,
body.high-contrast .read-more,
body.high-contrast .wa-chat-button,
body.high-contrast .a11y-btn {
  filter: brightness(1.1) contrast(1.1);
}

/* Extra accessibility effects */
body.a11y-contrast-boost {
  filter: contrast(1.15) saturate(1.05);
}

body.a11y-highlight-links a {
  outline: 2px dashed #C62828;
  outline-offset: 2px;
  text-decoration: underline !important;
  background: rgba(198, 40, 40, 0.08);
}

body.a11y-big-text {
  font-size: 120% !important;
}

body.a11y-text-spacing * {
  letter-spacing: 0.06em !important;
  word-spacing: 0.12em !important;
}

body.a11y-reduced-motion *,
body.a11y-reduced-motion *::before,
body.a11y-reduced-motion *::after {
  animation: none !important;
  transition: none !important;
  scroll-behavior: auto !important;
}

body.a11y-hide-images img,
body.a11y-hide-images picture,
body.a11y-hide-images video,
body.a11y-hide-images figure {
  filter: grayscale(1) brightness(.9);
  opacity: .06 !important;
}

body.dyslexia-friendly {
  font-family: 'OpenDyslexic', 'Atkinson Hyperlegible', Arial, Verdana, sans-serif !important;
  letter-spacing: 0.03em;
  word-spacing: 0.12em;
}

body.a11y-big-cursor :focus {
  outline: 3px solid #C62828 !important;
  outline-offset: 3px;
}

body.a11y-tooltips [title] {
  border-bottom: 1px dotted #6b7280;
  position: relative;
}

body.a11y-tooltips [title]:hover::after,
body.a11y-tooltips [title]:focus::after {
  content: attr(title);
  position: absolute;
  left: 0;
  bottom: 100%;
  transform: translateY(-6px);
  background: #111;
  color: #fff;
  padding: 6px 8px;
  border-radius: 6px;
  font-size: .8rem;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .2);
  z-index: 9999;
}

body.a11y-line-height * {
  line-height: 1.8 !important;
}

body.a11y-left-align p,
body.a11y-left-align li {
  text-align: left !important;
}

body.a11y-align-center p,
body.a11y-align-center li {
  text-align: center !important;
}

body.a11y-align-right p,
body.a11y-align-right li {
  text-align: right !important;
}

body.a11y-desaturate {
  filter: saturate(.5);
}

body.a11y-saturation-low {
  filter: saturate(.6);
}

body.a11y-saturation-high {
  filter: saturate(1.5);
}

/* Theme modes: invert, dark contrast, light contrast */
body.a11y-invert {
  filter: invert(1) hue-rotate(180deg);
}

body.a11y-contrast-dark {
  background: #000 !important;
  color: #e6e6e6 !important;
}

body.a11y-contrast-dark a {
  color: #ffea00 !important;
}

body.a11y-contrast-dark .header,
body.a11y-contrast-dark .nav-menu,
body.a11y-contrast-dark .dropdown-menu,
body.a11y-contrast-dark .news-card,
body.a11y-contrast-dark .card,
body.a11y-contrast-dark .stats-card,
body.a11y-contrast-dark .modal-content,
body.a11y-contrast-dark .search-bar,
body.a11y-contrast-dark .hero-content,
body.a11y-contrast-dark footer {
  background: #0d0d0d !important;
  color: #eaeaea !important;
  border-color: #222 !important;
}

body.a11y-contrast-light {
  background: #fff !important;
  color: #111 !important;
}

body.a11y-contrast-light a {
  color: #0b63ce !important;
}

body.a11y-contrast-light .header,
body.a11y-contrast-light .nav-menu,
body.a11y-contrast-light .dropdown-menu,
body.a11y-contrast-light .news-card,
body.a11y-contrast-light .card,
body.a11y-contrast-light .stats-card,
body.a11y-contrast-light .modal-content,
body.a11y-contrast-light .search-bar,
body.a11y-contrast-light .hero-content,
body.a11y-contrast-light footer {
  background: #ffffff !important;
  color: #111 !important;
  border-color: #e5e7eb !important;
}

/* Better close button for A11y panel */
.a11y-panel-close {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #C62828;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  outline: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.a11y-panel-close i {
  font-size: 18px;
  line-height: 1;
}

.a11y-panel-close:hover {
  background: rgba(198, 40, 40, 0.08);
  color: #a01f1f;
}

.a11y-panel-close:focus {
  outline: 2px solid #C62828;
  outline-offset: 2px;
}

/* Big cursor (SVG data URI). Fallback to default/pointer if unsupported */
body.a11y-big-cursor,
body.a11y-big-cursor * {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36'><circle cx='8' cy='8' r='8' fill='white' stroke='black' stroke-width='2'/></svg>") 2 2, auto !important;
}

body.a11y-big-cursor a,
body.a11y-big-cursor button,
body.a11y-big-cursor [role='button'],
body.a11y-big-cursor input,
body.a11y-big-cursor select,
body.a11y-big-cursor textarea,
body.a11y-big-cursor .clickable {
  cursor: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='36' height='36'><circle cx='18' cy='18' r='12' fill='none' stroke='black' stroke-width='3'/><circle cx='18' cy='18' r='4' fill='black'/></svg>") 18 18, pointer !important;
}

/* Reset-all button */
.a11y-reset-all {
  width: 100%;
  margin-top: 8px;
  background: #C62828;
  color: #fff;
  border: 1px solid #a01f1f;
  border-radius: 10px;
  padding: 10px 12px;
  font-weight: 600;
  cursor: pointer;
}

.a11y-reset-all:hover {
  background: #a01f1f;
}

/* Video modal sizing */
.modal-content.video {
  background: transparent;
  max-width: 92vw;
}

.video-modal-wrapper {
  width: min(90vw, 1000px);
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 12px;
  overflow: hidden;
}

.video-modal-wrapper iframe {
  width: 100%;
  height: 100%;
  display: block;
  border: 0;
}

/* Click-capture overlay on gallery video */
.video-click-capture {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: transparent;
}

/* Fancy date layout (Month/Day/Year) - clean, black/gray, no shapes */
.announcement-date.fancy {
  align-items: flex-start;
  justify-content: center;
  padding-right: 16px;
  border-right: 1px solid #eef1f4;
  gap: 2px;
  text-align: left;
}

.announcement-date .date-day {
  font-size: 1.4rem;
  line-height: 1.1;
  font-weight: 600;
  color: #4b5563;
}

.announcement-date .date-month {
  font-size: 0.95rem;
  font-weight: 600;
  letter-spacing: .2px;
  color: #6b7280;
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
}

.announcement-date .date-year {
  font-size: 0.85rem;
  color: #9ca3af;
  font-weight: 600;
}

.announcement-date .date-time {
  font-size: 0.8rem;
  color: #9ca3af;
  font-weight: 500;
}

/* Bottom-left Weather Card (animated gradient) */
.top-left-info {
  position: fixed;
  left: 12px;
  bottom: 12px;
  z-index: 1200;
  width: min(90vw, 240px);
  padding: 10px 12px;
  border-radius: 16px;
  color: #ffffff;
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #7c3aed 100%);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.22);
  border: 1px solid rgba(255, 255, 255, 0.18);
  overflow: hidden;
  background-size: 200% 200%;
  animation: tliGradient 14s ease infinite;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-auto-rows: auto;
  column-gap: 10px;
  align-items: start;
}

.top-left-info::before,
.top-left-info::after {
  content: '';
  position: absolute;
  border-radius: 50%;
  filter: blur(8px);
  opacity: .22;
  animation: tliFloat 10s ease-in-out infinite;
  pointer-events: none;
  /* don't block clicks on clock/weather */
}

.top-left-info::before {
  width: 120px;
  height: 120px;
  left: -30px;
  bottom: -30px;
  background: radial-gradient(closest-side, #fff, transparent 70%);
  animation-delay: .3s;
}

.top-left-info::after {
  width: 80px;
  height: 80px;
  right: -20px;
  top: -20px;
  background: radial-gradient(closest-side, #fff, transparent 70%);
  animation-direction: reverse;
}

.tli-clock {
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: .5px;
  line-height: 1;
  grid-column: 1;
  justify-self: start;
  text-align: left;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  background: none;
  border: 0;
  padding: 0;
  color: inherit;
}

.tli-clock:focus-visible {
  outline: 2px solid rgba(255, 255, 255, .9);
  outline-offset: 2px;
  border-radius: 6px;
}

.tli-date {
  font-size: .74rem;
  opacity: .92;
  margin-top: 6px;
  grid-column: 1;
  justify-self: start;
  text-align: left;
}

.tli-weather {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  gap: 4px;
  margin: 0;
  grid-column: 2;
  grid-row: 1 / span 2;
}

.tli-weather-icon {
  font-size: 1rem;
  opacity: .92;
}

.tli-weather-text {
  font-weight: 600;
  font-size: .88rem;
}

/* Theme variants (auto via JS) */
.tli--sunny {
  background: linear-gradient(135deg, #60a5fa 0%, #3b82f6 50%, #f59e0b 100%);
}

.tli--cloudy {
  background: linear-gradient(135deg, #64748b 0%, #475569 50%, #242424 100%);
}

.tli--partly {
  background: linear-gradient(135deg, #7c3aed 0%, #a855f7 50%, #f472b6 100%);
}

.tli--rain {
  background: linear-gradient(135deg, #06b6d4 0%, #0ea5e9 50%, #2563eb 100%);
}

.tli--night {
  background: linear-gradient(135deg, #1f2937 0%, #0f172a 50%, #111827 100%);
}

.tli--snow {
  background: linear-gradient(135deg, #a5f3fc 0%, #67e8f9 50%, #e0f2fe 100%);
  color: #0f172a;
}

@keyframes tliGradient {
  0% {
    background-position: 0% 50%;
  }

  50% {
    background-position: 100% 50%;
  }

  100% {
    background-position: 0% 50%;
  }
}

/* Admin Login Modal */
.admin-modal {
  position: fixed;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 18px;
  z-index: 2000;
  opacity: 0;
  pointer-events: none;
  overflow-y: auto;
  transition: opacity .4s ease;
}

.admin-modal.open {
  opacity: 1;
  pointer-events: auto;
}

.admin-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, .55);
  backdrop-filter: blur(2px);
  opacity: 0;
  transition: opacity .35s ease;
}

.admin-modal.open .admin-modal-overlay {
  opacity: 1;
}

.admin-card {
  position: relative;
  width: min(960px, 96vw);
  min-height: 540px;
  background: #f8fafc;
  border-radius: 20px;
  margin: 6vh auto;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(15, 23, 42, .18);
  border: 1px solid rgba(148, 163, 184, .3);
  z-index: 1;
  opacity: 0;
  transform: translateY(36px) scale(.97);
  transition: transform .45s cubic-bezier(.16, 1, .3, 1), opacity .35s ease;
  will-change: transform, opacity;
}

.admin-modal.open .admin-card {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 1080px) {
  .admin-card {
    width: min(880px, 94vw);
  }

  .admin-card-form {
    padding: 44px 40px;
  }
}

@media (max-width: 900px) {
  .admin-visual-overlay {
    display: none;
  }
}



@media (max-width: 768px) {
  .admin-card {
    width: min(520px, 94vw);
    background: #fff;
    box-shadow: 0 24px 60px rgba(15, 23, 42, .15);
    border-radius: 24px;
    border: 1px solid rgba(226, 232, 240, .7);
  }

  .admin-card-visual {
    display: none;
  }

  .admin-card-form {
    padding: 36px 30px 32px;
    background: #fff;
    display: flex;
    flex-direction: column;
    align-items: center;
  }

  .admin-brand {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 14px;
  }

  .admin-brand-logo {
    width: 76px;
    height: 76px;
    padding: 16px;
    border-radius: 999px;
    background: #fff;
    box-shadow: none;
  }

  .admin-brand-copy {
    align-items: center;
    gap: 6px;
  }

  .admin-brand-meta {
    display: none;
  }

  .admin-brand-eyebrow {
    font-size: .7rem;
    letter-spacing: .22em;
  }

  .admin-form-header {
    display: none;
  }

  .admin-form-fields {
    width: 100%;
    margin-top: 10px;
    gap: 18px;
  }

  .admin-actions {
    display: flex;
    width: 100%;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-top: 12px;
    flex-wrap: wrap;
  }

  .admin-actions .admin-check {
    flex: 1;
    justify-content: flex-start;
  }

  .admin-link {
    margin-left: auto;
  }

  .admin-submit {
    margin-top: 12px;
    border-radius: 18px;
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .admin-modal {
    transition: none;
  }

  .admin-modal-overlay {
    transition: none;
  }

  .admin-card {
    transition: none;
    transform: none;
  }

  .admin-modal.open .admin-card {
    transform: none;
  }

  .admin-input-group {
    transition: none;
  }

  .admin-submit {
    transition: none;
  }
}

.admin-close {
  position: absolute;
  right: 16px;
  top: 16px;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 0;
  background: rgba(15, 23, 42, .08);
  color: #0f172a;
  font-size: 22px;
  cursor: pointer;
  z-index: 2;
  transition: background .2s ease, transform .2s ease;
}

.admin-close:hover {
  background: rgba(15, 23, 42, .14);
  transform: scale(1.05);
}

.admin-card-pane {
  position: relative;
  display: flex;
  flex-direction: column;
}

.admin-card-form {
  padding: 48px 48px 44px;
  gap: 10px;
  color: #0f172a;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 60%);
}

.admin-brand {
  display: flex;
  align-items: center;
  gap: 18px;
  color: #0f172a;
}

.admin-brand-logo {
  width: 60px;
  height: 60px;
  padding: 10px;
  border-radius: 16px;
  background: #fff;
  box-shadow: none;
  object-fit: contain;
}

.admin-brand-copy {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.admin-brand-eyebrow {
  text-transform: uppercase;
  letter-spacing: .18em;
  font-weight: 600;
  font-size: .72rem;
  color: #64748b;
}

.admin-brand-title {
  font-weight: 600;
  font-size: 1.18rem;
  color: #0f172a;
}

.admin-brand-meta {
  margin-left: auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-weight: 600;
  font-size: .86rem;
}

.admin-brand-meta i {
  font-size: .6rem;
}

.admin-form-header {
  display: flex;
  flex-direction: column;
  gap: 12px;
  max-width: 420px;
}

@media (max-width: 768px) {
  .admin-form-header {
    display: none !important;
  }
}



.admin-form-title {
  margin: 0;
  font-size: 1.2rem;
  font-weight: 600;
  line-height: 1.16;
  color: #0f172a;
}

.admin-form-sub {
  margin: 0;
  font-size: .8rem;
  line-height: 1.55;
  color: #64748b;
}

.admin-form-fields {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.admin-input-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.admin-label {
  font-weight: 600;
  font-size: .9rem;
  color: #475569;
}

.admin-input-group {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 20px;
  border: 1.5px solid #d4dae5;
  border-radius: 8px;
  background: #fff;
  box-shadow: none;
  transition: border-color .18s ease, transform .18s ease;
}

.admin-input-group:focus-within {
  border-color: #2563eb;
  box-shadow: none;
}

.admin-input-group:focus-within .admin-input-icon {
  color: #2563eb;
}

.admin-input-icon {
  color: #9aa7bd;
  font-size: 1rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color .18s ease;
}

.admin-input {
  flex: 1;
  border: 0;
  background: transparent;
  padding: 14px 0;
  font-size: 1rem;
  color: #0f172a;
  font-weight: 500;
  outline: none;
}

.admin-input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.admin-input-toggle {
  border: 0;
  background: none;
  color: #9aa7bd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  cursor: pointer;
  padding: 0;
  transition: color .18s ease;
}

.admin-input-toggle:hover {
  color: #64748b;
}

.admin-input-group:focus-within .admin-input-toggle {
  color: #2563eb;
}

.admin-input-toggle:focus-visible {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
  border-radius: 50%;
}

.admin-actions {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin: 14px 0 6px;
  flex-wrap: wrap;
}

.admin-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .9rem;
  color: #64748b;
}

.admin-pass-checklist {
  list-style: none;
  padding: 10px 0 0;
  margin: 6px 0 0;
  display: grid;
  gap: 4px;
  font-size: .8rem;
  color: #6b7280;
}


.admin-form-alert {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: 10px;
  background: rgba(248, 113, 113, 0.14);
  color: #b91c1c;
  font-size: 0.86rem;
  border: 1px solid rgba(248, 113, 113, 0.4);
}

.admin-link--disabled {
  color: #94a3b8 !important;
  pointer-events: none;
  cursor: not-allowed;
}

body.dark-mode .admin-form-alert {
  background: rgba(239, 68, 68, 0.2);
  border-color: rgba(239, 68, 68, 0.5);
  color: #fca5a5;
}

.admin-pass-checklist li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-pass-checklist i {
  font-size: .48rem;
  color: #cbd5f5;
  transition: color .2s ease, transform .2s ease;
}

.admin-pass-checklist li.valid i {
  color: #000;
  transform: scale(1.15);
}

.admin-pass-checklist li.valid span {
  color: #000;
}

.admin-check input {
  width: 16px;
  height: 16px;
  accent-color: #2563eb;
}

.admin-link {
  text-decoration: none;
  color: #2563eb;
  font-weight: 600;
  font-size: .9rem;
  margin-left: auto;
}

.admin-link:hover {
  text-decoration: underline;
}

.admin-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #2563eb;
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 14px 20px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: background .2s ease, transform .18s ease;
}

.admin-submit:hover {
  background: #1d4ed8;
}

.admin-submit:active {
  transform: translateY(0);
}

.admin-submit:disabled {
  background: #cbd5f5;
  color: #94a3b8;
  cursor: not-allowed;
  opacity: .7;
}

body.dark-mode .admin-submit:disabled {
  background: #1E1E1E;
  color: #64748b;
}

.admin-card-visual {
  position: relative;
  overflow: hidden;
  background: #0f172a;
  display: flex;
  align-items: stretch;
  justify-content: center;
}

.admin-card-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, .65) 0%, rgba(15, 23, 42, .05) 55%);
  z-index: 0;
}

.admin-visual-img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  flex: 1 1 auto;
  object-fit: cover;
  display: block;
  filter: saturate(1.05);
}

.admin-visual-overlay {
  position: absolute;
  inset: 32px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 24px;
  color: #f8fafc;
  z-index: 1;
  pointer-events: none;
}

.admin-visual-body {
  margin-top: auto;
}

.admin-visual-badge {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 15px;
  padding: 8px 2px;
  font-weight: 500;
  font-size: .75rem;
}

.admin-visual-badge i {
  color: #fbbf24;
}

.admin-visual-body h3 {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 600;
}

.admin-visual-body p {
  margin: 10px 0 0;
  max-width: 260px;
  line-height: 1.5;
  color: #e2e8f0;
}








@media (max-width: 900px) {
  .admin-card {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .admin-card-form {
    padding: 40px 32px 36px;
  }

  .admin-card-visual {
    display: none;
  }
}

/* Dark mode for admin modal */
body.dark-mode .admin-card {
  background: #0f172a;
  border-color: rgba(37, 99, 235, .24);
  box-shadow: 0 36px 90px rgba(0, 0, 0, .55);
}

body.dark-mode .admin-card-form {
  background: linear-gradient(180deg, rgba(15, 23, 42, .92) 0%, rgba(17, 24, 39, 1) 70%);
  color: #e2e8f0;
}

body.dark-mode .admin-brand-logo {
  background: #fff;
  box-shadow: none;
}

body.dark-mode .admin-brand-eyebrow {
  color: #94a3b8;
}

body.dark-mode .admin-brand-title {
  color: #f8fafc;
}

body.dark-mode .admin-brand-meta {
  background: rgba(16, 185, 129, .18);
  color: #34d399;
}

body.dark-mode .admin-close {
  background: rgba(148, 163, 184, .16);
  color: #f8fafc;
}

body.dark-mode .admin-close:hover {
  background: rgba(148, 163, 184, .25);
}

body.dark-mode .admin-form-title {
  color: #f8fafc;
}

body.dark-mode .admin-form-sub {
  color: #9ca3af;
}

body.dark-mode .admin-label {
  color: #cbd5f5;
}

body.dark-mode .admin-input-group {
  background: rgba(15, 23, 42, .85);
  border-color: rgba(148, 163, 184, .35);
  box-shadow: none;
}

body.dark-mode .admin-input {
  color: #e2e8f0;
}

body.dark-mode .admin-input::placeholder {
  color: #94a3b8;
}

body.dark-mode .admin-input-toggle {
  color: #cbd5f5;
}

body.dark-mode .admin-input-group:focus-within .admin-input-toggle {
  color: #60a5fa;
}

body.dark-mode .admin-check {
  color: #9ca3af;
}

body.dark-mode .admin-pass-checklist {
  color: #a3acc4;
}

body.dark-mode .admin-pass-checklist li.valid span {
  color: #000;
}

body.dark-mode .admin-pass-checklist i {
  color: #475569;
}

body.dark-mode .admin-pass-checklist li.valid i {
  color: #000;
}

body.dark-mode .admin-submit {
  background: #2563eb;
  box-shadow: none;
}

body.dark-mode .admin-submit:hover {
  background: #1d4ed8;
  box-shadow: none;
}

body.dark-mode .admin-card-visual::after {
  background: linear-gradient(135deg, rgba(15, 23, 42, .78) 0%, rgba(15, 23, 42, .28) 60%);
}

body.dark-mode .admin-visual-body p {
  color: #cbd5f5;
}

@keyframes tliFloat {
  0% {
    transform: translate(0, 0);
  }

  50% {
    transform: translate(8px, -8px);
  }

  100% {
    transform: translate(0, 0);
  }
}

@media (max-width: 640px) {
  .top-left-info {
    left: 10px;
    bottom: 10px;
    width: min(90vw, 160px);
    padding: 6px 8px;
    column-gap: 6px;
  }

  .tli-clock {
    font-size: .85rem;
  }

  .tli-date {
    font-size: .6rem;
  }

  .tli-weather-icon {
    font-size: .85rem;
  }

  .tli-weather-text {
    font-size: .65rem;
  }

  .admin-card {
    width: min(440px, 92vw);
    border-radius: 22px;
  }

  .admin-card-form {
    padding: 30px 24px 28px;
    background: #fff;
  }

  .admin-brand {
    row-gap: 12px;
  }

  .admin-brand-copy {
    align-items: center;
  }

  .admin-brand-meta {
    display: none;
  }

  .admin-form-title {
    font-size: 1.2rem;
  }

  .admin-form-fields {
    gap: 16px;
  }

  .admin-submit {
    padding: 14px 18px;
    border-radius: 18px;
  }

  .admin-actions {
    gap: 12px;
    justify-content: space-between;
    flex-wrap: wrap;
  }
}

@media (max-width: 480px) {
  .admin-card {
    width: min(400px, 90vw);
    border-radius: 20px;
  }

  .admin-card-form {
    padding: 26px 20px 24px;
  }

  .admin-brand-logo {
    width: 70px;
    height: 70px;
    padding: 14px;
    background: #fff;
    box-shadow: none;
  }

  .admin-form-title {
    font-size: 1.5 rem;
  }

  .admin-form-sub {
    font-size: .94 rem;
  }

  .admin-submit {
    border-radius: 8px;
    font-size: 1 rem;
    padding: 13px 16px;
  }

  .admin-actions {
    row-gap: 10px;
  }
}


/* Dark mode toggle (header icon) */
.darkmode-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  padding: 0 12px;
  margin-left: 8px;
  background: #f1f5f9;
  color: #0f172a;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  cursor: pointer;
}

.darkmode-icon:hover {
  background: #e2e8f0;
}

/* Global dark mode (modern dashboard-like) */
body.dark-mode {
  background: #0f1115;
  color: #e7e8ea;
}

body.dark-mode a {
  color: #89b4ff;
}

/* Make most text light in dark mode (komponen d-* memakai token sendiri) */
body.dark-mode h1:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode h2:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode h3:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode h4:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode h5:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode h6:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode p:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode span:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode li:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode dt:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode dd:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode small:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode strong:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode label:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode th:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode td:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]) {
  color: #e7e8ea !important;
}

body.dark-mode .muted,
body.dark-mode .text-muted {
  color: #b5bac3 !important;
}

body.dark-mode .header,
body.dark-mode .nav-menu,
body.dark-mode .dropdown-menu,
body.dark-mode .news-card,
body.dark-mode .card,
body.dark-mode .stats-card,
body.dark-mode .modal-content,
body.dark-mode .search-bar,
body.dark-mode footer {
  background: #151923 !important;
  color: #e7e8ea !important;
  border-color: #242a36 !important;
}

body.dark-mode .cta-button,
body.dark-mode .read-more {
  filter: brightness(.9) saturate(.95);
}

body.dark-mode .darkmode-icon {
  background: #1a2030;
  color: #e7e8ea;
  border-color: #2a3244;
}

body.dark-mode .darkmode-icon:hover {
  background: #222a3b;
}

body.dark-mode .top-left-info {
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
}

/* Header search trigger icon (dark) */
body.dark-mode .search-icon {
  background: #1b2232 !important;
  border-color: #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .search-icon:hover {
  background: #222a3b !important;
  border-color: #2a3244 !important;
}

body.dark-mode .search-icon i {
  color: #ffffff !important;
}

/* Global search bar input */
body.dark-mode .search-input-group {
  background: #1b2232 !important;
  border-color: #2a3244 !important;
  box-shadow: none !important;
}

body.dark-mode .search-input i {
  color: #9aa1ab !important;
}

body.dark-mode .search-bar-input {
  background: #1b2232 !important;
  color: #e7e8ea !important;
}

body.dark-mode .search-bar-input::placeholder {
  color: #9aa1ab !important;
}

/* Pagination buttons (news/gallery) */
body.dark-mode .pagination-btn {
  background: #1b2232 !important;
  border: 1px solid #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .pagination-btn:hover {
  background: #222a3b !important;
  color: #ffffff !important;
  border-color: #2a3244 !important;
}

body.dark-mode .pagination-btn.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

/* Mobile navigation (drawer) */
body.dark-mode .mobile-menu {
  background: #151923 !important;
  color: #e7e8ea !important;
  box-shadow: 0 10px 24px rgba(0, 0, 0, .35) !important;
}

body.dark-mode .mobile-menu a {
  color: #e7e8ea !important;
  border-bottom: 1px solid #2a3244 !important;
}

body.dark-mode .mobile-menu a:hover {
  color: #ffffff !important;
}

body.dark-mode .mobile-submenu {
  background: #1b2232 !important;
  border-radius: 8px !important;
}

body.dark-mode .mobile-submenu a {
  color: #e7e8ea !important;
  border-bottom: 1px solid #2a3244 !important;
}

body.dark-mode .mobile-submenu a:hover {
  background: #222a3b !important;
  color: #ffffff !important;
}

body.dark-mode .mobile-menu-btn {
  color: #e7e8ea !important;
}

/* Navbar dropdown */
body.dark-mode .dropdown-menu {
  background: #1b2232 !important;
  border-color: #2a3244 !important;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .35) !important;
}

body.dark-mode .dropdown-menu a {
  color: #e7e8ea !important;
}

body.dark-mode .dropdown-menu a:hover {
  background: #222a3b !important;
  color: #ffffff !important;
}

/* Navbar text in dark */
body.dark-mode .nav-menu a {
  color: #e7e8ea !important;
}

/* Hero buttons in dark */
body.dark-mode .hero .cta-button {
  color: #ffffff !important;
  background: #2563eb !important;
  border-color: #3b82f6 !important;
}

body.dark-mode .hero .cta-button:hover {
  background: #1d4ed8 !important;
  border-color: #2563eb !important;
}

/* Data penduduk & statistics */
body.dark-mode .stat-card,
body.dark-mode .stats-card {
  background: #161b26 !important;
  border-color: #262c3a !important;
}

body.dark-mode .stat-card-title,
body.dark-mode .stat-number {
  color: #ffffff !important;
}

body.dark-mode .stat-label,
body.dark-mode .stat-detail-item span,
body.dark-mode .announcement-date .date-bottom {
  color: #cbd5e1 !important;
}

/* Statistik bar & icon overrides */
body.dark-mode .stat-icon {
  color: #ffffff !important;
}

body.dark-mode .dashboard-title {
  color: #e7e8ea !important;
}

body.dark-mode .dashboard-link {
  color: #89b4ff !important;
}

body.dark-mode .card-menu-btn {
  color: #cbd5e1 !important;
}

body.dark-mode .card-menu-btn:hover {
  background: #222a3b !important;
  color: #ffffff !important;
}

/* Donut center (angka + label + icon) dark */
body.dark-mode .donut-center {
  background: rgba(20, 24, 32, 0.85) !important;
}

body.dark-mode .donut-center i {
  color: #cbd5e1 !important;
}

body.dark-mode .donut-center .total-number {
  color: #ffffff !important;
}

body.dark-mode .donut-center .total-label {
  color: #9aa1ab !important;
}

/* Alternative donut-hole center if used */
body.dark-mode .donut-hole {
  background: #141820 !important;
}

body.dark-mode .donut-hole i {
  color: #cbd5e1 !important;
}

/* Dashboard scroller colors */
body.dark-mode .dashboard-container {
  scrollbar-color: #2a3244 #141820;
}

body.dark-mode .dashboard-container::-webkit-scrollbar-track {
  background: #141820;
}

body.dark-mode .dashboard-container::-webkit-scrollbar-thumb {
  background: #2a3244;
}

/* Statistics legends/labels */
body.dark-mode .chart-legend,
body.dark-mode .legend-item span:last-child,
body.dark-mode .bar-item span {
  color: #cbd5e1 !important;
}

/* Global dark scrollbars */
body.dark-mode {
  scrollbar-color: #2a3244 #141820;
  scrollbar-width: thin;
}

body.dark-mode ::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.dark-mode ::-webkit-scrollbar-track {
  background: #141820;
}

body.dark-mode ::-webkit-scrollbar-thumb {
  background: #2a3244;
  border-radius: 10px;
  border: 2px solid #141820;
}

body.dark-mode ::-webkit-scrollbar-thumb:hover {
  background: #3a4560;
}

/* Specific scrollable containers */
body.dark-mode .announcement-list::-webkit-scrollbar,
body.dark-mode .news-grid::-webkit-scrollbar,
body.dark-mode .info-graphic-slider::-webkit-scrollbar,
body.dark-mode .galeri-list::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

/* Apply dark scrollbars to all scrollable elements (fallback) */
body.dark-mode * {
  scrollbar-color: #2a3244 #141820;
}

body.dark-mode *::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

body.dark-mode *::-webkit-scrollbar-track {
  background: #141820;
}

body.dark-mode *::-webkit-scrollbar-thumb {
  background: #2a3244;
  border-radius: 10px;
  border: 2px solid #141820;
}

body.dark-mode *::-webkit-scrollbar-thumb:hover {
  background: #3a4560;
}

body.dark-mode *::-webkit-scrollbar-corner {
  background: #141820;
}

/* Horizontal scroller for Statistik Desa row */
body.dark-mode .statistics-dashboard::-webkit-scrollbar {
  height: 8px;
}

body.dark-mode .statistics-dashboard::-webkit-scrollbar-track {
  background: #141820;
}

body.dark-mode .statistics-dashboard::-webkit-scrollbar-thumb {
  background: #2a3244;
  border-radius: 8px;
  border: 2px solid #141820;
}

/* Pelayanan masyarakat tiles */
body.dark-mode .service-card {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

body.dark-mode .service-title {
  color: #ffffff !important;
}

body.dark-mode .service-card i,
body.dark-mode .service-icon {
  color: #ffffff !important;
}

/* Fix service icon background (the rounded square arrow-like) */
body.dark-mode .service-icon {
  background: #1b2232 !important;
  border-color: #2a3244 !important;
}

/* Kabar berita terkini */
body.dark-mode .news-card {
  background: #161b26 !important;
  border-color: #262c3a !important;
}

body.dark-mode .news-card-title {
  color: #ffffff !important;
}

body.dark-mode .news-card-desc {
  color: #cbd5e1 !important;
}

/* Pengumuman */
body.dark-mode .announcement-container {
  background: #151923 !important;
  border-color: #242a36 !important;
}

body.dark-mode .announcement-header {
  background: #1a2030 !important;
  border-color: #2a3244 !important;
}

body.dark-mode .announcement-tab {
  background: #1b2232 !important;
  border-color: #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .announcement-tab.active {
  background: #20283a !important;
  color: #ffffff !important;
}

body.dark-mode .announcement-item {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

body.dark-mode .announcement-title-text {
  color: #ffffff !important;
}

body.dark-mode .announcement-desc {
  color: #cbd5e1 !important;
}

body.dark-mode .announcement-date {
  border-color: #2a3244 !important;
}

/* Announcement search bar */
body.dark-mode .announcement-search {
  background: #151923 !important;
  border-color: #242a36 !important;
}

body.dark-mode .announcement-search i {
  color: #b5bac3 !important;
}

body.dark-mode .announcement-search input {
  background: #1b2232 !important;
  border-color: #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .announcement-search input::placeholder {
  color: #9aa1ab !important;
}

/* Announcement pagination (dark) */
body.dark-mode .announcement-pagination {
  border-top: 1px solid #242a36 !important;
  background: transparent !important;
}

body.dark-mode .announcement-pagination-btn {
  background: #1b2232 !important;
  border: 1px solid #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .announcement-pagination-btn:hover {
  background: #222a3b !important;
  border-color: #2a3244 !important;
  color: #ffffff !important;
}

body.dark-mode .announcement-pagination-btn.active {
  background: #2563eb !important;
  border-color: #2563eb !important;
  color: #ffffff !important;
}

body.dark-mode .announcement-pagination-btn:disabled {
  background: #141820 !important;
  color: #7b8391 !important;
  border-color: #242a36 !important;
  opacity: .6;
  cursor: not-allowed;
}

/* Transparansi anggaran */
body.dark-mode .transparansi-card {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

body.dark-mode .transparansi-header {
  color: #e7e8ea !important;
}

body.dark-mode .transparansi-desc {
  color: #b5bac3 !important;
}

body.dark-mode .transparansi-link {
  color: #89b4ff !important;
}

/* Transparansi: title/label/value colors */
body.dark-mode .transparansi-card .card-title,
body.dark-mode .transparansi-card .card-subtitle {
  color: #ffffff !important;
}

body.dark-mode .transparansi-card .card-label {
  color: #9aa1ab !important;
}

body.dark-mode .transparansi-card .card-value {
  color: #e7e8ea !important;
}

body.dark-mode .transparansi-card .card-value.highlight {
  color: #93c5fd !important;
}

body.dark-mode .transparansi-card .card-divider {
  background: #2a3244 !important;
}

/* Progress bar */
body.dark-mode .transparansi-card .card-bar {
  background: #1b2232 !important;
}

body.dark-mode .transparansi-card .card-bar span {
  background: #3b82f6 !important;
}

/* Header icon (bulat) */
body.dark-mode .transparansi-card .card-header i {
  color: #ffffff !important;
  background: #1b2232 !important;
  box-shadow: inset 0 0 0 1px #2a3244 !important;
}

/* Sekilas info running text */
body.dark-mode .info-banner {
  background: #1a2030 !important;
  border-color: #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .running-text-content {
  color: #e7e8ea !important;
}

/* Galeri video & Info grafis */
body.dark-mode .galeri-card {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

body.dark-mode .galeri-video {
  background: #0b1020 !important;
  border: 1px solid #262c3a !important;
}

body.dark-mode .galeri-title {
  color: #ffffff !important;
}

body.dark-mode .galeri-desc {
  color: #cbd5e1 !important;
}

body.dark-mode .info-graphic-slide {
  background: #161b26 !important;
  border-color: #262c3a !important;
}

body.dark-mode .info-graphic {
  background: #151923 !important;
  box-shadow: 0 8px 22px rgba(0, 0, 0, .35) !important;
}

body.dark-mode .info-graphic-slider {
  background: transparent !important;
}

body.dark-mode .galeri-header h3 {
  color: #ffffff !important;
}

/* Darken infographics nav arrows */
body.dark-mode .info-graphic-nav {
  background: rgba(27, 34, 50, 0.92) !important;
  color: #ffffff !important;
  border: 1px solid #2a3244 !important;
}

body.dark-mode .info-graphic-nav:hover {
  background: rgba(34, 42, 59, 0.96) !important;
}

/* Dots a bit dimmer in dark */
body.dark-mode .info-graphic-dot {
  background: rgba(255, 255, 255, 0.6) !important;
}

/* Infografis (infografis-*) dark variants */
body.dark-mode .infografis-card {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

body.dark-mode .infografis-header h3 {
  color: #ffffff !important;
}

body.dark-mode .infografis-slider {
  background: #0b1020 !important;
}

body.dark-mode .infografis-dot {
  background: rgba(255, 255, 255, 0.45) !important;
}

body.dark-mode .infografis-dot.active {
  background: #2563eb !important;
}

/* Ensure video wrapper borders dark */
body.dark-mode .galeri-card .video-wrapper {
  background: #0b1020 !important;
  border: 1px solid #262c3a !important;
}

/* Jam Kerja dark mode */
body.dark-mode .jam-kerja {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

body.dark-mode .jam-header {
  color: #ffffff !important;
}

body.dark-mode .jam-item {
  background: #1b2232 !important;
  border-color: #2a3244 !important;
}

body.dark-mode .jam-item:hover {
  background: #20283a !important;
}

body.dark-mode .jam-item .day {
  color: #e7e8ea !important;
}

body.dark-mode .jam-item .time {
  background: #222a3b !important;
  border-color: #2f3850 !important;
  color: #e7e8ea !important;
}

body.dark-mode .jam-item.is-today {
  border-color: #2a3244 !important;
  background: #20283a !important;
}

body.dark-mode .jam-item.is-today .time {
  background: #27314a !important;
  color: #93c5fd !important;
}

body.dark-mode .jam-item.is-off {
  border-color: #3b2430 !important;
  background: #281a1e !important;
}

body.dark-mode .jam-item.is-off .time {
  background: #331e25 !important;
  color: #ff9aa9 !important;
  border-color: #4d2a30 !important;
}

body.dark-mode .jam-note {
  color: #b5bac3 !important;
}

body.dark-mode .jam-table th {
  background: #1b2232 !important;
  color: #93c5fd !important;
  border: 1px solid #2a3244 !important;
}

body.dark-mode .jam-table td {
  background: #161b26 !important;
  color: #e7e8ea !important;
  border: 1px solid #262c3a !important;
}

body.dark-mode .jam-table .libur td {
  background: #2a1b1e !important;
  color: #ffa6b4 !important;
}

/* Ensure all icons white */
body.dark-mode .news-card i,
body.dark-mode .announcement-item i,
body.dark-mode .transparansi-card i,
body.dark-mode .service-card i,
body.dark-mode .stats-card i,
body.dark-mode .stat-card i {
  color: #ffffff !important;
}

/* Force icons white in dark mode (kecuali komponen d-*) */
body.dark-mode i:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode .fas:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode .far:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode .fab:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]),
body.dark-mode svg:not(:is([class^="d-"], [class*=" d-"]) *):not([class^="d-"]):not([class*=" d-"]) {
  color: #ffffff !important;
  fill: #ffffff !important;
}

body.dark-mode .tli-weather-icon {
  color: #ffffff !important;
}

/* Generic cards dark appearance if not covered */
body.dark-mode .card,
body.dark-mode .info-card,
body.dark-mode .service-card,
body.dark-mode .galeri-card,
body.dark-mode .announcement-card {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

/* Dark mode: Accessibility panel */
body.dark-mode .a11y-panel {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

body.dark-mode .a11y-header {
  background: #1b2232 !important;
  border-bottom: 1px solid #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .a11y-panel-close {
  color: #e7e8ea !important;
}

body.dark-mode .a11y-panel-close:hover {
  background: #222a3b !important;
  color: #ffffff !important;
}

body.dark-mode .a11y-panel-body {
  color: #e7e8ea !important;
}

body.dark-mode .a11y-divider {
  background: #2a3244 !important;
}

body.dark-mode .a11y-tile {
  background: #1b2232 !important;
  border-color: #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .a11y-tile:hover {
  background: #222a3b !important;
  border-color: #2a3244 !important;
}

body.dark-mode .a11y-tile i,
body.dark-mode .a11y-tile span {
  color: #e7e8ea !important;
}

body.dark-mode .a11y-tile[aria-pressed="true"] {
  border-color: #C62828 !important;
  box-shadow: 0 0 0 2px rgba(198, 40, 40, 0.18) inset !important;
}

body.dark-mode .a11y-btn {
  background: #C62828 !important;
  border-color: #a01f1f !important;
  color: #fff !important;
}

body.dark-mode .a11y-btn:hover {
  background: #a01f1f !important;
}

body.dark-mode .a11y-switch input:checked+.a11y-slider {
  background: #C62828 !important;
}

body.dark-mode .a11y-slider {
  background: #2a3244 !important;
}

body.dark-mode .a11y-reset-all {
  background: #C62828 !important;
  border-color: #a01f1f !important;
  color: #fff !important;
}

body.dark-mode .a11y-reset-all:hover {
  background: #a01f1f !important;
}

/* Dark mode: WhatsApp panel */
body.dark-mode .whatsapp-panel {
  background: #161b26 !important;
  border-color: #262c3a !important;
  color: #e7e8ea !important;
}

body.dark-mode .whatsapp-panel-header {
  background: #1b2232 !important;
  border-bottom: 1px solid #2a3244 !important;
  color: #e7e8ea !important;
}

body.dark-mode .whatsapp-panel-close {
  color: #e7e8ea !important;
}

body.dark-mode .whatsapp-panel-close:hover {
  background: #222a3b !important;
  color: #ffffff !important;
}

body.dark-mode .wa-info-number {
  color: #ffffff !important;
}

body.dark-mode .wa-info-text {
  color: #cbd5e1 !important;
}

body.dark-mode .wa-chat-button {
  color: #ffffff !important;
  border-color: #1ebe57 !important;
}

/* Pelayanan toggle */
.services-toggle {
  text-align: center;
  margin: 10px 0 16px;
}

.services-toggle-btn {
  background: #2162e2;
  color: #fff;
  border: none;
  border-radius: 10px;
  padding: 10px 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(33, 98, 226, 0.2);
}

.services-toggle-btn .btn-icon {
  font-size: 0.9rem;
}

.services-toggle-btn.active .btn-icon i {
  transform: rotate(180deg);
}

.services-toggle-btn:hover {
  background: #1a4bb8;
}

.services-collapse {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s ease;
}

.services-collapse.is-open {
  max-height: 2000px;
}

/* News overrides (ensure grid rapi) */
.news-container {
  overflow: hidden;
  padding-bottom: 0;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  min-width: auto;
  padding-bottom: 0;
}

.news-card {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  height: 100%;
}

.news-image {
  height: 180px;
  background: linear-gradient(135deg, #2162e2, #1a4bb8);
}

.news-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.news-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.news-card-desc {
  flex: 1;
}

/* Refined Search Button (Icon Only) */
.announcement-page-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  padding: 0;
  border-radius: 50%;
  background: #2563eb;
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.2s;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.announcement-page-submit:hover {
  background: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(37, 99, 235, 0.3);
}

.announcement-page-search-input::placeholder {
  color: #94a3b8;
  font-family: 'Poppins', sans-serif;
}

.announcement-page-select {
  padding: 10px 32px 10px 16px;
  border-radius: 999px;
  border: 1px solid #e2e8f0;
  background-color: #fff;
  font-size: 0.9rem;
  color: #64748b;
  cursor: pointer;
  outline: none;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3F%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3F%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 14px;
  font-family: 'Poppins', sans-serif;
}

.announcement-page-select:focus {
  border-color: #2563eb;
}

/* Announcement Index Page Styles */
.announcement-page-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.announcement-page-title-group {
  display: flex;
  align-items: center;
  gap: 16px;
}

.announcement-page-title {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 500;
  color: #1E1E1E;
  font-family: 'Poppins', sans-serif;
}

.announcement-page-desc {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.95rem;
  font-family: 'Poppins', sans-serif;
}

.announcement-page-back {
  color: #64748b;
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.announcement-page-back:hover {
  color: #2563eb;
}

.announcement-page-filters {
  margin-bottom: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.announcement-page-toolbar {
  margin-bottom: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  align-items: center;
}

.announcement-page-list {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

/* Ensure announcement-tab behaves well as link */
.announcement-tab {
  display: inline-block;
  text-decoration: none;
}

/* Empty State */
.pegawai-empty {
  text-align: center;
  padding: 40px;
  background: #f8fafc;
  border-radius: 16px;
  border: 1px dashed #cbd5e1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* --- NEWS REDESIGN V2 (Horizontal Cards & Sidebar) --- */
.news-header-bg-v2 {
  background: #2563eb;
  /* Vibrant blue background */
  padding-top: 100px;
  /* Clear fixed/sticky navbar */
  padding-bottom: 40px;
  color: #ffffff;
}

.news-list-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px 20px;
  /* Added 80px bottom padding */
}

.news-hero-v2 {
  text-align: left;
}

.news-breadcrumb-v2 {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8) !important;
  margin-bottom: 24px;
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 500;
}

.breadcrumb-sep-v2 {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.8rem;
}

.news-breadcrumb-v2 a {
  color: rgba(255, 255, 255, 0.82);
  text-decoration: none;
  transition: color 0.2s;
}

.news-breadcrumb-v2 a:hover {
  color: #ffffff;
}

.news-title-hero-v2 {
  font-size: 3rem;
  font-weight: 500;
  color: #ffffff !important;
  margin: 0 0 16px;
  letter-spacing: -0.04em;
  line-height: 1.1;
}

.news-desc-hero-v2 {
  font-size: 1.25rem;
  color: rgba(255, 255, 255, 0.9) !important;
  line-height: 1.7;
  max-width: 800px;
  margin-bottom: 20px;
}

.news-search-hero-v2 {
  position: relative;
  max-width: 900px;
}

.news-search-hero-v2 input {
  width: 100%;
  padding: 16px 24px 16px 52px;
  border-radius: 8px;
  border: 2px solid #e2e8f0;
  background: #fff;
  font-size: 1.1rem;
  outline: none;
  transition: all 0.2s;
  color: #0f172a;
}

.news-search-hero-v2 input:focus {
  border-color: #0f172a;
}

.news-search-hero-v2 .search-icon-v2 {
  position: absolute;
  left: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #94a3b8;
  font-size: 18px;
}

/* Grid Layout */
.news-container-v2 {
  display: grid;
  grid-template-columns: 1fr 300px;
  gap: 80px;
  align-items: start;
  margin-top: 24px;
}

.news-list-v2 {
  display: flex;
  flex-direction: column;
}

.news-list-header-v2 {
  margin-bottom: 32px;
  font-size: 1.1rem;
  font-weight: 600;
  color: #1E1E1E;
  padding-bottom: 16px;
  border-bottom: 2px solid #f1f5f9;
}

.news-card-v2 {
  display: grid;
  grid-template-columns: 140px 1fr 280px;
  gap: 20px;
  padding: 30px 0;
  border-bottom: 1px solid #f1f5f9;
  text-decoration: none;
  transition: opacity 0.2s;
}

.news-card-v2:first-of-type {
  padding-top: 0;
}

.news-card-v2:hover {
  opacity: 0.85;
}

.news-date-v2 {
  color: #64748b;
  font-size: 1rem;
  font-weight: 500;
  padding-top: 4px;
}

.news-body-v2 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.news-title-v2 {
  margin: 0;
  font-size: 1.4rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.3;
}

.news-excerpt-v2 {
  margin: 0;
  color: #475569;
  font-size: 1.05rem;
  line-height: 1.7;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-meta-v2 {
  display: flex;
  align-items: center;
  gap: 20px;
  margin-top: 8px;
}

.news-tag-v2 {
  display: inline-block;
  color: #64748b;
  font-size: 0.95rem;
  font-weight: 600;
}

.news-views-v2 {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #94a3b8;
  font-size: 0.9rem;
  font-weight: 500;
}

.news-views-v2 i {
  font-size: 0.85rem;
}

.news-thumb-v2 {
  width: 100%;
  height: 180px;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}

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

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

/* Sidebar Styles */
.news-sidebar-v2 {
  display: flex;
  flex-direction: column;
  gap: 48px;
  position: sticky;
  top: 100px;
}

.filter-group-v2 {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filter-title-v2 {
  font-size: 1.25rem;
  font-weight: 600;
  color: #0f172a;
  margin-top: 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid #f1f5f9;
  padding-bottom: 0px;
}

.filter-list-v2 {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-item-v2 {
  display: flex;
  align-items: center;
  gap: 14px;
  cursor: pointer;
  color: #475569;
  font-size: 1rem;
  font-weight: 500;
}

.filter-item-v2:hover {
  color: #0f172a;
}

.filter-item-v2 input[type="checkbox"] {
  width: 22px;
  height: 22px;
  cursor: pointer;
  accent-color: #0f172a;
}

.filter-count-v2 {
  color: #94a3b8;
  font-size: 0.9rem;
  margin-left: auto;
}

.filter-select-v2 {
  width: 100%;
  padding: 14px 16px;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #0f172a;
  font-size: 1rem;
  outline: none;
  font-weight: 500;
}

@media (max-width: 1024px) {
  .news-container-v2 {
    grid-template-columns: 1fr;
    gap: 80px;
  }
}

@media (max-width: 768px) {
  .news-title-hero-v2 {
    font-size: 1.5rem;
  }

  .news-desc-hero-v2 {
    font-size: 1rem;
  }

  .news-card-v2 {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 32px 0;
  }

  .news-thumb-v2 {
    height: 220px;
    order: -1;
  }
}

.news-thumb-v2--placeholder {
  display: flex !important;
  align-items: center;
  justify-content: center;
  color: #cbd5e1;
  background: #f8fafc;
}

.news-thumb-v2--placeholder i {
  font-size: 48px;
}

.news-list-pagination {
  margin-top: 64px;
}

.news-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
}

.pagination-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  background: #f1f5f9;
  color: #64748b;
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
  border: 1px solid transparent;
}

.pagination-btn:hover:not(.pagination-btn--dots):not(.active) {
  background: #e2e8f0;
  color: #0f172a;
}

.pagination-btn.active {
  background: #2563eb;
  color: #fff;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.2);
}

.pagination-btn--dots {
  background: transparent !important;
  color: #94a3b8;
  cursor: default;
}

/* Stat Card Header for Download Menu */
.stat-card-header {
  display: flex !important;
  justify-content: space-between !important;
  align-items: center !important;
  margin-bottom: 1rem !important;
  position: relative !important;
  width: 100% !important;
}

.stat-card-header .stat-card-title {
  margin: 0 !important;
  flex-grow: 1;
}


.card-menu-btn {
  background: transparent !important;
  border: none !important;
  cursor: pointer !important;
  padding: 8px 12px !important;
  color: #6B7280 !important;
  font-size: 1.2rem !important;
  transition: color 0.2s;
  display: flex !important;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
}

.card-menu-btn:hover {
  background-color: rgba(0, 0, 0, 0.05) !important;
  color: #111827 !important;
}

.card-menu-dropdown {
  position: absolute !important;
  right: 0 !important;
  top: 100% !important;
  margin-top: 0.5rem !important;
  background: white !important;
  border: 1px solid #E5E7EB !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
  border-radius: 8px !important;
  padding: 0.5rem !important;
  display: none;
  z-index: 50 !important;
  min-width: 160px !important;
}

.card-menu-dropdown.show {
  display: block !important;
}

.card-menu-dropdown button {
  display: flex !important;
  align-items: center !important;
  gap: 0.5rem !important;
  width: 100% !important;
  padding: 0.5rem 0.75rem !important;
  border: none !important;
  background: transparent !important;
  color: #374151 !important;
  font-size: 0.875rem !important;
  cursor: pointer !important;
  border-radius: 6px !important;
  transition: background 0.2s;
  text-align: left !important;
}

.card-menu-dropdown button:hover {
  background: #F3F4F6 !important;
}

.card-menu-dropdown button i {
  font-size: 0.875rem !important;
  color: #6B7280 !important;
}

/* Ensure canvas has proper height in stat cards */
.stat-card canvas {
  min-height: 250px;
  max-height: 300px;
  width: 100% !important;
}

/* Pegawai Page - News Style Sync & Layout Refinement */
.pegawai-body-v2 {
  background: #f8fafc;
}

.pegawai-page-v2 {
  max-width: 1080px;
  margin: 0 auto 48px;
  padding: 95px 18px 48px;
}

.pegawai-hero-v2 {
  margin-bottom: 18px;
  position: relative;
  z-index: 1;
}

.pegawai-breadcrumb-v2 {
  font-size: 0.95rem;
  color: #64748b;
  margin-bottom: 8px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.pegawai-breadcrumb-v2 a {
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
}

.pegawai-hero-top-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.pegawai-header-v2 h1 {
  margin: 0 0 6px;
  font-size: 2rem;
  font-weight: 600;
  color: #0f172a;
  line-height: 1.2;
}

.pegawai-hero-desc-v2 {
  color: #475569;
  margin: 0;
  font-size: 1rem;
}

.pegawai-back-btn-v2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 12px;
  border: 2px solid #e2e8f0;
  background: #fff;
  color: #2563eb;
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s ease;
}

.pegawai-back-btn-v2:hover {
  border-color: #2563eb;
  background: #f8fafc;
}

.pegawai-toolbar-v2 {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  margin: 24px 0 32px;
}

.pegawai-total-v2 {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #0f172a;
  font-weight: 600;
  font-size: 0.95rem;
}

.pegawai-filters-v2 {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  flex-grow: 1;
  justify-content: flex-end;
}

.pegawai-search-v2 {
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 12px;
  padding: 8px 16px;
  background: #f1f5f9;
  border: 1px solid #e2e8f0;
  min-width: 280px;
}

.pegawai-search-v2 input {
  border: 0;
  outline: 0;
  background: transparent;
  font-family: inherit;
  font-size: 14px;
  width: 100%;
}

.pegawai-select-v2 {
  padding: 8px 16px;
  border-radius: 12px;
  border: 1px solid #e2e8f0;
  background: #f1f5f9;
  font-family: inherit;
  font-size: 14px;
  outline: 0;
  min-width: 160px;
}

/* Leader Section Style - News Theme Refinement */
.pegawai-leader-section-v2 {
  margin-bottom: 40px;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.leader-label-v2 {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 600;
  color: #2563eb;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 12px;
  text-align: center;
}

.pegawai-staff-section-v2 {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 32px;
  margin-top: 40px;
  width: 100%;
}

/* New Vertical Card Style - Info Below Image */
.pegawai-body-v2 .pegawai-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  height: auto;
  min-width: 0;
  max-width: none;
  aspect-ratio: auto;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: all 0.3s ease;
  position: relative;
}

.pegawai-body-v2 .pegawai-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 25px rgba(15, 23, 42, 0.1);
  border-color: #2563eb;
}

.pegawai-body-v2 .pegawai-card__image {
  position: relative;
  width: 100%;
  height: 240px;
  overflow: hidden;
}

.pegawai-body-v2 .pegawai-card__image img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0;
}

.pegawai-body-v2 .pegawai-card::after {
  display: none;
  /* Remove overlay */
}

.pegawai-body-v2 .pegawai-card-info {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
  background: #fff;
  text-align: left;
}

.pegawai-body-v2 .pegawai-name {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #0f172a !important;
  line-height: 1.2;
  text-shadow: none !important;
}

.pegawai-body-v2 .pegawai-role {
  font-size: 0.9rem !important;
  color: #64748b !important;
  font-weight: 500 !important;
  background: none !important;
  border: none !important;
  padding: 0 !important;
  backdrop-filter: none !important;
}

.pegawai-body-v2 .pegawai-status-badge {
  display: inline-block;
  padding: 6px 10px;
  border-radius: 8px;
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  width: fit-content;
  margin-top: 4px;
  background: #f1f5f9;
  color: #475569;
}

.pegawai-body-v2 .pegawai-status-badge.aktif {
  background: #dcfce7;
  color: #166534;
}

.pegawai-body-v2 .pegawai-grid {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 24px;
  padding: 0;
}

@media (min-width: 1100px) {
  .pegawai-body-v2 .pegawai-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Specific override for Leader card to match other cards */
.pegawai-body-v2 .pegawai-leader-section-v2 .pegawai-card {
  width: 100%;
  max-width: 260px;
  margin: 0 auto;
}

@media (max-width: 640px) {
  .pegawai-page-v2 {
    padding-top: 85px;
  }

  .pegawai-toolbar-v2 {
    flex-direction: column;
    align-items: flex-start;
  }

  .pegawai-filters-v2 {
    width: 100%;
  }

  .pegawai-search-v2 {
    width: 100%;
    min-width: 0;
  }

  .pegawai-select-v2 {
    width: 100%;
  }

  .pegawai-body-v2 .pegawai-grid {
    grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
    gap: 12px;
  }

  .pegawai-body-v2 .pegawai-card__image {
    height: 180px;
  }

  .pegawai-body-v2 .pegawai-name {
    font-size: 1rem !important;
  }
}

/* Force 3 columns for news grid on desktop (Re-applied) */
@media (min-width: 992px) {
  .news-grid {
    grid-template-columns: repeat(3, 1fr) !important;
  }
}

/* Map Modal Styles */
.map-modal .custom-modal__content--xl {
  width: 95%;
  max-width: 1100px;
  padding: 0;
  border-radius: 16px;
  overflow: hidden;
}

.map-modal__header {
  padding: 20px 24px;
  background: #f8fafc;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.map-modal__title {
  font-size: 1.25rem;
  font-weight: 700;
  color: #1E1E1E;
  margin: 0;
}

.map-modal__subtitle {
  font-size: 0.875rem;
  color: #64748b;
  margin-top: 4px;
}

.map-modal__body {
  padding: 24px;
  overflow-y: auto;
  max-height: 80vh;
}

.map-modal__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 992px) {
  .map-modal__grid {
    grid-template-columns: 1.8fr 1fr;
  }
}

.map-wrapper {
  position: relative;
  width: 100%;
  height: 350px;
  border-radius: 12px;
  overflow: hidden;
  background: #f1f5f9;
  box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.map-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  color: #94a3b8;
  flex-direction: column;
  gap: 12px;
}

.map-placeholder i {
  font-size: 48px;
  opacity: 0.5;
}

.modal-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
}

.modal-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #242424;
  margin-bottom: 14px;
  display: flex;
  align-items: center;
}

.icon-wrap {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  font-size: 14px;
}

.bg-blue-100 {
  background: #dbeafe;
}

.text-blue-600 {
  color: #2563eb;
}

.bg-green-100 {
  background: #dcfce7;
}

.text-green-600 {
  color: #166534;
}

.bg-red-100 {
  background: #fee2e2;
}

.text-red-600 {
  color: #dc2626;
}

.wilayah-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-height: 200px;
  overflow-y: auto;
  padding-right: 4px;
}

.wilayah-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 10px;
  background: #f8fafc;
  border-radius: 8px;
  font-size: 0.9rem;
  border: 1px solid #f1f5f9;
}

.wilayah-count {
  background: #fff;
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
  font-size: 0.8rem;
  color: #2563eb;
  border: 1px solid #e2e8f0;
}

.modal-hours-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.hours-item {
  display: flex;
  justify-content: space-between;
  font-size: 0.875rem;
  padding-bottom: 6px;
  border-bottom: 1px dashed #e2e8f0;
}

.hours-item:last-child {
  border-bottom: none;
}

.hours-item .day {
  color: #64748b;
}

.hours-item .time {
  font-weight: 600;
  color: #1E1E1E;
}

.address-box {
  background: #f8fafc;
  padding: 12px;
  border-radius: 8px;
  border: 1px solid #f1f5f9;
}


/* Base Custom Modal Styles */
.custom-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: none;
  /* Default hidden, toggled by JS flex */
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.custom-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.custom-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

.custom-modal__content {
  position: relative;
  background: #fff;
  width: 90%;
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  border-radius: 12px;
  box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1);
  transform: scale(0.95);
  transition: transform 0.3s ease;
}

.custom-modal.is-open .custom-modal__content {
  transform: scale(1);
}

.custom-modal__close {
  position: absolute;
  top: 16px;
  right: 16px;
  background: transparent;
  border: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #64748b;
  cursor: pointer;
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  transition: background 0.2s;
}

.custom-modal__close:hover {
  background: #f1f5f9;
  color: #dc2626;
}

.map-modal__col-sidebar {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

/* Refined Map Description & Area */
.map-description-container {
  margin: 20px 0;
}

.map-desc-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: #1E1E1E;
  margin-bottom: 8px;
  margin-top: 8px;
}

.map-desc-text {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

/* Area Card */
.area-card {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 12px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
}

.area-card__title {
  font-size: 1rem;
  font-weight: 600;
  color: #1e40af;
  margin-bottom: 4px;
}

.area-card__value {
  font-size: 2rem;
  font-weight: 800;
  color: #2563eb;
  line-height: 1;
}

.area-card__unit {
  font-size: 1rem;
  font-weight: 600;
  color: #60a5fa;
  margin-left: 4px;
}

/* Dark Mode for Map Modal */
body.dark-mode .custom-modal__content {
  background: #1E1E1E;
  color: #f1f5f9;
}

body.dark-mode .map-modal__header {
  background: #0f172a;
  border-bottom-color: #242424;
}

body.dark-mode .map-modal__title {
  color: #f8fafc;
}

body.dark-mode .modal-card {
  background: #1E1E1E;
  border-color: #242424;
}

body.dark-mode .modal-card__title {
  color: #f1f5f9;
}

body.dark-mode .map-wrapper {
  background: #0f172a;
}

body.dark-mode .map-desc-title {
  color: #f1f5f9;
}

body.dark-mode .map-desc-text,
body.dark-mode .address-box {
  color: #cbd5e1;
}

body.dark-mode .address-box {
  background: #0f172a;
  border-color: #242424;
}

body.dark-mode .wilayah-item {
  background: #0f172a;
  border-color: #242424;
  color: #cbd5e1;
}

body.dark-mode .wilayah-count {
  background: #1E1E1E;
  border-color: #242424;
  color: #60a5fa;
}

body.dark-mode .area-card {
  background: #172554;
  border-color: #1e40af;
}

body.dark-mode .area-card__title {
  color: #bfdbfe;
}

body.dark-mode .area-card__value {
  color: #60a5fa;
}

body.dark-mode .custom-modal__close {
  color: #94a3b8;
}

body.dark-mode .custom-modal__close:hover {
  background: #242424;
  color: #f87171;
}


/* Dark Mode for Pegawai Page */
body.dark-mode .pegawai-header-v2 h1 {
  color: #f1f5f9;
}

body.dark-mode .pegawai-hero-desc-v2 {
  color: #cbd5e1;
}

body.dark-mode .pegawai-total-v2 {
  color: #94a3b8;
}

body.dark-mode .pegawai-card {
  background: #1E1E1E;
  border-color: #242424;
  box-shadow: none;
}

body.dark-mode .pegawai-name {
  color: #f1f5f9;
}

body.dark-mode .pegawai-role {
  color: #94a3b8;
}

body.dark-mode .pegawai-search-v2 {
  background: #1E1E1E;
  border-color: #242424;
}

body.dark-mode .pegawai-search-v2 input {
  color: #f1f5f9;
}

body.dark-mode .pegawai-select-v2 {
  background-color: #1E1E1E;
  border-color: #242424;
  color: #f1f5f9;
}

body.dark-mode .leader-label-v2 {
  color: #cbd5e1;
  background: #0f172a;
}

body.dark-mode .pegawai-back-btn-v2 {
  background: #1E1E1E;
  color: #f1f5f9;
  border-color: #242424;
}

body.dark-mode .pegawai-back-btn-v2:hover {
  background: #242424;
}


/* Stronger Dark Mode Overrides for Pegawai */
body.dark-mode .pegawai-body-v2 .pegawai-card,
body.dark-mode .pegawai-body-v2 .pegawai-card-info {
  background: #1E1E1E !important;
  color: #f1f5f9 !important;
  border-color: #242424 !important;
}

body.dark-mode .pegawai-name {
  color: #f1f5f9 !important;
}

body.dark-mode .pegawai-role {
  color: #94a3b8 !important;
}

body.dark-mode .pegawai-status-badge {
  background: #242424 !important;
  color: #cbd5e1 !important;
}

body.dark-mode .pegawai-status-badge.aktif {
  background: #064e3b !important;
  color: #6ee7b7 !important;
}


/* Dark Mode for Dynamic Pegawai Modal */
body.dark-mode .pegawai-modal__dialog {
  background: #1E1E1E;
  color: #f1f5f9;
  border: 1px solid #242424;
}

body.dark-mode .pegawai-modal__name {
  color: #f1f5f9;
}

body.dark-mode .pegawai-modal__label {
  color: #cbd5e1;
  opacity: 0.8;
}

body.dark-mode .pegawai-modal__role,
body.dark-mode .pegawai-modal__status {
  color: #f1f5f9;
}

body.dark-mode .pegawai-modal__close {
  background: #242424;
  color: #f1f5f9;
  border-color: #475569;
}

body.dark-mode .pegawai-modal__close:hover {
  background: #475569;
  color: #fff;
}


/* AGGRESSIVE Dark Mode for Pegawai Modal */
body.dark-mode .pegawai-modal__dialog,
body.dark-mode .pegawai-modal__body {
  background: #1E1E1E !important;
  color: #f1f5f9 !important;
}

body.dark-mode .pegawai-modal__img-container {
  background: #1E1E1E !important;
}

body.dark-mode .pegawai-modal__name {
  color: #f1f5f9 !important;
}

body.dark-mode .pegawai-modal__label {
  color: #cbd5e1 !important;
  opacity: 0.9 !important;
}

body.dark-mode .pegawai-modal__role {
  color: #94a3b8 !important;
}

body.dark-mode .pegawai-modal__status {
  color: #f1f5f9 !important;
}


/* CORRECTED Dark Mode for Pegawai Cards (Fixing selector issue) */
body.dark-mode .pegawai-card,
body.dark-mode .pegawai-card-info,
body.pegawai-body-v2.dark-mode .pegawai-card {
  background: #1E1E1E !important;
  color: #f1f5f9 !important;
  border-color: #242424 !important;
}


/* Dark Mode for News Page (Berita Desa) */
body.dark-mode .news-search-hero-v2 input {
  background: #1E1E1E;
  color: #f1f5f9;
  border-color: #242424;
}

body.dark-mode .news-search-hero-v2 input::placeholder {
  color: #94a3b8;
}

body.dark-mode .news-search-hero-v2 .search-icon-v2 {
  color: #94a3b8;
}

body.dark-mode .filter-title-v2 {
  color: #f1f5f9;
}

body.dark-mode .filter-item-v2 {
  color: #cbd5e1;
}

body.dark-mode .filter-count-v2 {
  color: #94a3b8;
}

body.dark-mode .filter-select-v2 {
  background-color: #1E1E1E;
  color: #f1f5f9;
  border-color: #242424;
}

body.dark-mode .filter-select-v2 option {
  background-color: #1E1E1E;
  color: #f1f5f9;
}


/* Dark Mode for News Count Text */
body.dark-mode .news-list-header-v2 {
  color: #f1f5f9;
}


/* Dark Mode for Statistics Page */
body.dark-mode .stats-body,
body.dark-mode .stats-page {
  background-color: #171717;
}

body.dark-mode .summary-tile {
  background: #1E1E1E;
  color: #f1f5f9;
  box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.5);
}

body.dark-mode .summary-icon {
  background: rgba(30, 41, 59, 0.8);
  color: #f1f5f9;
}

body.dark-mode .summary-content h4 {
  color: #f1f5f9;
}

body.dark-mode .summary-content .count {
  color: #f1f5f9;
}

body.dark-mode .filter-bar,
body.dark-mode .filter-form {
  background: #1E1E1E;
  color: #f1f5f9;
  border-radius: 12px;
}

body.dark-mode .filter-group select {
  background-color: #171717;
  color: #f1f5f9;
  border-color: #242424;
}

body.dark-mode .filter-group label {
  color: #cbd5e1;
}

body.dark-mode .stats-card {
  background: #1E1E1E;
  color: #f1f5f9;
}

body.dark-mode .stats-card__header h3 {
  color: #f1f5f9;
}

body.dark-mode .menu-trigger {
  color: #cbd5e1;
}

body.dark-mode .menu-dropdown {
  background: #1E1E1E;
  border-color: #242424;
}

body.dark-mode .menu-dropdown button {
  color: #f1f5f9;
}

body.dark-mode .menu-dropdown button:hover {
  background: #242424;
}


/* Force Dark Mode for Statistics Page Hero & Body (Overriding internal styles) */
body.dark-mode .stats-body {
  background-color: #0f172a !important;
}

body.dark-mode .page-hero {
  background: #0f172a !important;
  border-bottom: 1px solid #1E1E1E;
}

body.dark-mode .page-hero .breadcrumb,
body.dark-mode .page-hero .breadcrumb a,
body.dark-mode .page-hero .page-meta {
  color: #cbd5e1 !important;
}

body.dark-mode .page-hero .page-title {
  color: #f1f5f9 !important;
}


/* CORRECTED Statistics Page Dark Mode (Fixing body selector & Hero Color) */
body.dark-mode.stats-body {
  background-color: #171717 !important;
}

body.dark-mode .page-hero {
  background: #1e4fb3 !important;
  /* Restore Blue */
  border-bottom: none !important;
}

body.dark-mode .page-hero .breadcrumb,
body.dark-mode .page-hero .breadcrumb a,
body.dark-mode .page-hero .page-meta {
  color: #e0e7ff !important;
  /* Light text for blue bg */
}

body.dark-mode .page-hero .page-title {
  color: #ffffff !important;
}


/* Fix White Outlines in Statistics Page Dark Mode */
body.dark-mode .summary-tile {
  border: 1px solid #242424 !important;
}

body.dark-mode .filter-bar,
body.dark-mode .filter-form {
  border: 1px solid #242424 !important;
}

/* Statistics Page: Use #171717 for Cards (User Requested Hex) */
body.dark-mode .summary-tile,
body.dark-mode .filter-bar,
body.dark-mode .filter-form,
body.dark-mode .stats-card,
body.dark-mode .menu-dropdown {
  background: #171717 !important;
  border-color: #242424 !important;
}

/* Dark Mode for Generic Pages (page.blade.php) */
/* Force dark background on the specific page structure */
body.dark-mode .page-main {
  background: #171717 !important;
}

body.dark-mode .page-body {
  background: #171717 !important;
  color: #f1f5f9 !important;
}

body.dark-mode .page-detail__body {
  color: #cbd5e1 !important;
}

/* Attachment Cards - Dark Mode Override */
body.dark-mode .attachment-card {
  background: #1E1E1E !important;
  border-color: #334155 !important;
}

/* Fix Inline Text Colors in Attachment Cards */
body.dark-mode .attachment-file div[style*='color: #0f172a'] {
  color: #f1f5f9 !important;
}

body.dark-mode .attachment-file small[style*='color: #64748b'] {
  color: #94a3b8 !important;
}

body.dark-mode .attachment-file i.fa-file-alt {
  color: #cbd5e1 !important;
}

/* Floating Widgets (WhatsApp & Accessibility) */
.whatsapp-widget,
.a11y-widget {
  position: fixed;
  z-index: 1000;
  bottom: 30px;
}

.whatsapp-widget {
  right: 30px;
}

.a11y-widget {
  right: 84px;
}

.whatsapp-float,
.accessibility-float {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  text-align: center;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.35);
  cursor: pointer;
  border: 1px solid rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  transition: all 0.3s ease;
  color: white;
  animation: pulse 2s infinite;
}

.whatsapp-float {
  background-color: #25d366;
  border-color: #128c7e;
  box-shadow: 0 10px 24px rgba(37, 211, 102, 0.35);
}

.whatsapp-float:hover {
  background-color: #128c7e;
  transform: scale(1.1);
  box-shadow: 0 12px 28px rgba(18, 140, 126, 0.45);
}

.accessibility-float {
  background-color: #d32f2f;
  border-color: #c62828;
  box-shadow: 0 10px 24px rgba(211, 47, 47, 0.35);
}

.accessibility-float:hover {
  background-color: #b71c1c;
  transform: scale(1.1);
  box-shadow: 0 12px 28px rgba(183, 28, 28, 0.45);
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0.4);
  }

  70% {
    box-shadow: 0 0 0 15px rgba(255, 255, 255, 0);
  }

  100% {
    box-shadow: 0 0 0 0 rgba(255, 255, 255, 0);
  }
}

.whatsapp-widget:hover .whatsapp-float {
  animation: none;
}

/* Base Panel Styles */
.whatsapp-panel,
.a11y-panel {
  position: absolute;
  bottom: 55px;
  width: 250px;
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  opacity: 0;
  visibility: hidden;
  transform: translateY(20px) scale(0.95);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid #e2e8f0;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.98);
}

.whatsapp-panel {
  right: 0;
  transform-origin: bottom right;
}

.a11y-panel {
  right: 0;
  transform-origin: bottom right;
  width: 280px;
}

.whatsapp-panel.open,
.a11y-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(0) scale(1);
}

/* Panel Header */
.whatsapp-panel-header,
.a11y-header {
  background: linear-gradient(to right, #25d366, #128c7e);
  color: white;
  padding: 15px 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  font-size: 16px;
}

.a11y-header {
  background: linear-gradient(to right, #d32f2f, #b71c1c);
  justify-content: space-between;
}

.whatsapp-panel-header i,
.a11y-header i {
  font-size: 20px;
}

.whatsapp-panel-close,
.a11y-panel-close {
  background: none;
  border: none;
  color: white;
  font-size: 24px;
  cursor: pointer;
  margin-left: auto;
  line-height: 1;
  opacity: 0.8;
  transition: opacity 0.2s;
}

.whatsapp-panel-close:hover,
.a11y-panel-close:hover {
  opacity: 1;
}

/* Panel Body */
.whatsapp-panel-body,
.a11y-panel-body {
  padding: 15px;
}

/* WhatsApp Specifics */
.wa-info-number {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 5px;
  font-family: monospace;
}

.wa-info-text {
  font-size: 13px;
  color: #666;
  margin-bottom: 15px;
  line-height: 1.4;
}

.wa-chat-button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  background: #25d366;
  color: white;
  text-decoration: none;
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 600;
  gap: 6px;
  transition: background 0.2s;
  font-size: 13px;
}

.wa-chat-button:hover {
  background: #128c7e;
  color: white;
}

/* Accessibility Grid */
.a11y-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
  margin-bottom: 15px;
}

.a11y-tile {
  background: #f8f9fa;
  border: 1px solid #e9ecef;
  border-radius: 8px;
  padding: 10px 5px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all 0.2s;
  color: #495057;
  font-size: 11px;
  font-weight: 500;
  text-align: center;
}

.a11y-tile i {
  font-size: 16px;
  color: #d32f2f;
  margin-bottom: 2px;
}

.a11y-tile:hover {
  background: #ffebee;
  border-color: #d32f2f;
  color: #d32f2f;
}

.a11y-tile.active {
  background: #d32f2f;
  color: white;
  border-color: #d32f2f;
}

.a11y-tile.active i {
  color: white;
}

/* A11y Actions */
.a11y-divider {
  height: 1px;
  background: #eee;
  margin: 15px 0;
}

.a11y-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 15px;
}

.a11y-label {
  font-size: 14px;
  font-weight: 600;
  color: #333;
}

.a11y-actions {
  display: flex;
  gap: 5px;
}

.a11y-btn {
  background: #f1f3f5;
  border: 1px solid #dee2e6;
  border-radius: 6px;
  padding: 5px 10px;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  color: #495057;
  transition: all 0.2s;
}

.a11y-btn:hover {
  background: #e9ecef;
}

.a11y-reset-all {
  width: 100%;
  background: #fee2e2;
  color: #dc2626;
  border: 1px solid #fecaca;
  padding: 10px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  font-size: 13px;
  transition: background 0.2s;
}

.a11y-reset-all:hover {
  background: #fca5a5;
}

/* Accessibility Feature States (applied to body/elements) */
html.filter-grayscale {
  filter: grayscale(100%);
}

html.filter-invert {
  filter: invert(100%);
}

html.filter-contrast-dark {
  filter: contrast(125%);
  background-color: #000;
  color: #fff;
}

html.filter-contrast-light {
  filter: contrast(80%) brightness(120%);
}

html.filter-highlight-links a {
  background: #ffe000 !important;
  color: #000 !important;
  text-decoration: underline !important;
}

html.filter-big-text {
  font-size: 120%;
}

html.filter-text-spacing {
  letter-spacing: 2px !important;
  word-spacing: 5px !important;
  line-height: 2 !important;
}

html.filter-dyslexia {
  font-family: 'Open Dyslexic', 'Comic Sans MS', sans-serif !important;
}

html.filter-cursor {
  cursor: help !important;
}

html.filter-cursor * {
  cursor: help !important;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {

  .whatsapp-widget,
  .a11y-widget {
    bottom: 20px;
  }

  .whatsapp-widget {
    right: 20px;
  }

  .a11y-widget {
    right: 70px;
    bottom: 20px;
  }

  .whatsapp-float,
  .accessibility-float {
    width: 40px;
    height: 40px;
    font-size: 18px;
  }

  .whatsapp-panel,
  .a11y-panel {
    bottom: 55px;
    width: 250px;
  }
}

/* News Page (V2) Mobile Optimizations */
@media (max-width: 768px) {
  .news-hero-v2 {
    padding: 30px 20px !important;
  }

  .news-title-hero-v2 {
    font-size: 1.8rem !important;
  }

  .news-desc-hero-v2 {
    font-size: 0.9rem !important;
  }

  .news-list-page {
    padding-top: 20px !important;
  }

  .news-container-v2 {
    padding: 0 16px !important;
  }

  .news-card-v2 {
    padding: 24px 0 !important;
    gap: 16px !important;
  }

  .news-title-v2 {
    font-size: 1.15rem !important;
    margin-bottom: 8px !important;
  }

  .news-excerpt-v2 {
    font-size: 0.9rem !important;
    margin-bottom: 12px !important;
  }

  .news-date-v2 {
    font-size: 0.85rem !important;
    margin-bottom: 8px !important;
  }

  .news-meta-v2 {
    gap: 12px !important;
  }

  .news-thumb-v2 {
    height: 180px !important;
  }
}
