/* =======================================================
   HOME PAGE STYLESHEET (Bold Blue Theme - FINAL LAYERED + VIDEO FIX)
   ======================================================= */

/* --- Animasi Reveal (Progressive Enhancement) --- */
/* Content visible by default — animations only activate when JS loads */
.reveal {
  /* Visible by default for fast FCP/SI and no-JS fallback */
  opacity: 1;
}

/* When JS is loaded, hide elements for reveal animation */
html.js-loaded .reveal {
  opacity: 0;
  visibility: hidden;
  transition: all 0.8s cubic-bezier(0.5, 0, 0, 1);
  will-change: transform, opacity;
}

/* Hero content is ALWAYS visible immediately — it's the LCP element */
html.js-loaded .hero-content.reveal {
  opacity: 1;
  visibility: visible;
  transform: none;
  transition: none;
}

html.js-loaded .reveal.fade-up {
  transform: translateY(60px);
}

html.js-loaded .reveal.fade-left {
  transform: translateX(-60px);
}

html.js-loaded .reveal.fade-right {
  transform: translateX(60px);
}

/* Activated state — shown when scrolled into view */
html.js-loaded .reveal.active {
  opacity: 1;
  visibility: visible;
  transform: translate(0, 0);
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  html.js-loaded .reveal {
    opacity: 1;
    visibility: visible;
    transform: none;
    transition: none;
  }
}

/* --- Badge & Header Default --- */
.badge-pill {
  display: inline-flex;
  align-items: center;
  background: rgba(37, 99, 235, 0.06);
  color: #2563eb;
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 20px;
  border: 1px solid rgba(37, 99, 235, 0.12);
  transition: all 0.3s ease;
}

.badge-pill::before {
  display: none !important;
  /* Removed generic dot */
}

.section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  margin-bottom: 70px;
  max-width: 700px;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 2;
}

.section-header h2 {
  font-size: 2.5rem;
  color: #0f172a;
  line-height: 1.2;
  letter-spacing: -1px;
  position: relative;
  display: inline-block;
  padding-bottom: 18px;
}

.section-header p {
  max-width: 720px;
  color: #64748b;
  margin-top: 10px;
  line-height: 1.7;
}

.section-header h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 64px;
  height: 4px;
  border-radius: 4px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.features-slider-section .section-header h2::after,
.management-section .section-header h2::after {
  background: linear-gradient(90deg, #ffffff, rgba(255, 255, 255, 0.4));
}

/* --- Hero Section (Full-Bleed Background & Full Screen 100vh) --- */
.hero-section {
  position: relative;
  width: 100%;
  margin-top: -64px;
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 84px 0 60px;
  background-color: #eff6ff;
  overflow: hidden;
  z-index: 1;
}

.hero-section .container {
  display: flex;
  align-items: center;
  position: relative;
  z-index: 3;
  width: 100%;
}

.hero-section::after {
  display: none !important;
}

.hero-section::before {
  display: none !important;
}

/* Aurora mesh glow — hidden to keep background photo clean */
.hero-aurora {
  display: none !important;
}

@keyframes auroraDrift {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(20px, -15px) scale(1.05);
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-aurora {
    animation: none;
  }
}

.hero-content {
  flex: 0 1 auto;
  max-width: 780px;
  /* Constrain text width on the left for optimal line length */
  background: transparent;
  border: none;
  padding: 0;
  box-shadow: none;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  z-index: 3;
  transition: all 0.5s ease;
}

.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(37, 99, 235, 0.22);
  border: 1px solid rgba(96, 165, 250, 0.38);
  color: #93c5fd;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  padding: 6px 18px;
  border-radius: 30px;
  margin-bottom: 20px;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.2);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.hero-eyebrow i {
  color: #60a5fa;
  font-size: 0.9rem;
}

.eyebrow-dot {
  display: none;
}

.hero-content h1 {
  font-size: 2.75rem;
  color: #ffffff;
  /* White title */
  line-height: 1.22;
  margin-bottom: 20px;
  font-weight: 800;
  letter-spacing: -0.8px;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.65);
}

.text-blue {
  color: #38bdf8 !important;
  font-weight: 800;
  text-shadow: 0 3px 14px rgba(0, 0, 0, 0.85);
}

.hero-content p {
  font-size: 1.05rem;
  color: rgba(248, 250, 252, 0.95);
  margin-bottom: 32px;
  line-height: 1.7;
  max-width: 680px;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5);
}

.hero-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}

.hero-highlight-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #eff6ff;
  border: 1px solid rgba(255, 255, 255, 0.16);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  font-size: 0.9rem;
  font-weight: 600;
}

.hero-highlight-item i {
  color: #93c5fd;
  font-size: 1rem;
}

.hero-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
  max-width: 640px;
}

.metric-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.16);
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.metric-card strong {
  display: block;
  font-size: 1.35rem;
  color: #ffffff;
  margin-bottom: 4px;
}

.metric-card span {
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.86rem;
  line-height: 1.4;
}

.btn-group,
.hero-buttons {
  display: flex;
  gap: 18px;
  align-items: center;
  flex-wrap: wrap;
}

.btn-primary {
  background: #2563eb;
  /* Blue background */
  color: #ffffff !important;
  /* White text */
  padding: 16px 34px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  border: 1px solid transparent;
  text-decoration: none;
  box-shadow: 0 4px 16px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: #1d4ed8;
  /* Darker blue hover */
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 99, 235, 0.4);
}

.btn-outline {
  background: transparent;
  color: #ffffff !important;
  /* White text */
  padding: 16px 34px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 1.05rem;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: all 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.35);
  text-decoration: none;
}

.btn-outline:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.6);
  transform: translateY(-2px);
}

