/*
Theme Name: Desa Salo Palai
Theme URI: http://desa-salo-palai.test
Author: Jumadin, S.H
Description: Custom premium theme for Portal Desa Salo Palai.
Version: 2.13.3
Text Domain: desa-salo-palai
*/
/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Colors */
  --primary-hue: 225; /* Deep Royal Blue #0d41e1 is 225 degrees */
  --color-primary: hsl(var(--primary-hue), 89%, 47%);       /* Royal Blue */
  --color-primary-light: hsl(var(--primary-hue), 95%, 55%);
  --color-primary-dark: hsl(var(--primary-hue), 89%, 30%);
  --color-secondary: hsl(192, 96%, 50%);                    /* Bright Cyan #07c8f9 */
  --color-secondary-dark: hsl(192, 96%, 40%);
  --color-text-dark: hsl(222, 47%, 11%);                    /* Slate 900 */
  --color-text-light: hsl(215, 16%, 47%);                   /* Slate 600 */
  --color-bg-light: hsl(225, 60%, 98%);                     /* Very Soft Royal Tint */
  --color-bg-card: hsl(0, 0%, 100%);
  --color-border: hsl(214, 32%, 91%);
  --color-glass-bg: hsla(0, 0%, 100%, 0.7);
  --color-glass-border: hsla(0, 0%, 100%, 0.45);
  
  /* Fonts */
  --font-headings: 'Outfit', sans-serif;
  --font-body: 'Plus Jakarta Sans', sans-serif;
  
  /* Spacing */
  --spacing-xs: 0.5rem;
  --spacing-sm: 1rem;
  --spacing-md: 1.5rem;
  --spacing-lg: 3rem;
  --spacing-xl: 5rem;
  
  /* Utilities */
  --border-radius-sm: 8px;
  --border-radius-md: 16px;
  --border-radius-lg: 24px;
  --box-shadow-soft: 0 10px 30px -10px hsla(210, 30%, 20%, 0.08);
  --box-shadow-medium: 0 20px 40px -15px hsla(210, 30%, 20%, 0.12);
  --box-shadow-hover: 0 30px 60px -20px hsla(var(--primary-hue), 60%, 15%, 0.18);
  --transition-smooth: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-fast: all 0.2s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: 80px;
  overflow-x: clip;
  max-width: 100%;
}

@media (max-width: 768px) {
  html { scroll-padding-top: 68px; }
}

body {
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.6;
  color: var(--color-text-dark);
  background-color: var(--color-bg-light);
  overflow-x: clip;
  max-width: 100%;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-headings);
  font-weight: 700;
  line-height: 1.25;
  color: var(--color-primary-dark);
}

a {
  color: var(--color-primary);
  text-decoration: none;
  transition: var(--transition-fast);
}

a:hover {
  color: var(--color-primary-light);
}

ul {
  list-style: none;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

.container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
}

.section-padding {
  padding-block: var(--spacing-xl);
}

/* Touch-friendly tap targets (min 44px per WCAG) */
@media (max-width: 768px) {
  a, button {
    -webkit-tap-highlight-color: transparent;
  }
  .nav-link, .btn, .filter-btn, .tab-link {
    min-height: 44px;
  }
  input, select, textarea {
    font-size: 16px; /* Prevent zoom on iOS */
  }
}

/* Section fade-in on scroll (Intersection Observer powered) */
.section-anim {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.7s ease, transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}
.section-anim.visible {
  opacity: 1;
  transform: translateY(0);
}


/* Common Section Headers */
.section-subtitle {
  font-family: var(--font-headings);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.15em;
  color: var(--color-primary);
  margin-bottom: 0.75rem;
  display: block;
}

.section-subtitle.light {
  color: var(--color-secondary);
}

.section-title {
  font-size: clamp(2rem, 4vw, 2.75rem);
  margin-bottom: 1.25rem;
  position: relative;
  display: inline-block;
}

.section-title.light {
  color: white;
}

.section-desc {
  font-size: 1.1rem;
  color: var(--color-text-light);
  max-width: 600px;
  margin: 0 auto 3.5rem auto;
}

.section-desc.light {
  color: hsla(0, 0%, 100%, 0.8);
}

.text-center {
  text-align: center;
}

.paragraph {
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
  font-size: 1.05rem;
}

/* ==========================================================================
   BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.9rem 2rem;
  font-family: var(--font-headings);
  font-size: 1rem;
  font-weight: 600;
  border-radius: var(--border-radius-btn, var(--border-radius-sm));
  transition: var(--transition-smooth);
  cursor: pointer;
  border: 2px solid transparent;
  position: relative;
  overflow: hidden;
}

.btn-primary {
  background-color: var(--color-btn-bg, var(--color-primary));
  color: var(--color-btn-text, white);
}

.btn-primary:hover {
  filter: brightness(1.18);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px hsla(var(--primary-hue), 70%, 26%, 0.3);
}

.btn-secondary {
  background-color: transparent;
  color: white;
  border-color: white;
}

.btn-secondary:hover {
  background-color: white;
  color: var(--color-primary-dark);
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px rgba(255, 255, 255, 0.2);
}

.btn-outline {
  background-color: transparent;
  color: var(--color-primary);
  border-color: var(--color-primary);
}

.btn-outline:hover {
  background-color: var(--color-primary);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px -5px hsla(var(--primary-hue), 70%, 26%, 0.2);
}

.btn-icon {
  margin-left: 0.5rem;
  transition: transform 0.3s ease;
}

.btn-primary:hover .btn-icon {
  transform: translateX(5px);
}

/* ==========================================================================
   HEADER & NAVIGATION (GLASSMORPHISM & DROPDOWN)
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--color-glass-bg);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-glass-border);
  transition: var(--transition-smooth);
}

.site-header.scrolled {
  background-color: hsla(var(--primary-hue), 80%, 10%, 0.95);
  border-bottom: 1px solid hsla(var(--primary-hue), 80%, 15%, 0.5);
  box-shadow: var(--box-shadow-soft);
}

.site-header.scrolled .logo-title,
.site-header.scrolled .logo-svg {
  color: white;
}

.site-header.scrolled .logo-subtitle {
  color: var(--color-secondary);
}

.site-header.scrolled .nav-link {
  color: hsla(0, 0%, 100%, 0.85);
}

.site-header.scrolled .nav-link:hover,
.site-header.scrolled .nav-link.active {
  color: white;
}

.header-container {
  width: 90%;
  max-width: 1200px;
  height: 80px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  transition: height 0.3s ease;
}

/* Logo Area */
.logo-area {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.logo-svg {
  width: 44px;
  height: 44px;
  color: var(--color-primary);
  transition: var(--transition-smooth);
}

.logo-img {
  height: 48px;
  width: auto;
  object-fit: contain;
  transition: var(--transition-smooth);
}

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

.logo-title {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  color: var(--color-primary-dark);
  line-height: 1;
  transition: var(--transition-smooth);
}

.logo-subtitle {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-primary-light);
  margin-top: 2px;
  transition: var(--transition-smooth);
}

/* Navigation Links */
.nav-menu {
  display: flex;
  align-items: center;
}

.nav-list {
  display: flex;
  align-items: center;
  gap: 1.2rem;
}

.nav-item {
  position: relative;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.75rem 0.4rem;
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.95rem;
  color: var(--color-text-dark);
  transition: color 0.2s ease, padding 0.2s ease;
}

/* Responsive menu spacing adjustments (v1.7.5) */
@media (max-width: 1200px) {
  .nav-list {
    gap: 0.75rem;
  }
  .nav-link {
    font-size: 0.9rem;
    padding: 0.75rem 0.3rem;
  }
  .highlight-link {
    padding: 0.45rem 0.9rem;
  }
}

@media (max-width: 1024px) {
  .nav-list {
    gap: 0.4rem;
  }
  .nav-link {
    font-size: 0.82rem;
    padding: 0.75rem 0.2rem;
    gap: 0.15rem;
  }
  .highlight-link {
    padding: 0.4rem 0.65rem;
  }
}

.nav-link:hover,
.nav-link.active,
.current-menu-item > .nav-link,
.current-menu-parent > .nav-link,
.current-menu-ancestor > .nav-link,
.current_page_item > .nav-link,
.current_page_parent > .nav-link,
.current_page_ancestor > .nav-link {
  color: var(--color-primary);
}

.highlight-link {
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--border-radius-sm);
  font-weight: 600;
  transition: all 0.3s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.highlight-link:hover {
  transform: translateY(-1px);
}

/* Specific button colors for Prodeskel */
.highlight-prodeskel {
  background-color: var(--color-primary);
  box-shadow: 0 4px 10px hsla(var(--primary-hue), 70%, 26%, 0.15);
}

.highlight-prodeskel:hover {
  background-color: var(--color-primary-light) !important;
  box-shadow: 0 6px 15px hsla(var(--primary-hue), 70%, 26%, 0.25);
}

/* Specific button colors for PPID */
.highlight-ppid {
  background-color: #f59e0b; /* Amber/Orange */
  box-shadow: 0 4px 10px rgba(245, 158, 11, 0.25);
}

.highlight-ppid:hover {
  background-color: #d97706 !important; /* Darker Amber */
  box-shadow: 0 6px 15px rgba(245, 158, 11, 0.35);
}

.arrow-icon, .arrow-icon-right {
  transition: transform 0.3s ease;
}

.nav-item:hover > .nav-link .arrow-icon {
  transform: rotate(180deg);
}

/* Dropdown Menu (Level 2) */
.dropdown-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 230px;
  background-color: white;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--box-shadow-medium);
  border: 1px solid var(--color-border);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-smooth);
}

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

.dropdown-menu li {
  position: relative;
}

.dropdown-menu a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.7rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text-dark);
  transition: var(--transition-fast);
}

.dropdown-menu a:hover {
  background-color: hsl(var(--primary-hue), 20%, 97%);
  color: var(--color-primary);
  padding-left: 1.5rem;
}

/* Nested Dropdown Menu (Level 3) */
.nested-dropdown-menu {
  position: absolute;
  top: 0;
  left: 100%;
  width: 200px;
  background-color: white;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--box-shadow-medium);
  border: 1px solid var(--color-border);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateX(15px);
  transition: var(--transition-smooth);
}

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

.has-nested-dropdown:hover > a .arrow-icon-right {
  transform: translateX(3px);
}

/* Mobile Toggle Hamburger */
.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: space-between;
  width: 24px;
  height: 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  z-index: 1001;
}

.hamburger-bar {
  width: 100%;
  height: 2px;
  background-color: var(--color-primary-dark);
  transition: var(--transition-smooth);
}

.site-header.scrolled .hamburger-bar {
  background-color: white;
}

/* ==========================================================================
   HERO SECTION
   ========================================================================== */

.hero-section {
  position: relative;
  height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  color: white;
  text-align: left;
  padding-top: 80px;
  background-color: var(--color-primary-dark);
  /* Gambar Latar Belakang Representatif Alam Muara Badak (Gradient Mesh) */
  background-image: radial-gradient(circle at 20% 30%, hsla(var(--primary-hue), 50%, 25%, 0.8), transparent),
                    radial-gradient(circle at 80% 70%, hsla(38, 40%, 20%, 0.8), transparent),
                    linear-gradient(135deg, hsl(var(--primary-hue), 80%, 12%), hsl(220, 60%, 10%));
  overflow: hidden;
}


.hero-video-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.6s ease-in-out;
}

/* Image slideshow background layer */
.hero-image-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  z-index: 0;
  pointer-events: none;
  transition: opacity 0.8s ease-in-out;
}

/* Hide image layer when video is active */
.hero-image-bg--hidden {
  display: none;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  /* Horizontal gradient to make left-aligned text readable, vertical gradient to blend with the bottom */
  background: linear-gradient(90deg, hsla(222, 47%, 11%, 0.6) 0%, hsla(222, 47%, 11%, 0.4) 55%, hsla(222, 47%, 11%, 0.15) 100%),
              linear-gradient(0deg, hsla(222, 47%, 11%, 0.65) 0%, hsla(222, 47%, 11%, 0) 35%);
  z-index: 1;
}

/* Clean mode: hide text and overlays to show background banner fully */
.hero-section--clean {
  height: auto !important;
  aspect-ratio: 2.5 / 1 !important;
  padding: 0 !important;
  margin-top: 115px !important; /* clear desktop header (top-bar + header-container) */
  min-height: unset !important;
}
.hero-section--clean .hero-overlay {
  background: none !important;
}
.hero-section--clean .hero-content {
  display: none !important;
}

/* Push down quick access section when clean hero is active so it doesn't cover the bottom of the banner */
.hero-section--clean + .quick-access-section {
  margin-top: 0 !important;
  padding-top: 2rem !important;
}

/* Hero Slider Navigation & Dots (v1.9.6) */
.hero-slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 999 !important;
  pointer-events: auto !important;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  font-size: 1.1rem;
}

.hero-slider-nav:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-50%) scale(1.08);
}

.hero-slider-nav:active {
  transform: translateY(-50%) scale(0.95);
}

.hero-slider-nav--prev {
  left: 2rem;
}

.hero-slider-nav--next {
  right: 2rem;
}

.hero-slider-dots {
  position: absolute;
  bottom: 2rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 0.5rem;
  z-index: 999 !important;
  pointer-events: auto !important;
  padding: 0.5rem 0.8rem;
  border-radius: 20px;
  background: rgba(0, 0, 0, 0.15);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}


.hero-slider-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.45);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slider-dot:hover {
  background: rgba(255, 255, 255, 0.8);
}

.hero-slider-dot.active {
  width: 22px;
  border-radius: 4px;
  background: white;
  box-shadow: 0 0 8px rgba(255, 255, 255, 0.4);
}

/* Adjustments for mobile viewports */
@media (max-width: 768px) {
  .hero-slider-nav {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  .hero-slider-nav--prev {
    left: 0.75rem;
  }
  .hero-slider-nav--next {
    right: 0.75rem;
  }
  .hero-slider-dots {
    bottom: 1rem;
    padding: 0.3rem 0.6rem;
  }
}




.hero-container {
  position: relative;
  z-index: 2;
  width: 100%;
}

.hero-content {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 680px;
}

.hero-tag {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-secondary);
  margin-bottom: 1.5rem;
  background-color: hsla(var(--primary-hue), 80%, 20%, 0.4);
  padding: 0.5rem 1.25rem;
  border-radius: 50px;
  display: inline-block;
  border: 1px solid hsla(var(--primary-hue), 60%, 30%, 0.3);
  backdrop-filter: blur(4px);
}

.hero-title {
  font-size: clamp(2.5rem, 6vw, 4.5rem);
  font-weight: 800;
  color: white;
  line-height: 1.15;
  margin-bottom: 1.5rem;
  letter-spacing: -0.02em;
}

.hero-lead {
  font-size: clamp(1.05rem, 2vw, 1.25rem);
  color: hsla(0, 0%, 100%, 0.85);
  font-weight: 400;
  margin-bottom: 3rem;
  max-width: 650px;
  margin-inline: 0 auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: flex-start;
}
.scroll-indicator {
  position: absolute;
  bottom: 2.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  opacity: 0.7;
}

.scroll-indicator span {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  font-weight: 600;
  color: white;
}

.mouse-wheel {
  width: 20px;
  height: 32px;
  border: 2px solid white;
  border-radius: 12px;
  position: relative;
}

.mouse-wheel::after {
  content: '';
  position: absolute;
  top: 6px;
  left: 50%;
  transform: translateX(-50%);
  width: 4px;
  height: 8px;
  background-color: var(--color-secondary);
  border-radius: 2px;
  animation: scroll-mouse 1.8s infinite ease-in-out;
}

@keyframes scroll-mouse {
  0% { transform: translate(-50%, 0); opacity: 1; }
  50% { transform: translate(-50%, 8px); opacity: 0; }
  100% { transform: translate(-50%, 0); opacity: 1; }
}

/* ==========================================================================
   ABOUT / SEKILAS SECTION
   ========================================================================== */
.grid-two-columns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-xl);
  align-items: center;
}

.about-visual {
  position: relative;
  height: 450px;
}

.visual-stack {
  position: relative;
  width: 100%;
  height: 100%;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-medium);
  overflow: hidden;
  cursor: pointer;
}

.visual-image {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.visual-stack:hover .visual-image {
  transform: scale(1.05);
}

.visual-image-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to bottom, rgba(0,0,0,0.1) 0%, rgba(0,0,0,0.4) 100%);
  pointer-events: none;
}

.visual-tag-glass {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(11, 107, 71, 0.9);
  color: white;
  padding: 0.45rem 0.9rem;
  border-radius: var(--border-radius-sm);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
  z-index: 10;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.visual-badge-glass {
  position: absolute;
  bottom: 24px;
  left: 24px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.12);
  z-index: 10;
  animation: float-badge-new 5s infinite alternate ease-in-out;
}

@keyframes float-badge-new {
  0% { transform: translateY(0); }
  100% { transform: translateY(6px); }
}

.badge-num {
  font-family: var(--font-headings);
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  line-height: 1.1;
}

.badge-lbl {
  font-family: var(--font-body);
  font-size: 0.72rem;
  color: var(--color-text-light);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}

.about-text-content {
  padding-left: var(--spacing-sm);
}

.about-text-content .section-title {
  margin-bottom: 1.5rem;
}

.btn-wrapper {
  margin-top: 2rem;
}

/* ==========================================================================
   STATISTICS SECTION
   ========================================================================== */
.stats-section {
  position: relative;
  background-color: var(--color-primary-dark);
  overflow: hidden;
  z-index: 1;
}

.stats-bg-gradient {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 70% 30%, hsla(var(--primary-hue), 60%, 25%, 0.6) 0%, transparent 70%),
              radial-gradient(circle at 10% 80%, hsla(38, 60%, 20%, 0.4) 0%, transparent 60%);
  z-index: -1;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-md);
  margin-top: 1rem;
}

.stat-card {
  background-color: hsla(0, 0%, 100%, 0.05);
  border: 1px solid hsla(0, 0%, 100%, 0.08);
  border-radius: var(--border-radius-md);
  padding: 2.5rem 1.5rem;
  text-align: center;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: var(--transition-smooth);
}

.stat-card:hover {
  transform: translateY(-8px);
  background-color: hsla(0, 0%, 100%, 0.08);
  border-color: hsla(38, 75%, 52%, 0.4);
  box-shadow: 0 20px 45px -15px rgba(0, 0, 0, 0.4);
}

.stat-icon-wrapper {
  width: 64px;
  height: 64px;
  background-color: hsla(var(--primary-hue), 80%, 20%, 0.4);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1.5rem auto;
  color: var(--color-secondary);
  transition: var(--transition-smooth);
  border: 1px solid hsla(var(--primary-hue), 60%, 30%, 0.3);
}

.stat-card:hover .stat-icon-wrapper {
  background-color: var(--color-secondary);
  color: var(--color-primary-dark);
  transform: rotateY(180deg);
}

.stat-svg {
  width: 28px;
  height: 28px;
}

.stat-number {
  font-family: var(--font-headings);
  font-size: 2.75rem;
  font-weight: 800;
  color: white;
  line-height: 1;
  margin-bottom: 0.75rem;
}

.stat-label {
  font-size: 0.95rem;
  color: hsla(0, 0%, 100%, 0.7);
  font-weight: 500;
}

/* ==========================================================================
   GALLERY SECTION (BRIEF GRID)
   ========================================================================== */
.section-header-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 2rem;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 240px;
  grid-auto-flow: dense;
  gap: var(--spacing-md);
}

/* Grid span logic for beautiful masonry structure */
.gallery-grid .gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}

.gallery-grid .gallery-item:nth-child(3) {
  grid-column: span 2;
}


.gallery-item {
  position: relative;
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow-soft);
  height: 100%;
  cursor: pointer;
}

.gallery-img-box {
  width: 100%;
  height: 100%;
  position: relative;
}

.gallery-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Gallery Filter Styling */
.gallery-filter {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1.5rem;
  margin-bottom: 2.5rem;
}

.filter-btn {
  background-color: transparent;
  border: 2px solid var(--color-border);
  color: var(--color-text-dark);
  font-family: var(--font-headings);
  font-weight: 700;
  padding: 0.6rem 1.5rem;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-smooth);
}

.filter-btn:hover,
.filter-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 15px rgba(11, 107, 71, 0.25);
}

.gallery-grid.filtered .gallery-item {
  grid-column: span 1 !important;
  grid-row: span 1 !important;
  height: 100% !important;
}

/* Video Lightbox Modal */
.lightbox-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
}

.lightbox-modal.open {
  opacity: 1;
  visibility: visible;
}

.lightbox-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.9);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  position: relative;
  width: 90%;
  max-width: 800px;
  z-index: 10001;
  transform: scale(0.9);
  transition: transform 0.3s ease;
}

.lightbox-modal.open .lightbox-content {
  transform: scale(1);
}

.lightbox-close {
  position: absolute;
  top: -40px;
  right: 0;
  background: transparent;
  border: none;
  color: white;
  font-size: 2.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
}

.lightbox-close:hover {
  color: var(--color-secondary);
}

.lightbox-video-container {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0,0,0,0.5);
  border: 1px solid rgba(255,255,255,0.1);
}

.lightbox-video-container iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.lightbox-image-container {
  width: 100%;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

#lightbox-img {
  max-width: 100%;
  max-height: 70vh;
  object-fit: contain;
  border-radius: var(--border-radius-md);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
  border: 4px solid white;
  background-color: white;
}

