/* ===================================================================
   PSB PESANTREN AL-MUHSIN - MODERN EDITORIAL DESIGN SYSTEM
   Bespoke, Clean, Responsive, High-Craft Typography & Components
   =================================================================== */

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

:root {
  /* Color Palette - Emerald Islamic Prestige */
  --primary-950: #022019;
  --primary-900: #03362a;
  --primary-850: #044334;
  --primary-800: #045240;
  --primary-700: #056650;
  --primary-600: #0d8468;
  --primary-500: #10b981;
  --primary-400: #34d399;
  --primary-200: #a7f3d0;
  --primary-100: #d1fae5;
  --primary-50:  #f0fdf4;

  /* Accent Gold / Brass */
  --gold-800: #92400e;
  --gold-700: #b45309;
  --gold-600: #d97706;
  --gold-500: #f59e0b;
  --gold-400: #fbbf24;
  --gold-100: #fef3c7;
  --gold-50:  #fffbeb;

  /* Neutrals & Surfaces */
  --sand-50:  #fdfdfc;
  --sand-100: #f7f7f4;
  --sand-200: #ecece6;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50:  #f8fafc;

  /* Functional Status */
  --success: #059669;
  --success-bg: #d1fae5;
  --warning: #d97706;
  --warning-bg: #fef3c7;
  --danger: #dc2626;
  --danger-bg: #fee2e2;
  --info: #0284c7;
  --info-bg: #e0f2fe;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --font-heading: 'Outfit', 'Plus Jakarta Sans', system-ui, sans-serif;
  --font-arabic: 'Amiri', serif;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --radius-full: 9999px;

  --shadow-subtle: 0 1px 3px rgba(0, 0, 0, 0.04), 0 1px 2px rgba(0, 0, 0, 0.02);
  --shadow-card: 0 4px 14px 0 rgba(3, 54, 42, 0.06), 0 2px 4px 0 rgba(0, 0, 0, 0.02);
  --shadow-float: 0 12px 30px -4px rgba(3, 54, 42, 0.12), 0 4px 10px -2px rgba(0, 0, 0, 0.04);
  --shadow-glow: 0 0 25px rgba(16, 185, 129, 0.2);
}

*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--sand-50);
  color: var(--slate-800);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--primary-950);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.25;
}

h1 { font-size: 2.35rem; }
h2 { font-size: 1.85rem; }
h3 { font-size: 1.35rem; }
p { margin-bottom: 0.85rem; color: var(--slate-600); }
a { color: var(--primary-700); text-decoration: none; transition: all 0.2s ease; }
a:hover { color: var(--primary-900); }

/* Containers */
.container {
  width: 100%;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.container-sm {
  max-width: 820px;
}

/* Top Announcement Bar */
.topbar {
  background: var(--primary-950);
  color: var(--primary-200);
  font-size: 0.8rem;
  padding: 0.4rem 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  white-space: nowrap;
}

.topbar-content {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}

.topbar-links {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-shrink: 0;
}

.topbar-links a {
  color: var(--primary-200);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
}
.topbar-links a:hover { color: white; }

/* Header & Navbar */
.navbar {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--sand-200);
  position: sticky;
  top: 0;
  z-index: 100;
  box-shadow: var(--shadow-subtle);
  transition: all 0.3s ease;
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  max-width: 1220px;
  margin: 0 auto;
  padding: 0 1.5rem;
  gap: 1rem;
  flex-wrap: nowrap;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  flex-shrink: 0;
  white-space: nowrap;
}

.brand-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-600) 100%);
  color: white;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  box-shadow: 0 4px 10px rgba(4, 82, 64, 0.25);
}

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

.brand-title {
  font-family: var(--font-heading);
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--primary-950);
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.brand-subtitle {
  font-size: 0.68rem;
  color: var(--gold-700);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 1.15rem;
  list-style: none;
  margin: 0;
  padding: 0;
  white-space: nowrap;
  flex-wrap: nowrap;
}

.nav-links a {
  color: var(--slate-700);
  font-weight: 600;
  font-size: 0.88rem;
  transition: color 0.2s;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  white-space: nowrap;
  padding: 0.3rem 0;
}

