/* ============================================================
   MODERN HOME PAGE — SIAPDESA 2026
   Professional UI/UX Enhancement
   ============================================================ */

/* ── DESIGN TOKENS ─────────────────────────────────────── */
:root {
  --clr-primary: #2ecc9a;
  --clr-secondary: #1bb0c4;
  --clr-accent: #f59e0b;
  --clr-danger: #ef4444;
  --clr-text: #1e293b;
  --clr-muted: #64748b;
  --clr-surface: #ffffff;
  --clr-bg: #f0fdf8;
  --clr-border: #e2e8f0;
  --radius-card: 24px;
  --radius-btn: 50px;
  --shadow-sm: 0 4px 16px rgba(46, 204, 154, 0.12);
  --shadow-md: 0 12px 36px rgba(46, 204, 154, 0.18);
  --shadow-lg: 0 24px 60px rgba(46, 204, 154, 0.22);
  --transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── PARTICLES BACKGROUND ──────────────────────────────── */
#particles-hero {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}

/* ── HERO SECTION ──────────────────────────────────────── */
.modern-hero {
  background: linear-gradient(135deg, #0d9a6a 0%, #0e7fa6 60%, #0b5a8c 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.modern-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 10% 10%, rgba(255, 255, 255, 0.12) 0%, transparent 60%), radial-gradient(ellipse 60% 80% at 90% 80%, rgba(255, 255, 255, 0.08) 0%, transparent 60%);
  z-index: 1;
}

/* Animated mesh blobs */
.hero-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.25;
  z-index: 0;
  animation: blobFloat 8s ease-in-out infinite alternate;
}
.hero-blob-1 {
  width: 520px;
  height: 520px;
  background: #47da96;
  top: -120px;
  left: -100px;
  animation-delay: 0s;
}
.hero-blob-2 {
  width: 400px;
  height: 400px;
  background: #39bdc4;
  bottom: -60px;
  right: -80px;
  animation-delay: 3s;
}
.hero-blob-3 {
  width: 260px;
  height: 260px;
  background: #f59e0b;
  top: 40%;
  left: 40%;
  animation-delay: 5s;
}
@keyframes blobFloat {
  from {
    transform: translate(0, 0) scale(1);
  }
  to {
    transform: translate(30px, 20px) scale(1.08);
  }
}

/* Floating rings */
.hero-ring {
  position: absolute;
  border-radius: 50%;
  border: 2px solid rgba(255, 255, 255, 0.12);
  animation: ringPulse 6s ease-in-out infinite;
  z-index: 0;
}
.hero-ring-1 {
  width: 320px;
  height: 320px;
  top: -60px;
  right: 10%;
  animation-delay: 0s;
}
.hero-ring-2 {
  width: 200px;
  height: 200px;
  top: 20%;
  right: 8%;
  animation-delay: 2s;
}
.hero-ring-3 {
  width: 140px;
  height: 140px;
  bottom: 15%;
  left: 5%;
  animation-delay: 4s;
}
@keyframes ringPulse {
  0%,
  100% {
    transform: scale(1);
    opacity: 0.12;
  }
  50% {
    transform: scale(1.15);
    opacity: 0.22;
  }
}

.modern-hero::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 120px;
  background: linear-gradient(to top, var(--clr-bg), transparent);
  z-index: 2;
}

.hero-content {
  position: relative;
  z-index: 3;
}

/* Typing cursor badge */
.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: var(--radius-btn);
  padding: 6px 18px;
  font-size: 0.85rem;
  font-weight: 600;
  color: #fff;
  letter-spacing: 0.5px;
  margin-bottom: 1.25rem;
}
.hero-badge .badge-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #47da96;
  animation: badgePing 1.8s ease-in-out infinite;
  box-shadow: 0 0 0 0 rgba(71, 218, 150, 0.6);
}
@keyframes badgePing {
  0% {
    box-shadow: 0 0 0 0 rgba(71, 218, 150, 0.6);
  }
  70% {
    box-shadow: 0 0 0 8px rgba(71, 218, 150, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(71, 218, 150, 0);
  }
}

.hero-title {
  font-size: 3.6rem;
  font-weight: 800;
  color: white;
  text-shadow: 0 3px 12px rgba(0, 0, 0, 0.2);
  line-height: 1.15;
  letter-spacing: -0.5px;
}
.hero-title span {
  background: linear-gradient(90deg, #a8ffd8, #6ef2f2);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.45rem;
  color: rgba(255, 255, 255, 0.92);
  margin-bottom: 0.75rem;
  font-weight: 600;
}

.hero-description {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.7;
  margin-bottom: 2.25rem;
}

/* Scroll indicator */
.scroll-indicator {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.75rem;
  letter-spacing: 1px;
  margin-top: 3.5rem;
  animation: scrollBounce 2s ease-in-out infinite;
}
.scroll-indicator .scroll-mouse {
  width: 22px;
  height: 34px;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 20px;
  position: relative;
}
.scroll-indicator .scroll-wheel {
  width: 3px;
  height: 7px;
  background: rgba(255, 255, 255, 0.7);
  border-radius: 2px;
  position: absolute;
  top: 5px;
  left: 50%;
  transform: translateX(-50%);
  animation: scrollWheel 1.4s ease-in-out infinite;
}
@keyframes scrollWheel {
  0% {
    opacity: 1;
    transform: translateX(-50%) translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateX(-50%) translateY(10px);
  }
}
@keyframes scrollBounce {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(5px);
  }
}

/* Hero image floating */
.hero-image-wrapper {
  position: relative;
  z-index: 3;
}
.hero-image {
  filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.25));
  animation: heroFloat 5s ease-in-out infinite;
}
@keyframes heroFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-18px);
  }
}