.lightbox-caption {
  margin-top: 1rem;
  color: white;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.1rem;
  text-align: center;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.gallery-img-box::after {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.85) 0%, rgba(0, 0, 0, 0.2) 60%, transparent 100%);
  opacity: 0.9;
  transition: var(--transition-smooth);
}

.gallery-info {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: var(--spacing-md);
  z-index: 2;
  transition: var(--transition-smooth);
}

.gallery-category {
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-secondary);
  letter-spacing: 0.1em;
  display: block;
  margin-bottom: 0.5rem;
  transform: translateY(10px);
  opacity: 0;
  transition: var(--transition-smooth);
}

.gallery-item-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  line-height: 1.3;
}

.gallery-item:nth-child(1) .gallery-item-title {
  font-size: 1.6rem;
}

/* Play Button Overlay for Videos */
.play-btn-circle {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(1);
  width: 60px;
  height: 60px;
  background-color: var(--color-secondary);
  color: var(--color-primary-dark);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 3;
  box-shadow: 0 10px 25px rgba(212, 163, 115, 0.4);
  transition: var(--transition-smooth);
}

.play-svg {
  margin-left: 2px;
}

/* Hover Effects */
.gallery-item:hover .gallery-img {
  transform: scale(1.08);
}

.gallery-item:hover .gallery-img-box::after {
  background: linear-gradient(to top, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.3) 100%);
}

.gallery-item:hover .gallery-category {
  transform: translateY(0);
  opacity: 1;
}

.gallery-item:hover .play-btn-circle {
  transform: translate(-50%, -50%) scale(1.15);
  background-color: white;
  box-shadow: 0 15px 30px rgba(255, 255, 255, 0.4);
}

/* ==========================================================================
   NEWS SHOWCASE SECTION (Featured + Sidebar)
   ========================================================================== */
.news-showcase-section {
  background-color: var(--color-bg-light);
  position: relative;
}

.section-header-inline {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.news-showcase-layout {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 1.5rem;
  align-items: stretch;
}

/* ---------- Featured Panel ---------- */
.news-featured-panel {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  background: #111;
  min-height: 440px;
  box-shadow: 0 20px 50px rgba(0,0,0,0.12);
}

.news-featured-slide {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  opacity: 0;
  transition: opacity 0.7s ease;
  pointer-events: none;
}

.news-featured-slide.active {
  opacity: 1;
  pointer-events: auto;
}

.news-featured-img-link {
  position: absolute;
  inset: 0;
  display: block;
}

.news-featured-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 8s ease;
}

.news-featured-slide.active .news-featured-img {
  transform: scale(1.05);
}

.news-featured-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.85) 0%, rgba(0,0,0,0.35) 50%, rgba(0,0,0,0.0) 100%);
}

.news-featured-body {
  position: relative;
  z-index: 2;
  padding: 1.75rem 2rem 1.5rem;
}

.news-featured-body .news-tag {
  position: static;
  display: inline-block;
  margin-bottom: 0.75rem;
  font-size: 0.7rem;
}

.news-featured-title {
  font-family: var(--font-headings);
  font-size: 1.45rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.6rem;
}

.news-featured-title a {
  color: #ffffff;
  text-decoration: none;
}

.news-featured-title a:hover {
  color: hsla(0,0%,100%,0.85);
}

.news-featured-excerpt {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.75);
  line-height: 1.5;
  margin-bottom: 0.85rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-featured-body .news-meta {
  color: rgba(255,255,255,0.65);
  font-size: 0.8rem;
  margin-bottom: 0;
}

.news-featured-body .news-dot {
  background-color: rgba(255,255,255,0.4);
}

/* Dots */
.news-featured-dots {
  position: absolute;
  bottom: 1.2rem;
  right: 1.5rem;
  display: flex;
  gap: 0.4rem;
  z-index: 5;
}

.news-featured-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.4);
  border: none;
  cursor: pointer;
  padding: 0;
  transition: background 0.3s ease, transform 0.3s ease;
}

.news-featured-dot.active {
  background: #ffffff;
  transform: scale(1.3);
}

/* ---------- Sidebar List ---------- */
.news-sidebar-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--color-bg-card);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
  border: 1px solid var(--color-border);
}

.news-sidebar-heading {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-light);
  padding: 1rem 1.25rem 0.75rem;
  border-bottom: 1px solid var(--color-border);
}

.news-sidebar-item {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.85rem 1.25rem;
  text-decoration: none;
  border-bottom: 1px solid var(--color-border);
  transition: background 0.2s ease;
  border-left: 3px solid transparent;
}

.news-sidebar-item:last-child {
  border-bottom: none;
}

.news-sidebar-item:hover {
  background: var(--color-bg-light);
}

.news-sidebar-item.active {
  background: hsla(var(--primary-hue), 70%, 96%, 0.8);
  border-left-color: var(--color-primary);
}

.news-sidebar-thumb {
  width: 64px;
  height: 52px;
  border-radius: 8px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
}

.news-sidebar-text {
  flex: 1;
  min-width: 0;
}

.news-sidebar-cat {
  display: inline-block;
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-primary);
  margin-bottom: 0.2rem;
}

.news-sidebar-title {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--color-text-dark);
  line-height: 1.35;
  margin: 0 0 0.25rem;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.news-sidebar-item.active .news-sidebar-title {
  color: var(--color-primary-dark);
}

.news-sidebar-date {
  font-size: 0.72rem;
  color: var(--color-text-light);
}

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
  .news-showcase-layout {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .news-featured-panel {
    min-height: 300px;
  }

  .news-featured-body {
    padding: 1.25rem 1.15rem 1rem;
  }

  .news-featured-title {
    font-size: 1.05rem;
  }

  .news-featured-excerpt {
    display: none;
  }

  .news-sidebar-list {
    border-radius: 12px;
  }

  .news-sidebar-item {
    padding: 0.75rem 1rem;
    gap: 0.65rem;
  }

  .news-sidebar-thumb {
    width: 54px;
    height: 44px;
    border-radius: 6px;
  }

  .news-sidebar-title {
    font-size: 0.78rem;
    -webkit-line-clamp: 2;
  }

  .section-header-inline {
    align-items: flex-start;
    gap: 0.75rem;
  }

  .section-header-inline .btn {
    font-size: 0.8rem;
    padding: 0.5rem 0.85rem;
    white-space: nowrap;
  }
}

/* ==========================================================================
   NEWS SECTION (legacy — kept for berita archive page)
   ========================================================================== */
.news-section {
  position: relative;
}



.news-bg-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--color-bg-light);
  z-index: -1;
}

.news-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-md);
  margin-bottom: 1rem;
}

.news-card {
  background-color: var(--color-bg-card);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow-soft);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: var(--transition-smooth);
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-hover);
  border-color: hsla(var(--primary-hue), 50%, 30%, 0.15);
}

.news-img-box {
  position: relative;
  height: 220px;
  overflow: hidden;
}

.news-img {
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: transform 0.8s ease;
}

.img-news-1 {
  background-image: linear-gradient(135deg, hsl(200, 40%, 40%), hsl(200, 60%, 20%));
}
.img-news-2 {
  background-image: linear-gradient(135deg, hsl(var(--primary-hue), 40%, 35%), hsl(var(--primary-hue), 60%, 15%));
}
.img-news-3 {
  background-image: linear-gradient(135deg, hsl(10, 40%, 40%), hsl(10, 60%, 20%));
}

.news-tag {
  position: absolute;
  top: 1.25rem;
  left: 1.25rem;
  background-color: var(--color-primary-dark);
  color: white;
  font-family: var(--font-headings);
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 0.4rem 1rem;
  border-radius: 4px;
  z-index: 2;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

.news-body {
  padding: var(--spacing-md);
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.news-dot {
  width: 4px;
  height: 4px;
  background-color: var(--color-primary-light);
  border-radius: 50%;
  margin-inline: 0.75rem;
}

.news-card-title {
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 0.75rem;
}

.news-card-title a {
  color: var(--color-primary-dark);
}

.news-card-title a:hover {
  color: var(--color-primary);
}

.news-excerpt {
  font-size: 0.95rem;
  color: var(--color-text-light);
  margin-bottom: 1.5rem;
  flex-grow: 1;
}

.news-link {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-primary);
  display: inline-flex;
  align-items: center;
}

.news-link::after {
  content: '→';
  margin-left: 0.4rem;
  transition: transform 0.3s ease;
}

.news-card:hover .news-link::after {
  transform: translateX(4px);
}

/* ==========================================================================
   FOOTER SECTION (DASHBOARD-STYLE VISITOR STATS)
   ========================================================================== */
.site-footer {
  background-color: hsl(210, 30%, 8%);
  color: hsla(0, 0%, 100%, 0.65);
  padding-top: var(--spacing-xl);
  font-size: 0.95rem;
  position: relative;
  z-index: 1;
}

.site-footer::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 10% 10%, hsla(var(--primary-hue), 60%, 12%, 0.25) 0%, transparent 50%),
              radial-gradient(circle at 90% 80%, hsla(38, 50%, 10%, 0.15) 0%, transparent 60%);
  z-index: -1;
  pointer-events: none;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1.8fr;
  gap: var(--spacing-xl);
  padding-bottom: var(--spacing-lg);
  border-bottom: 1px solid hsla(0, 0%, 100%, 0.08);
}

.footer-col {
  display: flex;
  flex-direction: column;
}

/* Col 1: Brand & Info */
.footer-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
  color: white;
}

.footer-logo .logo-title {
  color: white;
  font-size: 1.35rem;
}

.footer-logo .logo-subtitle {
  color: var(--color-secondary);
}

.footer-about-text {
  line-height: 1.7;
  margin-bottom: 2rem;
}

.contact-info-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.contact-icon {
  color: var(--color-secondary);
  flex-shrink: 0;
}

/* Col 2: Title & Links */
.footer-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: white;
  margin-bottom: 1.75rem;
  position: relative;
  padding-bottom: 0.5rem;
}

.footer-title::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 3px;
  background-color: var(--color-secondary);
  border-radius: 2px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  color: hsla(0, 0%, 100%, 0.65);
  transition: var(--transition-fast);
  font-weight: 700;
}

.footer-links a:hover {
  color: white;
  padding-left: 0.35rem;
}

/* Col 3: Visitors Dashboard Box */
.visitors-box {
  background-color: hsla(0, 0%, 100%, 0.03);
  border: 1px solid hsla(0, 0%, 100%, 0.06);
  border-radius: var(--border-radius-sm);
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
}

.visitor-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px dashed hsla(0, 0%, 100%, 0.06);
}

.visitor-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.indicator-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.indicator-dot.online {
  background-color: #2ec4b6;
  box-shadow: 0 0 10px #2ec4b6;
  animation: pulse-online 2s infinite alternate;
}

@keyframes pulse-online {
  0% { transform: scale(0.9); opacity: 0.7; }
  100% { transform: scale(1.2); opacity: 1; }
}

.visitor-value {
  font-family: var(--font-headings);
  font-weight: 700;
  color: white;
}

.total-row {
  border-bottom: none;
  padding-top: 0.5rem;
  margin-top: 0.25rem;
}

.total-row .visitor-label {
  color: white;
}

.visitor-value.highlight {
  color: var(--color-secondary);
  font-size: 1.15rem;
}

/* Bottom Bar */
.footer-bottom {
  margin-top: var(--spacing-lg);
  padding-block: var(--spacing-md);
  border-top: 1px solid hsla(0, 0%, 100%, 0.05);
  background-color: rgba(0, 0, 0, 0.2);
}

.footer-bottom-flex {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: hsla(0, 0%, 100%, 0.45);
}

.powered {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-headings);
  color: hsla(0, 0%, 100%, 0.5);
  font-size: 0.8rem;
  font-weight: 500;
}

.powered-logo {
  height: 14px;
  width: auto;
  opacity: 0.65;
  filter: brightness(0) invert(1);
  transition: opacity 0.3s ease, filter 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  display: inline-block;
  vertical-align: middle;
}

.powered:hover .powered-logo {
  opacity: 1;
  filter: none;
}


/* Social media icons — footer info column */
.footer-socials {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  margin-top: 1.2rem;
}
.social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.05rem;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--transition-smooth);
}
.social-link:hover {
  transform: translateY(-3px);
  color: white;
  border-color: transparent;
  box-shadow: 0 6px 18px rgba(0,0,0,0.3);
}
.social-link.youtube:hover   { background-color: #ff0000; }
.social-link.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

/* Social media icons — footer bottom bar */
.footer-bottom-socials {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.social-link-sm {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.85rem;
  text-decoration: none;
  transition: var(--transition-fast);
}
.social-link-sm:hover {
  color: white;
  transform: translateY(-2px);
}
.social-link-sm.youtube:hover   { background-color: #ff0000; color: white; }
.social-link-sm.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); color: white; }


/* ==========================================================================
   RESPONSIVE — TABLET LANDSCAPE (max-width: 1024px)
   ========================================================================== */
@media (max-width: 1024px) {
  .container { width: 92%; }

  /* Stats 2×2 */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }

  /* Gallery 3-col */
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 200px;
  }
  .gallery-grid .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .gallery-grid .gallery-item:nth-child(3) {
    grid-column: span 1;
  }

  /* News 2-col */
  .news-grid { grid-template-columns: repeat(2, 1fr); }

  /* Footer 2-col with info spanning */
  .footer-top-grid {
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
  }
  .info-col { grid-column: span 2; }
  .maps-col { grid-column: span 2; }
}

/* ==========================================================================
   RESPONSIVE — MOBILE (max-width: 768px)
   ========================================================================== */
@media (max-width: 768px) {
  /* === GLOBAL === */
  .container { width: 94%; }
  .section-padding { padding-block: 3rem; }
  .section-title { font-size: clamp(1.6rem, 6vw, 2.2rem); }
  .section-header.text-center { margin-bottom: 2rem; }

  /* === HEADER === */
  .menu-toggle { display: flex; }

  .header-container { height: 68px; }

  .logo-img { height: 40px; }
  .logo-title { font-size: 1.1rem; }
  .logo-subtitle { font-size: 0.65rem; }

  .nav-menu {
    position: fixed;
    top: 68px;
    left: 0;
    width: 100%;
    height: calc(100dvh - 68px);
    background-color: #fff;
    flex-direction: column;
    padding: 1.5rem 1.25rem 3rem;
    transform: translateX(100%);
    visibility: hidden;
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.38s;
    box-shadow: -8px 0 32px rgba(0,0,0,0.12);
    align-items: flex-start;
    overflow-y: auto;
    z-index: 999;
  }
  .nav-menu.open {
    transform: translateX(0);
    visibility: visible;
  }

  .nav-list {
    flex-direction: column;
    width: 100%;
    align-items: flex-start;
    gap: 0;
  }
  .nav-item {
    width: 100%;
    border-bottom: 1px solid var(--color-border);
  }
  .nav-item:last-child { border-bottom: none; margin-top: 1rem; }

  .nav-link {
    width: 100%;
    justify-content: space-between;
    font-size: 1rem;
    padding: 0.85rem 0;
    color: var(--color-text-dark) !important;
    min-height: 48px;
  }

  /* Highlight (Prodeskel) button di mobile */
  .highlight-link {
    display: block;
    width: 100%;
    text-align: center;
    justify-content: center;
    padding: 0.85rem 1.25rem;
    border-radius: var(--border-radius-sm);
    margin-top: 0.5rem;
  }

  /* Dropdown mobile */
  .dropdown-menu,
  .nested-dropdown-menu {
    position: static !important;
    width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    box-shadow: none;
    border: none;
    border-left: 3px solid var(--color-primary-light);
    border-radius: 0;
    padding: 0.25rem 0 0.5rem 1rem;
    margin-top: 0.25rem;
    display: none;
    background: hsl(var(--primary-hue), 20%, 98%);
  }
  .dropdown-menu.open,
  .nested-dropdown-menu.open { display: block; }
  .dropdown-menu a {
    padding: 0.65rem 1rem;
    font-size: 0.92rem;
    min-height: 44px;
  }

  /* Cegah hover dropdown desktop aktif di mobile */
  .has-dropdown:hover .dropdown-menu,
  .has-nested-dropdown:hover .nested-dropdown-menu {
    opacity: 1 !important;
    visibility: visible !important;
    transform: none !important;
    display: none;
  }
  .has-dropdown:hover .dropdown-menu.open,
  .has-nested-dropdown:hover .nested-dropdown-menu.open {
    display: block;
  }

  /* === HERO === */
  .hero-section {
    height: 100dvh;
    min-height: 580px;
    padding-top: 68px;
    justify-content: center;
    text-align: center;
  }
  .hero-tag {
    font-size: 0.72rem;
    letter-spacing: 0.1em;
    padding: 0.4rem 1rem;
    margin-bottom: 1rem;
  }
  .hero-title {
    font-size: clamp(1.9rem, 8vw, 3rem);
    margin-bottom: 1rem;
    line-height: 1.2;
  }
  .hero-lead {
    font-size: 0.95rem;
    margin-bottom: 2rem;
    padding: 0;
    margin-inline: auto;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .hero-buttons .btn { width: 100%; max-width: 320px; }
  .scroll-indicator { display: none; }

  /* Apply clean mode styles on mobile */
  .hero-section--clean {
    height: auto !important;
    aspect-ratio: 2.5 / 1 !important;
    min-height: unset !important;
    margin-top: 68px !important; /* clear mobile header */
    padding: 0 !important;
  }



  /* === ABOUT / SEKILAS === */
  .grid-two-columns {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .about-visual { height: 260px; order: -1; }
  .visual-badge-glass {
    bottom: 15px;
    left: 15px;
    padding: 0.6rem 1rem;
    border-radius: 8px;
  }
  .badge-num {
    font-size: 1.35rem;
  }
  .badge-lbl {
    font-size: 0.65rem;
  }
  .visual-tag-glass {
    top: 15px;
    left: 15px;
    padding: 0.35rem 0.75rem;
    font-size: 0.75rem;
  }
  .about-text-content { padding-left: 0; }
  .about-text-content .section-title { font-size: 1.7rem; }

  /* === STATISTIK === */
  .stats-section .container > .section-header { margin-bottom: 2rem; }
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.85rem;
  }
  .stat-card { padding: 1.5rem 1rem; }
  .stat-number { font-size: 2rem; }
  .stat-icon-wrapper { width: 52px; height: 52px; margin-bottom: 1rem; }

  /* === GALLERY === */
  .section-header-flex {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: 1.5rem;
  }
  .gallery-filter {
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
    margin-top: 0;
  }
  .filter-btn { padding: 0.5rem 1rem; font-size: 0.85rem; }

  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 155px;
    gap: 0.65rem;
  }
  .gallery-grid .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .gallery-grid .gallery-item:nth-child(3) { grid-column: span 1; }
  .gallery-grid.filtered .gallery-item { height: 155px; }

  /* === BERITA === */
  .news-grid { grid-template-columns: 1fr; gap: 1.25rem; }
  .news-img-box { height: 200px; }
  .news-card-title { font-size: 1.1rem; }
  .news-body { padding: 1.25rem; }

  /* === FOOTER === */
  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 0 !important;
    padding-bottom: 1rem;
  }
  .footer-col {
    grid-column: unset !important;
    border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  }
  .footer-col:last-child {
    border-bottom: none;
  }
  .footer-logo,
  .footer-title {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    margin-bottom: 0 !important;
    padding-block: 1.15rem !important;
    cursor: pointer !important;
    user-select: none;
    -webkit-user-select: none;
  }
  .footer-title::after {
    content: '\f078' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    position: static !important;
    width: auto !important;
    height: auto !important;
    background: none !important;
    font-size: 0.85rem !important;
    color: var(--color-secondary) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-block !important;
  }
  .footer-col.active .footer-title::after {
    transform: rotate(180deg) !important;
  }
  .footer-logo::after {
    content: '\f078' !important;
    font-family: 'Font Awesome 6 Free' !important;
    font-weight: 900 !important;
    font-size: 0.85rem !important;
    color: var(--color-secondary) !important;
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1) !important;
    display: inline-block !important;
    margin-left: auto;
  }
  .footer-col.active .footer-logo::after {
    transform: rotate(180deg) !important;
  }
  .footer-col-content {
    max-height: 0;
    overflow: hidden;
    opacity: 0;
    transition: max-height 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.3s ease, padding 0.4s ease;
    padding-inline: 0.25rem;
  }
  .footer-col.active .footer-col-content {
    max-height: 1000px;
    opacity: 1;
    padding-bottom: 1.5rem;
    padding-top: 0.5rem;
  }
  .footer-about-text {
    font-size: 0.9rem;
    margin-bottom: 1.25rem !important;
  }
  .footer-bottom-flex {
    flex-direction: column;
    text-align: center;
    gap: 0.4rem;
    font-size: 0.8rem;
  }

  /* === LIGHTBOX === */
  .lightbox-content { width: 96%; max-width: 96%; }
  .lightbox-close { top: -38px; right: 0; font-size: 2.2rem; }
  #lightbox-img { max-height: 65vh; }
  .lightbox-caption { font-size: 0.95rem; }

  /* === SCROLL-TO-TOP & BUTTONS === */
  .btn-wrapper { margin-top: 1.5rem; }

  /* === WHATSAPP === */
  .whatsapp-widget-container { bottom: 20px; right: 16px; }
  .whatsapp-popup { width: 300px; bottom: 76px; right: 0; }
  .whatsapp-btn { width: 54px; height: 54px; }
}

