/* ==========================================================================
   MIN 1 KOTA MALANG - OFFICIAL WEBSITE STYLESHEET
   Design System & Astra / Elementor Faithful Reproduction
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800&family=Poppins:wght@400;500;600;700&family=Rubik:wght@300;400;500;600;700&display=swap');

/* --- CSS Variables & Color Palette --- */
:root {
  --primary-color: #1B9C85;
  --primary-dark: #178E79;
  --primary-light: #4EBAA6;
  --primary-soft: #EDF6EE;
  --secondary-color: #0F172A;
  --secondary-light: #1E293B;
  --accent-color: #F59E0B;
  --accent-hover: #D97706;
  --text-dark: #0F172A;
  --text-body: #454F5E;
  --text-muted: #64748B;
  --bg-light: #F8FAFC;
  --bg-white: #FFFFFF;
  --bg-dark: #06140C;
  --bg-dark-surface: #0b1f13;
  --border-color: #E2E8F0;
  --border-light: #F1F5F9;
  
  --font-heading: 'Outfit', sans-serif;
  --font-body: 'Rubik', sans-serif;
  --font-nav: 'Poppins', sans-serif;

  --shadow-sm: 0 2px 4px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.12);
  --shadow-hover: 0 16px 32px rgba(27, 156, 133, 0.15);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 16px;
  --radius-full: 9999px;

  --transition-normal: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 0.15s ease-in-out;
}

/* --- Global Reset & Box Sizing --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1rem;
  line-height: 1.65;
  color: var(--text-body);
  background-color: var(--bg-white);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

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

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

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

button {
  font-family: inherit;
  cursor: pointer;
  border: none;
  outline: none;
  background: none;
}

ul, ol {
  list-style: none;
}

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

.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 20px;
}

/* --- Top Announcement / Contact Bar --- */
.topbar {
  background-color: var(--bg-dark);
  color: #CBD5E1;
  font-size: 0.85rem;
  font-family: var(--font-nav);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  padding: 8px 0;
}

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

.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.topbar-item {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #E2E8F0;
}

.topbar-item i {
  color: var(--primary-color);
}

.topbar-socials {
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-socials a {
  color: #CBD5E1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  font-size: 0.8rem;
  transition: all var(--transition-fast);
}

.topbar-socials a:hover {
  background: var(--primary-color);
  color: #FFFFFF;
  transform: translateY(-2px);
}

/* --- Main Navigation Header is defined in Floating Pill Navbar section --- */

/* --- Hero Banner Slider --- */
.hero-slider-section {
  position: relative;
  background-color: #F8F9FA;
  background-image: 
    linear-gradient(to right, rgba(203, 213, 225, 0.45) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(203, 213, 225, 0.45) 1px, transparent 1px);
  background-size: 32px 32px;
  overflow: hidden;
  min-height: 580px;
  margin-top: -82px; /* Mentok ke paling atas layar, di belakang floating navbar */
  padding-top: 0;
  z-index: 1;
}

.hero-slider-track {
  position: relative;
  width: 100%;
  height: 640px; /* Dipertinggi mencakup area belakang navbar */
}

/* --- Utility Visually Hidden --- */
.visually-hidden {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* --- Hero Lottie Slide & Background --- */
.hero-slide.hero-slide-lottie {
  display: block !important;
  background-color: transparent !important;
  width: 100%;
  height: 100%;
}

.hero-lottie-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
  display: flex;
  align-items: flex-start; /* Gambar dan elemen hero menempel rapi ke atas */
  justify-content: center;
  background-color: transparent !important;
  overflow: hidden;
}

.hero-lottie-bg svg {
  transform-origin: top center;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}

.hero-slider-section:hover .hero-lottie-bg svg {
  transform: translateY(-8px) scale(1.008); /* Efek naik ke atas saat di-hover */
}

/* ============================================================
   LUNAR 3D FLOATING TROPHIES (PIALA 3D MELAYANG SEPERTI DI BULAN)
   Pinggir Kiri dan Kanan Layar / Hero
============================================================ */
.lunar-trophy-layer {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 12;
  overflow: visible;
}

.lunar-trophy-pod {
  position: absolute;
  top: 45%; /* Seimbang vertikal di samping area hero */
  transform: translateY(-50%);
  width: 180px;
  height: 240px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  pointer-events: auto;
  cursor: grab;
  perspective: 1200px;
  user-select: none;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.lunar-trophy-pod:hover {
  transform: translateY(-65px) scale(1.08); /* Naikkan mentok atas saat kursor mendekat */
}

.lunar-trophy-pod:active {
  cursor: grabbing;
}

.lunar-trophy-pod.left {
  left: 36px;
}

.lunar-trophy-pod.right {
  right: 36px;
}

@media (min-width: 1500px) {
  .lunar-trophy-pod.left {
    left: calc((100vw - 1380px) / 2 + 10px);
  }
  .lunar-trophy-pod.right {
    right: calc((100vw - 1380px) / 2 + 10px);
  }
}

/* 3D Zero-Gravity Orbit Stage */
.lunar-trophy-zero-g {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.25s cubic-bezier(0.2, 0.9, 0.4, 1.1);
}

/* Lunar Floating Animation (Left) - Inersia & Melayang di Bulan */
.zero-g-left {
  animation: moonZeroGLeft 9.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

@keyframes moonZeroGLeft {
  0% {
    transform: translate3d(0, 0, 0) rotateZ(0deg) rotateY(-6deg) rotateX(0deg) scale(1);
  }
  16% {
    transform: translate3d(8px, -20px, 16px) rotateZ(5deg) rotateY(-12deg) rotateX(6deg) scale(1.02);
  }
  32% {
    transform: translate3d(14px, -42px, 30px) rotateZ(9deg) rotateY(-18deg) rotateX(11deg) scale(1.05);
  }
  50% {
    transform: translate3d(3px, -52px, 38px) rotateZ(5deg) rotateY(-14deg) rotateX(8deg) scale(1.06);
  }
  68% {
    transform: translate3d(-10px, -30px, 22px) rotateZ(-3deg) rotateY(-4deg) rotateX(2deg) scale(1.02);
  }
  84% {
    transform: translate3d(-14px, 10px, -10px) rotateZ(-7deg) rotateY(4deg) rotateX(-5deg) scale(0.97);
  }
  100% {
    transform: translate3d(0, 0, 0) rotateZ(0deg) rotateY(-6deg) rotateX(0deg) scale(1);
  }
}

/* Lunar Floating Animation (Right) - Offset & Inverted Orbit */
.zero-g-right {
  animation: moonZeroGRight 10.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  animation-delay: -3.8s;
}

@keyframes moonZeroGRight {
  0% {
    transform: translate3d(0, 0, 0) rotateZ(0deg) rotateY(6deg) rotateX(0deg) scale(1);
  }
  18% {
    transform: translate3d(-10px, -24px, 18px) rotateZ(-5deg) rotateY(13deg) rotateX(-7deg) scale(1.03);
  }
  36% {
    transform: translate3d(-16px, -46px, 32px) rotateZ(-10deg) rotateY(19deg) rotateX(-12deg) scale(1.05);
  }
  54% {
    transform: translate3d(-5px, -54px, 40px) rotateZ(-6deg) rotateY(15deg) rotateX(-9deg) scale(1.06);
  }
  72% {
    transform: translate3d(8px, -26px, 18px) rotateZ(3deg) rotateY(3deg) rotateX(-2deg) scale(1.02);
  }
  88% {
    transform: translate3d(14px, 12px, -12px) rotateZ(8deg) rotateY(-5deg) rotateX(6deg) scale(0.96);
  }
  100% {
    transform: translate3d(0, 0, 0) rotateZ(0deg) rotateY(6deg) rotateX(0deg) scale(1);
  }
}

/* 3D Trophy Image */
.lunar-trophy-3d-asset {
  width: 155px;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 20px 28px rgba(0, 0, 0, 0.38)) drop-shadow(0 0 22px rgba(251, 191, 36, 0.45));
  transition: filter 0.35s ease, transform 0.35s ease;
  -webkit-user-drag: none;
}

.lunar-trophy-pod:hover .lunar-trophy-3d-asset {
  filter: drop-shadow(0 28px 38px rgba(0, 0, 0, 0.48)) drop-shadow(0 0 35px rgba(255, 225, 93, 0.75));
  transform: scale(1.08);
}

/* 3D Spin when Clicked */
.lunar-trophy-zero-g.spin-360 {
  animation: moonSpinFull 1.2s cubic-bezier(0.2, 0.8, 0.3, 1) forwards !important;
}

@keyframes moonSpinFull {
  0% {
    transform: rotateY(0deg) scale(1.05);
  }
  50% {
    transform: rotateY(180deg) translateY(-25px) scale(1.15);
  }
  100% {
    transform: rotateY(360deg) scale(1);
  }
}

/* Lunar Ground / Space Shadow (Breathes with Altitude) */
.lunar-trophy-shadow {
  width: 110px;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(15, 23, 42, 0.45) 0%, transparent 75%);
  border-radius: 50%;
  margin-top: 10px;
  z-index: 1;
  pointer-events: none;
}

.shadow-left {
  animation: moonShadowLeft 9.2s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
}

.shadow-right {
  animation: moonShadowRight 10.6s cubic-bezier(0.45, 0.05, 0.55, 0.95) infinite;
  animation-delay: -3.8s;
}

@keyframes moonShadowLeft {
  0%, 100% {
    transform: scale(1) translateX(0);
    opacity: 0.5;
    filter: blur(5px);
  }
  50% {
    transform: scale(0.55) translateX(8px);
    opacity: 0.15;
    filter: blur(14px);
  }
}

@keyframes moonShadowRight {
  0%, 100% {
    transform: scale(1) translateX(0);
    opacity: 0.5;
    filter: blur(5px);
  }
  54% {
    transform: scale(0.52) translateX(-8px);
    opacity: 0.14;
    filter: blur(14px);
  }
}

/* Glowing Cosmic Halo Aura */
.lunar-trophy-halo {
  position: absolute;
  width: 170px;
  height: 170px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.32) 0%, rgba(27, 156, 133, 0.16) 45%, transparent 70%);
  filter: blur(16px);
  z-index: 0;
  pointer-events: none;
  animation: moonHaloPulse 4.8s ease-in-out infinite;
}

@keyframes moonHaloPulse {
  0%, 100% {
    opacity: 0.45;
    transform: scale(0.9);
  }
  50% {
    opacity: 0.9;
    transform: scale(1.22);
  }
}

/* Floating Stardust / Moon Dust Particles */
.lunar-dust-cluster {
  position: absolute;
  inset: -15px;
  pointer-events: none;
  z-index: 3;
}

.lunar-dust {
  position: absolute;
  color: #FFE15D;
  font-size: 13px;
  filter: drop-shadow(0 0 6px #FFE15D);
}

.lunar-dust.d-1 {
  top: 10%;
  left: 15%;
  animation: moonDustOrbit 5s ease-in-out infinite 0.2s;
}

.lunar-dust.d-2 {
  top: 25%;
  right: 10%;
  animation: moonDustOrbit 6.2s ease-in-out infinite 1.4s;
}

.lunar-dust.d-3 {
  bottom: 25%;
  left: 18%;
  animation: moonDustOrbit 5.6s ease-in-out infinite 2.6s;
}

.lunar-dust.d-4 {
  bottom: 12%;
  right: 22%;
  animation: moonDustOrbit 4.5s ease-in-out infinite 3.8s;
}

@keyframes moonDustOrbit {
  0%, 100% {
    opacity: 0.2;
    transform: translate(0, 0) scale(0.7) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translate(8px, -18px) scale(1.3) rotate(180deg);
  }
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .lunar-trophy-pod {
    width: 135px;
    height: 190px;
  }
  .lunar-trophy-pod.left {
    left: 18px;
  }
  .lunar-trophy-pod.right {
    right: 18px;
  }
  .lunar-trophy-3d-asset {
    width: 120px;
  }
}

@media (max-width: 991px) {
  .lunar-trophy-pod {
    width: 105px;
    height: 150px;
  }
  .lunar-trophy-pod.left {
    left: 10px;
  }
  .lunar-trophy-pod.right {
    right: 10px;
  }
  .lunar-trophy-3d-asset {
    width: 90px;
  }
  .lunar-trophy-shadow {
    width: 75px;
    height: 12px;
  }
}

@media (max-width: 640px) {
  .lunar-trophy-pod {
    width: 72px;
    height: 100px;
    top: 42%;
  }
  .lunar-trophy-pod.left {
    left: 4px;
  }
  .lunar-trophy-pod.right {
    right: 4px;
  }
  .lunar-trophy-3d-asset {
    width: 62px;
  }
  .lunar-trophy-shadow {
    width: 50px;
    height: 8px;
  }
  .lunar-trophy-halo {
    width: 80px;
    height: 80px;
  }
}






.hero-lottie-bg svg {
  width: 100% !important;
  height: 100% !important;
  display: block;
}

.hero-lottie-content {
  position: relative;
  z-index: 5;
  width: 100%;
}

.hero-lottie-actions {
  display: inline-flex;
  gap: 14px;
  flex-wrap: wrap;
  align-items: center;
  margin-left: 20px;
}

.hero-btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: var(--primary-color, #1B9C85);
  color: #FFFFFF !important;
  font-family: var(--font-nav, inherit);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm, 8px);
  transition: all var(--transition-fast, 0.25s);
  box-shadow: 0 4px 15px rgba(27, 156, 133, 0.35);
  text-decoration: none;
}

.hero-btn-primary:hover {
  background: var(--primary-dark, #0F6B5C);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 156, 133, 0.5);
}

.hero-btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 24px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary-color, #1B9C85) !important;
  border: 2px solid var(--primary-color, #1B9C85);
  font-family: var(--font-nav, inherit);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm, 8px);
  backdrop-filter: blur(8px);
  transition: all var(--transition-fast, 0.25s);
  text-decoration: none;
}

.hero-btn-outline:hover {
  background: var(--primary-color, #1B9C85);
  color: #FFFFFF !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(27, 156, 133, 0.35);
}

.hero-btn-accent {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 26px;
  background: #FFE15D;
  color: #1F2937 !important;
  font-family: var(--font-nav, inherit);
  font-weight: 700;
  font-size: 0.95rem;
  border-radius: var(--radius-sm, 8px);
  transition: all var(--transition-fast, 0.25s);
  box-shadow: 0 4px 15px rgba(255, 225, 93, 0.4);
  text-decoration: none;
}

.hero-btn-accent:hover {
  background: #FACC15;
  color: #111827 !important;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(255, 225, 93, 0.55);
}

.hero-slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease-in-out, visibility 0.8s ease-in-out;
  display: flex;
  align-items: center;
}

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

.hero-slide-bg {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  transform: scale(1.04);
  transition: transform 6s ease-out;
}

.hero-slide.active .hero-slide-bg {
  transform: scale(1);
}

.hero-slide-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, rgba(6, 20, 12, 0.85) 0%, rgba(6, 20, 12, 0.5) 60%, rgba(6, 20, 12, 0.2) 100%);
}

.hero-slide-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
  color: #FFFFFF;
  padding: 0 20px;
}

.hero-badge {
  display: inline-block;
  padding: 6px 16px;
  background: rgba(27, 156, 133, 0.9);
  color: #FFFFFF;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  font-family: var(--font-nav);
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.hero-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #FFFFFF;
  margin-bottom: 20px;
  line-height: 1.25;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
}

.hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background-color: var(--primary-color);
  color: #FFFFFF;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  box-shadow: 0 4px 14px rgba(27, 156, 133, 0.4);
}

.hero-btn:hover {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(27, 156, 133, 0.5);
}

/* Slider Controls */
.slider-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 10;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(30, 41, 59, 0.4);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all var(--transition-fast);
  border: 1px solid rgba(255, 255, 255, 0.4);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.18);
}

.slider-arrow:hover {
  background: var(--primary-color);
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.08);
}

.slider-arrow.prev {
  left: 20px;
}

.slider-arrow.next {
  right: 20px;
}

.slider-dots {
  position: absolute;
  bottom: 20px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 10;
  display: flex;
  gap: 8px;
  background: rgba(15, 23, 42, 0.25);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  backdrop-filter: blur(6px);
}

.slider-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.6);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.slider-dot.active {
  background: var(--primary-color);
  width: 32px;
  border-radius: var(--radius-full);
}

/* --- Section Shared Styles --- */
.section {
  padding: 80px 0;
}

.section-bg-alt {
  background-color: var(--bg-light);
}

.section-bg-dark {
  background-color: var(--bg-dark);
  color: #FFFFFF;
}

.section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 50px auto;
}

.section-subtitle {
  color: var(--primary-color);
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  margin-bottom: 8px;
  display: inline-block;
}

.section-title {
  font-size: 2.25rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 16px;
  position: relative;
}

.section-title.white {
  color: #FFFFFF;
}