/* Glassmorphic stat chips on hero */
.hero-stat-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 2rem;
}
.hero-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.14);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 40px;
  padding: 6px 16px;
  font-size: 0.82rem;
  color: #fff;
  font-weight: 600;
  transition: var(--transition);
}
.hero-chip:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-2px);
}
.hero-chip i {
  font-size: 1rem;
  color: #a8ffd8;
}

/* ── HERO BUTTONS ──────────────────────────────────────── */
.modern-btn {
  background: rgba(255, 255, 255, 0.18);
  border: 2px solid rgba(255, 255, 255, 0.35);
  color: white;
  padding: 13px 32px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  transition: var(--transition);
  backdrop-filter: blur(12px);
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  letter-spacing: 0.3px;
}
.modern-btn:hover {
  background: rgba(255, 255, 255, 0.28);
  border-color: rgba(255, 255, 255, 0.55);
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.22);
}

/* ── SECTION WRAPPER ───────────────────────────────────── */
.stats-section {
  background: var(--clr-bg);
  padding: 100px 0 80px;
  position: relative;
}
.stats-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%232ECC9A' fill-opacity='0.04'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
  pointer-events: none;
}

/* ── STATS CARDS ───────────────────────────────────────── */
.stats-card {
  background: var(--clr-surface);
  border-radius: var(--radius-card);
  padding: 40px 36px 36px;
  box-shadow: var(--shadow-sm);
  transition: var(--transition);
  border: 1.5px solid var(--clr-border);
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* Gradient top bar with animated shimmer */
.stats-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 5px;
  background: linear-gradient(90deg, #47da96, #39bdc4, #47da96);
  background-size: 200% 100%;
  border-radius: var(--radius-card) var(--radius-card) 0 0;
  animation: shimmerBar 3s linear infinite;
}
@keyframes shimmerBar {
  0% {
    background-position: -200% 0;
  }
  100% {
    background-position: 200% 0;
  }
}

/* Corner watermark */
.stats-card::after {
  content: "";
  position: absolute;
  bottom: -30px;
  right: -30px;
  width: 120px;
  height: 120px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(71, 218, 150, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.stats-card:hover {
  transform: translateY(-12px) scale(1.01);
  box-shadow: var(--shadow-lg);
  border-color: rgba(71, 218, 150, 0.35);
}

.stats-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text);
  line-height: 1.4;
  margin: 0;
}

/* ── STATS GRID (Anggaran / Realisasi) ─────────────────── */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 20px 0 10px;
}

.stat-item {
  background: var(--clr-bg);
  border-radius: 14px;
  padding: 14px 16px;
  border: 1px solid var(--clr-border);
  transition: var(--transition);
}
.stats-card:hover .stat-item {
  border-color: rgba(71, 218, 150, 0.3);
  background: rgba(71, 218, 150, 0.06);
}

.stat-item h4 {
  font-size: 0.75rem;
  color: var(--clr-muted);
  margin-bottom: 6px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
}

.stat-value {
  font-size: 0.78rem;
  font-weight: 800;
  color: var(--clr-text);
  min-height: 22px;
  word-break: break-all;
}

/* ── STATS IMAGE ───────────────────────────────────────── */
.stats-image {
  width: 100%;
  height: 160px;
  object-fit: contain;
  margin: 16px 0 10px;
  opacity: 0.85;
  transition: var(--transition);
  filter: drop-shadow(0 6px 16px rgba(46, 204, 154, 0.15));
}
.stats-card:hover .stats-image {
  transform: scale(1.06) translateY(-4px);
  opacity: 1;
  filter: drop-shadow(0 12px 28px rgba(46, 204, 154, 0.25));
}

/* ── STATS ICON ────────────────────────────────────────── */
.stats-icon {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(71, 218, 150, 0.14), rgba(57, 189, 196, 0.14));
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: var(--transition);
  border: 1.5px solid rgba(71, 218, 150, 0.22);
  box-shadow: 0 4px 12px rgba(71, 218, 150, 0.12);
}
.stats-card:hover .stats-icon {
  transform: rotate(8deg) scale(1.12);
  background: linear-gradient(135deg, rgba(71, 218, 150, 0.22), rgba(57, 189, 196, 0.22));
  border-color: rgba(71, 218, 150, 0.4);
  box-shadow: 0 8px 24px rgba(71, 218, 150, 0.22);
}