/* ==========================================================================
   RESPONSIVE — SMALL MOBILE (max-width: 480px)
   ========================================================================== */
@media (max-width: 480px) {
  /* === GLOBAL === */
  .container { width: 96%; }
  .section-padding { padding-block: 2.5rem; }
  .section-title { font-size: clamp(1.5rem, 7vw, 2rem); }

  /* === HERO === */
  .hero-tag { display: none; }
  .hero-title {
    font-size: clamp(1.75rem, 9vw, 2.5rem);
    line-height: 1.15;
  }
  .hero-lead { font-size: 0.9rem; margin-bottom: 1.75rem; }
  .hero-buttons .btn { max-width: 100%; }

  /* === ABOUT === */
  .about-visual { height: 230px; }

  /* === STATS === */
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .stat-card { padding: 1.25rem 0.75rem; }
  .stat-number { font-size: 1.8rem; }
  .stat-label { font-size: 0.82rem; }
  .stat-icon-wrapper { width: 44px; height: 44px; margin-bottom: 0.75rem; }

  /* === GALLERY === */
  .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 130px;
    gap: 0.5rem;
  }
  .gallery-grid .gallery-item:nth-child(1) { grid-column: span 2; }
  .gallery-grid.filtered .gallery-item { height: 130px; }

  /* === BERITA === */
  .news-img-box { height: 170px; }
  .news-card-title { font-size: 1rem; }
  .news-excerpt { font-size: 0.88rem; }

  /* === SECTION SUBTITLE === */
  .section-subtitle { font-size: 0.78rem; }

  /* === FOOTER === */
  .visitors-box { padding: 0.85rem 1rem; }
  .visitor-row { font-size: 0.82rem; }

  /* === WHATSAPP === */
  .whatsapp-popup { width: 280px; }
}

/* ==========================================================================
   RESPONSIVE — VERY SMALL (max-width: 360px)
   ========================================================================== */
@media (max-width: 360px) {
  .hero-title { font-size: 1.6rem; }
  .stats-grid { gap: 0.5rem; }
  .stat-card { padding: 1rem 0.5rem; }
  .stat-number { font-size: 1.6rem; }
  .gallery-grid { grid-auto-rows: 110px; }
  .news-body { padding: 1rem; }
  .whatsapp-popup { width: 260px; right: -10px; }
}

/* ==========================================================================
   WHATSAPP POPUP WIDGET
   ========================================================================== */
.whatsapp-panel {
  background-color: #fff;
}

/* Header */
.wa-header {
  background-color: #075E54;
  color: white;
  padding: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
}

.wa-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: #128C7E;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: 1px solid rgba(255,255,255,0.2);
}

.wa-status-text {
  display: flex;
  flex-direction: column;
}

.wa-status-name {
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
}

.wa-status-sub {
  font-size: 0.75rem;
  opacity: 0.8;
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.wa-status-sub::before {
  content: '';
  width: 6px;
  height: 6px;
  background-color: #25D366;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 5px #25D366;
}

.wa-close-btn {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: transparent;
  border: none;
  color: white;
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.2s ease;
  padding: 2px;
}

.wa-close-btn:hover {
  opacity: 1;
}

/* Body (Chat Area) */
.wa-body {
  padding: 1.5rem 1.25rem;
  background-color: #efeae2; /* Classic WhatsApp chat bg */
  background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 0);
  background-size: 15px 15px;
  max-height: 250px;
}

.wa-bubble {
  background-color: white;
  padding: 0.9rem 1rem;
  border-radius: 0 var(--border-radius-sm) var(--border-radius-sm) var(--border-radius-sm);
  box-shadow: 0 2px 5px rgba(0,0,0,0.05);
  font-size: 0.9rem;
  line-height: 1.45;
  color: var(--color-text-dark);
  position: relative;
}

.wa-bubble::before {
  content: '';
  position: absolute;
  top: 0;
  left: -8px;
  width: 0;
  height: 0;
  border-top: 10px solid white;
  border-left: 10px solid transparent;
}

.wa-time {
  display: block;
  font-size: 0.7rem;
  color: var(--color-text-light);
  text-align: right;
  margin-top: 0.35rem;
}

/* Footer / Action */
.wa-footer {
  padding: 1rem 1.25rem;
  background-color: white;
  display: flex;
}

.wa-submit-btn {
  width: 100%;
  background-color: #25D366;
  color: white;
  border: none;
  border-radius: var(--border-radius-sm);
  padding: 0.75rem 1.25rem;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.95rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.2);
  transition: var(--transition-smooth);
}

.wa-submit-btn:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.3);
}

/* ==========================================================================
   SUBPAGE: PROFIL DESA
   ========================================================================== */
.subpage-hero {
  padding-top: 140px;
  padding-bottom: 60px;
  background: var(--gradient-subpage-hero);
  color: white;
  text-align: center;
  position: relative;
}
.subpage-hero-title {
  font-size: clamp(1.6rem, 5.5vw, 3rem);
  color: white;
  margin-bottom: 0.75rem;
  line-height: 1.2;
}
.subpage-hero p {
  font-size: clamp(0.85rem, 2.5vw, 1.05rem);
  color: hsla(0, 0%, 100%, 0.85);
  max-width: 650px;
  margin: 0 auto;
  line-height: 1.5;
  padding-inline: 1rem;
}
.breadcrumbs {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  color: hsla(0, 0%, 100%, 0.7);
  margin-top: 1.25rem;
}
.breadcrumbs a {
  color: var(--color-secondary);
}
.breadcrumbs span::before {
  content: '/';
  margin-right: 0.5rem;
}

/* Navigation Sidebar — Profile pages now uses shared .info-dashboard-sidebar styles.
   The .profile-nav-link class is added alongside .info-nav-tab to override
   anchor-specific properties (text-decoration, cursor, etc.). */
.profile-nav-link {
  text-decoration: none;
  cursor: pointer;
  /* No ::before indicator bar — uses solid active bg like infografis */
}

/* Grid Geografis */
.geo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: var(--spacing-md);
  margin-bottom: var(--spacing-lg);
}
.geo-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  text-align: center;
  box-shadow: var(--box-shadow-soft);
  transition: var(--transition-smooth);
}
.geo-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-medium);
  border-color: var(--color-primary-light);
}
.geo-icon {
  color: var(--color-primary);
  margin-bottom: 1rem;
}
.geo-label {
  font-size: 0.85rem;
  color: var(--color-text-light);
  text-transform: uppercase;
  font-weight: 700;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.geo-value {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}

/* Grid Detail Profil */
.profile-details-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: var(--spacing-lg);
  margin-bottom: var(--spacing-lg);
}

/* Kompas Batas Wilayah */
.compass-container {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--box-shadow-soft);
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
}
.compass-box {
  width: 280px;
  height: 280px;
  border-radius: 50%;
  border: 2px dashed var(--color-border);
  position: relative;
  margin-top: 1.5rem;
  background: radial-gradient(circle, hsl(var(--primary-hue), 20%, 98%) 0%, transparent 70%);
}
.compass-rose {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: var(--color-primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 4px 15px hsla(var(--primary-hue), 70%, 26%, 0.3);
  z-index: 2;
  font-weight: 700;
}
.compass-direction {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  font-size: 0.85rem;
  width: 120px;
  text-align: center;
}
.direction-title {
  font-family: var(--font-headings);
  font-weight: 800;
  color: var(--color-primary);
  font-size: 0.95rem;
}
.direction-val {
  font-size: 0.8rem;
  color: var(--color-text-dark);
  font-weight: 600;
  margin-top: 2px;
}
.dir-north { top: 10px; left: 50%; transform: translateX(-50%); }
.dir-south { bottom: 10px; left: 50%; transform: translateX(-50%); }
.dir-east { right: -25px; top: 50%; transform: translateY(-50%); }
.dir-west { left: -25px; top: 50%; transform: translateY(-50%); }

/* Section Potensi Desa (Lada & Lainnya) */
.potensi-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: var(--spacing-md);
  margin-top: 1.5rem;
}
.potensi-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 2rem;
  box-shadow: var(--box-shadow-soft);
  transition: var(--transition-smooth);
}
.potensi-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-medium);
  border-color: var(--color-primary-light);
}
.potensi-card.featured {
  grid-column: span 3;
  background: var(--gradient-primary);
  color: white;
  border: none;
  position: relative;
  overflow: hidden;
}
.potensi-card.featured .section-subtitle {
  color: var(--color-secondary);
}
.potensi-card.featured h3 {
  color: white;
  font-size: 1.5rem;
  margin-bottom: 1rem;
}
.potensi-card.featured p {
  color: hsla(0, 0%, 100%, 0.85);
}
.potensi-card.featured::after {
  content: '';
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 150px;
  height: 150px;
  background: hsla(38, 75%, 52%, 0.15);
  border-radius: 50%;
}
.potensi-card-title {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.75rem;
}
.potensi-card-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
}

/* Tabel Premium untuk Perkembangan Penduduk */
.table-wrapper {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-soft);
  overflow: hidden;
  margin-bottom: var(--spacing-lg);
}
.table-responsive {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}
.table-title {
  padding: 1.25rem 1.5rem;
  background: hsl(var(--primary-hue), 20%, 97%);
  border-bottom: 1px solid var(--color-border);
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
}
.premium-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.95rem;
}
.premium-table th {
  background-color: white;
  color: var(--color-primary-dark);
  font-weight: 700;
  padding: 1rem 1.5rem;
  border-bottom: 2px solid var(--color-border);
}
.premium-table td {
  padding: 1rem 1.5rem;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-dark);
}
.premium-table tr:last-child td {
  border-bottom: none;
}
.premium-table tr:hover td {
  background-color: hsl(var(--primary-hue), 20%, 99%);
}

/* Lencana Persentase */
.percentage-badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: 50px;
}
.percentage-badge.positive {
  background-color: hsl(140, 70%, 92%);
  color: hsl(140, 70%, 25%);
}
.percentage-badge.negative {
  background-color: hsl(0, 80%, 92%);
  color: hsl(0, 80%, 30%);
}
.percentage-badge.positive::before {
  content: '▲ ';
  font-size: 0.7rem;
  margin-right: 0.25rem;
}
.percentage-badge.negative::before {
  content: '▼ ';
  font-size: 0.7rem;
  margin-right: 0.25rem;
}

/* Sub-layout Halaman */
.layout-sidebar-grid {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: var(--spacing-lg);
  width: 100%;
}
.layout-sidebar-grid > * {
  min-width: 0;
}
.layout-sidebar-grid aside {
  position: sticky;
  top: 100px;
  align-self: start;
  height: fit-content;
  z-index: 10;
}
/* Profile sidebar uses same card as infografis — ensure correct width */
.layout-sidebar-grid aside .info-dashboard-sidebar {
  width: 100%;
  box-sizing: border-box;
}

#data-umum, #potensi, #visi-misi, #sejarah, #perkembangan, #ekonomi {
  scroll-margin-top: 100px;
}

.table-identity td:first-child {
  width: 35%;
  min-width: 150px;
  max-width: 280px;
  font-weight: 700;
  color: var(--color-primary-dark);
}

.compass-box-wrapper {
  display: block;
}

.mobile-batas-list {
  display: none;
}

@media (max-width: 992px) {
  .layout-sidebar-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .layout-sidebar-grid aside {
    position: static;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  #data-umum, #potensi, #visi-misi, #sejarah, #perkembangan, #ekonomi {
    scroll-margin-top: 140px;
  }

  /* Profile sidebar: sticky bar di mobile dengan gaya serasi infografis */
  .layout-sidebar-grid aside .info-dashboard-sidebar {
    position: sticky;
    top: 68px;
    z-index: 90;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 1.5rem;
    padding: 0.6rem 0.75rem;
    border-radius: var(--border-radius-md);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.07);
    overflow: hidden;
  }
  .layout-sidebar-grid aside .info-sidebar-title {
    display: none;
  }
  /* Jadikan navigasi profil horizontal scroll di mobile */
  .profile-sidebar-nav {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    overflow-x: auto !important;
    -webkit-overflow-scrolling: touch !important;
    gap: 0.4rem !important;
    padding-bottom: 2px !important;
    -ms-overflow-style: none !important;
    scrollbar-width: none !important;
  }
  .profile-sidebar-nav::-webkit-scrollbar {
    display: none;
  }
  /* Tab item di mobile: kapsul pill */
  .profile-sidebar-nav .info-nav-tab {
    font-size: 0.78rem;
    padding: 0.42rem 0.85rem;
    gap: 0.4rem;
    white-space: nowrap;
    border: 1px solid var(--color-border);
    background: white;
    color: var(--color-text-light);
    border-radius: 30px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.03);
    width: auto;
    flex-shrink: 0;
  }
  .profile-sidebar-nav .info-nav-tab.active {
    background: var(--color-primary) !important;
    color: white !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 4px 12px hsla(var(--primary-hue), 70%, 26%, 0.25) !important;
  }
  .profile-sidebar-nav .info-nav-tab svg {
    width: 14px;
    height: 14px;
  }
  .geo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .profile-details-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .potensi-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .potensi-card.featured {
    grid-column: span 1;
  }
}

@media (max-width: 768px) {
  .subpage-hero {
    padding-top: 90px;
    padding-bottom: 40px;
  }
  .subpage-hero-title {
    font-size: clamp(1.7rem, 6vw, 2.5rem);
  }
  .geo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
  }
  .geo-card { padding: 1.1rem; }
  .geo-value { font-size: 1.05rem; }
  .compass-container { padding: 1.5rem 1rem; }
  .compass-box {
    width: 240px;
    height: 240px;
  }
  .compass-direction { width: 100px; font-size: 0.78rem; }
  .dir-east { right: -15px; }
  .dir-west { left: -15px; }
  .potensi-card { padding: 1.5rem 1.25rem; }
  /* Tabel scroll horizontal */
  .table-wrapper {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .premium-table {
    min-width: 500px;
    font-size: 0.88rem;
  }
  .premium-table th,
  .premium-table td {
    padding: 0.75rem 1rem;
  }
}

@media (max-width: 600px) {
  .geo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .compass-box {
    width: 200px;
    height: 200px;
  }
  .compass-direction { width: 80px; }
  .dir-east { right: -10px; }
  .dir-west { left: -10px; }
}

@media (max-width: 576px) {
  .compass-box-wrapper {
    display: none;
  }
  .mobile-batas-list {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    width: 100%;
    margin-top: 1.5rem;
  }
  .batas-item {
    background: hsl(var(--primary-hue), 20%, 98%);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius-sm);
    padding: 0.85rem 1.25rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--box-shadow-soft);
  }
  .batas-dir {
    font-family: var(--font-headings);
    font-weight: 800;
    color: var(--color-primary);
    font-size: 0.85rem;
    letter-spacing: 0.05em;
  }
  .batas-val {
    font-size: 0.9rem;
    color: var(--color-text-dark);
    font-weight: 600;
    text-align: right;
    max-width: 70%;
  }
}

@media (max-width: 480px) {
  /* Tetap 2 kolom agar tidak boros ruang */
  .geo-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.6rem; }
  .geo-card { padding: 0.85rem 0.6rem; }
  .geo-icon { margin-bottom: 0.5rem; }
  .geo-icon svg { width: 24px; height: 24px; }
  .geo-label { font-size: 0.68rem; }
  .geo-value {
    font-size: clamp(0.72rem, 3.2vw, 0.88rem);
    word-break: break-word;
    word-wrap: break-word;
    line-height: 1.3;
  }
  .potensi-card { padding: 1.25rem 1rem; }
  .potensi-card-title { font-size: 1.1rem; }
  /* Chart responsif */
  canvas { max-width: 100% !important; }
}

/* ==========================================================================
   PROFIL DESA — MOBILE RESPONSIVE IMPROVEMENTS
   ========================================================================== */

/* ---- Sticky horizontal tab nav di HP (Consolidated in the main media query above) ---- */

  /* Section spacing lebih rapat di HP */
  .section-padding {
    padding-block: var(--spacing-lg);
  }
}

/* ---- Tabel responsive di HP ---- */
@media (max-width: 768px) {
  /* Semua tabel bisa scroll horizontal */
  .table-wrapper {
    border-radius: var(--border-radius-sm);
  }
  .premium-table {
    min-width: 420px;
    font-size: 0.82rem;
  }
  .premium-table th,
  .premium-table td {
    padding: 0.65rem 0.85rem;
  }
  .table-title {
    font-size: 0.95rem;
    padding: 0.9rem 1rem;
  }

  /* Tabel Identitas — ubah jadi tampilan vertikal stacked */
  .table-identity {
    min-width: unset;
    font-size: 0.85rem;
  }
  .table-identity td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
    padding: 0.4rem 0.85rem;
  }
  .table-identity td:first-child {
    padding-top: 0.75rem;
    padding-bottom: 0.1rem;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    border-bottom: none;
  }
  .table-identity td:last-child {
    padding-bottom: 0.75rem;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--color-text-dark);
  }
  .table-identity tr {
    border-bottom: 1px solid var(--color-border);
    display: block;
  }
  .table-identity tr:last-child {
    border-bottom: none;
  }

  /* Visi Misi cards */
  .visi-card-quote { font-size: 3rem !important; }
  .visi-title-text { font-size: 1.2rem !important; }

  /* Misi item cards */
  .misi-item-card {
    padding: 1rem 1.1rem !important;
    gap: 0.85rem !important;
  }
  .misi-nomor {
    width: 30px !important;
    height: 30px !important;
    font-size: 0.9rem !important;
  }
  .misi-teks {
    font-size: 0.9rem !important;
  }

  /* Sejarah blockquote */
  blockquote {
    padding: 0.85rem 1rem !important;
    font-size: 0.88rem !important;
    margin-inline: 0 !important;
  }

  /* Chart containers */
  .charts-container {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 1.25rem !important;
    margin-top: 1.5rem !important;
  }
}

/* ---- Penyempurnaan khusus HP kecil (<480px) ---- */
@media (max-width: 480px) {
  /* Kurangi padding section utama */
  .section-padding {
    padding-inline: 0.75rem;
  }
  .container {
    padding-inline: 0.75rem;
  }

  /* Judul section */
  .section-title {
    font-size: clamp(1.2rem, 5.5vw, 1.7rem) !important;
    margin-bottom: 0.5rem !important;
  }
  .section-subtitle {
    font-size: 0.68rem !important;
    letter-spacing: 0.08em !important;
    margin-bottom: 0.25rem !important;
  }

  /* Paragraf */
  .paragraph, p {
    font-size: 0.88rem;
    line-height: 1.7;
  }

  /* Tabel Identitas stacked layout */
  .table-identity {
    min-width: unset !important;
  }

  /* Kartu Potensi Unggulan */
  .potensi-card.featured h3 {
    font-size: 1.1rem !important;
  }
  .potensi-card.featured p {
    font-size: 0.85rem !important;
  }

  /* Chart tinggi lebih kecil */
  .charts-container > div > div[style*="height: 250px"],
  .charts-container > div > div[style*="height: 250px;"] {
    height: 180px !important;
  }

  /* Chart angkatan kerja */
  div[style*="height: 320px"] {
    height: 240px !important;
  }

  /* Percentage badge */
  .percentage-badge {
    font-size: 0.72rem;
    padding: 0.15rem 0.5rem;
  }

  /* Pemimpin desa table di HP kecil */
  .premium-table {
    min-width: 310px;
    font-size: 0.76rem;
  }
  .premium-table th { font-size: 0.76rem; padding: 0.5rem 0.6rem; }
  .premium-table td { padding: 0.5rem 0.6rem; }

  /* Visi card padding kecil */
  #visi-misi > div[style*="padding: 2.5rem"] {
    padding: 1.5rem 1rem !important;
  }
  .visi-title-text {
    font-size: 1.1rem !important;
    max-width: 100% !important;
  }

  /* Misi cards lebih kompak */
  .misi-item-card {
    padding: 0.85rem 1rem !important;
    gap: 0.75rem !important;
  }
  .misi-nomor {
    width: 28px !important;
    height: 28px !important;
    font-size: 0.85rem !important;
  }
  .misi-teks {
    font-size: 0.85rem !important;
  }

  /* HR divider jarak lebih kecil */
  hr[style] {
    margin-block: 1.25rem !important;
  }

  /* Tabel wrapper border radius kecil */
  .table-wrapper {
    border-radius: 8px;
    margin-bottom: 1rem;
  }
  .table-title {
    padding: 0.75rem 0.85rem;
    font-size: 0.88rem;
  }
}

/* ---- HP sangat kecil (<360px) ---- */
@media (max-width: 360px) {
  .profile-sidebar-nav .info-nav-tab {
    font-size: 0.72rem;
    padding: 0.35rem 0.55rem;
  }
  .profile-sidebar-nav .info-nav-tab svg {
    display: none;
  }
  .section-title {
    font-size: 1.25rem !important;
  }
}


/* ==========================================================================
   SUBPAGE: APARATUR DESA
   ========================================================================== */