.nav-links a:hover {
  color: var(--primary-700);
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-shrink: 0;
  white-space: nowrap;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.92rem;
  padding: 0.7rem 1.4rem;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  line-height: 1.2;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary-800) 0%, var(--primary-700) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(4, 82, 64, 0.22);
}
.btn-primary:hover {
  background: linear-gradient(135deg, var(--primary-900) 0%, var(--primary-800) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(4, 82, 64, 0.32);
}

.btn-accent {
  background: linear-gradient(135deg, var(--gold-600) 0%, var(--gold-700) 100%);
  color: white;
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.25);
}
.btn-accent:hover {
  background: linear-gradient(135deg, var(--gold-700) 0%, var(--gold-800) 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(180, 83, 9, 0.35);
}

.btn-secondary {
  background: white;
  color: var(--slate-700);
  border-color: var(--slate-300);
  box-shadow: var(--shadow-subtle);
}
.btn-secondary:hover {
  background: var(--sand-100);
  color: var(--slate-900);
  border-color: var(--slate-400);
  transform: translateY(-1px);
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary-800);
  border-color: var(--primary-600);
}
.btn-outline-primary:hover {
  background: var(--primary-50);
  color: var(--primary-900);
}

.btn-sm {
  padding: 0.45rem 0.9rem;
  font-size: 0.84rem;
  border-radius: var(--radius-sm);
}

.btn-lg {
  padding: 0.9rem 1.85rem;
  font-size: 1.02rem;
  border-radius: var(--radius-md);
}

.btn-block {
  width: 100%;
}

/* Cards & Surfaces */
.card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--sand-200);
  box-shadow: var(--shadow-card);
  padding: 1.75rem;
  margin-bottom: 1.5rem;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.card:hover {
  box-shadow: var(--shadow-float);
}

.card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 1rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--sand-200);
}

.card-title {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--primary-950);
}

/* Islamic Geometric Subtle Background Pattern */
.bg-pattern {
  background-color: var(--primary-900);
  background-image: radial-gradient(var(--primary-800) 1px, transparent 1px), radial-gradient(var(--primary-800) 1px, var(--primary-900) 1px);
  background-size: 40px 40px;
  background-position: 0 0, 20px 20px;
}

/* Hero Section with Transparent Overlay Support */
.hero-wrapper {
  background: linear-gradient(145deg, var(--primary-950) 0%, var(--primary-900) 50%, #032b21 100%);
  color: white;
  padding: 4.5rem 0 5rem;
  position: relative;
  overflow: hidden;
}

.hero-bg-image-layer {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  opacity: 0.22;
  mix-blend-mode: luminosity;
  pointer-events: none;
  z-index: 1;
  transition: opacity 0.5s ease;
}

.hero-wrapper::before {
  content: '';
  position: absolute;
  top: -100px;
  right: -100px;
  width: 500px;
  height: 500px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.hero-wrapper::after {
  content: '';
  position: absolute;
  bottom: -80px;
  left: -80px;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.14) 0%, rgba(0,0,0,0) 70%);
  border-radius: 50%;
  pointer-events: none;
  z-index: 2;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  padding: 0.4rem 1.1rem;
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  color: var(--primary-200);
  margin-bottom: 1.5rem;
}

.hero-title {
  color: white;
  font-size: 2.85rem;
  font-weight: 800;
  line-height: 1.18;
  margin-bottom: 1.25rem;
  letter-spacing: -0.03em;
}

.hero-title span.highlight {
  color: var(--gold-400);
  position: relative;
}

.hero-description {
  font-size: 1.08rem;
  color: rgba(209, 250, 229, 0.9);
  line-height: 1.7;
  margin-bottom: 2rem;
}

.hero-highlights {
  display: flex;
  gap: 1.5rem;
  margin-bottom: 2.25rem;
  flex-wrap: wrap;
}

.highlight-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: white;
}

.highlight-item i {
  color: var(--gold-400);
}

/* Animated Hero PNG Illustration */
.hero-illustration-wrapper {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-height: 420px;
  padding: 1rem;
}

.hero-illustration-blob {
  position: absolute;
  width: 320px;
  height: 320px;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.35) 0%, rgba(6, 78, 59, 0.05) 70%);
  border-radius: 50%;
  filter: blur(40px);
  z-index: 1;
  animation: blobPulse 8s ease-in-out infinite alternate;
}

.hero-illustration-card {
  position: relative;
  z-index: 2;
  display: flex;
  justify-content: center;
  align-items: center;
  width: 100%;
}

.hero-floating-png {
  max-width: 100%;
  max-height: 440px;
  object-fit: contain;
  filter: drop-shadow(0 18px 30px rgba(0, 0, 0, 0.4));
  animation: heroFloatSlow 7s ease-in-out infinite alternate;
  transition: transform 0.5s ease;
}