.section-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.section-divider {
  width: 60px;
  height: 4px;
  background-color: var(--primary-color);
  margin: 14px auto 0 auto;
  border-radius: var(--radius-full);
}

/* --- About / Sambutan Section --- */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1.15fr;
  gap: 60px;
  align-items: center;
}

.about-image-wrapper {
  position: relative;
  text-align: center;
}

.about-image-wrapper img {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  max-width: 480px;
  margin: 0 auto;
  transition: transform var(--transition-normal);
}

.about-image-wrapper:hover img {
  transform: translateY(-4px);
}

.about-badge-float {
  position: absolute;
  bottom: -20px;
  right: 20px;
  background: #FFFFFF;
  padding: 16px 24px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  display: flex;
  align-items: center;
  gap: 12px;
  border-left: 4px solid var(--primary-color);
  text-align: left;
}

.about-badge-float i {
  font-size: 2rem;
  color: var(--primary-color);
}

.about-badge-float .title {
  font-weight: 700;
  font-size: 1.1rem;
  color: var(--text-dark);
}

.about-badge-float .sub {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.about-content .about-tag {
  font-size: 1.1rem;
  color: var(--primary-color);
  font-weight: 700;
  font-family: var(--font-nav);
  margin-bottom: 8px;
}

.about-content h3 {
  font-size: 2.2rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 20px;
  line-height: 1.25;
}

.about-content p {
  font-size: 1.05rem;
  color: var(--text-body);
  margin-bottom: 16px;
  line-height: 1.7;
}

.about-features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin: 24px 0 32px 0;
}

.feature-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  color: var(--text-dark);
}

.feature-item i {
  color: var(--primary-color);
  font-size: 1.1rem;
}

.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 28px;
  background-color: var(--primary-color);
  color: #FFFFFF;
  font-family: var(--font-nav);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.btn-primary:hover {
  background-color: var(--primary-dark);
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 156, 133, 0.3);
}

/* --- Prestasi & Statistik Counter Section --- */
.stats-section {
  background: linear-gradient(135deg, #06140C 0%, #0d2818 100%);
  color: #FFFFFF;
  position: relative;
  overflow: hidden;
}



.stats-bg-decor {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  opacity: 0.15;
  background-image: radial-gradient(#1B9C85 1px, transparent 1px);
  background-size: 24px 24px;
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  margin-bottom: 50px;
}

.stat-card {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(6px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 32px 20px;
  text-align: center;
  transition: all var(--transition-normal);
}

.stat-card:hover {
  transform: translateY(-6px);
  background: rgba(255, 255, 255, 0.09);
  border-color: var(--primary-color);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.stat-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 16px auto;
  border-radius: 50%;
  background: rgba(27, 156, 133, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  font-size: 1.5rem;
}

.stat-number {
  font-family: var(--font-heading);
  font-size: 2.8rem;
  font-weight: 800;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 8px;
}

.stat-label {
  font-family: var(--font-nav);
  font-size: 1rem;
  font-weight: 600;
  color: #CBD5E1;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Big Total Highlight with 3D Floating Trophies (Piala 3D Mengawang) */
.total-prestasi-banner {
  background: linear-gradient(135deg, rgba(9, 51, 44, 0.96) 0%, rgba(17, 94, 89, 0.94) 50%, rgba(9, 51, 44, 0.96) 100%);
  border: 2px solid rgba(255, 225, 93, 0.4);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.35), 0 0 35px rgba(251, 191, 36, 0.2);
  border-radius: 28px;
  padding: 35px 30px;
  display: flex;
  align-items: center;
  justify-content: space-around;
  flex-wrap: wrap;
  gap: 25px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.total-prestasi-banner:hover {
  transform: translateY(-4px);
  border-color: rgba(255, 225, 93, 0.8);
  box-shadow: 0 26px 65px rgba(0, 0, 0, 0.4), 0 0 45px rgba(251, 191, 36, 0.32);
}

.total-prestasi-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  left: -50%;
  width: 200%;
  height: 200%;
  background: radial-gradient(circle at center, rgba(255, 225, 93, 0.08) 0%, transparent 65%);
  pointer-events: none;
  z-index: 0;
  animation: pialaRaysRotate 24s linear infinite;
}

@keyframes pialaRaysRotate {
  0% { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

/* 3D Floating Trophy Wrapper (Piala 3D Mengawang) */
.piala-3d-floating-wrapper {
  position: relative;
  width: 155px;
  height: 185px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  perspective: 1000px;
  z-index: 2;
}

.piala-3d-interactive {
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  transition: transform 0.12s ease-out;
  will-change: transform;
}

.piala-float-anim-1 {
  animation: piala3dFloat 4.2s ease-in-out infinite;
}

.piala-float-anim-2 {
  animation: piala3dFloatReverse 4.6s ease-in-out infinite;
  animation-delay: 0.6s;
}

@keyframes piala3dFloat {
  0% {
    transform: translateY(0px) rotateY(0deg) rotateX(0deg);
  }
  25% {
    transform: translateY(-16px) rotateY(-8deg) rotateX(4deg) scale(1.02);
  }
  50% {
    transform: translateY(-26px) rotateY(0deg) rotateX(0deg) scale(1.04);
  }
  75% {
    transform: translateY(-12px) rotateY(8deg) rotateX(-4deg) scale(1.01);
  }
  100% {
    transform: translateY(0px) rotateY(0deg) rotateX(0deg);
  }
}

@keyframes piala3dFloatReverse {
  0% {
    transform: translateY(0px) rotateY(0deg) rotateX(0deg);
  }
  25% {
    transform: translateY(-15px) rotateY(8deg) rotateX(-4deg) scale(1.02);
  }
  50% {
    transform: translateY(-24px) rotateY(0deg) rotateX(0deg) scale(1.04);
  }
  75% {
    transform: translateY(-10px) rotateY(-8deg) rotateX(4deg) scale(1.01);
  }
  100% {
    transform: translateY(0px) rotateY(0deg) rotateX(0deg);
  }
}

.piala-3d-asset-img {
  width: 132px;
  max-width: 100%;
  height: auto;
  display: block;
  filter: drop-shadow(0 15px 22px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 18px rgba(251, 191, 36, 0.42));
  transition: filter 0.3s ease, transform 0.3s ease;
  user-select: none;
  -webkit-user-drag: none;
}

.piala-3d-floating-wrapper:hover .piala-3d-asset-img {
  filter: drop-shadow(0 22px 30px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 30px rgba(255, 225, 93, 0.7));
}

.piala-3d-floor-shadow {
  width: 105px;
  height: 18px;
  background: radial-gradient(ellipse at center, rgba(0, 0, 0, 0.65) 0%, rgba(0, 0, 0, 0) 75%);
  border-radius: 50%;
  margin-top: 6px;
  z-index: 1;
  animation: piala3dShadow 4.2s ease-in-out infinite;
  pointer-events: none;
}

.piala-3d-floating-wrapper.right .piala-3d-floor-shadow {
  animation: piala3dShadow 4.6s ease-in-out infinite;
  animation-delay: 0.6s;
}

@keyframes piala3dShadow {
  0%, 100% {
    transform: scale(1);
    opacity: 0.65;
    filter: blur(5px);
  }
  50% {
    transform: scale(0.62);
    opacity: 0.25;
    filter: blur(12px);
  }
}

.piala-3d-ambient-glow {
  position: absolute;
  width: 140px;
  height: 140px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(251, 191, 36, 0.35) 0%, rgba(27, 156, 133, 0.18) 50%, transparent 75%);
  filter: blur(14px);
  z-index: 0;
  animation: piala3dGlow 3.5s ease-in-out infinite;
  pointer-events: none;
}

@keyframes piala3dGlow {
  0%, 100% {
    opacity: 0.5;
    transform: scale(0.95);
  }
  50% {
    opacity: 0.95;
    transform: scale(1.2);
  }
}

.piala-3d-sparkle {
  position: absolute;
  color: #FFE15D;
  font-size: 13px;
  pointer-events: none;
  z-index: 3;
  filter: drop-shadow(0 0 6px #FFE15D);
}

.piala-3d-sparkle.sp-1 {
  top: 15%;
  left: 10%;
  animation: pialaSparkle 3s infinite 0.2s;
}
.piala-3d-sparkle.sp-2 {
  top: 25%;
  right: 12%;
  animation: pialaSparkle 3.5s infinite 1.1s;
}
.piala-3d-sparkle.sp-3 {
  bottom: 25%;
  left: 20%;
  animation: pialaSparkle 2.8s infinite 1.8s;
}

@keyframes pialaSparkle {
  0%, 100% {
    opacity: 0;
    transform: translateY(0) scale(0.4) rotate(0deg);
  }
  50% {
    opacity: 1;
    transform: translateY(-16px) scale(1.15) rotate(180deg);
  }
}

.total-trophy {
  max-height: 90px;
  filter: drop-shadow(0 4px 10px rgba(0, 0, 0, 0.3));
}

.total-content {
  text-align: center;
  position: relative;
  z-index: 2;
}

.total-content .title {
  font-size: 1.3rem;
  color: #E2E8F0;
  font-weight: 700;
  font-family: var(--font-nav);
  letter-spacing: 0.5px;
}

.total-content .number {
  font-size: 3.8rem;
  font-weight: 900;
  color: #FBBF24;
  line-height: 1.1;
  text-shadow: 0 0 25px rgba(251, 191, 36, 0.5);
  font-family: 'Outfit', sans-serif;
}

.total-content .sub {
  font-size: 1.25rem;
  color: #FFFFFF;
  font-weight: 600;
}

@media (max-width: 768px) {
  .piala-3d-floating-wrapper {
    width: 110px;
    height: 140px;
  }
  .piala-3d-asset-img {
    width: 95px;
  }
  .piala-3d-floor-shadow {
    width: 75px;
    height: 12px;
  }
}

/* --- Kabar Madrasah (Berita Grid) --- */
.news-header-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  margin-bottom: 40px;
}

.news-header-row .section-title {
  margin-bottom: 0;
  text-align: left;
}

.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-nav);
  font-weight: 600;
  color: var(--primary-color);
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  transition: all var(--transition-fast);
}

.view-all-link:hover {
  background: var(--primary-color);
  color: #FFFFFF;
  transform: translateX(4px);
}

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

.news-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}

.news-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.news-thumb-wrap {
  position: relative;
  overflow: hidden;
  aspect-ratio: 16 / 10;
  background-color: var(--bg-light);
}

.news-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.news-card:hover .news-thumb {
  transform: scale(1.08);
}

.news-category-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: rgba(27, 156, 133, 0.95);
  color: #FFFFFF;
  font-size: 0.75rem;
  font-weight: 600;
  font-family: var(--font-nav);
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  backdrop-filter: blur(4px);
}

.news-body {
  padding: 22px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.news-meta {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-bottom: 12px;
}

.news-meta-item {
  display: flex;
  align-items: center;
  gap: 5px;
}

.news-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.4;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color var(--transition-fast);
}

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

.news-footer {
  margin-top: auto;
  padding-top: 14px;
  border-top: 1px solid var(--border-light);
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-read-more {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--primary-color);
  display: flex;
  align-items: center;
  gap: 6px;
}

.news-card:hover .news-read-more i {
  transform: translateX(4px);
  transition: transform var(--transition-fast);
}

/* --- Layanan Digital Section --- */
.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.service-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 40px 30px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  transition: all var(--transition-normal);
  position: relative;
  overflow: hidden;
}



.service-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: var(--primary-color);
  transform: scaleX(0);
  transition: transform var(--transition-normal);
}

.service-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-hover);
  border-color: rgba(27, 156, 133, 0.3);
}

.service-card:hover::before {
  transform: scaleX(1);
}

.service-icon-wrap {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--primary-soft);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2rem;
  margin: 0 auto 24px auto;
  transition: all var(--transition-normal);
}

.service-card:hover .service-icon-wrap {
  background: var(--primary-color);
  color: #FFFFFF;
  transform: scale(1.1);
}

.service-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
}

.service-desc {
  font-size: 0.95rem;
  color: var(--text-body);
  margin-bottom: 24px;
  line-height: 1.6;
}

.service-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 22px;
  border: 1px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 600;
  font-family: var(--font-nav);
  font-size: 0.9rem;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.service-btn:hover {
  background: var(--primary-color);
  color: #FFFFFF;
}

/* --- Video Profil Section --- */
.video-section {
  position: relative;
  background-color: var(--bg-dark);
  color: #FFFFFF;
}

.video-wrapper {
  position: relative;
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.5);
  cursor: pointer;
  aspect-ratio: 16 / 9;
}

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

.video-wrapper:hover .video-thumb-img {
  transform: scale(1.04);
}

.video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(6, 20, 12, 0.4);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease;
}

.video-wrapper:hover .video-play-overlay {
  background: rgba(6, 20, 12, 0.2);
}

.play-pulse-btn {
  width: 84px;
  height: 84px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  box-shadow: 0 0 0 0 rgba(27, 156, 133, 0.7);
  animation: pulse-green 2s infinite;
  transition: transform var(--transition-fast);
}

.video-wrapper:hover .play-pulse-btn {
  transform: scale(1.15);
}

@keyframes pulse-green {
  0% {
    box-shadow: 0 0 0 0 rgba(27, 156, 133, 0.7);
  }
  70% {
    box-shadow: 0 0 0 24px rgba(27, 156, 133, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(27, 156, 133, 0);
  }
}

/* --- Alumni Testimonials Section --- */
.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}

.testimonial-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--border-color);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  position: relative;
}

.testimonial-card:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-color);
}

.quote-icon {
  font-size: 2.2rem;
  color: var(--primary-light);
  opacity: 0.4;
  margin-bottom: 16px;
}

.testimonial-text {
  font-size: 0.95rem;
  color: var(--text-body);
  line-height: 1.7;
  font-style: italic;
  margin-bottom: 24px;
}

.alumni-profile {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 20px;
  border-top: 1px solid var(--border-light);
}

.alumni-avatar {
  width: 60px;
  height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--primary-color);
  box-shadow: var(--shadow-sm);
}

.alumni-info .name {
  font-family: var(--font-heading);
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-dark);
}

.alumni-info .role {
  font-size: 0.8rem;
  color: var(--text-muted);
  line-height: 1.3;
}

/* --- Footer --- */
.site-footer {
  background-color: var(--bg-dark);
  color: #94A3B8;
  padding-top: 70px;
  border-top: 4px solid var(--primary-color);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.2fr;
  gap: 50px;
  padding-bottom: 60px;
}

.footer-logo {
  height: 48px;
  width: auto;
  margin-bottom: 20px;
}

.footer-widget-title {
  color: #FFFFFF;
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 24px;
  position: relative;
  padding-bottom: 12px;
}

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

.footer-contact-list li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 0.95rem;
  color: #CBD5E1;
}

.footer-contact-list i {
  color: var(--primary-color);
  font-size: 1.1rem;
  margin-top: 3px;
}

.op-hours-table {
  width: 100%;
}

.op-hours-table tr {
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.op-hours-table td {
  padding: 8px 0;
  font-size: 0.95rem;
  color: #CBD5E1;
}

.op-hours-table td.day {
  font-weight: 600;
  color: #FFFFFF;
}

.footer-social-links {
  display: flex;
  gap: 12px;
  margin-top: 20px;
}

.footer-social-links a {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.footer-social-links a:hover {
  background: var(--primary-color);
  transform: translateY(-3px);
}

.site-bottom-footer {
  background-color: #030a06;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.875rem;
  color: #94A3B8;
  text-align: center;
}

/* --- Floating Actions --- */
.floating-actions {
  position: fixed;
  bottom: 30px;
  right: 30px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  z-index: 990;
}

.float-btn {
  width: 50px;
  height: 50px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  box-shadow: var(--shadow-lg);
  transition: all var(--transition-fast);
  color: #FFFFFF;
}

.float-btn.whatsapp {
  background-color: #25D366;
}

.float-btn.whatsapp:hover {
  background-color: #128C7E;
  transform: scale(1.1);
}

.float-btn.back-to-top {
  background-color: var(--primary-color);
  opacity: 0;
  visibility: hidden;
  transform: translateY(10px);
}

.float-btn.back-to-top.visible {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}

.float-btn.back-to-top:hover {
  background-color: var(--primary-dark);
  transform: translateY(-3px);
}

/* --- Modal Components --- */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.8);
  backdrop-filter: blur(6px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: all var(--transition-normal);
  padding: 20px;
}

.modal-overlay.active {
  opacity: 1;
  visibility: visible;
}

.modal-dialog {
  background: #FFFFFF;
  width: 100%;
  max-width: 800px;
  max-height: 90vh;
  border-radius: var(--radius-lg);
  overflow-y: auto;
  position: relative;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
  transform: scale(0.95);
  transition: transform var(--transition-normal);
}

.modal-overlay.active .modal-dialog {
  transform: scale(1);
}

.modal-close-btn {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--bg-light);
  color: var(--text-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  z-index: 10;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background: #EF4444;
  color: #FFFFFF;
}

.modal-body {
  padding: 36px;
}

/* Video Lightbox */
.video-lightbox-dialog {
  max-width: 960px;
  background: #000000;
  border-radius: var(--radius-lg);
  overflow: hidden;
}



.video-responsive-wrap {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}



.video-responsive-wrap iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: none;
}