/* Section Tabs/Anchor Nav */
.section-nav-wrapper {
  background: white;
  border-bottom: 1px solid var(--color-border);
  position: sticky;
  top: 80px;
  z-index: 900;
  box-shadow: 0 4px 10px rgba(0,0,0,0.02);
}
.section-tabs {
  display: flex;
  justify-content: center;
  gap: 2rem;
  max-width: 1200px;
  margin: 0 auto;
  padding: 1rem 0;
}
.tab-link {
  font-family: var(--font-headings);
  font-weight: 700;
  color: var(--color-text-light);
  padding: 0.5rem 1rem;
  border-radius: var(--border-radius-sm);
  transition: var(--transition-fast);
}
.tab-link:hover, .tab-link.active {
  color: var(--color-primary);
  background-color: hsl(var(--primary-hue), 20%, 96%);
}

/* Bagan Organisasi CSS / Wrapper */
.bagan-wrapper {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 2.5rem 1.5rem;
  box-shadow: var(--box-shadow-soft);
  margin-bottom: var(--spacing-xl);
  overflow-x: auto;
}
.bagan-title {
  font-family: var(--font-headings);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Mermaid styling customization to fit the green theme */
.mermaid {
  display: flex;
  justify-content: center;
}

/* Grid Kartu Aparatur */
.aparatur-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--spacing-lg);
  margin-top: 2rem;
}

/* Layout khusus untuk Kades & Sekdes di baris teratas */
.leader-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-lg);
  max-width: 800px;
  margin: 0 auto var(--spacing-lg) auto;
}

.aparatur-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  box-shadow: var(--box-shadow-soft);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 2rem 1.5rem;
  text-align: center;
  position: relative;
}
.aparatur-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--box-shadow-medium);
  border-color: var(--color-primary-light);
}

.avatar-wrapper {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  background-color: hsl(var(--primary-hue), 20%, 95%);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.25rem;
  border: 3px solid var(--color-border);
  color: var(--color-primary-light);
  transition: var(--transition-smooth);
  position: relative;
}
.aparatur-card:hover .avatar-wrapper {
  border-color: var(--color-secondary);
  background-color: hsl(var(--primary-hue), 20%, 90%);
  transform: scale(1.05);
}
.avatar-svg {
  width: 60px;
  height: 60px;
}

.aparatur-name {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.25rem;
}
.aparatur-role {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-secondary-dark);
  margin-bottom: 1rem;
  background: hsl(38, 75%, 95%);
  padding: 0.2rem 0.6rem;
  border-radius: 50px;
  display: inline-block;
}

/* Staf list di bawah Kasi/Kaur */
.staf-wrapper {
  width: 100%;
  border-top: 1px solid var(--color-border);
  padding-top: 1rem;
  margin-top: auto;
  text-align: left;
}
.staf-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 0.5rem;
}
.staf-list {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
.staf-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--color-text-dark);
  background-color: hsl(var(--primary-hue), 15%, 98%);
  padding: 0.4rem 0.75rem;
  border-radius: var(--border-radius-sm);
}
.staf-avatar-mini {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background-color: hsl(var(--primary-hue), 20%, 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary);
  font-size: 0.6rem;
  flex-shrink: 0;
}

/* Grid khusus Dusun (Kepala Kewilayahan) */
.dusun-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--spacing-lg);
  max-width: 800px;
  margin: 2rem auto 0 auto;
}

@media (max-width: 992px) {
  .aparatur-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-md);
  }
  .leader-row {
    grid-template-columns: 1fr;
    max-width: 100%;
  }
  .dusun-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .section-nav-wrapper {
    top: 68px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .section-tabs {
    gap: 0.75rem;
    padding: 0.75rem 1rem;
    justify-content: flex-start;
    min-width: max-content;
    white-space: nowrap;
  }
  .tab-link {
    font-size: 0.88rem;
    padding: 0.45rem 0.85rem;
    white-space: nowrap;
    min-height: 40px;
  }
  .aparatur-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
  }
  .aparatur-card {
    padding: 1.5rem 1rem;
  }
  .avatar-wrapper {
    width: 90px;
    height: 90px;
    margin-bottom: 1rem;
  }
  .avatar-svg { width: 50px; height: 50px; }
  .aparatur-name { font-size: 1rem; }
  .bagan-wrapper {
    padding: 1.5rem 0.75rem;
    overflow-x: auto;
  }
}

@media (max-width: 480px) {
  .aparatur-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
  .dusun-grid { grid-template-columns: 1fr; }
  .aparatur-card { padding: 1.25rem 1rem; }
  .avatar-wrapper { width: 80px; height: 80px; }
  .avatar-svg { width: 44px; height: 44px; }
  .aparatur-name { font-size: 0.95rem; }
  .aparatur-role { font-size: 0.75rem; }
  .staf-item { font-size: 0.82rem; }
}

/* ==========================================================================
   SUBPAGE: GALERI DESA
   ========================================================================== */
.galeri-container-page {
  background-color: hsl(var(--primary-hue), 15%, 98%);
  padding: var(--spacing-xl) 0;
}

/* Grid galeri khusus halaman galeri: 4 kolom masonry */
.galeri-container-page .gallery-grid {
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 220px;
}
.galeri-container-page .gallery-grid .gallery-item:nth-child(1) {
  grid-column: span 2;
  grid-row: span 2;
}
.galeri-container-page .gallery-grid .gallery-item:nth-child(3) {
  grid-column: span 2;
}

/* Hover zoom indicator (hanya desktop) */
@media (hover: hover) {
  .gallery-item::before {
    content: '🔍';
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) scale(0);
    font-size: 1.5rem;
    z-index: 4;
    transition: all 0.3s ease;
    opacity: 0;
  }
  .gallery-item:not(.video):hover::before {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
  }
}

/* Tablet */
@media (max-width: 1024px) {
  .galeri-container-page .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 190px;
  }
  .galeri-container-page .gallery-grid .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .galeri-container-page .gallery-grid .gallery-item:nth-child(3) {
    grid-column: span 1;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .galeri-container-page {
    padding: 2rem 0;
  }
  .galeri-container-page .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
    grid-auto-rows: 155px;
    gap: 0.65rem;
  }
  .galeri-container-page .gallery-grid .gallery-item:nth-child(1) {
    grid-column: span 2;
    grid-row: span 1;
  }
  .galeri-container-page .gallery-grid .gallery-item:nth-child(3) {
    grid-column: span 1;
  }
}

/* Small mobile */
@media (max-width: 480px) {
  .galeri-container-page .gallery-grid {
    grid-template-columns: 1fr 1fr;
    grid-auto-rows: 130px;
    gap: 0.5rem;
  }
}

/* ==========================================================================
   SUBPAGE: BERITA DESA
   ========================================================================== */
.news-page-section {
  background-color: hsl(var(--primary-hue), 15%, 98%);
  padding: var(--spacing-xl) 0;
  min-height: 60vh;
}

.search-filter-container {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}
@media (min-width: 768px) {
  .search-filter-container {
    flex-direction: row;
  }
}

.search-box-wrapper {
  position: relative;
  width: 100%;
  max-width: 400px;
}
.search-input {
  width: 100%;
  padding: 0.75rem 1rem 0.75rem 2.75rem;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  font-family: var(--font-body);
  font-size: 0.95rem;
  transition: var(--transition-fast);
  background-color: white;
  box-shadow: var(--box-shadow-soft);
}
.search-input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px hsla(var(--primary-hue), 70%, 26%, 0.1);
}
.search-icon {
  position: absolute;
  left: 1rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  pointer-events: none;
  width: 18px;
  height: 18px;
}

.news-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}
.news-filter-btn {
  background: white;
  border: 1px solid var(--color-border);
  color: var(--color-text-dark);
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
  font-weight: 600;
  border-radius: 50px;
  cursor: pointer;
  transition: var(--transition-fast);
  box-shadow: var(--box-shadow-soft);
}
.news-filter-btn:hover,
.news-filter-btn.active {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
  box-shadow: 0 4px 10px hsla(var(--primary-hue), 70%, 26%, 0.25);
}

/* Empty State Card */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-soft);
  width: 100%;
  max-width: 600px;
  margin: 2rem auto;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.empty-icon {
  color: var(--color-text-light);
  margin-bottom: 1.25rem;
  background-color: hsl(var(--primary-hue), 20%, 96%);
  padding: 1.25rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}
.empty-title {
  font-family: var(--font-headings);
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}
.empty-desc {
  color: var(--color-text-light);
  font-size: 0.95rem;
  line-height: 1.6;
}

@media (max-width: 768px) {
  .news-page-section {
    padding: 2rem 0;
  }
  .search-filter-container {
    gap: 1rem;
    margin-bottom: 1.75rem;
  }
}

/* ==========================================================================
   SUBPAGE: DETAIL BERITA
   ========================================================================== */
.news-detail-section {
  background-color: hsl(var(--primary-hue), 15%, 98%);
  padding: var(--spacing-xl) 0;
}

.news-detail-grid {
  display: grid;
  grid-template-columns: 2.5fr 1fr;
  gap: var(--spacing-xl);
  align-items: start;
}

.article-card {
  background-color: var(--color-bg-card);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-soft);
  border: 1px solid var(--color-border);
  padding: var(--spacing-lg);
  overflow: hidden;
}

.article-header {
  margin-bottom: 1.5rem;
}

.article-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 1rem;
  font-size: 0.9rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
}

.article-meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}

.article-tag {
  display: inline-block;
  background-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 700;
  text-transform: uppercase;
  font-size: 0.75rem;
  padding: 0.3rem 0.8rem;
  border-radius: 4px;
  letter-spacing: 0.05em;
}

.article-banner {
  width: 100%;
  height: 380px;
  border-radius: var(--border-radius-sm);
  margin-bottom: 2rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: inset 0 0 100px rgba(0,0,0,0.3);
}

/* ---- Featured Image Figure (single.php) ---- */
.article-featured-figure {
  margin: 0 0 2rem;
  border-radius: var(--border-radius-md);
  overflow: hidden;
}

.article-featured-img {
  display: block;
  width: 100%;
  height: clamp(250px, 40vw, 420px);
  object-fit: cover;
  object-position: center;
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.article-featured-caption {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-style: italic;
  padding: 0.5rem 0.85rem;
  background: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-top: none;
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  line-height: 1.4;
}

.article-featured-caption i {
  font-size: 0.75rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.article-content {
  font-family: var(--font-body);
  font-size: 1.05rem;
  line-height: 1.8;
  color: var(--color-text-dark);
}

.article-content p {
  margin-bottom: 1.5rem;
}

/* ---- Image Captions (WordPress figcaption & wp-caption) ---- */
.article-content figure {
  margin: 1.75rem 0;
}

.article-content figure img,
.article-content .wp-caption img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 8px;
}

.article-content figcaption,
.article-content .wp-caption-text {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
  font-style: italic;
  margin-top: 0.5rem;
  padding: 0.4rem 0.75rem;
  background: var(--color-bg-light);
  border-left: 3px solid var(--color-border);
  border-radius: 0 4px 4px 0;
  line-height: 1.4;
}

.article-content figcaption::before,
.article-content .wp-caption-text::before {
  content: '\f03e'; /* Font Awesome image icon */
  font-family: 'Font Awesome 6 Free';
  font-weight: 900;
  font-style: normal;
  font-size: 0.75rem;
  color: var(--color-primary);
  flex-shrink: 0;
}

.article-content .wp-caption {
  max-width: 100% !important;
  margin: 1.75rem 0;
}

.sidebar-card {
  background-color: var(--color-bg-card);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-soft);
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  margin-bottom: var(--spacing-lg);
}

.sidebar-title {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  border-bottom: 2px solid var(--color-primary-light);
  padding-bottom: 0.5rem;
  margin-bottom: 1.25rem;
}

.recent-news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recent-news-item {
  display: flex;
  gap: 0.85rem;
  padding-block: 0.85rem;
  border-bottom: 1px solid var(--color-border);
  text-decoration: none;
  transition: all var(--transition-fast);
}

.recent-news-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.recent-news-item:hover {
  transform: translateX(4px);
}

.recent-news-thumb {
  width: 70px;
  height: 52px;
  border-radius: var(--border-radius-sm);
  object-fit: cover;
  flex-shrink: 0;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
}

.recent-news-content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0.25rem;
}

.recent-news-link {
  display: block;
  font-family: var(--font-headings);
  font-weight: 600;
  color: var(--color-text-dark);
  font-size: 0.9rem;
  line-height: 1.35;
  text-decoration: none;
  transition: var(--transition-fast);
  margin: 0;
}

.recent-news-link:hover {
  color: var(--color-primary);
}

.recent-news-meta {
  font-size: 0.72rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin: 0;
}

@media (max-width: 992px) {
  .news-detail-grid {
    grid-template-columns: 1fr;
  }
  .article-banner {
    height: 280px;
  }
}

@media (max-width: 768px) {
  .breadcrumbs {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.25rem;
    font-size: 0.82rem;
  }
  .news-detail-section {
    padding: 2rem 0 3rem;
  }
  .article-card {
    padding: 1.25rem;
  }
  .article-banner {
    height: 220px;
    margin-bottom: 1.5rem;
  }
  .article-meta {
    flex-direction: column;
    gap: 0.5rem;
    align-items: flex-start;
    margin-bottom: 0.75rem;
  }
  .article-content {
    font-size: 1rem;
    line-height: 1.75;
  }
  h2.section-title {
    font-size: 1.4rem !important;
    line-height: 1.3 !important;
    margin-bottom: 1rem !important;
  }
  .sidebar-card {
    padding: 1.25rem;
  }
}

@media (max-width: 480px) {
  .article-banner {
    height: 180px;
  }
  .article-content {
    font-size: 0.95rem;
  }
  h2.section-title {
    font-size: 1.25rem !important;
  }
}

/* ==========================================================================
   WORDPRESS DYNAMIC SUB-MENU MAPPINGS
   ========================================================================== */
.nav-list .sub-menu {
  position: absolute;
  top: 100%;
  left: 0;
  width: 230px;
  background-color: white;
  border-radius: var(--border-radius-sm);
  box-shadow: var(--box-shadow-medium);
  border: 1px solid var(--color-border);
  padding: 0.5rem 0;
  opacity: 0;
  visibility: hidden;
  transform: translateY(15px);
  transition: var(--transition-smooth);
  z-index: 99;
}

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

.nav-list .sub-menu .sub-menu {
  top: 0;
  left: 100%;
  width: 200px;
  transform: translateX(15px);
}

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

.nav-list .sub-menu .nav-link {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0.7rem 1.25rem !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  color: var(--color-text-dark) !important;
  transition: var(--transition-fast) !important;
}

.nav-list .sub-menu .nav-link:hover {
  background-color: hsl(var(--primary-hue), 20%, 97%) !important;
  color: var(--color-primary) !important;
  padding-left: 1.5rem !important;
}

/* Responsive adjustment for WordPress sub-menus on mobile */
@media (max-width: 768px) {
  .nav-list .sub-menu {
    position: relative;
    top: 0;
    left: 0;
    width: 100%;
    box-shadow: none;
    border: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    display: none;
    padding-left: 1rem;
    background-color: transparent;
  }
  
  .nav-list li.open > .sub-menu {
    display: block;
  }
  
  .nav-list .sub-menu .sub-menu {
    left: 0;
    transform: none;
  }
}

/* ==========================================================================
   HEADER LOGO LINK FIXES
   ========================================================================== */
a.logo-area {
  color: inherit !important;
  text-decoration: none !important;
}
a.logo-area:hover {
  color: inherit !important;
  text-decoration: none !important;
}

/* ==========================================================================
   TOP BAR & SEARCH BAR STYLES
   ========================================================================== */
.top-bar {
  background-color: var(--color-primary-dark);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.8rem;
  padding-block: 0.45rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 1001;
}
.top-bar-container {
  width: 90%;
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.5rem;
}
.top-bar-left {
  display: flex;
  align-items: center;
  gap: 2rem;
  flex: 1;
  min-width: 0; /* Enable text truncation */
}
.top-bar-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* Social icons in top bar */
.top-bar-socials {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
  padding-right: 0.75rem;
}
.topbar-social-link {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.8rem;
  text-decoration: none;
  transition: var(--transition-fast);
}
.topbar-social-link:hover {
  transform: translateY(-2px);
  color: white;
}
.topbar-social-link.youtube:hover  { background-color: #ff0000; }
.topbar-social-link.instagram:hover { background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888); }

.top-bar-info {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  flex-shrink: 0;
}
.top-bar-info .info-item {
  display: flex;
  align-items: center;
  gap: 0.45rem;
}
.top-bar-info a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}
.top-bar-info a:hover {
  color: var(--color-secondary);
}

/* Ticker Styles */
.top-bar-ticker {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
  padding-left: 1.5rem;
  min-width: 0;
  flex: 1;
}
.ticker-label {
  color: var(--color-secondary);
  font-weight: 700;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
}
.ticker-wrapper {
  overflow: hidden;
  height: 20px;
  position: relative;
  flex: 1;
  min-width: 0;
}
.ticker-track {
  display: flex;
  flex-direction: column;
  animation: ticker-slide 12s cubic-bezier(0.645, 0.045, 0.355, 1) infinite;
}
.ticker-item {
  height: 20px;
  line-height: 20px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}
.ticker-item a {
  color: white;
  text-decoration: none;
  font-weight: 500;
  transition: var(--transition-fast);
}
.ticker-item a:hover {
  color: var(--color-secondary);
}

@keyframes ticker-slide {
  0%, 28% { transform: translateY(0); }
  33%, 61% { transform: translateY(-20px); }
  66%, 95% { transform: translateY(-40px); }
  100% { transform: translateY(0); }
}

.top-bar-search {
  display: block;
  flex-shrink: 0;
}
.top-search-form {
  display: flex;
  align-items: center;
  background-color: rgba(255, 255, 255, 0.12);
  border-radius: 20px;
  padding: 0.2rem 0.8rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  transition: var(--transition-fast);
}
.top-search-form:focus-within {
  background-color: white;
  border-color: var(--color-secondary);
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.1);
}
.top-search-field {
  background: none;
  border: none;
  color: white;
  font-size: 0.78rem;
  outline: none;
  padding-block: 0.1rem;
  width: 120px;
  transition: width 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.top-search-form:focus-within .top-search-field {
  color: var(--color-text-dark);
  width: 170px;
}
.top-search-submit {
  background: none;
  border: none;
  color: inherit;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.8rem;
}
.top-search-form:focus-within .top-search-submit {
  color: var(--color-primary);
}

/* Adjust scroll-padding to account for Top Bar */
html {
  scroll-padding-top: 112px;
}

/* Mobile search style inside slide-out navigation menu */
.mobile-search-wrapper {
  width: 100%;
  margin-bottom: 1.25rem;
  display: none; /* Only visible on mobile */
}
.mobile-search-form {
  display: flex;
  align-items: center;
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  padding: 0.45rem 1rem;
  width: 100%;
}
.mobile-search-field {
  flex: 1;
  background: none;
  border: none;
  outline: none;
  font-size: 0.9rem;
  color: var(--color-text-dark);
  font-family: var(--font-body);
}
.mobile-search-submit {
  background: none;
  border: none;
  color: var(--color-text-light);
  cursor: pointer;
  font-size: 0.95rem;
  padding: 0;
  display: flex;
  align-items: center;
}

@media (max-width: 992px) {
  .top-bar-ticker {
    display: none; /* Hide ticker on tablets to prevent crowding */
  }
}

@media (max-width: 768px) {
  .top-bar {
    display: none !important; /* Hide Top Bar on mobile devices */
  }
  html {
    scroll-padding-top: 68px;
  }
  .mobile-search-wrapper {
    display: block;
  }
}

/* ==========================================================================
   BUMDES & PRODUCT SHOWCASE STYLES
   ========================================================================== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 2rem;
  width: 100%;
  margin-top: 2rem;
}
.product-card {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--box-shadow-soft);
  transition: var(--transition-smooth);
  width: 100%;
}
.product-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-medium);
  border-color: var(--color-primary-light);
}
.product-img-box {
  height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  color: rgba(255, 255, 255, 0.95);
  transition: var(--transition-smooth);
}
.product-card:hover .product-img-box {
  filter: brightness(1.05);
}
.product-img-box i {
  font-size: 4.2rem;
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.2));
  transition: var(--transition-smooth);
}
.product-card:hover .product-img-box i {
  transform: scale(1.08);
}
.product-badge {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: white;
  padding: 0.25rem 0.75rem;
  border-radius: 20px;
  font-size: 0.72rem;
  font-weight: 700;
  font-family: var(--font-headings);
  letter-spacing: 0.5px;
}
.product-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}
.product-title {
  font-family: var(--font-headings);
  font-size: 1.12rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.6rem;
  line-height: 1.4;
}
.product-desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex: 1;
}
.product-meta-list {
  border-top: 1px dashed var(--color-border);
  padding-top: 1rem;
  margin-bottom: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  font-size: 0.82rem;
}
.product-meta-row {
  display: flex;
  justify-content: space-between;
  gap: 0.5rem;
  align-items: center;
}
.meta-label {
  color: var(--color-text-light);
}
.meta-price {
  color: var(--color-primary);
  font-size: 0.88rem;
  font-weight: 700;
}
.meta-producer {
  text-align: right;
  font-weight: 600;
  color: var(--color-text-dark);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  max-width: 60%;
}
.product-order-btn {
  width: 100%;
  justify-content: center;
  font-size: 0.85rem;
  padding: 0.65rem;
  border-radius: 8px;
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  transition: var(--transition-fast);
}
.product-order-btn i {
  font-size: 1rem;
}
.product-featured-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: var(--transition-smooth);
}
.product-card:hover .product-featured-image {
  transform: scale(1.05);
}

/* ==========================================================================
   COMING SOON / LAYANAN SURAT STYLES
   ========================================================================== */
.coming-soon-banner {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-soft);
  text-align: center;
  padding: 4rem 2rem;
  max-width: 800px;
  margin: 0 auto;
}
.coming-soon-badge {
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  padding: 0.4rem 1.2rem;
  font-size: 0.72rem;
  font-weight: 700;
  border-radius: 30px;
  display: inline-block;
  margin-bottom: 1.5rem;
  letter-spacing: 0.8px;
  font-family: var(--font-headings);
}
.coming-soon-icon-box {
  font-size: 4.8rem;
  color: var(--color-primary);
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: center;
  align-items: center;
}
.pulse-icon {
  animation: iconPulse 2.5s infinite ease-in-out;
}
@keyframes iconPulse {
  0% {
    transform: scale(1);
    opacity: 0.9;
  }
  50% {
    transform: scale(1.06);
    opacity: 1;
    filter: drop-shadow(0 8px 12px rgba(11, 107, 71, 0.25));
  }
  100% {
    transform: scale(1);
    opacity: 0.9;
  }
}
.coming-soon-title {
  font-family: var(--font-headings);
  font-size: 1.8rem;
  color: var(--color-primary-dark);
  margin-bottom: 1rem;
  font-weight: 800;
  line-height: 1.3;
}
.coming-soon-desc {
  font-size: 0.95rem;
  color: var(--color-text-light);
  line-height: 1.8;
  max-width: 650px;
  margin: 0 auto 1.5rem;
}

