/* ==========================================================================
   SMA MUHAMMADIYAH AL KAUTSAR
   Aesthetic Architecture: Light Mode with Fresh Academic Green Nuance
   Palette: Light Sage & Porcelain Canvas, Rich Islamic Emerald & Warm Gold
   Discipline: Strict Modern Sans Typography, Editorial Asymmetry, Zero Em-Dashes
   ========================================================================== */

:root {
  /* Light Mode with Distinct Green Nuances */

  /* Primary Identity: Rich Academic Emerald & Forest Anchor */
  --color-primary: #0e6e44;
  /* Rich Academic Emerald */
  --color-primary-hover: #095232;
  --color-primary-subtle: rgba(14, 110, 68, 0.09);
  --color-primary-glow: rgba(14, 110, 68, 0.22);

  --color-navy: #09281b;
  /* Deep Pine for Authoritative Headings */
  --color-navy-light: #134530;
  --color-navy-dark: #051910;

  /* Heritage Gold (Prestige Accent) */
  --color-gold: #c59b27;
  /* Radiant Warm Gold */
  --color-gold-hover: #b0871d;
  --color-gold-light: #fefbf3;
  --color-gold-subtle: rgba(197, 155, 39, 0.12);

  /* Primary Action */
  --color-crimson: #0e6e44;
  /* Primary Action Emerald */
  --color-crimson-hover: #095232;
  --color-crimson-subtle: rgba(14, 110, 68, 0.1);

  /* Light Sage & Mint Porcelain Canvas */
  --color-bg: #f5f9f6;
  /* Light Sage Canvas */
  --color-surface: #ffffff;
  /* Crisp Elevated White */
  --color-surface-subtle: #edf5f0;
  /* Soft Sage Tint */
  --color-surface-muted: #e2efe7;
  /* Fresh Mint Porcelain */

  /* Green Nuanced Borders */
  --color-border: #d0e4d7;
  --color-border-subtle: #e3efe7;
  --color-border-dark: rgba(9, 40, 27, 0.14);

  /* High Contrast Sharp Typography */
  --color-text-primary: #092116;
  /* Deep Pine Charcoal */
  --color-text-secondary: #3b5245;
  /* Slate Sage */
  --color-text-muted: #647b6e;
  --color-text-on-dark: #ffffff;
  --color-text-on-dark-muted: #d0ded6;

  /* Typography - Clean Modern Sans (Inter) & Impact Number Display (Bebas Neue) */
  --font-display: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-serif: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-bebas: 'Bebas Neue', 'Oswald', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Layout scale */
  --container-max: 1280px;
  --container-narrow: 960px;
  --section-pad-y: 6.5rem;
  --header-height: 56px;

  /* Radii */
  --radius-sm: 4px;
  --radius-md: 6px;
  --radius-lg: 8px;

  /* Green-tinted subtle shadows */
  --shadow-subtle: 0 2px 10px rgba(9, 40, 27, 0.04);
  --shadow-card: 0 8px 24px rgba(9, 40, 27, 0.06);
  --shadow-elevated: 0 16px 40px rgba(9, 40, 27, 0.1);
}

/* Base Reset */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
  scroll-padding-top: 60px;
  overflow-x: clip;
}

section[id] {
  scroll-margin-top: 60px;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text-primary);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  position: relative;
  width: 100%;
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease, opacity 0.2s ease;
}

/* Typography Scale - Modern Crisp Sans-Serif */
h1,
h2,
h3,
h4,
h5 {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--color-navy);
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.text-display-hero {
  font-family: var(--font-display);
  font-size: clamp(2.35rem, 5vw, 4rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.03em;
}

.text-display-section {
  font-family: var(--font-display);
  font-size: clamp(1.85rem, 3.5vw, 2.75rem);
  font-weight: 700;
  line-height: 1.18;
  letter-spacing: -0.025em;
}

.text-display-card {
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2vw, 1.65rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.text-editorial-lead {
  font-family: var(--font-sans);
  font-size: 1.15rem;
  line-height: 1.75;
  color: var(--color-text-secondary);
}

.text-tagline {
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--color-primary);
  display: inline-block;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
}

.text-tagline.gold {
  color: var(--color-gold);
  background-color: var(--color-gold-subtle);
}

/* Container */
.container {
  width: 100%;
  max-width: var(--container-max);
  margin-left: auto;
  margin-right: auto;
  padding-left: 2rem;
  padding-right: 2rem;
}

.container-narrow {
  max-width: var(--container-narrow);
}

.section-pad {
  padding-top: var(--section-pad-y);
  padding-bottom: var(--section-pad-y);
}

.section-pad-sm {
  padding-top: 4rem;
  padding-bottom: 4rem;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  padding: 0.9rem 1.8rem;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  border-radius: var(--radius-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  white-space: nowrap;
}

/* Primary CTA Button: Rich Academic Emerald */
.btn-crimson,
.btn-primary {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 14px var(--color-primary-glow);
}

.btn-crimson:hover,
.btn-primary:hover {
  background-color: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px);
  box-shadow: 0 6px 18px rgba(14, 110, 68, 0.32);
}

.btn-gold {
  background-color: var(--color-gold);
  color: #071910;
  border-color: var(--color-gold);
}

.btn-gold:hover {
  background-color: var(--color-gold-hover);
  border-color: var(--color-gold-hover);
  box-shadow: 0 4px 16px rgba(197, 155, 39, 0.3);
}

.btn-outline-white {
  background-color: #ffffff;
  color: var(--color-navy);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-subtle);
}

.btn-outline-white:hover {
  background-color: var(--color-surface-subtle);
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.btn-outline-navy {
  background-color: transparent;
  color: var(--color-navy);
  border-color: var(--color-border);
}

.btn-outline-navy:hover {
  background-color: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

/* ==========================================================================
   HEADER & NAVBAR (CLEAN SOLID WHITE WITH ACADEMIC EMERALD & GOLD ACCENTS)
   ========================================================================== */

.site-header {
  position: sticky;
  top: 0;
  z-index: 200;
  background-color: #ffffff;
  border-bottom: 1px solid var(--color-border-subtle);
  box-shadow: 0 2px 12px rgba(9, 40, 27, 0.04);
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s ease,
              border-color 0.5s ease,
              background-color 0.5s ease;
}

.site-header .container,
.site-header .header-container {
  width: 100%;
  max-width: 100%;
  padding-left: clamp(1.25rem, 3vw, 3rem);
  padding-right: clamp(1.25rem, 3vw, 3rem);
}

.main-nav-bar {
  height: var(--header-height);
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 0.75rem;
  transition: height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              gap 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

/* Nav Slots for Perfect Center Alignment */
.nav-slot {
  display: flex;
  align-items: center;
  transition: flex 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              gap 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.nav-slot-left {
  flex: 1 1 0%;
  min-width: 0;
  justify-content: flex-start;
}

.nav-slot-center {
  flex: 0 0 auto;
  justify-content: center;
}

.nav-slot-right {
  flex: 1 1 0%;
  min-width: 0;
  justify-content: flex-end;
}

/* Scrolled state: converge cleanly, hide school name */
.site-header.is-scrolled {
  background-color: #ffffff;
  border-bottom-color: rgba(14, 110, 68, 0.14);
  box-shadow: 0 4px 20px rgba(9, 40, 27, 0.08);
  transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease,
              background-color 0.35s ease;
}

.site-header.is-scrolled .main-nav-bar {
  height: 46px;
  justify-content: center;
  gap: 1.25rem;
}

.site-header.is-scrolled .nav-slot {
  transition: flex 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              gap 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.site-header.is-scrolled .nav-slot-left {
  flex: 0 0 auto;
}

.site-header.is-scrolled .nav-slot-center {
  flex: 0 0 auto;
}

.site-header.is-scrolled .nav-slot-right {
  flex: 0 0 auto;
}

/* Brand & Logo Crest */
.brand-crest-wrap {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: gap 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.site-header.is-scrolled .brand-crest-wrap {
  gap: 0;
  transition: gap 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.brand-crest-wrap:hover .brand-logo-badge {
  transform: scale(1.05);
  box-shadow: 0 3px 10px rgba(14, 110, 68, 0.2);
}

.brand-logo-badge {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 1.5px solid var(--color-primary);
  box-shadow: 0 2px 6px rgba(14, 110, 68, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  overflow: hidden;
  padding: 2px;
  transition: transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              width 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              height 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              box-shadow 0.5s ease;
}

.site-header.is-scrolled .brand-logo-badge {
  width: 28px;
  height: 28px;
  box-shadow: 0 2px 5px rgba(14, 110, 68, 0.14);
}

.brand-logo-badge.footer-badge {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 2px solid var(--color-primary);
  box-shadow: 0 4px 14px rgba(14, 110, 68, 0.16);
  display: inline-flex;
  padding: 5px;
}

.site-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

/* Brand Headings (School Name & Sub-Header) */
.brand-headings {
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-width: 215px;
  opacity: 1;
  transform: translateX(0);
  white-space: nowrap;
  overflow: hidden;
  transition: max-width 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              opacity 0.5s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.6s cubic-bezier(0.22, 1, 0.36, 1),
              visibility 0.6s ease;
}

.site-header.is-scrolled .brand-headings {
  max-width: 0;
  opacity: 0;
  transform: translateX(-15px);
  pointer-events: none;
  visibility: hidden;
  transition: max-width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.3s ease,
              transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.4s ease;
}

.brand-headings h1,
.brand-headings h4 {
  font-family: var(--font-display);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--color-navy);
  line-height: 1.15;
  letter-spacing: -0.01em;
  transition: color 0.25s ease;
}

.brand-crest-wrap:hover .brand-headings h1,
.brand-crest-wrap:hover .brand-headings h4 {
  color: var(--color-primary);
}

.brand-headings span {
  font-family: var(--font-sans);
  font-size: 0.58rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
  font-weight: 600;
  display: block;
  margin-top: 0px;
}

/* Desktop Navigation */
.desktop-nav {
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-links-desktop {
  display: flex;
  align-items: center;
  gap: clamp(0.2rem, 0.55vw, 0.6rem);
  list-style: none;
}

.nav-links-desktop > li {
  display: inline-flex;
  align-items: center;
}

.nav-item-link {
  font-family: var(--font-sans);
  font-size: 0.735rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  color: var(--color-text-primary);
  padding: 0.22rem 0.2rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  line-height: 1.2;
  transition: color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.nav-item-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--color-primary);
  border-radius: 4px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.25s ease;
}

.nav-item-link:hover {
  color: var(--color-primary);
  transform: translateY(-1px);
}

.nav-item-link:hover::after {
  transform: scaleX(1);
}

.nav-item-link.active {
  color: var(--color-primary);
  font-weight: 700;
}

.nav-item-link.active::after {
  transform: scaleX(1);
  background: linear-gradient(90deg, var(--color-primary), var(--color-gold));
}

/* Dropdown Navigation System (Desktop) */
.nav-item-dropdown {
  position: relative;
  display: inline-flex;
  align-items: center;
}

.nav-dropdown-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  cursor: pointer;
  line-height: 1.2;
}

.nav-dropdown-toggle span {
  display: inline-flex;
  align-items: center;
  line-height: inherit;
}

.nav-dropdown-icon {
  font-size: 0.65rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  color: var(--color-text-muted);
}

.nav-item-dropdown:hover .nav-dropdown-icon,
.nav-item-dropdown:focus-within .nav-dropdown-icon,
.nav-item-dropdown.is-open .nav-dropdown-icon {
  transform: rotate(180deg);
  color: var(--color-primary);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 160px;
  background-color: #ffffff;
  border: 1px solid var(--color-border-subtle);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 26px rgba(9, 40, 27, 0.12), 0 2px 6px rgba(9, 40, 27, 0.04);
  padding: 0.35rem 0;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.2s ease,
              transform 0.2s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.2s ease;
  z-index: 250;
}

/* Hover bridge so moving cursor to dropdown doesn't lose hover */
.nav-dropdown-menu::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 0;
  width: 100%;
  height: 8px;
}

.nav-item-dropdown:hover .nav-dropdown-menu,
.nav-item-dropdown:focus-within .nav-dropdown-menu,
.nav-item-dropdown.is-open .nav-dropdown-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateX(-50%) translateY(0);
}

.nav-dropdown-item {
  display: block;
  padding: 0.45rem 0.95rem;
  font-family: var(--font-sans);
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--color-text-primary);
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: 0.02em;
  transition: background-color 0.16s ease,
              color 0.16s ease,
              padding-left 0.16s ease;
}

.nav-dropdown-item:hover,
.nav-dropdown-item:focus {
  background-color: var(--color-surface-subtle);
  color: var(--color-primary);
  font-weight: 600;
  padding-left: 1.15rem;
}

/* CTA & Actions */
.main-nav-cta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-shrink: 0;
}

.header-cta-btn {
  padding: 0.38rem 0.85rem;
  font-size: 0.74rem;
  font-weight: 600;
  position: relative;
  overflow: hidden;
  letter-spacing: 0.03em;
  border-radius: var(--radius-sm);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 2px 8px rgba(14, 110, 68, 0.15);
}

.header-cta-btn:hover {
  transform: translateY(-1px);
  box-shadow: 0 3px 10px rgba(14, 110, 68, 0.22);
}

.header-cta-btn:active {
  transform: translateY(0) scale(0.98);
}

/* Animated Hamburger Toggle Button (Borderless & Modern Flush) */
.mobile-menu-btn {
  display: none;
  width: 34px;
  height: 34px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  cursor: pointer;
  padding: 6px 0;
  flex-direction: column;
  justify-content: space-around;
  align-items: flex-end;
  transition: transform 0.2s ease, opacity 0.2s ease;
  position: relative;
  z-index: 201;
  -webkit-tap-highlight-color: transparent;
}

.mobile-menu-btn:hover {
  background: transparent;
  border: none;
  box-shadow: none;
  opacity: 0.85;
}

.mobile-menu-btn:active {
  transform: scale(0.92);
}

.hamburger-line {
  display: block;
  width: 24px;
  height: 2.5px;
  background-color: var(--color-navy);
  border-radius: 2px;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.2s ease,
              background-color 0.25s ease;
  transform-origin: center;
}

.mobile-menu-btn.is-active .hamburger-line {
  background-color: var(--color-primary);
}

.mobile-menu-btn.is-active .hamburger-line:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}

.mobile-menu-btn.is-active .hamburger-line:nth-child(2) {
  opacity: 0;
  transform: scaleX(0);
}

.mobile-menu-btn.is-active .hamburger-line:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* ==========================================================================
   TOP SCROLL PROGRESS INDICATOR & AMBIENT ANIMATION
   ========================================================================== */
.scroll-progress-bar {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0%;
  background: linear-gradient(90deg, var(--color-primary) 0%, #1db871 55%, var(--color-gold) 100%);
  z-index: 9999;
  pointer-events: none;
  box-shadow: 0 0 10px rgba(14, 110, 68, 0.5), 0 0 4px rgba(197, 155, 39, 0.6);
  transition: width 0.08s ease-out;
}

/* Mobile Backdrop */
.mobile-nav-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 40, 27, 0.55);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.35s ease, visibility 0.35s ease;
  z-index: 99998;
}

.mobile-nav-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Mobile Nav Drawer (Right Slide-In Off-Canvas Sheet - Webview Optimized) */
.mobile-nav-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: auto;
  inset: 0 0 0 auto;
  width: min(85vw, 320px);
  height: 100%;
  height: 100vh;
  height: 100dvh;
  max-height: 100dvh;
  background-color: #ffffff;
  border-left: 1px solid var(--color-border);
  box-shadow: -10px 0 36px rgba(9, 40, 27, 0.16);
  z-index: 99999;
  transform: translateX(100%);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.25s ease,
              visibility 0.38s ease;
  display: flex;
  flex-direction: column;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

.mobile-nav-drawer.open {
  transform: translateX(0);
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

/* Drawer Top Bar with Safe Area Support */
.mobile-drawer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.15rem 1.25rem;
  padding-top: max(1.15rem, env(safe-area-inset-top, 1.15rem));
  border-bottom: 1px solid var(--color-border-subtle);
  background-color: #ffffff;
  flex-shrink: 0;
}

.drawer-title {
  font-family: var(--font-sans);
  font-size: 0.82rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--color-text-muted);
}

.drawer-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  border: none;
  color: var(--color-navy);
  font-size: 1.35rem;
  cursor: pointer;
  border-radius: 50%;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.drawer-close-btn:hover {
  background-color: var(--color-surface-subtle);
  color: var(--color-primary);
  transform: scale(1.08);
}

.mobile-nav-inner {
  padding: 1.5rem 1.25rem;
  padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  flex: 1 1 auto;
  overflow-y: auto;
  gap: 1.5rem;
}

.mobile-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding-top: 0.5rem;
}

.mobile-nav-list li {
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--item-index, 1) * 0.04s + 0.08s);
}