/* Search Modal */
.search-dialog {
  max-width: 600px;
}

.search-input-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--bg-light);
  padding: 12px 18px;
  border-radius: var(--radius-md);
  border: 2px solid var(--border-color);
  margin-bottom: 20px;
}

.search-input-wrap input {
  flex-grow: 1;
  border: none;
  background: transparent;
  outline: none;
  font-size: 1.1rem;
  font-family: inherit;
  color: var(--text-dark);
}

.search-results-list {
  max-height: 350px;
  overflow-y: auto;
}

.search-result-item {
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  display: block;
  transition: background var(--transition-fast);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}

.search-result-item:hover {
  background: var(--primary-soft);
}

.search-result-item .item-title {
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 4px;
}

.search-result-item .item-snippet {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* Mobile Navigation Drawer & Backdrop Overlay */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 2099;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.mobile-drawer-overlay.active {
  opacity: 1;
  visibility: visible;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  left: 0;
  width: 320px;
  max-width: 86vw;
  height: 100%;
  background: #FFFFFF;
  z-index: 2100;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
  transform: translateX(-100%);
  transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
}

.mobile-drawer.active {
  transform: translateX(0);
}

.mobile-drawer-header {
  padding: 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
}

.mobile-drawer-body {
  padding: 16px 0;
  overflow-y: auto;
  flex-grow: 1;
}

.mobile-nav-link {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 24px;
  font-family: var(--font-nav);
  font-weight: 600;
  color: var(--text-dark);
  border-bottom: 1px solid var(--border-light);
  cursor: pointer;
}

.mobile-sub-menu {
  background: var(--bg-light);
  display: none;
}

.mobile-sub-menu.open {
  display: block;
}

.mobile-sub-menu a {
  display: block;
  padding: 10px 36px;
  font-size: 0.9rem;
  color: var(--text-body);
  border-bottom: 1px solid var(--border-light);
}

/* --- Responsive Media Queries --- */
@media (max-width: 1024px) {
  .news-grid,
  .testimonials-grid,
  .services-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 921px) {
  .main-navigation {
    display: none;
  }

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

  .hero-slider-track {
    height: 480px;
  }

  .hero-slide-lottie {
    padding-bottom: 35px;
  }

  .hero-lottie-actions {
    margin-left: 10px;
    gap: 10px;
  }

  .hero-btn-primary, .hero-btn-outline, .hero-btn-accent {
    padding: 10px 18px;
    font-size: 0.88rem;
  }

  .hero-title {
    font-size: 1.9rem;
  }

  .topbar {
    display: none;
  }
}

@media (max-width: 640px) {
  .news-grid,
  .testimonials-grid,
  .services-grid,
  .stats-grid {
    grid-template-columns: 1fr;
  }

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

  .hero-slider-track {
    height: 440px;
  }

  .hero-slide-lottie {
    padding-bottom: 22px;
  }

  .hero-lottie-actions {
    margin-left: 0;
    justify-content: center;
    width: 100%;
    gap: 8px;
  }

  .hero-btn-primary, .hero-btn-outline, .hero-btn-accent {
    padding: 8px 12px;
    font-size: 0.8rem;
  }

  .hero-title {
    font-size: 1.5rem;
  }

  .section {
    padding: 50px 0;
  }

  .section-title {
    font-size: 1.75rem;
  }

  .total-prestasi-banner {
    flex-direction: column;
    text-align: center;
  }
}

/* ==========================================================================
   PROFIL MADRASAH PAGE STYLES
   Faithful to https://min1kotamalang.sch.id/profil/
   ========================================================================== */

/* --- Page Banner & Breadcrumb (Hidden per request) --- */
.page-banner,
.page-banner-content,
.page-banner-title,
.breadcrumb-nav {
  display: none !important;
}

/* --- Profile Hero / Intro Section --- */
.profil-intro-section {
  padding: 55px 0 75px;
  background-color: #FFFFFF;
}

.profil-intro-container {
  max-width: 1000px;
  margin: 0 auto;
  padding: 0;
  width: 100%;
}

.profil-intro-grid {
  display: grid;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 55px;
  align-items: flex-start;
}

.profil-intro-text {
  display: flex;
  flex-direction: column;
}

.profil-hero-title {
  font-family: var(--font-heading);
  font-size: 3.1rem;
  font-weight: 800;
  line-height: 1.15;
  color: #0F172A;
  margin-bottom: 26px;
  letter-spacing: -0.02em;
}

.profil-hero-desc {
  font-family: var(--font-body);
  font-size: 0.96rem;
  line-height: 1.72;
  color: #64748B;
  margin-bottom: 20px;
  font-weight: 400;
}

.profil-hero-desc:last-child {
  margin-bottom: 0;
}

.profil-intro-media {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  width: 100%;
}

/* Highly Interactive 3D Photo Experience */
.profil-interactive-photo {
  position: relative;
  display: block;
  width: 100%;
  max-width: 420px;
  margin: 0 0 0 auto;
  border-radius: 20px;
  cursor: pointer;
  perspective: 1000px;
  transform-style: preserve-3d;
  will-change: transform, filter;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), filter 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  filter: drop-shadow(0 18px 32px rgba(15, 23, 42, 0.12));
}

.profil-interactive-photo:hover {
  filter: drop-shadow(0 28px 48px rgba(15, 23, 42, 0.22)) drop-shadow(0 12px 24px rgba(27, 156, 133, 0.18));
}

.profil-building-img {
  width: 100%;
  height: auto;
  display: block;
  pointer-events: none;
  user-select: none;
  transform-origin: center center;
}

.profil-photo-sheen {
  position: absolute;
  inset: 0;
  border-radius: 20px;
  background: radial-gradient(circle 300px at var(--glare-x, 50%) var(--glare-y, 50%), rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.08) 50%, transparent 75%);
  pointer-events: none;
  opacity: 0;
  mix-blend-mode: overlay;
  transition: opacity 0.35s ease;
  z-index: 5;
}

.profil-media-caption {
  margin-top: 24px;
  color: #64748B;
  font-size: 0.95rem;
  line-height: 1.72;
  max-width: 420px;
  width: 100%;
}

@media (max-width: 991px) {
  .profil-intro-container {
    max-width: 100%;
  }

  .profil-intro-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }

  .profil-hero-title {
    font-size: 2.6rem;
    margin-bottom: 22px;
  }

  .profil-intro-media {
    align-items: center;
  }

  .profil-interactive-photo {
    max-width: 380px;
    margin: 0 auto;
  }

  .profil-media-caption {
    max-width: 380px;
    text-align: left;
  }
}

@media (max-width: 576px) {
  .profil-hero-title {
    font-size: 2.2rem;
  }
}

/* --- MISI SECTION (Faithful to min1kotamalang.sch.id/logo-visi-dan-misi-madrasah/) --- */
.misi-layout-grid {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 60px;
  align-items: flex-start;
}

.misi-title-col {
  position: sticky;
  top: 110px;
}

.misi-main-heading {
  font-family: var(--font-heading);
  font-size: 3.2rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.1;
  margin: 0 0 16px 0;
  letter-spacing: -0.02em;
}

.misi-heading-bar {
  width: 65px;
  height: 3px;
  background: #0F172A;
  border-radius: 2px;
}

.misi-official-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.misi-official-list li {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.72;
  color: #334155;
}

.misi-num {
  font-family: var(--font-heading);
  font-weight: 800;
  color: #0F172A;
  font-size: 1rem;
  min-width: 24px;
  flex-shrink: 0;
  margin-top: 1px;
}

.misi-text {
  color: #334155;
}

@media (max-width: 768px) {
  .misi-layout-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .misi-title-col {
    position: static;
  }

  .misi-main-heading {
    font-size: 2.5rem;
  }
}

/* --- Interactive History Timeline --- */
.timeline-section {
  padding: 80px 0;
  background: #F8FAFC;
  position: relative;
}

.timeline-container {
  position: relative;
  max-width: 1000px;
  margin: 40px auto 0;
  padding: 20px 0;
}

/* Central vertical line */
.timeline-container::before {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 4px;
  background: linear-gradient(to bottom, var(--primary-color) 0%, #0F172A 100%);
  transform: translateX(-50%);
  border-radius: 2px;
}

.timeline-block {
  display: flex;
  justify-content: flex-end;
  padding-right: 35px;
  position: relative;
  margin-bottom: 50px;
  width: 50%;
}

.timeline-block:nth-child(even) {
  align-self: flex-end;
  justify-content: flex-start;
  padding-left: 35px;
  padding-right: 0;
  margin-left: auto;
}

.timeline-node {
  position: absolute;
  top: 15px;
  right: -14px;
  width: 28px;
  height: 28px;
  background: var(--primary-color);
  border: 4px solid #FFFFFF;
  box-shadow: 0 0 0 3px rgba(27, 156, 133, 0.4);
  border-radius: 50%;
  z-index: 3;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #FFFFFF;
  font-size: 0.7rem;
  transition: transform 0.3s ease, background 0.3s ease;
}

.timeline-block:nth-child(even) .timeline-node {
  left: -14px;
  right: auto;
}

.timeline-block:hover .timeline-node {
  transform: scale(1.25);
  background: #0F172A;
  box-shadow: 0 0 0 5px rgba(27, 156, 133, 0.6);
}

.timeline-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.07);
  border: 1px solid var(--border-color);
  position: relative;
  width: 100%;
  max-width: 450px;
  transition: all var(--transition-normal);
}

.timeline-card::before {
  content: '';
  position: absolute;
  top: 20px;
  right: -10px;
  width: 0;
  height: 0;
  border-top: 10px solid transparent;
  border-bottom: 10px solid transparent;
  border-left: 10px solid #FFFFFF;
}

.timeline-block:nth-child(even) .timeline-card::before {
  right: auto;
  left: -10px;
  border-left: none;
  border-right: 10px solid #FFFFFF;
}

.timeline-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(27, 156, 133, 0.14);
  border-color: var(--primary-light);
}

.timeline-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  font-family: var(--font-nav);
  font-weight: 700;
  font-size: 0.85rem;
  padding: 4px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 12px;
  letter-spacing: 0.3px;
}

.timeline-heading {
  font-size: 1.3rem;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 12px;
  line-height: 1.3;
}

.timeline-text {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
}

/* Responsive timeline for mobile */
@media (max-width: 768px) {
  .timeline-container::before {
    left: 20px;
  }

  .timeline-block,
  .timeline-block:nth-child(even) {
    width: 100%;
    margin-left: 0;
    padding-left: 55px;
    padding-right: 0;
    justify-content: flex-start;
  }

  .timeline-node,
  .timeline-block:nth-child(even) .timeline-node {
    left: 6px;
    right: auto;
  }

  .timeline-card::before,
  .timeline-block:nth-child(even) .timeline-card::before {
    left: -10px;
    right: auto;
    border-left: none;
    border-right: 10px solid #FFFFFF;
  }
}

/* ==========================================================================
   KEPALA MADRASAH DARI MASA KE MASA - HISTORIC HORIZONTAL TIMELINE
   Airy, Uncongested, Faithful to Reference & Matching Site Font System
   ========================================================================== */

.historic-timeline-section {
  padding: 70px 0 90px;
  background: #FFFFFF;
  position: relative;
  overflow: hidden;
}

/* Historic Section Header */
.historic-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}

.historic-subtitle {
  font-family: var(--font-nav);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: #1B9C85;
  display: block;
  margin-bottom: 8px;
}

.historic-title {
  font-family: var(--font-heading);
  font-size: 2.3rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 14px;
  letter-spacing: -0.5px;
  line-height: 1.25;
}

.historic-divider {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 0 auto 16px;
  max-width: 280px;
}

.historic-divider .divider-line {
  flex-grow: 1;
  height: 1.5px;
  background: #E2E8F0;
}

.historic-divider .divider-icon {
  color: #1B9C85;
  font-size: 0.85rem;
}

.historic-desc {
  font-family: var(--font-body);
  font-size: 0.98rem;
  color: #64748B;
  line-height: 1.6;
  margin: 0 auto;
}

/* --- HORIZONTAL TIMELINE SCROLL WRAPPER --- */
.historic-timeline-scroll-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  padding: 30px 15px 35px;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 #F1F5F9;
}

.historic-timeline-scroll-container::-webkit-scrollbar {
  height: 6px;
}

.historic-timeline-scroll-container::-webkit-scrollbar-track {
  background: #F1F5F9;
  border-radius: 10px;
}

.historic-timeline-scroll-container::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 10px;
}

.historic-timeline-scroll-container::-webkit-scrollbar-thumb:hover {
  background: #1B9C85;
}

/* Mobile swipe hint */
.timeline-scroll-hint {
  display: none;
  text-align: center;
  margin-bottom: 20px;
  font-family: var(--font-nav);
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748B;
  background: #F8FAFC;
  padding: 6px 16px;
  border-radius: 20px;
  border: 1px solid #E2E8F0;
  width: fit-content;
  margin-left: auto;
  margin-right: auto;
}

.timeline-scroll-hint i {
  color: #1B9C85;
  margin-right: 4px;
}

/* The horizontal track holding all 7 columns with plenty of breathing room */
.historic-timeline-track {
  min-width: 1100px;
  max-width: 1220px;
  margin: 0 auto;
  position: relative;
  padding-top: 45px;
}

/* --- UPPER ZONE: 7 PHOTO PILLARS (AIRY & SLENDER) --- */
.historic-pillars-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  width: 100%;
  align-items: flex-start;
  height: 380px;
}

.historic-col {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: flex-start;
  height: 100%;
  position: relative;
  z-index: 2;
  transition: transform 0.3s ease;
}

.historic-col:hover {
  z-index: 50;
}

/* Glassmorphism Frame with Frosted Translucent Border & Shimmer Glare */
.pillar-frame {
  width: 112px;
  background: rgba(255, 255, 255, 0.72);
  backdrop-filter: blur(14px) saturate(180%);
  -webkit-backdrop-filter: blur(14px) saturate(180%);
  border-radius: 14px;
  padding: 5px;
  overflow: hidden;
  position: relative;
  box-shadow: 
    0 10px 24px -4px rgba(15, 23, 42, 0.09),
    0 4px 10px -2px rgba(15, 23, 42, 0.04),
    inset 0 1.5px 1.5px rgba(255, 255, 255, 0.95),
    inset 0 -1.5px 1.5px rgba(0, 0, 0, 0.04);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  flex-shrink: 0;
  transform-style: preserve-3d;
  perspective: 750px;
  cursor: pointer;
  transform-origin: center bottom;
  will-change: transform;
  z-index: 10;
}

/* Glass Refraction & Light Sheen Effect */
.pillar-frame::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 52%;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.65) 0%, rgba(255, 255, 255, 0.06) 65%, transparent 100%);
  border-radius: 12px 12px 45px 12px;
  pointer-events: none;
  z-index: 3;
}

/* Staggered varied heights from top to create the rhythmic silhouette */
.pillar-frame.stagger-1 { height: 165px; margin-top: 15px; }
.pillar-frame.stagger-2 { height: 145px; margin-top: 40px; }
.pillar-frame.stagger-3 { height: 160px; margin-top: 25px; }
.pillar-frame.stagger-4 { height: 185px; margin-top: 5px; }  /* center peak */
.pillar-frame.stagger-5 { height: 150px; margin-top: 35px; }
.pillar-frame.stagger-6 { height: 170px; margin-top: 15px; }
.pillar-frame.stagger-7 { height: 180px; margin-top: 5px; }  /* current */

/* Photos inside the frame */
.pillar-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  border-radius: 9px;
  display: block;
  transform-origin: center center;
  transition: filter 0.4s ease, transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

/* Glassmorphism Hover State */
.historic-col:hover .pillar-frame {
  border-color: rgba(27, 156, 133, 0.85);
  box-shadow: 
    0 24px 50px -4px rgba(27, 156, 133, 0.35),
    0 10px 20px -2px rgba(15, 23, 42, 0.15),
    inset 0 2px 3px rgba(255, 255, 255, 1);
}