.upcoming-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 2rem;
}
.upcoming-card {
  background: white;
  border-radius: var(--border-radius-md);
  padding: 2.25rem 2rem;
  box-shadow: var(--box-shadow-soft);
  border: 1px solid var(--color-border);
  transition: var(--transition-smooth);
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}
.upcoming-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-medium);
  border-color: var(--color-primary-light);
}
.upcoming-card-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.25rem;
  margin-bottom: 1.25rem;
}
.upcoming-card-title {
  font-family: var(--font-headings);
  font-size: 1.12rem;
  color: var(--color-primary-dark);
  font-weight: 700;
  margin-bottom: 0.75rem;
  line-height: 1.4;
}
.upcoming-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

@media (max-width: 768px) {
  .coming-soon-banner {
    padding: 3rem 1.5rem;
  }
  .coming-soon-title {
    font-size: 1.5rem;
  }
  .coming-soon-desc {
    font-size: 0.88rem;
  }
}

/* ==========================================================================
   EMERGENCY FLOATING HOTLINE WIDGET STYLES
   ========================================================================== */
.emergency-panel {
  background-color: #fff;
}

.emergency-header {
  background: linear-gradient(135deg, #d9381e, #b82a13);
  color: white;
  padding: 0.85rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.emergency-icon-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-family: var(--font-headings);
  font-size: 0.95rem;
}
.emergency-icon-title i {
  font-size: 1.1rem;
}
.emergency-close-btn {
  background: none;
  border: none;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
  transition: color 0.2s ease;
  padding: 0;
  margin: 0;
}
.emergency-close-btn:hover {
  color: white;
}

.emergency-body {
  padding: 1.25rem 1rem;
}
.emergency-intro {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-bottom: 1rem;
  line-height: 1.5;
  margin-top: 0;
}
.emergency-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.emergency-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #f8f9fa;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  padding: 0.6rem 0.75rem;
  transition: all 0.2s ease;
}
.emergency-list li:hover {
  background: #f1f3f5;
  border-color: #dee2e6;
}
.hotline-icon {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.hotline-details {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-width: 0;
}
.hotline-label {
  font-size: 0.72rem;
  color: var(--color-text-light);
  font-weight: 500;
  margin-bottom: 2px;
}
.hotline-number {
  font-size: 0.88rem;
  color: var(--color-text-dark);
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.hotline-call-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #d9381e;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  font-size: 0.95rem;
  transition: all 0.2s ease;
  flex-shrink: 0;
}
.hotline-call-btn:hover {
  background-color: #b82a13;
  transform: scale(1.05);
}



/* ==========================================================================
   TRANSPARANSI ANGGARAN (APBDes) SECTION
   ========================================================================== */
.apbdes-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.apbdes-summary-card {
  background-color: white;
  border-radius: 12px;
  border: 1px solid var(--color-border);
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.apbdes-summary-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.apbdes-summary-card .card-icon-box {
  width: 50px;
  height: 50px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

/* Card variants left border and colors */
.apbdes-summary-card.card-income {
  border-left: 4px solid var(--color-primary);
}
.apbdes-summary-card.card-income .card-icon-box {
  background-color: hsl(var(--primary-hue), 20%, 94%);
  color: var(--color-primary);
}

.apbdes-summary-card.card-expense {
  border-left: 4px solid #028090;
}
.apbdes-summary-card.card-expense .card-icon-box {
  background-color: rgba(2, 128, 144, 0.1);
  color: #028090;
}

.apbdes-summary-card.card-surplus {
  border-left: 4px solid var(--color-success);
}
.apbdes-summary-card.card-surplus .card-icon-box {
  background-color: rgba(46, 204, 113, 0.1);
  color: var(--color-success);
}

.apbdes-summary-card.card-defisit {
  border-left: 4px solid var(--color-danger);
}
.apbdes-summary-card.card-defisit .card-icon-box {
  background-color: rgba(231, 76, 60, 0.1);
  color: var(--color-danger);
}

.apbdes-summary-card.card-silpa {
  border-left: 4px solid var(--color-secondary);
}
.apbdes-summary-card.card-silpa .card-icon-box {
  background-color: rgba(7, 200, 249, 0.1);
  color: var(--color-secondary);
}

.apbdes-summary-card .card-info {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  min-width: 0;
}

.apbdes-summary-card .card-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--color-text-light);
  letter-spacing: 0.05em;
}

.apbdes-summary-card .card-value {
  font-family: var(--font-headings);
  font-size: 1.18rem;
  font-weight: 800;
  color: var(--color-primary-dark);
  margin: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.apbdes-summary-card .card-trend {
  font-size: 0.72rem;
  font-weight: 500;
}

.apbdes-summary-card .badge {
  display: inline-block;
  padding: 0.2rem 0.6rem;
  font-size: 0.7rem;
  font-weight: 700;
  border-radius: 4px;
  width: fit-content;
}

.apbdes-summary-card .badge-success {
  background-color: var(--color-success);
  color: white;
}

.apbdes-summary-card .badge-danger {
  background-color: var(--color-danger);
  color: white;
}

/* Responsiveness for APBDes summary */
@media (max-width: 992px) {
  .apbdes-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 576px) {
  .apbdes-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .apbdes-summary-card {
    padding: 1.25rem;
  }
  .apbdes-summary-card .card-value {
    font-size: 1.1rem;
  }
}

/* ==========================================================================
   HOMEPAGE QUICK ACCESS / FITUR UTAMA SECTION
   ========================================================================== */
.quick-access-section {
  position: relative;
  z-index: 10;
  margin-top: -60px;
  padding-bottom: 2rem;
}

@media (max-width: 992px) {
  .quick-access-section {
    margin-top: 0;
    padding-top: 3rem;
  }
}

.quick-access-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .quick-access-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}


.quick-card {
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 12px;
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.04);
  text-decoration: none;
  transition: all 0.3s cubic-bezier(0.165, 0.84, 0.44, 1);
  position: relative;
}

.quick-card::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 12px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.quick-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.08);
  background: #ffffff;
}

.quick-card:hover::after {
  border-color: var(--color-primary-light);
}

.quick-icon-box {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.quick-card:hover .quick-icon-box {
  transform: scale(1.08) rotate(3deg);
}

.quick-icon-box.q-primary { background: hsl(var(--primary-hue), 20%, 94%); color: var(--color-primary); }
.quick-icon-box.q-teal { background: rgba(2, 128, 144, 0.1); color: #028090; }
.quick-icon-box.q-secondary { background: rgba(7, 200, 249, 0.1); color: var(--color-secondary); }
.quick-icon-box.q-danger { background: rgba(231, 76, 60, 0.1); color: var(--color-danger); }
.quick-icon-box.q-info { background: rgba(52, 152, 219, 0.1); color: #3498db; }
.quick-icon-box.q-purple { background: rgba(155, 89, 182, 0.1); color: #9b59b6; }

.quick-info {
  flex: 1;
  min-width: 0;
}

.quick-info h3 {
  font-family: var(--font-headings);
  font-size: 1.02rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0;
  line-height: 1.2;
}

.quick-info p {
  display: none;
}

.quick-arrow {
  font-size: 0.85rem;
  color: var(--color-border);
  transition: transform 0.3s ease, color 0.3s ease;
}

.quick-card:hover .quick-arrow {
  color: var(--color-primary);
  transform: translateX(4px);
}

@media (max-width: 768px) {
  .quick-access-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem 0.4rem;
  }
  .quick-card {
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: none !important;
    padding: 0.5rem 0.15rem !important;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.4rem;
    border-radius: 0;
  }
  .quick-card::after {
    display: none !important;
  }
  .quick-card:hover {
    transform: translateY(-3px) !important;
    background: transparent !important;
    box-shadow: none !important;
  }
  .quick-icon-box {
    width: auto !important;
    height: auto !important;
    background: transparent !important;
    box-shadow: none !important;
    border-radius: 0 !important;
    font-size: 1.6rem !important; /* compact premium size */
    transition: transform 0.2s ease;
  }
  
  /* Brand colors for the icons directly */
  .q-card-profil .quick-icon-box { color: var(--color-primary) !important; }
  .q-card-infografis .quick-icon-box { color: #e63946 !important; }
  .q-card-idm .quick-icon-box { color: #f59e0b !important; }
  .q-card-apbdes .quick-icon-box { color: #10b981 !important; }
  .q-card-berita .quick-icon-box { color: #3b82f6 !important; }
  .q-card-umkm .quick-icon-box { color: #f97316 !important; }
  .q-card-bansos .quick-icon-box { color: #ef4444 !important; }
  .q-card-galeri .quick-icon-box { color: #8b5cf6 !important; }

  .quick-info h3 {
    font-size: 0.72rem !important;
    font-weight: 600 !important;
    color: var(--color-text-dark) !important;
    margin: 0;
    white-space: normal !important;
    overflow: visible !important;
    text-overflow: clip !important;
    line-height: 1.2;
    display: block;
    width: 100%;
  }
  .quick-info p {
    display: none !important;
  }
  .quick-arrow {
    display: none !important;
  }
}


/* APBDes Page Status Badge & Notice Box */
.apbdes-status-badge {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  padding: 0.35rem 0.9rem;
  border-radius: 50px;
  display: inline-block;
  vertical-align: middle;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.apbdes-status-badge.status-rancangan {
  background-color: rgba(7, 200, 249, 0.15);
  color: #c9880f;
  border: 1px solid rgba(7, 200, 249, 0.3);
}

.apbdes-status-badge.status-realisasi {
  background-color: hsl(var(--primary-hue), 20%, 94%);
  color: var(--color-primary-dark);
  border: 1px solid var(--color-primary-light);
}

.apbdes-notice-box {
  background: white;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-secondary);
  border-radius: 12px;
  padding: 1.5rem;
  margin-top: 2rem;
  display: flex;
  gap: 1.25rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.02);
}

.apbdes-notice-box .notice-icon {
  font-size: 1.5rem;
  color: var(--color-secondary);
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.apbdes-notice-box .notice-content {
  flex: 1;
}

.apbdes-notice-box .notice-content strong {
  font-family: var(--font-headings);
  font-size: 1rem;
  color: var(--color-primary-dark);
  display: block;
  margin-bottom: 0.4rem;
  font-weight: 700;
}

.apbdes-notice-box .notice-content p {
  font-size: 0.88rem;
  color: var(--color-text);
  line-height: 1.5;
  margin: 0;
}

@media (max-width: 576px) {
  .apbdes-status-badge {
    font-size: 0.7rem;
    padding: 0.25rem 0.75rem;
  }
  .apbdes-notice-box {
    padding: 1.25rem;
    gap: 1rem;
  }
  .apbdes-notice-box .notice-icon {
    font-size: 1.25rem;
  }
  .apbdes-notice-box .notice-content p {
    font-size: 0.8rem;
  }
}

/* ==========================================================================
   SERVICES & WORKFLOW PAGE STYLES
   ========================================================================== */
.service-flow-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2rem;
  position: relative;
}

.flow-step {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  padding: 2rem 1.5rem;
  text-align: center;
  box-shadow: var(--box-shadow-soft);
  position: relative;
  transition: var(--transition-smooth);
}

.flow-step:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-medium);
  border-color: var(--color-primary-light);
}

.flow-step-num {
  position: absolute;
  top: -15px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--color-secondary);
  color: var(--color-primary-dark);
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.9rem;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  border: 2px solid white;
}

.flow-step-icon {
  font-size: 2rem;
  color: var(--color-primary);
  margin-bottom: 1rem;
  margin-top: 0.5rem;
}

.flow-step-title {
  font-family: var(--font-headings);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
}

.flow-step-desc {
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin: 0;
}

/* Connectors for desktop */
.service-flow-grid::before {
  content: '';
  position: absolute;
  top: 50px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: repeating-linear-gradient(to right, var(--color-border) 0, var(--color-border) 8px, transparent 8px, transparent 16px);
  z-index: 0;
}
.flow-step {
  z-index: 1; /* keep steps above the line */
}

/* Tabs styles */
.services-tabs-container {
  display: flex;
  justify-content: center;
  gap: 0.75rem;
  margin-bottom: 2.5rem;
  overflow-x: auto;
  padding: 0.5rem;
  scrollbar-width: none; /* Firefox */
  -webkit-overflow-scrolling: touch;
}
.services-tabs-container::-webkit-scrollbar {
  display: none; /* Chrome/Safari */
}

.service-tab-btn {
  background: white;
  border: 1px solid var(--color-border);
  color: var(--color-text-dark);
  padding: 0.8rem 1.6rem;
  border-radius: 30px;
  font-weight: 600;
  font-size: 0.9rem;
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition-smooth);
  box-shadow: var(--box-shadow-soft);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.service-tab-btn i {
  font-size: 1rem;
  color: var(--color-primary);
  transition: var(--transition-smooth);
}

.service-tab-btn:hover {
  border-color: var(--color-primary-light);
  transform: translateY(-2px);
}

.service-tab-btn.active {
  background: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  box-shadow: 0 6px 15px hsla(var(--primary-hue), 70%, 26%, 0.2);
}

.service-tab-btn.active i {
  color: white;
}

/* Content Panels */
.service-tab-panel {
  display: none;
  animation: fadeIn 0.4s ease;
}
.service-tab-panel.active {
  display: block;
}

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

/* Accordion cards */
.service-accordion-container {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  max-width: 900px;
  margin: 0 auto;
}

.service-accordion {
  background: white;
  border: 1px solid var(--color-border);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-soft);
  overflow: hidden;
  transition: var(--transition-smooth);
}

.service-accordion.open {
  border-color: var(--color-primary);
  box-shadow: var(--box-shadow-medium);
}

.accordion-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  user-select: none;
  gap: 1rem;
  background: white;
  transition: background-color 0.2s ease;
}

.accordion-header:hover {
  background: hsla(var(--primary-hue), 70%, 26%, 0.02);
}

.accordion-header-left {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}

.accordion-header h3 {
  font-family: var(--font-headings);
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0;
}

.accordion-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.service-badge {
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: 4px;
  text-transform: uppercase;
}

.service-badge-time {
  background: hsla(200, 80%, 40%, 0.08);
  color: hsl(200, 80%, 35%);
}

.service-badge-cost {
  background: hsla(140, 80%, 40%, 0.08);
  color: hsl(140, 80%, 30%);
}

.accordion-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  font-size: 0.85rem;
  transition: transform 0.3s ease, background-color 0.3s ease;
  flex-shrink: 0;
}

.service-accordion.open .accordion-icon {
  transform: rotate(180deg);
  background: var(--color-primary);
  color: white;
}

.accordion-content {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  border-top: 0 solid var(--color-border);
  background: var(--color-bg-light);
}

.service-accordion.open .accordion-content {
  border-top: 1px solid var(--color-border);
}

.accordion-content-inner {
  padding: 1.5rem;
}

.service-detail-section {
  margin-bottom: 1.25rem;
}

.service-detail-section:last-child {
  margin-bottom: 0;
}

.service-detail-title {
  font-size: 0.85rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 0.5rem;
  letter-spacing: 0.5px;
}

.service-requirements-list {
  padding-left: 1.25rem;
  margin: 0;
  font-size: 0.9rem;
  color: var(--color-text-dark);
  line-height: 1.6;
}

.service-requirements-list li {
  margin-bottom: 0.4rem;
}

.service-requirements-list li:last-child {
  margin-bottom: 0;
}

/* Responsiveness media queries */
@media (max-width: 992px) {
  .service-flow-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 2rem 1.5rem;
  }
  .service-flow-grid::before {
    display: none; /* hide flow line */
  }
}

@media (max-width: 576px) {
  .service-flow-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
  
  .flow-step {
    padding: 1.75rem 1.25rem;
  }
  
  .services-tabs-container {
    justify-content: flex-start;
    padding-bottom: 0.75rem;
  }
  
  .accordion-header {
    padding: 1rem;
  }
  
  .accordion-header h3 {
    font-size: 1rem;
  }
  
  .accordion-content-inner {
    padding: 1.25rem 1rem;
  }
}

/* ==========================================================================
   FOOTER MAPS STYLES
   ========================================================================== */
.footer-map-wrapper {
  width: 100%;
  border-radius: var(--border-radius-sm);
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);
  line-height: 0;
  margin-top: 0.5rem;
}
.footer-map-wrapper iframe {
  filter: grayscale(15%) invert(90%) hue-rotate(180deg);
  transition: var(--transition-smooth);
}
.footer-map-wrapper:hover iframe {
  filter: none;
}
.footer-map-address {
  margin-top: 0.75rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
.footer-map-address svg {
  color: var(--color-secondary);
  flex-shrink: 0;
}

/* ==========================================================================
   VISITOR STATISTICS FLOATING WIDGET
   ========================================================================== */
.stats-widget-container {
  position: fixed;
  bottom: 105px;
  right: 33px; /* Slightly offset or aligned with WhatsApp button */
  z-index: 9998;
  font-family: var(--font-body);
}

.stats-btn {
  width: 54px;
  height: 54px;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  box-shadow: 0 6px 20px rgba(15, 23, 42, 0.35);
  cursor: pointer;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease;
  position: relative;
}

/* Embedded Footer Visitor Statistics */
.footer-stats-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.stats-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.88rem;
  color: rgba(255, 255, 255, 0.65);
  padding-bottom: 0.4rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.stats-item:last-child {
  border-bottom: none;
}

.stats-item .stats-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.stats-item .stats-value {
  font-weight: 600;
  color: white;
}

.stats-item.total-item {
  margin-top: 0.3rem;
  padding-top: 0.5rem;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  border-bottom: none;
}

.stats-item.total-item .stats-label {
  color: white;
  font-weight: 700;
}

.stats-item.total-item .stats-value.highlight {
  color: var(--color-secondary);
  font-size: 1.05rem;
  font-weight: 700;
}

.indicator-dot.online {
  width: 8px;
  height: 8px;
  background-color: #10b981;
  border-radius: 50%;
  display: inline-block;
  box-shadow: 0 0 8px #10b981;
  animation: pulse-online 2s infinite;
}

@keyframes pulse-online {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 6px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* ==========================================================================
   GIS Map (Potensi Desa) & Agenda Kegiatan (Beranda)
   ========================================================================== */

/* GIS Map Layout */
.gis-wrapper {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 0;
  background: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-soft);
  border: 1px solid var(--color-border);
  overflow: hidden;
  margin-top: 2rem;
}
.gis-sidebar-list {
  display: flex;
  flex-direction: column;
  max-height: 480px;
  overflow-y: auto;
  border-right: 1px solid var(--color-border);
  background-color: #fafbfc;
}
.gis-poi-item {
  display: flex;
  gap: 1rem;
  padding: 1.25rem;
  cursor: pointer;
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
  background: white;
}
.gis-poi-item:last-child {
  border-bottom: none;
}
.gis-poi-item:hover {
  background-color: hsl(var(--primary-hue), 20%, 98%);
}
.gis-poi-item.active {
  background-color: hsl(var(--primary-hue), 15%, 96%);
  border-left: 4px solid var(--color-primary);
  padding-left: calc(1.25rem - 4px);
}
.poi-icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--color-primary-light);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
  transition: all 0.3s ease;
}
.gis-poi-item.active .poi-icon {
  background-color: var(--color-primary);
  color: white;
}
.poi-info h4 {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin-bottom: 0.25rem;
}
.poi-info p {
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.4;
  margin: 0;
}