/* ── PERCENTAGE RING DISPLAY ───────────────────────────── */
.percentage-wrapper {
  text-align: center;
  padding: 10px 0 6px;
}
.percentage-wrapper h4 {
  font-size: 0.8rem;
  color: var(--clr-muted);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  font-weight: 700;
  margin-bottom: 8px;
}
.percentage-display {
  font-size: 2.8rem !important;
  font-weight: 900;
  background: linear-gradient(135deg, #2ecc9a, #1bb0c4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -1px;
  transition: var(--transition);
  display: inline-block;
}
.stats-card:hover .percentage-display {
  transform: scale(1.06);
}

/* ── PROGRESS BAR ──────────────────────────────────────── */
.progress-track {
  height: 7px;
  background: var(--clr-border);
  border-radius: 10px;
  overflow: hidden;
  margin: 8px 0 18px;
}
.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, #47da96, #39bdc4);
  border-radius: 10px;
  width: 0%;
  transition: width 1.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* ── CTA BUTTON ────────────────────────────────────────── */
.modern-btn-secondary {
  background: linear-gradient(135deg, #2ecc9a 0%, #1bb0c4 100%);
  color: white;
  border: none;
  padding: 12px 24px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.9rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  position: relative;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(46, 204, 154, 0.3);
  letter-spacing: 0.3px;
  margin-top: auto;
}
.modern-btn-secondary::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.modern-btn-secondary:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 32px rgba(46, 204, 154, 0.4);
  color: white;
}
.modern-btn-secondary:hover::after {
  opacity: 1;
}
.modern-btn-secondary:active {
  transform: translateY(0);
}

/* ── DATA SECTION ──────────────────────────────────────── */
.data-section {
  padding: 80px 0 100px;
  background: linear-gradient(180deg, var(--clr-bg) 0%, #fff 100%);
  position: relative;
}

/* ── SECTION HEADER ────────────────────────────────────── */
.section-title {
  text-align: center;
  margin-bottom: 60px;
}

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: linear-gradient(135deg, rgba(46, 204, 154, 0.12), rgba(27, 176, 196, 0.12));
  border: 1px solid rgba(46, 204, 154, 0.25);
  border-radius: 40px;
  padding: 6px 18px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0d9a6a;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 1rem;
}

.section-title h2 {
  font-size: 2.4rem;
  font-weight: 800;
  color: var(--clr-text);
  margin-bottom: 16px;
  letter-spacing: -0.5px;
}
.section-title h2 span {
  background: linear-gradient(135deg, #2ecc9a, #1bb0c4);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.section-title p {
  font-size: 1.1rem;
  color: var(--clr-muted);
  max-width: 580px;
  margin: 0 auto;
  line-height: 1.7;
}

/* ── DATA CARDS ────────────────────────────────────────── */
.data-card {
  background: var(--clr-surface);
  border-radius: 20px;
  padding: 36px 26px 30px;
  text-align: center;
  transition: var(--transition);
  border: 1.5px solid var(--clr-border);
  height: 100%;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  align-items: center;
}

/* Gradient hover overlay */
.data-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(46, 204, 154, 0.07), rgba(27, 176, 196, 0.07));
  opacity: 0;
  transition: opacity 0.35s;
}
.data-card:hover::before {
  opacity: 1;
}

/* Bottom accent line */
.data-card::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 20%;
  right: 20%;
  height: 3px;
  background: linear-gradient(90deg, #47da96, #39bdc4);
  border-radius: 2px 2px 0 0;
  transform: scaleX(0);
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}
.data-card:hover::after {
  transform: scaleX(1);
}

.data-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 20px 48px rgba(46, 204, 154, 0.18);
  border-color: rgba(46, 204, 154, 0.3);
}

/* Data icon wrapper with glow */
.data-icon-wrapper {
  width: 88px;
  height: 88px;
  background: linear-gradient(135deg, rgba(46, 204, 154, 0.1), rgba(27, 176, 196, 0.1));
  border-radius: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto;
  border: 1.5px solid rgba(46, 204, 154, 0.18);
  transition: var(--transition);
  position: relative;
  z-index: 2;
}
.data-icon-wrapper::before {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 26px;
  background: linear-gradient(135deg, rgba(46, 204, 154, 0.3), rgba(27, 176, 196, 0.3));
  opacity: 0;
  transition: opacity 0.35s;
  z-index: -1;
}
.data-card:hover .data-icon-wrapper::before {
  opacity: 1;
}
.data-card:hover .data-icon-wrapper {
  transform: scale(1.1) rotate(-4deg);
  background: linear-gradient(135deg, rgba(46, 204, 154, 0.18), rgba(27, 176, 196, 0.18));
  box-shadow: 0 8px 24px rgba(46, 204, 154, 0.22);
}

.data-icon {
  width: 58px;
  height: 58px;
  object-fit: contain;
  position: relative;
  z-index: 2;
  transition: var(--transition);
}
.data-card:hover .data-icon {
  transform: scale(1.08);
  filter: drop-shadow(0 4px 10px rgba(46, 204, 154, 0.3));
}

.data-card-body {
  flex: 1;
  position: relative;
  z-index: 2;
  padding: 16px 0 10px;
}
.data-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--clr-text);
  margin-bottom: 10px;
  line-height: 1.4;
}

.data-card p {
  color: var(--clr-muted);
  font-size: 0.9rem;
  line-height: 1.65;
  margin-bottom: 0;
}

.data-card-footer {
  width: 100%;
  position: relative;
  z-index: 2;
  padding-top: 16px;
}

/* ── DATA BUTTON ───────────────────────────────────────── */
.data-btn {
  background: linear-gradient(135deg, #2ecc9a 0%, #1bb0c4 100%);
  color: white;
  border: none;
  padding: 10px 22px;
  border-radius: var(--radius-btn);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.85rem;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(46, 204, 154, 0.28);
  letter-spacing: 0.3px;
}
.data-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), transparent);
  opacity: 0;
  transition: opacity 0.3s;
}
.data-btn:hover {
  transform: translateY(-3px);
  box-shadow: 0 10px 28px rgba(46, 204, 154, 0.38);
  color: white;
}
.data-btn:hover::after {
  opacity: 1;
}
.data-btn:active {
  transform: translateY(0);
}

/* ── ANIMATION CLASSES ─────────────────────────────────── */

/* Pre-animation state — hidden before observer fires */
.pre-animate {
  opacity: 0;
  transform: translateY(28px);
}

/* Triggered by IntersectionObserver */
.animate-in {
  animation: slideInUp 0.65s cubic-bezier(0.4, 0, 0.2, 1) both;
}

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

/* ── LOADING STATES ────────────────────────────────────── */
.spinner-border-sm {
  width: 1rem;
  height: 1rem;
}

.stats-card.loaded {
  animation: cardEntrance 0.6s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}
@keyframes cardEntrance {
  0% {
    transform: translateY(0) scale(0.97);
  }
  60% {
    transform: translateY(-6px) scale(1.015);
  }
  100% {
    transform: translateY(0) scale(1);
  }
}