/* Headmaster Name & Years directly below photo */
.pillar-info {
  margin-top: 12px;
  margin-bottom: 6px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  z-index: 5;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.historic-col:hover .pillar-info {
  transform: translateY(-2px);
}

.pillar-name {
  font-family: var(--font-heading);
  font-size: 0.84rem;
  font-weight: 800;
  color: #0F172A;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  line-height: 1.25;
  margin-bottom: 3px;
  max-width: 135px;
  transition: color 0.3s ease;
}

.historic-col:hover .pillar-name {
  color: #1B9C85;
}

.pillar-years {
  font-family: var(--font-nav);
  font-size: 0.78rem;
  font-weight: 700;
  color: #1E293B;
  letter-spacing: 0.2px;
  line-height: 1.2;
  white-space: nowrap;
}

/* Current leader text highlight */
.historic-col.is-current-leader .pillar-name {
  color: #065F46;
  font-weight: 900;
}

.historic-col.is-current-leader .pillar-years {
  color: #10B981;
  font-weight: 800;
}

.historic-col.is-current-leader:hover .pillar-name {
  color: #10B981;
}

/* MONOCHROME / BLACK & WHITE FILTER FOR PAST HEADMASTERS (STRICTLY B&W, NO HOVER COLOR) */
.pillar-img.bw-filter {
  filter: grayscale(100%) contrast(110%) brightness(96%) !important;
  opacity: 0.92;
}

.historic-col:hover .pillar-img.bw-filter {
  filter: grayscale(100%) contrast(115%) brightness(100%) !important; /* STAYS B&W! */
  opacity: 1;
}

/* CURRENT HEADMASTER (COLUMN 7) - EMERALD GLASSMORPHISM */
.pillar-frame.current-frame {
  background: rgba(16, 185, 129, 0.12);
  backdrop-filter: blur(16px) saturate(200%);
  -webkit-backdrop-filter: blur(16px) saturate(200%);
  border: 2px solid rgba(16, 185, 129, 0.7);
  box-shadow: 
    0 12px 30px -4px rgba(16, 185, 129, 0.28),
    inset 0 1.5px 2px rgba(255, 255, 255, 0.95);
}

.historic-col:hover .pillar-frame.current-frame {
  border-color: #10B981;
  box-shadow: 
    0 22px 42px -4px rgba(16, 185, 129, 0.4),
    inset 0 1.5px 2.5px rgba(255, 255, 255, 1);
}

.pillar-img.color-active {
  filter: none !important; /* ONLY CURRENT HEADMASTER IS IN FULL COLOR */
}

.current-badge-ribbon {
  position: absolute;
  top: 6px;
  right: 6px;
  background: linear-gradient(135deg, #10B981, #059669);
  color: #FFFFFF;
  font-family: var(--font-nav);
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 2px 7px;
  border-radius: 8px;
  box-shadow: 0 2px 6px rgba(16, 185, 129, 0.4);
  z-index: 2;
}

/* Long, elegant vertical dashed stem line connecting photo bottom to the axis */
.pillar-stem-line {
  width: 0;
  border-left: 2px dashed #CBD5E1;
  flex-grow: 1;
  margin-top: 10px;
  min-height: 35px;
  opacity: 0.85;
  transition: border-color 0.3s ease;
}

.historic-col:hover .pillar-stem-line {
  border-left-color: #1B9C85;
  opacity: 1;
}

.pillar-stem-line.current-stem {
  border-left: 2px dashed #10B981;
  opacity: 1;
}

/* --- HORIZONTAL TIMELINE AXIS BAR --- */
.historic-axis-bar {
  position: relative;
  width: 100%;
  height: 2px;
  background: #CBD5E1;
  margin: 0 0 22px 0;
}

.axis-nodes-row {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 20px;
  width: 100%;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  pointer-events: none;
}

/* The solid circular milestone node */
.axis-node-dot {
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: #334155;
  border: 2.5px solid #FFFFFF;
  box-shadow: 0 0 0 1px #94A3B8;
  margin: 0 auto;
  pointer-events: auto;
  transition: all 0.25s ease;
  position: relative;
}

.historic-col:hover ~ .historic-axis-bar .axis-node-dot,
.axis-node-dot:hover {
  transform: scale(1.3);
  background: #1B9C85;
  box-shadow: 0 0 0 2px #1B9C85;
}

/* Current Leader Dot (Emerald + Pulse) */
.axis-node-dot.is-current {
  width: 15px;
  height: 15px;
  background: #10B981;
  border-color: #FFFFFF;
  box-shadow: 0 0 0 2px #10B981, 0 0 10px rgba(16, 185, 129, 0.5);
}

.axis-node-dot.is-current .node-ring {
  position: absolute;
  top: -4px;
  left: -4px;
  right: -4px;
  bottom: -4px;
  border-radius: 50%;
  border: 1.5px solid #10B981;
  animation: pulseNodeRing 2s infinite ease-out;
}

@keyframes pulseNodeRing {
  0% { transform: scale(0.9); opacity: 1; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* --- LOWER ZONE: DETAILS & DESCRIPTIONS (HIDDEN / ULTRA CLEAN) --- */
.historic-details-row {
  display: none !important;
}

.historic-detail-col {
  text-align: center;
  padding: 0 4px;
}

.historic-detail-col .leader-name {
  font-family: var(--font-heading);
  font-size: 0.94rem;
  font-weight: 700;
  color: #0F172A;
  line-height: 1.3;
  margin: 0 0 3px;
}

.historic-detail-col .leader-era-label {
  font-family: var(--font-nav);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: #1B9C85;
  margin-bottom: 6px;
}

.historic-detail-col .leader-bio {
  font-family: var(--font-body);
  font-size: 0.78rem;
  color: #64748B;
  line-height: 1.5;
  margin: 0 auto;
}

/* Current leader text highlight */
.historic-detail-col.is-current-leader .current-name {
  color: #065F46;
  font-weight: 800;
}

.historic-detail-col.is-current-leader .current-label {
  color: #10B981;
  font-weight: 700;
}

.historic-detail-col.is-current-leader .current-bio {
  color: #334155;
  font-weight: 500;
}

/* --- RESPONSIVE MEDIA QUERIES --- */
@media (max-width: 1180px) {
  .timeline-scroll-hint {
    display: block;
  }
}

@media (max-width: 768px) {
  .historic-timeline-section {
    padding: 50px 0 70px;
  }
  
  .historic-title {
    font-size: 1.9rem;
  }
}

/* ==========================================================================
   TIM MANAJEMEN - 3 DI ATAS & 2 DI BAWAH (REFERENCE INSPIRATION)
   ========================================================================== */
.tim-manajemen-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
  max-width: 960px;
  margin: 36px auto 0;
  width: 100%;
}

.tim-row-top {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  width: 100%;
}

.tim-row-bottom {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
  width: 100%;
  max-width: 631px;
  margin: 0 auto;
}

@media (max-width: 860px) {
  .tim-row-top {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }
  .tim-row-bottom {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 100%;
  }
}

@media (max-width: 580px) {
  .tim-row-top,
  .tim-row-bottom {
    grid-template-columns: 1fr;
    gap: 18px;
    max-width: 320px;
    margin: 0 auto;
  }
}

.tim-manajemen-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 18px;
  margin-top: 36px;
}

@media (max-width: 1200px) {
  .tim-manajemen-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
  }
}

@media (max-width: 768px) {
  .tim-manajemen-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }
}

@media (max-width: 480px) {
  .tim-manajemen-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

.tim-manajemen-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  background: #FFFFFF;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.06);
  border: 1px solid rgba(226, 232, 240, 0.85);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s ease, border-color 0.4s ease;
  cursor: pointer;
  display: flex;
  flex-direction: column;
}

.tim-manajemen-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 45px rgba(27, 156, 133, 0.16);
  border-color: rgba(27, 156, 133, 0.45);
}

.tim-card-img-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  background: #FFFFFF;
}

.tim-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  filter: none;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  display: block;
}

/* Hover: Smooth zoom in full natural color */
.tim-manajemen-card:hover .tim-card-img {
  transform: scale(1.06);
}

/* Subtle gradient vignette at bottom of image */
.tim-card-img-wrapper::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(15, 23, 42, 0) 50%, rgba(15, 23, 42, 0.45) 100%);
  pointer-events: none;
  opacity: 0.6;
  transition: opacity 0.4s ease;
}

.tim-manajemen-card:hover .tim-card-img-wrapper::after {
  opacity: 0.3;
}

/* GLASS MODE OVERLAY BADGE */
.tim-card-glass-badge {
  position: absolute;
  bottom: 14px;
  left: 14px;
  right: 14px;
  background: rgba(255, 255, 255, 0.90);
  backdrop-filter: blur(16px) saturate(180%);
  -webkit-backdrop-filter: blur(16px) saturate(180%);
  border: 1.5px solid rgba(255, 255, 255, 0.90);
  border-radius: 14px;
  padding: 12px 14px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.10), inset 0 1px 1px rgba(255, 255, 255, 0.8);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
  z-index: 2;
  text-align: center;
}

.tim-manajemen-card:hover .tim-card-glass-badge {
  transform: translateY(-4px);
  background: rgba(255, 255, 255, 0.96);
  border-color: rgba(27, 156, 133, 0.45);
  box-shadow: 0 14px 34px rgba(27, 156, 133, 0.2), inset 0 1px 2px rgba(255, 255, 255, 1);
}

.tim-card-glass-badge .tim-leader-name {
  font-family: var(--font-heading);
  font-size: 0.96rem;
  font-weight: 800;
  color: #0F172A;
  margin: 0 0 4px 0;
  line-height: 1.25;
  letter-spacing: -0.2px;
}

.tim-card-glass-badge .tim-leader-role {
  font-family: var(--font-nav);
  font-size: 0.82rem;
  font-weight: 700;
  color: #1B9C85;
  margin: 0;
  line-height: 1.3;
}

/* Status / Division Tag at top-right */
.tim-card-top-tag {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  color: #FFFFFF;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  padding: 4px 10px;
  border-radius: 9999px;
  border: 1px solid rgba(255, 255, 255, 0.25);
  transition: background 0.3s ease, border-color 0.3s ease;
}

.tim-manajemen-card:hover .tim-card-top-tag {
  background: rgba(27, 156, 133, 0.9);
  border-color: rgba(255, 255, 255, 0.6);
}

/* --- Identity & Fast Facts Section --- */
.identity-section {
  padding: 70px 0;
  background-color: #F8FAFC;
  border-top: 1px solid var(--border-color);
}

.identity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.identity-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  padding: 24px;
  border: 1px solid var(--border-color);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  gap: 16px;
  align-items: flex-start;
  transition: transform var(--transition-normal), box-shadow var(--transition-normal);
}

.identity-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 24px rgba(27, 156, 133, 0.1);
  border-color: var(--primary-light);
}

.identity-icon {
  width: 48px;
  height: 48px;
  border-radius: var(--radius-md);
  background: var(--primary-soft);
  color: var(--primary-color);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  flex-shrink: 0;
}

.identity-card-content h4 {
  font-size: 0.9rem;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.identity-card-content p {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-dark);
  line-height: 1.3;
}

/* ==========================================================================
   LOGIN PORTAL & DASHBOARD CMS STYLES
   For Admin & Penulis Berita
   ========================================================================== */

/* --- Login Page Styles --- */
.login-page-body {
  min-height: 100vh;
  background: radial-gradient(circle at 10% 20%, #06140C 0%, #0F172A 90%);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  position: relative;
  overflow-x: hidden;
}

.login-bg-decor {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: radial-gradient(rgba(27, 156, 133, 0.15) 1px, transparent 1px);
  background-size: 32px 32px;
  pointer-events: none;
}

.login-glow-1 {
  position: absolute;
  top: 10%;
  left: 15%;
  width: 350px;
  height: 350px;
  background: radial-gradient(circle, rgba(27, 156, 133, 0.25) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-glow-2 {
  position: absolute;
  bottom: 10%;
  right: 15%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(78, 186, 166, 0.2) 0%, transparent 70%);
  border-radius: 50%;
  pointer-events: none;
}

.login-wrapper {
  width: 100%;
  max-width: 480px;
  position: relative;
  z-index: 2;
}

.login-card {
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(12px);
  border-radius: var(--radius-lg);
  padding: 40px 36px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.login-header {
  text-align: center;
  margin-bottom: 28px;
}

.login-logo {
  height: 60px;
  margin: 0 auto 14px;
  display: block;
}

.login-title {
  font-size: 1.6rem;
  color: var(--text-dark);
  font-weight: 700;
  margin-bottom: 6px;
}

.login-subtitle {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Role Selector Tabs */
.role-tabs {
  display: flex;
  background: #F1F5F9;
  padding: 4px;
  border-radius: var(--radius-md);
  margin-bottom: 24px;
  border: 1px solid var(--border-color);
}

.role-tab-btn {
  flex: 1;
  padding: 10px 12px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.role-tab-btn.active {
  background: #FFFFFF;
  color: var(--primary-color);
  box-shadow: var(--shadow-sm);
}

/* Form Styles */
.form-group-login {
  margin-bottom: 20px;
  position: relative;
}

.form-label-login {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 8px;
  font-family: var(--font-nav);
}

.input-with-icon {
  position: relative;
  display: flex;
  align-items: center;
}

.input-icon-left {
  position: absolute;
  left: 14px;
  color: var(--text-muted);
  font-size: 1rem;
}

.input-control-login {
  width: 100%;
  padding: 12px 14px 12px 42px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-md);
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text-dark);
  transition: all var(--transition-fast);
  background: #FFFFFF;
}

.input-control-login:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(27, 156, 133, 0.15);
}

.password-toggle-btn {
  position: absolute;
  right: 14px;
  color: var(--text-muted);
  font-size: 1rem;
  cursor: pointer;
}

.form-options-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  margin-bottom: 24px;
}

.remember-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text-body);
  cursor: pointer;
}

.forgot-pwd-link {
  color: var(--primary-color);
  font-weight: 600;
}

.forgot-pwd-link:hover {
  text-decoration: underline;
}

.btn-submit-login {
  width: 100%;
  background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
  color: #FFFFFF;
  font-size: 1rem;
  font-weight: 700;
  font-family: var(--font-nav);
  padding: 13px;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(27, 156, 133, 0.35);
  transition: all var(--transition-fast);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}

.btn-submit-login:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 156, 133, 0.45);
}

/* Demo Credentials Box */
.demo-accounts-box {
  margin-top: 24px;
  background: #F8FAFC;
  border: 1px dashed #CBD5E1;
  border-radius: var(--radius-md);
  padding: 16px;
  font-size: 0.82rem;
}

.demo-title {
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.demo-pills {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.demo-pill-btn {
  background: #FFFFFF;
  border: 1px solid var(--border-color);
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.demo-pill-btn:hover {
  background: var(--primary-soft);
  border-color: var(--primary-color);
}

.login-back-home {
  text-align: center;
  margin-top: 22px;
  font-size: 0.88rem;
}

.login-back-home a {
  color: #CBD5E1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
}

.login-back-home a:hover {
  color: #FFFFFF;
}

/* --- Dashboard CMS Styles --- */
.dashboard-page-body {
  background-color: #F1F5F9;
  min-height: 100vh;
  display: flex;
}

.dashboard-sidebar {
  width: 260px;
  background: #0F172A;
  color: #E2E8F0;
  display: flex;
  flex-direction: column;
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  z-index: 100;
  transition: transform var(--transition-normal);
}

.dashboard-sidebar-header {
  padding: 24px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-logo {
  height: 40px;
}

.dashboard-brand-text {
  font-size: 0.95rem;
  font-weight: 700;
  color: #FFFFFF;
  line-height: 1.2;
}

.dashboard-brand-sub {
  font-size: 0.75rem;
  color: var(--primary-light);
  font-weight: 500;
}

.dashboard-user-box {
  padding: 16px 20px;
  background: rgba(255, 255, 255, 0.04);
  margin: 16px 14px 8px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid rgba(255, 255, 255, 0.06);
}

.user-avatar-circle {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: var(--primary-color);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}

.user-info-text {
  overflow: hidden;
}



.user-name-display {
  font-size: 0.9rem;
  font-weight: 700;
  color: #FFFFFF;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.user-role-badge {
  display: inline-block;
  background: rgba(27, 156, 133, 0.3);
  color: #4EBAA6;
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dashboard-nav-list {
  padding: 12px 14px;
  flex-grow: 1;
  overflow-y: auto;
}

.dashboard-nav-item {
  margin-bottom: 4px;
}

.dashboard-nav-link {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 11px 16px;
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  font-weight: 600;
  color: #94A3B8;
  transition: all var(--transition-fast);
  cursor: pointer;
}

.dashboard-nav-link:hover {
  background: rgba(255, 255, 255, 0.06);
  color: #FFFFFF;
}

.dashboard-nav-link.active {
  background: var(--primary-color);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(27, 156, 133, 0.3);
}

.dashboard-nav-link i {
  font-size: 1.1rem;
  width: 20px;
}

.dashboard-sidebar-footer {
  padding: 16px 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.dashboard-logout-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-md);
  color: #EF4444;
  font-weight: 600;
  font-size: 0.9rem;
  transition: background var(--transition-fast);
}

.dashboard-logout-btn:hover {
  background: rgba(239, 68, 68, 0.1);
}

/* Dashboard Main Content */
.dashboard-main-content {
  margin-left: 260px;
  flex-grow: 1;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  width: calc(100% - 260px);
}

.dashboard-topbar {
  background: #FFFFFF;
  height: 70px;
  padding: 0 30px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 50;
}

.topbar-page-title h2 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text-dark);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 16px;
}

.btn-view-website {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--bg-light);
  color: var(--text-dark);
  font-size: 0.85rem;
  font-weight: 600;
  padding: 8px 14px;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.btn-view-website:hover {
  background: var(--primary-soft);
  color: var(--primary-color);
  border-color: var(--primary-color);
}

.dashboard-body-inner {
  padding: 30px;
  flex-grow: 1;
}

/* Stat Cards */
.stats-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 30px;
}

.stat-widget-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  padding: 22px;
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.stat-widget-info .stat-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-muted);
  margin-bottom: 4px;
}