/* Peta Digital Desa Page Layout */
.gis-main-grid {
  display: grid;
  grid-template-columns: 350px 1fr;
  gap: 24px;
  margin-bottom: 2rem;
}
.gis-sidebar {
  min-width: 0;
}
.gis-map-container {
  position: relative;
  min-width: 0;
}
#wp-gis-map {
  width: 100%;
  height: 680px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #cbd5e1;
  z-index: 1;
}
#home-gis-map {
  width: 100%;
  height: 520px;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  border: 1px solid #cbd5e1;
  z-index: 1;
}
.potensi-map-container {
  height: 480px;
  width: 100%;
  background-color: #e5e3df;
  z-index: 1;
}

/* Custom Markers & Leaflet Popups */
.custom-map-marker {
  width: 36px;
  height: 36px;
  border-radius: 50% 50% 50% 0;
  background: var(--color-primary);
  border: 2px solid white;
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transform: rotate(-45deg);
  box-shadow: 0 4px 6px rgba(0,0,0,0.15);
}
.custom-map-marker i {
  transform: rotate(45deg);
}
.map-custom-marker-wrapper {
  background: transparent !important;
  border: none !important;
}
.leaflet-popup-content-wrapper {
  border-radius: var(--border-radius-sm) !important;
  box-shadow: var(--box-shadow-medium) !important;
  border: 1px solid var(--color-border);
  padding: 0.25rem;
}
.map-popup-card {
  font-family: 'Plus Jakarta Sans', sans-serif;
  padding: 0.25rem;
}
.map-popup-title {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 0.4rem 0;
}
.map-popup-desc {
  font-size: 0.82rem;
  color: var(--color-text-dark);
  line-height: 1.4;
  margin: 0 0 0.75rem 0;
}
.map-popup-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--color-primary);
  color: white !important;
  padding: 0.4rem 0.8rem;
  border-radius: var(--border-radius-sm);
  font-size: 0.78rem;
  font-weight: 600;
  text-decoration: none;
  transition: background 0.2s ease;
}
.map-popup-btn:hover {
  background: var(--color-primary-dark);
}

/* Agenda Section on Homepage */
.agenda-timeline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 350px), 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.agenda-card {
  display: flex;
  gap: 1.5rem;
  background: white;
  padding: 1.5rem;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-soft);
  border: 1px solid var(--color-border);
  transition: all 0.3s ease;
  position: relative;
}
.agenda-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--box-shadow-medium);
  border-color: var(--color-primary-light);
}
.agenda-date-block {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  background-color: var(--color-primary);
  color: white;
  border-radius: var(--border-radius-sm);
  padding: 0.75rem;
  width: 72px;
  height: 88px;
  flex-shrink: 0;
  box-shadow: 0 4px 10px hsla(var(--primary-hue), 70%, 30%, 0.15);
}
.agenda-day {
  font-size: 1.65rem;
  font-weight: 800;
  font-family: var(--font-headings);
  line-height: 1;
}
.agenda-month {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  margin-top: 3px;
}
.agenda-year {
  font-size: 0.7rem;
  opacity: 0.85;
  margin-top: 1px;
}
.agenda-body {
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.agenda-cat-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  width: fit-content;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}
.cat-posyandu { background-color: hsl(140, 70%, 92%); color: hsl(140, 70%, 25%); }
.cat-rapat { background-color: hsl(200, 70%, 92%); color: hsl(200, 70%, 25%); }
.cat-gotong-royong { background-color: hsl(35, 70%, 92%); color: hsl(35, 70%, 25%); }
.cat-penyuluhan { background-color: hsl(270, 70%, 92%); color: hsl(270, 70%, 25%); }
.cat-bansos { background-color: hsl(340, 70%, 92%); color: hsl(340, 70%, 25%); }
.cat-lainnya { background-color: hsl(0, 0%, 90%); color: hsl(0, 0%, 30%); }

.agenda-card-title {
  font-family: var(--font-headings);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 0.5rem 0;
  line-height: 1.4;
}
.agenda-card-desc {
  font-size: 0.85rem;
  color: var(--color-text-light);
  line-height: 1.5;
  margin: 0 0 1rem 0;
}
.agenda-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  border-top: 1px dashed var(--color-border);
  padding-top: 0.75rem;
  margin-top: auto;
}
.agenda-card-meta .meta-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-light);
}
.agenda-card-meta .meta-item i {
  color: var(--color-primary);
  width: 14px;
  text-align: center;
}

/* Responsive GIS and Agenda styling */
@media (max-width: 992px) {
  .gis-wrapper {
    grid-template-columns: 300px 1fr;
  }
  .gis-main-grid {
    grid-template-columns: 300px 1fr;
  }
}

@media (max-width: 768px) {
  .gis-wrapper {
    grid-template-columns: 1fr;
  }
  .potensi-map-container {
    height: 320px;
    order: 1;
  }
  .gis-sidebar-list {
    max-height: 220px;
    order: 2;
    border-right: none;
    border-top: 1px solid var(--color-border);
  }
  
  /* GIS Peta Lengkap Mobile Overrides */
  .gis-main-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
  .gis-map-container {
    order: -1; /* Place map on top on mobile */
  }
  #wp-gis-map {
    height: 380px !important; /* Adaptable height for mobile phones */
  }
  #home-gis-map {
    height: 350px !important; /* Proporsional untuk HP */
  }
}

@media (max-width: 576px) {
  .agenda-card {
    flex-direction: column;
    gap: 1.25rem;
  }
  .agenda-date-block {
    flex-direction: row;
    gap: 0.5rem;
    width: 100%;
    height: auto;
    padding: 0.5rem 1rem;
    justify-content: flex-start;
  }
  .agenda-day {
    font-size: 1.3rem;
  }
  .agenda-month {
    font-size: 0.8rem;
    margin-top: 0;
  }
  .agenda-year {
    display: none;
  }
}

/* ==========================================================================
   ACCESSIBILITY WIDGET — Standar Website Pemerintah Indonesia
   Mendukung: tunarungu, tunanetra, difabel motorik, sensitivity gerakan
   ========================================================================== */

/* Skip to Content Link */
.skip-to-content {
  position: fixed;
  top: -120px;
  left: 50%;
  transform: translateX(-50%);
  background-color: var(--color-primary-dark);
  color: white;
  padding: 0.75rem 1.5rem;
  border-radius: 0 0 var(--border-radius-sm) var(--border-radius-sm);
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.9rem;
  z-index: 99999;
  text-decoration: none;
  transition: top 0.25s ease;
  box-shadow: 0 4px 16px rgba(0,0,0,0.3);
  white-space: nowrap;
}
.skip-to-content:focus {
  top: 0;
  outline: 3px solid var(--color-secondary);
  outline-offset: 2px;
}

/* Main Widget Container */
/* Base Panel class inherits properties */
.a11y-panel {
  /* will inherit from .utility-panel */
}
.a11y-panel[hidden] { display: none; }
@keyframes a11ySlideIn {
  from { opacity: 0; transform: translateY(-50%) translateX(-10px); }
  to   { opacity: 1; transform: translateY(-50%) translateX(0); }
}

/* Panel Header */
.a11y-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  color: white;
}
.a11y-panel-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: -0.01em;
}
.a11y-close-btn {
  background: rgba(255,255,255,0.15);
  border: none;
  color: white;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  line-height: 1;
}
.a11y-close-btn:hover {
  background: rgba(255,255,255,0.3);
  transform: scale(1.05);
}
.a11y-close-btn:focus { outline: 2px solid var(--color-secondary); }

/* Panel Body */
.a11y-panel-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Group */
.a11y-group {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid rgba(226, 232, 240, 0.8);
}
.a11y-group:last-of-type { border-bottom: none; padding-bottom: 0; }
.a11y-group-label {
  font-family: var(--font-headings);
  font-size: 0.72rem;
  font-weight: 800;
  color: var(--color-primary-light);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Font Size Buttons (Segmented iOS style selector) */
.a11y-btn-row {
  display: flex;
  background: #f1f5f9;
  border-radius: 10px;
  padding: 3px;
  gap: 2px;
}
.a11y-action-btn {
  flex: 1;
  padding: 0.45rem 0.6rem;
  border: none;
  border-radius: 8px;
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 600;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  color: #475569;
  min-height: 34px;
}
.a11y-action-btn:hover {
  background: rgba(255, 255, 255, 0.45);
  color: var(--color-primary-dark);
}
.a11y-action-btn.active-size {
  background: white;
  color: var(--color-primary-dark);
  font-weight: 700;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08), 0 1px 2px rgba(0, 0, 0, 0.04);
}
.a11y-action-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-secondary);
}

/* Toggle Options (iOS Switch style) */
.a11y-btn-col { display: flex; flex-direction: column; gap: 0.45rem; }
.a11y-toggle-option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 1rem;
  padding-right: 3.5rem; /* leave space for the switch */
  border: 1px solid var(--color-border);
  border-radius: 12px;
  background: white;
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--color-text-dark);
  text-align: left;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  width: 100%;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.02);
}
.a11y-toggle-option:hover {
  background: hsl(var(--primary-hue), 35%, 98%);
  border-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.a11y-toggle-option[aria-pressed="true"] {
  background: hsl(var(--primary-hue), 35%, 97%);
  border-color: var(--color-primary-light);
  color: var(--color-primary-dark);
  font-weight: 600;
}
.a11y-toggle-option::after {
  content: '';
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 32px;
  height: 18px;
  background-color: #cbd5e1;
  border-radius: 9px;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.a11y-toggle-option::before {
  content: '';
  position: absolute;
  right: 27px;
  top: 50%;
  transform: translateY(-50%);
  width: 14px;
  height: 14px;
  background-color: white;
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  z-index: 2;
}
.a11y-toggle-option[aria-pressed="true"]::after {
  background-color: var(--color-primary);
}
.a11y-toggle-option[aria-pressed="true"]::before {
  transform: translateY(-50%) translateX(12px);
}
.a11y-toggle-option:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-secondary);
}
.a11y-opt-icon {
  font-size: 1rem;
  width: 18px;
  text-align: center;
  flex-shrink: 0;
  color: var(--color-text-light);
  transition: color 0.25s;
}
.a11y-toggle-option[aria-pressed="true"] .a11y-opt-icon {
  color: var(--color-primary);
}

/* TTS Controls */
.a11y-tts-controls {
  display: flex;
  gap: 0.5rem;
}
.a11y-tts-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.6rem 0.8rem;
  border: 1px solid var(--color-primary);
  border-radius: 10px;
  background: var(--color-primary);
  color: white;
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.a11y-tts-btn:hover:not(:disabled) {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.15);
}
.a11y-tts-btn.secondary {
  background: white;
  color: #475569;
  border-color: #cbd5e1;
}
.a11y-tts-btn.secondary:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #fca5a5;
  color: #ef4444;
  box-shadow: 0 4px 12px rgba(239, 68, 68, 0.08);
}
.a11y-tts-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  background: #cbd5e1 !important;
  border-color: #cbd5e1 !important;
  color: #94a3b8 !important;
  transform: none !important;
  box-shadow: none !important;
}
.a11y-tts-btn:focus {
  outline: none;
  box-shadow: 0 0 0 2px var(--color-secondary);
}
.a11y-tts-note {
  font-size: 0.68rem;
  color: var(--color-text-light);
  line-height: 1.4;
  font-style: italic;
  margin-top: 0.4rem;
}

/* Reset All */
.a11y-reset-all-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.65rem;
  background: #f8fafc;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: #64748b;
  font-family: var(--font-body);
  font-weight: 500;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.a11y-reset-all-btn:hover {
  border-color: #ef4444;
  color: #ef4444;
  background: #fef2f2;
}
.a11y-reset-all-btn:focus { outline: 2px solid var(--color-secondary); }

/* Panel Footer */
.a11y-panel-footer {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.75rem 1.25rem;
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
  font-size: 0.7rem;
  color: var(--color-text-light);
  font-style: italic;
}