@keyframes heroFloatSlow {
  0% {
    transform: translateY(0px) translateX(0px) rotate(0deg);
  }
  50% {
    transform: translateY(-14px) translateX(10px) rotate(1deg);
  }
  100% {
    transform: translateY(-5px) translateX(-8px) rotate(-0.8deg);
  }
}

@keyframes blobPulse {
  0% {
    transform: scale(0.9) translate(-10px, -10px);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.2) translate(15px, 15px);
    opacity: 0.9;
  }
}

.hero-floating-badge {
  position: absolute;
  z-index: 3;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
  border: 1.5px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--radius-md);
  padding: 0.65rem 1rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.22);
  animation: badgeHover 5s ease-in-out infinite alternate;
}

.badge-top-right {
  top: 20px;
  right: -15px;
  animation-delay: 0.5s;
}

.badge-bottom-left {
  bottom: 20px;
  left: -15px;
  animation-delay: 1.5s;
}

@keyframes badgeHover {
  0% {
    transform: translateY(0);
  }
  100% {
    transform: translateY(-10px);
  }
}

.floating-badge-icon {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
}

.floating-badge-icon.badge-gold {
  background: var(--gold-100);
  color: var(--gold-800);
}

@media (max-width: 992px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }
  .badge-top-right {
    top: 5px;
    right: 5px;
  }
  .badge-bottom-left {
    bottom: 5px;
    left: 5px;
  }
  .hero-floating-png {
    max-height: 340px;
  }
}

/* Statistics Trust Bar */
.trust-stats-bar {
  background: white;
  border-bottom: 1px solid var(--sand-200);
  padding: 2rem 0;
  box-shadow: var(--shadow-subtle);
}

.stats-bar-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}

.stat-bar-number {
  font-family: var(--font-heading);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--primary-900);
  line-height: 1;
}

.stat-bar-label {
  font-size: 0.84rem;
  color: var(--slate-500);
  font-weight: 600;
  margin-top: 0.35rem;
}

/* Badges & Status Pills */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.85rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.badge-baru { background: var(--slate-200); color: var(--slate-800); }
.badge-menunggu_verifikasi { background: var(--warning-bg); color: #92400e; border: 1px solid rgba(217, 119, 6, 0.2); }
.badge-perlu_perbaikan { background: var(--danger-bg); color: var(--danger); border: 1px solid rgba(220, 38, 38, 0.2); }
.badge-terverifikasi, .badge-siap_tes { background: var(--info-bg); color: var(--info); border: 1px solid rgba(2, 132, 199, 0.2); }
.badge-sedang_tes { background: #fae8ff; color: #86198f; }
.badge-tes_selesai, .badge-menunggu_wawancara { background: #ede9fe; color: #5b21b6; }
.badge-wawancara_santri_selesai, .badge-wawancara_wali_selesai { background: #e0e7ff; color: #3730a3; }
.badge-proses_seleksi { background: var(--gold-100); color: var(--gold-700); border: 1px solid var(--gold-400); }
.badge-diterima { background: var(--success-bg); color: var(--success); border: 1px solid var(--primary-400); }
.badge-diterima_unit_berbeda { background: #ecfdf5; color: #047857; border: 1px solid #10b981; }
.badge-tidak_diterima { background: var(--danger-bg); color: var(--danger); }

/* Forms */
.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-700);
  margin-bottom: 0.4rem;
}

.form-control, .form-select {
  width: 100%;
  padding: 0.72rem 1rem;
  font-size: 0.95rem;
  font-family: var(--font-sans);
  color: var(--slate-800);
  background: white;
  border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md);
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
}

.form-control:focus, .form-select:focus {
  outline: none;
  border-color: var(--primary-600);
  box-shadow: 0 0 0 4px rgba(16, 185, 129, 0.15);
}

.form-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
}

.form-help {
  font-size: 0.8rem;
  color: var(--slate-500);
  margin-top: 0.35rem;
}

/* Modals */
.modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(2, 32, 25, 0.65);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 1000;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
  padding: 1rem;
}

.modal-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.modal {
  background: white;
  border-radius: var(--radius-xl);
  width: 100%;
  max-width: 650px;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-float);
  padding: 2rem;
  transform: scale(0.95) translateY(15px);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  border: 1px solid var(--sand-200);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--sand-200);
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
}