/* Ripple effect for buttons */
.modern-btn::before,
.modern-btn-secondary::before,
.data-btn::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  background: rgba(255, 255, 255, 0.22);
  border-radius: 50%;
  transform: translate(-50%, -50%);
  transition:
    width 0.45s ease,
    height 0.45s ease;
}
.modern-btn:hover::before,
.modern-btn-secondary:hover::before,
.data-btn:hover::before {
  width: 320px;
  height: 320px;
}

/* Progress bar styling */
.progress-modern {
  height: 8px;
  border-radius: 10px;
  background: #e9ecef;
  overflow: hidden;
}
.progress-modern .progress-bar {
  background: linear-gradient(90deg, #47da96, #39bdc4);
  border-radius: 10px;
  transition: width 0.7s ease;
}

/* ── FLOATING ACTION ITEMS ─────────────────────────────── */
.floating-card {
  position: absolute;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.7);
  border-radius: 16px;
  padding: 12px 18px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.12);
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 4;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--clr-text);
  animation: floatCard 4s ease-in-out infinite;
  white-space: nowrap;
}
.floating-card .fc-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}
@keyframes floatCard {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-8px);
  }
}

/* ── COUNTER ANIMATION ─────────────────────────────────── */
.count-up {
  display: inline-block;
  transition: var(--transition);
}

/* ── TOOLTIP CUSTOM ────────────────────────────────────── */
.modern-tooltip {
  position: absolute;
  background: rgba(30, 41, 59, 0.92);
  color: #fff;
  font-size: 0.76rem;
  padding: 5px 12px;
  border-radius: 8px;
  white-space: nowrap;
  pointer-events: none;
  opacity: 0;
  transform: translateY(-6px);
  transition:
    opacity 0.25s,
    transform 0.25s;
  z-index: 99;
}
.stats-card:hover .modern-tooltip,
.data-card:hover .modern-tooltip {
  opacity: 1;
  transform: translateY(0);
}

/* ── RESPONSIVE ────────────────────────────────────────── */
@media (max-width: 1200px) {
  .hero-title {
    font-size: 3rem;
  }
  .stats-card {
    padding: 36px 28px;
  }
  .data-card {
    padding: 30px 20px;
  }
}

@media (max-width: 992px) {
  .hero-title {
    font-size: 2.75rem;
  }
  .section-title h2 {
    font-size: 2.1rem;
  }
  .stats-section {
    padding: 70px 0;
  }
  .data-section {
    padding: 70px 0;
  }
  .stats-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .stats-card {
    padding: 32px 24px;
  }
  .data-card {
    padding: 30px 20px;
  }
  .floating-card {
    display: none;
  }
}

@media (max-width: 768px) {
  .modern-hero {
    min-height: 85vh;
    text-align: center;
  }
  .hero-title {
    font-size: 2.4rem;
    margin-bottom: 1rem;
  }
  .hero-subtitle {
    font-size: 1.25rem;
  }
  .hero-description {
    font-size: 0.97rem;
  }
  .stats-section {
    padding: 60px 0;
  }
  .data-section {
    padding: 60px 0;
  }
  .stats-card {
    padding: 28px 20px;
  }
  .section-title h2 {
    font-size: 1.9rem;
  }
  .section-title p {
    font-size: 1rem;
  }
  .data-card {
    padding: 28px 18px;
  }
  .data-icon-wrapper {
    width: 72px;
    height: 72px;
    border-radius: 18px;
  }
  .data-icon {
    width: 48px;
    height: 48px;
  }
  .hero-chip {
    font-size: 0.76rem;
    padding: 5px 12px;
  }
  .scroll-indicator {
    display: none;
  }
}

@media (max-width: 576px) {
  .hero-title {
    font-size: 1.9rem;
    letter-spacing: -0.3px;
  }
  .hero-subtitle {
    font-size: 1.1rem;
  }
  .percentage-display {
    font-size: 2.2rem !important;
  }
  .stats-card h3 {
    font-size: 1.05rem;
  }
  .data-card h3 {
    font-size: 1.2rem;
  }
  .modern-btn,
  .modern-btn-secondary,
  .data-btn {
    font-size: 0.9rem;
    padding: 10px 20px;
  }
}

/* Dark mode support */
/* @media (prefers-color-scheme: dark) {
    .stats-section {
        background: #1a1a1a;
    }
    .stats-card {
        background: #2d2d2d;
        border-color: #404040;
    }
    .stats-card h3, 
    .data-card h3 {
        color: #ffffff;
    }
    .stat-value {
        color: #e0e0e0 !important;
    }
    .data-section {
        background: #121212;
    }
    .data-card {
        background: #2d2d2d;
        border-color: #404040;
    }
    .data-card p {
        color: #b0b0b0 !important;
    }
    .section-title h2 {
        color: #ffffff;
    }
    .section-title p {
        color: #b0b0b0;
    }
} */

/* Print styles */
@media print {
  .modern-hero {
    background: white !important;
    color: black !important;
    min-height: auto;
  }
  .hero-title,
  .hero-subtitle,
  .hero-description {
    color: black !important;
  }
  .stats-card,
  .data-card {
    box-shadow: none !important;
    border: 1px solid #ddd !important;
    break-inside: avoid;
  }
  .modern-btn,
  .modern-btn-secondary,
  .data-btn {
    display: none;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  .stats-card,
  .data-card {
    border: 2px solid #000;
  }
  .modern-btn,
  .modern-btn-secondary,
  .data-btn {
    border: 2px solid currentColor;
  }
}

/* Reduced motion support */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}