/* Hero Scroll Down Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 22px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.5px;
  z-index: 3;
  text-decoration: none;
  transition: all 0.3s ease;
  cursor: pointer;
}

.hero-scroll-indicator:hover {
  color: #38bdf8;
  transform: translateX(-50%) translateY(3px);
}

.hero-scroll-indicator i {
  font-size: 1.5rem;
  animation: bounceDown 2s infinite;
}

@keyframes bounceDown {
  0%, 20%, 50%, 80%, 100% {
    transform: translateY(0);
  }
  40% {
    transform: translateY(6px);
  }
  60% {
    transform: translateY(3px);
  }
}

.hero-image {
  flex: 1;
  position: relative;
}

.hero-glow-ring {
  position: absolute;
  inset: 8% 12%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.16) 0%, transparent 70%);
  filter: blur(10px);
  animation: floatHero 6s ease-in-out infinite;
}

.hero-image img.hero-logo-img {
  width: 100%;
  max-width: 450px;
  height: auto;
  margin: 0 auto;
  display: block;
  border-radius: 0;
  box-shadow: none;
  border: none;
  position: relative;
  z-index: 1;
  filter: drop-shadow(0 20px 30px rgba(37, 99, 235, 0.2));
  animation: floatHero 6s ease-in-out infinite;
}

@keyframes floatHero {

  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-15px);
  }
}

.hero-float-chip {
  position: absolute;
  bottom: 6%;
  right: 6%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(219, 234, 254, 0.9);
  color: #1e3a8a;
  font-size: 0.8rem;
  font-weight: 700;
  padding: 10px 16px;
  border-radius: 50px;
  box-shadow: 0 10px 25px -8px rgba(30, 58, 138, 0.25);
  animation: floatHero 6s ease-in-out infinite;
  animation-delay: 0.3s;
}

.chip-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  flex-shrink: 0;
  box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.5);
  animation: badgePulse 2s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {

  .hero-image img.hero-logo-img,
  .hero-glow-ring,
  .hero-float-chip,
  .eyebrow-dot,
  .chip-dot,
  .badge-pill::before {
    animation: none;
  }
}

@media (max-width: 900px) {
  .hero-float-chip {
    bottom: -10px;
    right: 50%;
    transform: translateX(50%);
  }
}

/* =======================================================
   BACKGROUND DECORATION & LAYERING FIX
   ======================================================= */

/* Visi Misi (Layer Tinggi agar blob menimpa section bawahnya) */
.visi-misi-section {
  position: relative;
  overflow: visible !important;
  z-index: 10;
  background-color: #f0f7ff;
  background-image:
    radial-gradient(circle at 15% 30%, rgba(191, 219, 254, 0.6) 0%, transparent 45%),
    radial-gradient(circle at 85% 70%, rgba(186, 230, 253, 0.5) 0%, transparent 40%),
    radial-gradient(rgba(37, 99, 235, 0.07) 1.4px, transparent 1.4px),
    linear-gradient(180deg, #f0f7ff 0%, #ffffff 100%);
  background-size: auto, auto, 28px 28px, auto;
  padding: 60px 0 100px;
}

.info-section {
  position: relative;
  z-index: 10;
  background-color: #eff6ff;
  background-image:
    radial-gradient(circle at 15% 20%, rgba(37, 99, 235, 0.12), transparent 25%),
    radial-gradient(circle at 85% 60%, rgba(96, 165, 250, 0.12), transparent 25%),
    radial-gradient(rgba(37, 99, 235, 0.07) 1.2px, transparent 1.2px),
    linear-gradient(180deg, #ffffff 0%, #eff6ff 100%);
  background-size: auto, auto, 24px 24px, auto;
  border-top: 1px solid rgba(191, 219, 254, 0.6);
  padding: 90px 0;
}

.info-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04), transparent 40%, rgba(14, 165, 233, 0.03));
  pointer-events: none;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}

/* Grid Layouts */
.visi-misi-grid,
.info-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 50px;
  align-items: stretch;
}

.info-grid {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 40px;
}

/* Container Content */
.visi-misi-section .container,
.info-section .container {
  position: relative;
  z-index: 20;
  /* Lebih tinggi dari blob */
}

/* Style Dasar Blob — hidden to avoid visual noise */
.blob-decoration {
  display: none !important;
}

.blob-blue {
  width: 400px;
  height: 400px;
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  top: -50px;
  left: -50px;
}

.blob-cyan {
  width: 350px;
  height: 350px;
  background: linear-gradient(135deg, #e0f2fe 0%, #bae6fd 100%);
  bottom: -50px;
  right: -50px;
  animation-delay: 2s;
}

.blob-purple {
  width: 300px;
  height: 300px;
  background: linear-gradient(135deg, #f3e8ff 0%, #e9d5ff 100%);
  bottom: 10%;
  left: 10%;
  opacity: 0.4;
}

@keyframes floatBlob {
  0% {
    transform: translate(0, 0) scale(1);
  }

  100% {
    transform: translate(30px, 50px) scale(1.1);
  }
}

/* --- Visi Misi Cards & Layout --- */
.visi-misi-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  align-items: stretch;
}

.vm-card {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 24px;
  padding: 36px 34px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 14px 38px -12px rgba(30, 58, 138, 0.07);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
  height: 100%;
}

.vm-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  transition: transform 0.4s ease;
}

.vm-card-visi::before {
  background: linear-gradient(90deg, #2563eb, #38bdf8);
}

.vm-card-misi::before {
  background: linear-gradient(90deg, #0284c7, #6366f1);
}

.vm-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 25px 50px -12px rgba(37, 99, 235, 0.14);
  border-color: rgba(37, 99, 235, 0.28);
}

.vm-card-top {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 22px;
}

.vm-icon-box {
  flex-shrink: 0;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  transition: transform 0.3s ease;
}

.icon-visi {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(56, 189, 248, 0.18) 100%);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.2);
}

.icon-misi {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.12) 0%, rgba(99, 102, 241, 0.18) 100%);
  color: #0284c7;
  border: 1px solid rgba(14, 165, 233, 0.2);
}

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

.vm-card-title {
  display: flex;
  flex-direction: column;
}

.vm-sub-label {
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 1.2px;
  color: #2563eb;
  margin-bottom: 3px;
}

.vm-card-title h3 {
  font-size: 1.45rem;
  color: #0f172a;
  font-weight: 800;
  letter-spacing: -0.3px;
  margin: 0;
}

.vm-card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

/* Visi Quote Box */
.visi-quote-box {
  position: relative;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.04) 0%, rgba(56, 189, 248, 0.07) 100%);
  border-left: 4px solid #2563eb;
  border-radius: 0 16px 16px 0;
  padding: 20px 22px;
  margin-bottom: 20px;
}

.visi-quote-box .quote-icon {
  font-size: 1.7rem;
  color: rgba(37, 99, 235, 0.3);
  margin-bottom: 6px;
  display: block;
}

.visi-quote-box p {
  color: #334155;
  line-height: 1.7;
  font-size: 1.02rem;
  font-weight: 500;
  font-style: italic;
  margin: 0;
}

/* Visi Tags */
.visi-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
}

.v-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(241, 245, 249, 0.95);
  border: 1px solid rgba(226, 232, 240, 0.95);
  color: #1e3a8a;
  padding: 8px 14px;
  border-radius: 30px;
  font-size: 0.82rem;
  font-weight: 700;
  transition: all 0.3s ease;
}

.v-tag i {
  color: #2563eb;
  font-size: 0.95rem;
}

.v-tag:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.3);
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.08);
  transform: translateY(-2px);
}

/* Misi Items Wrapper */
.misi-items-wrapper {
  display: flex;
  flex-direction: column;
  gap: 14px;
  flex: 1;
  justify-content: center;
}