.stat-widget-info .stat-value {
  font-size: 1.8rem;
  font-weight: 800;
  color: var(--text-dark);
}

.stat-widget-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.stat-widget-icon.emerald {
  background: var(--primary-soft);
  color: var(--primary-color);
}

.stat-widget-icon.blue {
  background: #EFF6FF;
  color: #3B82F6;
}

.stat-widget-icon.amber {
  background: #FEF3C7;
  color: #D97706;
}

.stat-widget-icon.purple {
  background: #F3E8FF;
  color: #9333EA;
}

/* CMS Content Cards */
.cms-panel-card {
  background: #FFFFFF;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-color);
  box-shadow: var(--shadow-sm);
  margin-bottom: 30px;
  overflow: hidden;
}



.cms-panel-header {
  padding: 20px 24px;
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
}

.cms-panel-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
}

.cms-panel-body {
  padding: 24px;
}

/* Form Styles for Article Editor */
.editor-grid-layout {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 24px;
}

.form-group-cms {
  margin-bottom: 20px;
}

.form-label-cms {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-dark);
  margin-bottom: 6px;
}

.form-control-cms {
  width: 100%;
  padding: 10px 14px;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  font-family: inherit;
  font-size: 0.95rem;
  color: var(--text-dark);
  background: #FFFFFF;
  transition: border-color var(--transition-fast);
}

.form-control-cms:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(27, 156, 133, 0.12);
}

textarea.form-control-cms {
  resize: vertical;
  min-height: 200px;
  line-height: 1.6;
}

.image-preview-box {
  width: 100%;
  height: 180px;
  border-radius: var(--radius-md);
  border: 2px dashed var(--border-color);
  background: var(--bg-light);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  margin-top: 10px;
  position: relative;
}

.image-preview-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* CMS Data Table */
.cms-table-wrapper {
  overflow-x: auto;
}

.cms-data-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
}

.cms-data-table th {
  background: var(--bg-light);
  padding: 12px 16px;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  color: var(--text-muted);
  border-bottom: 1px solid var(--border-color);
}

.cms-data-table td {
  padding: 16px;
  border-bottom: 1px solid var(--border-color);
  font-size: 0.9rem;
  color: var(--text-body);
  vertical-align: middle;
}

.cms-data-table tbody tr:hover {
  background: #F8FAFC;
}

.table-article-title {
  font-weight: 700;
  color: var(--text-dark);
  max-width: 320px;
}

.status-badge {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  font-weight: 700;
}

.status-badge.published {
  background: #DCFCE7;
  color: #166534;
}

.status-badge.draft {
  background: #FEF3C7;
  color: #B45309;
}

.action-btn-group {
  display: flex;
  gap: 8px;
}

.table-action-btn {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.table-action-btn.edit {
  background: #EFF6FF;
  color: #2563EB;
}

.table-action-btn.edit:hover {
  background: #DBEAFE;
}

.table-action-btn.delete {
  background: #FEF2F2;
  color: #DC2626;
}

.table-action-btn.delete:hover {
  background: #FEE2E2;
}

.table-action-btn.view {
  background: #F0FDF4;
  color: #16A34A;
}

.table-action-btn.view:hover {
  background: #DCFCE7;
}

@media (max-width: 1024px) {
  .stats-cards-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  
  .editor-grid-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .dashboard-sidebar {
    transform: translateX(-100%);
  }

  .dashboard-sidebar.mobile-open {
    transform: translateX(0);
  }

  .dashboard-main-content {
    margin-left: 0;
    width: 100%;
  }

  .stats-cards-grid {
    grid-template-columns: 1fr;
  }
}




/* --- Media Manager CMS Styles --- */
.media-manager-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin-top: 20px;
}

.media-item-card {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 22px;
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: all var(--transition-normal);
}

.media-item-card:hover {
  border-color: var(--primary-color);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.media-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.media-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-dark);
  display: flex;
  align-items: center;
  gap: 8px;
}

.media-card-badge {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  background: var(--primary-soft);
  color: var(--primary-dark);
}

.media-preview-container {
  width: 100%;
  height: 190px;
  background: #F8FAFC;
  border: 2px dashed #CBD5E1;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}

.media-preview-img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  transition: transform 0.3s ease;
}

.media-preview-container:hover .media-preview-img {
  transform: scale(1.04);
}

.media-controls-row {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.media-file-upload-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 9px 14px;
  background: #F1F5F9;
  border: 1px solid #CBD5E1;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text-dark);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.media-file-upload-btn:hover {
  background: #E2E8F0;
  color: var(--primary-color);
}

.media-url-input {
  width: 100%;
  padding: 9px 12px;
  font-size: 0.85rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  background: #FFFFFF;
  color: var(--text-dark);
  outline: none;
  font-family: inherit;
}

.media-url-input:focus {
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(27, 156, 133, 0.15);
}

.media-actions-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border-light);
}

.media-save-bar {
  background: #FFFFFF;
  border-radius: var(--radius-md);
  border: 1px solid var(--border-color);
  padding: 18px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 28px;
  box-shadow: var(--shadow-sm);
  flex-wrap: wrap;
  gap: 14px;
}

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

/* --- Dashboard Sidebar Sub-menu Styles --- */
.dashboard-sub-nav-list {
  display: none;
  background: rgba(0, 0, 0, 0.15);
  border-radius: var(--radius-sm);
  margin: 4px 0 8px 12px;
  padding: 6px 0;
  border-left: 2px solid var(--primary-color);
}

.dashboard-sub-nav-list.open {
  display: block;
}

.dashboard-sub-nav-link {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  font-size: 0.85rem;
  font-weight: 500;
  color: #CBD5E1;
  text-decoration: none;
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
  cursor: pointer;
}

.dashboard-sub-nav-link:hover,
.dashboard-sub-nav-link.active {
  color: #FFFFFF;
  background: rgba(27, 156, 133, 0.25);
}

.dashboard-sub-nav-link i {
  font-size: 0.8rem;
  color: var(--primary-light);
  width: 14px;
}

/* --- Media Filter Pills / Sub-Tabs --- */
.media-filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: 20px 0 10px 0;
  border-bottom: 1px solid var(--border-color);
  padding-bottom: 14px;
}

.media-filter-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 18px;
  background: #F8FAFC;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-body);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.media-filter-btn:hover {
  background: var(--primary-soft);
  color: var(--primary-color);
  border-color: rgba(27, 156, 133, 0.3);
}

.media-filter-btn.active {
  background: var(--primary-color);
  color: #FFFFFF;
  border-color: var(--primary-color);
  box-shadow: 0 2px 8px rgba(27, 156, 133, 0.35);
}

.media-filter-btn .badge-count {
  background: rgba(0, 0, 0, 0.12);
  padding: 2px 7px;
  border-radius: 10px;
  font-size: 0.75rem;
}

.media-filter-btn.active .badge-count {
  background: rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
}

.media-section-group-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--text-dark);
  margin: 28px 0 14px 0;
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--primary-soft);
}

/* ==========================================================================
   WORDPRESS (WP-ADMIN) AUTHENTIC THEME FOR MIN 1 KOTA MALANG DASHBOARD
   ========================================================================== */

.wp-admin-body {
  background-color: #f0f0f1;
  color: #3c434a;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
  font-size: 13px;
  line-height: 1.4em;
  margin: 0;
  padding: 0;
}

/* --- 1. Top Admin Bar (#wpadminbar) --- */
.wp-admin-bar {
  background: #1d2327;
  color: #c3c4c7;
  height: 32px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  padding: 0 10px;
}

.wp-admin-bar-left, .wp-admin-bar-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.wp-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #c3c4c7;
  text-decoration: none;
  padding: 0 8px;
  height: 32px;
  line-height: 32px;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.wp-bar-item:hover {
  background: #2c3338;
  color: #72aee6;
}

.wp-logo-icon {
  font-size: 15px;
  color: #f0f0f1;
}

/* --- 2. Left Admin Menu (#adminmenuback & #adminmenu) --- */
.wp-admin-sidebar {
  width: 160px;
  background: #1d2327;
  position: fixed;
  top: 32px;
  bottom: 0;
  left: 0;
  z-index: 9999;
  overflow-y: auto;
  padding-top: 10px;
}

.wp-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-menu-item {
  position: relative;
  margin-bottom: 2px;
}

.wp-menu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  color: #c3c4c7;
  text-decoration: none;
  font-size: 13px;
  font-weight: 400;
  transition: all 0.15s;
  cursor: pointer;
}

.wp-menu-link i {
  font-size: 15px;
  width: 18px;
  text-align: center;
  color: #a7aaad;
}

.wp-menu-item:hover > .wp-menu-link,
.wp-menu-item.active > .wp-menu-link {
  background: #2271b1;
  color: #FFFFFF;
}

.wp-menu-item:hover > .wp-menu-link i,
.wp-menu-item.active > .wp-menu-link i {
  color: #FFFFFF;
}

.wp-menu-separator {
  height: 1px;
  background: #2c3338;
  margin: 8px 0;
}

/* Sub-menu (Flyout) */
.wp-submenu {
  background: #2c3338;
  padding: 6px 0;
  display: none;
}

.wp-menu-item.active .wp-submenu,
.wp-menu-item:hover .wp-submenu {
  display: block;
}

.wp-submenu-link {
  display: block;
  padding: 6px 12px 6px 36px;
  color: #c3c4c7;
  font-size: 12px;
  text-decoration: none;
  cursor: pointer;
}

.wp-submenu-link:hover,
.wp-submenu-link.active {
  color: #72aee6;
}

/* --- 3. Main Content Area (#wpbody-content) --- */
.wp-main-content {
  margin-left: 160px;
  margin-top: 32px;
  padding: 20px 24px;
  min-height: calc(100vh - 32px);
}

.wp-page-header {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}

.wp-page-title {
  font-size: 23px;
  font-weight: 400;
  margin: 0;
  color: #1d2327;
}

.wp-btn-primary {
  background: #2271b1;
  border-color: #2271b1;
  color: #FFFFFF;
  padding: 4px 12px;
  font-size: 13px;
  line-height: 2;
  border-radius: 3px;
  border: 1px solid #2271b1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  text-decoration: none;
}

.wp-btn-primary:hover {
  background: #135e96;
  border-color: #135e96;
  color: #FFFFFF;
}

.wp-btn-secondary {
  background: #f6f7f7;
  border-color: #dcdcde;
  color: #2271b1;
  padding: 4px 12px;
  font-size: 13px;
  line-height: 2;
  border-radius: 3px;
  border: 1px solid #c3c4c7;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 500;
  text-decoration: none;
}

.wp-btn-secondary:hover {
  background: #f0f0f1;
  border-color: #0a4b78;
  color: #0a4b78;
}

/* --- 4. WordPress Customizer / Page Content Editor --- */
.wp-customizer-box {
  background: #FFFFFF;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  border-radius: 3px;
  margin-bottom: 20px;
}

.wp-customizer-header {
  padding: 12px 18px;
  border-bottom: 1px solid #c3c4c7;
  background: #f8f9fa;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wp-customizer-header h3 {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: #1d2327;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wp-customizer-body {
  padding: 20px;
}

.wp-setting-row {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 20px;
  padding: 16px 0;
  border-bottom: 1px solid #f0f0f1;
  align-items: start;
}

.wp-setting-row:last-child {
  border-bottom: none;
}

.wp-setting-label {
  font-weight: 600;
  color: #1d2327;
  font-size: 13px;
}

.wp-setting-desc {
  font-size: 12px;
  color: #646970;
  margin-top: 4px;
}

.wp-media-uploader-box {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}

.wp-media-preview-frame {
  width: 120px;
  height: 80px;
  border: 1px solid #c3c4c7;
  background: #f0f0f1;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-radius: 3px;
}

.wp-media-preview-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
}

/* --- 5. WordPress Notice / Alerts --- */
.wp-notice {
  background: #FFFFFF;
  border-left: 4px solid #72aee6;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
  padding: 12px 16px;
  margin: 16px 0;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wp-notice.success {
  border-left-color: #00a32a;
}

.wp-notice.warning {
  border-left-color: #dba617;
}

/* --- 6. WordPress Table (#wp-list-table) --- */
.wp-list-table {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border: 1px solid #c3c4c7;
  box-shadow: 0 1px 1px rgba(0,0,0,.04);
}

.wp-list-table th, .wp-list-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid #c3c4c7;
  font-size: 13px;
}

.wp-list-table th {
  font-weight: 600;
  color: #2c3338;
  background: #f6f7f7;
}

.wp-list-table tr:hover {
  background: #f6f7f7;
}

.row-actions {
  font-size: 12px;
  color: #a7aaad;
  padding-top: 4px;
}

.row-actions a {
  color: #2271b1;
  text-decoration: none;
}

.row-actions a:hover {
  color: #135e96;
}

.row-actions a.trash {
  color: #b32d2e;
}

/* --- 7. WordPress Media Modal --- */
.wp-media-modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0,0,0,.7);
  z-index: 160000;
  display: none;
  align-items: center;
  justify-content: center;
}

.wp-media-modal-backdrop.open {
  display: flex;
}

.wp-media-modal-frame {
  background: #FFFFFF;
  width: 90%;
  max-width: 960px;
  height: 85vh;
  border-radius: 4px;
  box-shadow: 0 5px 15px rgba(0,0,0,.7);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}



.wp-media-modal-header {
  padding: 12px 18px;
  border-bottom: 1px solid #dcdcde;
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #f6f7f7;
}

.wp-media-modal-header h2 {
  margin: 0;
  font-size: 18px;
  font-weight: 600;
}

.wp-media-modal-router {
  display: flex;
  gap: 12px;
  padding: 10px 18px 0 18px;
  border-bottom: 1px solid #dcdcde;
  background: #f6f7f7;
}

.wp-media-tab-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #50575e;
  border: 1px solid transparent;
  border-bottom: none;
  cursor: pointer;
  background: none;
}

.wp-media-tab-btn.active {
  background: #FFFFFF;
  border-color: #dcdcde;
  color: #1d2327;
  border-radius: 4px 4px 0 0;
}

.wp-media-modal-content {
  flex-grow: 1;
  padding: 20px;
  overflow-y: auto;
}

.wp-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(110px, 1fr));
  gap: 12px;
}

.wp-media-item {
  width: 100%;
  aspect-ratio: 1;
  border: 2px solid #dcdcde;
  border-radius: 3px;
  overflow: hidden;
  cursor: pointer;
  position: relative;
}

.wp-media-item:hover {
  border-color: #2271b1;
}

.wp-media-item.selected {
  border-color: #2271b1;
  box-shadow: inset 0 0 0 3px #2271b1;
}

.wp-media-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.wp-media-modal-footer {
  padding: 12px 18px;
  border-top: 1px solid #dcdcde;
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  background: #f6f7f7;
}

/* Responsive WP */
@media (max-width: 782px) {
  .wp-admin-sidebar {
    width: 48px;
  }
  .wp-menu-link span {
    display: none;
  }
  .wp-submenu {
    display: none !important;
  }
  .wp-main-content {
    margin-left: 48px;
    padding: 12px;
  }
  .wp-setting-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }
}

