@charset "utf-8";
/* ============================================================================
   SDIT HIDAYAH CEPER — Modern Islamic School Design System
   Clean, Warm, Trustworthy, Accessible, Non-AI-Slop
   ========================================================================= */

/* ----------------------------------------------------------------- 1. TOKENS */
:root {
  /* Brand Palette: Emerald & Warm Gold */
  --primary:        #0A6847;       /* Rich Islamic Emerald */
  --primary-hover:  #074E35;       /* Deep Emerald */
  --primary-dark:   #043625;       /* Midnight Forest */
  --primary-light:  #10B981;       /* Fresh Mint */
  --primary-50:     #F0FDF4;       /* Ultra Soft Mint Surface */
  --primary-100:    #DCFCE7;       /* Soft Mint Border / Pill */
  --primary-200:    #BBF7D0;

  --accent:         #D97706;       /* Warm Golden Amber */
  --accent-hover:   #B45309;       /* Deep Amber */
  --accent-light:   #F59E0B;       /* Vibrant Gold */
  --accent-50:      #FFFBEB;       /* Warm Gold Surface */
  --accent-100:     #FEF3C7;       /* Soft Gold Pill */

  /* Neutral & Dark Palette */
  --dark-night:     #062319;       /* Deep Forest Background */
  --dark-surface:   #0B3326;       /* Dark Card Surface */
  --dark-border:    rgba(255, 255, 255, 0.12);
  
  --text-main:      #0F172A;       /* Deep Slate Heading */
  --text-body:      #334155;       /* Readable Slate Body */
  --text-muted:     #64748B;       /* Secondary Muted Text */
  --text-subtle:    #94A3B8;       /* Placeholders & Meta */
  --text-white:     #FFFFFF;

  --bg-white:       #FFFFFF;
  --bg-light:       #F8FAFC;       /* Off-White Section Tint */
  --bg-surface:     #F1F5F9;       /* Light Gray Surface */
  
  --border-light:   #E2E8F0;       /* Standard Subtle Border */
  --border-mid:     #CBD5E1;
  --border-focus:   #0A6847;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;

  /* Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-pill: 9999px;

  /* Shadows */
  --shadow-sm: 0 1px 3px rgba(15, 23, 42, 0.06), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-md: 0 4px 6px -1px rgba(15, 23, 42, 0.07), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  --shadow-lg: 0 10px 15px -3px rgba(15, 23, 42, 0.08), 0 4px 6px -4px rgba(15, 23, 42, 0.03);
  --shadow-xl: 0 20px 25px -5px rgba(15, 23, 42, 0.08), 0 8px 10px -6px rgba(15, 23, 42, 0.04);
  --shadow-primary: 0 10px 20px -3px rgba(10, 104, 71, 0.22);
  --shadow-accent: 0 10px 20px -3px rgba(217, 119, 6, 0.25);

  /* Container & Spacing */
  --container-max: 1200px;
  --container-narrow: 840px;
  --gutter: clamp(1.25rem, 3.5vw, 2.5rem);
  --section-pad: clamp(4rem, 7vw, 6.5rem);
  --section-pad-sm: clamp(2.5rem, 4vw, 4rem);

  /* Transitions */
  --transition-fast: 0.18s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.28s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

/* ----------------------------------------------------------------- 2. RESET & BASE */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  font-family: var(--font-sans);
  background-color: var(--bg-white);
  color: var(--text-body);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

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

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

ul, ol {
  list-style: none;
}

button, input, select, textarea {
  font: inherit;
  color: inherit;
}

:focus-visible {
  outline: 2.5px solid var(--primary);
  outline-offset: 3px;
  border-radius: var(--radius-xs);
}

::selection {
  background: var(--primary-100);
  color: var(--primary-dark);
}

/* Accessible Skip Link */
.skip-link {
  position: absolute;
  top: 1rem;
  left: 1rem;
  z-index: 1000;
  padding: 0.75rem 1.5rem;
  background: var(--primary-dark);
  color: var(--text-white);
  font-weight: 600;
  border-radius: var(--radius-pill);
  transform: translateY(-200%);
  transition: transform var(--transition-fast);
}
.skip-link:focus-visible {
  transform: translateY(0);
}

/* ------------------------------------------------------------ 3. TYPOGRAPHY */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-sans);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