.misi-item-box {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  background: rgba(248, 250, 252, 0.85);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 16px;
  padding: 15px 18px;
  transition: all 0.3s ease;
}

.misi-item-box:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.25);
  box-shadow: 0 6px 18px rgba(37, 99, 235, 0.07);
  transform: translateX(4px);
}

.misi-badge {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  color: #ffffff;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.85rem;
  margin-top: 2px;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.25);
}

.misi-item-box p {
  flex: 1;
  color: #334155;
  font-size: 0.94rem;
  line-height: 1.6;
  margin: 0;
}

/* =======================================================
   STATS SECTION
   ======================================================= */
.stats-section {
  padding: 100px 0;
  background: #0f172a;
  color: #ffffff;
  position: relative;
  overflow: hidden;
  z-index: 9;
  /* Di bawah Visi Misi */
  background-image: radial-gradient(#1e293b 1px, transparent 1px);
  background-size: 40px 40px;
}

.stats-section::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 50px;
  text-align: center;
  position: relative;
  z-index: 2;
}

.stat-item {
  padding: 20px;
  transition: transform 0.3s ease;
}

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

.stat-icon {
  font-size: 3.5rem;
  color: #3b82f6;
  margin-bottom: 15px;
  display: inline-block;
  filter: drop-shadow(0 0 10px rgba(59, 130, 246, 0.4));
  transition: transform 0.3s;
}

.stat-item:hover .stat-icon {
  transform: scale(1.1) rotate(-5deg);
}

.stat-number {
  font-size: 3.5rem;
  font-weight: 800;
  margin-bottom: 5px;
  color: #ffffff;
  font-family: "Inter", sans-serif;
  line-height: 1;
}

.stat-item p {
  font-size: 1.1rem;
  color: #94a3b8;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin: 0;
}

/* =======================================================
   BOLD BLUE SECTIONS (Features & Management)
   ======================================================= */
.features-slider-section {
  background: #f8fafc;
  border-top: 1px solid #e2e8f0;
  border-bottom: 1px solid #e2e8f0;
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.management-section {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  background-image:
    linear-gradient(180deg, rgba(239, 246, 255, 0.96) 0%, rgba(255, 255, 255, 1) 100%),
    radial-gradient(circle at 0% 0%, rgba(37, 99, 235, 0.16), transparent 22%),
    radial-gradient(circle at 100% 0%, rgba(14, 165, 233, 0.12), transparent 18%),
    radial-gradient(rgba(37, 99, 235, 0.08) 1.2px, transparent 1.2px);
  background-size: auto, auto, auto, 26px 26px;
  background-position: center, center, center, 0 0;
  padding: 100px 0;
  position: relative;
  z-index: 1;
}

.management-section .section-header {
  margin-bottom: 55px;
}

/* Slider & Content */
.slider-container {
  max-width: 1280px;
  margin: 0 auto;
  position: relative;
  padding: 0 20px;
  z-index: 2;
}

.slider-track {
  display: flex;
  transition: transform 0.65s cubic-bezier(0.34, 1.25, 0.64, 1);
}

.slide {
  min-width: 100%;
  padding: 20px;
  box-sizing: border-box;
}

.slide-content-wrapper {
  display: flex;
  align-items: center;
  gap: 50px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 45px 50px;
  border-radius: 20px;
  box-shadow: 0 20px 45px -10px rgba(30, 58, 138, 0.08);
  border: 1px solid #dbeafe;
  cursor: pointer;
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.4s ease;
}

.slide-content-wrapper:hover {
  box-shadow: 0 25px 55px -10px rgba(30, 58, 138, 0.14);
  transform: translateY(-2px) scale(1.008);
}

.slide-content-wrapper:active {
  transform: translateY(0) scale(0.99);
  transition: transform 0.1s ease;
}

.slide-image {
  flex: 1.1;
}

.slide-image img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  border-radius: 16px;
  box-shadow: 0 15px 35px -5px rgba(0, 0, 0, 0.12);
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.slide-content-wrapper:hover .slide-image img {
  transform: scale(1.03);
}

.slide-text {
  flex: 1;
}

.slide-text h2 {
  font-size: 2.2rem;
  color: #0f172a !important;
  margin-bottom: 15px;
  font-weight: 800;
  letter-spacing: -1px;
}

.slide-text .text-blue {
  color: #2563eb !important;
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: initial !important;
  filter: none !important;
  text-shadow: none !important;
  font-weight: 800;
}

body.night-mode .slide-text .text-blue {
  color: #60a5fa !important;
}

.slide-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(37, 99, 235, 0.08) !important;
  border: 1px solid rgba(37, 99, 235, 0.22) !important;
  color: #1d4ed8 !important;
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  padding: 5px 12px;
  border-radius: 6px;
  margin-bottom: 12px;
  line-height: 1.2;
}

body.night-mode .slide-badge {
  background: rgba(96, 165, 250, 0.15) !important;
  border-color: rgba(96, 165, 250, 0.35) !important;
  color: #93c5fd !important;
}

.slide-text p {
  font-size: 1.05rem;
  color: #475569 !important;
  line-height: 1.7;
  margin-bottom: 20px;
}

/* Dots & Buttons */
.slider-dots {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 40px;
}

.dot {
  width: 10px;
  height: 10px;
  background: #cbd5e1;
  border-radius: 20px;
  border: none;
  cursor: pointer;
  transition: all 0.4s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.dot:hover {
  transform: scale(1.3);
  background: #93c5fd;
}

.dot.active {
  width: 34px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.4);
  animation: dotSpringPop 0.4s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

@keyframes dotSpringPop {
  0% {
    transform: scale(0.6);
  }

  50% {
    transform: scale(1.25);
  }

  100% {
    transform: scale(1);
  }
}

/* Super Springy Bouncy Slider Buttons */
.slider-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 54px;
  height: 54px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 2px solid rgba(191, 219, 254, 0.9);
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  color: #1e3a8a;
  box-shadow: 0 8px 24px rgba(30, 58, 138, 0.14), 0 2px 6px rgba(0, 0, 0, 0.04);
  /* Spring Elastic Transition */
  transition: all 0.45s cubic-bezier(0.68, -0.6, 0.32, 1.6);
}

.slider-btn i {
  transition: transform 0.35s cubic-bezier(0.68, -0.6, 0.32, 1.6);
  display: inline-block;
}

/* Spring Bounce on Hover */
.slider-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: #ffffff;
  border-color: #2563eb;
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.42);
  transform: translateY(-50%) scale(1.22);
}

/* Bouncy Squish on Active Click */
.slider-btn:active {
  transform: translateY(-50%) scale(0.82, 1.18);
  transition: transform 0.1s ease;
}