.modal-close {
  background: var(--sand-100);
  border: none;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  font-size: 1.25rem;
  color: var(--slate-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.modal-close:hover {
  background: var(--danger-bg);
  color: var(--danger);
}

/* Interactive FAQ Accordion */
.faq-item {
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-md);
  margin-bottom: 0.85rem;
  background: white;
  overflow: hidden;
  transition: all 0.2s ease;
}

.faq-question {
  padding: 1.15rem 1.5rem;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 700;
  color: var(--primary-950);
  user-select: none;
}

.faq-question:hover {
  background: var(--sand-50);
}

.faq-answer {
  padding: 0 1.5rem 1.25rem;
  font-size: 0.92rem;
  color: var(--slate-600);
  display: none;
  line-height: 1.7;
}

.faq-item.active .faq-answer {
  display: block;
}

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-icon {
  transition: transform 0.25s ease;
  color: var(--primary-600);
}

/* Unit Cards */
.unit-card {
  background: white;
  border-radius: var(--radius-xl);
  border: 1.5px solid var(--sand-200);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  position: relative;
  overflow: hidden;
}

.unit-card:hover {
  border-color: var(--primary-500);
  transform: translateY(-4px);
  box-shadow: var(--shadow-float);
}

.unit-card-badge {
  position: absolute;
  top: 1.5rem;
  right: 1.5rem;
}

.unit-feature-list {
  list-style: none;
  margin: 1.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  font-size: 0.88rem;
  color: var(--slate-700);
}

.unit-feature-list li {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.unit-feature-list li i {
  color: var(--primary-600);
  font-size: 0.95rem;
}

/* Stepper Progress Bar */
.stepper {
  display: flex;
  justify-content: space-between;
  position: relative;
  margin: 2.25rem 0;
}

.stepper::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 0;
  width: 100%;
  height: 3px;
  background: var(--sand-200);
  z-index: 1;
}

.step-item {
  position: relative;
  z-index: 2;
  text-align: center;
  flex: 1;
}

.step-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: white;
  border: 3px solid var(--slate-300);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.92rem;
  margin: 0 auto 0.6rem;
  color: var(--slate-500);
  transition: all 0.3s;
}

.step-item.active .step-circle {
  border-color: var(--primary-600);
  background: var(--primary-600);
  color: white;
  box-shadow: 0 0 0 5px var(--primary-100);
}

.step-item.completed .step-circle {
  border-color: var(--primary-600);
  background: var(--primary-50);
  color: var(--primary-700);
}

.step-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: var(--slate-500);
}

.step-item.active .step-label {
  color: var(--primary-900);
  font-weight: 700;
}

/* Stats Cards */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 1.25rem;
  margin-bottom: 1.5rem;
}

.stat-card {
  background: white;
  padding: 1.35rem;
  border-radius: var(--radius-lg);
  border: 1px solid var(--sand-200);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-card);
}

.stat-card.exception-warning { border-left: 5px solid var(--warning); }
.stat-card.exception-danger  { border-left: 5px solid var(--danger); }
.stat-card.exception-info    { border-left: 5px solid var(--info); }
.stat-card.exception-success { border-left: 5px solid var(--success); }

.stat-title {
  font-size: 0.82rem;
  color: var(--slate-500);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.stat-value {
  font-family: var(--font-heading);
  font-size: 1.85rem;
  font-weight: 800;
  color: var(--primary-950);
  margin-top: 0.25rem;
}

/* Tables */
.table-responsive {
  width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-lg);
}

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

.table th {
  background: var(--sand-100);
  color: var(--slate-700);
  font-weight: 700;
  padding: 0.85rem 1.15rem;
  border-bottom: 1px solid var(--slate-200);
  font-size: 0.84rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.table td {
  padding: 1rem 1.15rem;
  border-bottom: 1px solid var(--slate-100);
  color: var(--slate-700);
}

.table tr:hover td {
  background: var(--sand-50);
}

/* Toast Alerts */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.toast {
  background: var(--slate-900);
  color: white;
  padding: 0.85rem 1.35rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-float);
  display: flex;
  align-items: center;
  gap: 0.85rem;
  font-size: 0.92rem;
  font-weight: 500;
  animation: slideIn 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.toast.success { background: var(--success); }
.toast.danger  { background: var(--danger); }
.toast.warning { background: var(--warning); color: white; }

@keyframes slideIn {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}

/* Footer */
footer {
  margin-top: auto;
  background: var(--primary-950);
  color: var(--primary-200);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  padding: 3.5rem 0 2rem;
}

footer a { color: var(--primary-200); }
footer a:hover { color: white; }

/* Responsive Rules */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 2.5rem; }
  .stats-bar-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .nav-links { display: none; }
  .topbar-content { flex-direction: column; gap: 0.25rem; text-align: center; }
  h1 { font-size: 2rem; }
  h2 { font-size: 1.5rem; }
}