/* ==========================================================================
   ULTRA-MODERN & ELEGANT CMS DASHBOARD (WORDPRESS STYLE + MODERN SAAS)
   MIN 1 KOTA MALANG
   ========================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Outfit:wght@500;600;700;800&display=swap');

.wp-admin-body {
  background: #F8FAFC;
  color: #1E293B;
  font-family: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
}

/* --- 1. Top Admin Bar (Modern Dark Glass) --- */
.wp-admin-bar {
  background: rgba(11, 31, 23, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: #E2E8F0;
  height: 48px;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 99999;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.wp-admin-bar-left, .wp-admin-bar-right {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wp-bar-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #CBD5E1;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wp-bar-item:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #FFFFFF;
}

.wp-logo-badge {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(27, 156, 133, 0.2);
  padding: 4px 10px;
  border-radius: 6px;
  border: 1px solid rgba(27, 156, 133, 0.4);
  color: #34D399;
  font-weight: 700;
  font-size: 13px;
}

/* --- 2. Left Admin Sidebar (Sleek Emerald Dark) --- */
.wp-admin-sidebar {
  width: 240px;
  background: linear-gradient(180deg, #091a13 0%, #06140d 100%);
  position: fixed;
  top: 48px;
  bottom: 0;
  left: 0;
  z-index: 9999;
  overflow-y: auto;
  padding: 18px 12px;
  border-right: 1px solid rgba(255, 255, 255, 0.06);
  box-shadow: 2px 0 12px rgba(0, 0, 0, 0.05);
}

.wp-sidebar-user-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  margin-bottom: 20px;
}

.wp-sidebar-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 15px;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.wp-menu-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.wp-menu-item {
  position: relative;
  margin-bottom: 4px;
}

.wp-menu-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 14px;
  color: #94A3B8;
  text-decoration: none;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
}

.wp-menu-link-inner {
  display: flex;
  align-items: center;
  gap: 12px;
}

.wp-menu-link i {
  font-size: 16px;
  width: 20px;
  text-align: center;
  color: #64748B;
  transition: color 0.2s ease;
}

.wp-menu-item:hover > .wp-menu-link {
  background: rgba(255, 255, 255, 0.06);
  color: #F8FAFC;
}

.wp-menu-item:hover > .wp-menu-link i {
  color: #34D399;
}

.wp-menu-item.active > .wp-menu-link {
  background: linear-gradient(90deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(16, 185, 129, 0.35);
}

.wp-menu-item.active > .wp-menu-link i {
  color: #FFFFFF;
}

.wp-menu-separator {
  height: 1px;
  background: rgba(255, 255, 255, 0.08);
  margin: 14px 8px;
}

/* Sub-menu Dropdown */
.wp-submenu {
  background: rgba(0, 0, 0, 0.2);
  border-radius: 8px;
  padding: 6px 0;
  margin: 4px 0 6px 16px;
  border-left: 2px solid #10B981;
  display: none;
}

.wp-menu-item.active .wp-submenu,
.wp-menu-item.open .wp-submenu {
  display: block;
}

.wp-submenu-link {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  color: #94A3B8;
  font-size: 12.5px;
  font-weight: 500;
  text-decoration: none;
  cursor: pointer;
  border-radius: 4px;
  transition: all 0.15s ease;
}

.wp-submenu-link:hover,
.wp-submenu-link.active {
  color: #34D399;
  background: rgba(16, 185, 129, 0.1);
}

/* --- 3. Main Content Area --- */
.wp-main-content {
  margin-left: 240px;
  margin-top: 48px;
  padding: 32px 36px;
  min-height: calc(100vh - 48px);
}

.wp-page-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  flex-wrap: wrap;
  gap: 16px;
}

.wp-page-title {
  font-family: 'Outfit', sans-serif;
  font-size: 26px;
  font-weight: 700;
  margin: 0;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wp-page-subtitle {
  font-size: 13.5px;
  color: #64748B;
  margin-top: 4px;
}

/* --- Modern Buttons --- */
.wp-btn-primary {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  padding: 9px 20px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 4px 14px rgba(16, 185, 129, 0.35);
  transition: all 0.2s ease;
  text-decoration: none;
}

.wp-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(16, 185, 129, 0.45);
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
}

.wp-btn-secondary {
  background: #FFFFFF;
  color: #334155;
  padding: 9px 18px;
  font-size: 13.5px;
  font-weight: 600;
  border-radius: 8px;
  border: 1px solid #CBD5E1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  transition: all 0.2s ease;
  text-decoration: none;
}

.wp-btn-secondary:hover {
  background: #F8FAFC;
  border-color: #94A3B8;
  color: #0F172A;
  transform: translateY(-1px);
}

/* --- 4. Elegant Cards & Customizer Box --- */
.wp-customizer-box {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.05);
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 24px;
}

.wp-customizer-header {
  padding: 16px 24px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wp-customizer-header h3 {
  margin: 0;
  font-size: 15px;
  font-weight: 700;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 10px;
}

.wp-customizer-body {
  padding: 24px;
}

/* Category Filter Tabs (Pills) */
.wp-filter-pill-bar {
  display: flex;
  gap: 8px;
  padding: 12px 18px;
  background: #F8FAFC;
  border-bottom: 1px solid #E2E8F0;
  flex-wrap: wrap;
}

.wp-filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  border-radius: 20px;
  font-size: 13px;
  font-weight: 600;
  color: #475569;
  cursor: pointer;
  transition: all 0.2s ease;
}

.wp-filter-pill:hover {
  background: #EDF6EE;
  color: #10B981;
  border-color: #A7F3D0;
}

.wp-filter-pill.active {
  background: linear-gradient(135deg, #10B981 0%, #059669 100%);
  color: #FFFFFF;
  border-color: #10B981;
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.3);
}

.wp-filter-pill .count {
  background: rgba(0, 0, 0, 0.08);
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 11px;
}

.wp-filter-pill.active .count {
  background: rgba(255, 255, 255, 0.25);
}

/* Grid Layout for Media Cards */
.wp-modern-media-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
  margin-top: 16px;
}

.wp-modern-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 12px;
  padding: 18px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
  position: relative;
}

.wp-modern-card:hover {
  transform: translateY(-4px);
  border-color: #10B981;
  box-shadow: 0 12px 24px -4px rgba(16, 185, 129, 0.12);
}

.wp-modern-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.wp-modern-card-title {
  font-weight: 700;
  font-size: 14px;
  color: #0F172A;
  display: flex;
  align-items: center;
  gap: 8px;
}

.wp-modern-badge {
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  background: #EDF6EE;
  color: #059669;
}

.wp-modern-preview {
  width: 100%;
  height: 160px;
  background: #F1F5F9;
  border: 2px dashed #CBD5E1;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.wp-modern-preview img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.wp-modern-card:hover .wp-modern-preview img {
  transform: scale(1.04);
}

.wp-card-action-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #F1F5F9;
}

/* Toast Notice */
.wp-notice {
  background: #FFFFFF;
  border-left: 4px solid #10B981;
  border-radius: 8px;
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
  padding: 14px 20px;
  margin-bottom: 20px;
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 600;
  color: #065F46;
}

/* Responsive */
@media (max-width: 900px) {
  .wp-admin-sidebar {
    width: 60px;
    padding: 10px 6px;
  }
  .wp-sidebar-user-card, .wp-menu-link span, .wp-menu-link .sub-arrow {
    display: none;
  }
  .wp-submenu {
    display: none !important;
  }
  .wp-main-content {
    margin-left: 60px;
    padding: 18px;
  }
}


/* ==========================================================================
   FLOATING PILL NAVBAR ("LONJONG DAN NGAWANG")
   ========================================================================== */
.site-header {
  position: sticky;
  top: 14px;
  z-index: 1000;
  width: calc(100% - 48px);
  max-width: 1240px;
  height: 70px;
  margin: 14px auto 0;
  box-sizing: border-box;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 9999px; /* Lonjong pill shape */
  box-shadow: 0 16px 36px -6px rgba(15, 23, 42, 0.09), 0 4px 12px rgba(15, 23, 42, 0.03);
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.scrolled {
  top: 10px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 48px -8px rgba(15, 23, 42, 0.14), 0 6px 14px rgba(15, 23, 42, 0.05);
  border-color: rgba(27, 156, 133, 0.3);
  transform: translateY(-2px);
}

.header-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px; /* Sleek compact pill height */
  min-height: 68px;
  padding: 0 24px 0 16px;
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-sizing: border-box;
}

.site-branding {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  min-width: 138px;
  height: 46px;
}

.site-branding-link {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
}

.site-logo {
  height: 46px;
  width: auto;
  max-height: 46px;
  object-fit: contain;
  transition: transform 0.25s ease;
  filter: drop-shadow(0 2px 4px rgba(0,0,0,0.04));
  display: block;
}

.site-logo:hover {
  transform: scale(1.03);
}

.main-navigation {
  display: flex;
  align-items: center;
  margin-left: 20px;
  margin-right: auto;
}

.nav-menu {
  display: flex;
  align-items: center;
  gap: 8px; /* Compact gap between pill buttons */
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-menu > .menu-item {
  position: relative;
  padding-bottom: 8px; /* Hit area bridge ke bawah */
  margin-bottom: -8px;
}

.nav-menu > .menu-item > .menu-link {
  font-family: var(--font-primary, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif);
  font-size: 0.92rem;
  font-weight: 600;
  color: #334155;
  padding: 9px 16px;
  border-radius: 9999px; /* Lonjong pill */
  display: inline-flex;
  align-items: center;
  gap: 6px;
  text-decoration: none;
  position: relative;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.nav-menu > .menu-item > .menu-link::after {
  display: none !important; /* Hide old square bottom indicator */
}

.nav-menu > .menu-item > .menu-link i.arrow {
  font-size: 0.65rem;
  color: #64748B;
  transition: transform 0.25s ease, color 0.2s ease;
}

.nav-menu > .menu-item:hover > .menu-link,
.nav-menu > .menu-item.active > .menu-link {
  color: #1B9C85;
  background: rgba(27, 156, 133, 0.09); /* Soft emerald pill highlight */
}

.nav-menu > .menu-item:hover > .menu-link i.arrow,
.nav-menu > .menu-item.active > .menu-link i.arrow {
  color: #1B9C85;
}

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

/* Dropdown Menu - Sleek Rounded Floating Card (Naik Mentok Tanpa Celah) */
.sub-menu {
  position: absolute;
  top: calc(100% + 2px); /* Naikkan mentok ke tombol navbar agar tidak ada celah */
  left: 0;
  min-width: 260px;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-top: 3px solid #1B9C85;
  box-shadow: 0 20px 42px -8px rgba(15, 23, 42, 0.18), 0 6px 16px rgba(15, 23, 42, 0.06);
  border-radius: 18px; /* Rounded corners to match pill */
  padding: 8px 0;
  margin: 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px) scale(0.98);
  transition: opacity 0.2s ease, transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
  z-index: 99999;
  overflow: visible; /* Biarkan pseudo-element bridge aktif */
}

/* Invisible Hover Bridge: Menjaga kursor tetap terhubung saat bergerak dari tombol ke dropdown */
.sub-menu::before {
  content: '';
  position: absolute;
  top: -18px;
  left: 0;
  right: 0;
  height: 20px;
  background: transparent;
  pointer-events: auto;
  z-index: 999;
}

.nav-menu > .menu-item:hover > .sub-menu,
.nav-menu > .menu-item:focus-within > .sub-menu,
.nav-menu > .menu-item.dropdown-open > .sub-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0) scale(1);
}

.sub-menu .menu-item {
  width: 100%;
  list-style: none;
  display: block;
}

.sub-menu .menu-link {
  display: block;
  padding: 11px 20px;
  font-size: 0.9rem;
  font-weight: 600;
  color: #334155;
  text-decoration: none;
  border-bottom: 1px solid #F1F5F9;
  transition: all 0.2s ease;
}

.sub-menu .menu-item:last-child > .menu-link {
  border-bottom: none;
}

.sub-menu .menu-link:hover,
.sub-menu .menu-item.active > .menu-link {
  background: #F0FDF4;
  color: #1B9C85;
  padding-left: 24px;
}

/* Right Social Icons in Header */
.header-socials-right {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: auto;
}

.header-socials-right a {
  color: #475569;
  font-size: 0.95rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #F8FAFC;
  border: 1px solid #E2E8F0;
  text-decoration: none;
  transition: all 0.2s ease;
}

.header-socials-right a:hover {
  color: #FFFFFF;
  background: #1B9C85;
  border-color: #1B9C85;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(27, 156, 133, 0.3);
}

/* Header Actions & Search */
.header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-left: 6px;
}

.search-toggle-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(27, 156, 133, 0.1);
  color: #1B9C85;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.2s ease;
}

.search-toggle-btn:hover {
  background: #1B9C85;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 4px 10px rgba(27, 156, 133, 0.3);
}

.mobile-toggle-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: #F1F5F9;
  border: 1px solid #E2E8F0;
  color: #0F172A;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.mobile-toggle-btn:hover {
  background: #1B9C85;
  color: #FFFFFF;
}

/* Compact spacing for medium desktops/laptops (992px - 1200px) */
@media (max-width: 1200px) and (min-width: 992px) {
  .site-header {
    width: calc(100% - 32px);
  }
  .header-container {
    padding: 0 16px 0 14px;
  }
  .main-navigation {
    margin-left: 12px;
  }
  .nav-menu {
    gap: 4px;
  }
  .nav-menu > .menu-item > .menu-link {
    padding: 8px 11px;
    font-size: 0.85rem;
    gap: 4px;
  }
  .header-socials-right {
    gap: 6px;
  }
  .header-socials-right a {
    width: 30px;
    height: 30px;
    font-size: 0.85rem;
  }
  .site-logo {
    height: 42px;
  }
}

/* Responsive Pill Header */
@media (max-width: 991px) {
  .site-header {
    width: calc(100% - 32px);
    margin: 10px auto 0;
    top: 10px;
    height: 64px;
    border-radius: 9999px;
  }
  .hero-slider-section {
    margin-top: -72px;
  }
  .hero-slider-track {
    height: 560px;
  }
  .header-container {
    height: 62px;
    min-height: 62px;
    padding: 0 16px;
  }
  .site-logo {
    height: 40px;
  }
  .main-navigation,
  .header-socials-right {
    display: none;
  }
  .mobile-toggle-btn {
    display: flex;
  }
}

@media (max-width: 480px) {
  .site-header {
    width: calc(100% - 20px);
    margin: 8px auto 0;
    top: 8px;
    height: 60px;
  }
  .hero-slider-section {
    margin-top: -66px;
  }
  .hero-slider-track {
    height: 480px;
  }
  .header-container {
    height: 58px;
    min-height: 58px;
    padding: 0 14px;
  }
  .site-logo {
    height: 36px;
  }
}


/* ====================================================
   SEKILAS MIN 1 MALANG (KEMENAG INSPIRATION STYLE)
   ==================================================== */
.sekilas-grid {
  display: grid;
  grid-template-columns: 1fr 1.18fr;
  gap: 56px;
  align-items: center;
}

.sekilas-card-frame {
  background: #FFFFFF;
  border-radius: 36px;
  padding: 16px;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.08), 0 4px 12px rgba(27, 156, 133, 0.05);
  border: 1px solid #F1F5F9;
  position: relative;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.sekilas-card-frame:hover {
  transform: translateY(-4px);
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.12);
}

.sekilas-card-img-wrapper {
  position: relative;
  border-radius: 26px;
  overflow: hidden;
  height: 520px;
}

.sekilas-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
}

.sekilas-card-frame:hover .sekilas-card-img {
  transform: scale(1.03);
}

.sekilas-glass-badge {
  position: absolute;
  bottom: 24px;
  left: 24px;
  right: 24px;
  background: rgba(255, 255, 255, 0.45);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: 18px;
  padding: 14px 20px;
  color: #FFFFFF;
  font-size: 13.5px;
  font-style: italic;
  font-weight: 600;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  display: flex;
  align-items: center;
  gap: 10px;
  line-height: 1.4;
}

.sekilas-eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.sekilas-eyebrow-line {
  width: 32px;
  height: 3px;
  background: #1B9C85;
  border-radius: 3px;
  display: inline-block;
}

.sekilas-eyebrow-text {
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 2px;
  color: #1B9C85;
  text-transform: uppercase;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.sekilas-title {
  font-size: 2.85rem;
  font-weight: 900;
  line-height: 1.15;
  margin: 10px 0 24px;
  color: #0F172A;
  letter-spacing: -0.5px;
}

.sekilas-title .title-italic {
  font-family: 'Outfit', sans-serif;
  font-style: italic;
  font-weight: 900;
  color: #0F172A;
  margin-right: 6px;
}

.sekilas-title .title-highlight {
  font-family: 'Outfit', sans-serif;
  color: #1B9C85;
  font-weight: 900;
}

.sekilas-tabs-nav {
  display: flex;
  gap: 10px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}

.sekilas-tab-btn {
  border-radius: 9999px;
  padding: 10px 24px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  cursor: pointer;
  transition: all 0.25s ease;
  border: none;
  background: #F1F5F9;
  color: #64748B;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.sekilas-tab-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

.sekilas-tab-btn.active {
  background: #1B9C85;
  color: #FFFFFF;
  box-shadow: 0 4px 14px rgba(27, 156, 133, 0.35);
}

.sekilas-content-tag {
  color: #1B9C85;
  font-weight: 800;
  font-size: 13.5px;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}

.sekilas-quote {
  font-size: 1.55rem;
  line-height: 1.45;
  font-weight: 800;
  font-style: italic;
  color: #0F172A;
  letter-spacing: -0.3px;
  margin: 0 0 18px 0;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.sekilas-text {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.75;
  margin-bottom: 16px;
}

.sekilas-features-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 22px 0 28px 0;
}

.sekilas-feature-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  color: #0F172A;
  font-size: 0.95rem;
  background: #F8FAFC;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #E2E8F0;
  transition: border-color 0.2s ease, background 0.2s ease;
}

.sekilas-feature-pill:hover {
  border-color: #1B9C85;
  background: #F0FDF4;
}

.sekilas-feature-pill i {
  color: #1B9C85;
  font-size: 1.1rem;
}

.sekilas-detail-link {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #1B9C85;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  margin-top: 20px;
  transition: all 0.25s ease;
}

.sekilas-arrow-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #EDF6EE;
  color: #1B9C85;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  transition: transform 0.25s ease, background 0.25s ease, color 0.25s ease;
}