.mobile-nav-drawer.open .mobile-nav-list li,
.mobile-nav-drawer.open .mobile-drawer-cta {
  opacity: 1;
  transform: translateX(0);
}

.mobile-nav-item {
  display: block;
  padding: 0.6rem 0.25rem;
  color: #0b1e15;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.25;
  background-color: transparent;
  border: none;
  border-radius: 0;
  transition: color 0.2s ease, transform 0.2s ease;
}

.mobile-nav-item:hover {
  color: var(--color-primary);
  transform: translateX(6px);
  background-color: transparent;
}

.mobile-nav-item.active {
  color: var(--color-primary);
  font-weight: 800;
  background-color: transparent;
  border: none;
}

/* Mobile Submenu Accordion */
.mobile-nav-dropdown {
  display: flex;
  flex-direction: column;
}

.mobile-dropdown-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
}

.mobile-dropdown-btn {
  width: 36px;
  height: 36px;
  background: transparent;
  border: none;
  border-radius: 50%;
  color: var(--color-text-secondary);
  font-size: 1.15rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.25s ease, background-color 0.2s ease, color 0.2s ease;
  -webkit-tap-highlight-color: transparent;
}

.mobile-dropdown-btn:hover {
  background-color: var(--color-surface-subtle);
  color: var(--color-primary);
}

.mobile-nav-dropdown.is-open .mobile-dropdown-btn {
  transform: rotate(180deg);
  color: var(--color-primary);
  background-color: var(--color-surface-subtle);
}

.mobile-submenu-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-left: 0.85rem;
  margin-left: 0.4rem;
  border-left: 2px solid var(--color-border-subtle);
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transition: max-height 0.32s cubic-bezier(0.16, 1, 0.3, 1),
              opacity 0.22s ease,
              margin 0.22s ease;
}

.mobile-nav-dropdown.is-open .mobile-submenu-list {
  max-height: 220px;
  opacity: 1;
  margin-top: 0.35rem;
  margin-bottom: 0.45rem;
}

.mobile-submenu-item {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-text-secondary);
  padding: 0.35rem 0.5rem;
  border-radius: var(--radius-sm);
  transition: color 0.2s ease, transform 0.2s ease, background-color 0.2s ease;
}

.mobile-submenu-item:hover {
  color: var(--color-primary);
  transform: translateX(4px);
  background-color: var(--color-surface-subtle);
}

.mobile-drawer-cta {
  opacity: 0;
  transform: translateX(18px);
  transition: opacity 0.32s ease, transform 0.32s cubic-bezier(0.16, 1, 0.3, 1);
  transition-delay: calc(var(--item-index, 5) * 0.04s + 0.08s);
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-subtle);
}

.mobile-btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 0.95rem 1.5rem;
  font-size: 1rem;
  font-weight: 600;
  text-align: center;
}

/* Prevent body scrolling when mobile menu is open */
body.nav-open {
  overflow: hidden;
}

/* ==========================================================================
   LIGHT / CINEMATIC HERO SECTION (PORCELAIN & RICH ISLAMIC EMERALD)
   ========================================================================== */

.pg-hero-section {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  background-color: #f2f7f4;
  color: var(--color-text-primary);
  overflow: hidden;
}

/* Home Jumbotron 100vh Viewport-Fit (Desktop Above-The-Fold) */
.pg-hero-home {
  height: calc(100vh - var(--header-height, 80px));
  min-height: 580px;
  max-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: stretch;
  padding: 0;
  overflow: hidden;
}

.pg-hero-inner-container {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  height: 100%;
  width: 100%;
  position: relative;
  z-index: 2;
}

.pg-hero-home .pg-hero-inner-container > .container {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.pg-hero-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 1;
  pointer-events: none;
  transform: scale(1.01);
  transition: transform 1.2s ease;
}

.pg-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(255, 255, 255, 0.96) 0%, rgba(255, 255, 255, 0.88) 38%, rgba(255, 255, 255, 0.68) 70%, rgba(255, 255, 255, 0.5) 100%);
}

.pg-hero-video {
  filter: brightness(1.25);
}

.pg-hero-overlay.inner {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.5) 100%);
}

/* Dark transparent overlay — used on the index page jumbotron */
.pg-hero-dark .pg-hero-overlay {
  background: linear-gradient(90deg, rgba(10, 20, 30, 0.85) 0%, rgba(10, 20, 30, 0.65) 45%, rgba(10, 20, 30, 0.28) 100%);
}

.pg-hero-dark .pg-hero-video {
  filter: brightness(0.85);
}

.pg-hero-dark .pg-hero-title {
  color: #ffffff;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.55);
}

.pg-hero-dark .pg-hero-sub {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
}

/* Hero Video Play/Pause Toggle */
.pg-hero-video-toggle {
  position: absolute;
  right: 2.25rem;
  bottom: 2.25rem;
  z-index: 5;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background-color: rgba(10, 30, 20, 0.6);
  color: #ffffff;
  font-size: 1.35rem;
  cursor: pointer;
  backdrop-filter: blur(6px);
  box-shadow: 0 4px 18px rgba(0, 0, 0, 0.35);
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.pg-hero-video-toggle:hover {
  background-color: var(--color-primary);
  transform: scale(1.08);
}

.pg-hero-video-toggle .toggle-icon-play {
  display: none;
  margin-left: 0.2rem;
}

.pg-hero-video-toggle.is-paused .toggle-icon-pause {
  display: none;
}

.pg-hero-video-toggle.is-paused .toggle-icon-play {
  display: inline-block;
}

.pg-hero-content {
  position: relative;
  z-index: 2;
  max-width: 840px;
  padding: 4.5rem 0;
}

.pg-hero-home .pg-hero-content {
  margin: 0;
  padding: 0;
  max-width: 860px;
}

.pg-hero-tag {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  color: var(--color-primary);
  background-color: rgba(255, 255, 255, 0.85);
  backdrop-filter: blur(4px);
  padding: 0.35rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--color-border);
  margin-bottom: 1.25rem;
  display: inline-block;
}

.pg-hero-title {
  color: var(--color-navy);
  margin-bottom: 1.5rem;
  text-shadow: 0 1px 3px rgba(255, 255, 255, 0.9);
}

.pg-hero-home .pg-hero-title {
  font-size: clamp(2.1rem, 3.2vw, 3.35rem);
  line-height: 1.14;
  margin-bottom: 1.1rem;
  letter-spacing: -0.028em;
}

.pg-hero-sub {
  font-size: 1.2rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  margin-bottom: 2.25rem;
  max-width: 60ch;
  text-shadow: 0 1px 2px rgba(255, 255, 255, 0.95);
}

.pg-hero-home .pg-hero-sub {
  font-size: clamp(0.98rem, 1.12vw, 1.12rem);
  line-height: 1.65;
  margin-bottom: 1.85rem;
  max-width: 58ch;
}

.pg-hero-btns {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.pg-hero-home .pg-hero-btns {
  gap: 1rem;
}

/* Partner / Supported By Strip (Docked at Hero Bottom) */
.partner-support-strip {
  background-color: var(--color-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.85rem 0;
  width: 100%;
  flex-shrink: 0;
  box-shadow: 0 4px 18px var(--color-primary-glow);
  position: relative;
  z-index: 3;
}

.partner-support-wrapper {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  justify-content: space-between;
}

.partner-support-label {
  display: flex;
  align-items: center;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #ffffff;
  white-space: nowrap;
  flex-shrink: 0;
}

.partner-support-logos {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0.85rem;
  flex: 1;
  align-items: center;
}

.partner-logo-item {
  background-color: #ffffff;
  border-radius: var(--radius-sm);
  padding: 0.35rem 0.65rem;
  height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.35);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.25s ease;
  overflow: hidden;
}

.partner-logo-item:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.22);
}

.partner-logo-item img {
  max-width: 100%;
  max-height: 100%;
  width: auto;
  height: auto;
  object-fit: contain;
  display: block;
}

/* Quick Action Strip Fallback / Utility */
.quick-action-strip {
  background-color: var(--color-primary);
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  color: #ffffff;
  padding: 0.85rem 0;
  width: 100%;
  flex-shrink: 0;
  box-shadow: 0 4px 18px var(--color-primary-glow);
  position: relative;
  z-index: 3;
}

.quick-action-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.85rem;
  align-items: center;
}

.quick-action-item {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 0.7rem 1.05rem;
  background-color: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-sm);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
              background-color 0.25s ease,
              border-color 0.25s ease,
              box-shadow 0.25s ease;
  color: #ffffff;
}

.quick-action-item:hover {
  background-color: var(--color-primary-hover);
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-2px);
  box-shadow: 0 4px 16px rgba(9, 82, 50, 0.4);
}

.quick-action-icon {
  font-size: 1.75rem;
  color: #ffffff;
  flex-shrink: 0;
  transition: transform 0.2s ease;
}

.quick-action-item:hover .quick-action-icon {
  transform: scale(1.1);
}

.quick-action-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.quick-action-text {
  font-family: var(--font-sans);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #ffffff;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.quick-action-sub {
  font-size: 0.735rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.25;
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* ==========================================================================
   PORTER-GAUD ASYMMETRIC TWO-COLUMN EDITORIAL
   ========================================================================== */

.pg-editorial-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}

.pg-editorial-left {
  display: flex;
  flex-direction: column;
  gap: 0rem;
}

.pg-editorial-left h2 {
  margin-top: 0.25rem;
  margin-bottom: 0.5rem;
}

.pg-editorial-right {
  position: relative;
}

.pg-framed-photo {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: var(--shadow-elevated);
  border: 1px solid var(--color-border);
}

.pg-framed-photo img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  object-position: center top;
}

.pg-framed-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 40, 27, 0.92) 100%);
  color: #ffffff;
}

.pg-caption-title {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  color: #ffffff;
}

.pg-caption-sub {
  font-size: 0.8rem;
  color: var(--color-gold);
}

/* ==========================================================================
   WHY CHOOSE SMALKA (BRAND-ALIGNED COLUMN MATRIX - DARK GREEN THEME)
   ========================================================================== */

.why-matrix-section {
  position: relative;
  background-color: var(--color-primary);
  background-image: linear-gradient(180deg, rgba(14, 110, 68, 0.96) 0%, rgba(9, 82, 50, 0.98) 100%), url('../images/bg-2.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.why-matrix-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem auto;
}

.why-matrix-header .text-display-section {
  color: #ffffff;
}

.why-matrix-header .text-editorial-lead {
  color: rgba(255, 255, 255, 0.9);
}

.why-matrix-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 0;
  background-color: rgba(5, 42, 25, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(5, 40, 24, 0.45);
}

.why-matrix-col {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.25rem 2rem 2.5rem 2rem;
  background-color: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: background-color;
}

/* Hover: Highlight lembut menyatu */
.why-matrix-col:hover {
  background-color: rgba(255, 255, 255, 0.06);
}

/* Image inside matrix column */
.why-col-img-wrap {
  position: relative;
  width: 100%;
  height: 190px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1.5rem;
  background-color: #074026;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.why-col-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.why-matrix-col:hover .why-col-img {
  transform: scale(1.045);
}

/* Content Body inside column */
.why-col-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.why-col-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0.75rem;
  letter-spacing: -0.015em;
}

.why-col-desc {
  font-size: 0.915rem;
  line-height: 1.72;
  color: rgba(255, 255, 255, 0.88);
  margin-bottom: 0;
  flex-grow: 1;
}

.why-col-divider {
  height: 1px;
  background-color: rgba(255, 255, 255, 0.12);
  margin-bottom: 1.75rem;
  width: 100%;
}

.why-col-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.why-col-list li {
  position: relative;
  padding-left: 1.15rem;
  font-family: var(--font-sans);
  font-size: 0.765rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.075em;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.5;
}

.why-col-list li::before {
  content: "▪";
  position: absolute;
  left: 0;
  top: -1px;
  color: var(--color-gold);
  font-size: 0.85rem;
}

.why-matrix-footer {
  margin-top: 3.5rem;
  padding: 2.25rem 2.75rem;
  background: rgba(5, 42, 25, 0.32);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-left: 4px solid var(--color-gold);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  flex-wrap: wrap;
}

.why-matrix-footer-text h4 {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.35rem;
}

.why-matrix-footer-text p {
  font-size: 0.925rem;
  color: rgba(255, 255, 255, 0.85);
  margin: 0;
}

.why-matrix-footer-btns {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.why-matrix-wrapper {
  position: relative;
  width: 100%;
}

.why-matrix-mobile-nav {
  display: none;
}

@media (min-width: 1025px) {
  .why-matrix-grid {
    grid-template-columns: repeat(6, 1fr);
  }
  .why-matrix-col:nth-child(1),
  .why-matrix-col:nth-child(2),
  .why-matrix-col:nth-child(3) {
    grid-column: span 2;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .why-matrix-col:nth-child(3) {
    border-right: none;
  }
  .why-matrix-col:nth-child(4),
  .why-matrix-col:nth-child(5) {
    grid-column: span 3;
    border-bottom: none;
  }
  .why-matrix-col:nth-child(5) {
    border-right: none;
  }
}

@media (max-width: 1024px) and (min-width: 769px) {
  .why-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .why-matrix-col:nth-child(1),
  .why-matrix-col:nth-child(3) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }
  .why-matrix-col:nth-child(2),
  .why-matrix-col:nth-child(4) {
    border-right: none;
  }
  .why-matrix-col:nth-child(1),
  .why-matrix-col:nth-child(2),
  .why-matrix-col:nth-child(3),
  .why-matrix-col:nth-child(4) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }
  .why-matrix-col:nth-child(5) {
    grid-column: span 2;
    border-right: none;
    border-bottom: none;
  }
}

@media (max-width: 768px) {
  .why-matrix-wrapper {
    position: relative;
    width: 100%;
  }

  .why-matrix-grid {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.15rem;
    padding: 0.5rem 0.25rem 1.25rem 0.25rem;
    margin: 0 -0.25rem;
    scrollbar-width: none;
    border: none;
    background: transparent;
    border-radius: 0;
  }

  .why-matrix-grid::-webkit-scrollbar {
    display: none;
  }

  .why-matrix-col {
    flex: 0 0 85%;
    max-width: 320px;
    min-width: 270px;
    scroll-snap-align: center;
    background: rgba(5, 42, 25, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.35rem 1.25rem 1.5rem 1.25rem;
    opacity: 1 !important;
    transform: none !important;
  }

  .why-matrix-col:last-child {
    margin-right: 0.5rem;
  }

  .why-col-img-wrap {
    height: 170px;
    margin-bottom: 1.15rem;
  }

  .why-col-title {
    font-size: 1.15rem;
    margin-bottom: 0.55rem;
  }

  .why-col-desc {
    font-size: 0.875rem;
    line-height: 1.62;
  }

  .why-matrix-mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .why-matrix-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .why-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.28);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .why-dot.active {
    width: 26px;
    border-radius: 12px;
    background-color: var(--color-gold);
  }

  .why-matrix-swipe-hint {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.78rem;
    font-weight: 600;
    color: #ffffff;
    background-color: rgba(6, 29, 19, 0.88);
    backdrop-filter: blur(8px);
    padding: 0.35rem 0.85rem;
    border-radius: 999px;
    border: 1px solid rgba(255, 255, 255, 0.15);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  }
}

/* ==========================================================================
   CORE THEMES & PILLARS SECTION (ELEVATED GREEN-NUANCED CARDS)
   ========================================================================== */

.core-themes-section {
  background-color: var(--color-surface-subtle);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.core-themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.75rem;
  margin-top: 3.5rem;
}

.theme-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.theme-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-primary);
}

.theme-card-top {
  margin-bottom: 1.5rem;
}

.theme-card-crest {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-muted);
  color: var(--color-primary);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
}

.theme-card h3 {
  font-family: var(--font-display);
  font-size: 1.45rem;
  margin-bottom: 0.85rem;
  color: var(--color-navy);
}

.theme-card p {
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
}

.theme-card-footer {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-primary);
}

/* ==========================================================================
   CAMPUS COLLAGE GALLERY (DINAMIKA BELAJAR & PRESTASI)
   ========================================================================== */

.collage-section {
  position: relative;
  background-color: var(--color-primary);
  background-image: linear-gradient(180deg, rgba(14, 110, 68, 0.96) 0%, rgba(9, 82, 50, 0.98) 100%);
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.collage-section .text-tagline {
  color: var(--color-gold);
}

.collage-section .text-display-section {
  color: #ffffff;
}

.collage-section-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1.5rem;
}

.collage-section .btn-outline-white,
.collage-section .btn-outline-navy {
  background-color: rgba(255, 255, 255, 0.08);
  color: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.32);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.collage-section .btn-outline-white:hover,
.collage-section .btn-outline-navy:hover {
  background-color: #ffffff;
  color: var(--color-primary);
  border-color: #ffffff;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.2);
}