h1 {
  font-size: clamp(2.25rem, 4.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
}

h2 {
  font-size: clamp(1.85rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.2;
}

h3 {
  font-size: clamp(1.25rem, 2vw, 1.5rem);
  font-weight: 700;
}

h4 {
  font-size: 1.125rem;
  font-weight: 700;
}

p {
  line-height: 1.7;
}

.lead-text {
  font-size: clamp(1.05rem, 1.5vw, 1.2rem);
  line-height: 1.75;
  color: var(--text-body);
}

.text-muted {
  color: var(--text-muted);
}

.text-center {
  text-align: center;
}

.text-emerald {
  color: var(--primary);
}

.text-amber {
  color: var(--accent);
}

/* Eyebrow Badge */
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background-color: var(--primary-50);
  border: 1px solid var(--primary-100);
  border-radius: var(--radius-pill);
  color: var(--primary);
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 0.85rem;
}
.section-badge--amber {
  background-color: var(--accent-50);
  border-color: var(--accent-100);
  color: var(--accent);
}
.section-badge--dark {
  background-color: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.18);
  color: var(--primary-100);
}

.section-header {
  max-width: 680px;
  margin-bottom: 3.5rem;
}
.section-header--center {
  margin-inline: auto;
  text-align: center;
}
.section-header h2 {
  margin-bottom: 1rem;
}
.section-header p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

/* ------------------------------------------------------------ 4. PRIMITIVES */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section {
  padding-block: var(--section-pad);
  position: relative;
}

.section-sm {
  padding-block: var(--section-pad-sm);
}

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

.bg-mint {
  background-color: var(--primary-50);
}

.bg-dark {
  background-color: var(--dark-night);
  color: #E2E8F0;
}
.bg-dark h1, .bg-dark h2, .bg-dark h3, .bg-dark h4 {
  color: var(--text-white);
}
.bg-dark p {
  color: #CBD5E1;
}

/* Grid Utilities */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

.grid-3 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
}

.grid-4 {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .grid-2-sm { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 992px) {
  .grid-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-2-asym { grid-template-columns: 1.15fr 0.85fr; }
  .grid-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(4, 1fr); }
  .order-md-1 { order: 1; }
  .order-md-2 { order: 2; }
}

/* ------------------------------------------------------------- 5. BUTTONS */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.95rem;
  font-weight: 600;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  border: 1.5px solid transparent;
  transition: all var(--transition-fast);
  white-space: nowrap;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--text-white);
  box-shadow: var(--shadow-primary);
}
.btn-primary:hover {
  background-color: var(--primary-hover);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -4px rgba(10, 104, 71, 0.32);
}

.btn-accent {
  background-color: var(--accent);
  color: var(--text-white);
  box-shadow: var(--shadow-accent);
}
.btn-accent:hover {
  background-color: var(--accent-hover);
  color: var(--text-white);
  transform: translateY(-2px);
  box-shadow: 0 14px 24px -4px rgba(217, 119, 6, 0.35);
}

.btn-outline {
  background-color: transparent;
  border-color: var(--border-mid);
  color: var(--text-main);
}
.btn-outline:hover {
  border-color: var(--primary);
  color: var(--primary);
  background-color: var(--primary-50);
  transform: translateY(-2px);
}

.btn-outline-white {
  background-color: transparent;
  border-color: rgba(255, 255, 255, 0.35);
  color: var(--text-white);
}
.btn-outline-white:hover {
  background-color: var(--text-white);
  color: var(--dark-night);
  border-color: var(--text-white);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.55rem 1.15rem;
  font-size: 0.85rem;
}

.btn-lg {
  padding: 1rem 2.2rem;
  font-size: 1.05rem;
}

.btn svg {
  width: 1.15rem;
  height: 1.15rem;
  transition: transform var(--transition-fast);
}
.btn:hover svg.arrow-icon {
  transform: translateX(3px);
}