/* Badge styling */
.bg-gradient-success-info {
  background: linear-gradient(45deg, #47da96 0%, #39bdc4 100%) !important;
  color: white !important;
  font-weight: 600;
  font-size: 0.9rem;
  letter-spacing: 0.5px;
  border: none;
  box-shadow: 0 4px 12px rgba(71, 218, 150, 0.3);
  transition: all 0.3s ease;
}

.bg-gradient-success-info:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(71, 218, 150, 0.4);
}

/* Enhanced section title styling */
.section-title .display-5 {
  background: linear-gradient(45deg, #47da96 0%, #39bdc4 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Improved progress bar for green/blue theme */
.progress-modern .progress-bar {
  background: linear-gradient(90deg, #10b981, #06b6d4, #3b82f6);
  border-radius: 10px;
  transition: width 0.6s ease;
}

/* Stats card enhancements */
.stats-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(5, 150, 105, 0.15);
  box-shadow: 0 8px 32px rgba(5, 150, 105, 0.08);
}

.stats-card:hover {
  background: rgba(255, 255, 255, 1);
  border-color: rgba(5, 150, 105, 0.25);
  box-shadow: 0 12px 40px rgba(5, 150, 105, 0.12);
}

/* Data card enhancements */
.data-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(5, 150, 105, 0.12);
  display: flex;
  flex-direction: column;
  box-shadow: 0 6px 25px rgba(5, 150, 105, 0.06);
}

.data-card:hover {
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 10px 35px rgba(5, 150, 105, 0.12);
}

.data-card-header {
  text-align: center;
}

.data-icon-wrapper {
  width: 100px;
  height: 100px;
  margin: 0 auto;
  border-radius: 20px;
  background: linear-gradient(135deg, #f0fdf4 0%, #f0f9ff 50%, #fafafa 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  border: 2px solid rgba(5, 150, 105, 0.1);
}

.data-icon-wrapper::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: linear-gradient(135deg, rgba(5, 150, 105, 0.15), rgba(8, 145, 178, 0.15));
  opacity: 0;
  transition: opacity 0.3s ease;
}

.data-card:hover .data-icon-wrapper::before {
  opacity: 1;
}

.data-card:hover .data-icon-wrapper {
  transform: translateY(-5px) scale(1.05);
  box-shadow: 0 10px 25px rgba(5, 150, 105, 0.25);
  border-color: rgba(5, 150, 105, 0.3);
}

.data-card-body {
  flex: 1;
  text-align: center;
  padding: 0 10px;
}

.data-card-footer {
  text-align: center;
  margin-top: auto;
  padding-top: 15px;
}

/* Floating animation for hero section */
.hero-image {
  animation: float 6s ease-in-out infinite;
}

@keyframes float {
  0%,
  100% {
    transform: translateY(0px);
  }
  50% {
    transform: translateY(-20px);
  }
}

/* Gradient text for headings */
.gradient-text {
  background: linear-gradient(45deg, #059669, #0284c7);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Enhanced glassmorphism effect */
.glass-effect {
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.18);
}

/* Stats value animation */
.stat-value {
  transition: all 0.3s ease;
}

.stats-card:hover .stat-value {
  transform: scale(1.05);
  color: #047857;
  font-weight: 800;
}

/* Parallax background for sections */
.stats-section {
  position: relative;
  background-attachment: fixed;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(circle at 20% 80%, rgba(16, 185, 129, 0.1) 0%, transparent 50%), radial-gradient(circle at 80% 20%, rgba(6, 182, 212, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

/* Enhanced button ripple effect */
.data-btn {
  position: relative;
  overflow: hidden;
}

.data-btn::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0;
  height: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.3);
  transform: translate(-50%, -50%);
  transition:
    width 0.6s,
    height 0.6s;
}

.data-btn:active::after {
  width: 300px;
  height: 300px;
}

/* Container spacing improvements */
.container {
  padding-left: 20px;
  padding-right: 20px;
}

@media (min-width: 768px) {
  .container {
    padding-left: 30px;
    padding-right: 30px;
  }
}

@media (min-width: 992px) {
  .container {
    padding-left: 15px;
    padding-right: 15px;
  }
}

/* Better spacing for grid columns */
.col-lg-4,
.col-lg-3,
.col-md-6 {
  margin-bottom: 20px;
}

@media (max-width: 768px) {
  .col-lg-4,
  .col-lg-3,
  .col-md-6 {
    margin-bottom: 30px;
  }
}

/* Smooth scroll behavior */
html {
  scroll-behavior: smooth;
}

/* Custom scrollbar */
::-webkit-scrollbar {
  width: 8px;
}

::-webkit-scrollbar-track {
  background: #f8fafc;
}

::-webkit-scrollbar-thumb {
  background: linear-gradient(45deg, #059669 0%, #0891b2 50%, #2563eb 100%);
  border-radius: 10px;
}

::-webkit-scrollbar-thumb:hover {
  background: linear-gradient(45deg, #047857 0%, #0284c7 50%, #1d4ed8 100%);
}

/* ============================================================
   MODERN HEADER — SIAPDESA 2026
   ============================================================ */

.modern-header {
  background: transparent;
  padding: 18px 0;
  transition:
    background 0.4s ease,
    box-shadow 0.4s ease,
    padding 0.4s ease;
  z-index: 1050;
}

/* Scrolled state — triggered by JS adding .header-scrolled or .scrolled-header */
.modern-header.header-scrolled,
.modern-header.scrolled-header {
  background: #ffffff !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 2px 20px rgba(0, 0, 0, 0.08) !important;
  padding: 14px 0;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

/* ── Logo ── */
.mh-logo {
  text-decoration: none;
  transition: opacity 0.2s;
}
.mh-logo:hover {
  opacity: 0.85;
}

.mh-logo-icon {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  transition: background 0.4s;
}
.modern-header.header-scrolled .mh-logo-icon,
.modern-header.scrolled-header .mh-logo-icon {
  background: rgba(13, 154, 106, 0.12);
}
.mh-logo-icon img {
  max-height: 32px;
  max-width: 32px;
  object-fit: contain;
}

.mh-logo-title {
  display: block;
  font-family: "Ubuntu", sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.2;
  transition: color 0.4s;
  letter-spacing: 0.01em;
}
.mh-logo-sub {
  display: block;
  font-size: 0.72rem;
  color: rgba(255, 255, 255, 0.75);
  font-weight: 400;
  transition: color 0.4s;
  margin-top: 1px;
}
.modern-header.header-scrolled .mh-logo-title,
.modern-header.scrolled-header .mh-logo-title {
  color: #0d9a6a;
}
.modern-header.header-scrolled .mh-logo-sub,
.modern-header.scrolled-header .mh-logo-sub {
  color: #475569;
  font-weight: 500;
}

/* ── Nav links ── */
.mh-nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mh-nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 9px 16px;
  border-radius: 50px;
  font-family: "Ubuntu", sans-serif;
  font-size: 0.9rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.95);
  text-decoration: none;
  transition: all 0.25s ease;
  letter-spacing: 0.01em;
}
.mh-nav-link i {
  font-size: 0.95rem;
  opacity: 0.85;
}
.mh-nav-link:hover {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
}
.modern-header.header-scrolled .mh-nav-link,
.modern-header.scrolled-header .mh-nav-link {
  color: #1e293b;
  font-weight: 600;
}
.modern-header.header-scrolled .mh-nav-link i,
.modern-header.scrolled-header .mh-nav-link i {
  opacity: 1;
  color: #0d9a6a;
}
.modern-header.header-scrolled .mh-nav-link:hover,
.modern-header.scrolled-header .mh-nav-link:hover {
  background: rgba(13, 154, 106, 0.08);
  color: #0d9a6a;
}

/* ── Login button ── */
.mh-btn-login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 20px;
  border-radius: 50px;
  font-family: "Ubuntu", sans-serif;
  font-size: 0.875rem;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
  text-decoration: none;
  border: 1.5px solid rgba(255, 255, 255, 0.4);
  transition: all 0.25s ease;
  backdrop-filter: blur(8px);
}
.mh-btn-login:hover {
  background: rgba(255, 255, 255, 0.32);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.7);
  text-decoration: none;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}
.modern-header.header-scrolled .mh-btn-login,
.modern-header.scrolled-header .mh-btn-login {
  background: linear-gradient(135deg, #0d9a6a, #0e7fa6);
  color: #fff;
  border-color: transparent;
}
.modern-header.header-scrolled .mh-btn-login:hover,
.modern-header.scrolled-header .mh-btn-login:hover {
  background: linear-gradient(135deg, #0b8a5e, #0c6f91);
  box-shadow: 0 6px 20px rgba(13, 154, 106, 0.35);
}

/* ── Mobile toggle ── */
.mh-mobile-toggle {
  background: rgba(255, 255, 255, 0.15);
  border: 1.5px solid rgba(255, 255, 255, 0.35);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.3rem;
  cursor: pointer;
  transition: all 0.2s;
  padding: 0;
}
.mh-mobile-toggle:hover {
  background: rgba(255, 255, 255, 0.25);
}
.modern-header.header-scrolled .mh-mobile-toggle,
.modern-header.scrolled-header .mh-mobile-toggle {
  background: rgba(13, 154, 106, 0.1);
  border-color: rgba(13, 154, 106, 0.3);
  color: #0d9a6a;
}

/* ── Mobile Drawer ── */
.mh-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 20px 16px;
  background: rgba(255, 255, 255, 0.97);
  backdrop-filter: blur(20px);
  border-top: 1px solid rgba(13, 154, 106, 0.12);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
}
.mh-mobile-menu.open {
  display: flex;
}
.mh-mobile-menu .mh-nav-link {
  color: #334155 !important;
  padding: 10px 14px;
  border-radius: 12px;
  font-size: 0.95rem;
}
.mh-mobile-menu .mh-nav-link:hover {
  background: rgba(13, 154, 106, 0.08) !important;
  color: #0d9a6a !important;
}
.mh-mobile-menu .mh-btn-login {
  background: linear-gradient(135deg, #0d9a6a, #0e7fa6) !important;
  color: #fff !important;
  border-color: transparent !important;
  justify-content: center;
  padding: 11px 20px;
  border-radius: 12px;
}

/* ── Remove old navbar styles conflict ── */
.modern-header .navbar {
  padding: 0;
}

/* ============================================================
   MODERN FOOTER — SIAPDESA 2026
   ============================================================ */

.modern-footer {
  background: linear-gradient(170deg, #0a2540 0%, #0d3b55 50%, #0f3d2e 100%);
  color: rgba(255, 255, 255, 0.85);
  font-family: "Ubuntu", sans-serif;
  margin-top: 0;
}

/* ── Main area ── */
.mf-main {
  padding: 70px 0 50px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* ── Brand ── */
.mf-brand {
  text-decoration: none;
}
.mf-brand:hover {
  opacity: 0.9;
  text-decoration: none;
}

.mf-brand-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  flex-shrink: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.2);
}
.mf-brand-icon img {
  max-height: 34px;
  max-width: 34px;
  object-fit: contain;
}

.mf-brand-name {
  font-size: 1rem;
  font-weight: 700;
  color: #fff;
  line-height: 1.3;
}
.mf-brand-sub {
  font-size: 0.75rem;
  color: rgba(255, 255, 255, 0.55);
}

.mf-desc {
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.8;
  margin: 0;
}

/* ── Social row ── */
.mf-social-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.mf-social-btn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.18);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.8);
  font-size: 1rem;
  text-decoration: none;
  transition: all 0.25s ease;
}
.mf-social-btn:hover {
  background: var(--clr-primary);
  border-color: var(--clr-primary);
  color: #fff;
  transform: translateY(-3px);
  box-shadow: 0 6px 16px rgba(46, 204, 154, 0.35);
  text-decoration: none;
}

/* ── Headings ── */
.mf-heading {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--clr-primary);
  margin-bottom: 18px;
  position: relative;
  padding-bottom: 10px;
}
.mf-heading::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 30px;
  height: 2px;
  background: var(--clr-primary);
  border-radius: 2px;
}