.prev-btn {
  left: -8px;
  animation: floatIdlePrev 4s ease-in-out infinite;
}

.prev-btn:hover {
  animation: none;
  transform: translateY(-50%) scale(1.22);
}

.prev-btn:hover i {
  animation: arrowBounceLeft 0.7s cubic-bezier(0.68, -0.6, 0.32, 1.6) infinite alternate;
}

.next-btn {
  right: -8px;
  animation: floatIdleNext 4s ease-in-out infinite 0.5s;
}

.next-btn:hover {
  animation: none;
  transform: translateY(-50%) scale(1.22);
}

.next-btn:hover i {
  animation: arrowBounceRight 0.7s cubic-bezier(0.68, -0.6, 0.32, 1.6) infinite alternate;
}

/* Idle Floating Animation */
@keyframes floatIdlePrev {

  0%,
  100% {
    transform: translateY(-50%);
  }

  50% {
    transform: translateY(calc(-50% - 6px));
  }
}

@keyframes floatIdleNext {

  0%,
  100% {
    transform: translateY(-50%);
  }

  50% {
    transform: translateY(calc(-50% - 6px));
  }
}

/* Arrow Spring Bounce Animation */
@keyframes arrowBounceLeft {
  0% {
    transform: translateX(0);
  }

  100% {
    transform: translateX(-6px) scale(1.15);
  }
}

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

  100% {
    transform: translateX(6px) scale(1.15);
  }
}

/* --- Video Section (YouTube Embed Fix) --- */
.video-section {
  padding: 100px 0;
  background: #fff;
  text-align: center;
}

.video-container {
  position: relative;
  max-width: 1000px;
  margin: 50px auto 0;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
  /* Rasio 16:9 agar responsif */
  aspect-ratio: 16 / 9;
  background: #000;
}

.video-container iframe {
  width: 100%;
  height: 100%;
  border: none;
  display: block;
}

/* Responsif untuk browser lama yang tidak dukung aspect-ratio */
@supports not (aspect-ratio: 16 / 9) {
  .video-container {
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 */
  }

  .video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
  }
}

/* --- Management Section --- */
.pimpinan-wrapper,
.laboran-grid {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 30px;
  flex-wrap: wrap;
  position: relative;
  z-index: 2;
}

.pimpinan-wrapper {
  margin-bottom: 50px;
}

.staff-card-home {
  position: relative;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: 20px;
  width: 280px;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(30, 58, 138, 0.06);
  transition: all 0.4s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.staff-card-home::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  opacity: 0;
  transition: opacity 0.3s ease;
  z-index: 5;
}

.staff-card-home:hover::before {
  opacity: 1;
}

.staff-card-home:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(30, 58, 138, 0.14);
  border-color: #3b82f6;
}

.staff-card-home:active {
  transform: translateY(-2px) scale(0.985);
  transition: transform 0.1s ease;
}

.staff-photo-box {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: #f8fbff;
  border-bottom: 1px solid #e2e8f0;
  overflow: hidden;
  flex-shrink: 0;
}

.staff-photo-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.5s cubic-bezier(0.2, 0.8, 0.2, 1);
}

.staff-card-home:hover .staff-photo-box img {
  transform: scale(1.05);
}

.staff-content {
  padding: 22px 18px;
  text-align: center;
  background: transparent;
  display: flex;
  flex-direction: column;
  align-items: center;
  flex: 1;
  width: 100%;
  box-sizing: border-box;
}

.staff-name {
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
  margin-top: 0;
  margin-bottom: 8px;
  line-height: 1.35;
  letter-spacing: -0.2px;
  min-height: 2.4rem;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.staff-role {
  font-size: 0.72rem;
  color: #2563eb;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.08) 0%, rgba(37, 99, 235, 0.04) 100%);
  border: 1px solid rgba(37, 99, 235, 0.15);
  padding: 8px 14px;
  border-radius: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  line-height: 1.3;
  margin-top: auto;
  min-height: 52px;
  width: 100%;
  max-width: 230px;
  box-sizing: border-box;
}

.staff-role i {
  font-size: 1rem;
  flex-shrink: 0;
}

.role-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.role-main {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.role-sub {
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  opacity: 0.85;
  margin-top: 2px;
}

/* --- Info Section Styles --- */
.info-card {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  padding: 42px 36px;
  border-radius: 24px;
  border: 1px solid #dbeafe;
  box-shadow: 0 12px 35px rgba(30, 58, 138, 0.08);
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  position: relative;
  z-index: 2;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.info-card:hover {
  transform: translateY(-8px);
  border-color: rgba(59, 130, 246, 0.45);
  box-shadow: 0 24px 50px -10px rgba(37, 99, 235, 0.14);
}

.info-card:active {
  transform: translateY(-2px) scale(0.985);
  transition: transform 0.1s ease;
}

.info-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, #2563eb, #60a5fa);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.info-card:hover::before {
  opacity: 1;
}

.card-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.1) 0%, rgba(96, 165, 250, 0.18) 100%);
  color: #2563eb;
  border: 1px solid rgba(37, 99, 235, 0.18);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  margin-bottom: 24px;
  transition: all 0.4s ease;
}

.info-card:hover .card-icon {
  transform: scale(1.08) rotate(-4deg);
  background: #2563eb;
  color: #ffffff;
}

.info-card h3 {
  font-size: 1.35rem;
  color: #0f172a;
  margin-bottom: 15px;
  font-weight: 700;
}

.info-card p {
  color: #64748b;
  margin-bottom: 30px;
  line-height: 1.65;
}

.link-arrow {
  color: #2563eb;
  font-weight: 700;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.88rem;
  padding: 8px 18px;
  background: rgba(37, 99, 235, 0.08);
  border-radius: 30px;
  width: fit-content;
  margin-top: auto;
  transition: all 0.3s ease;
}

.link-arrow:hover {
  background: #2563eb;
  color: #ffffff;
}

.link-arrow i {
  transition: transform 0.3s;
}

.link-arrow:hover i {
  transform: translateX(4px);
}

/* --- Partner Section (Moving Slider) --- */
.partner-section {
  padding: 80px 0;
  background-color: #eff6ff;
  background-image:
    radial-gradient(circle at 20% 30%, rgba(37, 99, 235, 0.1), transparent 25%),
    radial-gradient(circle at 80% 60%, rgba(14, 165, 233, 0.08), transparent 25%),
    radial-gradient(rgba(37, 99, 235, 0.07) 1.2px, transparent 1.2px),
    linear-gradient(180deg, #eff6ff 0%, #f8fafc 100%);
  background-size: auto, auto, 24px 24px, auto;
  border-top: none;
  border-bottom: 1px solid rgba(203, 213, 225, 0.4);
  position: relative;
  overflow: hidden;
}

.partner-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.06), transparent 28%), radial-gradient(circle at 80% 0%, rgba(14, 165, 233, 0.05), transparent 24%);
  pointer-events: none;
}

