/*
Theme Name: Desa Salo Palai
Theme URI: http://desa-salo-palai.test
Author: Antigravity AI
Description: Custom premium theme for Portal Desa Salo Palai.
Version: 1.0.0
Text Domain: desa-salo-palai
*/
/* ==========================================================================
   DESIGN SYSTEM & VARIABLES
   ========================================================================== */
:root {
  /* Colors */
  --primary-hue: 156; /* Emerald/Teal themed for Government/Nature vibe */
  --color-primary: hsl(var(--primary-hue), 70%, 26%);       /* Deep Gov Emerald */
  --color-primary-light: hsl(var(--primary-hue), 60%, 40%);
  --color-primary-dark: hsl(var(--primary-hue), 80%, 15%);
  --color-secondary: hsl(38, 75%, 52%);                     /* Warm Gold Accent */
  --color-secondary-dark: hsl(38, 75%, 42%);
  --color-text-dark: hsl(210, 30%, 15%);                    /* Charcoal Slate */
  --color-text-light: hsl(210, 15%, 45%);                   /* Grayish Slate */
  --color-bg-light: hsl(150, 15%, 98%);                     /* Cool White */
  --color-bg-card: hsl(0, 0%, 100%);
  --color-border: hsl(210, 14%, 90%);
  --color-glass-bg: hsla(0, 0%, 100%, 0.75);
  --color-glass-border: hsla(0, 0%, 100%, 0.4);
  
  /* 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.5rem;
}

.nav-item {
  position: relative;
}

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

.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 {
  background-color: var(--color-primary);
  color: white !important;
  padding: 0.5rem 1.2rem;
  border-radius: var(--border-radius-sm);
  box-shadow: 0 4px 10px hsla(var(--primary-hue), 70%, 26%, 0.15);
}

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

.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: center;
  color: white;
  text-align: center;
  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-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at center, transparent 40%, rgba(0, 0, 0, 0.4) 100%);
  z-index: 1;
}

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

.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: auto;
}

.hero-buttons {
  display: flex;
  gap: 1rem;
  justify-content: center;
}

.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 SECTION
   ========================================================================== */
.news-section {
  position: relative;
}

.news-bg-light {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: hsl(150, 20%, 96%);
  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 {
  font-family: var(--font-headings);
  color: hsla(0, 0%, 100%, 0.5);
  font-weight: 600;
}

/* 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;
  }
  .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 0.5rem;
  }
  .hero-buttons {
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
  }
  .hero-buttons .btn { width: 100%; max-width: 320px; }
  .scroll-indicator { display: none; }

  /* === 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: 2rem;
    padding-bottom: 2rem;
  }
  .info-col { grid-column: unset; }
  .footer-about-text { font-size: 0.9rem; }
  .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/Quicklink */
.profile-nav-card {
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid hsla(var(--primary-hue), 70%, 26%, 0.08);
  border-radius: var(--border-radius-md);
  padding: 1.5rem;
  box-shadow: 0 10px 30px hsla(var(--primary-hue), 30%, 15%, 0.03), var(--box-shadow-soft);
}
.profile-nav-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.profile-nav-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  font-weight: 600;
  color: var(--color-text-light);
  padding: 0.65rem 1rem;
  border-radius: var(--border-radius-sm);
  position: relative;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
.profile-nav-link::before {
  content: '';
  position: absolute;
  left: 0;
  top: 25%;
  height: 50%;
  width: 3px;
  background-color: var(--color-primary);
  border-radius: 2px;
  transform: scaleY(0);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), height 0.25s cubic-bezier(0.16, 1, 0.3, 1), top 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}
.profile-nav-link:hover {
  color: var(--color-primary);
  background-color: hsla(var(--primary-hue), 70%, 26%, 0.04);
  transform: translateX(6px);
}
.profile-nav-link.active {
  color: var(--color-primary-dark);
  background-color: hsla(var(--primary-hue), 70%, 26%, 0.08);
  font-weight: 700;
}
.profile-nav-link.active::before {
  transform: scaleY(1);
  height: 60%;
  top: 20%;
}
.profile-nav-link svg {
  transition: transform 0.3s ease, color 0.3s ease;
  color: var(--color-text-light);
}
.profile-nav-link:hover svg,
.profile-nav-link.active svg {
  color: var(--color-primary);
  transform: scale(1.1);
}

/* 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(150, 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;
}

#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);
  }
  #data-umum, #potensi, #visi-misi, #sejarah, #perkembangan, #ekonomi {
    scroll-margin-top: 140px;
  }
  .profile-nav-card {
    position: sticky;
    top: 68px;
    z-index: 90;
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    margin-bottom: 1.5rem;
    padding: 0.6rem 1rem;
    border-radius: var(--border-radius-md);
    border: 1px solid hsla(var(--primary-hue), 70%, 26%, 0.08);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.05);
  }
  .profile-nav-card h4 {
    display: none;
  }
  /* Sidebar jadi horizontal scroll list di tablet dan HP */
  .profile-nav-list {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0.5rem;
    padding-bottom: 4px;
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
  .profile-nav-list::-webkit-scrollbar {
    display: none;
  }
  .profile-nav-link {
    font-size: 0.78rem;
    padding: 0.45rem 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.02);
    transition: all 0.25s ease;
    position: relative;
  }
  .profile-nav-link::before {
    display: none !important;
  }
  .profile-nav-link svg {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
    transition: transform 0.25s ease;
  }
  .profile-nav-link:hover,
  .profile-nav-link.active {
    color: white !important;
    background: var(--color-primary) !important;
    border-color: var(--color-primary) !important;
    box-shadow: 0 4px 12px hsla(var(--primary-hue), 70%, 26%, 0.25) !important;
  }
  .profile-nav-link:hover svg,
  .profile-nav-link.active svg {
    color: white !important;
  }
  .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-nav-link {
    font-size: 0.72rem;
    padding: 0.35rem 0.55rem;
  }
  .profile-nav-link 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);
}