.collage-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 1.5rem;
  margin-top: 3.5rem;
}

.collage-item {
  position: relative;
  border-radius: var(--radius-sm);
  overflow: hidden;
  box-shadow: 0 16px 36px -8px rgba(5, 40, 24, 0.45);
  border: 1px solid rgba(255, 255, 255, 0.16);
}

.collage-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.collage-item:hover img {
  transform: scale(1.03);
}

.collage-item.col-7 {
  grid-column: span 7;
  height: 380px;
}

.collage-item.col-5 {
  grid-column: span 5;
  height: 380px;
}

.collage-item.col-4 {
  grid-column: span 4;
  height: 300px;
}

.collage-item.col-8 {
  grid-column: span 8;
  height: 300px;
}

.collage-overlay-label {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  padding: 1.25rem 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(9, 40, 27, 0.92) 100%);
  color: #ffffff;
}

.collage-overlay-label h4 {
  color: #ffffff;
  font-size: 1.15rem;
}

.collage-overlay-label span {
  font-size: 0.775rem;
  color: var(--color-gold);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* ==========================================================================
   PHILOSOPHY & FOUNDING VALUES (ADAB SECTION WITH FRESH GREEN AMBIANCE)
   ========================================================================== */

.philosophy-section {
  background: linear-gradient(180deg, #edf6f1 0%, #f4faf6 100%);
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-primary);
  text-align: center;
  position: relative;
}

.philosophy-wrap {
  max-width: 860px;
  margin: 0 auto;
}

.philosophy-tag {
  color: var(--color-primary);
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  margin-bottom: 1.25rem;
  display: inline-block;
  padding: 0.3rem 0.8rem;
  background-color: rgba(14, 110, 68, 0.1);
  border-radius: var(--radius-sm);
}

.philosophy-statement {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 2.8vw, 2.25rem);
  font-weight: 700;
  line-height: 1.45;
  color: var(--color-navy);
  margin-bottom: 2rem;
}

.philosophy-acronym-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 3rem;
  text-align: left;
}

.acronym-box {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-top: 3px solid var(--color-primary);
  border-radius: var(--radius-sm);
  padding: 1.75rem;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.acronym-box:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-card);
}

.acronym-letter {
  font-family: var(--font-display);
  font-size: 2.25rem;
  font-weight: 800;
  color: var(--color-primary);
  line-height: 1;
  margin-bottom: 0.5rem;
}

.acronym-word {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.acronym-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--color-text-secondary);
}

/* Helper & Section Classes (Desktop Base) */
.desktop-only-br {
  display: inline;
}

.kepsek-secondary-text {
  color: var(--color-text-secondary);
  font-size: 1rem;
  line-height: 1.75;
}

.philosophy-lead {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--color-text-secondary);
  max-width: 68ch;
  margin: 0 auto;
}

.admissions-cta-section {
  background-color: var(--color-surface-subtle);
  border-top: 1px solid var(--color-border);
}

.admissions-cta-card {
  background-color: var(--color-surface);
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-crimson);
  padding: 4rem 2.5rem;
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
  box-shadow: var(--shadow-card);
}

.admissions-cta-title {
  margin-bottom: 1rem;
}

.admissions-cta-desc {
  max-width: 58ch;
  margin: 0 auto 2.25rem auto;
}

.admissions-cta-btns {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   CURRICULUM TABS & ACADEMIC DIVISIONS
   ========================================================================== */

.academic-nav-tabs {
  display: flex;
  justify-content: center;
  gap: 1rem;
  border-bottom: 1px solid var(--color-border);
  padding-bottom: 1.25rem;
  margin-bottom: 3.5rem;
  flex-wrap: wrap;
}

.tab-btn {
  background: #ffffff;
  border: 1px solid var(--color-border);
  padding: 0.75rem 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-secondary);
  border-radius: var(--radius-sm);
  cursor: pointer;
  transition: all 0.2s ease;
}

.tab-btn:hover {
  border-color: var(--color-primary);
  color: var(--color-primary);
}

.tab-btn.active {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 4px 12px var(--color-primary-glow);
}

.tab-pane {
  display: none;
}

.tab-pane.active {
  display: block;
}

.academic-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.academic-card {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 2.25rem;
  box-shadow: var(--shadow-subtle);
  transition: transform 0.2s ease, border-color 0.2s ease;
}

.academic-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
}

.academic-card h4 {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--color-navy);
}

.academic-card p {
  font-size: 0.95rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  margin-bottom: 1.25rem;
}

.curriculum-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.curriculum-pill {
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.35rem 0.75rem;
  background-color: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-primary);
}

/* ==========================================================================
   ADMISSIONS TIMELINE & FORM
   ========================================================================== */

.admissions-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4.5rem;
}

.step-timeline {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  border-left: 3px solid var(--color-primary);
  padding-left: 2rem;
  position: relative;
}

.step-item {
  position: relative;
}

.step-dot {
  position: absolute;
  left: calc(-2rem - 9.5px);
  top: 0.25rem;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: #ffffff;
  border: 3px solid var(--color-primary);
}

.step-item h4 {
  font-size: 1.2rem;
  margin-bottom: 0.4rem;
  color: var(--color-navy);
}

.step-item p {
  font-size: 0.925rem;
  color: var(--color-text-secondary);
}

.inquiry-box {
  background-color: #ffffff;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  padding: 2.5rem;
  box-shadow: var(--shadow-card);
  border-radius: var(--radius-sm);
}

.inquiry-box h3 {
  font-size: 1.6rem;
  margin-bottom: 0.5rem;
  color: var(--color-navy);
}

.inquiry-box p {
  font-size: 0.925rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.75rem;
}

.form-group {
  margin-bottom: 1.25rem;
}

.form-label {
  display: block;
  font-size: 0.825rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.form-input,
.form-select,
.form-textarea {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-subtle);
  color: var(--color-text-primary);
  font-size: 0.95rem;
}

.form-input:focus,
.form-select:focus,
.form-textarea:focus {
  outline: none;
  border-color: var(--color-primary);
  background-color: #ffffff;
  box-shadow: 0 0 0 3px var(--color-primary-subtle);
}

.form-textarea {
  min-height: 110px;
  resize: vertical;
}

.form-feedback {
  display: none;
  margin-top: 1.25rem;
  padding: 1rem;
  background-color: #f0fdf4;
  border: 1px solid #86efac;
  color: #166534;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

/* ==========================================================================
   7. DEDICATED SOCIAL & CONTACT LIVE EMBEDS SECTION (End of Landing Page)
   ========================================================================== */

.social-contact-section {
  background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface-subtle) 100%);
  border-top: 1px solid var(--color-border);
  position: relative;
  overflow: hidden;
}

.social-contact-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.5rem;
}

.social-contact-header .text-editorial-lead {
  margin-left: auto;
  margin-right: auto;
}

/* 1. Live Social Media Embeds Grid (3 Columns: YouTube, Instagram, Facebook) */
.social-embeds-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-bottom: 0;
}

.social-embed-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-subtle);
  overflow: hidden;
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.social-embed-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

/* Embed Card Header */
.embed-card-header {
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--color-border-subtle);
  background: var(--color-surface);
}

.embed-header-left {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.embed-header-left i {
  font-size: 1.75rem;
}

.embed-header-left .icon-yt {
  color: #ff0000;
}

.embed-header-left .icon-ig {
  color: #e1306c;
}

.embed-header-left .icon-fb {
  color: #1877f2;
}

.embed-header-left h4 {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
  line-height: 1.2;
}

.embed-header-left span {
  font-size: 0.72rem;
  color: var(--color-text-muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 600;
}

.embed-external-link {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  color: var(--color-text-secondary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  transition: all 0.25s ease;
}

.embed-external-link:hover {
  background: var(--color-navy);
  color: #ffffff;
  border-color: var(--color-navy);
}

/* Embed Frame Container */
.embed-frame-wrapper {
  position: relative;
  width: 100%;
  background: #000000;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* YouTube 16:9 Aspect Ratio */
.embed-youtube-wrapper {
  aspect-ratio: 16 / 9;
  min-height: 240px;
}

.embed-youtube-wrapper iframe {
  width: 100%;
  height: 100%;
  border: none;
}

/* Instagram & Facebook Containers */
.embed-instagram-wrapper,
.embed-facebook-wrapper {
  min-height: 280px;
  background: var(--color-surface-subtle);
  position: relative;
}

.embed-instagram-wrapper iframe,
.embed-facebook-wrapper iframe {
  width: 100%;
  height: 100%;
  min-height: 280px;
  border: none;
  position: relative;
  z-index: 1;
}

/* Interactive Overlay / Fallback Preview */
.embed-interactive-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--color-surface-subtle) 0%, #e2efe7 100%);
  padding: 1.5rem;
  text-align: center;
}

.ig-profile-preview,
.fb-profile-preview {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
}

.ig-avatar-badge,
.fb-avatar-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  color: #ffffff;
  margin-bottom: 0.25rem;
}

.ig-avatar-badge {
  background: linear-gradient(45deg, #f09433, #e6683c, #dc2743, #cc2366, #bc1888);
  box-shadow: 0 6px 16px rgba(220, 39, 67, 0.3);
}

.fb-avatar-badge {
  background: #1877f2;
  box-shadow: 0 6px 16px rgba(24, 119, 242, 0.3);
}

.ig-profile-preview h5,
.fb-profile-preview h5 {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--color-navy);
  margin: 0;
}

.ig-profile-preview p,
.fb-profile-preview p {
  font-size: 0.82rem;
  color: var(--color-text-secondary);
  margin-bottom: 0.5rem;
}

.embed-card-caption {
  padding: 1rem 1.5rem;
  background: var(--color-surface);
  border-top: 1px solid var(--color-border-subtle);
}

.embed-card-caption p {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
  margin: 0;
}

/* 2. Contact Us & Interactive Google Maps Embed Box */
.contact-maps-embed-box {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  gap: 2.5rem;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: 2.75rem;
  box-shadow: var(--shadow-card);
}

.contact-info-panel {
  display: flex;
  flex-direction: column;
}

.contact-panel-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-primary-subtle);
  padding: 0.3rem 0.75rem;
  border-radius: var(--radius-sm);
  margin-bottom: 0.85rem;
  width: fit-content;
}

.contact-panel-title {
  font-size: 1.85rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.5rem;
  letter-spacing: -0.025em;
}

.contact-panel-sub {
  font-size: 0.95rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.75rem;
  line-height: 1.6;
}

.contact-items-list {
  display: flex;
  flex-direction: column;
  gap: 1.35rem;
  margin-bottom: 2rem;
}

.contact-detail-row {
  display: flex;
  align-items: flex-start;
  gap: 1.15rem;
}

.contact-detail-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: var(--color-primary-subtle);
  border: 1px solid rgba(14, 110, 68, 0.2);
  color: var(--color-primary);
  font-size: 1.3rem;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.contact-detail-text {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.contact-detail-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  color: var(--color-text-muted);
}

.contact-detail-val {
  font-size: 0.95rem;
  color: var(--color-text-primary);
  line-height: 1.55;
  font-weight: 500;
}

.contact-interactive-val {
  color: var(--color-navy);
  font-weight: 600;
  text-decoration: none;
  font-size: 1.05rem;
  transition: color 0.2s ease;
  display: inline-block;
}

.contact-interactive-val:hover {
  color: var(--color-primary);
  text-decoration: underline;
}

.contact-panel-actions {
  margin-top: auto;
}

/* Maps Embed Panel (Right) */
.maps-embed-panel {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.maps-frame-container {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--color-border);
  position: relative;
  box-shadow: var(--shadow-subtle);
}

.google-maps-iframe {
  width: 100%;
  height: 100%;
  min-height: 340px;
  border: 0;
  display: block;
}

.maps-overlay-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: rgba(9, 40, 27, 0.9);
  color: #ffffff;
  padding: 0.4rem 0.8rem;
  border-radius: 6px;
  font-size: 0.78rem;
  display: flex;
  align-items: center;
  gap: 0.4rem;
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  pointer-events: none;
  z-index: 2;
}

.maps-panel-footer {
  display: flex;
  justify-content: flex-end;
}

.maps-direct-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.82rem;
  padding: 0.5rem 1rem;
}

/* ==========================================================================
   MINIMALIST SINGLE-LINE FOOTER
   ========================================================================== */

.pg-footer {
  background-color: #f7faf8;
  border-top: 1px solid var(--color-border);
  padding: 1.75rem 0;
  color: var(--color-text-secondary);
  font-family: var(--font-sans);
}

.footer-minimal-inner {
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
}

.footer-copyright-text {
  font-size: 0.85rem;
  color: var(--color-text-secondary);
  letter-spacing: 0.01em;
  line-height: 1.5;
  margin: 0;
}

.footer-copyright-text strong {
  color: var(--color-navy);
  font-weight: 600;
}

/* Responsive adjustments for Social & Contact Embeds */
@media (max-width: 1024px) {
  .social-embeds-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .contact-maps-embed-box {
    grid-template-columns: 1fr;
    padding: 2.25rem 1.75rem;
    gap: 2rem;
  }

  .maps-frame-container {
    min-height: 280px;
  }
}

@media (max-width: 640px) {
  .contact-maps-embed-box {
    padding: 1.5rem 1.25rem;
  }

  .social-contact-header {
    text-align: left;
  }
}

/* Scroll reveal utility */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.7s cubic-bezier(0.16, 1, 0.3, 1), transform 0.7s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .reveal-on-scroll {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}

/* ==========================================================================
   COMPREHENSIVE RESPONSIVE STYLES (MOBILE & TABLET OPTIMIZATION)
   ========================================================================== */