/* ------------------------------------------------------------- 6. TOPBAR */
.topbar {
  background: linear-gradient(90deg, #062319 0%, #0B3326 100%);
  color: #CBD5E1;
  font-size: 0.8rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  position: relative;
  z-index: 50;
  line-height: 1;
}
.topbar-content {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 2.35rem;
  padding-block: 0.35rem;
}
.topbar-left, .topbar-right {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}
.topbar-divider {
  display: inline-block;
  width: 1px;
  height: 12px;
  background-color: rgba(255, 255, 255, 0.2);
}
.topbar-item {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.8rem;
  color: #CBD5E1;
}
.topbar-item svg {
  width: 0.875rem;
  height: 0.875rem;
  color: var(--primary-light);
  flex-shrink: 0;
}
.topbar-link {
  color: #E2E8F0;
  text-decoration: none;
  font-weight: 500;
  transition: color var(--transition-fast);
}
.topbar-link:hover {
  color: var(--text-white);
  text-decoration: underline;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.25rem 0.65rem;
  background-color: rgba(16, 185, 129, 0.16);
  border: 1px solid rgba(16, 185, 129, 0.35);
  border-radius: var(--radius-pill);
  color: #A7F3D0;
  font-weight: 700;
  font-size: 0.725rem;
  letter-spacing: 0.02em;
}
.status-dot {
  width: 6px;
  height: 6px;
  background-color: #10B981;
  border-radius: 50%;
  box-shadow: 0 0 8px #10B981;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.4; transform: scale(1.2); }
  100% { opacity: 1; transform: scale(1); }
}

@media (max-width: 768px) {
  .topbar-schedule, .topbar-location, .topbar-divider {
    display: none !important;
  }
  .topbar-content {
    min-height: 2.2rem;
  }
}

/* ------------------------------------------------------------- 7. HEADER & NAVBAR */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(226, 232, 240, 0.85);
  transition: all var(--transition-normal);
}
.site-header.scrolled {
  box-shadow: 0 10px 25px -5px rgba(15, 23, 42, 0.07), 0 4px 6px -2px rgba(15, 23, 42, 0.03);
  background-color: rgba(255, 255, 255, 0.98);
  border-bottom-color: var(--border-light);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  min-height: 4.35rem;
}

/* Brand / Logo */
.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: var(--text-main);
  flex-shrink: 0;
}
.brand-icon {
  width: 2.5rem;
  height: 2.5rem;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-hover) 100%);
  color: var(--text-white);
  border-radius: 12px;
  display: grid;
  place-items: center;
  box-shadow: 0 4px 10px -2px rgba(10, 104, 71, 0.3);
  border: 1px solid rgba(255, 255, 255, 0.2);
  flex-shrink: 0;
}
.brand-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.brand-text {
  display: flex;
  flex-direction: column;
}
.brand-title {
  font-size: 1.1rem;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--text-main);
  line-height: 1.2;
}
.brand-accent {
  color: var(--primary);
}
.brand-subtitle {
  font-size: 0.6875rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted);
  margin-top: 0.1rem;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-inline: auto;
}
.nav-link {
  position: relative;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
  transition: all var(--transition-fast);
  white-space: nowrap;
}
.nav-link:hover {
  color: var(--primary);
  background-color: var(--primary-50);
}
.nav-link[aria-current="page"] {
  color: var(--primary);
  background-color: var(--primary-50);
  font-weight: 700;
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}
.header-cta {
  padding: 0.5rem 1.15rem;
  font-size: 0.85rem;
  height: 2.35rem;
  box-shadow: var(--shadow-sm);
}