/* ===================================================================
   ON-SITE LIVE WYSIWYG VISUAL EDITOR
   =================================================================== */
.live-editor-toolbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 99999;
  background: #0f172a;
  color: #f8fafc;
  padding: 0.65rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0,0,0,0.35);
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 2px solid var(--primary-500);
  font-family: var(--font-sans);
  animation: slideDownEditor 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes slideDownEditor {
  from { transform: translateY(-100%); }
  to { transform: translateY(0); }
}

.live-editor-title {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  font-weight: 700;
}

.live-editor-title .status-tag {
  background: var(--primary-600);
  color: white;
  font-size: 0.72rem;
  font-weight: 800;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.live-editor-actions {
  display: flex;
  align-items: center;
  gap: 0.65rem;
}

/* Editable Elements In Edit Mode */
body.is-editing-content {
  padding-top: 52px !important;
}

body.is-editing-content [data-cms-key] {
  outline: 2px dashed rgba(16, 185, 129, 0.4);
  outline-offset: 4px;
  cursor: text;
  transition: all 0.2s ease;
  position: relative;
  min-height: 1.2em;
}

body.is-editing-content [data-cms-key]:hover {
  outline: 2px dashed var(--primary-500);
  background: rgba(16, 185, 129, 0.08);
}

body.is-editing-content [data-cms-key]:focus {
  outline: 2.5px solid var(--primary-600) !important;
  background: rgba(16, 185, 129, 0.12) !important;
  box-shadow: 0 0 15px rgba(16, 185, 129, 0.25);
}

.cms-unsaved-badge {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #f59e0b;
  margin-left: 6px;
}

/* ==========================================================================
   ENHANCED RESPONSIVENESS & UI/UX UPGRADES
   ========================================================================== */

/* 1. Scroll Margin for Fixed/Sticky Header Offset */
section[id], footer[id], div[id^="mod-"], div[id^="tab-"] {
  scroll-margin-top: 80px;
}

/* 2. Mobile Hamburger Button & Off-Canvas Drawer */
.mobile-menu-btn {
  display: none;
  background: transparent;
  border: none;
  color: var(--primary-900);
  font-size: 1.4rem;
  cursor: pointer;
  padding: 0.4rem;
  border-radius: var(--radius-sm);
  transition: all 0.2s;
}

.mobile-menu-btn:hover {
  background: var(--sand-100);
  color: var(--primary-700);
}

.mobile-drawer-backdrop {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(2px);
  z-index: 1040;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.mobile-drawer-backdrop.active {
  display: block;
  opacity: 1;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: -320px;
  width: 300px;
  height: 100vh;
  background: white;
  z-index: 1050;
  box-shadow: -5px 0 25px rgba(0, 0, 0, 0.2);
  display: flex;
  flex-direction: column;
  transition: right 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  padding: 1.5rem;
  overflow-y: auto;
}

.mobile-drawer.active {
  right: 0;
}

.mobile-drawer-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--sand-200);
}

.mobile-drawer-links {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.mobile-drawer-link {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius-md);
  color: var(--slate-800);
  font-weight: 600;
  text-decoration: none;
  transition: all 0.2s;
}

.mobile-drawer-link:hover, .mobile-drawer-link.active {
  background: var(--primary-50);
  color: var(--primary-800);
}

@media (max-width: 900px) {
  .mobile-menu-btn {
    display: block;
  }
}

/* 3. Tuition & Footer Responsive Grid Fixes */
.tuition-responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 2rem;
  max-width: 1050px;
  margin: 0 auto;
}

.footer-responsive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 2.5rem;
  margin-bottom: 2.5rem;
  text-align: left;
}

/* 4. Daily Schedule (Jadwal Harian) Visual Timeline */
.daily-schedule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
}

.schedule-card {
  background: white;
  border: 1px solid var(--sand-200);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  border-left: 4px solid var(--primary-600);
  transition: all 0.25s ease;
  box-shadow: var(--shadow-subtle);
}

.schedule-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-float);
  border-left-color: var(--gold-500);
}

.schedule-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--primary-50);
  color: var(--primary-900);
  font-weight: 800;
  font-size: 0.82rem;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
  margin-bottom: 0.65rem;
}

/* 5. Campus Gallery & Photo Grid */
.campus-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.gallery-card {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-card);
  height: 220px;
  background: var(--sand-200);
}

.gallery-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.gallery-card:hover img {
  transform: scale(1.05);
}