@media (max-width: 1024px) {
  :root {
    --header-height: 52px;
  }

  .container {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .section-pad {
    padding-top: 4rem;
    padding-bottom: 4rem;
  }

  /* Header & Navigation Mobile/Tablet */
  .site-header {
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.35s ease,
                background-color 0.35s ease;
  }

  .site-header.is-scrolled {
    box-shadow: 0 4px 18px rgba(9, 40, 27, 0.08);
  }

  .main-nav-bar {
    position: relative;
    height: var(--header-height, 52px);
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    gap: 0;
    transition: height 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .site-header.is-scrolled .main-nav-bar {
    height: 44px;
  }

  .nav-slot-left {
    position: relative;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: flex-start;
    flex: 1 1 auto;
    overflow: visible;
  }

  .site-header.is-scrolled .nav-slot-left {
    flex: 1 1 auto;
  }

  .nav-slot-center,
  .site-header.is-scrolled .nav-slot-center {
    display: none;
  }

  .nav-slot-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    z-index: 10;
  }

  .site-header.is-scrolled .nav-slot-right {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translateY(-50%);
  }

  .desktop-nav,
  .nav-links-desktop,
  .header-cta-btn {
    display: none;
  }

  .mobile-menu-btn {
    display: flex;
    margin-right: 0;
    padding-right: 0;
  }

  /* Brand Logo & Sliding Animation on Scroll */
  .brand-crest-wrap {
    position: relative;
    left: 0;
    transform: translateX(0);
    display: flex;
    align-items: center;
    gap: 0.55rem;
    text-decoration: none;
    transition: left 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                gap 0.8s cubic-bezier(0.22, 1, 0.36, 1);
    will-change: left, transform;
  }

  /* Slide logo to center on scroll (Mobile only) */
  .site-header.is-scrolled .brand-crest-wrap {
    left: 50%;
    transform: translateX(-50%);
    gap: 0;
    transition: left 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                transform 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                gap 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .brand-logo-badge {
    width: 32px;
    height: 32px;
    padding: 2px;
    flex-shrink: 0;
    transition: transform 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                width 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                height 0.8s cubic-bezier(0.22, 1, 0.36, 1),
                box-shadow 0.65s ease;
  }

  .site-header.is-scrolled .brand-logo-badge {
    width: 28px;
    height: 28px;
    box-shadow: 0 2px 10px rgba(14, 110, 68, 0.2);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                width 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                height 0.4s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.3s ease;
  }

  /* Brand Headings (School Name Title) Fade & Collapse on Scroll */
  .brand-headings {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 210px;
    opacity: 1;
    transform: translateX(0);
    white-space: nowrap;
    overflow: hidden;
    transition: max-width 0.85s cubic-bezier(0.22, 1, 0.36, 1),
                opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
                transform 0.85s cubic-bezier(0.22, 1, 0.36, 1);
  }

  .site-header.is-scrolled .brand-headings {
    max-width: 0;
    opacity: 0;
    transform: translateX(-15px);
    pointer-events: none;
    visibility: hidden;
    margin: 0;
    padding: 0;
    transition: max-width 0.45s cubic-bezier(0.16, 1, 0.3, 1),
                opacity 0.35s ease,
                transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .brand-headings h1,
  .brand-headings h4 {
    font-size: 0.82rem;
    line-height: 1.15;
  }

  .brand-headings span {
    font-size: 0.56rem;
    color: var(--color-primary);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    display: block;
    margin-top: 1px;
  }

  .pg-editorial-split,
  .admissions-split {
    grid-template-columns: 1fr;
    gap: 3rem;
  }

  .kepsek-editorial-split .pg-editorial-right {
    order: -1;
  }

  .core-themes-grid,
  .academic-grid-3,
  .philosophy-acronym-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .partner-support-wrapper {
    flex-direction: column;
    align-items: center;
    gap: 0.85rem;
    text-align: center;
  }

  .partner-support-logos {
    width: 100%;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
  }

  .quick-action-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .quick-action-item:nth-child(2) {
    border-right: none;
  }

  .collage-item.col-7,
  .collage-item.col-5,
  .collage-item.col-4,
  .collage-item.col-8 {
    grid-column: span 6;
  }
}

@media (max-width: 860px) {
  .section-pad {
    padding-top: 3.5rem;
    padding-bottom: 3.5rem;
  }

  .section-pad-sm {
    padding-top: 2.5rem;
    padding-bottom: 2.5rem;
  }
}

@media (max-width: 768px) {

  /* Mobile Utility & Global Typography Scale */
  .desktop-only-br {
    display: none;
  }

  h1, h2, h3, h4, h5 {
    letter-spacing: -0.02em;
  }

  .text-display-hero {
    font-size: clamp(1.65rem, 5.8vw, 2.15rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
  }

  .text-display-section {
    font-size: clamp(1.45rem, 5.2vw, 1.85rem);
    line-height: 1.24;
    letter-spacing: -0.025em;
  }

  .text-display-card {
    font-size: 1.15rem;
    line-height: 1.3;
    letter-spacing: -0.015em;
  }

  .text-tagline {
    font-size: 0.72rem;
    letter-spacing: 0.12em;
    font-weight: 700;
    margin-bottom: 0.5rem;
  }

  .text-editorial-lead {
    font-size: 0.95rem;
    line-height: 1.62;
    color: var(--color-text-secondary);
  }

  .section-pad {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .section-pad-sm {
    padding-top: 2.25rem;
    padding-bottom: 2.25rem;
  }

  /* 1. Jumbotron / Hero Section Mobile (Fit 1 Layar Penuh 100dvh - Teks & Button Tidak Terpotong) */
  .pg-hero-section {
    min-height: calc(100vh - var(--header-height, 58px));
    min-height: calc(100dvh - var(--header-height, 58px));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 0;
    width: 100%;
    box-sizing: border-box;
    position: relative;
    overflow: visible;
  }

  .pg-hero-section.pg-hero-home,
  .pg-hero-home {
    height: calc(100vh - var(--header-height, 58px));
    height: calc(100dvh - var(--header-height, 58px));
    min-height: calc(100vh - var(--header-height, 58px));
    min-height: calc(100dvh - var(--header-height, 58px));
    max-height: calc(100vh - var(--header-height, 58px));
    max-height: calc(100dvh - var(--header-height, 58px));
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: stretch;
    padding: 0;
    margin: 0;
    overflow: hidden;
    box-sizing: border-box;
  }

  .pg-hero-home .pg-hero-inner-container {
    height: 100%;
    min-height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    width: 100%;
    position: relative;
    z-index: 2;
  }

  .pg-hero-home .pg-hero-inner-container > .container {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding-top: 1.5rem;
    padding-bottom: max(1.85rem, env(safe-area-inset-bottom, 1.85rem));
    width: 100%;
    box-sizing: border-box;
  }

  .pg-hero-home .pg-hero-content {
    min-height: auto;
    padding: 0;
    margin: 0;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    box-sizing: border-box;
  }

  /* Subpage Inner Hero Mobile */
  .pg-hero-section:not(.pg-hero-dark) {
    min-height: 42vh;
    padding: 0 0 2rem 0;
    align-items: flex-end;
  }

  .pg-hero-overlay {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.75) 45%, rgba(255, 255, 255, 0.96) 100%);
  }

  .pg-hero-overlay.inner {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.2) 0%, rgba(255, 255, 255, 0.8) 50%, rgba(255, 255, 255, 0.96) 100%);
  }

  .pg-hero-dark .pg-hero-overlay {
    background: linear-gradient(180deg, rgba(10, 20, 30, 0.2) 0%, rgba(10, 20, 30, 0.45) 30%, rgba(10, 20, 30, 0.85) 68%, rgba(10, 20, 30, 0.97) 100%);
  }

  .pg-hero-video-toggle {
    top: 1rem;
    right: 1rem;
    bottom: auto;
    width: 38px;
    height: 38px;
    font-size: 1rem;
    z-index: 10;
  }

  .pg-hero-content {
    width: 100%;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
  }

  .pg-hero-title {
    font-size: clamp(1.45rem, 5.4vw, 2rem);
    line-height: 1.2;
    margin-bottom: 0.75rem;
    font-weight: 800;
  }

  .pg-hero-sub {
    font-size: 0.88rem;
    line-height: 1.5;
    margin-bottom: 1.35rem;
    color: rgba(255, 255, 255, 0.92);
  }

  .pg-hero-btns {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 0.65rem;
  }

  .pg-hero-btns .btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    text-align: center;
    justify-content: center;
    padding: 0.82rem 0.65rem;
    font-size: 0.825rem;
    letter-spacing: 0.02em;
    white-space: nowrap;
  }

  /* 2. Partner Support Strip Mobile (Tampil di bawah Jumbotron saat di-scroll) */
  .partner-support-strip {
    background-color: var(--color-primary);
    padding: 1.5rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 4px 14px var(--color-primary-glow);
    position: relative;
    z-index: 4;
  }

  .partner-support-wrapper {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 0.85rem;
  }

  .partner-support-label {
    font-size: 0.8rem;
    letter-spacing: 0.05em;
    justify-content: center;
  }

  .partner-support-logos {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.65rem;
  }

  .partner-logo-item {
    height: 40px;
    padding: 0.3rem 0.45rem;
  }

  /* Quick Action Strip Mobile Fallback */
  .quick-action-strip {
    background-color: var(--color-primary);
    padding: 0.85rem 0;
    border-top: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 14px var(--color-primary-glow);
    position: relative;
    z-index: 4;
  }

  .quick-action-grid {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }

  .quick-action-item {
    border: 1px solid rgba(255, 255, 255, 0.2);
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-sm);
    padding: 0.75rem 0.95rem;
    gap: 0.75rem;
  }

  .quick-action-icon {
    font-size: 1.45rem;
  }

  .quick-action-text {
    font-size: 0.875rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    line-height: 1.2;
  }

  .quick-action-sub {
    font-size: 0.75rem;
    line-height: 1.3;
    margin-top: 1px;
    color: rgba(255, 255, 255, 0.82);
  }

  /* 3. Sambutan Kepala Sekolah Mobile */
  .kepsek-editorial-split {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .kepsek-editorial-split .pg-editorial-right {
    order: -1;
  }

  .pg-editorial-left h2 {
    margin-bottom: 0.35rem;
  }

  .pg-editorial-left .text-tagline {
    margin-bottom: 0.75rem;
  }

  .pg-editorial-left .text-editorial-lead {
    font-size: 0.96rem;
    line-height: 1.65;
    margin-bottom: 0.65rem;
  }

  .kepsek-secondary-text {
    font-size: 0.88rem;
    line-height: 1.62;
    color: var(--color-text-secondary);
  }

  .pg-framed-photo img {
    height: 300px;
    object-fit: cover;
    object-position: center 15%;
  }

  /* 4. Grids, Cards & Themes */
  .core-themes-grid,
  .academic-grid-3 {
    grid-template-columns: 1fr;
    gap: 1.25rem;
    margin-top: 2rem;
  }

  .theme-card {
    padding: 1.75rem 1.25rem;
  }

  /* 5. Visual Experience Collage Mobile */
  .collage-section-header {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .collage-section-header .text-tagline {
    margin-bottom: 0.35rem;
  }

  .collage-section-header .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.825rem;
    padding: 0.75rem 1rem;
  }

  .collage-grid {
    grid-template-columns: 1fr;
    gap: 0.85rem;
    margin-top: 1.5rem;
  }

  .collage-item.col-7,
  .collage-item.col-5,
  .collage-item.col-4,
  .collage-item.col-8 {
    grid-column: span 1;
    height: 230px;
  }

  .collage-overlay-label {
    padding: 0.9rem 1.1rem;
  }

  .collage-overlay-label span {
    font-size: 0.68rem;
    letter-spacing: 0.08em;
  }

  .collage-overlay-label h4 {
    font-size: 1rem;
    line-height: 1.3;
    margin-top: 2px;
  }

  /* 6. Philosophy & ADAB Section Mobile */
  .philosophy-wrap {
    max-width: 100%;
  }

  .philosophy-tag {
    font-size: 0.72rem;
    letter-spacing: 0.14em;
    padding: 0.25rem 0.65rem;
    margin-bottom: 0.85rem;
  }

  .philosophy-statement {
    font-size: 1.25rem;
    line-height: 1.45;
    margin-bottom: 1rem;
  }

  .philosophy-lead {
    font-size: 0.88rem;
    line-height: 1.62;
    margin-bottom: 1.5rem;
  }

  .philosophy-acronym-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.75rem;
    margin-top: 1.5rem;
  }

  .acronym-box {
    padding: 1.15rem 1rem;
  }

  .acronym-letter {
    font-size: 1.75rem;
    margin-bottom: 0.25rem;
  }

  .acronym-word {
    font-size: 0.925rem;
    margin-bottom: 0.25rem;
  }

  .acronym-desc {
    font-size: 0.78rem;
    line-height: 1.45;
  }

  /* 7. Admissions CTA Card Mobile */
  .admissions-cta-section {
    padding-top: 3.25rem;
    padding-bottom: 3.25rem;
  }

  .admissions-cta-card {
    padding: 2.25rem 1.25rem;
    border-radius: var(--radius-sm);
  }

  .admissions-cta-card .text-tagline {
    margin-bottom: 0.5rem;
  }

  .admissions-cta-title {
    font-size: 1.35rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .admissions-cta-desc {
    font-size: 0.88rem;
    line-height: 1.6;
    margin: 0 auto 1.5rem auto;
  }

  .admissions-cta-btns {
    flex-direction: column;
    gap: 0.65rem;
    width: 100%;
  }

  .admissions-cta-btns .btn {
    width: 100%;
    justify-content: center;
    font-size: 0.825rem;
    padding: 0.85rem 1rem;
  }

  /* Academic Tabs Mobile Horizontal Scroll */
  .academic-nav-tabs {
    flex-wrap: nowrap;
    overflow-x: auto;
    justify-content: flex-start;
    gap: 0.5rem;
    padding-bottom: 0.75rem;
    margin-bottom: 2rem;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .academic-nav-tabs::-webkit-scrollbar {
    display: none;
  }

  .tab-btn {
    flex-shrink: 0;
    padding: 0.65rem 1.15rem;
    font-size: 0.8rem;
  }

  /* Admissions Split & Form (Subpages) */
  .admissions-split {
    grid-template-columns: 1fr;
    gap: 2.5rem;
  }

  .step-timeline {
    padding-left: 1.5rem;
  }

  .step-dot {
    left: calc(-1.5rem - 8.5px);
  }

  .inquiry-box {
    padding: 1.5rem 1.25rem;
  }

  .form-input,
  .form-select,
  .form-textarea {
    font-size: 16px;
    min-height: 46px;
  }
  /* Footer Mobile */
  .pg-footer {
    padding-top: 3.5rem;
    padding-bottom: 2rem;
  }

  .footer-top-grid {
    grid-template-columns: 1fr;
    gap: 2.25rem;
    margin-bottom: 2.5rem;
  }

  .footer-brand-desc {
    font-size: 0.86rem;
    line-height: 1.6;
  }

  .footer-heading {
    font-size: 0.925rem;
    margin-bottom: 0.75rem;
  }

  .footer-nav-list li a {
    font-size: 0.84rem;
    line-height: 1.6;
  }

  .footer-contact-row span {
    font-size: 0.84rem;
    line-height: 1.5;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
    font-size: 0.75rem;
    line-height: 1.5;
  }
}

@media (max-width: 480px) {
  .brand-headings span {
    display: block;
    font-size: 0.6rem;
    letter-spacing: 0.1em;
  }

  .main-nav-bar .btn-crimson {
    display: none;
  }

  .brand-crest-wrap {
    gap: 0.65rem;
  }

  .text-display-hero {
    font-size: clamp(1.22rem, 5.2vw, 1.48rem);
    line-height: 1.22;
  }

  .text-display-section {
    font-size: 1.35rem;
    line-height: 1.24;
  }

  .text-editorial-lead {
    font-size: 0.9rem;
    line-height: 1.55;
  }

  .pg-hero-home .pg-hero-inner-container > .container {
    padding-bottom: max(1.5rem, env(safe-area-inset-bottom, 1.5rem));
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .pg-hero-title {
    font-size: clamp(1.35rem, 5.6vw, 1.75rem);
    line-height: 1.2;
    margin-bottom: 0.65rem;
  }

  .pg-hero-sub {
    font-size: 0.86rem;
    line-height: 1.5;
    margin-bottom: 1.25rem;
  }

  .pg-hero-btns {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 0.55rem;
  }

  .pg-hero-btns .btn {
    flex: 1 1 0;
    min-width: 0;
    width: auto;
    text-align: center;
    justify-content: center;
    padding: 0.8rem 0.55rem;
    font-size: 0.82rem;
    letter-spacing: 0.01em;
    white-space: nowrap;
  }

  .philosophy-statement {
    font-size: 1.15rem;
    line-height: 1.4;
  }

  .philosophy-acronym-grid {
    grid-template-columns: 1fr;
    gap: 0.65rem;
  }

  .acronym-box {
    padding: 1rem 1rem;
  }

  .admissions-cta-title {
    font-size: 1.22rem;
  }
}

/* ==========================================================================
   5. DEWAN GURU & PENGAJAR PAKAR (Staggered Capsule Grid Showcase)
   ========================================================================== */
.team-showcase-section {
  position: relative;
  overflow: hidden;
  background-color: var(--color-surface, #ffffff);
  border-top: 1px solid var(--color-border-subtle, #e5e7eb);
  border-bottom: 1px solid var(--color-border-subtle, #e5e7eb);
  padding: 5.5rem 0 6rem;
}

/* Ambient Bottom Subtle Pastel Glows */
.team-ambient-glow {
  position: absolute;
  pointer-events: none;
  border-radius: 50%;
  filter: blur(100px);
  opacity: 0.85;
  z-index: 0;
}

.team-glow-left {
  bottom: -60px;
  left: -80px;
  width: 440px;
  height: 380px;
  background: radial-gradient(circle, rgba(255, 150, 130, 0.22) 0%, rgba(255, 200, 180, 0.1) 45%, transparent 70%);
}

.team-glow-right {
  bottom: -60px;
  right: -80px;
  width: 440px;
  height: 380px;
  background: radial-gradient(circle, rgba(64, 204, 195, 0.2) 0%, rgba(130, 225, 220, 0.08) 45%, transparent 70%);
}

.team-showcase-section .relative-z {
  position: relative;
  z-index: 1;
}

/* Header */
.team-section-header {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 3.75rem;
}

.team-main-title {
  font-size: clamp(2rem, 3.5vw, 2.75rem);
  font-weight: 800;
  color: var(--color-navy, #09281b);
  letter-spacing: -0.025em;
  line-height: 1.15;
  margin-top: 0.4rem;
}

.team-subtitle {
  font-size: 1.02rem;
  color: var(--color-text-secondary, #3b5245);
  line-height: 1.65;
  margin: 0.85rem auto 0;
  max-width: 620px;
}

/* Section Header with Nav Controls */
.team-section-header-wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 2rem;
  margin-bottom: 2.5rem;
}

.team-section-header-wrap .team-section-header {
  text-align: left;
  max-width: 680px;
  margin: 0;
}

/* Infinite Rotating Marquee Showcase */
.team-marquee-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.75rem 0 1.5rem;
  user-select: none;
  touch-action: pan-y pinch-zoom;
  cursor: grab;
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 80px, black calc(100% - 80px), transparent 100%);
  mask-image: linear-gradient(to right, transparent 0%, black 80px, black calc(100% - 80px), transparent 100%);
}

.team-marquee-wrapper.is-dragging {
  cursor: grabbing;
}

/* Rotating Track */
.team-marquee-track {
  display: flex;
  gap: 0.75rem;
  width: max-content;
  will-change: transform;
  user-select: none;
}

/* Column Dimensions in Marquee */
.team-capsule-col {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 215px;
  flex-shrink: 0;
}

/* Individual Capsule Pill Container */
.team-capsule-item {
  position: relative;
  width: 100%;
  border-radius: 9999px;
  overflow: hidden;
  background-color: var(--bg-studio, #d1d5db);
  cursor: pointer;
  box-shadow: 0 6px 20px -3px rgba(9, 40, 27, 0.08);
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.45s cubic-bezier(0.16, 1, 0.3, 1);
  outline: none;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
}

/* Capsule Heights matching the alternation */
.capsule-tall {
  height: 310px;
}

.capsule-short {
  height: 180px;
}

/* Capsule Images */
.team-capsule-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 18%;
  display: block;
  transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Capsule Hover State */
.team-capsule-item:hover,
.team-capsule-item:focus-visible {
  transform: translateY(-6px);
  box-shadow: 0 16px 36px -6px rgba(9, 40, 27, 0.22);
}

.team-capsule-item:hover img,
.team-capsule-item:focus-visible img {
  transform: scale(1.08);
}

/* Base Interactive Hover Overlay (Centered Text & Soft Frosted Glass) */
.team-capsule-overlay {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: rgba(9, 40, 27, 0.68);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  display: flex;
  justify-content: center;
  align-items: center;
  text-align: center;
  padding: 1.25rem 0.85rem;
  opacity: 0;
  transform: scale(0.96);
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}

.team-capsule-item:hover .team-capsule-overlay,
.team-capsule-item:focus-visible .team-capsule-overlay {
  opacity: 1;
  transform: scale(1);
}

/* 1. TALL CAPSULE: Centered text */
.capsule-tall .capsule-name {
  font-size: clamp(0.85rem, 1.15vw, 0.98rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
  max-width: 88%;
}

/* 2. SHORT / SMALL CAPSULE: Centered compact text */
.capsule-short .capsule-name {
  font-size: clamp(0.72rem, 0.95vw, 0.84rem);
  font-weight: 700;
  color: #ffffff;
  margin: 0;
  line-height: 1.25;
  letter-spacing: -0.01em;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
  max-width: 90%;
}

/* Rotation Hint & Pulse */
.team-rotation-hint {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--color-text-muted, #647b6e);
  font-weight: 500;
  background: var(--color-surface-subtle, #edf5f0);
  border: 1px solid var(--color-border, #d0e4d7);
  padding: 0.35rem 0.85rem;
  border-radius: 20px;
}

.team-hint-pulse {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--color-primary, #0e6e44);
  box-shadow: 0 0 0 0 rgba(14, 110, 68, 0.7);
  animation: teamHintPulse 2s infinite cubic-bezier(0.45, 0, 0.55, 1);
}

@keyframes teamHintPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(14, 110, 68, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 7px rgba(14, 110, 68, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(14, 110, 68, 0);
  }
}

/* Section Bottom Action */
.team-section-action {
  text-align: center;
  margin-top: 3.5rem;
}

/* ==========================================================================
   Teacher Detail Modal
   ========================================================================== */
.teacher-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(5, 25, 16, 0.72);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 99999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.teacher-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.teacher-modal-card {
  background: var(--color-surface, #ffffff);
  border-radius: 28px;
  max-width: 650px;
  width: 100%;
  padding: 2.25rem;
  position: relative;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.35);
  border: 1px solid var(--color-border, #d0e4d7);
  transform: translateY(24px) scale(0.96);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.teacher-modal-backdrop.is-open .teacher-modal-card {
  transform: translateY(0) scale(1);
}

.teacher-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--color-border, #d0e4d7);
  background-color: var(--color-surface-subtle, #edf5f0);
  color: var(--color-navy, #09281b);
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
  z-index: 2;
}

.teacher-modal-close:hover {
  background-color: var(--color-primary, #0e6e44);
  color: #ffffff;
  border-color: var(--color-primary, #0e6e44);
  transform: rotate(90deg);
}

.teacher-modal-grid {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 2rem;
  align-items: center;
}

.teacher-modal-avatar-col {
  display: flex;
  justify-content: center;
}

.teacher-modal-capsule {
  width: 170px;
  height: 250px;
  border-radius: 9999px;
  overflow: hidden;
  background-color: var(--bg-studio, #d1d5db);
  box-shadow: 0 12px 28px rgba(9, 40, 27, 0.15);
}

.teacher-modal-capsule img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 15%;
  display: block;
}

.teacher-modal-content-col {
  display: flex;
  flex-direction: column;
}

.teacher-modal-badge {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--color-primary, #0e6e44);
  background-color: var(--color-primary-subtle, rgba(14, 110, 68, 0.09));
  border: 1px solid var(--color-border, #d0e4d7);
  padding: 0.25rem 0.7rem;
  border-radius: 16px;
  margin-bottom: 0.5rem;
}

.teacher-modal-name {
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy, #09281b);
  margin-bottom: 0.25rem;
  line-height: 1.25;
}

.teacher-modal-role {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--color-gold, #c59b27);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 0.75rem;
}

.teacher-modal-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-bottom: 0.9rem;
}

.teacher-modal-pill {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--color-text-secondary, #3b5245);
  background: var(--color-surface-subtle, #edf5f0);
  border: 1px solid var(--color-border, #d0e4d7);
  padding: 0.2rem 0.6rem;
  border-radius: 12px;
}

.teacher-modal-bio {
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text-secondary, #3b5245);
  margin-bottom: 1.5rem;
}

.teacher-modal-footer {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

/* ==========================================================================
   Responsive Breakpoints for Rotating Capsule Showcase
   ========================================================================== */
@media (max-width: 1024px) {
  .team-marquee-fade-left,
  .team-marquee-fade-right {
    width: 60px;
  }

  .team-capsule-col {
    width: 190px;
    gap: 0.65rem;
  }

  .capsule-tall {
    height: 270px;
  }

  .capsule-short {
    height: 160px;
  }
}

@media (max-width: 768px) {
  .team-showcase-section {
    padding: 3.5rem 0 4rem;
    display: flex;
    flex-direction: column;
  }

  /* 1. FOTO-FOTO DITARUH DI ATAS HEADER & TEKS */
  .team-marquee-wrapper {
    order: 1;
    margin: 0 0 2rem;
  }

  /* 2. HEADER & TEKS DI BAWAH KUMPULAN FOTO */
  .team-header-container {
    order: 2;
  }

  .team-section-header-wrap {
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 0;
  }

  .team-section-header-wrap .team-section-header {
    text-align: left;
  }

  .team-header-nav {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
  }

  .team-nav-arrow {
    width: 40px;
    height: 40px;
  }

  /* 3. TOMBOL AKSI TETAP DI PALING BAWAH */
  .team-action-container {
    order: 3;
    margin-top: 2rem;
    text-align: center;
  }

  .team-section-action {
    margin-top: 0;
  }

  .team-marquee-wrapper {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 40px, black calc(100% - 40px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 40px, black calc(100% - 40px), transparent 100%);
  }

  .team-capsule-col {
    width: 165px;
    gap: 0.55rem;
  }

  .capsule-tall {
    height: 235px;
  }

  .capsule-short {
    height: 140px;
  }

  .capsule-tall .capsule-name {
    font-size: 0.8rem;
  }

  .capsule-short .capsule-name {
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .teacher-modal-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 1.25rem;
  }

  .teacher-modal-avatar-col {
    margin-bottom: 0.5rem;
  }

  .teacher-modal-badge {
    align-self: center;
  }

  .teacher-modal-pills {
    justify-content: center;
  }

  .teacher-modal-footer {
    justify-content: center;
  }
}

@media (max-width: 480px) {
  .team-marquee-wrapper {
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 24px, black calc(100% - 24px), transparent 100%);
    mask-image: linear-gradient(to right, transparent 0%, black 24px, black calc(100% - 24px), transparent 100%);
  }

  .team-capsule-col {
    width: 145px;
    gap: 0.45rem;
  }

  .capsule-tall {
    height: 200px;
  }

  .capsule-short {
    height: 120px;
  }

  .capsule-tall .capsule-name {
    font-size: 0.74rem;
  }

  .capsule-short .capsule-name {
    font-size: 0.64rem;
    line-height: 1.15;
  }

  .teacher-modal-card {
    padding: 1.75rem 1.25rem;
  }
}

/* ==========================================================================
   30 PROGRAM UNGGULAN & PEMBIASAAN (3-ROW INFINITE MARQUEE)
   ========================================================================== */

.programs-pill-section {
  background-color: var(--color-bg);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.programs-pill-section > .container {
  order: 1;
  width: 100%;
}

.programs-pill-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 2.5rem auto;
}

.programs-marquee-wrapper {
  order: 2;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  width: 100%;
  overflow: hidden;
  position: relative;
  padding: 1rem 0;
  mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
  -webkit-mask-image: linear-gradient(to right, transparent 0%, black 5%, black 95%, transparent 100%);
}

.marquee-row {
  display: flex;
  width: 100%;
  overflow: visible;
  user-select: none;
  padding: 0.65rem 0;
}

.marquee-track {
  display: flex;
  flex-shrink: 0;
  gap: 1.15rem;
  padding-right: 1.15rem; /* Exact match with gap for 100% seamless infinite loop */
  align-items: center;
  will-change: transform;
}

/* Slower, elegant, relaxed speeds */
.marquee-row-left .marquee-track {
  animation: marqueeScrollLeft 60s linear infinite;
}

.marquee-row-right .marquee-track {
  animation: marqueeScrollRight 56s linear infinite;
}

/* Pause all rows or hovered row smoothly on hover */
.programs-marquee-wrapper:hover .marquee-track {
  animation-play-state: paused;
}

@keyframes marqueeScrollLeft {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-100%);
  }
}

@keyframes marqueeScrollRight {
  from {
    transform: translateX(-100%);
  }
  to {
    transform: translateX(0);
  }
}

.program-pill-item {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1.45rem;
  border-radius: 9999px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 600;
  white-space: nowrap;
  box-shadow: none;
  transition: transform 0.22s ease, border-color 0.22s ease, background-color 0.22s ease, color 0.22s ease;
  user-select: none;
  cursor: pointer;
  flex-shrink: 0;
}

.program-pill-item i {
  font-size: 1.15rem;
  color: var(--color-primary);
  transition: transform 0.22s ease, color 0.22s ease;
}

/* Clean hover without box-shadow */
.program-pill-item:hover {
  transform: translateY(-3px);
  border-color: var(--color-primary);
  color: var(--color-primary);
  background: #ffffff;
  box-shadow: none;
  z-index: 5;
  position: relative;
}

.program-pill-item:hover i {
  transform: scale(1.15) rotate(4deg);
}

/* Subtle highlights for signature programs */
.program-pill-item.pill-highlight-emerald {
  background: linear-gradient(135deg, #ffffff 0%, var(--color-surface-subtle) 100%);
  border-color: rgba(14, 110, 68, 0.35);
}

.program-pill-item.pill-highlight-gold {
  background: linear-gradient(135deg, #ffffff 0%, #fefdf7 100%);
  border-color: rgba(197, 155, 39, 0.38);
}

.program-pill-item.pill-highlight-gold i {
  color: var(--color-gold);
}

/* Mobile Responsiveness & Layout Inversion */
@media (max-width: 768px) {
  /* Khusus Mobile: Marquee diletakkan di ATAS Header */
  .programs-marquee-wrapper {
    order: 1;
    margin-bottom: 2rem;
    gap: 0.25rem;
    padding: 0.5rem 0;
    mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, transparent 0%, black 4%, black 96%, transparent 100%);
  }

  .programs-pill-section > .container {
    order: 2;
  }

  /* Optimal Header & Description Typography Sizing on Mobile */
  .programs-pill-header {
    margin: 0 auto;
    padding: 0 0.5rem;
  }

  .programs-pill-header .text-tagline {
    font-size: 0.725rem;
    letter-spacing: 0.12em;
    margin-bottom: 0.4rem;
  }

  .programs-pill-header .text-display-section {
    font-size: 1.45rem;
    line-height: 1.25;
    letter-spacing: -0.02em;
    margin-bottom: 0.5rem;
  }

  .programs-pill-header .text-editorial-lead {
    font-size: 0.885rem;
    line-height: 1.62;
    color: var(--color-text-secondary);
    max-width: 100%;
    margin: 0 auto;
  }

  .marquee-row {
    padding: 0.35rem 0;
  }

  .program-pill-item {
    padding: 0.6rem 1rem;
    font-size: 0.845rem;
    gap: 0.45rem;
  }

  .program-pill-item i {
    font-size: 0.95rem;
  }

  .marquee-row-left .marquee-track {
    animation-duration: 45s;
  }

  .marquee-row-right .marquee-track {
    animation-duration: 40s;
  }
}

/* ==========================================================================
   EKSTRAKURIKULER - 7 CARD COLUMN MATRIX SHOWCASE (SMALKA SIGNATURE THEME)
   ========================================================================== */

.ekskul-matrix-section {
  position: relative;
  background-color: var(--color-primary);
  background-image: linear-gradient(180deg, rgba(14, 110, 68, 0.96) 0%, rgba(9, 82, 50, 0.98) 100%), url('../images/bg-2.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.ekskul-matrix-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
}

.ekskul-matrix-header .text-tagline {
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.5rem;
}

.ekskul-matrix-header .text-display-section {
  color: #ffffff;
}

.ekskul-matrix-header .text-editorial-lead {
  color: rgba(255, 255, 255, 0.9);
}

.ekskul-matrix-wrapper {
  position: relative;
  width: 100%;
}

.ekskul-matrix-grid {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 0;
  background-color: rgba(5, 42, 25, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(5, 40, 24, 0.45);
}

.ekskul-matrix-col {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.85rem 1.5rem;
  background-color: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: background-color;
}

.ekskul-matrix-col:hover {
  background-color: rgba(255, 255, 255, 0.07);
}

.ekskul-col-img-wrap {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1.15rem;
  background-color: #074026;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.ekskul-col-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.ekskul-matrix-col:hover .ekskul-col-img {
  transform: scale(1.05);
}

.ekskul-col-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  background: rgba(7, 40, 24, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-gold);
  z-index: 2;
}

.ekskul-col-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.ekskul-col-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0;
  letter-spacing: -0.015em;
  transition: color 0.3s ease;
}

.ekskul-matrix-col:hover .ekskul-col-title {
  color: var(--color-gold);
}

.ekskul-matrix-mobile-nav {
  display: none;
}

/* Desktop 7-Card Balanced Matrix: 4 Cards on Top Row (span 3), 3 Cards on Bottom Row (span 4) */
@media (min-width: 1025px) {
  .ekskul-matrix-grid {
    grid-template-columns: repeat(12, 1fr);
  }

  .ekskul-matrix-col:nth-child(1),
  .ekskul-matrix-col:nth-child(2),
  .ekskul-matrix-col:nth-child(3),
  .ekskul-matrix-col:nth-child(4) {
    grid-column: span 3;
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .ekskul-matrix-col:nth-child(4) {
    border-right: none;
  }

  .ekskul-matrix-col:nth-child(5),
  .ekskul-matrix-col:nth-child(6),
  .ekskul-matrix-col:nth-child(7) {
    grid-column: span 4;
    border-bottom: none;
  }

  .ekskul-matrix-col:nth-child(7) {
    border-right: none;
  }
}

/* Tablet Matrix: 2 Columns Grid */
@media (max-width: 1024px) and (min-width: 769px) {
  .ekskul-matrix-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .ekskul-matrix-col:nth-child(odd) {
    border-right: 1px solid rgba(255, 255, 255, 0.12);
  }

  .ekskul-matrix-col:nth-child(even) {
    border-right: none;
  }

  .ekskul-matrix-col:nth-child(1),
  .ekskul-matrix-col:nth-child(2),
  .ekskul-matrix-col:nth-child(3),
  .ekskul-matrix-col:nth-child(4),
  .ekskul-matrix-col:nth-child(5),
  .ekskul-matrix-col:nth-child(6) {
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  }

  .ekskul-matrix-col:nth-child(7) {
    grid-column: span 2;
    border-right: none;
    border-bottom: none;
  }
}

/* Mobile: Horizontal Swipeable Snap Slider with Touch Navigation */
@media (max-width: 768px) {
  .ekskul-matrix-wrapper {
    position: relative;
    width: 100%;
  }

  .ekskul-matrix-grid {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.15rem;
    padding: 0.5rem 0.25rem 1.25rem 0.25rem;
    margin: 0 -0.25rem;
    scrollbar-width: none;
    border: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .ekskul-matrix-grid::-webkit-scrollbar {
    display: none;
  }

  .ekskul-matrix-col {
    flex: 0 0 85%;
    max-width: 320px;
    min-width: 270px;
    scroll-snap-align: center;
    background: rgba(5, 42, 25, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.35rem 1.25rem 1.5rem 1.25rem;
    opacity: 1 !important;
    transform: none !important;
  }

  .ekskul-matrix-col:last-child {
    margin-right: 0.5rem;
  }

  .ekskul-col-img-wrap {
    height: 170px;
    margin-bottom: 1rem;
  }

  .ekskul-col-title {
    font-size: 1.15rem;
    margin-bottom: 0;
  }

  .ekskul-matrix-mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .ekskul-matrix-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .ekskul-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.28);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .ekskul-dot.active {
    width: 26px;
    border-radius: 12px;
    background-color: var(--color-gold);
  }
}

/* ==========================================================================
   8. APA KATA MEREKA (TESTIMONIAL AUTO-SLIDING CAROUSEL - MAKS 3 CARD)
   ========================================================================== */

.testi-section {
  background-color: #f8fafc;
  background-image: radial-gradient(circle at 50% 0%, rgba(27, 42, 74, 0.035) 0%, transparent 70%);
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.testi-header-wrap {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 2rem;
  margin-bottom: 2.75rem;
  flex-wrap: wrap;
}

.testi-header-text {
  max-width: 680px;
}

.testi-header-text .text-tagline {
  color: var(--color-crimson);
  display: block;
  margin-bottom: 0.5rem;
}

.testi-header-text .text-display-section {
  color: var(--color-navy);
}

.testi-header-text .text-editorial-lead {
  color: var(--color-text-secondary);
}

.testi-nav-btns {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.testi-btn-prev,
.testi-btn-next {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: #ffffff;
  border: 1px solid var(--color-border);
  color: var(--color-navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
}

.testi-btn-prev:hover,
.testi-btn-next:hover {
  background: var(--color-navy);
  color: #ffffff;
  border-color: var(--color-navy);
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(27, 42, 74, 0.22);
}

.testi-carousel-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
  padding: 0.5rem 0.25rem 1rem 0.25rem;
}

.testi-carousel-track {
  display: flex;
  gap: 1.5rem;
  transition: transform 0.55s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.testi-card {
  flex: 0 0 calc((100% - 3rem) / 3);
  background: #ffffff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 14px;
  padding: 0;
  height: 270px;
  overflow: hidden;
  display: flex;
  transition: all 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 8px 24px -6px rgba(0, 0, 0, 0.04);
  user-select: none;
}

.testi-card:hover {
  transform: translateY(-5px);
  border-color: rgba(27, 42, 74, 0.25);
  box-shadow: 0 16px 36px -10px rgba(27, 42, 74, 0.16);
}

.testi-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 14px;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.testi-card:hover .testi-card-img {
  transform: scale(1.06);
}

.testi-dots-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2.25rem;
}

.testi-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: rgba(0, 0, 0, 0.18);
  border: none;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.testi-dot.active {
  width: 26px;
  border-radius: 12px;
  background-color: var(--color-navy);
}

@media (max-width: 1024px) and (min-width: 769px) {
  .testi-card {
    flex: 0 0 calc((100% - 1.5rem) / 2);
    height: 240px;
  }
}

@media (max-width: 768px) {
  .testi-section .container {
    display: flex;
    flex-direction: column;
  }

  .testi-carousel-wrapper {
    order: 1;
    margin-bottom: 0.5rem;
    padding: 0.25rem 0 0.5rem 0;
  }

  .testi-dots-wrap {
    order: 2;
    margin-top: 0.25rem;
    margin-bottom: 1.75rem;
  }

  .testi-header-wrap {
    order: 3;
    flex-direction: column;
    align-items: flex-start;
    gap: 1.25rem;
    margin-bottom: 0;
  }

  .testi-nav-btns {
    align-self: flex-start;
    margin-top: 0.25rem;
  }

  .testi-card {
    flex: 0 0 100%;
    height: 220px;
  }
}

/* ==========================================================================
   9. BERITA & WARTA SEKOLAH (3-CARD MATRIX GRID - STYLE EKSTRAKURIKULER)
   ========================================================================== */

.berita-matrix-section {
  position: relative;
  background-color: var(--color-primary);
  background-image: linear-gradient(180deg, rgba(14, 110, 68, 0.96) 0%, rgba(9, 82, 50, 0.98) 100%), url('../images/bg-2.webp');
  background-size: cover;
  background-position: center center;
  background-repeat: no-repeat;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
}

.berita-matrix-header {
  text-align: center;
  max-width: 820px;
  margin: 0 auto 3.5rem auto;
}

.berita-matrix-header .text-tagline {
  color: var(--color-gold);
  display: block;
  margin-bottom: 0.5rem;
}

.berita-matrix-header .text-display-section {
  color: #ffffff;
}

.berita-matrix-header .text-editorial-lead {
  color: rgba(255, 255, 255, 0.9);
}

.berita-matrix-wrapper {
  position: relative;
  width: 100%;
}

.berita-matrix-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background-color: rgba(5, 42, 25, 0.32);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 14px;
  overflow: hidden;
  box-shadow: 0 20px 48px -12px rgba(5, 40, 24, 0.45);
}

.berita-matrix-col {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.75rem 1.5rem 1.85rem 1.5rem;
  background-color: transparent;
  border-right: 1px solid rgba(255, 255, 255, 0.12);
  transition: background-color 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: background-color;
  text-decoration: none;
}

.berita-matrix-col:nth-child(3),
.berita-matrix-col:last-child {
  border-right: none;
}

.berita-matrix-col:hover {
  background-color: rgba(255, 255, 255, 0.07);
}

.berita-col-img-wrap {
  position: relative;
  width: 100%;
  height: 210px;
  overflow: hidden;
  border-radius: 10px;
  margin-bottom: 1.15rem;
  background-color: #074026;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.berita-col-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.berita-matrix-col:hover .berita-col-img {
  transform: scale(1.05);
}

.berita-col-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.28rem 0.65rem;
  background: rgba(7, 40, 24, 0.88);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.725rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--color-gold);
  z-index: 2;
}

.berita-col-content {
  padding: 0;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.berita-col-date {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-gold);
  letter-spacing: 0.02em;
  margin-bottom: 0.5rem;
}

.berita-col-date i {
  font-size: 0.9rem;
}

.berita-col-title {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.35;
  margin-bottom: 0;
  letter-spacing: -0.015em;
  transition: color 0.3s ease;
}

.berita-matrix-col:hover .berita-col-title {
  color: var(--color-gold);
}

.berita-matrix-mobile-nav {
  display: none;
}

/* Tablet Matrix: 3 Columns Grid */
@media (max-width: 1024px) and (min-width: 769px) {
  .berita-matrix-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .berita-col-img-wrap {
    height: 180px;
  }

  .berita-col-title {
    font-size: 1.15rem;
  }
}

/* Mobile: Horizontal Swipeable Snap Slider with Touch Navigation */
@media (max-width: 768px) {
  .berita-matrix-wrapper {
    position: relative;
    width: 100%;
  }

  .berita-matrix-grid {
    display: flex !important;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    gap: 1.15rem;
    padding: 0.5rem 0.25rem 1.25rem 0.25rem;
    margin: 0 -0.25rem;
    scrollbar-width: none;
    border: none;
    background: transparent;
    border-radius: 0;
    box-shadow: none;
  }

  .berita-matrix-grid::-webkit-scrollbar {
    display: none;
  }

  .berita-matrix-col {
    flex: 0 0 85%;
    max-width: 320px;
    min-width: 270px;
    scroll-snap-align: center;
    background: rgba(5, 42, 25, 0.45);
    border: 1px solid rgba(255, 255, 255, 0.15);
    border-radius: 12px;
    padding: 1.35rem 1.25rem 1.5rem 1.25rem;
    opacity: 1 !important;
    transform: none !important;
  }

  .berita-matrix-col:last-child {
    margin-right: 0.5rem;
  }

  .berita-col-img-wrap {
    height: 170px;
    margin-bottom: 1rem;
  }

  .berita-col-title {
    font-size: 1.15rem;
    margin-bottom: 0;
  }

  .berita-matrix-mobile-nav {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
    margin-top: 1rem;
  }

  .berita-matrix-dots {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
  }

  .berita-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.28);
    border: none;
    padding: 0;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .berita-dot.active {
    width: 26px;
    border-radius: 12px;
    background-color: var(--color-gold);
  }
}

/* ==========================================================================
   10. GALERI AKTIVITAS & DOKUMENTASI KAMPUS (CLEAN EDITORIAL FLAT BENTO GALLERY)
   ========================================================================== */

.gallery-section {
  background-color: #f8fafc;
  position: relative;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.gallery-section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 2.5rem auto;
}

.gallery-section-header .text-tagline {
  color: var(--color-crimson);
  display: block;
  margin-bottom: 0.5rem;
}

.gallery-section-header .text-display-section {
  color: var(--color-navy);
}

.gallery-section-header .text-editorial-lead {
  color: var(--color-text-secondary);
}

/* 1. Clean Minimalist Editorial Filter Tabs (No Floating Bubble, No Shadows) */
.gallery-filter-wrap {
  display: flex;
  justify-content: center;
  margin-bottom: 2.75rem;
  border-bottom: 1px solid #e2e8f0;
}

.gallery-filter-nav {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  overflow-x: auto;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
  margin-bottom: -1px;
}

.gallery-filter-nav::-webkit-scrollbar {
  display: none;
}

.gallery-filter-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 1.35rem;
  background: transparent;
  border: none;
  border-bottom: 2px solid transparent;
  font-family: var(--font-body);
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--color-text-secondary);
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.25s ease;
  user-select: none;
  box-shadow: none !important;
}

.gallery-filter-tab i {
  font-size: 1.1rem;
  color: inherit;
  transition: transform 0.25s ease;
}

.gallery-filter-tab:hover {
  color: var(--color-navy);
}

.gallery-filter-tab.active {
  color: var(--color-primary);
  border-bottom-color: var(--color-primary);
  font-weight: 700;
}

.gallery-filter-tab.active i {
  color: var(--color-primary);
}

/* 2. Flat Bento Masonry Gallery Grid (No Shadows, Clean Borders) */
.gallery-grid-wrapper {
  position: relative;
  width: 100%;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}

.gallery-card {
  position: relative;
  border-radius: 14px;
  overflow: hidden;
  background: #081d14;
  cursor: pointer;
  aspect-ratio: 4/3;
  box-shadow: none !important;
  border: 1px solid #e2e8f0;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease, opacity 0.35s ease;
  user-select: none;
}

.gallery-card:hover {
  transform: translateY(-4px);
  border-color: var(--color-primary);
}

.gallery-card.gallery-card-featured {
  grid-column: span 2;
  aspect-ratio: 16/9;
}

.gallery-card.is-hidden {
  display: none !important;
}

.gallery-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 0.65s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: transform;
}

.gallery-card:hover .gallery-card-img {
  transform: scale(1.05);
}

.gallery-card-top {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  z-index: 3;
}

.gallery-zoom-icon {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(10, 25, 18, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-size: 1rem;
  box-shadow: none !important;
  opacity: 0;
  transform: scale(0.85);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-zoom-icon {
  opacity: 1;
  transform: scale(1);
}

.gallery-zoom-icon:hover {
  background: var(--color-primary);
  border-color: var(--color-primary);
  color: #ffffff;
}

.gallery-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.02) 0%, rgba(5, 22, 14, 0.35) 45%, rgba(5, 22, 14, 0.92) 100%);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.5rem;
  z-index: 2;
}

.gallery-card-info {
  transform: translateY(4px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card:hover .gallery-card-info {
  transform: translateY(0);
}

.gallery-card-title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 700;
  color: #ffffff;
  line-height: 1.28;
  margin-bottom: 0.3rem;
  letter-spacing: -0.01em;
  transition: color 0.3s ease;
}

.gallery-card:hover .gallery-card-title {
  color: var(--color-gold);
}

.gallery-card-sub {
  font-size: 0.825rem;
  color: rgba(255, 255, 255, 0.85);
  line-height: 1.45;
  margin-bottom: 0;
}

/* 3. Lightbox Preview Modal (Flat Clean Styling) */
.gallery-lightbox-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-lightbox-modal.is-open {
  opacity: 1;
  pointer-events: auto;
}

.gallery-lightbox-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(10, 18, 30, 0.88);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
}

.gallery-lightbox-container {
  position: relative;
  max-width: 820px;
  width: 100%;
  z-index: 2;
  transform: scale(0.94);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-lightbox-modal.is-open .gallery-lightbox-container {
  transform: scale(1);
}

.gallery-lightbox-close {
  position: absolute;
  top: -16px;
  right: -16px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #ffffff;
  color: var(--color-navy);
  border: 1px solid #e2e8f0;
  font-size: 1.35rem;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: none !important;
  z-index: 3;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-lightbox-close:hover {
  transform: scale(1.08) rotate(90deg);
  background: var(--color-crimson);
  color: #ffffff;
  border-color: var(--color-crimson);
}

.gallery-lightbox-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: none !important;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.gallery-lightbox-media {
  width: 100%;
  max-height: 480px;
  overflow: hidden;
  background: #07150e;
  display: flex;
  align-items: center;
  justify-content: center;
}

.gallery-lightbox-media img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  display: block;
}

.gallery-lightbox-details {
  padding: 1.5rem 1.85rem;
  background: #ffffff;
}

.gallery-lightbox-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--color-primary);
  letter-spacing: 0.04em;
  margin-bottom: 0.4rem;
}

.gallery-lightbox-title {
  font-family: var(--font-display);
  font-size: 1.45rem;
  color: var(--color-navy);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
}

.gallery-lightbox-desc {
  font-size: 0.925rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  margin-bottom: 0;
}

/* Tablet Responsive */
@media (max-width: 1024px) and (min-width: 769px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gallery-card.gallery-card-featured {
    grid-column: span 2;
    aspect-ratio: 16/9;
  }
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .gallery-filter-wrap {
    margin-bottom: 1.75rem;
    overflow-x: auto;
    justify-content: flex-start;
  }

  .gallery-filter-nav {
    padding: 0 0.5rem;
  }

  .gallery-filter-tab {
    padding: 0.75rem 1rem;
    font-size: 0.85rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }

  .gallery-card,
  .gallery-card.gallery-card-featured {
    grid-column: span 1;
    aspect-ratio: 4/3;
  }

  .gallery-zoom-icon {
    opacity: 1;
    transform: scale(1);
    width: 34px;
    height: 34px;
    font-size: 0.95rem;
  }

  .gallery-card-title {
    font-size: 1.2rem;
  }

  .gallery-lightbox-close {
    top: 10px;
    right: 10px;
    width: 38px;
    height: 38px;
    font-size: 1.15rem;
  }

  .gallery-lightbox-media {
    max-height: 300px;
  }

  .gallery-lightbox-media img {
    max-height: 300px;
  }

  .gallery-lightbox-details {
    padding: 1.25rem 1.35rem;
  }

  .gallery-lightbox-title {
    font-size: 1.25rem;
  }
}

/* ==========================================================================
   19. FLOATING BOTTOM CTA BAR (Responsive Adaptive PPDB Bar)
   Desktop: Single Row Quick Form | Mobile: Teaser Pill -> New Input Card
   ========================================================================== */

.floating-cta-container {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translate(-50%, calc(100% + 40px));
  opacity: 0;
  pointer-events: none;
  z-index: 995;
  width: calc(100% - 32px);
  max-width: 680px;
  transition: transform 0.45s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  will-change: transform, opacity;
}

.floating-cta-container.is-visible {
  transform: translate(-50%, 0);
  opacity: 1;
  pointer-events: auto;
}

.floating-cta-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

/* Desktop Floating Card */
.floating-cta-desktop-card {
  width: 100%;
  min-width: 0;
  height: 52px;
  display: flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  border: 1px solid rgba(14, 110, 68, 0.2);
  border-radius: 999px;
  box-shadow: 0 14px 36px rgba(9, 40, 27, 0.14), 0 3px 10px rgba(9, 40, 27, 0.05);
  padding: 0 8px 0 16px;
}

.floating-cta-desktop-form {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.floating-cta-logo-badge {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #ffffff;
  border: 1.5px solid rgba(14, 110, 68, 0.2);
  box-shadow: 0 2px 6px rgba(9, 40, 27, 0.08);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  padding: 3px;
}

.floating-cta-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.floating-cta-label {
  font-family: var(--font-sans);
  font-size: 0.88rem;
  font-weight: 700;
  color: var(--color-text-primary);
  white-space: nowrap;
  flex-shrink: 0;
  letter-spacing: -0.01em;
}

.floating-cta-input-wrapper {
  flex: 1;
  min-width: 0;
}

.floating-cta-input {
  width: 100%;
  height: 38px;
  padding: 0 16px;
  background: #f4f8f5;
  border: 1.5px solid var(--color-border);
  border-radius: 999px;
  font-family: var(--font-sans);
  font-size: 0.85rem;
  color: var(--color-text-primary);
  transition: all 0.2s ease;
  outline: none;
}

.floating-cta-input::placeholder {
  color: var(--color-text-muted);
  opacity: 0.85;
}

.floating-cta-input:focus {
  background: #ffffff;
  border-color: var(--color-primary);
  box-shadow: 0 0 0 3px rgba(14, 110, 68, 0.14);
}

.floating-cta-submit {
  position: relative;
  overflow: hidden;
  height: 38px;
  padding: 0 22px;
  background: var(--color-primary);
  color: #ffffff;
  border: 1px solid var(--color-primary);
  border-radius: 999px;
  font-size: 0.84rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
  white-space: nowrap;
  box-shadow: 0 4px 14px var(--color-primary-glow);
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.floating-cta-submit:hover {
  background: var(--color-primary-hover);
  border-color: var(--color-primary-hover);
  transform: translateY(-1px) scale(1.02);
  box-shadow: 0 8px 22px rgba(14, 110, 68, 0.38);
}

.floating-cta-submit:active {
  transform: translateY(0) scale(0.98);
  box-shadow: 0 2px 8px var(--color-primary-glow);
}

/* Floating Scroll-to-Top Button (Hidden on Desktop >= 641px) */
.floating-scroll-top-btn {
  display: none;
}

/* Mobile Card (Hidden on Desktop >= 641px) */
.floating-cta-mobile-card {
  display: none;
}

/* ==========================================================================
   Mobile Adaptive CTA Card (< 640px)
   ========================================================================== */
@media (max-width: 640px) {
  .floating-cta-container {
    bottom: max(14px, env(safe-area-inset-bottom, 14px));
    width: min(430px, calc(100% - 24px));
    max-width: 430px;
  }

  .floating-cta-wrapper {
    position: relative;
    width: 100%;
  }

  /* Floating Scroll-to-Top Button (Khusus Mobile: Di Atas Kanan Floating CTA) */
  .floating-scroll-top-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    position: absolute;
    bottom: calc(100% + 8px);
    right: 4px;
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(14, 110, 68, 0.22);
    color: var(--color-primary);
    box-shadow: 0 6px 18px rgba(9, 40, 27, 0.14), 0 2px 6px rgba(9, 40, 27, 0.05);
    font-size: 1.15rem;
    cursor: pointer;
    transition: transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s ease, box-shadow 0.2s ease;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
    padding: 0;
  }

  .floating-scroll-top-btn:hover {
    background: #ffffff;
    color: var(--color-primary-hover);
    transform: translateY(-2px);
    box-shadow: 0 8px 22px rgba(14, 110, 68, 0.22);
  }

  .floating-scroll-top-btn:active {
    transform: scale(0.92);
    background: var(--color-surface-subtle);
    box-shadow: 0 2px 8px rgba(9, 40, 27, 0.1);
  }

  .floating-scroll-top-btn i {
    pointer-events: none;
    line-height: 1;
  }

  .floating-cta-desktop-card {
    display: none;
  }

  .floating-cta-mobile-card {
    display: block;
    width: 100%;
  }

  /* State 1: Teaser Pill */
  .floating-cta-mobile-teaser {
    width: 100%;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1px solid rgba(14, 110, 68, 0.2);
    border-radius: 999px;
    box-shadow: 0 10px 30px rgba(9, 40, 27, 0.15), 0 2px 6px rgba(9, 40, 27, 0.05);
    padding: 0 6px 0 10px;
    gap: 8px;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
    will-change: transform, opacity;
    cursor: pointer;
  }

  .floating-cta-mobile-teaser.is-exiting-down {
    transform: translateY(calc(100% + 50px));
    opacity: 0;
    pointer-events: none;
  }

  .floating-cta-mobile-teaser.is-entering-up {
    transform: translateY(calc(100% + 50px));
    opacity: 0;
  }

  .floating-cta-mobile-teaser.is-entering-up.is-active {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
  }

  .floating-cta-mobile-info {
    display: flex;
    align-items: center;
    gap: 9px;
    flex: 1;
    min-width: 0;
  }

  .floating-cta-mobile-text {
    display: flex;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
  }

  .mobile-title {
    font-size: 0.8rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    letter-spacing: -0.01em;
  }

  .mobile-sub {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--color-text-muted);
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .floating-cta-mobile-open-btn {
    height: 36px;
    padding: 0 16px;
    font-size: 0.8rem;
    font-weight: 700;
    border-radius: 999px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px var(--color-primary-glow);
    border: none;
    cursor: pointer;
  }

  /* State 2: New Mobile Input CTA Card */
  .floating-cta-mobile-expanded {
    display: none;
    width: 100%;
    background: rgba(255, 255, 255, 0.98);
    -webkit-backdrop-filter: blur(16px);
    backdrop-filter: blur(16px);
    border: 1.5px solid rgba(14, 110, 68, 0.22);
    border-radius: 18px;
    box-shadow: 0 14px 40px rgba(9, 40, 27, 0.18), 0 3px 10px rgba(9, 40, 27, 0.06);
    padding: 12px 14px;
    transform: translateY(calc(100% + 50px));
    opacity: 0;
    transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
    will-change: transform, opacity;
  }

  .floating-cta-mobile-expanded.is-active {
    transform: translateY(0);
    opacity: 1;
  }

  .floating-cta-mobile-expanded.is-exiting-down {
    transform: translateY(calc(100% + 50px));
    opacity: 0;
    transition: transform 0.25s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.22s ease;
  }

  .mobile-expanded-header {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
  }

  .mobile-expanded-title {
    display: flex;
    flex-direction: column;
    min-width: 0;
  }

  .mobile-expanded-title strong {
    font-size: 0.82rem;
    font-weight: 700;
    color: var(--color-navy);
    line-height: 1.2;
  }

  .mobile-expanded-title span {
    font-size: 0.68rem;
    font-weight: 500;
    color: var(--color-text-muted);
    line-height: 1.2;
  }

  .mobile-expanded-input-row {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
  }

  .floating-cta-mobile-input {
    flex: 1;
    min-width: 0;
    height: 40px;
    padding: 0 14px;
    background: #f4f8f5;
    border: 1.5px solid var(--color-border);
    border-radius: 999px;
    font-family: var(--font-sans);
    font-size: 0.84rem;
    color: var(--color-text-primary);
    outline: none;
    transition: all 0.2s ease;
  }

  .floating-cta-mobile-input:focus {
    background: #ffffff;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(14, 110, 68, 0.15);
  }

  .mobile-expanded-submit-btn {
    height: 40px;
    padding: 0 18px;
    font-size: 0.82rem;
    font-weight: 700;
    border-radius: 999px;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    box-shadow: 0 3px 10px var(--color-primary-glow);
  }
}

@media (max-width: 360px) {
  .pg-hero-home .pg-hero-inner-container > .container {
    padding-bottom: 1.15rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .pg-hero-title {
    font-size: 1.15rem;
    margin-bottom: 0.35rem;
  }

  .pg-hero-sub {
    font-size: 0.76rem;
    line-height: 1.35;
    margin-bottom: 0.75rem;
  }

  .pg-hero-btns {
    gap: 0.35rem;
  }

  .pg-hero-btns .btn {
    padding: 0.65rem 0.3rem;
    font-size: 0.72rem;
  }

  .partner-logo-item {
    height: 24px;
    padding: 0.1rem 0.2rem;
  }

  .floating-cta-container {
    width: calc(100% - 16px);
  }

  .floating-scroll-top-btn {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
    right: 2px;
    bottom: calc(100% + 6px);
  }

  .mobile-title {
    font-size: 0.75rem;
  }

  .mobile-sub {
    display: none;
  }

  .floating-cta-mobile-open-btn {
    padding: 0 12px;
    font-size: 0.76rem;
  }

  .mobile-expanded-submit-btn {
    padding: 0 14px;
    font-size: 0.78rem;
  }
}

/* ==========================================================================
   PPDB DEDICATED PAGE STYLES (SMA Muhammadiyah Al Kautsar PK)
   ========================================================================== */

/* 1. 3-Layer 2.5D Depth Parallax Hero with Serif Typography */
/* 1. 3-Layer 2.5D Depth Parallax Hero with Serif Typography */
.ppdb-parallax-hero {
  position: relative;
  overflow: visible;
  min-height: calc(100vh - var(--header-height, 56px));
  display: flex;
  align-items: flex-start;
  justify-content: center;
  background: #092015;
  color: #ffffff;
  padding: 0;
  z-index: 1;
}

/* Layer Base */
.ppdb-layer {
  will-change: transform;
}

/* LAYER 1: Background Scenery (Bounded strictly within hero) (z-index: 1) */
.ppdb-layer-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  pointer-events: none;
}

.ppdb-parallax-bg-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
  filter: brightness(0.5) contrast(1.1) blur(3px);
  transform: scale(1.05);
}

.ppdb-bg-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(6, 26, 17, 0.45) 0%, rgba(6, 26, 17, 0.2) 35%, rgba(6, 26, 17, 0.85) 85%, #061a11 100%);
}

/* LAYER 2: Middle Text (Tailwind Serif) (z-index: 2) */
.ppdb-layer-text {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: clamp(6.5rem, 13vh, 9.5rem) 1.5rem 0 1.5rem;
  text-align: center;
}

.ppdb-parallax-content {
  max-width: 1120px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  perspective: 1200px;
}

/* School Logo Brand Icon (White Rounded Circle) */
.ppdb-hero-logo-wrap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: clamp(60px, 9vh, 76px);
  height: clamp(60px, 9vh, 76px);
  background: #ffffff;
  border-radius: 50%;
  padding: 10px;
  margin-bottom: 1.25rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.45), 0 0 0 2px rgba(255, 255, 255, 0.25);
  transform-origin: center center;
}

.ppdb-hero-logo-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

/* Kinetic Animated Headline */
.ppdb-hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 6vw, 4.85rem);
  font-weight: 800;
  line-height: 1.08;
  color: #ffffff;
  letter-spacing: -0.04em;
  text-align: center;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.85), 0 2px 8px rgba(0, 0, 0, 0.95);
  max-width: 1080px;
  margin: 0 auto;
  transform-style: preserve-3d;
}

.kinetic-word-mask {
  display: inline-block;
  overflow: hidden;
  vertical-align: top;
  margin: 0 0.08em;
  padding: 0.08em 0.02em;
}

.kinetic-word {
  display: inline-block;
  transform-origin: 50% 100%;
  will-change: transform, opacity, filter;
  backface-visibility: hidden;
  color: #ffffff;
}

/* ==========================================================================
   PENGATURAN UKURAN & POSISI FOTO SISWA (PPDB HERO CUTOUT)
   Lokasi File: assets/css/style.css
   ========================================================================== */
.ppdb-layer-fg {
  position: absolute;
  bottom: clamp(-150px, -18vh, -90px); /* Atur posisi vertikal ke bawah (menjorok ke section putih) */
  left: 0;
  right: 0;
  z-index: 3;
  pointer-events: none;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  width: 100%;
}

.ppdb-parallax-fg-img {
  /* >>> ATUR UKURAN FOTO SISWA DI BAWAH INI <<< */
  height: clamp(440px, 68vh, 800px); /* Tinggi foto (min: 440px, responsif: 68vh, max: 800px) */
  width: clamp(720px, 88vw, 1350px); /* Lebar foto (min: 720px, responsif: 88vw, max: 1350px) */
  max-width: 98%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 -12px 35px rgba(0, 0, 0, 0.65));
  transform-origin: bottom center;
  transform: scale(1.08); /* Skala zoom foto */
  will-change: transform;
}

/* White Section Directly Below Hero (Clips bottom of cutout) (z-index: 10) */
.ppdb-section-after-hero {
  position: relative;
  z-index: 10;
  background: #ffffff;
  box-shadow: 0 -18px 45px rgba(0, 0, 0, 0.22);
  border-top: 1px solid var(--color-border-subtle);
}

@media (max-width: 1200px) {
  .ppdb-layer-text {
    padding: clamp(5.5rem, 11vh, 7.5rem) 1.25rem 0 1.25rem;
  }
  .ppdb-layer-fg {
    bottom: clamp(-100px, -12vh, -60px);
  }
  .ppdb-parallax-fg-img {
    height: clamp(280px, 46vh, 480px);
    width: clamp(480px, 78vw, 880px);
    transform: scale(1);
  }
}

@media (max-width: 992px) {
  .ppdb-layer-text {
    padding: clamp(4.5rem, 9vh, 6rem) 1.25rem 0 1.25rem;
  }
  .ppdb-layer-fg {
    bottom: -60px;
  }
  .ppdb-parallax-fg-img {
    height: clamp(240px, 40vh, 400px);
    width: 88%;
    transform: scale(1);
  }
}

/* ==========================================================================
   PENGATURAN KHUSUS LAYAR HP (MOBILE / SMARTPHONE: Lebar Layar <= 768px)
   ========================================================================== */
@media (max-width: 768px) {
  .ppdb-parallax-hero {
    min-height: 90vh; /* Tinggi jumbotron di HP */
    overflow-x: clip; /* Mencegah scrollbar horizontal saat gambar melebar */
  }

  .ppdb-layer-text {
    padding: clamp(5.5rem, 12vh, 7.5rem) 1rem 0 1rem; /* Jarak teks diturunkan lebih ke bawah di HP */
  }

  .ppdb-hero-title {
    font-size: clamp(1.85rem, 6.5vw, 2.75rem); /* Ukuran font teks judul di HP */
  }

  .ppdb-layer-fg {
    bottom: -110px; /* Posisi foto diturunkan lebih ke bawah di HP */
    overflow: visible;
  }

  .ppdb-parallax-fg-img {
    /* >>> ATUR UKURAN FOTO SISWA DI HP (SWEET SPOT) <<< */
    height: clamp(380px, 60vh, 580px); /* Tinggi foto proporsional di HP */
    width: clamp(480px, 130vw, 800px);  /* Lebar foto pas di HP */
    max-width: none;
    transform: scale(2.0);              /* Skala Zoom Pas (2.0x) */
    transform-origin: bottom center;
  }
}

/* PPDB Live Pulse Animation */
.ppdb-pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background-color: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: ppdbPulse 2s infinite cubic-bezier(0.4, 0, 0.6, 1);
}

@keyframes ppdbPulse {
  0% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    transform: scale(1);
    box-shadow: 0 0 0 8px rgba(16, 185, 129, 0);
  }
  100% {
    transform: scale(0.95);
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* Stats Highlights Strip */
.ppdb-stats-bar {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 1.75rem 2rem;
  box-shadow: var(--shadow-card);
  margin-top: -3.5rem;
  position: relative;
  z-index: 10;
}

.ppdb-stat-item {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--color-border-subtle);
  padding-right: 1.5rem;
}

.ppdb-stat-item:last-child {
  border-right: none;
  padding-right: 0;
}

.ppdb-stat-num {
  font-family: var(--font-bebas);
  font-size: 2.75rem;
  line-height: 1;
  color: var(--color-primary);
  letter-spacing: 0.02em;
  margin-bottom: 0.25rem;
}

.ppdb-stat-label {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.2rem;
}

.ppdb-stat-desc {
  font-size: 0.8rem;
  color: var(--color-text-muted);
  line-height: 1.4;
}

/* Admission Waves / Gelombang Grid */
.ppdb-wave-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.75rem;
  margin-top: 2.5rem;
}