/* Animated Hamburger */
.mobile-toggle {
  display: none;
  background: var(--bg-surface);
  border: 1px solid var(--border-light);
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 10px;
  cursor: pointer;
  place-items: center;
  color: var(--text-main);
  transition: all var(--transition-fast);
  padding: 0;
}
.mobile-toggle:hover {
  background: var(--primary-50);
  color: var(--primary);
  border-color: var(--primary-100);
}
.hamburger-box {
  width: 17px;
  height: 13px;
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.hamburger-line {
  display: block;
  width: 100%;
  height: 2px;
  background-color: currentColor;
  border-radius: 2px;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
}
.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(1) {
  transform: translateY(5.5px) rotate(45deg);
}
.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}
.mobile-toggle[aria-expanded="true"] .hamburger-line:nth-child(3) {
  transform: translateY(-5.5px) rotate(-45deg);
}

/* ------------------------------------------------------------- 8. HERO */
.hero {
  position: relative;
  padding-block: clamp(3rem, 6vw, 5.5rem) clamp(3.5rem, 6vw, 5.5rem);
  overflow: hidden;
  background: radial-gradient(circle at 10% 15%, rgba(16, 185, 129, 0.07) 0%, transparent 45%),
              radial-gradient(circle at 90% 85%, rgba(217, 119, 6, 0.05) 0%, transparent 40%),
              var(--bg-white);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3.5rem;
  align-items: center;
}
@media (min-width: 992px) {
  .hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
  }
}

.hero-content > * + * {
  margin-top: 1.5rem;
}
.hero-content h1 {
  margin-top: 0.75rem;
}
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  padding-top: 0.5rem;
}

/* Hero Media & Floating Badges */
.hero-media-wrapper {
  position: relative;
}
.hero-image-box {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: 0 25px 50px -12px rgba(10, 104, 71, 0.18), 0 0 0 1px rgba(10, 104, 71, 0.08);
  aspect-ratio: 4 / 3.4;
  background-color: var(--bg-surface);
}
.hero-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.hero-image-box:hover img {
  transform: scale(1.03);
}

/* Floating Card 1 */
.floating-badge {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: 0.85rem 1.15rem;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.8);
  max-width: 290px;
}
.floating-badge--top {
  top: -1.25rem;
  left: -1rem;
  animation: floatSlow 5s ease-in-out infinite;
}
.floating-badge--bottom {
  bottom: -1.25rem;
  right: -1rem;
  animation: floatSlow 5s ease-in-out infinite reverse;
}

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

.floating-icon {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.floating-icon--emerald {
  background-color: var(--primary-100);
  color: var(--primary);
}
.floating-icon--amber {
  background-color: var(--accent-100);
  color: var(--accent);
}
.floating-icon svg {
  width: 1.35rem;
  height: 1.35rem;
}
.floating-info h4 {
  font-size: 0.875rem;
  color: var(--text-main);
  line-height: 1.25;
}
.floating-info p {
  font-size: 0.775rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
  line-height: 1.35;
}

/* Stats Ribbon */
.stats-ribbon {
  background-color: var(--bg-white);
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
  padding-block: 2.25rem;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
}
@media (min-width: 768px) {
  .stats-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}
.stat-item {
  display: flex;
  flex-direction: column;
  padding-left: 1.25rem;
  border-left: 3px solid var(--primary-100);
  transition: border-color var(--transition-fast);
}
.stat-item:hover {
  border-left-color: var(--primary);
}
.stat-number {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--primary);
  line-height: 1.1;
  letter-spacing: -0.03em;
}
.stat-label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-body);
  margin-top: 0.35rem;
}
.stat-desc {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ------------------------------------------------------------- 9. CARDS & SECTIONS */
.card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
  position: relative;
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-xl);
  border-color: rgba(10, 104, 71, 0.2);
}