.partner-section .slider {
  margin: auto;
  position: relative;
  width: 100%;
  height: 100px;
  overflow: hidden;
  background: transparent;
}

.partner-section .slider::before,
.partner-section .slider::after {
  background: linear-gradient(to right,
      rgba(255, 255, 255, 1) 0%,
      rgba(255, 255, 255, 0) 100%);
  content: "";
  height: 100px;
  position: absolute;
  width: 150px;
  z-index: 2;
  pointer-events: none;
}

.partner-section .slider::before {
  left: 0;
  top: 0;
}

.partner-section .slider::after {
  right: 0;
  top: 0;
  transform: rotateZ(180deg);
}

.slide-track {
  display: flex;
  width: calc(250px * 8);
  animation: scrollPartner 20s linear infinite;
}

.partner-slide {
  height: 100px;
  width: 250px;
  min-width: 250px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 15px;
  box-sizing: border-box;
}

/* OPSI 3: GLASSMORPHISM + BLUE GLOW HOVER */
.partner-box {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  width: 100%;
  height: 80px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #dbeafe;
  box-shadow: 0 10px 24px rgba(30, 58, 138, 0.08);
  transition: all 0.3s ease;
  user-select: none;
}

.partner-box:hover {
  background: #ffffff;
  border-color: rgba(37, 99, 235, 0.35);
  transform: translateY(-6px);
  box-shadow:
    0 18px 38px -8px rgba(37, 99, 235, 0.18),
    0 0 0 1px rgba(37, 99, 235, 0.08);
}

/* --- PERBAIKAN UKURAN LOGO DI SINI --- */
.partner-box img,
.partner-box .logo-light,
.partner-box .logo-dark {
  height: 28px !important;
  max-height: 28px !important;
  width: auto !important;
  max-width: 75% !important;
  object-fit: contain !important;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.05));
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.partner-box:hover img {
  transform: scale(1.15);
  filter: drop-shadow(0 5px 15px rgba(37, 99, 235, 0.2));
}

/* --- Dark / Light logo swap --- */

/* Light mode: tampilkan logo-light, sembunyikan logo-dark */
.partner-box .logo-dark {
  display: none !important;
}

.partner-box .logo-light {
  display: block !important;
}

/* Night mode: tampilkan logo-dark, sembunyikan logo-light */
body.night-mode .partner-box .logo-light {
  display: none !important;
}

body.night-mode .partner-box .logo-dark {
  display: block !important;
}

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

  100% {
    transform: translateX(calc(-250px * 4));
  }
}

.partner-section .slider:hover .slide-track {
  animation-play-state: paused;
}

/* =======================================================
   SHAPE DIVIDERS (GELOMBANG TRANSISI)
   ======================================================= */
.custom-shape-divider-top,
.custom-shape-divider-bottom {
  display: none !important;
}

/* =======================================================
   RESPONSIVE MEDIA QUERIES
   ======================================================= */
@media (max-width: 1024px) {
  .hero-content h1 {
    font-size: 2rem;
  }

  .hero-section .container {
    gap: 40px;
  }
}

@media (max-width: 900px) {
  .hero-section {
    padding: 80px 0;
    text-align: center;
  }

  .hero-section .container {
    flex-direction: column;
  }

  .hero-content h1,
  .hero-content p {
    margin-left: auto;
    margin-right: auto;
  }

  .btn-group {
    justify-content: center;
  }

  .visi-misi-grid,
  .info-grid {
    grid-template-columns: 1fr;
  }

  .slide-content-wrapper {
    flex-direction: column;
    padding: 40px 30px;
    text-align: center;
  }

  .slide-image img {
    height: 250px;
  }

  .vm-card {
    flex-direction: column;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 768px) {

  .features-slider-section,
  .management-section {
    padding-top: 80px !important;
    padding-bottom: 80px !important;
  }

  .pimpinan-wrapper,
  .laboran-grid {
    flex-direction: column;
    align-items: center;
  }

  .staff-card-home {
    width: 100%;
    max-width: 320px;
  }

  .partner-section .slider::before,
  .partner-section .slider::after {
    width: 50px;
  }

  .partner-slide {
    width: 180px;
    min-width: 180px;
  }

  .slide-track {
    width: calc(180px * 8);
    animation: scrollPartnerMobile 20s linear infinite;
  }

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

    100% {
      /* Geser sejauh 4 item versi mobile */
      transform: translateX(calc(-180px * 4));
    }
  }

  .stats-section {
    padding: 60px 0;
  }

  .stats-grid {
    gap: 40px;
  }

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

  .stat-icon {
    font-size: 2.5rem;
  }

  .custom-shape-divider-top svg,
  .custom-shape-divider-bottom svg {
    height: 35px;
  }

  .slider-btn {
    width: 40px;
    height: 40px;
    font-size: 1.2rem;
  }

  .hero-image img.hero-logo-img {
    max-width: 280px;
    margin-top: 30px;
  }
}

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

  .section-header h2 {
    font-size: 1.8rem;
  }

  .vm-card {
    padding: 30px;
  }
}

/* =======================================================
   NIGHT / DAY THEME BACKDROP OVERRIDES & HOME IMPROVEMENTS
   ======================================================= */

/* Full-bleed hero background container */
.hero-bg-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  /* Layer behind all content */
  pointer-events: none;
  overflow: hidden;
}

.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transition: opacity 1s cubic-bezier(0.4, 0, 0.2, 1);
}

.hero-bg-overlay {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to right,
      rgba(15, 23, 42, 0.88) 0%,
      rgba(15, 23, 42, 0.55) 50%,
      rgba(15, 23, 42, 0.2) 75%,
      rgba(15, 23, 42, 0.1) 100%),
    linear-gradient(to top,
      rgba(15, 23, 42, 0.85) 0%,
      rgba(15, 23, 42, 0.3) 25%,
      transparent 50%);
  /* Translucent mask with bottom fade */
  z-index: 1;
  transition: background 0.6s ease;
}

/* Simulated night-view filter for placeholder */
.night-mode-filter {
  filter: none;
}

/* Night Mode variables & overrides */
body.night-mode .hero-bg-overlay {
  background:
    linear-gradient(to right,
      rgba(11, 15, 25, 0.94) 0%,
      rgba(11, 15, 25, 0.7) 48%,
      rgba(11, 15, 25, 0.3) 78%,
      rgba(11, 15, 25, 0.18) 100%),
    linear-gradient(to top,
      #0b0f19 0%,
      rgba(11, 15, 25, 0.85) 18%,
      transparent 50%);
}