.ppdb-wave-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.25rem 2rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.ppdb-wave-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-elevated);
}

.ppdb-wave-card.is-active {
  border-color: var(--color-primary);
  border-top: 4px solid var(--color-primary);
  box-shadow: var(--shadow-card);
  background: linear-gradient(180deg, rgba(14, 110, 68, 0.02) 0%, #ffffff 100%);
}

.ppdb-wave-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  align-self: flex-start;
  margin-bottom: 1.25rem;
}

.ppdb-wave-badge.badge-active {
  background: #ecfdf5;
  color: #065f46;
  border: 1px solid #a7f3d0;
}

.ppdb-wave-badge.badge-upcoming {
  background: #fefce8;
  color: #854d0e;
  border: 1px solid #fef08a;
}

.ppdb-wave-badge.badge-conditional {
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.ppdb-wave-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-navy);
  margin-bottom: 0.15rem;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.ppdb-wave-year {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--color-primary);
  margin-bottom: 1rem;
}

.ppdb-wave-deadline-box {
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.65rem 0.9rem;
  margin-bottom: 0.85rem;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.ppdb-wave-deadline-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-text-muted);
}

.ppdb-wave-deadline-date {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--color-navy);
}

.ppdb-wave-deadline-date i {
  color: var(--color-primary);
  font-size: 1.15rem;
}