/* ── ACCESSIBILITY MODES (Applied on <html>) ─────────── */
html.a11y-high-contrast body { background-color: #000 !important; color: #ffff00 !important; }
html.a11y-high-contrast a { color: #00ffff !important; }
html.a11y-high-contrast .site-header, html.a11y-high-contrast .top-bar, html.a11y-high-contrast .site-footer { background: #111 !important; border-color: #ffff00 !important; }
html.a11y-grayscale { filter: grayscale(100%) !important; }
html.a11y-negative { filter: invert(90%) hue-rotate(180deg) !important; }
html.a11y-underline-links a { text-decoration: underline !important; }
html.a11y-focus-highlight *:focus { outline: 3px solid #ff6600 !important; outline-offset: 3px !important; box-shadow: 0 0 0 6px rgba(255,102,0,0.35) !important; }
html.a11y-no-animation *, html.a11y-no-animation *::before, html.a11y-no-animation *::after {
  animation-duration: 0.001ms !important; animation-iteration-count: 1 !important;
  transition-duration: 0.001ms !important; scroll-behavior: auto !important;
}
html.a11y-font-sm { font-size: 85% !important; }
html.a11y-font-lg { font-size: 115% !important; }
html.a11y-font-xl { font-size: 130% !important; }

/* Responsive */
/* Handled by unified responsive dock */

/* Context-Aware TTS Reading Highlights */
.a11y-reading-highlight {
  background-color: rgba(253, 224, 71, 0.4) !important;
  box-shadow: 0 0 0 4px rgba(253, 224, 71, 0.4) !important;
  border-radius: 4px !important;
  transition: all 0.25s ease !important;
}

/* Click & Speak Mode Hover Outline */
.a11y-click-speak-enabled h1,
.a11y-click-speak-enabled h2,
.a11y-click-speak-enabled h3,
.a11y-click-speak-enabled h4,
.a11y-click-speak-enabled h5,
.a11y-click-speak-enabled h6,
.a11y-click-speak-enabled p,
.a11y-click-speak-enabled li,
.a11y-click-speak-enabled td,
.a11y-click-speak-enabled th,
.a11y-click-speak-enabled figcaption,
.a11y-click-speak-enabled blockquote {
  cursor: pointer !important;
}

.a11y-click-speak-hover {
  outline: 2px dashed var(--color-primary, #0f766e) !important;
  outline-offset: 4px !important;
  background-color: rgba(13, 65, 225, 0.08) !important;
  border-radius: 4px !important;
  transition: outline-offset 0.15s ease, background-color 0.15s ease !important;
}

/* ==========================================================================
   VISITOR STATISTICS FLOATING WIDGET (MIRRORED ON THE RIGHT WALL)
   ========================================================================== */
.stats-panel {
  /* will inherit from .utility-panel */
}

/* Panel Header */
.stats-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.85rem 1rem;
  background: linear-gradient(135deg, var(--color-primary-dark), var(--color-primary));
  border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
  color: white;
}
.stats-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
}
.stats-close-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  font-size: 1.1rem;
  line-height: 1;
  transition: background 0.2s ease;
}
.stats-close-btn:hover {
  background: rgba(255,255,255,0.3);
}

/* Panel Body */
.stats-panel-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

/* Panel Footer */
.stats-panel-footer {
  padding: 0.65rem 1rem;
  background: var(--color-bg-light);
  border-top: 1px solid var(--color-border);
  font-size: 0.65rem;
  color: var(--color-text-light);
  text-align: center;
  border-radius: 0 0 var(--border-radius-md) var(--border-radius-md);
}

/* Responsive adjustment for stats widget */
/* Handled by unified responsive dock */

/* Contrast overrides for elements inside the light-themed Stats Panel */
.stats-panel .stats-item {
  color: var(--color-text-dark) !important;
  border-bottom: 1px solid var(--color-border) !important;
}
.stats-panel .stats-item .stats-value {
  color: var(--color-text-dark) !important;
}
.stats-panel .stats-item.total-item {
  border-top: 1px solid var(--color-border) !important;
  border-bottom: none !important;
}
.stats-panel .stats-item.total-item .stats-label {
  color: var(--color-text-dark) !important;
}
.stats-panel .stats-item.total-item .stats-value.highlight {
  color: var(--color-primary-dark) !important;
  font-size: 1.1rem !important;
}

/* ==========================================================================
   UNIFIED SIDE UTILITY DOCK (Aksesibilitas, Statistik, WhatsApp, Darurat)
   ========================================================================== */
.side-utility-dock {
  position: fixed;
  left: 0;
  top: 50%;
  transform: translateY(-50%);
  z-index: 9999;
  display: flex;
  align-items: center;
  font-family: var(--font-body);
}

.dock-buttons {
  display: flex;
  flex-direction: column;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid var(--color-border);
  border-left: none;
  border-radius: 0 16px 16px 0;
  box-shadow: 4px 0 25px rgba(0, 0, 0, 0.15);
  padding: 10px 8px;
  gap: 6px;
  align-items: flex-start;
}

.dock-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  border: none;
  border-radius: 0 8px 8px 0;
  width: 48px;
  height: 48px;
  cursor: pointer;
  box-shadow: 3px 0 10px rgba(0, 0, 0, 0.15);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.dock-btn svg {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
}

.dock-label {
  display: none !important;
}

/* Hover & Active effects: slide tab out to the right */
.dock-btn:hover {
  transform: translateX(6px);
  box-shadow: 4px 0 15px rgba(0, 0, 0, 0.2);
}

.dock-btn.active {
  box-shadow: inset 0 2px 5px rgba(0, 0, 0, 0.25);
  transform: translateX(8px);
}

/* Distinct function-based background colors */
.dock-btn.a11y {
  background-color: #0d41e1;
}
.dock-btn.a11y:hover, .dock-btn.a11y.active {
  background-color: #0b5e56;
}

.dock-btn.stats {
  background-color: #2563eb;
}
.dock-btn.stats:hover, .dock-btn.stats.active {
  background-color: #1d4ed8;
}

.dock-btn.whatsapp {
  background-color: #25D366;
}
.dock-btn.whatsapp:hover, .dock-btn.whatsapp.active {
  background-color: #20ba5a;
}

.dock-btn.emergency {
  background-color: #dc2626;
  animation: dockEmergencyPulse 2s infinite ease-in-out;
}
.dock-btn.emergency:hover, .dock-btn.emergency.active {
  background-color: #b91c1c;
}

@keyframes dockEmergencyPulse {
  0% { opacity: 1; }
  50% { opacity: 0.88; }
  100% { opacity: 1; }
}

/* Panels Base Layout */
.dock-panels {
  position: absolute;
  left: calc(100% + 12px);
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

.utility-panel {
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%) translateX(-15px);
  width: 320px;
  max-height: 85vh;
  background: white;
  border-radius: 16px;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.15), 0 5px 15px rgba(0, 0, 0, 0.08);
  border: 1px solid var(--color-border);
  display: flex;
  flex-direction: column;
  opacity: 0;
  visibility: hidden;
  pointer-events: auto;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s;
  z-index: 999;
  overflow: hidden;
}

.utility-panel[hidden] {
  display: none !important;
}

.utility-panel.open {
  opacity: 1;
  visibility: visible;
  transform: translateY(-50%) translateX(0);
}

/* Header customizations to match the function colors */
.utility-panel.a11y-panel .a11y-panel-header {
  background: linear-gradient(135deg, #0d5f58, #0f766e);
}
.utility-panel.stats-panel .stats-panel-header {
  background: linear-gradient(135deg, #1e40af, #2563eb);
}
.utility-panel.whatsapp-panel .wa-header {
  background: #075E54;
}
.utility-panel.emergency-panel .emergency-header {
  background: linear-gradient(135deg, #991b1b, #dc2626);
}

/* Ensure body contents scroll if overflow */
.utility-panel .a11y-panel-body,
.utility-panel .stats-panel-body,
.utility-panel .wa-body,
.utility-panel .emergency-body {
  overflow-y: auto;
  max-height: calc(85vh - 55px);
}

/* Mobile Responsive Bottom Dock & Sheet Styles */
@media (max-width: 768px) {
  body {
    padding-bottom: 55px;
  }

  .side-utility-dock {
    left: 0;
    top: auto;
    bottom: 0;
    transform: none;
    width: 100%;
    height: 55px;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.08);
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .dock-buttons {
    flex-direction: row;
    width: 100%;
    height: 100%;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    padding: 0 8px;
    gap: 0;
    justify-content: space-around;
    align-items: center;
  }

  .dock-btn {
    width: 25%;
    height: 100%;
    border-radius: 0;
    box-shadow: none;
    background: transparent !important;
    color: var(--color-text-light);
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 0;
    transform: none !important;
    min-height: auto;
  }

  .dock-btn svg {
    width: 26px; /* larger icon like an app */
    height: 26px;
    transform: none !important;
    padding: 6px 14px;
    border-radius: 18px;
    transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
    box-sizing: content-box;
  }

  /* Keep brand colors on mobile for text / icon */
  .dock-btn.a11y svg { color: #0d41e1; }
  .dock-btn.stats svg { color: #2563eb; }
  .dock-btn.whatsapp svg { color: #25D366; }
  .dock-btn.emergency svg { color: #dc2626; }

  /* Active background capsules using brand colors */
  .dock-btn.a11y.active svg {
    background-color: rgba(13, 65, 225, 0.12);
  }
  .dock-btn.stats.active svg {
    background-color: rgba(37, 99, 235, 0.12);
  }
  .dock-btn.whatsapp.active svg {
    background-color: rgba(37, 211, 102, 0.12);
  }
  .dock-btn.emergency.active svg {
    background-color: rgba(220, 38, 38, 0.12);
  }

  .dock-btn:hover {
    transform: none !important;
    box-shadow: none !important;
  }

  .dock-btn.active {
    background: transparent !important;
    transform: none !important;
    box-shadow: none !important;
  }

  .dock-panels {
    position: fixed;
    left: 0;
    bottom: 55px;
    top: auto;
    width: 100%;
    transform: none;
  }

  .utility-panel {
    position: fixed;
    left: 0;
    bottom: 55px;
    top: auto;
    transform: translateY(100%);
    width: 100%;
    height: auto;
    max-height: 75vh;
    border-radius: 20px 20px 0 0;
    border: none;
    border-top: 1px solid var(--color-border);
    box-shadow: 0 -8px 30px rgba(0, 0, 0, 0.15);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.4s, visibility 0.4s;
  }

  .utility-panel.open {
    transform: translateY(0);
  }

  .utility-panel .a11y-panel-body,
  .utility-panel .stats-panel-body,
  .utility-panel .wa-body,
  .utility-panel .emergency-body {
    max-height: calc(75vh - 55px);
  }
}

/* ==========================================================================
   GALLERY SLIDER (HOMEPAGE ONLY)
   ========================================================================== */
.gallery-slider-wrapper {
  position: relative;
  width: 100%;
  padding: 0 10px;
}

.gallery-slider-track-container {
  overflow: hidden;
  width: 100%;
  border-radius: var(--border-radius-md);
}

/* Override the grid styles only inside the slider wrapper on the homepage */
.gallery-slider-wrapper #gallery-container {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  grid-template-columns: none !important;
  grid-auto-rows: auto !important;
  gap: 1.5rem !important;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
  width: 100%;
  will-change: transform;
  padding: 0.5rem 0;
}

.gallery-slider-wrapper .gallery-item {
  flex: 0 0 calc((100% - 3rem) / 3);
  grid-column: span 1 !important;
  grid-row: span 1 !important;
  height: 280px !important;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-soft);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Hover effect on slider items */
.gallery-slider-wrapper .gallery-item:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-medium);
}

/* Navigation Buttons */
.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border: 1px solid var(--color-border);
  box-shadow: var(--box-shadow-medium);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-primary-dark);
  cursor: pointer;
  z-index: 10;
  transition: all 0.3s ease;
}

.gallery-nav-btn:hover:not(:disabled) {
  background-color: var(--color-primary);
  color: white;
  border-color: var(--color-primary);
  transform: translateY(-50%) scale(1.08);
}

.gallery-nav-btn:active:not(:disabled) {
  transform: translateY(-50%) scale(0.95);
}

.gallery-nav-btn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
  background-color: rgba(255, 255, 255, 0.5);
  color: var(--color-text-muted);
  box-shadow: none;
}

.gallery-nav-btn.prev {
  left: -24px;
}

.gallery-nav-btn.next {
  right: -24px;
}

/* Responsive Overrides */
@media (max-width: 992px) {
  .gallery-slider-wrapper .gallery-item {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    height: 250px !important;
  }
  .gallery-nav-btn.prev {
    left: -12px;
  }
  .gallery-nav-btn.next {
    right: -12px;
  }
}

@media (max-width: 768px) {
  .gallery-slider-wrapper {
    padding: 0;
  }
  .gallery-nav-btn {
    width: 40px;
    height: 40px;
  }
  .gallery-nav-btn.prev {
    left: 8px;
  }
  .gallery-nav-btn.next {
    right: 8px;
  }
}

@media (max-width: 576px) {
  .gallery-slider-wrapper .gallery-item {
    flex: 0 0 100%;
    height: 220px !important;
  }
  .gallery-nav-btn {
    opacity: 0.9;
  }
}

/* ==========================================================================
   MAINTENANCE & MAINTENANCE NOTICE CARD
   ========================================================================== */
.maintenance-notice-container {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 3rem 1rem;
  width: 100%;
}

.maintenance-card {
  background: var(--color-card-bg, #ffffff);
  border: 1px solid var(--color-border, #e5e7eb);
  border-radius: var(--border-radius-md, 12px);
  padding: 2.5rem 2rem;
  max-width: 480px;
  width: 100%;
  text-align: center;
  box-shadow: var(--box-shadow-soft, 0 10px 15px -3px rgba(0, 0, 0, 0.05));
  border-top: 5px solid var(--color-secondary, #07c8f9);
  animation: fadeIn 0.4s ease-out;
}

.maintenance-icon-wrapper {
  width: 56px;
  height: 56px;
  background: rgba(7, 200, 249, 0.08);
  color: var(--color-secondary, #07c8f9);
  border-radius: 50%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 auto 1.25rem auto;
}

.maintenance-icon-svg {
  width: 24px;
  height: 24px;
}

.maintenance-title {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark, #111827);
  margin-bottom: 0.75rem;
}

.maintenance-description {
  font-size: 0.9rem;
  color: var(--color-text-light, #6b7280);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.maintenance-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary, #0d41e1);
  color: #ffffff !important;
  padding: 0.75rem 1.5rem;
  border-radius: var(--border-radius-btn, 8px);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 6px -1px rgba(11, 107, 71, 0.2);
}

.maintenance-btn:hover {
  background: var(--color-primary-dark, #0a5639);
  transform: translateY(-2px);
  box-shadow: 0 6px 12px -1px rgba(11, 107, 71, 0.3);
}

.maintenance-btn-svg {
  width: 16px;
  height: 16px;
}

/* ==========================================================================
   INFOGRAFIS TERPADU DASHBOARD STYLES
   ========================================================================== */

.info-dashboard-container {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 2rem;
  align-items: start;
  margin-top: 1rem;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.info-dashboard-sidebar {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 1.5rem;
  border: 1px solid #e2e8f0;
  position: sticky;
  top: 100px;
  min-width: 0;
  box-sizing: border-box;
}

.info-sidebar-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-primary-dark, #0a5639);
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.info-sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.info-nav-tab {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  width: 100%;
  padding: 0.75rem 1rem;
  border: none;
  background: transparent;
  color: #475569;
  font-weight: 600;
  font-size: 0.95rem;
  text-align: left;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.info-nav-tab:hover {
  background: #f8fafc;
  color: var(--color-primary, #0d41e1);
}

.info-nav-tab.active {
  background: var(--color-primary, #0d41e1);
  color: #ffffff !important;
  box-shadow: 0 4px 10px rgba(11, 107, 71, 0.15);
}

/* Premium Year Selector Dropdown */
.info-year-selector-wrapper {
  margin-bottom: 1.25rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid #e2e8f0;
}
.premium-select {
  width: 100%;
  padding: 0.6rem 2.2rem 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-primary-dark, #0a5639);
  background-color: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}
.premium-select:hover, .premium-select:focus {
  border-color: var(--color-primary, #0d41e1);
  box-shadow: 0 0 0 3px rgba(11, 107, 71, 0.1);
  outline: none;
}

.nav-tab-icon {
  flex-shrink: 0;
  color: inherit;
}

.info-dashboard-content {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.04);
  padding: 2rem;
  border: 1px solid #e2e8f0;
  min-height: 500px;
  min-width: 0;
  width: 100%;
  box-sizing: border-box;
}

.info-tab-panel {
  display: none;
}

.info-tab-panel.active {
  display: block;
  animation: infoFadeIn 0.4s ease-in-out;
}

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

.panel-header-inline {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
  border-bottom: 1px solid #e2e8f0;
  padding-bottom: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.panel-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--color-text-dark, #111827);
  margin: 0;
  line-height: 1.2;
}

.panel-subtitle {
  font-size: 0.9rem;
  color: #64748b;
  margin: 0.25rem 0 0 0;
}

.update-badge {
  background: #f1f5f9;
  color: #475569;
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  border: 1px solid #e2e8f0;
}

.status-badge {
  padding: 0.35rem 0.75rem;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  text-transform: uppercase;
}

.status-badge.realisasi {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.status-badge.rancangan {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

/* Stats Counters */
.stats-counter-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.stats-counter-grid-triple {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
}

.counter-card {
  background: #f8fafc;
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid #e2e8f0;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.counter-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.5rem;
}

.counter-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.counter-icon-box {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #e2e8f0;
  color: #475569;
  font-size: 0.9rem;
}

.counter-value {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text-dark, #111827);
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.counter-value-small {
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-text-dark, #111827);
  margin-bottom: 0.25rem;
  line-height: 1.2;
}

.counter-value-small.surplus {
  color: #10b981;
}

.counter-value-small.deficit {
  color: #ef4444;
}

.counter-subtext {
  font-size: 0.8rem;
  color: #64748b;
  margin: 0;
  line-height: 1.4;
}

.trend-up {
  color: #10b981;
  font-weight: 600;
}

.counter-card.primary {
  border-left: 4px solid var(--color-primary, #0d41e1);
}

.counter-card.secondary {
  border-left: 4px solid var(--color-secondary, #07c8f9);
}

.counter-card.revenue {
  border-left: 4px solid #10b981;
}

.counter-card.expense {
  border-left: 4px solid #ef4444;
}

.counter-card.net {
  border-left: 4px solid #3b82f6;
}

/* Charts Grid */
.dashboard-charts-row {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.chart-card-half {
  flex: 1 1 calc(50% - 0.75rem);
  min-width: 300px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
}

.chart-card-full {
  flex: 1 1 100%;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
}

.chart-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-text-dark, #111827);
  margin: 0 0 1rem 0;
  border-left: 3px solid var(--color-primary, #0d41e1);
  padding-left: 0.5rem;
}

.chart-wrapper-circle {
  height: 220px;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-grow: 1;
}

.gender-custom-legend {
  display: flex;
  justify-content: center;
  gap: 1rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #475569;
}

.color-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.color-dot.male {
  background: var(--color-primary, #0d41e1);
}

.color-dot.female {
  background: var(--color-secondary, #07c8f9);
}

.color-dot.other {
  background: #94a3b8;
}

/* Deep Analysis Box */
.analysis-box {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 10px;
  padding: 1.25rem;
  margin-top: 1.75rem;
}

.analysis-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e40af;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.5rem;
}

.analysis-box p {
  font-size: 0.9rem;
  color: #1e3a8a;
  line-height: 1.6;
  margin: 0;
}

.analysis-box p strong {
  color: #0f172a;
  font-weight: 700;
}

.analysis-box p strong.analysis-highlight {
  color: #0d41e1;
}

/* APBDes Table Accordion */
.apbdes-accordion-section {
  margin-bottom: 1.75rem;
}

.apbdes-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.9rem;
}

.apbdes-data-table th {
  background: #f8fafc;
  padding: 0.75rem 1rem;
  font-weight: 700;
  color: #475569;
  border-bottom: 2px solid #e2e8f0;
}

.apbdes-data-table td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #f1f5f9;
  color: #334155;
  line-height: 1.4;
}

.apbdes-data-table tr.table-category-header {
  background: #f1f5f9;
  font-weight: 700;
}

.apbdes-data-table tr.table-category-header td {
  color: var(--color-text-dark, #111827);
  border-bottom: 2px solid #cbd5e1;
}

.apbdes-data-table tr.table-sub-header {
  background: #f8fafc;
  font-weight: 600;
}

.apbdes-data-table tr.table-sub-header td {
  color: #334155;
  padding-left: 1.5rem;
}

.apbdes-data-table tr.table-sub-row td {
  font-size: 0.85rem;
  color: #64748b;
  padding-left: 2.5rem;
}

.apbdes-notice-box {
  background: #fffbeb;
  border: 1px solid #fde68a;
  border-radius: 8px;
  padding: 1rem;
  margin-top: 1.5rem;
}

.apbdes-notice-box p {
  font-size: 0.85rem;
  color: #92400e;
  line-height: 1.5;
  margin: 0;
}

.download-document-card {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  flex-wrap: wrap;
}

.doc-icon {
  width: 48px;
  height: 48px;
  border-radius: 8px;
  background: #fee2e2;
  color: #ef4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
}

.doc-details {
  flex: 1 1 200px;
}

.doc-details h5 {
  font-size: 1rem;
  font-weight: 700;
  margin: 0 0 0.25rem 0;
  color: var(--color-text-dark, #111827);
}

.doc-details p {
  font-size: 0.85rem;
  color: #64748b;
  margin: 0;
}

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--color-primary, #0d41e1);
  color: #ffffff !important;
  padding: 0.65rem 1.25rem;
  border-radius: 6px;
  font-weight: 600;
  text-decoration: none;
  font-size: 0.85rem;
  transition: all 0.2s;
  box-shadow: 0 2px 4px rgba(11, 107, 71, 0.1);
}

.btn-download:hover {
  background: var(--color-primary-dark, #0a5639);
  transform: translateY(-1px);
}

/* Stunting Section */
.stunting-dashboard-grid {
  display: grid;
  grid-template-columns: 320px 1fr;
  gap: 1.5rem;
  margin-bottom: 1.75rem;
}

.stunting-gauge-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.radial-gauge-container {
  position: relative;
  width: 160px;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 1rem 0;
}

.radial-gauge {
  width: 100%;
  height: 100%;
}

.gauge-bg {
  stroke: #f1f5f9;
}

.gauge-fill {
  stroke: #ef4444;
  stroke-linecap: round;
  transition: stroke-dashoffset 0.8s ease-out;
}

.gauge-center-text {
  position: absolute;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.percent-val {
  font-size: 2rem;
  font-weight: 800;
  color: var(--color-text-dark, #111827);
  line-height: 1;
}

.percent-lbl {
  font-size: 0.72rem;
  color: #64748b;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.25rem;
}

.stunting-badge-status {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.85rem;
  font-weight: 700;
  padding: 0.4rem 0.85rem;
  border-radius: 20px;
}

.stunting-badge-status.clean {
  background: #d1fae5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.stunting-badge-status.warning {
  background: #fef3c7;
  color: #92400e;
  border: 1px solid #fde68a;
}

.stunting-badge-status.alert {
  background: #fee2e2;
  color: #991b1b;
  border: 1px solid #fca5a5;
}

.stunting-preventive-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.who-scale-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.scale-item {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.5rem 0.75rem;
  border-radius: 6px;
  font-size: 0.85rem;
  border: 1px solid transparent;
}

.scale-item.current {
  background: #f8fafc;
  border-color: #cbd5e1;
  font-weight: 600;
}

.scale-range {
  font-weight: 700;
  font-size: 0.9rem;
  width: 60px;
}

.scale-label {
  color: #475569;
}

.prevention-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.prevention-check-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: #475569;
  line-height: 1.4;
}

.prevention-check-list li i {
  margin-top: 0.15rem;
  flex-shrink: 0;
}

/* Bansos Section */
.bansos-grid-layout {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 1.25rem;
}

.bansos-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
}

.bansos-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 12px rgba(0, 0, 0, 0.05);
}

.bansos-card-header {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.75rem;
}

.bansos-icon-box {
  width: 36px;
  height: 36px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
}

.bansos-icon-box.pkh { background-color: #3b82f6; }
.bansos-icon-box.bpnt { background-color: #10b981; }
.bansos-icon-box.blt { background-color: #07c8f9; }
.bansos-icon-box.bst { background-color: #a855f7; }

.bansos-card-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-dark, #111827);
  margin: 0;
}

.bansos-card-desc {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.4;
  margin: 0 0 1rem 0;
  flex-grow: 1;
}

.bansos-card-value {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--color-text-dark, #111827);
}

.bansos-card-value .unit {
  font-size: 0.85rem;
  font-weight: 600;
  color: #64748b;
}

/* IDM Section */
.idm-header-card {
  display: flex;
  gap: 1.5rem;
  background: linear-gradient(135deg, #1e293b, #0f172a);
  border-radius: 12px;
  padding: 1.5rem;
  color: #ffffff;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-around;
  box-shadow: 0 8px 16px rgba(15, 23, 42, 0.15);
}

.idm-score-box,
.idm-status-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.idm-lbl {
  font-size: 0.75rem;
  font-weight: 700;
  color: #94a3b8;
  letter-spacing: 0.1em;
  margin-bottom: 0.5rem;
}

.idm-val {
  font-size: 2.75rem;
  font-weight: 900;
  color: #f59e0b;
  text-shadow: 0 0 15px rgba(245, 158, 11, 0.4);
  line-height: 1;
}

.idm-badge-big {
  font-size: 1.2rem;
  font-weight: 800;
  padding: 0.6rem 1.5rem;
  border-radius: 30px;
  letter-spacing: 0.05em;
  display: inline-flex;
  border: 2px solid transparent;
}

.idm-badge-big.mandiri {
  background: rgba(245, 158, 11, 0.15);
  color: #fbbf24;
  border-color: #f59e0b;
  box-shadow: 0 0 20px rgba(245, 158, 11, 0.3);
}

.idm-badge-big.maju {
  background: rgba(59, 130, 246, 0.15);
  color: #60a5fa;
  border-color: #3b82f6;
}

.idm-badge-big.berkembang {
  background: rgba(16, 185, 129, 0.15);
  color: #34d399;
  border-color: #10b981;
}

.idm-badge-big.tertinggal {
  background: rgba(239, 68, 68, 0.15);
  color: #f87171;
  border-color: #ef4444;
}

.idm-dimensions-description {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.dimension-card {
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1.25rem;
}

.dimension-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-dark, #111827);
  margin: 0 0 0.5rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.dimension-card p {
  font-size: 0.8rem;
  color: #64748b;
  line-height: 1.5;
  margin: 0;
}

/* SDGs Section */
.sdgs-analysis-row {
  display: flex;
  gap: 1.25rem;
  margin-bottom: 1.75rem;
  flex-wrap: wrap;
}

.analysis-half-card {
  flex: 1 1 calc(50% - 0.65rem);
  min-width: 280px;
  border-radius: 10px;
  padding: 1.25rem;
  border: 1px solid transparent;
}

.analysis-half-card.success {
  background: #d1fae5;
  border-color: #a7f3d0;
  color: #065f46;
}

.analysis-half-card.success h5 {
  color: #065f46;
}

.analysis-half-card.priority {
  background: #fee2e2;
  border-color: #fca5a5;
  color: #991b1b;
}

.analysis-half-card.priority h5 {
  color: #991b1b;
}

.analysis-half-card h5 {
  font-size: 0.95rem;
  font-weight: 700;
  margin: 0 0 0.75rem 0;
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.sdgs-analysis-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.sdgs-analysis-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
}

.goal-num {
  width: 20px;
  height: 20px;
  border-radius: 4px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff !important;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
}

.sdgs-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1rem;
}

.sdgs-goal-card {
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  transition: all 0.2s ease;
  position: relative;
  overflow: hidden;
}

.sdgs-goal-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.05);
}

.sdgs-header-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.75rem;
}

.sdgs-number-badge {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 0.9rem;
  font-weight: 700;
}

.sdgs-score-num {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--color-text-dark, #111827);
}

.sdgs-score-num .max-val {
  font-size: 0.7rem;
  color: #94a3b8;
  font-weight: 500;
}

.sdgs-goal-title {
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--color-text-dark, #111827);
  line-height: 1.3;
  margin: 0 0 0.75rem 0;
  flex-grow: 1;
  height: 2.6rem;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.sdgs-progress-track {
  width: 100%;
  height: 6px;
  background: #e2e8f0;
  border-radius: 3px;
  overflow: hidden;
}

.sdgs-progress-bar {
  height: 100%;
  border-radius: 3px;
}

/* SDGs Goal Backgrounds & Goal number colors */
.sdgs-bg-1, .goal-num.color-1 { background-color: #E5243B; }
.sdgs-bg-2, .goal-num.color-2 { background-color: #DDA63A; }
.sdgs-bg-3, .goal-num.color-3 { background-color: #4C9F38; }
.sdgs-bg-4, .goal-num.color-4 { background-color: #C5192D; }
.sdgs-bg-5, .goal-num.color-5 { background-color: #FF3A21; }
.sdgs-bg-6, .goal-num.color-6 { background-color: #26BDE2; }
.sdgs-bg-7, .goal-num.color-7 { background-color: #FCC30B; }
.sdgs-bg-8, .goal-num.color-8 { background-color: #A21942; }
.sdgs-bg-9, .goal-num.color-9 { background-color: #FD6925; }
.sdgs-bg-10, .goal-num.color-10 { background-color: #DD1367; }
.sdgs-bg-11, .goal-num.color-11 { background-color: #FD9D24; }
.sdgs-bg-12, .goal-num.color-12 { background-color: #BF8B2E; }
.sdgs-bg-13, .goal-num.color-13 { background-color: #3F7E44; }
.sdgs-bg-14, .goal-num.color-14 { background-color: #0A97D9; }
.sdgs-bg-15, .goal-num.color-15 { background-color: #56C02B; }
.sdgs-bg-16, .goal-num.color-16 { background-color: #00689D; }
.sdgs-bg-17, .goal-num.color-17 { background-color: #19486A; }
.sdgs-bg-18, .goal-num.color-18 { background-color: #0d41e1; }

/* Responsive adjustments */
@media (max-width: 991px) {
  .info-dashboard-container {
    grid-template-columns: 1fr;
    gap: 1.5rem;
    min-width: 0;
    width: 100%;
    overflow: hidden;
  }
  
  .info-dashboard-sidebar {
    position: relative;
    top: 0;
    padding: 1rem;
    min-width: 0;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    box-sizing: border-box;
  }
  
  .info-sidebar-title {
    display: none;
  }
  
  .info-sidebar-nav {
    display: flex;
    flex-direction: row;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding-bottom: 0.5rem;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    width: 100%;
    max-width: 100%;
    box-sizing: border-box;
  }
  
  .info-sidebar-nav::-webkit-scrollbar {
    height: 4px;
  }
  
  .info-sidebar-nav::-webkit-scrollbar-thumb {
    background: #cbd5e1;
    border-radius: 4px;
  }
  
  .info-nav-tab {
    white-space: nowrap;
    width: auto;
    flex: 0 0 auto;
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
  }

  .info-dashboard-content {
    padding: 1.25rem;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
  }

  .stunting-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .sdgs-cards-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
  }
}

@media (max-width: 767px) {
  .info-dashboard-content {
    padding: 1rem;
  }

  .panel-header-inline {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }

  .panel-title {
    font-size: 1.25rem;
  }

  .stats-counter-grid,
  .stats-counter-grid-triple {
    grid-template-columns: 1fr;
    gap: 1rem;
  }

  .counter-value {
    font-size: 1.75rem;
  }

  .chart-card-half {
    min-width: 100%;
  }

  .bansos-grid-layout {
    grid-template-columns: 1fr;
  }

  .idm-header-card {
    flex-direction: column;
    gap: 1.25rem;
    padding: 1.25rem;
    align-items: center;
  }

  .sdgs-analysis-row {
    flex-direction: column;
  }

  .download-document-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 1rem;
    gap: 1rem;
  }

  .download-document-card .doc-icon {
    margin: 0 auto;
  }

  .download-document-card .btn-download {
    width: 100%;
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .sdgs-cards-grid {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .info-dashboard-content {
    padding: 0.75rem;
  }

  .counter-card {
    padding: 1rem;
  }

  .chart-card-half, .chart-card-full {
    padding: 0.75rem;
  }

  .stunting-gauge-card, .stunting-preventive-card {
    padding: 1rem;
  }
}

/* ==========================================================================
   DOKUMEN DESA & PERATURAN TEMPLATE STYLES
   ========================================================================== */
.document-list-container {
  background: rgba(255, 255, 255, 0.7);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--border-radius-lg);
  padding: 2rem;
  box-shadow: var(--box-shadow-soft);
}

.doc-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

@media (min-width: 992px) {
  .doc-filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.doc-search-wrapper {
  position: relative;
  flex: 1;
  max-width: 100%;
}

@media (min-width: 992px) {
  .doc-search-wrapper {
    max-width: 320px;
  }
}

.doc-search-wrapper .search-icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-light);
  font-size: 0.9rem;
}

.doc-search-wrapper input {
  width: 100%;
  padding: 0.65rem 1rem 0.65rem 2.5rem;
  border: 1px solid var(--color-border);
  border-radius: 30px;
  background: white;
  font-family: var(--font-body);
  font-size: 0.85rem;
  transition: all 0.25s ease;
  box-sizing: border-box;
}

.doc-search-wrapper input:focus {
  outline: none;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(15, 118, 110, 0.12);
}

.doc-filter-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}

.doc-filter-tabs::-webkit-scrollbar {
  display: none;
}

.doc-tab-btn {
  white-space: nowrap;
  padding: 0.5rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: white;
  color: var(--color-text-dark);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.doc-tab-btn:hover {
  background: hsl(var(--primary-hue), 35%, 98%);
  border-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.doc-tab-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.doc-badge-pill {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 4px;
  margin-top: 4px;
  text-transform: uppercase;
}

.badge-perdes { background-color: rgba(13, 65, 225, 0.1); color: #0d41e1; }
.badge-sk { background-color: rgba(37, 99, 235, 0.1); color: #2563eb; }
.badge-laporan { background-color: rgba(7, 200, 249, 0.1); color: #07c8f9; }
.badge-pengumuman { background-color: rgba(220, 38, 38, 0.1); color: #dc2626; }

.btn-download {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background-color: var(--color-primary);
  color: white !important;
  text-decoration: none;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 12px;
  padding: 6px 12px;
  border-radius: var(--border-radius-sm);
  transition: all 0.25s ease;
  box-shadow: 0 2px 4px rgba(15,118,110,0.1);
  border: none;
  cursor: pointer;
}

.btn-download:hover {
  background-color: var(--color-primary-dark);
  transform: translateY(-1px);
  box-shadow: 0 4px 8px rgba(15,118,110,0.2);
}

.no-file-label {
  font-size: 12px;
  color: #94a3b8;
  font-weight: 500;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* ==========================================================================
   PEMBANGUNAN DESA TEMPLATE STYLES
   ========================================================================== */
.pembangunan-list-container {
  width: 100%;
}

.pembangunan-filter-bar {
  display: flex;
  margin-top: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.05);
}

.pembangunan-filter-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  scrollbar-width: none;
}

.pembangunan-filter-tabs::-webkit-scrollbar {
  display: none;
}

.pem-tab-btn {
  white-space: nowrap;
  padding: 0.5rem 1.1rem;
  border: 1px solid var(--color-border);
  border-radius: 20px;
  background: white;
  color: var(--color-text-dark);
  font-family: var(--font-headings);
  font-weight: 600;
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.25s ease;
}

.pem-tab-btn:hover {
  background: hsl(var(--primary-hue), 35%, 98%);
  border-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}

.pem-tab-btn.active {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}

.pembangunan-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  margin-top: 2rem;
}

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

.pembangunan-card {
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-soft);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.pembangunan-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--box-shadow-medium);
}

.pem-card-image-block {
  position: relative;
  height: 220px;
  background: #f1f5f9;
  overflow: hidden;
  width: 100%;
}

.pem-before-after-container {
  display: flex;
  height: 100%;
  width: 100%;
}

.pem-img-half {
  width: 50%;
  position: relative;
  height: 100%;
  overflow: hidden;
}

.pem-img-half:first-child {
  border-right: 2px solid white;
}

.pem-img-half img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pembangunan-card:hover .pem-img-half img {
  transform: scale(1.05);
}

.pem-img-tag {
  position: absolute;
  bottom: 8px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  color: white;
}

.pem-img-tag.before {
  left: 8px;
  background: rgba(220, 38, 38, 0.85);
}

.pem-img-tag.after {
  right: 8px;
  background: rgba(15, 118, 110, 0.85);
}

.pem-single-img-container {
  width: 100%;
  height: 100%;
  position: relative;
}

.pem-single-img-container img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pembangunan-card:hover .pem-single-img-container img {
  transform: scale(1.05);
}

.pem-status-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  font-size: 11px;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: 20px;
  text-transform: uppercase;
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  color: white;
}

.pem-badge-selesai { background-color: #0d41e1; }
.pem-badge-jalan { background-color: #07c8f9; }
.pem-badge-rencana { background-color: #3b82f6; }

.pem-card-body {
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.pem-card-meta {
  font-size: 13px;
  color: #64748b;
  margin-bottom: 8px;
  font-weight: 500;
}

.pem-meta-divider {
  margin: 0 6px;
  color: #cbd5e1;
}

.pem-card-title {
  font-family: var(--font-headings);
  font-size: 19px;
  font-weight: 800;
  margin: 0 0 10px 0;
  color: var(--color-text-dark);
  line-height: 1.4;
}

.pem-card-desc {
  font-size: 14px;
  color: #475569;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.pem-progress-wrapper {
  margin-top: auto;
  margin-bottom: 1.25rem;
}

.pem-progress-header {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  margin-bottom: 6px;
}

.pem-progress-label {
  font-weight: 600;
  color: #555;
}

.pem-progress-val {
  font-weight: 800;
  color: var(--color-primary-dark);
}

.pem-progress-bg {
  height: 8px;
  background: #e2e8f0;
  border-radius: 4px;
  overflow: hidden;
  width: 100%;
}

.pem-progress-bar {
  height: 100%;
  background: linear-gradient(90deg, var(--color-primary), var(--color-primary-light));
  border-radius: 4px;
  transition: width 0.8s ease-in-out;
}

.pem-progress-bar-inner {
  height: 100%;
  background: var(--color-primary);
  width: 0;
  transition: width 0.8s ease-in-out;
}

.pem-finance-block {
  display: flex;
  justify-content: space-between;
  border-top: 1px solid rgba(0,0,0,0.06);
  padding-top: 1rem;
  font-size: 13px;
}

.pem-finance-item {
  display: flex;
  flex-direction: column;
}

.pem-finance-item:last-child {
  text-align: right;
}

.pem-fin-label {
  color: #888;
  font-size: 11px;
  text-transform: uppercase;
  font-weight: 600;
  margin-bottom: 2px;
}

.pem-fin-val {
  font-weight: 800;
  color: var(--color-text-dark);
}

.pem-finance-item:last-child .pem-fin-val {
  color: var(--color-primary-dark);
}

/* ==========================================================================
   HOMEPAGE TEASER PEKERJAAN (PREVIEW BERANDA)
   ========================================================================== */
.pembangunan-teaser-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

@media (max-width: 992px) {
  .pembangunan-teaser-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .pembangunan-teaser-grid {
    grid-template-columns: 1fr;
  }
}

.pembangunan-teaser-card {
  background: white;
  border-radius: var(--border-radius-md);
  box-shadow: var(--box-shadow-soft);
  border: 1px solid var(--color-border);
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pembangunan-teaser-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--box-shadow-medium);
}

.pem-teaser-img-wrapper {
  position: relative;
  height: 180px;
  background: #f1f5f9;
  overflow: hidden;
}

.pem-teaser-img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.pembangunan-teaser-card:hover .pem-teaser-img-wrapper img {
  transform: scale(1.05);
}

.pem-teaser-body {
  padding: 1.25rem;
}

/* ==========================================================================
   HOMEPAGE SAMBUTAN KEPALA DESA
   ========================================================================== */
.kades-greeting-section {
  background-color: var(--color-bg-light);
}

.about-section {
  background-color: var(--color-bg-light);
}

.kades-visual-stack {
  position: relative;
  height: 480px;
  max-width: 380px;
  margin: 0 auto;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 20%, rgba(13, 65, 225, 0.08) 100%);
  border-radius: var(--border-radius-lg);
  overflow: visible;
  display: flex;
  align-items: flex-end;
  justify-content: center;
}

/* Decorative background circle behind Kades head */
.kades-visual-stack::before {
  content: '';
  position: absolute;
  top: 15%;
  left: 50%;
  transform: translate(-50%, 0);
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, hsla(var(--primary-hue), 80%, 45%, 0.12) 0%, hsla(var(--secondary-hue), 80%, 50%, 0) 70%);
  z-index: 0;
  border: 1px dashed rgba(13, 65, 225, 0.2);
}

.kades-image {
  width: auto;
  height: 105%; /* 3D cutout pop-out effect at the top */
  max-width: 100%;
  object-fit: contain;
  z-index: 1;
  filter: drop-shadow(0 15px 30px rgba(0, 0, 0, 0.15));
  transition: transform 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
  transform-origin: bottom center;
}

.kades-visual-stack:hover .kades-image {
  transform: translateY(-5px) scale(1.03);
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.22));
}

/* Glassmorphism Badge under Kades visual */
.kades-badge-glass {
  position: absolute;
  bottom: -20px;
  left: 50%;
  transform: translateX(-50%);
  width: 90%;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  padding: 0.8rem 1.4rem;
  border-radius: var(--border-radius-md);
  text-align: center;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
  pointer-events: none;
  z-index: 2;
}

.kades-badge-name {
  display: block;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--color-primary-dark);
}

.kades-badge-role {
  display: block;
  font-size: 0.8rem;
  color: var(--color-secondary-dark, var(--color-primary));
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Text Content Area */
.kades-greeting-quote {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--color-text-dark);
  font-weight: 500;
  position: relative;
  padding-left: 2rem;
  border-left: 4px solid var(--color-secondary);
  margin-bottom: 1.5rem;
  font-style: italic;
}

.kades-greeting-text {
  font-size: 1.05rem;
  line-height: 1.65;
  color: var(--color-text-light);
  margin-bottom: 2rem;
}

@media (max-width: 768px) {
  .kades-greeting-section .grid-two-columns {
    display: grid;
    grid-template-columns: 125px 1fr;
    gap: 1rem;
    align-items: flex-start;
  }

  .kades-visual-stack {
    height: 180px;
    max-width: 125px;
    margin: 0;
    border-radius: 12px;
  }
  
  .kades-visual-stack::before {
    width: 90px;
    height: 90px;
    top: 15%;
  }

  .kades-image {
    height: 105%;
    filter: drop-shadow(0 10px 20px rgba(0, 0, 0, 0.12));
  }
  
  .kades-badge-glass {
    padding: 0.3rem 0.5rem;
    width: 95%;
    bottom: -12px;
    border-radius: 8px;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.06);
  }
  
  .kades-badge-name {
    font-size: 0.68rem;
  }
  
  .kades-badge-role {
    font-size: 0.5rem;
    margin-top: 1px;
  }
  
  .kades-greeting-quote {
    font-size: 0.85rem;
    padding-left: 0.75rem;
    border-left-width: 3px;
    line-height: 1.45;
    margin-bottom: 0.75rem;
  }
  
  .kades-greeting-text {
    font-size: 0.82rem;
    line-height: 1.45;
    margin-bottom: 1rem;
  }
  
  .kades-text-content .section-title {
    font-size: 1.15rem !important;
    margin-bottom: 0.5rem !important;
    line-height: 1.25;
  }

  .kades-text-content .section-subtitle {
    font-size: 0.65rem;
    letter-spacing: 0.1em;
    margin-bottom: 0.25rem;
    display: inline-block;
  }

  .kades-text-content .btn {
    font-size: 0.75rem;
    padding: 0.55rem 0.85rem;
    width: auto;
    display: inline-flex;
    justify-content: center;
  }
}

/* ==========================================================================
   HALAMAN LEMBAGA DESA (v1.7.4)
   Grid kartu tugas/fungsi, daftar dasar hukum, coming soon card, 10 Program Pokok PKK
   ========================================================================== */

/* ---- Grid Kartu Lembaga ---- */
.lembaga-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.lembaga-card {
  background: var(--color-card-bg);
  border-radius: var(--border-radius-lg);
  padding: 2rem 1.75rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.lembaga-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-elevated);
}

.lembaga-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.lembaga-icon-wrap i {
  font-size: 1.4rem;
  color: #fff;
}

.lembaga-card-title {
  font-family: var(--font-headings);
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-text-dark);
  line-height: 1.3;
  margin: 0;
}

.lembaga-card-desc {
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--color-text-light);
  line-height: 1.65;
  margin: 0;
}

/* ---- Daftar Dasar Hukum ---- */
.hukum-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-top: 2rem;
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

.hukum-item {
  display: flex;
  align-items: flex-start;
  gap: 1.25rem;
  background: var(--color-card-bg);
  border-radius: var(--border-radius-lg);
  padding: 1.25rem 1.5rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-card);
  transition: border-color 0.2s;
}

.hukum-item:hover {
  border-color: var(--color-primary);
}

.hukum-badge {
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-headings);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 0.3rem 0.65rem;
  border-radius: 6px;
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: 0.02em;
  margin-top: 2px;
}

.hukum-detail strong {
  font-family: var(--font-headings);
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-text-dark);
  display: block;
  margin-bottom: 0.4rem;
}

.hukum-detail p {
  font-family: var(--font-body);
  font-size: 0.88rem;
  color: var(--color-text-light);
  line-height: 1.6;
  margin: 0;
}

/* ---- Coming Soon Card ---- */
.coming-soon-card {
  background: var(--color-card-bg);
  border-radius: var(--border-radius-xl);
  padding: 4rem 2rem;
  text-align: center;
  border: 2px dashed var(--color-border);
  max-width: 560px;
  margin: 2rem auto 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

.coming-soon-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: linear-gradient(135deg, hsla(var(--primary-hue), 89%, 47%, 0.12), hsla(var(--primary-hue), 89%, 47%, 0.05));
  display: flex;
  align-items: center;
  justify-content: center;
}

.coming-soon-icon i {
  font-size: 2rem;
  color: var(--color-primary);
}

.coming-soon-title {
  font-family: var(--font-headings);
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--color-text-dark);
  margin: 0;
}

.coming-soon-desc {
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--color-text-light);
  line-height: 1.65;
  max-width: 420px;
  margin: 0;
}

.coming-soon-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: linear-gradient(135deg, var(--color-primary), var(--color-secondary));
  color: #fff;
  font-family: var(--font-headings);
  font-size: 0.82rem;
  font-weight: 700;
  padding: 0.4rem 1.1rem;
  border-radius: 50px;
  letter-spacing: 0.04em;
  animation: pulse-glow 2.5s ease-in-out infinite;
}

@keyframes pulse-glow {
  0%, 100% { box-shadow: 0 0 0 0 rgba(13, 65, 225, 0.3); }
  50%       { box-shadow: 0 0 0 10px rgba(13, 65, 225, 0); }
}

/* ---- 10 Program Pokok PKK ---- */
.program-pokok-grid {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 2rem;
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}

.program-pokok-item {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  background: var(--color-card-bg);
  border-radius: var(--border-radius-lg);
  padding: 1rem 1.25rem;
  border: 1px solid var(--color-border);
  transition: transform 0.2s, box-shadow 0.2s;
}

.program-pokok-item:hover {
  transform: translateX(6px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-primary);
}

.program-nomor {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--color-primary);
  color: #fff;
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.program-content {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.program-icon-sm {
  font-size: 1.1rem;
  color: var(--color-primary);
  margin-top: 3px;
  flex-shrink: 0;
}

.program-content strong {
  font-family: var(--font-headings);
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--color-text-dark);
  display: block;
  margin-bottom: 0.2rem;
}

.program-content p {
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-text-light);
  line-height: 1.55;
  margin: 0;
}

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

@media (max-width: 600px) {
  .lembaga-grid {
    grid-template-columns: 1fr;
  }
  .hukum-item {
    flex-direction: column;
    gap: 0.75rem;
  }
  .program-pokok-item {
    flex-wrap: wrap;
  }
}

/* ==========================================================================
   ORG CHART — HTML/CSS (menggantikan Mermaid) v1.7.4
   ========================================================================== */

.org-chart {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  padding: 2rem 1rem;
  overflow-x: auto;
}

/* Garis vertikal penghubung antar level */
.org-connector-v {
  width: 2px;
  height: 28px;
  background: var(--color-border);
  flex-shrink: 0;
}

/* Level wrapper */
.org-level {
  display: flex;
  justify-content: center;
  align-items: flex-start;
  gap: 0.75rem;
  position: relative;
}

/* Level dengan banyak node (row) — tambahkan garis horizontal di atas */
.org-level--row {
  flex-wrap: wrap;
  gap: 0.75rem;
  width: 100%;
  justify-content: center;
  position: relative;
  padding-top: 0;
}

/* Garis horizontal penghubung di atas row multi-node */
.org-level--row::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 10%;
  right: 10%;
  height: 2px;
  background: var(--color-border);
}

/* Level dusun — lebih sempit */
.org-level--narrow {
  max-width: 500px;
  width: 100%;
}
.org-level--narrow::before {
  left: 20%;
  right: 20%;
}

/* Node dasar */
.org-node {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.7rem 1rem;
  border-radius: 10px;
  min-width: 130px;
  max-width: 175px;
  text-align: center;
  position: relative;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  transition: transform 0.2s, box-shadow 0.2s;
}

.org-node:hover {
  transform: translateY(-3px);
  box-shadow: 0 6px 18px rgba(0,0,0,0.14);
}

/* Garis kecil ke atas (dari node ke garis horisontal) */
.org-level--row .org-node::before {
  content: '';
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  width: 2px;
  height: 14px;
  background: var(--color-border);
}

/* Teks jabatan */
.org-jabatan {
  font-family: var(--font-body);
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  opacity: 0.85;
  line-height: 1.3;
  margin-bottom: 0.3rem;
}

/* Teks nama */
.org-nama {
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 700;
  line-height: 1.3;
}

/* Kepala Desa — biru primer */
.org-node--kades {
  background: var(--color-primary);
  color: #fff;
  min-width: 170px;
  padding: 0.9rem 1.4rem;
  border-radius: 12px;
  box-shadow: 0 6px 20px rgba(13, 65, 225, 0.35);
}

/* Sekretaris Desa — hijau */
.org-node--sekdes {
  background: #28a745;
  color: #fff;
  min-width: 170px;
  padding: 0.85rem 1.3rem;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(40, 167, 69, 0.3);
}

/* Kasi — biru teal */
.org-node--kasi {
  background: #17a2b8;
  color: #fff;
  border-radius: 10px;
}

/* Kaur — teal lebih gelap */
.org-node--kaur {
  background: #0e8fa6;
  color: #fff;
  border-radius: 10px;
}

/* Kadus — coklat hangat */
.org-node--dusun {
  background: #c79a5a;
  color: #fff;
  border-radius: 10px;
}

/* ---- Responsive org-chart ---- */
@media (max-width: 768px) {
  .org-level--row {
    gap: 0.5rem;
  }
  .org-node {
    min-width: 100px;
    max-width: 140px;
    padding: 0.6rem 0.7rem;
  }
  .org-jabatan {
    font-size: 0.62rem;
  }
  .org-nama {
    font-size: 0.72rem;
  }
  .org-node--kades,
  .org-node--sekdes {
    min-width: 150px;
  }
  .org-level--row::before {
    left: 5%;
    right: 5%;
  }
}

@media (max-width: 480px) {
  .org-level--row {
    gap: 0.4rem;
  }
  .org-node {
    min-width: 90px;
    max-width: 120px;
  }
}