.gallery-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: linear-gradient(to top, rgba(2, 32, 25, 0.9) 0%, rgba(2, 32, 25, 0.4) 70%, transparent 100%);
  padding: 1.25rem 1rem 0.85rem;
  color: white;
}

.gallery-card-title {
  font-weight: 700;
  font-size: 0.95rem;
  margin-bottom: 2px;
  color: white;
}

.gallery-card-sub {
  font-size: 0.78rem;
  color: rgba(209, 250, 229, 0.85);
}

/* 6. Leadership & Asatidz Profiles */
.team-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1.25rem;
  max-width: 1200px;
  margin: 0 auto;
}

.team-card {
  background: white;
  border: 1.5px solid var(--sand-300);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.15rem;
  text-align: center;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
  display: flex;
  flex-direction: column;
  align-items: center;
}

.team-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 14px 28px rgba(6, 78, 59, 0.1);
  border-color: var(--primary-500);
}

.team-avatar {
  width: 105px;
  height: 105px;
  border-radius: 50%;
  margin: 0 auto 0.85rem;
  background: var(--sand-100);
  color: var(--primary-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.25rem;
  border: 3.5px solid var(--gold-400);
  box-shadow: 0 4px 15px rgba(6, 78, 59, 0.15);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.team-photo-img {
  width: 100% !important;
  height: 100% !important;
  max-width: 100% !important;
  max-height: 100% !important;
  object-fit: cover !important;
  object-position: center top !important;
  border-radius: 50% !important;
  display: block;
}

.team-avatar-fallback {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 2.4rem;
  color: var(--primary-700);
  background: var(--sand-100);
}

/* 7. Parallax Decorative Banner Section */
.parallax-banner-section {
  position: relative;
  background-color: var(--primary-950);
  background-image: url('https://images.unsplash.com/photo-1542838132-92c53300491e?w=1600&q=80');
  background-attachment: fixed;
  background-position: center center;
  background-repeat: no-repeat;
  background-size: cover;
  padding: 5.5rem 0;
  color: white;
  text-align: center;
  overflow: hidden;
}

.parallax-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(6, 78, 59, 0.88) 0%, rgba(2, 44, 34, 0.92) 100%);
  z-index: 1;
}

.parallax-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(#d1fae5 1px, transparent 1px);
  background-size: 24px 24px;
  z-index: 2;
}

.parallax-content {
  position: relative;
  z-index: 3;
  max-width: 820px;
  margin: 0 auto;
}

@media (max-width: 768px) {
  .parallax-banner-section {
    background-attachment: scroll;
    padding: 3.75rem 0;
  }
}

/* Mobile Floating Quick-Action Bar */
.mobile-floating-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 999;
  background: rgba(2, 44, 34, 0.96);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-top: 1px solid rgba(251, 191, 36, 0.35);
  padding: 0.55rem 0.75rem;
  padding-bottom: calc(0.55rem + env(safe-area-inset-bottom, 0px));
  box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.3);
  align-items: center;
  justify-content: space-between;
  gap: 0.45rem;
}

@media (max-width: 768px) {
  .mobile-floating-bar {
    display: flex;
  }
}

.floating-bar-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: var(--radius-md);
  text-decoration: none;
  padding: 0.65rem 0.6rem;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.floating-wa-btn {
  background: #16a34a;
  color: white;
  flex: 1;
}

.floating-register-btn {
  background: linear-gradient(135deg, var(--gold-400), var(--gold-500));
  color: var(--primary-950);
  flex: 1.25;
}

.floating-login-btn {
  background: rgba(255, 255, 255, 0.12);
  color: white;
  border: 1px solid rgba(255, 255, 255, 0.22);
  padding: 0.65rem 0.65rem;
}

/* Digit Counter & Validation Badges */
.digit-badge {
  font-size: 0.76rem;
  margin-top: 3px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s ease;
}

.digit-badge.valid {
  color: #15803d;
  font-weight: 600;
}

.digit-badge.pending {
  color: var(--slate-500);
}

/* Autosave Pulse Indicator */
.autosave-badge {
  font-size: 0.75rem;
  color: var(--primary-900);
  background: var(--primary-100);
  border: 1px solid var(--primary-300);
  padding: 0.25rem 0.65rem;
  border-radius: 20px;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

/* ===================================================================
   INFINITE SEAMLESS MARQUEE SLIDING GALLERY & LIGHTBOX STYLES
   =================================================================== */
.marquee-gallery-wrapper {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow: hidden;
  position: relative;
  width: 100vw;
  margin-left: calc(-50vw + 50%);
  padding: 0.5rem 0;
  mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 7%, black 93%, transparent);
}