.ppdb-wave-timer-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  background: transparent;
  border: none;
  padding: 0;
  margin-bottom: 1.5rem;
}

.ppdb-wave-days-pill {
  display: inline-flex;
  align-items: baseline;
  gap: 0.25rem;
  background: var(--color-primary);
  color: #ffffff;
  padding: 0.32rem 0.65rem;
  border-radius: var(--radius-sm);
  font-size: 0.78rem;
  font-weight: 700;
  line-height: 1;
}

.ppdb-wave-days-pill .cd-day-num {
  font-size: 0.95rem;
  font-weight: 900;
}

.ppdb-wave-clock-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.15rem;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 0.92rem;
  font-weight: 800;
  color: var(--color-navy);
  background: var(--color-surface-subtle);
  padding: 0.32rem 0.65rem;
  border-radius: var(--radius-sm);
  letter-spacing: 0.04em;
  line-height: 1;
}

.ppdb-wave-clock-pill .cd-sep {
  color: var(--color-gold);
  animation: clockBlink 1s infinite ease-in-out;
}

.ppdb-wave-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 1.75rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex-grow: 1;
}

.ppdb-wave-benefits li {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.5;
}

.ppdb-wave-benefits li i {
  color: var(--color-primary);
  font-size: 1.1rem;
  margin-top: 0.15rem;
  flex-shrink: 0;
}