/* ── Link lists ── */
.mf-links {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.mf-links a {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: all 0.2s ease;
  padding: 2px 0;
}
.mf-links a i {
  font-size: 0.7rem;
  color: var(--clr-primary);
  transition: transform 0.2s ease;
}
.mf-links a:hover {
  color: #fff;
  text-decoration: none;
  padding-left: 4px;
}
.mf-links a:hover i {
  transform: translateX(3px);
}

/* ── Contact list ── */
.mf-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.mf-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
}
.mf-contact-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background: rgba(46, 204, 154, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--clr-primary);
  font-size: 0.9rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.mf-contact-text {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.6;
}
.mf-contact-text a {
  color: rgba(255, 255, 255, 0.75);
  text-decoration: none;
  transition: color 0.2s;
}
.mf-contact-text a:hover {
  color: var(--clr-primary);
  text-decoration: none;
}

/* ── Bottom bar ── */
.mf-bottom {
  padding: 18px 0;
  background: rgba(0, 0, 0, 0.2);
}

.mf-copy {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.45);
}
.mf-copy a {
  color: rgba(255, 255, 255, 0.65);
  text-decoration: none;
  transition: color 0.2s;
}
.mf-copy a:hover {
  color: var(--clr-primary);
}

.mf-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.45);
  text-decoration: none;
  transition: color 0.2s;
  padding: 4px 12px;
  border-radius: 50px;
  border: 1px solid rgba(255, 255, 255, 0.12);
}
.mf-admin-link:hover {
  color: var(--clr-primary);
  border-color: rgba(46, 204, 154, 0.35);
  text-decoration: none;
}