.card-body {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

/* Feature Box */
.feature-box {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  transition: all var(--transition-normal);
  position: relative;
}
.feature-box:hover {
  transform: translateY(-4px);
  border-color: var(--primary-light);
  box-shadow: var(--shadow-lg);
}
.feature-icon-wrapper {
  width: 3.25rem;
  height: 3.25rem;
  border-radius: var(--radius-md);
  background-color: var(--primary-50);
  border: 1px solid var(--primary-100);
  color: var(--primary);
  display: grid;
  place-items: center;
  margin-bottom: 1.35rem;
  transition: all var(--transition-fast);
}
.feature-box:hover .feature-icon-wrapper {
  background-color: var(--primary);
  color: var(--text-white);
  transform: scale(1.05);
}
.feature-icon-wrapper svg {
  width: 1.65rem;
  height: 1.65rem;
}
.feature-box h3 {
  margin-bottom: 0.65rem;
  font-size: 1.25rem;
}
.feature-box p {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.65;
}

/* Program Card */
.program-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}
.program-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-xl);
  border-color: var(--primary-200);
}
.program-thumb {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background-color: var(--bg-surface);
}
.program-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.program-card:hover .program-thumb img {
  transform: scale(1.05);
}
.program-badge {
  position: absolute;
  top: 1rem;
  left: 1rem;
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-pill);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: var(--shadow-md);
}
.program-badge--emerald {
  background-color: var(--primary);
  color: var(--text-white);
}
.program-badge--amber {
  background-color: var(--accent);
  color: var(--text-white);
}
.program-badge--slate {
  background-color: var(--dark-night);
  color: var(--text-white);
}

.program-content {
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}
.program-content h3 {
  font-size: 1.35rem;
  margin-bottom: 0.65rem;
}
.program-content p {
  color: var(--text-muted);
  font-size: 0.935rem;
  margin-bottom: 1.25rem;
  line-height: 1.6;
}

/* Checklist */
.checklist {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 1.5rem;
}
.checklist-item {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: var(--text-body);
}
.checklist-icon {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--primary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.card-footer-action {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}

/* ------------------------------------------------------------- 10. PPDB STEPS */
.steps-wrapper {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  position: relative;
}
@media (min-width: 640px) {
  .steps-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 1024px) {
  .steps-wrapper {
    grid-template-columns: repeat(4, 1fr);
  }
}

.step-card {
  background: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem 1.5rem;
  position: relative;
  transition: all var(--transition-normal);
  display: flex;
  flex-direction: column;
}
.step-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-100);
}
.step-number {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: var(--primary-50);
  border: 2px solid var(--primary-100);
  color: var(--primary);
  font-size: 1.15rem;
  font-weight: 800;
  display: grid;
  place-items: center;
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}
.step-card:hover .step-number {
  background: var(--primary);
  color: var(--text-white);
  border-color: var(--primary);
}
.step-card h3 {
  font-size: 1.15rem;
  margin-bottom: 0.5rem;
}
.step-card p {
  color: var(--text-muted);
  font-size: 0.885rem;
  line-height: 1.6;
}

/* ------------------------------------------------------------- 11. TESTIMONIALS */
.testimonial-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  padding: 2rem;
  display: flex;
  flex-direction: column;
  transition: all var(--transition-normal);
}
.testimonial-card:hover {
  box-shadow: var(--shadow-lg);
  border-color: var(--border-mid);
}
.stars-rating {
  display: flex;
  gap: 0.25rem;
  color: #F59E0B;
  margin-bottom: 1rem;
}
.stars-rating svg {
  width: 1.1rem;
  height: 1.1rem;
  fill: currentColor;
}
.testimonial-quote {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-body);
  margin-bottom: 1.5rem;
  font-style: italic;
  flex-grow: 1;
}
.testimonial-author {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border-light);
}
.author-avatar {
  width: 2.75rem;
  height: 2.75rem;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary-100) 0%, var(--primary-50) 100%);
  color: var(--primary);
  display: grid;
  place-items: center;
  font-weight: 700;
  font-size: 0.95rem;
  flex-shrink: 0;
}
.author-info h4 {
  font-size: 0.95rem;
  line-height: 1.2;
}
.author-info p {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.15rem;
}