.ppdb-wave-action {
  margin-top: auto;
}

/* ==========================================================================
   PPDB INDENT COUNTDOWN ADMISSION CARD (Featured Wave Card)
   ========================================================================== */
.ppdb-indent-container {
  max-width: 680px;
  margin: 2rem auto 0 auto;
  width: 100%;
}

.ppdb-indent-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-top: 5px solid var(--color-primary);
  border-radius: var(--radius-lg);
  padding: 2.75rem 2.25rem;
  box-shadow: 0 16px 40px rgba(9, 40, 27, 0.08);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  position: relative;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  overflow: hidden;
}

.ppdb-indent-card::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 140px;
  background: linear-gradient(180deg, rgba(14, 110, 68, 0.04) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}

.ppdb-indent-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 50px rgba(9, 40, 27, 0.12);
}

.ppdb-indent-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

.ppdb-indent-topbar .ppdb-wave-badge {
  margin-bottom: 0;
}

.ppdb-indent-quota-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--color-gold);
  background: var(--color-gold-light);
  border: 1px solid rgba(197, 155, 39, 0.3);
  padding: 0.3rem 0.75rem;
  border-radius: 9999px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.ppdb-indent-title-section {
  margin-bottom: 1.5rem;
}

.ppdb-indent-title {
  font-family: var(--font-display);
  font-size: clamp(2.75rem, 6vw, 3.75rem);
  font-weight: 900;
  color: var(--color-navy);
  letter-spacing: 0.08em;
  line-height: 1;
  margin: 0 0 0.35rem 0;
  text-transform: uppercase;
}