.marquee-gallery-row {
  display: flex;
  overflow: hidden;
  user-select: none;
  width: 100%;
}

.marquee-track {
  display: flex;
  gap: 1.25rem;
  flex-shrink: 0;
  align-items: center;
  animation: marqueeSlide 120s linear infinite;
  will-change: transform;
}

.marquee-gallery-row.marquee-reverse .marquee-track {
  animation: marqueeSlideReverse 120s linear infinite;
}

/* Hover pauses the loop smoothly */
.marquee-gallery-row:hover .marquee-track {
  animation-play-state: paused !important;
}

@keyframes marqueeSlide {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes marqueeSlideReverse {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}

.marquee-photo-card {
  position: relative;
  width: 270px;
  height: 180px;
  border-radius: var(--radius-md);
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.09);
  border: 1.5px solid var(--sand-300);
  cursor: pointer;
  background: #0f172a;
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease, border-color 0.3s ease;
}

.marquee-photo-card:hover {
  transform: scale(1.06) translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.22);
  border-color: var(--gold-400);
  z-index: 10;
}

.marquee-photo-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.marquee-photo-card:hover .marquee-photo-img {
  transform: scale(1.08);
}

.marquee-photo-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.82) 0%, rgba(0, 0, 0, 0.1) 65%, transparent 100%);
  opacity: 0;
  display: flex;
  align-items: flex-end;
  padding: 0.85rem;
  transition: opacity 0.3s ease;
}

.marquee-photo-card:hover .marquee-photo-overlay {
  opacity: 1;
}

.marquee-zoom-icon {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%) scale(0.6);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(6, 78, 59, 0.9);
  color: var(--gold-300);
  border: 1.5px solid var(--gold-400);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  opacity: 0;
  transition: all 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.35);
  pointer-events: none;
}

.marquee-photo-card:hover .marquee-zoom-icon {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

/* ===================================================================
   IMAGE LIGHTBOX / MODAL VIEWER
   =================================================================== */
.image-lightbox-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(3, 15, 11, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  z-index: 99999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  animation: fadeInLightbox 0.25s ease forwards;
}

.image-lightbox-backdrop.active {
  display: flex;
}

.lightbox-container {
  position: relative;
  max-width: 92vw;
  max-height: 90vh;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.lightbox-image {
  max-width: 90vw;
  max-height: 80vh;
  border-radius: var(--radius-md);
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
  border: 2px solid rgba(255, 255, 255, 0.2);
  object-fit: contain;
  animation: zoomInLightbox 0.3s cubic-bezier(0.34, 1.56, 0.64, 1) forwards;
}

.lightbox-caption {
  margin-top: 0.85rem;
  color: white;
  font-size: 1rem;
  font-weight: 700;
  text-align: center;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
  letter-spacing: 0.02em;
}

.lightbox-close-btn {
  position: absolute;
  top: -44px;
  right: 0;
  background: rgba(255, 255, 255, 0.2);
  border: 1px solid rgba(255, 255, 255, 0.3);
  color: white;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  transition: all 0.2s ease;
}

.lightbox-close-btn:hover {
  background: var(--gold-500);
  color: var(--primary-950);
  transform: scale(1.1);
}

@keyframes fadeInLightbox {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes zoomInLightbox {
  from { transform: scale(0.85); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

@media (max-width: 768px) {
  .marquee-photo-card {
    width: 210px;
    height: 145px;
  }
  .marquee-track {
    gap: 0.85rem;
  }
  .lightbox-close-btn {
    top: -38px;
    right: 0;
    width: 32px;
    height: 32px;
    font-size: 1rem;
  }
}

/* ===================================================================
   NARAHUBUNG & KONTAK PANITIA STYLES
   =================================================================== */
.contact-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-bottom: 2rem;
}

.contact-card {
  background: white;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--sand-300);
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  transition: all 0.25s ease;
  position: relative;
  overflow: hidden;
}

.contact-card:hover {
  transform: translateY(-5px);
  border-color: var(--primary-600);
  box-shadow: 0 14px 28px rgba(6, 78, 59, 0.12);
}

.contact-card-header {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1rem;
}

.contact-icon-box {
  width: 46px;
  height: 46px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.contact-icon-box.bg-emerald {
  background: #dcfce7;
  color: #15803d;
}

.contact-icon-box.bg-blue {
  background: #dbeafe;
  color: #1d4ed8;
}

.contact-icon-box.bg-purple {
  background: #f3e8ff;
  color: #7e22ce;
}

.contact-icon-box.bg-amber {
  background: #fef3c7;
  color: #b45309;
}

.contact-unit-badge {
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--primary-800);
  background: var(--primary-100);
  padding: 2px 7px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 3px;
}

.contact-unit-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--primary-950);
  margin: 0;
}

.contact-person-info {
  margin-bottom: 0.85rem;
  padding-bottom: 0.85rem;
  border-bottom: 1px dashed var(--sand-300);
}

.contact-person-name {
  display: block;
  font-size: 0.92rem;
  color: var(--slate-900);
  margin-bottom: 2px;
}

.contact-person-role {
  font-size: 0.78rem;
  color: var(--slate-500);
}

.contact-status-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 1.15rem;
  font-size: 0.76rem;
  color: var(--slate-600);
}