/* ------------------------------------------------------------- 12. GALLERY & FILTER */
.gallery-filter {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: center;
  margin-bottom: 2.5rem;
}
.filter-btn {
  padding: 0.55rem 1.25rem;
  border-radius: var(--radius-pill);
  border: 1.5px solid var(--border-mid);
  background-color: var(--bg-white);
  color: var(--text-body);
  font-size: 0.875rem;
  font-weight: 600;
  cursor: pointer;
  transition: all var(--transition-fast);
}
.filter-btn:hover {
  border-color: var(--primary);
  color: var(--primary);
}
.filter-btn[aria-pressed="true"] {
  background-color: var(--primary);
  border-color: var(--primary);
  color: var(--text-white);
  box-shadow: var(--shadow-sm);
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}
@media (min-width: 640px) {
  .gallery-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 992px) {
  .gallery-grid { grid-template-columns: repeat(3, 1fr); }
}

.gallery-item {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background-color: var(--bg-surface);
  border: 1px solid var(--border-light);
  cursor: pointer;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
  display: block;
  width: 100%;
  padding: 0;
  text-align: left;
}
.gallery-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-xl);
}
.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.gallery-item:hover img {
  transform: scale(1.06);
}
.gallery-overlay {
  position: absolute;
  inset: auto 0 0 0;
  padding: 3rem 1.25rem 1.25rem;
  background: linear-gradient(to top, rgba(6, 35, 25, 0.9) 0%, rgba(6, 35, 25, 0.4) 60%, transparent 100%);
  color: var(--text-white);
  transition: opacity var(--transition-fast);
}
.gallery-category {
  display: inline-block;
  padding: 0.2rem 0.55rem;
  background-color: rgba(16, 185, 129, 0.3);
  backdrop-filter: blur(4px);
  border-radius: var(--radius-pill);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: #A7F3D0;
  margin-bottom: 0.35rem;
}
.gallery-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-white);
  line-height: 1.35;
}

/* Lightbox Modal */
.modal-dialog {
  border: none;
  border-radius: var(--radius-xl);
  background: var(--bg-white);
  color: var(--text-main);
  max-width: min(880px, 94vw);
  width: 100%;
  margin: auto;
  overflow: hidden;
  box-shadow: 0 25px 60px -15px rgba(0, 0, 0, 0.4);
}
.modal-dialog::backdrop {
  background: rgba(6, 35, 25, 0.85);
  backdrop-filter: blur(8px);
}
.modal-inner {
  position: relative;
  display: flex;
  flex-direction: column;
}
.modal-close-btn {
  position: absolute;
  top: 1rem;
  right: 1rem;
  z-index: 20;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  border: none;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: var(--text-main);
  box-shadow: var(--shadow-md);
  transition: all var(--transition-fast);
}
.modal-close-btn:hover {
  background: var(--text-white);
  transform: rotate(90deg);
}
.modal-img-wrapper {
  width: 100%;
  max-height: 65vh;
  background-color: #000;
  display: flex;
  justify-content: center;
  align-items: center;
}
.modal-img {
  width: 100%;
  max-height: 65vh;
  object-fit: contain;
}
.modal-details {
  padding: 1.5rem 1.75rem;
  background-color: var(--bg-white);
}

/* ------------------------------------------------------------- 13. ACCORDION / FAQ */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}
.faq-item {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background-color: var(--bg-white);
  overflow: hidden;
  transition: all var(--transition-fast);
}
.faq-item[open] {
  border-color: var(--primary-100);
  box-shadow: var(--shadow-md);
}
.faq-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding: 1.35rem 1.5rem;
  cursor: pointer;
  font-weight: 700;
  font-size: 1.05rem;
  color: var(--text-main);
  user-select: none;
}
.faq-summary::-webkit-details-marker {
  display: none;
}
.faq-chevron {
  width: 1.35rem;
  height: 1.35rem;
  color: var(--primary);
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}
.faq-item[open] .faq-chevron {
  transform: rotate(180deg);
}
.faq-answer {
  padding: 0 1.5rem 1.5rem 1.5rem;
  color: var(--text-body);
  line-height: 1.75;
  font-size: 0.95rem;
}

/* ------------------------------------------------------------- 14. MODERN TABLES */
.table-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border-light);
  border-radius: var(--radius-lg);
  background-color: var(--bg-white);
  box-shadow: var(--shadow-sm);
}
.modern-table {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  font-size: 0.935rem;
}
.modern-table th {
  background-color: var(--bg-surface);
  color: var(--text-main);
  font-weight: 700;
  padding: 1.15rem 1.5rem;
  border-bottom: 2px solid var(--border-light);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}