body.night-mode .hero-bg-img {
  filter: none;
}

body.night-mode .hero-section {
  background-color: #0b0f19;
  background-image: linear-gradient(180deg, #0b0f19 0%, #111827 100%);
}

body.night-mode .hero-section::after {
  display: none !important;
}

body.night-mode .hero-section::before {
  background: radial-gradient(circle,
      rgba(99, 102, 241, 0.15) 0%,
      rgba(99, 102, 241, 0) 70%);
}

body.night-mode .hero-aurora {
  background:
    radial-gradient(500px circle at 20% 30%, rgba(99, 102, 241, 0.2), transparent 65%),
    radial-gradient(420px circle at 85% 20%, rgba(139, 92, 246, 0.18), transparent 60%),
    radial-gradient(600px circle at 70% 90%, rgba(79, 70, 229, 0.12), transparent 65%);
}

body.night-mode .hero-content {
  background: transparent;
  border: none;
  box-shadow: none;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

body.night-mode .hero-content h1 {
  color: #ffffff;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.6);
}

body.night-mode .hero-content p {
  color: #cbd5e1;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

body.night-mode .text-gradient {
  background: linear-gradient(100deg, #60a5fa 0%, #818cf8 55%, #c084fc 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

body.night-mode .hero-eyebrow {
  background: rgba(15, 23, 42, 0.6);
  border-color: rgba(30, 41, 59, 0.8);
  color: #818cf8;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.night-mode .hero-float-chip {
  background: rgba(15, 23, 42, 0.8);
  border-color: rgba(30, 41, 59, 0.8);
  color: #ffffff;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, 0.4);
}

/* =======================================================
   HOME PAGE FULL NIGHT MODE IMPLEMENTATION
   ======================================================= */

/* 1. Visi Misi Section & Cards */
body.night-mode .visi-misi-section {
  background-color: #0b0f19 !important;
  background-image:
    radial-gradient(circle at 80% 30%, rgba(99, 102, 241, 0.1) 0%, transparent 50%),
    radial-gradient(rgba(255, 255, 255, 0.04) 1.2px, transparent 1.2px),
    linear-gradient(180deg, #0b0f19 0%, #080c14 100%) !important;
  background-size: auto, 28px 28px, auto;
  transition: background-color 0.4s ease;
}

body.night-mode .vm-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 20px 45px rgba(0, 0, 0, 0.4) !important;
}

body.night-mode .vm-card:hover {
  border-color: rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.5), 0 0 20px rgba(56, 189, 248, 0.08) !important;
}

body.night-mode .vm-sub-label {
  color: #38bdf8 !important;
}

body.night-mode .vm-card h3 {
  color: #ffffff !important;
}

body.night-mode .vm-card p {
  color: #cbd5e1 !important;
}

body.night-mode .icon-visi {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.25) 0%, rgba(56, 189, 248, 0.2) 100%) !important;
  color: #38bdf8 !important;
  border: 1px solid rgba(56, 189, 248, 0.3) !important;
}

body.night-mode .icon-misi {
  background: linear-gradient(135deg, rgba(14, 165, 233, 0.25) 0%, rgba(99, 102, 241, 0.2) 100%) !important;
  color: #818cf8 !important;
  border: 1px solid rgba(129, 140, 248, 0.3) !important;
}

body.night-mode .visi-quote-box {
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.12) 0%, rgba(15, 23, 42, 0.6) 100%) !important;
  border-left: 4px solid #38bdf8 !important;
  border-top: 1px solid rgba(56, 189, 248, 0.15) !important;
  border-right: 1px solid rgba(56, 189, 248, 0.15) !important;
  border-bottom: 1px solid rgba(56, 189, 248, 0.15) !important;
}

body.night-mode .visi-quote-box p {
  color: #e2e8f0 !important;
}

body.night-mode .visi-quote-box .quote-icon {
  color: rgba(56, 189, 248, 0.5) !important;
}

body.night-mode .misi-item-box {
  background: rgba(15, 23, 42, 0.6) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.night-mode .misi-item-box:hover {
  background: rgba(30, 41, 59, 0.8) !important;
  border-color: rgba(56, 189, 248, 0.3) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.3) !important;
}

body.night-mode .misi-item-box p {
  color: #cbd5e1 !important;
}