.sekilas-detail-link:hover {
  color: #166534;
}

.sekilas-detail-link:hover .sekilas-arrow-circle {
  transform: translateX(6px);
  background: #1B9C85;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(27, 156, 133, 0.35);
}

@media (max-width: 991px) {
  .sekilas-grid {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .sekilas-card-img-wrapper {
    height: 380px;
  }
  .sekilas-title {
    font-size: 2.15rem;
  }
  .sekilas-quote {
    font-size: 1.35rem;
  }
  .sekilas-features-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
}

/* ==========================================================================
   INTERACTIVE UPGRADES (Pilar Explorer, Talent Quiz, Confetti, 3D Tilt)
   ========================================================================== */

/* --- 1. Interactive 6 Pilar Keunggulan Explorer --- */
.pilar-section {
  position: relative;
  background: #F8FAFC;
  padding: 85px 0;
  overflow: hidden;
}



.pilar-bg-pattern {
  position: absolute;
  inset: 0;
  background-image: 
    radial-gradient(circle at 10% 20%, rgba(27, 156, 133, 0.05) 0%, transparent 40%),
    radial-gradient(circle at 90% 80%, rgba(255, 225, 93, 0.08) 0%, transparent 45%);
  pointer-events: none;
}

.pilar-tabs-scroll {
  display: flex;
  gap: 10px;
  overflow-x: auto;
  padding: 8px 4px 18px 4px;
  margin-bottom: 35px;
  scrollbar-width: thin;
  scrollbar-color: rgba(27, 156, 133, 0.3) transparent;
}

.pilar-tabs-scroll::-webkit-scrollbar {
  height: 6px;
}

.pilar-tabs-scroll::-webkit-scrollbar-thumb {
  background: rgba(27, 156, 133, 0.3);
  border-radius: 9999px;
}

.pilar-tab-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1.5px solid #E2E8F0;
  color: #475569;
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-size: 13.5px;
  font-weight: 700;
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.pilar-tab-btn:hover {
  border-color: #1B9C85;
  color: #1B9C85;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(27, 156, 133, 0.12);
}

.pilar-tab-btn.active {
  background: #1B9C85;
  border-color: #1B9C85;
  color: #FFFFFF;
  transform: translateY(-2px);
  box-shadow: 0 8px 22px rgba(27, 156, 133, 0.32);
}

.pilar-tab-btn i {
  font-size: 1.05rem;
}

.pilar-showcase-box {
  background: #FFFFFF;
  border-radius: 28px;
  border: 1px solid #E2E8F0;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.06);
  padding: 42px;
  position: relative;
  overflow: hidden;
  min-height: 440px;
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.pilar-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 48px;
  align-items: center;
}

.pilar-badge-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(27, 156, 133, 0.1);
  color: #1B9C85;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 16px;
}

.pilar-title {
  font-size: 2rem;
  font-weight: 800;
  color: #0F172A;
  line-height: 1.3;
  margin-bottom: 16px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.pilar-desc {
  font-size: 1.05rem;
  color: #475569;
  line-height: 1.7;
  margin-bottom: 24px;
}

.pilar-highlights {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  margin-bottom: 28px;
}

.pilar-hl-item {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #F8FAFC;
  padding: 10px 16px;
  border-radius: 12px;
  border: 1px solid #F1F5F9;
  font-size: 14px;
  font-weight: 700;
  color: #1E293B;
  transition: transform 0.2s ease, background 0.2s ease;
}

.pilar-hl-item:hover {
  background: #F0FDF4;
  transform: translateX(4px);
}

.pilar-hl-item i {
  color: #10B981;
  font-size: 1.1rem;
}

.pilar-cta-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #1B9C85;
  color: #FFFFFF !important;
  padding: 13px 26px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.25s ease;
  box-shadow: 0 4px 14px rgba(27, 156, 133, 0.3);
}

.pilar-cta-btn:hover {
  background: #147966;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 156, 133, 0.4);
}

.pilar-card-visual {
  position: relative;
  background: linear-gradient(135deg, #1B9C85 0%, #0D5C4F 100%);
  border-radius: 22px;
  padding: 32px 28px;
  color: #FFFFFF;
  box-shadow: 0 16px 36px rgba(27, 156, 133, 0.25);
  overflow: hidden;
  text-align: center;
}

.pilar-visual-icon {
  width: 76px;
  height: 76px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.15);
  backdrop-filter: blur(8px);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 2.2rem;
  color: #FFE15D;
  margin-bottom: 20px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}

.pilar-visual-stat {
  font-size: 2.4rem;
  font-weight: 900;
  color: #FFFFFF;
  line-height: 1;
  margin-bottom: 6px;
  font-family: 'Outfit', sans-serif;
}

.pilar-visual-label {
  font-size: 13px;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  text-transform: uppercase;
  letter-spacing: 0.6px;
  margin-bottom: 20px;
}

.pilar-visual-pill {
  display: inline-block;
  background: rgba(255, 255, 255, 0.2);
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(6px);
}

/* --- 2. Interactive Talent Quiz / Finder Section --- */
.talent-section {
  position: relative;
  background: #FFFFFF;
  padding: 85px 0;
  border-top: 1px solid #F1F5F9;
}

.talent-card-box {
  background: linear-gradient(135deg, #09332C 0%, #115E59 60%, #1B9C85 100%);
  border-radius: 32px;
  padding: 48px;
  color: #FFFFFF;
  box-shadow: 0 24px 60px rgba(17, 94, 89, 0.25);
  position: relative;
  overflow: hidden;
}



.talent-decor-circle {
  position: absolute;
  width: 380px;
  height: 380px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 225, 93, 0.12) 0%, transparent 70%);
  top: -120px;
  right: -80px;
  pointer-events: none;
}

.talent-header {
  text-align: center;
  max-width: 680px;
  margin: 0 auto 36px auto;
}

.talent-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255, 225, 93, 0.18);
  color: #FFE15D;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.6px;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.talent-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: #FFFFFF;
  margin-bottom: 12px;
  line-height: 1.3;
}

.talent-desc {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.6;
}

.quiz-step-title {
  font-size: 1rem;
  font-weight: 800;
  color: #FFE15D;
  margin-bottom: 14px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.quiz-options-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 28px;
}

.quiz-option-btn {
  background: rgba(255, 255, 255, 0.1);
  border: 1.5px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  padding: 10px 18px;
  border-radius: 14px;
  font-size: 13.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.25s ease;
  backdrop-filter: blur(4px);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.quiz-option-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #FFE15D;
  transform: translateY(-2px);
}

.quiz-option-btn.selected {
  background: #FFE15D;
  border-color: #FFE15D;
  color: #0F172A;
  box-shadow: 0 6px 18px rgba(255, 225, 93, 0.35);
  transform: translateY(-2px);
}

.quiz-result-card {
  background: #FFFFFF;
  border-radius: 20px;
  padding: 28px;
  color: #0F172A;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.25);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  animation: quizResultFadeIn 0.4s ease-out;
}

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

.quiz-result-info {
  flex: 1;
}

.quiz-match-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: #DCFCE7;
  color: #166534;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 11.5px;
  font-weight: 800;
  margin-bottom: 8px;
}

.quiz-result-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: #0F172A;
  margin-bottom: 6px;
}

.quiz-result-desc {
  font-size: 0.95rem;
  color: #475569;
  line-height: 1.6;
}

.quiz-result-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.quiz-cta-btn {
  background: #1B9C85;
  color: #FFFFFF !important;
  padding: 11px 22px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}

.quiz-cta-btn:hover {
  background: #147966;
  transform: translateY(-2px);
}

.quiz-reset-btn {
  background: #F1F5F9;
  color: #64748B;
  border: none;
  padding: 11px 18px;
  border-radius: 10px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  transition: all 0.2s ease;
}

.quiz-reset-btn:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* --- 3. Interactive News Category Filter Pills --- */
.news-filter-pills {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin: 18px 0 24px 0;
}

.news-filter-btn {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  color: #475569;
  padding: 7px 16px;
  border-radius: 9999px;
  font-size: 12.5px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  font-family: inherit;
}

.news-filter-btn:hover {
  border-color: #1B9C85;
  color: #1B9C85;
}

.news-filter-btn.active {
  background: #1B9C85;
  border-color: #1B9C85;
  color: #FFFFFF;
  box-shadow: 0 4px 12px rgba(27, 156, 133, 0.25);
}

/* --- 4. Interactive Mutiara Hikmah Generator --- */
.mutiara-section {
  padding: 60px 0;
  background: #F8FAFC;
}

.mutiara-card {
  background: #FFFFFF;
  border: 1px solid #E2E8F0;
  border-radius: 24px;
  padding: 36px 40px;
  box-shadow: 0 12px 35px rgba(15, 23, 42, 0.05);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 36px;
  position: relative;
  overflow: hidden;
}



.mutiara-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 5px;
  height: 100%;
  background: linear-gradient(to bottom, #1B9C85, #FACC15);
}

.mutiara-quote-wrap {
  flex: 1;
}

.mutiara-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #1B9C85;
  font-size: 11.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-bottom: 10px;
}

.mutiara-quote-text {
  font-size: 1.28rem;
  font-weight: 700;
  font-style: italic;
  color: #0F172A;
  line-height: 1.6;
  margin-bottom: 8px;
  transition: opacity 0.3s ease, transform 0.3s ease;
}

.mutiara-author {
  font-size: 13.5px;
  font-weight: 700;
  color: #64748B;
  display: inline-block;
}

.mutiara-actions {
  display: flex;
  gap: 10px;
  flex-shrink: 0;
}

.mutiara-btn-shuffle {
  background: #1B9C85;
  color: #FFFFFF;
  border: none;
  padding: 10px 18px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
  box-shadow: 0 4px 12px rgba(27, 156, 133, 0.25);
}

.mutiara-btn-shuffle:hover {
  background: #147966;
  transform: translateY(-2px);
}

.mutiara-btn-copy {
  background: #F1F5F9;
  color: #475569;
  border: none;
  padding: 10px 16px;
  border-radius: 12px;
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
}

.mutiara-btn-copy:hover {
  background: #E2E8F0;
  color: #0F172A;
}

/* --- 5. Interactive Confetti Canvas Overlay --- */
#confetti-canvas {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 9999;
}

.total-prestasi-banner {
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.total-prestasi-banner:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: 0 16px 40px rgba(27, 156, 133, 0.4);
}

/* Toast Notification for Interactive Actions */
.interactive-toast {
  position: fixed;
  bottom: 90px;
  right: 25px;
  background: #0F172A;
  color: #FFFFFF;
  padding: 12px 22px;
  border-radius: 14px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.25);
  font-size: 13.5px;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 10px;
  z-index: 10000;
  opacity: 0;
  transform: translateY(20px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.interactive-toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* --- 6. Card 3D Tilt Effect Utilities --- */
.tilt-card {
  transform-style: preserve-3d;
  will-change: transform;
  transition: transform 0.15s ease-out;
}

@media (max-width: 991px) {
  .pilar-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .talent-card-box {
    padding: 32px 24px;
  }
  .talent-title {
    font-size: 1.7rem;
  }
  .quiz-result-card {
    flex-direction: column;
    align-items: flex-start;
  }
  .quiz-result-actions {
    width: 100%;
    justify-content: flex-start;
  }
  .mutiara-card {
    flex-direction: column;
    align-items: flex-start;
    padding: 28px 24px;
  }
  .mutiara-actions {
    width: 100%;
    justify-content: flex-start;
  }
}

/* Article Images & Figures */
article img {
  max-width: 100%;
  height: auto;
  border-radius: 12px;
}

article figure {
  margin: 24px 0;
}

article figcaption {
  font-size: 0.88rem;
  color: #64748B;
  text-align: center;
  margin-top: 8px;
  font-style: italic;
}

/* ============================================================
   ELEGANT ARTICLE GALLERY SLIDER (SLIDE FOTO DOKUMENTASI BERITA)
============================================================ */
.article-gallery-slider-box {
  margin: 35px 0 25px 0;
  background: #FFFFFF;
  border-radius: 20px;
  border: 1.5px solid #E2E8F0;
  box-shadow: 0 10px 30px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: box-shadow 0.3s ease;
}

.article-gallery-slider-box:hover {
  box-shadow: 0 14px 40px rgba(15, 23, 42, 0.09);
}

.gallery-slider-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 22px;
  background: #F8FAFC;
  border-bottom: 1.5px solid #F1F5F9;
  flex-wrap: wrap;
  gap: 12px;
}

.gallery-slider-title {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  font-weight: 800;
  color: #0F172A;
  text-transform: uppercase;
  letter-spacing: 0.6px;
  font-family: 'Plus Jakarta Sans', sans-serif;
}

.gallery-slider-title i {
  color: #1B9C85;
  font-size: 16px;
}

.gallery-slider-meta {
  display: inline-flex;
  align-items: center;
  gap: 12px;
}

.gallery-counter-badge {
  background: #E6F4F1;
  color: #1B9C85;
  padding: 4px 12px;
  border-radius: 9999px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.5px;
}

.gallery-expand-btn {
  background: #FFFFFF;
  border: 1px solid #CBD5E1;
  color: #475569;
  border-radius: 9999px;
  padding: 5px 14px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: all 0.2s ease;
}

.gallery-expand-btn:hover {
  background: #1B9C85;
  color: #FFFFFF;
  border-color: #1B9C85;
}

.gallery-stage-container {
  position: relative;
  background: #091E1A;
  height: 480px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  user-select: none;
}

@media (max-width: 768px) {
  .gallery-stage-container {
    height: 300px;
  }
}

.gallery-stage-slide {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.4s ease, transform 0.4s ease;
  transform: scale(0.97);
  pointer-events: none;
}

.gallery-stage-slide.active {
  opacity: 1;
  visibility: visible;
  transform: scale(1);
  pointer-events: auto;
}

.gallery-stage-slide img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  cursor: zoom-in;
  transition: transform 0.3s ease;
}

.gallery-stage-slide img:hover {
  transform: scale(1.02);
}

.gallery-arrow-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: none;
  color: #0F172A;
  font-size: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
  transition: all 0.22s ease;
}

.gallery-arrow-btn:hover {
  background: #1B9C85;
  color: #FFFFFF;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 6px 18px rgba(27, 156, 133, 0.4);
}

.gallery-arrow-btn.prev {
  left: 16px;
}

.gallery-arrow-btn.next {
  right: 16px;
}

.gallery-caption-bar {
  padding: 10px 20px;
  background: #F8FAFC;
  border-top: 1px solid #F1F5F9;
  font-size: 13px;
  color: #475569;
  font-style: italic;
  text-align: center;
  min-height: 20px;
}

.gallery-thumb-strip {
  display: flex;
  gap: 10px;
  padding: 14px 18px;
  background: #FFFFFF;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: #CBD5E1 transparent;
}

.gallery-thumb-strip::-webkit-scrollbar {
  height: 6px;
}
.gallery-thumb-strip::-webkit-scrollbar-thumb {
  background: #CBD5E1;
  border-radius: 3px;
}

.gallery-thumb-item {
  position: relative;
  width: 82px;
  height: 56px;
  border-radius: 10px;
  overflow: hidden;
  flex-shrink: 0;
  cursor: pointer;
  border: 2.5px solid transparent;
  opacity: 0.55;
  transition: all 0.22s ease;
  background: #E2E8F0;
}

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

.gallery-thumb-item:hover {
  opacity: 0.9;
  transform: translateY(-2px);
}

.gallery-thumb-item.active {
  border-color: #1B9C85;
  opacity: 1;
  transform: scale(1.05) translateY(-2px);
  box-shadow: 0 4px 12px rgba(27, 156, 133, 0.35);
}