.modern-table td {
  padding: 1.15rem 1.5rem;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-body);
  vertical-align: middle;
}
.modern-table tr:last-child td {
  border-bottom: none;
}
.modern-table tr:hover td {
  background-color: var(--primary-50);
}

.table-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-pill);
  font-size: 0.785rem;
  font-weight: 600;
}
.table-pill--emerald {
  background-color: var(--primary-100);
  color: var(--primary-dark);
}
.table-pill--amber {
  background-color: var(--accent-100);
  color: var(--accent-hover);
}

/* ------------------------------------------------------------- 15. FORMS */
.form-card {
  background-color: var(--bg-white);
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  padding: clamp(1.75rem, 4vw, 2.75rem);
  box-shadow: var(--shadow-lg);
}
.form-group {
  margin-bottom: 1.35rem;
}
.form-label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  margin-bottom: 0.45rem;
}
.form-label .required {
  color: #DC2626;
  margin-left: 0.2rem;
}
.form-control {
  width: 100%;
  padding: 0.85rem 1.15rem;
  border: 1.5px solid var(--border-mid);
  border-radius: var(--radius-md);
  background-color: var(--bg-white);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}
.form-control:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 104, 71, 0.15);
}
.form-control::placeholder {
  color: var(--text-subtle);
}
.form-control.is-invalid {
  border-color: #DC2626;
  background-color: #FEF2F2;
}
textarea.form-control {
  min-height: 7.5rem;
  resize: vertical;
}
.form-hint {
  font-size: 0.8rem;
  color: var(--text-muted);
  margin-top: 0.35rem;
}
.form-error {
  font-size: 0.825rem;
  color: #DC2626;
  margin-top: 0.35rem;
  display: none;
}
.form-error.visible {
  display: block;
}

.form-alert {
  padding: 1.15rem 1.35rem;
  border-radius: var(--radius-md);
  margin-bottom: 1.5rem;
  font-size: 0.935rem;
  display: none;
}
.form-alert--success {
  background-color: var(--primary-50);
  border: 1px solid var(--primary-200);
  color: var(--primary-dark);
}
.form-alert--error {
  background-color: #FEF2F2;
  border: 1px solid #FECACA;
  color: #991B1B;
}

/* ------------------------------------------------------------- 16. PAGE HEADER / BANNER */
.page-header {
  background: linear-gradient(135deg, var(--dark-night) 0%, var(--dark-surface) 100%);
  color: var(--text-white);
  padding-block: clamp(3.5rem, 6vw, 5rem);
  position: relative;
  overflow: hidden;
}
.page-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(circle at 80% 20%, rgba(16, 185, 129, 0.15) 0%, transparent 60%);
  pointer-events: none;
}
.page-header h1 {
  color: var(--text-white);
  margin-bottom: 0.75rem;
}
.page-header .lead-text {
  color: #CBD5E1;
  max-width: 620px;
}

.breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  font-weight: 500;
  margin-bottom: 1.25rem;
  color: #94A3B8;
  flex-wrap: wrap;
}
.breadcrumb a {
  color: #CBD5E1;
  text-decoration: none;
  transition: color var(--transition-fast);
}
.breadcrumb a:hover {
  color: var(--text-white);
  text-decoration: underline;
}
.breadcrumb-separator {
  color: #64748B;
  font-size: 0.75rem;
}
.breadcrumb-current {
  color: var(--primary-100);
  font-weight: 600;
}

/* ------------------------------------------------------------- 17. CTA BANNER */
.cta-banner {
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--dark-night) 100%);
  border-radius: var(--radius-xl);
  padding: clamp(2.5rem, 5vw, 4.5rem) clamp(1.75rem, 4vw, 3.5rem);
  color: var(--text-white);
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow-xl);
}
.cta-banner::before {
  content: "";
  position: absolute;
  top: -50%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(217, 119, 6, 0.2) 0%, transparent 70%);
  pointer-events: none;
}
.cta-banner h2 {
  color: var(--text-white);
  margin-bottom: 1rem;
}
.cta-banner p {
  color: #E2E8F0;
  max-width: 580px;
  font-size: 1.05rem;
  margin-bottom: 2rem;
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
}