body.night-mode .misi-badge {
  background: linear-gradient(135deg, #0284c7 0%, #2563eb 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 4px 14px rgba(2, 132, 199, 0.35) !important;
}

body.night-mode .professional-list li {
  background: rgba(15, 23, 42, 0.4) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #cbd5e1 !important;
}

body.night-mode .professional-list li:hover {
  background: rgba(15, 23, 42, 0.7) !important;
  border-color: rgba(59, 130, 246, 0.4) !important;
}

body.night-mode .professional-list li i {
  color: #60a5fa !important;
}

/* 2. Global Section Headers & Badges */
body.night-mode .section-header h2 {
  color: #ffffff !important;
}

body.night-mode .section-header p {
  color: #94a3b8 !important;
}

body.night-mode .badge-pill {
  background: rgba(96, 165, 250, 0.1) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(96, 165, 250, 0.2) !important;
  box-shadow: 0 0 15px rgba(96, 165, 250, 0.05) !important;
}

/* 3. Shape Dividers (Transitions) */
body.night-mode .custom-shape-divider-top .shape-fill,
body.night-mode .custom-shape-divider-bottom .shape-fill {
  fill: #0b0f19 !important;
  /* Match dark space navy instead of white */
  transition: fill 0.4s ease;
}

/* 4. Features Slider Section */
body.night-mode .features-slider-section,
body.night-mode .management-section {
  background-color: #0b0f19 !important;
}

body.night-mode .slide-content-wrapper {
  background: #1e293b !important;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4) !important;
}

body.night-mode .slide-text h2 {
  color: #ffffff !important;
}

body.night-mode .slide-text p {
  color: #cbd5e1 !important;
}

body.night-mode .slider-btn {
  background: rgba(30, 41, 59, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  color: #93c5fd !important;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.4) !important;
}

body.night-mode .slider-btn:hover {
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%) !important;
  border-color: #3b82f6 !important;
  color: #ffffff !important;
  box-shadow: 0 12px 30px rgba(59, 130, 246, 0.45) !important;
}

body.night-mode .dot {
  background: #334155 !important;
}

body.night-mode .dot.active {
  background: linear-gradient(135deg, #3b82f6 0%, #60a5fa 100%) !important;
  box-shadow: 0 4px 14px rgba(59, 130, 246, 0.5) !important;
}

/* 5. Video Section */
body.night-mode .video-section {
  background-color: #0b0f19 !important;
}

/* 6. Management Section */
body.night-mode .management-section {
  background-color: #0b0f19 !important;
}

body.night-mode .staff-card-home {
  background: #1e293b !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.4) !important;
}

body.night-mode .staff-content {
  background: transparent !important;
}

body.night-mode .staff-photo-box {
  background: #0b0f19 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

body.night-mode .staff-name {
  color: #ffffff !important;
}

body.night-mode .staff-role {
  background: linear-gradient(135deg, rgba(96, 165, 250, 0.15) 0%, rgba(96, 165, 250, 0.05) 100%) !important;
  color: #60a5fa !important;
  border: 1px solid rgba(96, 165, 250, 0.25) !important;
}

/* 7. Info / Partner Section */
body.night-mode .visi-misi-section,
body.night-mode .features-slider-section,
body.night-mode .management-section,
body.night-mode .info-section,
body.night-mode .partner-section {
  background-color: #0b0f19 !important;
  background-image: none !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
}

body.night-mode .info-card,
body.night-mode .vm-card {
  background: #1e293b !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 15px 35px rgba(0, 0, 0, 0.35) !important;
}

body.night-mode .card-icon,
body.night-mode .vm-icon-box {
  background: rgba(96, 165, 250, 0.15) !important;
  color: #60a5fa !important;
  border-color: rgba(96, 165, 250, 0.25) !important;
}

body.night-mode .link-arrow {
  background: rgba(96, 165, 250, 0.15) !important;
  color: #60a5fa !important;
}

/* Partner box — hapus background putih di dark mode */
body.night-mode .partner-box {
  background: transparent !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
  box-shadow: none !important;
}

body.night-mode .partner-box:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(0, 87, 255, 0.4) !important;
  box-shadow: 0 8px 24px rgba(0, 87, 255, 0.15) !important;
}

/* Hilangkan putih-putih di ujung kiri/kanan slider saat dark mode */
body.night-mode .partner-section {
  background: #0b0f19 !important;
  border-color: rgba(255, 255, 255, 0.06) !important;
}

body.night-mode .partner-section .slider::before,
body.night-mode .partner-section .slider::after {
  background: linear-gradient(to right,
      #0b0f19 0%,
      rgba(11, 15, 25, 0) 100%) !important;
}

@media (max-width: 900px) {
  .hero-section {
    margin-top: -44px !important;
    padding: 64px 0 50px !important;
    min-height: 100vh !important;
    min-height: 100dvh !important;
  }

  .hero-content {
    padding: 0;
    max-width: 100%;
    margin: 0 auto;
    text-align: center;
  }

  .hero-eyebrow {
    margin: 0 auto 10px auto;
    display: inline-flex;
    align-self: center;
    font-size: 0.72rem;
    padding: 4px 14px;
  }

  .hero-content h1 {
    font-size: 1.85rem;
    line-height: 1.25;
    margin-bottom: 10px;
    text-align: center;
    max-width: 100%;
  }

  .hero-content p {
    font-size: 0.84rem;
    line-height: 1.5;
    color: rgba(241, 245, 249, 0.95);
    background: rgba(15, 23, 42, 0.45);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    padding: 10px 14px;
    border-radius: 10px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    margin: 0 auto;
    text-align: center;
    max-width: 100%;
  }
}

@media (max-width: 768px) {
  .hero-section {
    padding: 35px 0 55px !important;
    min-height: calc(100vh - 44px);
    min-height: calc(100dvh - 44px);
  }

  .hero-bg-img {
    background-position: center 20% !important;
    /* Focus building facade nicely on phone screens */
  }

  .hero-bg-overlay,
  .hero-overlay {
    background: linear-gradient(180deg, rgba(15, 23, 42, 0.4) 0%, rgba(15, 23, 42, 0.65) 50%, rgba(15, 23, 42, 0.85) 100%) !important;
  }

  body.night-mode .hero-bg-overlay,
  body.night-mode .hero-overlay {
    background: linear-gradient(180deg, rgba(11, 15, 25, 0.35) 0%, rgba(11, 15, 25, 0.65) 50%, rgba(11, 15, 25, 0.9) 100%) !important;
  }

  .hero-eyebrow {
    font-size: 0.68rem;
    padding: 3px 12px;
    margin-bottom: 8px;
    letter-spacing: 1px;
    align-self: center;
  }

  .hero-content h1 {
    font-size: 1.62rem;
    line-height: 1.26;
    margin-bottom: 10px;
    text-align: center;
  }

  .hero-content p {
    font-size: 0.8rem;
    line-height: 1.48;
    padding: 9px 12px;
    text-align: center;
  }

  .hero-content .btn-group,
  .hero-section .btn-group,
  .btn-group,
  .hero-buttons {
    display: none !important;
  }

  .slide-text .btn-primary,
  .slide-feature-tag {
    margin-left: auto;
    margin-right: auto;
  }
}

@media (max-width: 480px) {
  .hero-section {
    padding: 30px 0 50px !important;
    min-height: calc(100vh - 44px);
    min-height: calc(100dvh - 44px);
  }

  .hero-content h1 {
    font-size: 1.45rem;
    line-height: 1.25;
    margin-bottom: 8px;
  }

  .hero-content p {
    font-size: 0.78rem;
    line-height: 1.46;
    padding: 8px 10px;
    border-radius: 8px;
  }

  .hero-eyebrow {
    font-size: 0.64rem;
    padding: 3px 10px;
    margin-bottom: 6px;
  }
}

/* Touch feedback for mobile buttons */
.btn-primary:active,
.btn-outline:active,
.slider-btn:active {
  transform: scale(0.97) !important;
}

/* ==========================================================================
   STATIC SLIDE FEATURE TAG
   ========================================================================== */
.slide-feature-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 15px;
  padding: 8px 18px;
  border-radius: 30px;
  background: rgba(37, 99, 235, 0.08);
  border: 1px solid rgba(37, 99, 235, 0.22);
  color: #2563eb;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  width: fit-content;
  box-shadow: 0 4px 12px rgba(37, 99, 235, 0.06);
  transition: all 0.3s ease;
}

.slide-feature-tag i {
  font-size: 0.95rem;
  color: #2563eb;
}

body.night-mode .slide-feature-tag {
  background: rgba(96, 165, 250, 0.12);
  border-color: rgba(96, 165, 250, 0.3);
  color: #60a5fa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
}

body.night-mode .slide-feature-tag i {
  color: #60a5fa;
}

/* ==========================================================================
   COMPACT & EYES-PLEASING MOBILE OPTIMIZATIONS ACROSS ALL HOME SECTIONS
   ========================================================================== */
@media (max-width: 768px) {

  /* Section Spacing & Headers */
  .visi-misi-section,
  .features-slider-section,
  .management-section,
  .info-section,
  .partner-section {
    padding: 24px 0 !important;
  }

  .section-header {
    margin-bottom: 18px !important;
    text-align: center;
  }

  .badge-pill {
    font-size: 0.62rem !important;
    padding: 3px 10px !important;
    margin-bottom: 6px !important;
    letter-spacing: 1px !important;
  }

  .section-header h2 {
    font-size: 1.35rem !important;
    line-height: 1.25 !important;
  }

  /* Visi & Misi Cards Mobile Optimization */
  .visi-misi-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  .vm-card {
    padding: 16px 14px !important;
    border-radius: 14px !important;
  }

  .vm-card-top {
    gap: 10px !important;
    margin-bottom: 12px !important;
  }

  .vm-icon-box {
    width: 38px !important;
    height: 38px !important;
    min-width: 38px !important;
    font-size: 1.15rem !important;
    border-radius: 10px !important;
  }

  .vm-sub-label {
    font-size: 0.64rem !important;
    letter-spacing: 0.8px !important;
    margin-bottom: 2px !important;
  }

  .vm-card-title h3 {
    font-size: 1.1rem !important;
    line-height: 1.25 !important;
  }

  .visi-quote-box {
    padding: 12px 14px !important;
    border-radius: 0 12px 12px 0 !important;
    border-left-width: 3px !important;
    margin-bottom: 8px !important;
  }

  .visi-quote-box .quote-icon {
    font-size: 1.2rem !important;
    margin-bottom: 2px !important;
  }

  .visi-quote-box p {
    font-size: 0.82rem !important;
    line-height: 1.48 !important;
  }

  .misi-items-wrapper {
    gap: 8px !important;
  }

  .misi-item-box {
    padding: 10px 12px !important;
    gap: 10px !important;
    border-radius: 10px !important;
  }

  .misi-badge {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.72rem !important;
    border-radius: 6px !important;
    margin-top: 1px !important;
  }

  .misi-item-box p {
    font-size: 0.8rem !important;
    line-height: 1.45 !important;
  }

  /* Features Slider (Super Compact Mobile) */
  .features-slider-section {
    padding: 18px 0 !important;
  }

  .features-slider-section .custom-shape-divider-top,
  .features-slider-section .custom-shape-divider-bottom {
    display: none !important;
  }

  .slider-container {
    padding: 0 4px !important;
  }

  .slide {
    padding: 6px !important;
  }

  .slide-content-wrapper {
    flex-direction: column !important;
    gap: 12px !important;
    padding: 12px !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 20px rgba(30, 58, 138, 0.06) !important;
  }

  .slide-image {
    width: 100% !important;
    display: block !important;
    flex: none !important;
    margin-bottom: 8px !important;
  }

  .slide-image img {
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 16 / 10 !important;
    max-height: 220px !important;
    border-radius: 12px !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
  }

  .slide-text {
    width: 100% !important;
    padding: 0 4px 6px !important;
    text-align: left !important;
  }

  .slide-text h2 {
    font-size: 1.12rem !important;
    line-height: 1.25 !important;
    margin-bottom: 6px !important;
  }

  .slide-text p {
    font-size: 0.76rem !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
  }

  .slide-text .btn-primary {
    padding: 7px 14px !important;
    font-size: 0.76rem !important;
    border-radius: 6px !important;
    margin-top: 6px !important;
    width: fit-content !important;
  }

  .slider-dots {
    margin-top: 14px !important;
    gap: 8px !important;
  }

  .slider-btn {
    display: none !important;
  }

  /* Management & Staff Cards (Compact Mobile Layout) */
  .pimpinan-wrapper,
  .laboran-grid {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    width: 100% !important;
    margin-bottom: 24px !important;
  }

  .staff-card-home {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 10px 14px !important;
    border-radius: 14px !important;
    gap: 12px !important;
    background: #ffffff !important;
    border: 1px solid rgba(226, 232, 240, 0.9) !important;
    box-shadow: 0 4px 14px rgba(30, 58, 138, 0.05) !important;
  }

  body.night-mode .staff-card-home {
    background: #1e293b !important;
    border-color: rgba(255, 255, 255, 0.08) !important;
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2) !important;
  }

  .staff-photo-box {
    width: 56px !important;
    height: 56px !important;
    min-width: 56px !important;
    max-width: 56px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 12px !important;
    border: 2px solid #2563eb !important;
    overflow: hidden !important;
    flex-shrink: 0 !important;
  }

  .staff-photo-box img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
  }

  .staff-content {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
    padding: 0 !important;
    flex: 1 !important;
    min-width: 0 !important;
  }

  .staff-name {
    font-size: 0.76rem !important;
    font-weight: 800 !important;
    color: #0f172a !important;
    margin: 0 0 4px 0 !important;
    min-height: auto !important;
    text-align: left !important;
    line-height: 1.25 !important;
  }

  body.night-mode .staff-name {
    color: #f8fafc !important;
  }

  .staff-role {
    min-height: auto !important;
    width: auto !important;
    max-width: 100% !important;
    font-size: 0.65rem !important;
    padding: 4px 8px !important;
    border-radius: 6px !important;
    gap: 5px !important;
    margin-top: 0 !important;
    text-align: left !important;
    align-self: flex-start !important;
    display: inline-flex !important;
    align-items: center !important;
  }

  .staff-role i {
    font-size: 0.8rem !important;
    flex-shrink: 0 !important;
  }

  .role-text {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  .role-main {
    font-size: 0.65rem !important;
    font-weight: 800 !important;
    line-height: 1.2 !important;
    letter-spacing: 0.3px !important;
  }

  .role-sub {
    font-size: 0.58rem !important;
    font-weight: 600 !important;
    line-height: 1.2 !important;
    opacity: 0.88 !important;
  }

  /* Info & Layanan Cards */
  .info-grid {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }

  .info-card {
    padding: 16px 14px !important;
    border-radius: 12px !important;
  }

  .card-icon {
    width: 38px !important;
    height: 38px !important;
    font-size: 1.1rem !important;
    border-radius: 10px !important;
    margin-bottom: 8px !important;
  }

  .info-card h3 {
    font-size: 0.98rem !important;
    margin-bottom: 4px !important;
  }

  .info-card p {
    font-size: 0.78rem !important;
    line-height: 1.45 !important;
    margin-bottom: 10px !important;
  }

  .link-arrow {
    font-size: 0.76rem !important;
  }

  /* Partner Logo Slider */
  .partner-box {
    height: 50px !important;
    padding: 6px 12px !important;
    border-radius: 8px !important;
  }

  .partner-box img {
    max-height: 30px !important;
  }
}

/* Home: ensure hero remains true fullscreen without bottom seam */
.hero-section {
  margin-top: -64px;
}

@media (max-width: 991px) {
  .hero-section {
    margin-top: -44px !important;
  }
}