/* Fullscreen Lightbox Modal */
.gallery-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 99999;
  background: rgba(15, 23, 42, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.gallery-lightbox-modal.active {
  opacity: 1;
  pointer-events: auto;
}

.lightbox-content-box {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.lightbox-main-img {
  max-width: 90vw;
  max-height: 82vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  user-select: none;
}

.lightbox-close-btn {
  position: fixed;
  top: 24px;
  right: 28px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.25);
  color: #FFFFFF;
  font-size: 18px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
  z-index: 100001;
}

.lightbox-close-btn:hover {
  background: #EF4444;
  border-color: #EF4444;
  transform: scale(1.1);
}

.lightbox-counter-badge {
  position: fixed;
  top: 28px;
  left: 28px;
  background: rgba(255, 255, 255, 0.15);
  color: #FFFFFF;
  padding: 6px 16px;
  border-radius: 9999px;
  font-size: 13px;
  font-weight: 800;
  border: 1px solid rgba(255, 255, 255, 0.2);
  letter-spacing: 0.5px;
}

.lightbox-caption {
  margin-top: 14px;
  color: #E2E8F0;
  font-size: 14px;
  text-align: center;
  max-width: 700px;
}

.lightbox-nav-btn {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  font-size: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 100000;
}

.lightbox-nav-btn:hover {
  background: #1B9C85;
  border-color: #1B9C85;
  transform: translateY(-50%) scale(1.1);
}

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

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

@media (max-width: 768px) {
  .lightbox-nav-btn.prev { left: 10px; }
  .lightbox-nav-btn.next { right: 10px; }
  .lightbox-close-btn { top: 16px; right: 16px; }
  .lightbox-counter-badge { top: 18px; left: 16px; }
}

/* ========================================================
   LAYANAN DIGITAL (SESUAI GAMBAR 2)
======================================================== */
.layanan-digital-official-section {
  padding: 70px 0 80px;
  background-color: #FFFFFF;
}

.layanan-official-header {
  text-align: center;
  margin-bottom: 40px;
}

.layanan-official-title {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 2.35rem;
  font-weight: 700;
  color: #1E293B;
  letter-spacing: -0.02em;
  margin: 0;
}

.layanan-official-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  max-width: 1080px;
  margin: 0 auto;
}

.layanan-official-card {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 420px;
  border-radius: 12px;
  overflow: hidden;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease;
}

.layanan-official-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 24px 45px rgba(15, 23, 42, 0.22);
}

.layanan-official-card .layanan-card-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  filter: grayscale(100%);
  transform: scale(1.01);
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1), filter 0.5s ease;
}

.layanan-official-card:hover .layanan-card-bg {
  transform: scale(1.08);
  filter: grayscale(35%);
}

.layanan-official-card .layanan-card-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.76);
  transition: background 0.35s ease;
}

.layanan-official-card:hover .layanan-card-overlay {
  background: rgba(0, 0, 0, 0.62);
}

.layanan-official-card .layanan-card-inner {
  position: relative;
  z-index: 2;
  padding: 40px 28px;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.layanan-card-circle-icon {
  width: 68px;
  height: 68px;
  border-radius: 50%;
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: #1E293B;
  font-size: 26px;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.3s ease, color 0.3s ease;
}

.layanan-official-card:hover .layanan-card-circle-icon {
  transform: scale(1.12) rotate(4deg);
  background-color: #1B9C85;
  color: #FFFFFF;
}

.layanan-card-heading {
  font-family: 'Outfit', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  color: #FFFFFF;
  margin: 0 0 12px 0;
  letter-spacing: -0.01em;
}

.layanan-card-text {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.55;
  margin: 0;
  max-width: 280px;
}

@media (max-width: 960px) {
  .layanan-official-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .layanan-official-grid {
    grid-template-columns: 1fr;
    max-width: 380px;
  }
  .layanan-official-card {
    min-height: 360px;
  }
}

/* ========================================================
   VIDEO PROFIL MIN 1 KOTA MALANG (UPGRADED LUXURY DESIGN)
======================================================== */
.video-profil-official-section {
  position: relative;
  background: radial-gradient(circle at 50% 25%, #0B7550 0%, #065F46 45%, #064E3B 80%, #033628 100%);
  overflow: hidden;
  padding: 85px 0 135px;
}

.video-profil-ambient-glow {
  position: absolute;
  top: 40%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 900px;
  max-width: 95vw;
  height: 520px;
  background: radial-gradient(ellipse at center, rgba(52, 211, 153, 0.28) 0%, rgba(16, 185, 129, 0.12) 45%, transparent 70%);
  filter: blur(65px);
  pointer-events: none;
  z-index: 1;
}

.video-profil-pattern-layer {
  position: absolute;
  inset: 0;
  background-image: radial-gradient(rgba(255, 255, 255, 0.18) 1.2px, transparent 1.2px);
  background-size: 30px 30px;
  opacity: 0.25;
  pointer-events: none;
  z-index: 2;
}

.video-profil-header {
  text-align: center;
  margin-bottom: 38px;
  position: relative;
  z-index: 3;
}

.video-profil-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 18px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #A7F3D0;
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: 999px;
  margin-bottom: 14px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
}

.video-profil-badge i {
  color: #34D399;
}

.video-profil-main-heading {
  font-family: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  font-size: 2.5rem;
  font-weight: 800;
  color: #FFFFFF;
  margin: 0 0 12px;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 20px rgba(0, 0, 0, 0.35);
}

.video-profil-subtitle {
  font-size: 1.05rem;
  color: rgba(255, 255, 255, 0.9);
  max-width: 660px;
  margin: 0 auto;
  line-height: 1.65;
  font-weight: 400;
}

.video-profil-card-wrapper {
  max-width: 880px;
  margin: 0 auto;
  position: relative;
  z-index: 3;
}

.video-profil-thumb-box {
  position: relative;
  border-radius: 22px;
  overflow: hidden;
  box-shadow: 0 25px 65px -10px rgba(0, 0, 0, 0.55), 0 0 0 1px rgba(255, 255, 255, 0.25);
  border: 3.5px solid rgba(255, 255, 255, 0.38);
  cursor: pointer;
  aspect-ratio: 16 / 9;
  background: #064E3B;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.4s ease;
}

.video-profil-thumb-box:hover {
  transform: translateY(-8px) scale(1.015);
  box-shadow: 0 35px 85px -12px rgba(0, 0, 0, 0.7), 0 0 35px rgba(52, 211, 153, 0.4);
  border-color: rgba(255, 255, 255, 0.75);
}

.video-profil-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.video-profil-thumb-box:hover .video-profil-img {
  transform: scale(1.05);
}

.video-profil-thumb-box .video-play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.2) 50%, rgba(0, 0, 0, 0.65) 100%);
  transition: background 0.4s ease;
}

.video-profil-thumb-box:hover .video-play-overlay {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.25) 50%, rgba(0, 0, 0, 0.7) 100%);
}

.video-luminous-play-btn {
  position: relative;
  width: 86px;
  height: 86px;
  border-radius: 50%;
  background: #FFFFFF;
  color: #065F46;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35), 0 0 25px rgba(255, 255, 255, 0.6);
  transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.35s ease, background-color 0.3s ease, color 0.3s ease;
}

.video-luminous-play-btn .play-icon {
  font-size: 1.85rem;
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.play-pulse-ring {
  position: absolute;
  inset: -10px;
  border-radius: 50%;
  border: 2.5px solid rgba(255, 255, 255, 0.85);
  animation: videoPlayPulse 2.2s cubic-bezier(0.25, 1, 0.5, 1) infinite;
  pointer-events: none;
}

@keyframes videoPlayPulse {
  0% {
    transform: scale(0.92);
    opacity: 0.95;
  }
  70% {
    transform: scale(1.48);
    opacity: 0;
  }
  100% {
    transform: scale(1.48);
    opacity: 0;
  }
}

.video-profil-thumb-box:hover .video-luminous-play-btn {
  transform: scale(1.12);
  background: #00A651;
  color: #FFFFFF;
  box-shadow: 0 14px 40px rgba(0, 166, 81, 0.55), 0 0 35px rgba(0, 230, 118, 0.75);
}

.video-profil-thumb-box:hover .video-luminous-play-btn .play-icon {
  transform: scale(1.08);
}

.video-thumb-bottom-bar {
  position: absolute;
  bottom: 20px;
  left: 22px;
  right: 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  z-index: 2;
  pointer-events: none;
}

.video-meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 6px 14px;
  background: rgba(0, 0, 0, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.22);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-radius: 999px;
  color: #FFFFFF;
  font-size: 0.82rem;
  font-weight: 500;
  letter-spacing: 0.01em;
}

/* Shape divider at bottom smoothly transitioning into #F8FAFC */
.video-profil-shape-divider {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 100%;
  line-height: 0;
  overflow: hidden;
  direction: ltr;
  z-index: 4;
  pointer-events: none;
}

.video-profil-shape-divider svg {
  display: block;
  width: calc(100% + 1.3px);
  position: relative;
  left: 50%;
  transform: translateX(-50%);
  height: 56px;
}

@media (max-width: 768px) {
  .video-profil-official-section {
    padding: 55px 0 95px;
  }
  .video-profil-main-heading {
    font-size: 1.85rem;
    margin-bottom: 10px;
  }
  .video-profil-subtitle {
    font-size: 0.92rem;
  }
  .video-luminous-play-btn {
    width: 68px;
    height: 68px;
  }
  .video-luminous-play-btn .play-icon {
    font-size: 1.45rem;
    margin-left: 4px;
  }
  .video-thumb-bottom-bar {
    bottom: 12px;
    left: 12px;
    right: 12px;
    justify-content: center;
    gap: 6px;
  }
  .video-meta-pill {
    font-size: 0.72rem;
    padding: 4px 10px;
  }
  .video-profil-shape-divider svg {
    height: 38px;
  }
}

@media (max-width: 480px) {
  .video-meta-pill:nth-child(3) {
    display: none;
  }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE ENHANCEMENTS (MOBILE & TABLET EXCELLENCE)
   ========================================================================== */

/* --- 1. Tablet & Medium Screens (< 992px) --- */
@media (max-width: 991px) {
  .container {
    padding: 0 16px;
  }

  .site-header {
    width: calc(100% - 24px);
    margin: 10px auto 0;
    top: 10px;
    height: 64px;
  }

  .header-container {
    height: 62px;
    min-height: 62px;
    padding: 0 16px;
  }

  .news-grid,
  .testimonials-grid,
  .services-grid,
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }

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

  .total-prestasi-banner {
    padding: 28px 20px;
    gap: 16px;
  }
}

/* --- 2. Mobile Landscape & Small Tablets (< 768px) --- */
@media (max-width: 767px) {
  .site-header {
    width: calc(100% - 20px);
    margin: 8px auto 0;
    top: 8px;
    height: 60px;
  }

  .header-container {
    height: 58px;
    min-height: 58px;
    padding: 0 12px;
  }

  .site-logo {
    height: 38px;
  }

  .btn-dashboard-text {
    display: none !important;
  }

  .btn-dashboard-pill {
    padding: 6px 10px !important;
  }

  /* Total Prestasi Banner Mobile Stack */
  .total-prestasi-banner {
    flex-direction: column;
    text-align: center;
    padding: 26px 18px;
  }

  .total-prestasi-banner .piala-3d-floating-wrapper.right {
    display: none !important;
  }

  .total-prestasi-banner .piala-3d-floating-wrapper.left {
    width: 110px;
    height: 130px;
  }

  .total-prestasi-banner .piala-3d-asset-img {
    width: 95px !important;
  }

  .total-content .number {
    font-size: 2.5rem !important;
  }

  .total-content .title {
    font-size: 1.15rem !important;
  }

  .total-content .sub {
    font-size: 0.88rem !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
  }

  .total-content .sub span {
    margin-left: 0 !important;
  }

  /* News Section Filter Pills Scroll */
  .news-filter-pills {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    flex-wrap: nowrap;
    padding: 4px 2px 10px 2px;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .news-filter-pills::-webkit-scrollbar {
    display: none;
  }

  .news-filter-btn {
    flex-shrink: 0;
    white-space: nowrap;
    font-size: 0.82rem;
    padding: 7px 14px;
  }

  .news-header-row {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  /* Modals */
  .modal-dialog {
    width: calc(100% - 28px) !important;
    max-width: 520px !important;
    margin: 20px auto !important;
    padding: 22px 18px !important;
  }

  /* Floating Actions (WhatsApp & Back to Top) */
  .floating-actions {
    bottom: 20px;
    right: 16px;
    gap: 8px;
  }

  .float-btn {
    width: 44px;
    height: 44px;
    font-size: 1.15rem;
  }
}

/* --- 3. Mobile Portrait & Compact Phones (< 640px) --- */
@media (max-width: 639px) {
  /* Hero Slider Compact Height & Hide Obscuring Side Trophies */
  .hero-slider-section {
    min-height: 420px;
    margin-top: -64px;
  }

  .hero-slider-track {
    height: 440px !important;
  }

  .lunar-trophy-layer {
    display: none !important;
  }

  .slider-arrow {
    width: 32px;
    height: 32px;
    font-size: 0.85rem;
  }

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

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

  .slider-dots {
    bottom: 12px;
    padding: 4px 10px;
  }

  /* Grids to 1 Column */
  .news-grid,
  .testimonials-grid,
  .services-grid,
  .stats-grid,
  .footer-grid {
    grid-template-columns: 1fr !important;
    gap: 20px;
  }

  .section {
    padding: 48px 0 !important;
  }

  .section-title {
    font-size: 1.7rem !important;
  }

  .section-subtitle {
    font-size: 0.78rem !important;
  }

  .section-desc {
    font-size: 0.92rem !important;
  }

  /* Sekilas Section Mobile */
  .sekilas-title {
    font-size: 1.85rem !important;
  }

  .sekilas-quote {
    font-size: 1.2rem !important;
  }

  .sekilas-text {
    font-size: 0.95rem !important;
    line-height: 1.65 !important;
  }

  .sekilas-card-img-wrapper {
    height: 280px !important;
  }

  .sekilas-tabs-nav {
    display: flex !important;
    gap: 6px !important;
    overflow-x: auto !important;
    flex-wrap: nowrap !important;
    padding-bottom: 6px !important;
    -webkit-overflow-scrolling: touch !important;
  }

  .sekilas-tab-btn {
    flex-shrink: 0 !important;
    padding: 8px 16px !important;
    font-size: 11px !important;
  }

  .motto-trophy-showcase {
    flex-direction: column !important;
    text-align: center !important;
    padding: 20px 16px !important;
    gap: 12px !important;
  }

  /* Layanan Digital */
  .layanan-official-grid {
    grid-template-columns: 1fr !important;
    max-width: 100% !important;
    gap: 18px !important;
  }

  .layanan-official-card {
    min-height: 290px !important;
    padding: 26px 20px !important;
  }

  .layanan-card-heading {
    font-size: 1.45rem !important;
  }

  /* Bottom Footer */
  .site-bottom-footer {
    padding: 18px 0;
  }

  .site-bottom-footer .container {
    flex-direction: column !important;
    text-align: center !important;
    gap: 8px !important;
    font-size: 0.8rem !important;
  }
}

/* --- 4. Extra Small Phones (< 400px, e.g. 360px, 375px) --- */
@media (max-width: 400px) {
  .site-header {
    width: calc(100% - 14px);
    margin: 6px auto 0;
    top: 6px;
    height: 56px;
  }

  .header-container {
    height: 54px;
    min-height: 54px;
    padding: 0 10px;
  }

  .site-logo {
    height: 32px;
    max-width: 115px;
  }

  .header-actions {
    gap: 4px;
  }

  .search-toggle-btn,
  .mobile-toggle-btn {
    width: 32px;
    height: 32px;
    font-size: 0.9rem;
  }

  .hero-slider-section {
    min-height: 380px;
  }

  .hero-slider-track {
    height: 400px !important;
  }

  .section-title {
    font-size: 1.5rem !important;
  }

  .stat-card {
    padding: 16px 12px !important;
  }

  .stat-number {
    font-size: 2rem !important;
  }
}

/* --- News & Article Responsive Master Rules --- */
.d-none-mobile {
  display: inline;
}

@media (max-width: 480px) {
  .d-none-mobile {
    display: none !important;
  }
}

article, .article-content-body {
  word-wrap: break-word;
  overflow-wrap: break-word;
  word-break: break-word;
}

article img, .article-content-body img {
  max-width: 100% !important;
  height: auto !important;
  border-radius: 10px;
}

article iframe, .article-content-body iframe,
article video, .article-content-body video,
article embed, .article-content-body embed {
  max-width: 100% !important;
  width: 100% !important;
  aspect-ratio: 16 / 9;
  height: auto !important;
  border-radius: 10px;
}

article table, .article-content-body table {
  max-width: 100% !important;
  width: 100% !important;
  display: block;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  margin: 18px 0;
}

@media (max-width: 991px) {
  .tilt-card {
    transform: none !important;
    transition: none !important;
  }
}

.article-featured-box {
  width: 100% !important;
  max-width: 100% !important;
  border-radius: 16px;
  overflow: hidden;
  margin-bottom: 24px;
  box-shadow: 0 6px 24px rgba(15, 23, 42, 0.08);
  background: #0F172A;
}

.article-featured-box img {
  width: 100% !important;
  max-width: 100% !important;
  height: auto !important;
  aspect-ratio: 16 / 9;
  max-height: 480px;
  object-fit: cover;
  display: block;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .article-featured-box {
    border-radius: 12px;
    margin-bottom: 18px;
  }
  .article-featured-box img {
    max-height: 260px;
  }
}