.contact-online-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #22c55e;
  box-shadow: 0 0 0 2px rgba(34, 197, 94, 0.25);
}

.btn-contact-wa {
  background: #25d366;
  color: white;
  font-weight: 700;
  font-size: 0.88rem;
  padding: 0.65rem 1rem;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  text-decoration: none;
  transition: all 0.2s ease;
  box-shadow: 0 4px 10px rgba(37, 211, 102, 0.25);
}

.btn-contact-wa:hover {
  background: #1eb857;
  color: white;
  transform: translateY(-1px);
  box-shadow: 0 6px 15px rgba(37, 211, 102, 0.35);
}

.contact-office-banner {
  background: white;
  border: 1.5px solid var(--sand-300);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  display: grid;
  grid-template-columns: 1.2fr 1fr auto;
  gap: 1.5rem;
  align-items: center;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.04);
}

.contact-office-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.office-icon-circle {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--primary-100);
  color: var(--primary-800);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  flex-shrink: 0;
}

.office-title {
  display: block;
  font-size: 0.9rem;
  color: var(--primary-950);
  margin-bottom: 2px;
}

.office-desc {
  font-size: 0.82rem;
  color: var(--slate-600);
  margin: 0;
  line-height: 1.45;
}

.footer-contact-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-sm);
  padding: 0.5rem 0.75rem;
  transition: all 0.2s;
  text-decoration: none;
}

.footer-contact-item:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(74, 222, 128, 0.4);
  transform: translateX(3px);
}

@media (max-width: 992px) {
  .contact-office-banner {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }
}

/* ===================================================================
   SINGLE ACTIVE WAVE CARD STYLES
   =================================================================== */
.single-active-wave-card {
  background: white;
  border: 2px solid var(--primary-600);
  border-radius: var(--radius-lg);
  padding: 2rem;
  box-shadow: 0 12px 35px rgba(6, 78, 59, 0.12);
  background: linear-gradient(180deg, #ffffff 0%, #f0fdf4 100%);
  position: relative;
  overflow: hidden;
}

.active-wave-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
  border-bottom: 1.5px dashed var(--sand-300);
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
}

.active-wave-badge {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--primary-700);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 1.45rem;
  box-shadow: 0 4px 12px rgba(6, 78, 59, 0.25);
  flex-shrink: 0;
}

.active-wave-title {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--primary-950);
  margin: 0 0 3px 0;
}

.active-wave-period-badge {
  background: var(--primary-100);
  color: var(--primary-900);
  border: 1px solid var(--primary-300);
  font-size: 0.88rem;
  font-weight: 700;
  padding: 0.45rem 0.95rem;
  border-radius: var(--radius-full);
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.active-wave-promo-banner {
  background: #fef3c7;
  border: 1.5px solid #fcd34d;
  border-radius: var(--radius-md);
  padding: 0.85rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin-bottom: 1.5rem;
}

.active-wave-milestones {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 1rem;
  margin-bottom: 1.75rem;
}

.active-milestone-item {
  background: white;
  border: 1.5px solid var(--sand-200);
  border-radius: var(--radius-md);
  padding: 1rem 1.15rem;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.03);
}

.milestone-icon-wrap {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.milestone-label {
  display: block;
  font-size: 0.75rem;
  color: var(--slate-500);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  font-weight: 600;
  margin-bottom: 2px;
}

.milestone-date {
  display: block;
  font-size: 0.95rem;
  color: var(--slate-900);
  font-weight: 800;
}

.active-wave-actions {
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
}

@media (max-width: 640px) {
  .single-active-wave-card {
    padding: 1.25rem;
  }
  .active-wave-actions {
    flex-direction: column;
  }
}