/* ------------------------------------------------------------- 18. FOOTER */
.site-footer {
  background-color: var(--dark-night);
  color: #94A3B8;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  padding-top: clamp(4rem, 6vw, 5.5rem);
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 3rem;
  padding-bottom: 3.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
@media (min-width: 640px) {
  .footer-top { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .footer-top { grid-template-columns: 1.5fr 1fr 1fr 1.25fr; }
}

.footer-brand .brand-title {
  color: var(--text-white);
}
.footer-brand .brand-subtitle {
  color: var(--primary-light);
}
.footer-desc {
  color: #94A3B8;
  font-size: 0.925rem;
  line-height: 1.7;
  margin-top: 1.25rem;
  margin-bottom: 1.5rem;
}

.footer-col h3 {
  color: var(--text-white);
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.35rem;
  letter-spacing: 0.02em;
}
.footer-links {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.footer-links a {
  color: #94A3B8;
  font-size: 0.9rem;
  text-decoration: none;
  transition: all var(--transition-fast);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.footer-links a:hover {
  color: var(--text-white);
  transform: translateX(3px);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.9rem;
  color: #94A3B8;
  margin-bottom: 0.95rem;
  line-height: 1.5;
}
.footer-contact-item svg {
  width: 1.15rem;
  height: 1.15rem;
  color: var(--primary-light);
  flex-shrink: 0;
  margin-top: 0.2rem;
}
.footer-contact-item a {
  color: #CBD5E1;
  text-decoration: none;
}
.footer-contact-item a:hover {
  color: var(--text-white);
  text-decoration: underline;
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding-block: 1.75rem;
  font-size: 0.85rem;
  color: #64748B;
  flex-wrap: wrap;
}

/* ------------------------------------------------------------- 19. RESPONSIVE NAVIGATION */
@media (max-width: 1040px) {
  .mobile-toggle {
    display: grid;
  }
  .header-actions .header-cta {
    display: none;
  }
  
  .nav-menu {
    position: fixed;
    top: 4.5rem;
    left: 1rem;
    right: 1rem;
    background-color: #FFFFFF;
    border: 1px solid var(--border-light);
    border-radius: var(--radius-xl);
    box-shadow: 0 20px 45px -10px rgba(15, 23, 42, 0.2), 0 0 0 1px rgba(15, 23, 42, 0.05);
    flex-direction: column;
    align-items: stretch;
    padding: 1.15rem;
    gap: 0.35rem;
    max-height: calc(100vh - 6rem);
    overflow-y: auto;
    visibility: hidden;
    opacity: 0;
    transform: translateY(-8px);
    transition: all var(--transition-normal);
    z-index: 99;
  }
  .nav-menu.is-active {
    visibility: visible;
    opacity: 1;
    transform: translateY(0);
  }
  .nav-link {
    padding: 0.75rem 1rem;
    font-size: 0.95rem;
    border-radius: var(--radius-sm);
  }
  .mobile-menu-cta {
    margin-top: 0.75rem;
    padding-top: 0.75rem;
    border-top: 1px solid var(--border-light);
  }
  .mobile-menu-cta .btn {
    display: flex;
    width: 100%;
    height: 2.75rem;
  }
}

/* ------------------------------------------------------------- 20. ACCESSIBILITY & PRINT */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* Scroll Animation Elements */
[data-animate] {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}
[data-animate].is-visible {
  opacity: 1;
  transform: translateY(0);
}

@media print {
  .topbar, .site-header, .cta-banner, .site-footer, .mobile-toggle, .btn {
    display: none !important;
  }
  body {
    background: #fff !important;
    color: #000 !important;
    font-size: 11pt;
  }
  .card, .table-wrapper {
    box-shadow: none !important;
    border: 1px solid #999 !important;
  }
}