/* ── Responsive footer ── */
@media (max-width: 767px) {
  .mf-main {
    padding: 50px 0 36px;
  }
  .mf-heading::after {
    left: 50%;
    transform: translateX(-50%);
  }
  .mf-heading {
    text-align: center;
  }
  .mf-links {
    align-items: center;
  }
  .mf-links a {
    justify-content: center;
  }
  .mf-contact-list {
    align-items: flex-start;
  }
  .mf-social-row {
    justify-content: center;
  }
  .mf-brand {
    justify-content: center;
  }
  .mf-desc {
    text-align: center;
  }
}

/* ============================================================
   HERO ILLUSTRATION (Inline SVG)
   ============================================================ */

.hero-illustration {
  animation: float 6s ease-in-out infinite;
  filter: drop-shadow(0 24px 48px rgba(0, 0, 0, 0.18));
}

/* ============================================================
   STATS SECTION — Inline Art
   ============================================================ */

.stats-inline-art {
  width: 100%;
  max-height: 130px;
  margin: 16px 0;
  border-radius: 14px;
  background: linear-gradient(135deg, #f8fafc 0%, #f0fdf8 100%);
  padding: 8px 12px;
  overflow: hidden;
  border: 1px solid rgba(46, 204, 154, 0.1);
}

/* ============================================================
   DATA CARD — Icon-only style (replaces img)
   ============================================================ */

.data-card-icon-bi {
  font-size: 2.8rem;
  background: linear-gradient(135deg, var(--clr-primary), var(--clr-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  display: block;
  line-height: 1;
  transition: transform 0.3s ease;
}
.data-card:hover .data-card-icon-bi {
  transform: scale(1.15) rotate(-4deg);
}

/* Data icon wrapper override for icon-only mode */
.data-icon-wrapper:has(.data-card-icon-bi) {
  width: 90px;
  height: 90px;
  border-radius: 22px;
}

/* ============================================================
   INNER PAGES — Shared modern styles for data/list pages
   ============================================================ */

/* ── Page Banner (replaces .section-header for non-home pages) ── */
.ip-banner {
  background: linear-gradient(135deg, #0d9a6a 0%, #0e7fa6 100%);
  border-radius: 20px;
  padding: 32px 40px;
  margin-bottom: 32px;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.ip-banner::before {
  content: "";
  position: absolute;
  top: -40px;
  right: -40px;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.ip-banner::after {
  content: "";
  position: absolute;
  bottom: -60px;
  left: 30%;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  pointer-events: none;
}
.ip-banner-title {
  font-family: "Ubuntu", sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  margin: 0;
  line-height: 1.3;
  position: relative;
  z-index: 1;
}
.ip-banner-sub {
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.8);
  margin: 4px 0 0;
  position: relative;
  z-index: 1;
}
.ip-banner-icon {
  font-size: 3rem;
  color: rgba(255, 255, 255, 0.25);
  position: relative;
  z-index: 1;
  flex-shrink: 0;
}
@media (max-width: 576px) {
  .ip-banner {
    padding: 22px 20px;
  }
  .ip-banner-title {
    font-size: 1.2rem;
  }
  .ip-banner-icon {
    font-size: 2rem;
  }
}

/* ── Clock bar ── */
.ip-clock-bar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  margin-bottom: 20px;
  padding: 10px 16px;
  background: rgba(46, 204, 154, 0.06);
  border: 1px solid rgba(46, 204, 154, 0.15);
  border-radius: 12px;
  font-size: 0.875rem;
  color: #0d9a6a;
  font-weight: 500;
}
.ip-clock-bar i {
  font-size: 1rem;
}

/* ── Filter Card ── */
.ip-filter-card {
  background: #fff;
  border: 1px solid rgba(46, 204, 154, 0.15);
  border-radius: 16px;
  padding: 22px 24px;
  margin-bottom: 28px;
  box-shadow: 0 2px 12px rgba(13, 154, 106, 0.06);
}
.ip-filter-label {
  font-family: "Ubuntu", sans-serif;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0d9a6a;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 14px;
}
.ip-filter-label i {
  font-size: 0.95rem;
}
.ip-filter-card .form-control,
.ip-filter-card .form-select {
  border-radius: 10px;
  border-color: rgba(46, 204, 154, 0.25);
  font-size: 0.875rem;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;
}
.ip-filter-card .form-control:focus,
.ip-filter-card .form-select:focus {
  border-color: #0d9a6a;
  box-shadow: 0 0 0 3px rgba(13, 154, 106, 0.12);
}
.ip-btn-reset {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 18px;
  border-radius: 50px;
  background: linear-gradient(135deg, #0d9a6a, #0e7fa6);
  color: #fff;
  font-size: 0.875rem;
  font-weight: 600;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}
.ip-btn-reset:hover {
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(13, 154, 106, 0.35);
  color: #fff;
}

/* ── Data Table Card ── */
.ip-table-card {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
  margin-bottom: 28px;
  transition: box-shadow 0.3s;
}
.ip-table-card:hover {
  box-shadow: 0 8px 32px rgba(13, 154, 106, 0.1);
}
.ip-table-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 18px 24px;
  background: linear-gradient(90deg, rgba(13, 154, 106, 0.06) 0%, rgba(14, 127, 166, 0.04) 100%);
  border-bottom: 1px solid rgba(46, 204, 154, 0.12);
}
.ip-table-header-icon {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0d9a6a, #0e7fa6);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1rem;
  flex-shrink: 0;
}
.ip-table-title {
  font-family: "Ubuntu", sans-serif;
  font-size: 0.95rem;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
}
.ip-table-body {
  padding: 20px 24px;
}
@media (max-width: 576px) {
  .ip-table-body {
    padding: 12px;
  }
  .ip-table-header {
    padding: 14px 16px;
  }
}

/* ── IDM Stat mini-cards ── */
.ip-stat-mini {
  border-radius: 14px;
  padding: 18px 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 16px;
  position: relative;
  overflow: hidden;
}
.ip-stat-mini::before {
  content: "";
  position: absolute;
  top: -20px;
  right: -20px;
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
}
.ip-stat-mini-icon {
  font-size: 1.8rem;
  flex-shrink: 0;
}
.ip-stat-mini-val {
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1;
  margin-bottom: 2px;
}
.ip-stat-mini-lbl {
  font-size: 0.8rem;
  opacity: 0.85;
  font-weight: 500;
}

/* ── Absorption legend ── */
.ip-legend-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 18px 24px;
}
.ip-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  color: #334155;
  font-weight: 500;
}
.ip-legend-dot {
  width: 18px;
  height: 18px;
  border-radius: 6px;
  flex-shrink: 0;
}

/* ── Year picker cards (home.blade.php) ── */
.ip-year-grid {
  padding: 80px 0 40px;
}
.ip-year-card {
  background: #fff;
  border: 1px solid rgba(46, 204, 154, 0.15);
  border-radius: 20px;
  padding: 32px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s ease;
  text-decoration: none;
  display: block;
  position: relative;
  overflow: hidden;
}
.ip-year-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #0d9a6a, #0e7fa6);
  opacity: 0;
  transition: opacity 0.3s;
  z-index: 0;
}
.ip-year-card:hover::before {
  opacity: 1;
}
.ip-year-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(13, 154, 106, 0.25);
}
.ip-year-card > * {
  position: relative;
  z-index: 1;
}
.ip-year-card:hover .ip-year-icon {
  color: rgba(255, 255, 255, 0.9) !important;
}
.ip-year-card:hover .ip-year-lbl {
  color: rgba(255, 255, 255, 0.8) !important;
}
.ip-year-card:hover .ip-year-num {
  color: #fff !important;
}
.ip-year-card:hover .ip-year-btn {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.4);
}
.ip-year-icon {
  font-size: 2.5rem;
  color: #0d9a6a;
  display: block;
  margin-bottom: 12px;
  transition: color 0.3s;
}
.ip-year-lbl {
  font-size: 0.8rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #64748b;
  display: block;
  margin-bottom: 4px;
  transition: color 0.3s;
}
.ip-year-num {
  font-family: "Ubuntu", sans-serif;
  font-size: 2.5rem;
  font-weight: 700;
  color: #1e293b;
  display: block;
  margin-bottom: 20px;
  transition: color 0.3s;
}
.ip-year-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 22px;
  border-radius: 50px;
  border: 1.5px solid rgba(13, 154, 106, 0.4);
  color: #0d9a6a;
  font-size: 0.875rem;
  font-weight: 600;
  background: rgba(13, 154, 106, 0.06);
  transition: all 0.3s;
}

/* ── Perencanaan iframe card ── */
.ip-video-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}
.ip-video-card iframe {
  width: 100%;
  display: block;
  border: none;
}
.ip-img-card {
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08);
  margin-bottom: 24px;
}
.ip-img-card img {
  width: 100%;
  display: block;
}

/* ── Inner page section wrapper ── */
.ip-section {
  padding: 90px 0 48px;
}
@media (max-width: 768px) {
  .ip-section {
    padding: 80px 0 32px;
  }
}