.ppdb-indent-year {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--color-primary);
  letter-spacing: 0.08em;
}

.ppdb-indent-deadline-box {
  background: var(--color-surface-subtle);
  border: 1px dashed var(--color-border);
  border-radius: var(--radius-md);
  padding: 0.85rem 1.75rem;
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
}

.ppdb-indent-deadline-label {
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
}

.ppdb-indent-deadline-date {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 1.35rem;
  font-weight: 800;
  color: var(--color-navy);
}

.ppdb-indent-deadline-date i {
  color: var(--color-primary);
  font-size: 1.35rem;
}

.ppdb-indent-countdown-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  width: 100%;
  margin-bottom: 2rem;
  flex-wrap: wrap;
}

.ppdb-indent-days-badge {
  background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-hover) 100%);
  color: #ffffff;
  padding: 0.75rem 1.4rem;
  border-radius: var(--radius-md);
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  box-shadow: 0 4px 14px rgba(14, 110, 68, 0.25);
}

.ppdb-indent-days-val {
  font-size: 1.75rem;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ppdb-indent-days-unit {
  font-size: 0.9rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  opacity: 0.95;
}

.ppdb-indent-clock-pill {
  background: var(--color-navy);
  border: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  box-shadow: 0 4px 14px rgba(9, 40, 27, 0.2);
}

.ppdb-indent-clock-digits {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 1.65rem;
  font-weight: 800;
  color: #ffffff;
  letter-spacing: 0.08em;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.ppdb-indent-clock-digits .cd-colon {
  color: var(--color-gold);
  animation: clockBlink 1s infinite ease-in-out;
}

@keyframes clockBlink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.35; }
}

.ppdb-indent-benefits {
  list-style: none;
  padding: 0;
  margin: 0 0 2rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  width: 100%;
  text-align: left;
  border-top: 1px solid var(--color-border-subtle);
  padding-top: 1.5rem;
}

.ppdb-indent-benefits li {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  font-size: 0.92rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
}

.ppdb-indent-benefits li i {
  color: var(--color-primary);
  font-size: 1.15rem;
  flex-shrink: 0;
}

.ppdb-indent-action {
  width: 100%;
}

.btn-indent-action {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  padding: 1.1rem 2rem;
  border-radius: var(--radius-md);
  box-shadow: 0 6px 20px rgba(14, 110, 68, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.btn-indent-action:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 28px rgba(14, 110, 68, 0.38);
}

@media (max-width: 640px) {
  .ppdb-indent-card {
    padding: 2rem 1.25rem;
  }

  .ppdb-indent-topbar {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .ppdb-indent-title {
    font-size: 2.5rem;
  }

  .ppdb-indent-year {
    font-size: 1.25rem;
  }

  .ppdb-indent-deadline-date {
    font-size: 1.15rem;
  }

  .ppdb-indent-countdown-wrap {
    flex-direction: column;
    gap: 0.75rem;
  }

  .ppdb-indent-days-badge,
  .ppdb-indent-clock-pill {
    width: 100%;
    justify-content: center;
  }
}

/* Pathways & Scholarships 4-Column Grid */
.ppdb-pathways-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.ppdb-pathway-card {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2rem 1.75rem;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
  position: relative;
}

.ppdb-pathway-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-card);
  border-color: var(--color-primary);
}

.ppdb-pathway-crest {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-sm);
  background-color: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.75rem;
  margin-bottom: 1.25rem;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ppdb-pathway-card:hover .ppdb-pathway-crest {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

.ppdb-pathway-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.6rem;
  line-height: 1.35;
}

.ppdb-pathway-card p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  line-height: 1.6;
  margin-bottom: 1.25rem;
  flex-grow: 1;
}

.ppdb-pathway-perks {
  padding-top: 1rem;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.ppdb-perk-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.775rem;
  font-weight: 700;
  color: var(--color-primary);
  background: var(--color-surface-subtle);
  padding: 0.3rem 0.65rem;
  border-radius: var(--radius-sm);
}

/* ==========================================================================
   CLEAN LINE TIMELINE (Borderless Flow with Dynamic Scroll Step Tracker)
   ========================================================================== */
.ppdb-clean-timeline {
  max-width: 820px;
  margin: 0 auto;
  position: relative;
  padding-left: 72px;
}

/* Continuous background track line */
.ppdb-clean-line-track {
  position: absolute;
  top: 24px;
  bottom: 24px;
  left: 25px;
  width: 3px;
  background: var(--color-border);
  border-radius: 999px;
  z-index: 1;
}

/* Dynamic active progress fill on scroll */
.ppdb-clean-line-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 0%;
  background: linear-gradient(180deg, var(--color-primary) 0%, var(--color-primary) 100%);
  border-radius: 999px;
  box-shadow: 0 0 10px rgba(14, 110, 68, 0.4);
  transition: height 0.25s ease-out;
}

.ppdb-clean-item {
  position: relative;
  margin-bottom: 3.5rem;
  transition: opacity 0.3s ease;
}

.ppdb-clean-item:last-child {
  margin-bottom: 0;
}

/* Circular Node on the Line with Clear Number */
.ppdb-clean-node {
  position: absolute;
  left: -72px;
  top: -4px;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #ffffff;
  border: 2px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 2;
  box-shadow: 0 0 0 6px var(--color-bg), 0 2px 8px rgba(9, 40, 27, 0.06);
  transition: all 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.ppdb-clean-node-num {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-text-muted);
  line-height: 1;
  letter-spacing: -0.02em;
  transition: color 0.3s ease;
}

/* Active State on Node & Step (When scrolled into view) */
.ppdb-clean-item.is-active .ppdb-clean-node {
  background: var(--color-primary);
  border-color: var(--color-primary);
  transform: scale(1.08);
  box-shadow: 0 0 0 6px var(--color-bg), 0 6px 20px rgba(14, 110, 68, 0.35);
}

.ppdb-clean-item.is-active .ppdb-clean-node-num {
  color: #ffffff;
  font-weight: 900;
}

/* Content Area - Borderless Typography */
.ppdb-clean-content {
  border: none;
  background: transparent;
  padding: 0;
}

.ppdb-clean-header {
  margin-bottom: 0.6rem;
}

.ppdb-clean-step-tag {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--color-text-muted);
  margin-bottom: 0.25rem;
  transition: color 0.3s ease;
}

.ppdb-clean-item.is-active .ppdb-clean-step-tag {
  color: var(--color-primary);
}

.ppdb-clean-title {
  font-size: 1.45rem;
  font-weight: 800;
  color: var(--color-navy);
  margin: 0;
  line-height: 1.3;
  letter-spacing: -0.01em;
}

.ppdb-clean-desc {
  font-size: 1.02rem;
  color: var(--color-text-secondary);
  line-height: 1.65;
  margin: 0;
}

.ppdb-clean-note {
  margin-top: 0.85rem;
  background: transparent;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 0.75rem 1rem;
  font-size: 0.88rem;
  color: var(--color-text-secondary);
  line-height: 1.55;
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
}

.ppdb-clean-note i {
  color: var(--color-primary);
  font-size: 1.2rem;
  margin-top: 0.1rem;
  flex-shrink: 0;
}

.ppdb-clean-req-list {
  list-style: none;
  padding: 0;
  margin: 1rem 0 0 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 0.65rem 1.5rem;
}

.ppdb-clean-req-list li {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--color-navy);
}

.ppdb-clean-req-list li i {
  color: var(--color-primary);
  font-size: 1.15rem;
  flex-shrink: 0;
}

@media (max-width: 640px) {
  .ppdb-clean-timeline {
    padding-left: 54px;
  }

  .ppdb-clean-line-track {
    left: 19px;
  }

  .ppdb-clean-node {
    left: -54px;
    width: 42px;
    height: 42px;
    top: -2px;
  }

  .ppdb-clean-node-num {
    font-size: 0.95rem;
  }

  .ppdb-clean-item {
    margin-bottom: 2.75rem;
  }

  .ppdb-clean-title {
    font-size: 1.2rem;
  }

  .ppdb-clean-desc {
    font-size: 0.92rem;
  }

  .ppdb-clean-note {
    padding: 0.75rem 0.9rem;
    font-size: 0.825rem;
  }

  .ppdb-clean-req-list {
    grid-template-columns: 1fr;
    gap: 0.5rem;
  }
}

/* Requirements & Transparent Fees Split */
.ppdb-split-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3rem;
  align-items: start;
  margin-top: 2.5rem;
}

.ppdb-checklist-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.ppdb-checklist-header {
  margin-bottom: 1.5rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.ppdb-checklist-header h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.ppdb-checklist-header p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
}

.ppdb-check-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.ppdb-check-item {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.ppdb-check-icon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background-color: var(--color-surface-subtle);
  color: var(--color-primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
  border: 1px solid var(--color-border);
}

.ppdb-check-content strong {
  display: block;
  font-size: 0.925rem;
  color: var(--color-navy);
  margin-bottom: 0.15rem;
}

.ppdb-check-content span {
  display: block;
  font-size: 0.825rem;
  color: var(--color-text-secondary);
  line-height: 1.45;
}

/* Cost & Investment Card */
.ppdb-investment-box {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 2.25rem;
  box-shadow: var(--shadow-card);
}

.ppdb-investment-box h3 {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.35rem;
}

.ppdb-investment-box p {
  font-size: 0.875rem;
  color: var(--color-text-secondary);
  margin-bottom: 1.5rem;
}

.ppdb-fee-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.9rem 0;
  border-bottom: 1px solid var(--color-border-subtle);
}

.ppdb-fee-row:last-child {
  border-bottom: none;
}

.ppdb-fee-info strong {
  display: block;
  font-size: 0.925rem;
  color: var(--color-navy);
}

.ppdb-fee-info span {
  font-size: 0.8rem;
  color: var(--color-text-muted);
}

.ppdb-fee-val {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--color-primary);
  text-align: right;
}

.ppdb-scholarship-note {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem;
  background: rgba(14, 110, 68, 0.06);
  border: 1px solid rgba(14, 110, 68, 0.2);
  border-radius: var(--radius-sm);
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
}

.ppdb-scholarship-note i {
  color: var(--color-gold);
  font-size: 1.35rem;
  flex-shrink: 0;
  margin-top: 0.1rem;
}

.ppdb-scholarship-note p {
  font-size: 0.825rem;
  color: var(--color-text-secondary);
  margin: 0;
  line-height: 1.5;
}

/* PPDB Registration Form Card */
.ppdb-form-container {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-primary);
  border-radius: var(--radius-md);
  padding: 3rem;
  box-shadow: var(--shadow-card);
  max-width: 860px;
  margin: 0 auto;
}

.ppdb-form-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
}

.ppdb-form-header {
  text-align: center;
  margin-bottom: 2.25rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid var(--color-border-subtle);
}

.ppdb-form-header h3 {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-navy);
  margin-bottom: 0.4rem;
}

.ppdb-form-header p {
  font-size: 0.925rem;
  color: var(--color-text-secondary);
  max-width: 600px;
  margin: 0 auto;
}

/* FAQ Accordion Component */
.ppdb-faq-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  max-width: 860px;
  margin: 2.5rem auto 0 auto;
}

.ppdb-faq-item {
  background: #ffffff;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ppdb-faq-item:hover {
  border-color: var(--color-primary);
}

.ppdb-faq-item.is-open {
  border-color: var(--color-primary);
  box-shadow: var(--shadow-subtle);
}

.ppdb-faq-btn {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 1.25rem 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  color: var(--color-navy);
  cursor: pointer;
  transition: color 0.2s ease;
}

.ppdb-faq-btn:hover {
  color: var(--color-primary);
}

.ppdb-faq-icon {
  font-size: 1.25rem;
  color: var(--color-primary);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.ppdb-faq-item.is-open .ppdb-faq-icon {
  transform: rotate(180deg);
}

.ppdb-faq-content {
  display: none;
  padding: 0 1.5rem 1.5rem 1.5rem;
  font-size: 0.925rem;
  line-height: 1.65;
  color: var(--color-text-secondary);
  border-top: 1px dashed var(--color-border-subtle);
  padding-top: 1rem;
}

.ppdb-faq-item.is-open .ppdb-faq-content {
  display: block;
  animation: ppdbFaqFadeIn 0.3s ease;
}

@keyframes ppdbFaqFadeIn {
  from {
    opacity: 0;
    transform: translateY(-4px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Brochure Modal */
.ppdb-modal-backdrop {
  position: fixed;
  inset: 0;
  background-color: rgba(9, 40, 27, 0.6);
  backdrop-filter: blur(4px);
  z-index: 999;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s ease;
}

.ppdb-modal-backdrop.is-open {
  opacity: 1;
  pointer-events: auto;
}

.ppdb-modal-card {
  background: #ffffff;
  border-radius: var(--radius-md);
  max-width: 560px;
  width: 100%;
  padding: 2.25rem;
  box-shadow: 0 25px 50px -12px rgba(9, 40, 27, 0.25);
  position: relative;
  transform: scale(0.95) translateY(10px);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.ppdb-modal-backdrop.is-open .ppdb-modal-card {
  transform: scale(1) translateY(0);
}

.ppdb-modal-close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  background: var(--color-surface-subtle);
  border: 1px solid var(--color-border);
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.2rem;
  color: var(--color-navy);
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.ppdb-modal-close:hover {
  background-color: var(--color-primary);
  color: #ffffff;
  border-color: var(--color-primary);
}

/* ==========================================================================
   PPDB RESPONSIVE BREAKPOINTS
   ========================================================================== */

@media (max-width: 1024px) {
  .ppdb-stats-bar {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .ppdb-stat-item:nth-child(2) {
    border-right: none;
    padding-right: 0;
  }

  .ppdb-wave-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .ppdb-pathways-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }

  .ppdb-steps-container {
    grid-template-columns: repeat(2, 1fr);
  }

  .ppdb-split-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

@media (max-width: 640px) {
  .ppdb-stats-bar {
    grid-template-columns: 1fr;
    padding: 1.5rem;
    margin-top: -2rem;
  }

  .ppdb-stat-item {
    border-right: none;
    padding-right: 0;
    border-bottom: 1px solid var(--color-border-subtle);
    padding-bottom: 1rem;
  }

  .ppdb-stat-item:last-child {
    border-bottom: none;
    padding-bottom: 0;
  }

  .ppdb-pathways-grid {
    grid-template-columns: 1fr;
  }

  .ppdb-steps-container {
    grid-template-columns: 1fr;
  }

  .ppdb-form-container {
    padding: 1.75rem 1.25rem;
  }

  .ppdb-form-grid-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .ppdb-hero-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .ppdb-hero-actions .btn {
    width: 100%;
    text-align: center;
  }
}