.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;
}

.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 {
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

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

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

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

.recent-news-meta {
  font-size: 0.8rem;
  color: var(--color-text-light);
  margin-top: 0.25rem;
}

@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(223, 161, 39, 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(3, minmax(0, 1fr));
  gap: 1.5rem;
}

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

@media (max-width: 768px) {
  .quick-access-grid {
    grid-template-columns: 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: 16px;
  padding: 1.5rem;
  display: flex;
  align-items: center;
  gap: 1.25rem;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  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: 16px;
  border: 2px solid transparent;
  transition: border-color 0.3s ease;
  pointer-events: none;
}

.quick-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
  background: #ffffff;
}

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

.quick-icon-box {
  width: 54px;
  height: 54px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  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(223, 161, 39, 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.15rem;
  font-weight: 700;
  color: var(--color-primary-dark);
  margin: 0 0 0.4rem 0;
}

.quick-info p {
  font-size: 0.8rem;
  color: var(--color-text-light);
  line-height: 1.4;
  margin: 0;
}

.quick-arrow {
  font-size: 0.9rem;
  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);
}

/* 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(223, 161, 39, 0.15);
  color: #c9880f;
  border: 1px solid rgba(223, 161, 39, 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;
}
.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;
  }
}

@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);
  }
}

@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: 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;
}
.a11y-panel-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-headings);
  font-weight: 700;
  font-size: 0.85rem;
}
.a11y-close-btn {
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
  line-height: 1;
}
.a11y-close-btn:hover { background: rgba(255,255,255,0.35); }
.a11y-close-btn:focus { outline: 2px solid var(--color-secondary); }

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

/* Group */
.a11y-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border);
}
.a11y-group:last-of-type { border-bottom: none; padding-bottom: 0; }
.a11y-group-label {
  font-family: var(--font-headings);
  font-size: 0.7rem;
  font-weight: 700;
  color: var(--color-primary);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

/* Font Size Buttons */
.a11y-btn-row {
  display: flex;
  gap: 0.4rem;
}
.a11y-action-btn {
  flex: 1;
  padding: 0.5rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  background: var(--color-bg-light);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  color: var(--color-text-dark);
  min-height: 40px;
}
.a11y-action-btn:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: white;
}
.a11y-action-btn.active-size {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
}
.a11y-action-btn:focus { outline: 2px solid var(--color-secondary); outline-offset: 2px; }

/* Toggle Options */
.a11y-btn-col { display: flex; flex-direction: column; gap: 0.35rem; }
.a11y-toggle-option {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.75rem;
  border: 1.5px solid var(--color-border);
  border-radius: var(--border-radius-sm);
  background: var(--color-bg-light);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 0.82rem;
  color: var(--color-text-dark);
  text-align: left;
  transition: all 0.2s ease;
  width: 100%;
}
.a11y-toggle-option:hover {
  background: hsl(156, 60%, 95%);
  border-color: var(--color-primary-light);
  color: var(--color-primary-dark);
}
.a11y-toggle-option[aria-pressed="true"] {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  color: white;
}
.a11y-toggle-option:focus { outline: 2px solid var(--color-secondary); outline-offset: 2px; }
.a11y-opt-icon { font-size: 1rem; width: 20px; text-align: center; flex-shrink: 0; }

/* TTS Controls */
.a11y-tts-controls { display: flex; gap: 0.4rem; }
.a11y-tts-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.4rem;
  padding: 0.55rem 0.5rem;
  border: 1.5px solid var(--color-primary);
  border-radius: var(--border-radius-sm);
  background: var(--color-primary);
  color: white;
  font-family: var(--font-headings);
  font-size: 0.8rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}
.a11y-tts-btn:hover:not(:disabled) {
  background: var(--color-primary-dark);
  border-color: var(--color-primary-dark);
  transform: translateY(-1px);
}
.a11y-tts-btn.secondary {
  background: transparent;
  color: var(--color-text-light);
  border-color: var(--color-border);
}
.a11y-tts-btn.secondary:hover:not(:disabled) {
  background: #e74c3c; border-color: #e74c3c; color: white;
}
.a11y-tts-btn:disabled { opacity: 0.45; cursor: not-allowed; }
.a11y-tts-btn:focus { outline: 2px solid var(--color-secondary); outline-offset: 2px; }
.a11y-tts-note {
  font-size: 0.7rem;
  color: var(--color-text-light);
  line-height: 1.4;
  font-style: italic;
  margin-top: 0.35rem;
}

/* Reset All */
.a11y-reset-all-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.6rem;
  background: transparent;
  border: 1.5px dashed var(--color-border);
  border-radius: var(--border-radius-sm);
  color: var(--color-text-light);
  font-family: var(--font-body);
  font-size: 0.8rem;
  cursor: pointer;
  transition: all 0.2s ease;
}
.a11y-reset-all-btn:hover { border-color: #e74c3c; color: #e74c3c; background: rgba(231,76,60,0.05); }
.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.6rem 1rem;
  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(15, 118, 110, 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: #0f766e;
}
.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: #0f766e; }
  .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(15, 118, 110, 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, #dfa127);
  animation: fadeIn 0.4s ease-out;
}

.maintenance-icon-wrapper {
  width: 56px;
  height: 56px;
  background: rgba(223, 161, 39, 0.08);
  color: var(--color-secondary, #dfa127);
  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, #0b6b47);
  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;
}

