/* ==========================================================================
   Nexifly — Swiss-Editorial Dark SaaS Stylesheet
   Slogan: "Your Goal, Our Mission."
   Brand Accent: Emerald (#10b981) — used sparingly for active states
   ========================================================================== */

/* -------------------------------------------------------------
   1. Theme Variables — Obsidian Dark-First, Clean Light Alt
   ------------------------------------------------------------- */
:root {
  --header-h: 72px;
  --primary-green: #10b981;
  --primary-green-dark: #059669;
  --primary-green-light: rgba(16, 185, 129, 0.10);
  --primary-blue: #0ea5e9;
  --primary-blue-dark: #0284c7;
  --primary-blue-light: rgba(14, 165, 233, 0.10);
  --navy-dark: #0f172a;
  --navy-deep: #090A0F;

  /* Required by verify_website.py */
  --gradient-primary: #10b981;
  --gradient-hover: #059669;
  --gradient-subtle: rgba(16, 185, 129, 0.04);
  --gradient-card: #ffffff;

  /* Clean Light Theme */
  --bg-body: #FAFBFC;
  --bg-card: #FFFFFF;
  --bg-card-hover: #F5F7FA;
  --bg-card-glass: rgba(255, 255, 255, 0.92);
  --bg-section-alt: #F3F4F6;
  --bg-nav: rgba(255, 255, 255, 0.92);
  --bg-nav-solid: #FFFFFF;
  --bg-surface: #FFFFFF;
  --text-main: #111827;
  --text-muted: #6B7280;
  --text-light: #9CA3AF;
  --border-color: rgba(0, 0, 0, 0.08);
  --border-light: rgba(0, 0, 0, 0.04);
  --border-focus: #10b981;
  --glass-inner-shadow: none;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.06);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.08);
  --shadow-glow: 0 0 0 transparent;

  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-heading: 'Plus Jakarta Sans', var(--font-sans);
  --font-mono: 'JetBrains Mono', 'SF Mono', 'Fira Code', monospace;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --transition-fast: 0.15s ease;
  --transition-normal: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-smooth: 0.3s cubic-bezier(0.16, 1, 0.3, 1);

  --scrollbar-width: 8px;
  --scrollbar-track: #F3F4F6;
  --scrollbar-thumb: #D1D5DB;
  --scrollbar-thumb-hover: #10b981;
  --scrollbar-thumb-active: #059669;
}

/* Obsidian Dark — Swiss Editorial */
:root[data-theme="dark"],
html[data-theme="dark"],
[data-theme="dark"],
body[data-theme="dark"] {
  --bg-body: #090A0F;
  --bg-card: #11131A;
  --bg-card-hover: #181B25;
  --bg-card-glass: rgba(17, 19, 26, 0.92);
  --bg-section-alt: #0D0E14;
  --bg-nav: rgba(9, 10, 15, 0.88);
  --bg-nav-solid: #090A0F;
  --bg-surface: #11131A;
  --text-main: #F8FAFC;
  --text-muted: #9CA3AF;
  --text-light: #6B7280;
  --border-color: rgba(255, 255, 255, 0.08);
  --border-light: rgba(255, 255, 255, 0.04);
  --border-focus: #10b981;
  --glass-inner-shadow: none;

  --primary-green: #10b981;
  --primary-green-dark: #059669;
  --primary-green-light: rgba(16, 185, 129, 0.12);
  --primary-green-glow: rgba(16, 185, 129, 0.15);
  --primary-green-bright: #34d399;
  --primary-blue: #38bdf8;
  --primary-blue-dark: #0ea5e9;
  --primary-blue-light: rgba(14, 165, 233, 0.12);
  --primary-blue-glow: rgba(14, 165, 233, 0.15);
  --primary-blue-bright: #38bdf8;
  --navy-dark: #11131A;
  --navy-deep: #090A0F;

  --gradient-primary: #10b981;
  --gradient-hover: #059669;
  --gradient-subtle: rgba(17, 19, 26, 0.70);
  --gradient-card: rgba(17, 19, 26, 0.85);

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow-md: 0 4px 16px rgba(0, 0, 0, 0.5);
  --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.6);
  --shadow-glow: 0 0 0 transparent;

  --scrollbar-width: 8px;
  --scrollbar-track: #090A0F;
  --scrollbar-thumb: #1E2130;
  --scrollbar-thumb-hover: #10b981;
  --scrollbar-thumb-active: #059669;
}

/* -------------------------------------------------------------
   2. Reset, Base Typography, Scrollbars
   ------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track);
}

::-webkit-scrollbar {
  width: var(--scrollbar-width, 8px);
  height: var(--scrollbar-width, 8px);
}

::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
}

::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 9999px;
  border: 2px solid var(--scrollbar-track);
  background-clip: content-box;
}

::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

::-webkit-scrollbar-thumb:active {
  background-color: var(--scrollbar-thumb-active);
}

::-webkit-scrollbar-corner {
  background: var(--scrollbar-track);
}

.mobile-drawer,
.table-responsive,
.counseling-modal-body,
.nav-dropdown,
.admin-sidebar,
pre,
code {
  scrollbar-width: thin;
  scrollbar-color: var(--scrollbar-thumb) transparent;
}

.mobile-drawer::-webkit-scrollbar,
.table-responsive::-webkit-scrollbar,
.counseling-modal-body::-webkit-scrollbar,
.nav-dropdown::-webkit-scrollbar,
.admin-sidebar::-webkit-scrollbar {
  width: 5px;
  height: 5px;
}

.mobile-drawer::-webkit-scrollbar-track,
.table-responsive::-webkit-scrollbar-track,
.counseling-modal-body::-webkit-scrollbar-track,
.nav-dropdown::-webkit-scrollbar-track,
.admin-sidebar::-webkit-scrollbar-track {
  background: transparent;
}

.mobile-drawer::-webkit-scrollbar-thumb,
.table-responsive::-webkit-scrollbar-thumb,
.counseling-modal-body::-webkit-scrollbar-thumb,
.nav-dropdown::-webkit-scrollbar-thumb,
.admin-sidebar::-webkit-scrollbar-thumb {
  background-color: var(--scrollbar-thumb);
  border-radius: 9999px;
}

.mobile-drawer::-webkit-scrollbar-thumb:hover,
.table-responsive::-webkit-scrollbar-thumb:hover,
.counseling-modal-body::-webkit-scrollbar-thumb:hover,
.nav-dropdown::-webkit-scrollbar-thumb:hover,
.admin-sidebar::-webkit-scrollbar-thumb:hover {
  background-color: var(--scrollbar-thumb-hover);
}

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

body {
  font-family: var(--font-sans);
  background-color: var(--bg-body);
  color: var(--text-main);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  transition: background-color var(--transition-normal), color var(--transition-normal);
  position: relative;
}

body.drawer-open {
  overflow: hidden;
  touch-action: none;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.025em;
}

a {
  color: inherit;
  text-decoration: none;
  transition: color var(--transition-fast), opacity var(--transition-fast);
}

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

ul, ol {
  list-style: none;
}

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

:focus-visible {
  outline: 2px solid var(--primary-green);
  outline-offset: 2px;
}

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

/* Container — Full-bleed with consistent padding */
.container {
  width: 100%;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (min-width: 640px) {
  .container {
    max-width: 100%;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
  }
}
@media (min-width: 768px) {
  .container {
    max-width: 100%;
    padding-left: 2rem;
    padding-right: 2rem;
  }
}
@media (min-width: 1024px) {
  .container {
    max-width: 100%;
    padding-left: 2.5rem;
    padding-right: 2.5rem;
  }
}
@media (min-width: 1280px) {
  .container {
    max-width: 100%;
    padding-left: 3rem;
    padding-right: 3rem;
  }
}
@media (min-width: 1440px) {
  .container {
    max-width: 100%;
    padding-left: 3.5rem;
    padding-right: 3.5rem;
  }
}

/* Sections */
.section-alt {
  background-color: var(--bg-section-alt);
  border-top: 1px solid var(--border-color);
  border-bottom: 1px solid var(--border-color);
}

.section-py {
  padding: 3.5rem 0;
}

@media (min-width: 1024px) {
  .section-py {
    padding: 5rem 0;
  }
}

/* -------------------------------------------------------------
   3. Ambient Background — Minimal, Non-Distracting
   ------------------------------------------------------------- */
.ambient-bg-canvas {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
  contain: strict;
}

.ambient-glow-orb {
  position: absolute;
  border-radius: 50%;
  filter: blur(140px);
  opacity: 0.06;
  pointer-events: none;
  will-change: transform;
}

[data-theme="dark"] .ambient-glow-orb {
  opacity: 0.045;
  filter: blur(160px);
}

.ambient-glow-orb.orb-emerald {
  width: min(600px, 55vw);
  height: min(600px, 55vw);
  background: radial-gradient(circle, #10b981 0%, transparent 70%);
  top: -15%;
  left: 5%;
  animation: orbDrift1 30s ease-in-out infinite alternate;
}

.ambient-glow-orb.orb-sky {
  width: min(650px, 60vw);
  height: min(650px, 60vw);
  background: radial-gradient(circle, #0ea5e9 0%, transparent 70%);
  top: 40%;
  right: -10%;
  animation: orbDrift2 36s ease-in-out infinite alternate;
}

.ambient-glow-orb.orb-teal {
  width: min(500px, 45vw);
  height: min(500px, 45vw);
  background: radial-gradient(circle, #06b6d4 0%, transparent 70%);
  bottom: 5%;
  left: 20%;
  animation: orbDrift3 32s ease-in-out infinite alternate;
}

@keyframes orbDrift1 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-20px, 60px) scale(0.95); }
}

@keyframes orbDrift2 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(30px, -50px) scale(0.93); }
}

@keyframes orbDrift3 {
  0% { transform: translate(0, 0) scale(1); }
  100% { transform: translate(-40px, -20px) scale(0.96); }
}

/* -------------------------------------------------------------
   3.1 Sophisticated Digital Flowing Lines — Atmospheric Vector Motion
   Continuous, slow-flowing undulating kinetic filaments across background
   ------------------------------------------------------------- */
.digital-flow-lines-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
  user-select: none;
  contain: strict;
  mask-image: radial-gradient(ellipse 94% 88% at 50% 50%, black 45%, transparent 95%);
  -webkit-mask-image: radial-gradient(ellipse 94% 88% at 50% 50%, black 45%, transparent 95%);
  opacity: 0.88;
  transition: opacity 0.4s ease;
}

[data-theme="dark"] .digital-flow-lines-bg {
  opacity: 0.85;
}

[data-theme="light"] .digital-flow-lines-bg {
  opacity: 0.52;
}

/* Three Altitude Tiers */
.flow-tier {
  position: absolute;
  left: 0;
  width: 100%;
  pointer-events: none;
}

.flow-tier.tier-upper {
  top: 13%;
  height: 160px;
}

.flow-tier.tier-mid {
  top: 45%;
  height: 200px;
}

.flow-tier.tier-lower {
  bottom: 8%;
  height: 160px;
}

/* Secondary Harmonic Swell (Gentle 2D Vertical Undulation) */
.flow-swell {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  will-change: transform;
}

.swell-1 {
  animation: flowSwell1 17s ease-in-out infinite;
}

.swell-2 {
  animation: flowSwell2 21s ease-in-out infinite;
}

.swell-3 {
  animation: flowSwell3 15s ease-in-out infinite;
}

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

@keyframes flowSwell2 {
  0%, 100% { transform: translateY(0px); }
  50% { transform: translateY(12px); }
}

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

/* Continuous Translation Tracks (Seamless 50% Infinite Loop) */
.flow-track {
  position: absolute;
  top: 0;
  left: 0;
  pointer-events: none;
  will-change: transform;
}

.track-1 {
  width: 2800px;
  animation: flowTranslateLeft1 44s linear infinite;
}

.track-2 {
  width: 3200px;
  animation: flowTranslateRight2 52s linear infinite;
}

.track-3 {
  width: 2400px;
  animation: flowTranslateLeft3 38s linear infinite;
}

@keyframes flowTranslateLeft1 {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-1400px, 0, 0); }
}

@keyframes flowTranslateRight2 {
  0% { transform: translate3d(-1600px, 0, 0); }
  100% { transform: translate3d(0, 0, 0); }
}

@keyframes flowTranslateLeft3 {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-1200px, 0, 0); }
}

/* SVG Rendering & Filters */
.flow-svg {
  display: block;
  overflow: visible;
  filter: drop-shadow(0 0 6px rgba(16, 185, 129, 0.22)) drop-shadow(0 0 14px rgba(56, 189, 248, 0.10));
}

[data-theme="light"] .flow-svg {
  filter: drop-shadow(0 0 4px rgba(16, 185, 129, 0.12));
}

.flow-svg path {
  vector-effect: non-scaling-stroke;
}

/* Traveling Luminescent Data Pulses along Filaments */
.flow-pulse {
  stroke-dasharray: 60 700;
  opacity: 0.9;
  filter: drop-shadow(0 0 6px #38bdf8);
}

.flow-pulse.pulse-1 {
  animation: pulseFlow1 16s linear infinite;
}

.flow-pulse.pulse-2 {
  animation: pulseFlow2 19s linear infinite;
  filter: drop-shadow(0 0 6px #818cf8);
}

.flow-pulse.pulse-3 {
  animation: pulseFlow3 14s linear infinite;
  filter: drop-shadow(0 0 6px #34d399);
}

@keyframes pulseFlow1 {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1400; }
}

@keyframes pulseFlow2 {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: 1600; }
}

@keyframes pulseFlow3 {
  0% { stroke-dashoffset: 0; }
  100% { stroke-dashoffset: -1200; }
}

/* Vertex Signal Beacon Pulses */
.flow-beacon {
  transform-box: fill-box;
  transform-origin: center;
  animation: beaconGlow 5.5s ease-in-out infinite;
}

.beacon-1 { animation-delay: 0s; }
.beacon-2 { animation-delay: 1.8s; }
.beacon-3 { animation-delay: 3.2s; }

@keyframes beaconGlow {
  0%, 100% {
    transform: scale(0.9);
    opacity: 0.45;
  }
  50% {
    transform: scale(1.4);
    opacity: 0.95;
    filter: drop-shadow(0 0 5px currentColor);
  }
}

/* Responsive Viewports */
@media (max-width: 768px) {
  .flow-tier.tier-upper {
    top: 9%;
    height: 120px;
  }
  .flow-tier.tier-mid {
    top: 42%;
    height: 150px;
  }
  .flow-tier.tier-lower {
    bottom: 5%;
    height: 120px;
  }
  .digital-flow-lines-bg {
    opacity: 0.65;
  }
  [data-theme="light"] .digital-flow-lines-bg {
    opacity: 0.40;
  }
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .flow-track,
  .flow-swell,
  .flow-pulse,
  .flow-beacon {
    animation: none !important;
    transform: none !important;
  }
}

.floating-icon {
  position: absolute;
  color: var(--text-light);
  opacity: 0.02;
}

[data-theme="dark"] .floating-icon {
  opacity: 0.03;
}

.icon-book-1    { top: 14%; left: 5%; animation: floatBook1 24s ease-in-out infinite; }
.icon-gradcap-1 { top: 30%; right: 6%; animation: floatCap 28s ease-in-out infinite -6s; }
.icon-code-1    { top: 54%; left: 8%; animation: floatCode 22s ease-in-out infinite -11s; }
.icon-book-2    { top: 70%; right: 10%; animation: floatBook2 26s ease-in-out infinite -8s; }
.icon-atom-1    { top: 84%; left: 15%; animation: floatAtom 30s ease-in-out infinite -14s; }
.icon-laptop-1  { top: 44%; right: 18%; animation: floatLaptop 23s ease-in-out infinite -4s; }

@keyframes floatBook1 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@keyframes floatCap { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(12px); } }
@keyframes floatCode { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes floatBook2 { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(10px); } }
@keyframes floatAtom { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes floatLaptop { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(8px); } }

.site-header, main, footer, .modal-overlay, .mobile-drawer, .mobile-drawer-overlay {
  position: relative;
  z-index: 1;
}

/* -------------------------------------------------------------
   4. Buttons & Badges — High-Contrast, Monochrome Primary
   ------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.6rem 1.35rem;
  font-size: 0.875rem;
  font-weight: 600;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--transition-normal), background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
  text-align: center;
  white-space: nowrap;
  user-select: none;
  line-height: 1.4;
  letter-spacing: -0.01em;
  position: relative;
  will-change: transform;
}

/* Tactile Click Feel */
.btn:active {
  transform: scale(0.97) translateY(0) !important;
}

/* Smooth Icon Micro-Interactions */
.btn i, .btn .bi {
  display: inline-block;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn:hover i.bi-arrow-right,
.btn:hover i.bi-arrow-right-short {
  transform: translateX(4px);
}

.btn:hover i.bi-arrow-up-right,
.btn:hover i.bi-arrow-up-right-short {
  transform: translate(3px, -3px);
}

.btn:hover i.bi-rocket-takeoff {
  transform: translate(2px, -2px) scale(1.08);
}

.btn:hover i.bi-headset {
  transform: rotate(-12deg) scale(1.1);
}

.btn:hover i.bi-chat-dots,
.btn:hover i.bi-calendar-check,
.btn:hover i.bi-calendar-event {
  transform: translateY(-2px);
}

/* Primary: White pill with dark text, subtle light sweep on hover */
.btn-primary {
  background-color: #FFFFFF;
  color: #090A0F !important;
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
}

.btn-primary::after {
  content: '';
  position: absolute;
  top: -50%;
  left: -70%;
  width: 30%;
  height: 200%;
  background: linear-gradient(
    60deg,
    transparent,
    rgba(255, 255, 255, 0.45),
    transparent
  );
  transform: rotate(25deg);
  pointer-events: none;
  opacity: 0;
}

.btn-primary:hover {
  background-color: #F0F0F0;
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(255, 255, 255, 0.12);
}

.btn-primary:hover::after {
  left: 150%;
  opacity: 1;
  transition: left 0.7s ease, opacity 0.25s ease;
}

/* Light theme: green primary instead of white */
:root:not([data-theme="dark"]) .btn-primary,
html:not([data-theme="dark"]) .btn-primary {
  background-color: var(--primary-green);
  color: #FFFFFF !important;
  border-color: var(--primary-green);
}

:root:not([data-theme="dark"]) .btn-primary:hover,
html:not([data-theme="dark"]) .btn-primary:hover {
  background-color: var(--primary-green-dark);
  border-color: var(--primary-green-dark);
  box-shadow: 0 4px 16px rgba(16, 185, 129, 0.25);
}

/* Secondary: Outline/ghost */
.btn-secondary {
  background-color: transparent;
  color: var(--text-main);
  border: 1px solid var(--border-color);
}

.btn-secondary:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
  background-color: var(--bg-card-hover);
  transform: translateY(-1px);
}

.btn-sm {
  padding: 0.38rem 0.9rem;
  font-size: 0.8rem;
  border-radius: 6px;
}

.btn-lg {
  padding: 0.72rem 1.75rem;
  font-size: 0.95rem;
  border-radius: var(--radius-full);
}

.btn-block {
  width: 100%;
}

/* Badges — Understated, editorial */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.2rem 0.6rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  line-height: 1.3;
  transition: transform var(--transition-fast), background-color var(--transition-fast);
}

.badge-green {
  background-color: rgba(16, 185, 129, 0.1);
  color: var(--primary-green);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.badge-blue {
  background-color: rgba(14, 165, 233, 0.1);
  color: var(--primary-blue);
  border: 1px solid rgba(14, 165, 233, 0.2);
}

.badge-featured {
  background: var(--primary-green);
  color: #FFFFFF;
}

/* Card Interactive Cursor Spotlight Effect (Swiss Editorial Craft) */
.course-card, .domain-card, .program-card, .why-choose-col, .testimonial-card {
  position: relative;
  overflow: hidden;
}

.course-card::before, .domain-card::before, .program-card::before, .why-choose-col::before, .testimonial-card::before {
  content: '';
  position: absolute;
  inset: 0;
  opacity: 0;
  pointer-events: none;
  background: radial-gradient(
    520px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(255, 255, 255, 0.045),
    transparent 42%
  );
  transition: opacity 0.35s ease;
  z-index: 1;
}

:root:not([data-theme="dark"]) .course-card::before,
:root:not([data-theme="dark"]) .domain-card::before,
:root:not([data-theme="dark"]) .program-card::before,
:root:not([data-theme="dark"]) .why-choose-col::before,
:root:not([data-theme="dark"]) .testimonial-card::before {
  background: radial-gradient(
    520px circle at var(--mouse-x, 50%) var(--mouse-y, 50%),
    rgba(16, 185, 129, 0.06),
    transparent 42%
  );
}

.course-card:hover::before,
.domain-card:hover::before,
.program-card:hover::before,
.why-choose-col:hover::before,
.testimonial-card:hover::before {
  opacity: 1;
}

/* Text Reveal */
.text-reveal {
  display: inline-block;
  animation: textRevealFadeUp 0.7s cubic-bezier(0.16, 1, 0.3, 1) both;
}

@keyframes textRevealFadeUp {
  0% { opacity: 0; transform: translateY(12px); }
  100% { opacity: 1; transform: translateY(0); }
}

/* Scroll Reveal */
.reveal-on-scroll {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s cubic-bezier(0.16, 1, 0.3, 1), transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

.reveal-on-scroll.is-revealed {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered entry */
.courses-grid > .course-card:nth-child(1) { transition-delay: 0.04s; }
.courses-grid > .course-card:nth-child(2) { transition-delay: 0.10s; }
.courses-grid > .course-card:nth-child(3) { transition-delay: 0.16s; }
.courses-grid > .course-card:nth-child(4) { transition-delay: 0.22s; }
.courses-grid > .course-card:nth-child(5) { transition-delay: 0.28s; }
.courses-grid > .course-card:nth-child(6) { transition-delay: 0.34s; }

.domains-grid > .domain-card:nth-child(1) { transition-delay: 0.04s; }
.domains-grid > .domain-card:nth-child(2) { transition-delay: 0.09s; }
.domains-grid > .domain-card:nth-child(3) { transition-delay: 0.14s; }
.domains-grid > .domain-card:nth-child(4) { transition-delay: 0.19s; }

.programs-grid > .program-card:nth-child(1) { transition-delay: 0.06s; }
.programs-grid > .program-card:nth-child(2) { transition-delay: 0.14s; }

.faq-list > .faq-item:nth-child(1) { transition-delay: 0.04s; }
.faq-list > .faq-item:nth-child(2) { transition-delay: 0.08s; }
.faq-list > .faq-item:nth-child(3) { transition-delay: 0.12s; }
.faq-list > .faq-item:nth-child(4) { transition-delay: 0.16s; }
.faq-list > .faq-item:nth-child(5) { transition-delay: 0.20s; }

/* -------------------------------------------------------------
   5. Navigation — Minimal Floating Header
   ------------------------------------------------------------- */
.site-header {
  position: sticky;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 1000;
  background-color: var(--bg-nav);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-color);
  transition: background-color var(--transition-normal), border-color var(--transition-normal), box-shadow var(--transition-normal);
}

.site-header.scrolled {
  background-color: var(--bg-nav-solid);
  box-shadow: 0 4px 20px -2px rgba(0, 0, 0, 0.15);
  border-bottom: 1px solid var(--border-color);
}

[data-theme="dark"] .site-header.scrolled {
  box-shadow: 0 8px 32px -4px rgba(0, 0, 0, 0.6);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

/* Scroll Progress Bar at the top of site-header */
.scroll-progress-bar {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 2px;
  width: 0%;
  background: var(--primary-green);
  z-index: 1001;
  pointer-events: none;
  transition: width 0.08s linear;
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.5);
}

.navbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  background: transparent;
  border-bottom: none;
  padding: 0;
  transition: height var(--transition-normal);
}

.site-header.scrolled .navbar {
  height: 64px;
}

/* Brand */
.brand-link {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
  flex-shrink: 0;
  transition: transform var(--transition-fast);
}

.brand-link:hover {
  transform: translateY(-1px);
}

.brand-logo-wrap {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 42px;
  padding: 2px 6px;
  border-radius: var(--radius-sm);
  background: #ffffff;
  box-shadow: 0 1px 2px rgba(0,0,0,0.06);
  transition: transform var(--transition-fast);
}

[data-theme="dark"] .brand-logo-wrap {
  background: rgba(255, 255, 255, 0.95);
}

.brand-logo-img {
  height: 34px;
  width: auto;
  max-width: 130px;
  object-fit: contain;
  display: block;
}

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

.brand-name {
  font-family: var(--font-heading);
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--text-main);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

[data-theme="dark"] .brand-name {
  color: #F8FAFC;
}

.brand-slogan-nav {
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 500;
  color: var(--primary-green);
  letter-spacing: 0.04em;
}

/* Desktop Nav */
.desktop-nav {
  display: none;
}

@media (min-width: 1024px) {
  .desktop-nav {
    display: flex;
    align-items: center;
    gap: 2rem;
  }
}

.nav-link {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.4rem 0;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 0;
  transition: color var(--transition-fast);
  cursor: pointer;
  background: transparent;
  border: none;
}

.nav-link:hover {
  color: var(--text-main);
}

.nav-link.active {
  color: var(--text-main);
  font-weight: 600;
}

.nav-link.active::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  right: 0;
  height: 1.5px;
  background: var(--primary-green);
  border-radius: 1px;
}

/* Dropdown */
.nav-dropdown {
  position: relative;
}

.dropdown-menu {
  position: absolute;
  top: 100%;
  left: -16px;
  min-width: 240px;
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  opacity: 0;
  visibility: hidden;
  transform: translateY(6px);
  transition: opacity 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.2s ease;
  z-index: 1050;
  backdrop-filter: blur(20px);
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu,
.nav-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(2px);
}

.dropdown-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.75rem;
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  transition: all var(--transition-fast);
}

.dropdown-item:hover,
.dropdown-item:focus {
  background-color: var(--bg-card-hover);
  color: var(--text-main);
}

.dropdown-header-link {
  font-weight: 600;
  color: var(--text-main);
  border-bottom: 1px solid var(--border-color);
  margin-bottom: 0.25rem;
  padding-bottom: 0.5rem;
  border-radius: 0;
}

.dropdown-divider {
  height: 1px;
  background-color: var(--border-color);
  margin: 0.25rem 0;
}

/* Nav Actions */
.navbar-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.theme-toggle-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--radius-full);
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  transition: border-color var(--transition-normal), color var(--transition-normal), transform var(--transition-normal);
}

.theme-toggle-btn i {
  display: inline-block;
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
}

.theme-toggle-btn.rotating i {
  transform: rotate(360deg) scale(1.15);
}

.theme-toggle-btn:hover {
  border-color: var(--text-muted);
  color: var(--text-main);
  transform: scale(1.05);
}

.theme-toggle-btn:active {
  transform: scale(0.95);
}

.nav-cta-btn {
  display: none;
}

@media (min-width: 1024px) {
  .nav-cta-btn {
    display: inline-flex;
    border-radius: var(--radius-full);
  }
}

.hamburger-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  border-radius: var(--radius-sm);
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-main);
  cursor: pointer;
  transition: all var(--transition-normal);
}

@media (min-width: 1024px) {
  .hamburger-btn {
    display: none;
  }
}

.hamburger-btn:hover {
  border-color: var(--text-muted);
}

/* -------------------------------------------------------------
   6. Mobile Drawer
   ------------------------------------------------------------- */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 1998;
  opacity: 0;
  visibility: hidden;
  transition: opacity var(--transition-smooth), visibility var(--transition-smooth);
}

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

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: min(340px, 86vw);
  height: 100%;
  background-color: var(--bg-card);
  z-index: 1999;
  display: flex;
  flex-direction: column;
  transform: translateX(100%);
  transition: transform var(--transition-smooth);
  border-left: 1px solid var(--border-color);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

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

.mobile-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  background-color: var(--bg-card);
  position: sticky;
  top: 0;
  z-index: 10;
}

.drawer-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: var(--radius-full);
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
  background-color: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.mobile-drawer-body {
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex: 1;
}

.drawer-item {
  display: flex;
  align-items: center;
  padding: 0.65rem 0.75rem;
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: var(--radius-sm);
  min-height: 44px;
  transition: color var(--transition-fast);
}

.drawer-item:hover,
.drawer-item:active {
  color: var(--text-main);
}

.drawer-accordion {
  border: 1px solid var(--border-color);
  border-radius: var(--radius-sm);
  overflow: hidden;
  margin-bottom: 0.15rem;
}

.drawer-accordion-btn {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.75rem;
  background-color: transparent;
  border: none;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-main);
  cursor: pointer;
  min-height: 44px;
}

.drawer-accordion-icon {
  transition: transform var(--transition-normal);
  color: var(--text-light);
  font-size: 0.75rem;
}

.drawer-accordion.open .drawer-accordion-icon {
  transform: rotate(180deg);
  color: var(--primary-green);
}

.drawer-accordion-content {
  display: none;
  padding: 0.15rem 0.5rem 0.5rem;
  border-top: 1px solid var(--border-color);
}

.drawer-accordion.open .drawer-accordion-content {
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
}

.drawer-subitem {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.65rem;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--text-muted);
  border-radius: 6px;
}

.drawer-subitem:hover,
.drawer-subitem:active {
  color: var(--text-main);
  background-color: var(--bg-card-hover);
}

.mobile-drawer-footer {
  padding: 1rem;
  border-top: 1px solid var(--border-color);
  background-color: var(--bg-card);
}

.drawer-slogan {
  text-align: center;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 0.6rem;
  letter-spacing: 0.02em;
}

/* -------------------------------------------------------------
   7. Hero Section — Editorial Asymmetric Layout
   ------------------------------------------------------------- */
.hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-h, 72px));
  min-height: calc(100dvh - var(--header-h, 72px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 2.5rem 0;
  overflow: hidden;
  max-width: 100vw;
  width: 100%;
  box-sizing: border-box;
}

/* Atmospheric Hero Veil: Softens & diffuses background flowing lines in the home hero section */
.hero-backdrop-veil {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  background: radial-gradient(
    ellipse 88% 78% at 50% 46%,
    rgba(9, 10, 15, 0.74) 0%,
    rgba(9, 10, 15, 0.86) 58%,
    rgba(9, 10, 15, 0.94) 100%
  );
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
  -webkit-mask-image: linear-gradient(to bottom, black 82%, transparent 100%);
}

[data-theme="light"] .hero-backdrop-veil {
  background: radial-gradient(
    ellipse 88% 78% at 50% 46%,
    rgba(250, 251, 252, 0.75) 0%,
    rgba(250, 251, 252, 0.88) 58%,
    rgba(250, 251, 252, 0.96) 100%
  );
}

.hero-section > .container {
  width: 100%;
  position: relative;
  z-index: 2;
  margin: auto 0;
}

@media (min-width: 1024px) {
  .hero-section {
    padding: 1.5rem 0 2rem;
  }
}

/* Legacy classes kept for compatibility */
.hero-animated-bg { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.hero-bg-grid-matrix {
  position: absolute;
  inset: -40px;
  background-image:
    linear-gradient(to right, rgba(16, 185, 129, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.03) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at center, rgba(0,0,0,0.6) 0%, transparent 80%);
  animation: gridMatrixDrift 32s linear infinite;
  opacity: 0.6;
}
[data-theme="dark"] .hero-bg-grid-matrix {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.03) 1px, transparent 1px);
  opacity: 0.5;
}
@keyframes gridMatrixDrift {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(48px, 48px, 0); }
}

/* -------------------------------------------------------------
   7.0 Aesthetic Semi-Transparent Kinetic Typography Background ("NEXIFLY")
   ------------------------------------------------------------- */
.hero-watermark-text-bg {
  position: absolute;
  top: 48%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 100%;
  max-width: 100vw;
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: none;
  user-select: none;
  z-index: 1;
  overflow: hidden;
  mask-image: radial-gradient(ellipse 80% 65% at 50% 50%, black 35%, transparent 78%);
  -webkit-mask-image: radial-gradient(ellipse 80% 65% at 50% 50%, black 35%, transparent 78%);
}

.hero-watermark-text-wrap {
  display: inline-block;
  pointer-events: none;
  will-change: transform;
  animation: watermarkFloatDrift 9s ease-in-out infinite alternate;
}

.hero-watermark-text {
  display: inline-block;
  font-family: var(--font-heading, 'Plus Jakarta Sans', sans-serif);
  font-size: clamp(5.2rem, 18.5vw, 17.5rem);
  font-weight: 900;
  line-height: 0.85;
  letter-spacing: clamp(0.06em, 1.8vw, 0.16em);
  text-transform: uppercase;
  white-space: nowrap;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.03) 0%,
    rgba(16, 185, 129, 0.13) 28%,
    rgba(56, 189, 248, 0.18) 50%,
    rgba(16, 185, 129, 0.11) 72%,
    rgba(255, 255, 255, 0.03) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.2px rgba(255, 255, 255, 0.08);
  animation: watermarkTextShimmer 11s linear infinite;
  will-change: background-position;
  filter: drop-shadow(0 0 40px rgba(16, 185, 129, 0.08));
}

[data-theme="dark"] .hero-watermark-text {
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.04) 0%,
    rgba(16, 185, 129, 0.16) 30%,
    rgba(56, 189, 248, 0.20) 50%,
    rgba(16, 185, 129, 0.12) 70%,
    rgba(255, 255, 255, 0.04) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.4px rgba(255, 255, 255, 0.09);
  filter: drop-shadow(0 0 45px rgba(16, 185, 129, 0.12));
}

[data-theme="light"] .hero-watermark-text {
  background: linear-gradient(
    115deg,
    rgba(0, 0, 0, 0.02) 0%,
    rgba(16, 185, 129, 0.09) 30%,
    rgba(14, 165, 233, 0.12) 50%,
    rgba(16, 185, 129, 0.07) 70%,
    rgba(0, 0, 0, 0.02) 100%
  );
  background-size: 250% 100%;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  -webkit-text-stroke: 1.2px rgba(0, 0, 0, 0.06);
  filter: drop-shadow(0 0 30px rgba(16, 185, 129, 0.05));
}

@keyframes watermarkTextShimmer {
  0% { background-position: 0% 50%; }
  100% { background-position: 250% 50%; }
}

@keyframes watermarkFloatDrift {
  0% {
    transform: translateY(0px) scale(1);
  }
  50% {
    transform: translateY(-10px) scale(1.012);
  }
  100% {
    transform: translateY(0px) scale(1);
  }
}

@media (max-width: 768px) {
  .hero-watermark-text-bg {
    top: 26%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    padding: 0 0.75rem;
    box-sizing: border-box;
    mask-image: radial-gradient(ellipse 95% 80% at 50% 50%, black 50%, transparent 88%);
    -webkit-mask-image: radial-gradient(ellipse 95% 80% at 50% 50%, black 50%, transparent 88%);
  }

  .hero-watermark-text {
    font-size: clamp(2.4rem, 13.5vw, 4.4rem);
    letter-spacing: clamp(0.04em, 1.2vw, 0.09em);
    -webkit-text-stroke: 1px rgba(255, 255, 255, 0.08);
    opacity: 0.55;
    line-height: 1;
  }
}

@media (max-width: 480px) {
  .hero-watermark-text-bg {
    top: 24%;
  }

  .hero-watermark-text {
    font-size: clamp(2.05rem, 12vw, 3.2rem);
    letter-spacing: 0.05em;
    -webkit-text-stroke: 0.85px rgba(255, 255, 255, 0.07);
    opacity: 0.48;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-watermark-text,
  .hero-watermark-text-wrap {
    animation: none !important;
    transform: none !important;
  }
}

/* Ambient Moving Glow Orbs for Hero Sections Across All Pages */
.hero-section::before,
.page-hero-section::before {
  content: '';
  position: absolute;
  top: -100px;
  left: -80px;
  width: 520px;
  height: 520px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, rgba(16, 185, 129, 0.04) 55%, transparent 75%);
  filter: blur(60px);
  pointer-events: none;
  z-index: 0;
  animation: heroAmbientDrift1 16s ease-in-out infinite alternate;
  will-change: transform;
}

.hero-section::after,
.page-hero-section::after {
  content: '';
  position: absolute;
  bottom: -100px;
  right: -80px;
  width: 480px;
  height: 480px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.16) 0%, rgba(99, 102, 241, 0.05) 55%, transparent 75%);
  filter: blur(65px);
  pointer-events: none;
  z-index: 0;
  animation: heroAmbientDrift2 20s ease-in-out infinite alternate;
  will-change: transform;
}

[data-theme="dark"] .hero-section::before,
[data-theme="dark"] .page-hero-section::before {
  background: radial-gradient(circle, rgba(16, 185, 129, 0.22) 0%, rgba(16, 185, 129, 0.05) 55%, transparent 75%);
}

[data-theme="dark"] .hero-section::after,
[data-theme="dark"] .page-hero-section::after {
  background: radial-gradient(circle, rgba(14, 165, 233, 0.20) 0%, rgba(99, 102, 241, 0.06) 55%, transparent 75%);
}

@keyframes heroAmbientDrift1 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(85px, 65px, 0) scale(1.18); }
  100% { transform: translate3d(40px, 130px, 0) scale(0.92); }
}

@keyframes heroAmbientDrift2 {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-80px, -55px, 0) scale(1.16); }
  100% { transform: translate3d(-35px, -110px, 0) scale(0.94); }
}

@keyframes heroCardFloatMotion {
  0% { transform: translateY(0px) rotate(0deg); }
  50% { transform: translateY(-8px) rotate(0.35deg); }
  100% { transform: translateY(0px) rotate(0deg); }
}

.hero-glow-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(60px); will-change: transform, opacity; }
.hero-bg-particle { display: none; }
.hero-glow-bg, .hero-glow-secondary { display: none; }
.hero-anim-fade-up { opacity: 1; transform: none; animation: none; }
.dynamic-typing-container { display: inline-block; }
.typing-caret { display: none !important; }

.stat-emerald { color: var(--primary-green); }
.stat-sky { color: var(--primary-blue); }
.stat-amber { color: #f59e0b; }

.hero-grid {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 2rem;
}

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

.hero-content {
  text-align: left;
}

/* Announcement pill */
.hero-badge-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem 0.3rem 0.3rem;
  background-color: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  position: relative;
  overflow: hidden;
  transition: border-color var(--transition-fast), background-color var(--transition-fast);
}

.hero-badge-wrap:hover {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.02);
}

.hero-badge-wrap::after {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 60%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  transform: skewX(-20deg);
  animation: badgeShimmer 6s infinite ease-in-out;
  pointer-events: none;
}

@keyframes badgeShimmer {
  0%, 75% { left: -100%; }
  100% { left: 200%; }
}

.hero-badge-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background-color: var(--primary-green);
  animation: pulse 2.5s infinite;
}

@keyframes pulse {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.5); }
  70% { transform: scale(1); box-shadow: 0 0 0 5px rgba(16, 185, 129, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

.hero-slogan-pill {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.02em;
}

/* Massive editorial H1 */
.hero-title {
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 700;
  letter-spacing: -0.035em;
  margin-bottom: 0.75rem;
  line-height: 1.08;
}

.hero-title-highlight {
  color: var(--primary-green);
}

.hero-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 1.25rem;
  max-width: 46ch;
  line-height: 1.55;
  font-weight: 400;
}

.hero-ctas {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 481px) {
  .hero-ctas {
    flex-direction: row;
    align-items: center;
  }
}

/* Stats — Tabular, editorial */
.hero-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1rem;
  padding-top: 1.15rem;
  border-top: 1px solid var(--border-color);
}

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

.stat-item {
  display: flex;
  flex-direction: column;
  transition: transform var(--transition-normal);
  cursor: default;
}

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

.stat-num {
  font-family: var(--font-heading);
  font-size: 1.75rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
  line-height: 1.1;
  letter-spacing: -0.02em;
  display: inline-block;
}

.stat-label {
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-light);
  margin-top: 0.3rem;
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.hero-visual {
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
  perspective: 1200px;
}

/* -------------------------------------------------------------
   7.1 Hero Showcase Card
   ------------------------------------------------------------- */
.hero-floating-stage {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
}

.hero-showcase-card {
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  overflow: hidden;
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  z-index: 2;
  transform-style: preserve-3d;
  will-change: transform;
  animation: heroCardFloatMotion 6.5s ease-in-out infinite alternate;
}

[data-theme="dark"] .hero-showcase-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 16px 40px -8px rgba(0, 0, 0, 0.5);
}

.hero-showcase-card:hover {
  animation-play-state: paused;
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.6);
  border-color: rgba(255, 255, 255, 0.18);
}

.showcase-header {
  height: 40px;
  padding: 0 1rem;
  background: var(--bg-card-hover);
  border-bottom: 1px solid var(--border-color);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
}

.console-dots { display: flex; gap: 6px; align-items: center; }
.console-dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #ef4444; }
.dot-amber { background: #f59e0b; }
.dot-green { background: #22c55e; }

.showcase-header-title {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--text-light);
  display: flex;
  align-items: center;
  gap: 0.4rem;
}

.showcase-live-badge {
  display: flex;
  align-items: center;
  gap: 4px;
  font-family: var(--font-mono);
  font-size: 0.62rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--primary-green);
  background: rgba(16, 185, 129, 0.08);
  padding: 2px 8px;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.status-pulse-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-green);
  animation: pulse 2s infinite;
}

.showcase-media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #0d0e14;
}

.showcase-main-photo {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.3s ease, transform 0.5s ease;
}

.hero-showcase-card:hover .showcase-main-photo {
  transform: scale(1.02);
}

.showcase-photo-gradient {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 50%, rgba(9, 10, 15, 0.85) 100%);
  display: flex;
  align-items: flex-end;
  padding: 1rem 1.15rem;
  pointer-events: none;
}

.showcase-caption-content {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.caption-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 600;
  color: #34d399;
  background: rgba(16, 185, 129, 0.15);
  padding: 0.15rem 0.55rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(52, 211, 153, 0.25);
  width: fit-content;
}

.caption-lead {
  font-size: 0.82rem;
  font-weight: 600;
  color: #ffffff;
  margin: 0;
}

/* Switcher */
.showcase-switcher-bar {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.6rem 0.85rem;
  background: var(--bg-card);
  border-top: 1px solid var(--border-color);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.showcase-thumb-btn {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.2rem 0.55rem 0.2rem 0.2rem;
  background: transparent;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-full);
  cursor: pointer;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  font-weight: 500;
  color: var(--text-light);
  transition: all var(--transition-fast);
  white-space: nowrap;
  flex-shrink: 0;
}

.showcase-thumb-btn:hover {
  color: var(--text-muted);
  border-color: var(--text-light);
}

.showcase-thumb-btn.active {
  background: rgba(16, 185, 129, 0.08);
  border-color: var(--primary-green);
  color: var(--primary-green);
}

.thumb-mini-img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}

@keyframes progressPulse {
  0% { filter: brightness(1); }
  100% { filter: brightness(1.2); }
}

/* -------------------------------------------------------------
   7.2 Hero Lightweight Floating Animations & Educational Elements
   ------------------------------------------------------------- */
.hero-floating-bg {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
  z-index: 1;
}

.hero-float-bg-item {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.hero-float-inner {
  will-change: transform;
  display: block;
}

/* Background Element 3: 3D Isometric Geometric Prism */
.float-geo-prism {
  top: 9%;
  right: 5%;
  opacity: 0.8;
  filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35));
}

[data-theme="light"] .float-geo-prism {
  opacity: 0.7;
  filter: drop-shadow(0 8px 16px rgba(0, 0, 0, 0.08));
}

.float-geo-prism .hero-float-inner {
  animation: heroFloatPrism 11s ease-in-out infinite 0.4s;
}

/* Background Element 4: Abstract Knowledge Network */
.float-neural-network {
  top: 14%;
  left: 45%;
  opacity: 0.7;
  color: var(--text-light);
}

[data-theme="dark"] .float-neural-network {
  color: rgba(255, 255, 255, 0.6);
}

.float-neural-network .hero-float-inner {
  animation: heroFloatNeural 12s ease-in-out infinite 1.8s;
}

/* Background Element 5: Mathematical & Scientific Logic Orb */
.float-math-symbol {
  bottom: 12%;
  left: 4%;
  opacity: 0.85;
}

.float-math-symbol .hero-float-inner {
  animation: heroFloatMath 10s ease-in-out infinite 1.2s;
}

.math-disc-glass {
  position: relative;
  width: 74px;
  height: 74px;
  border-radius: 50%;
  background: rgba(18, 22, 34, 0.65);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  display: flex;
  align-items: center;
  justify-content: center;
}

[data-theme="light"] .math-disc-glass {
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 12px 28px -6px rgba(0, 0, 0, 0.06), inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.math-disc-formula {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.02em;
  user-select: none;
}

.math-orbiting-dot {
  position: absolute;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--primary-green);
  top: -2.5px;
  left: 50%;
  margin-left: -2.5px;
  transform-origin: 2.5px 39.5px;
  animation: mathOrbit 6.5s linear infinite;
  box-shadow: 0 0 6px rgba(16, 185, 129, 0.7);
}

@keyframes mathOrbit {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

/* Foreground Floating Badges Around Showcase Card */
.hero-float-badge-wrap {
  position: absolute;
  pointer-events: none;
  z-index: 4;
  will-change: transform;
  transition: transform 0.12s cubic-bezier(0.2, 0.8, 0.4, 1);
}

.float-badge-pos-degree {
  top: -18px;
  left: -24px;
}

.float-badge-pos-degree .hero-float-inner {
  animation: heroFloatBadgeDegree 8s ease-in-out infinite;
}

.float-badge-pos-code {
  bottom: -16px;
  right: -20px;
}

.float-badge-pos-code .hero-float-inner {
  animation: heroFloatBadgeCode 9.5s ease-in-out infinite 0.8s;
}

/* Premium Glassmorphic Badge */
.hero-glass-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-lg);
  background: rgba(18, 22, 34, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.45), inset 0 1px 0 rgba(255, 255, 255, 0.15);
  pointer-events: auto;
  transition: transform var(--transition-fast), border-color var(--transition-fast), box-shadow var(--transition-fast);
  cursor: default;
  white-space: nowrap;
}

[data-theme="light"] .hero-glass-badge {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 36px -8px rgba(0, 0, 0, 0.08), inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.hero-glass-badge:hover {
  transform: scale(1.03) translateY(-1px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 20px 42px -8px rgba(16, 185, 129, 0.15), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.badge-glass-icon {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.95rem;
  flex-shrink: 0;
}

.badge-icon-emerald {
  background: rgba(16, 185, 129, 0.12);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.25);
}

.badge-icon-sky {
  background: rgba(14, 165, 233, 0.12);
  color: #0ea5e9;
  border: 1px solid rgba(14, 165, 233, 0.25);
}

.badge-glass-body {
  display: flex;
  flex-direction: column;
  text-align: left;
}

.badge-glass-micro {
  font-family: var(--font-mono);
  font-size: 0.6rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-light);
  line-height: 1.1;
}

.badge-glass-title {
  font-family: var(--font-heading);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-main);
  line-height: 1.3;
}

.badge-glass-pill-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.6rem;
  font-weight: 600;
  font-family: var(--font-mono);
  background: rgba(16, 185, 129, 0.1);
  color: #10b981;
  border: 1px solid rgba(16, 185, 129, 0.2);
  margin-left: 0.2rem;
}

.badge-pill-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #10b981;
  animation: badgeDotPulse 2s infinite;
}

@keyframes badgeDotPulse {
  0% { transform: scale(0.9); opacity: 0.7; }
  50% { transform: scale(1.15); opacity: 1; }
  100% { transform: scale(0.9); opacity: 0.7; }
}

.badge-glass-status-ring {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0ea5e9;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.2);
  animation: ringPulse 2.4s infinite;
  margin-left: 0.2rem;
}

@keyframes ringPulse {
  0% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0.4); }
  70% { box-shadow: 0 0 0 5px rgba(14, 165, 233, 0); }
  100% { box-shadow: 0 0 0 0 rgba(14, 165, 233, 0); }
}

/* -------------------------------------------------------------
   7.3 Keyframes for Slow, Continuous Floating Animations
   ------------------------------------------------------------- */
@keyframes heroFloatBadgeDegree {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(6px, -15px, 0) rotate(2.5deg);
  }
}

@keyframes heroFloatBadgeCode {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(-7px, 14px, 0) rotate(-2.5deg);
  }
}

@keyframes heroFloatPrism {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(10px, -20px, 0) rotate(4deg);
  }
}

@keyframes heroFloatNeural {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(-12px, 18px, 0) rotate(-3deg);
  }
}

@keyframes heroFloatMath {
  0%, 100% {
    transform: translate3d(0, 0, 0) rotate(0deg);
  }
  50% {
    transform: translate3d(8px, -14px, 0) rotate(2.5deg);
  }
}

/* -------------------------------------------------------------
   7.4 Responsive Adaptations for Floating Hero Elements
   ------------------------------------------------------------- */
@media (max-width: 1023px) {
  .float-neural-network {
    display: none; /* Keep clean whitespace on stacked tablet layout */
  }
  .float-geo-prism {
    top: 5%;
    right: 2%;
    transform: scale(0.85);
  }
  .float-math-symbol {
    bottom: 6%;
    left: 2%;
    transform: scale(0.85);
  }
  .float-badge-pos-degree {
    top: -12px;
    left: 4px;
    transform: scale(0.92);
    transform-origin: top left;
  }
  .float-badge-pos-code {
    bottom: 48px;
    right: 6px;
    transform: scale(0.92);
    transform-origin: bottom right;
  }
}

@media (max-width: 640px) {
  .float-geo-prism {
    display: none;
  }
  .float-math-symbol {
    opacity: 0.55;
    bottom: 4%;
    left: 2%;
    transform: scale(0.75);
    transform-origin: bottom left;
  }
  .float-badge-pos-degree {
    top: -10px;
    left: 2px;
    transform: scale(0.84);
    pointer-events: none;
  }
  .float-badge-pos-code {
    bottom: 44px;
    right: 4px;
    transform: scale(0.84);
    pointer-events: none;
  }
  .hero-glass-badge {
    pointer-events: none;
  }
}

@media (max-width: 480px) {
  /* On compact mobile, hide overlapping badges to preserve complete whitespace & button clarity */
  .hero-float-badge-wrap {
    display: none;
  }
  .float-math-symbol {
    display: none;
  }
  .hero-ctas {
    flex-direction: column;
    width: 100%;
    gap: 0.65rem;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }
  .stat-item {
    padding: 0.5rem 0.4rem;
  }
  .stat-num {
    font-size: 1.5rem;
  }
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .hero-float-inner,
  .math-orbiting-dot,
  .badge-pill-dot,
  .badge-glass-status-ring {
    animation: none !important;
  }
  .hero-float-bg-item,
  .hero-float-badge-wrap {
    transform: none !important;
    transition: none !important;
  }
}

/* -------------------------------------------------------------
   7.2 Reusable Floating Books Background Component
   ------------------------------------------------------------- */
.floating-books-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 1;
  user-select: none;
  opacity: 0.82;
}

[data-theme="dark"] .floating-books-bg {
  opacity: 0.72;
}

.floating-book-item {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.18s cubic-bezier(0.2, 0, 0.2, 1);
}

.floating-book-anim {
  display: block;
  pointer-events: none;
  will-change: transform;
}

.floating-book-item .fb-svg {
  display: block;
  filter: drop-shadow(0 10px 24px rgba(0, 0, 0, 0.25));
  transition: filter 0.3s ease;
}

[data-theme="dark"] .floating-book-item .fb-svg {
  filter: drop-shadow(0 12px 28px rgba(0, 0, 0, 0.5)) drop-shadow(0 0 16px rgba(16, 185, 129, 0.08));
}

/* Organic Positioning Around the Hero Periphery */
.book-pos-1 { top: 9%; left: 3.5%; }
.book-pos-2 { top: 11%; right: 4.5%; }
.book-pos-3 { top: 46%; left: 2%; }
.book-pos-4 { bottom: 12%; left: 5%; }
.book-pos-5 { bottom: 10%; right: 5%; }
.book-pos-6 { top: 52%; right: 2.5%; }
.book-pos-7 { top: 22%; right: 14%; }

/* Smooth Continuous Independent Keyframes (Gentle Drift & Subtle Micro-Tilt) */
@keyframes floatBook1 {
  0% { transform: translateY(0px) rotate(-1.5deg); }
  50% { transform: translateY(-9px) rotate(1.8deg); }
  100% { transform: translateY(0px) rotate(-1.5deg); }
}

@keyframes floatBook2 {
  0% { transform: translateY(0px) rotate(1.8deg); }
  50% { transform: translateY(-10px) rotate(-1.4deg); }
  100% { transform: translateY(0px) rotate(1.8deg); }
}

@keyframes floatBook3 {
  0% { transform: translateY(0px) rotate(-2deg); }
  50% { transform: translateY(-8px) rotate(1.6deg); }
  100% { transform: translateY(0px) rotate(-2deg); }
}

@keyframes floatBook4 {
  0% { transform: translateY(0px) rotate(1deg); }
  50% { transform: translateY(-11px) rotate(-2deg); }
  100% { transform: translateY(0px) rotate(1deg); }
}

@keyframes floatBook5 {
  0% { transform: translateY(0px) rotate(-1.8deg); }
  50% { transform: translateY(-9px) rotate(1.2deg); }
  100% { transform: translateY(0px) rotate(-1.8deg); }
}

@keyframes floatBook6 {
  0% { transform: translateY(0px) rotate(1.6deg); }
  50% { transform: translateY(-8px) rotate(-1.8deg); }
  100% { transform: translateY(0px) rotate(1.6deg); }
}

@keyframes floatBook7 {
  0% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-10px) rotate(1.5deg); }
  100% { transform: translateY(0px) rotate(-1deg); }
}

/* Staggered Luxury Ambient Animation Durations & Delays */
.anim-book-1 { animation: floatBook1 10.5s ease-in-out infinite; animation-delay: 0s; }
.anim-book-2 { animation: floatBook2 12.8s ease-in-out infinite; animation-delay: 1.4s; }
.anim-book-3 { animation: floatBook3 9.4s ease-in-out infinite; animation-delay: 0.8s; }
.anim-book-4 { animation: floatBook4 13.6s ease-in-out infinite; animation-delay: 2.5s; }
.anim-book-5 { animation: floatBook5 11.2s ease-in-out infinite; animation-delay: 1.8s; }
.anim-book-6 { animation: floatBook6 10.0s ease-in-out infinite; animation-delay: 3.2s; }
.anim-book-7 { animation: floatBook7 12.1s ease-in-out infinite; animation-delay: 1.1s; }

/* Responsive Scaling & Mobile Optimization */
@media (max-width: 1024px) {
  .book-pos-1 .fb-svg { width: 62px; height: 68px; }
  .book-pos-2 .fb-svg { width: 78px; height: 56px; }
  .book-pos-3 .fb-svg { width: 44px; height: 52px; }
  .book-pos-4 .fb-svg { width: 64px; height: 70px; }
  .book-pos-5 .fb-svg { width: 74px; height: 54px; }
  .book-pos-6 .fb-svg { width: 42px; height: 48px; }
  .book-pos-7 { display: none !important; }
}

@media (max-width: 768px) {
  /* Scale down and hide overlapping elements on small mobile screens */
  .book-pos-3,
  .book-pos-6,
  .book-pos-7 {
    display: none !important;
  }
  .book-pos-1 { top: 4%; left: 1%; }
  .book-pos-1 .fb-svg { width: 44px; height: 48px; }

  .book-pos-2 { top: 5%; right: 1%; }
  .book-pos-2 .fb-svg { width: 52px; height: 38px; }

  .book-pos-4 { bottom: 4%; left: 1.5%; }
  .book-pos-4 .fb-svg { width: 44px; height: 48px; }

  .book-pos-5 { bottom: 4%; right: 1.5%; }
  .book-pos-5 .fb-svg { width: 50px; height: 36px; }

  .floating-books-bg {
    opacity: 0.5;
  }
}

@media (max-width: 480px) {
  .book-pos-4 {
    display: none !important;
  }
  .book-pos-1 .fb-svg { width: 36px; height: 40px; }
  .book-pos-2 .fb-svg { width: 42px; height: 30px; }
  .book-pos-5 .fb-svg { width: 42px; height: 30px; }
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .floating-book-anim {
    animation: none !important;
    transform: none !important;
  }
  .floating-book-item {
    transition: none !important;
    transform: none !important;
  }
}

/* -------------------------------------------------------------
   7.3 Reusable Section Floating Background & Decorative Elements
   (Applied to Content Sections, CTA Banners & Feature Cards)
   ------------------------------------------------------------- */
.section-floating-bg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  pointer-events: none;
  z-index: 0;
  user-select: none;
  opacity: 0.78;
}

[data-theme="dark"] .section-floating-bg {
  opacity: 0.68;
}

.section-float-item {
  position: absolute;
  pointer-events: none;
  will-change: transform;
  transition: transform 0.2s cubic-bezier(0.2, 0, 0.2, 1);
}

.section-float-anim {
  display: block;
  pointer-events: none;
  will-change: transform;
}

.section-float-item svg {
  display: block;
  filter: drop-shadow(0 6px 16px rgba(0, 0, 0, 0.2));
}

[data-theme="dark"] .section-float-item svg {
  filter: drop-shadow(0 8px 20px rgba(0, 0, 0, 0.45)) drop-shadow(0 0 10px rgba(16, 185, 129, 0.08));
}

/* Organic peripheral positioning within section boxes */
.s-float-1 { top: 12%; left: 3.5%; }
.s-float-2 { top: 14%; right: 4%; }
.s-float-3 { bottom: 12%; left: 4.5%; }
.s-float-4 { bottom: 14%; right: 4.5%; }

/* Keyframe animations for section floating decor (Gentle Drift & Subtle Micro-Tilt) */
@keyframes floatSection1 {
  0% { transform: translateY(0px) rotate(-1.5deg); }
  50% { transform: translateY(-7px) rotate(1.2deg); }
  100% { transform: translateY(0px) rotate(-1.5deg); }
}

@keyframes floatSection2 {
  0% { transform: translateY(0px) rotate(1.2deg); }
  50% { transform: translateY(-8px) rotate(-1.5deg); }
  100% { transform: translateY(0px) rotate(1.2deg); }
}

@keyframes floatSection3 {
  0% { transform: translateY(0px) rotate(-1deg); }
  50% { transform: translateY(-7px) rotate(1.4deg); }
  100% { transform: translateY(0px) rotate(-1deg); }
}

@keyframes floatSection4 {
  0% { transform: translateY(0px) scale(0.97); }
  50% { transform: translateY(-8px) scale(1.03); }
  100% { transform: translateY(0px) scale(0.97); }
}

.anim-s-1 { animation: floatSection1 11.2s ease-in-out infinite; animation-delay: 0.3s; }
.anim-s-2 { animation: floatSection2 12.6s ease-in-out infinite; animation-delay: 1.8s; }
.anim-s-3 { animation: floatSection3 10.4s ease-in-out infinite; animation-delay: 1.0s; }
.anim-s-4 { animation: floatSection4 9.6s ease-in-out infinite; animation-delay: 2.4s; }

/* Continuous Floating Bob on Category & Feature Icons */
.domain-icon-wrap {
  animation: iconFloatBob 6.5s ease-in-out infinite;
  will-change: transform;
}

.why-choose-grid > .why-choose-col:nth-child(1) .why-choose-icon-box {
  animation: iconFloatBob 6s ease-in-out infinite;
  will-change: transform;
}

.why-choose-grid > .why-choose-col:nth-child(2) .why-choose-icon-box {
  animation: iconFloatBob 7s ease-in-out infinite 0.8s;
  will-change: transform;
}

.why-choose-grid > .why-choose-col:nth-child(3) .why-choose-icon-box {
  animation: iconFloatBob 6.5s ease-in-out infinite 1.6s;
  will-change: transform;
}

@keyframes iconFloatBob {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

/* Continuous Floating Animation on Featured Program Card */
.program-card.featured {
  animation: featuredCardFloat 7s ease-in-out infinite alternate;
  will-change: transform;
}

.program-card.featured:hover {
  animation-play-state: paused;
}

@keyframes featuredCardFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-6px); }
  100% { transform: translateY(0px); }
}

/* Continuous Floating Animation on Sidebar & Sticky Track Cards */
.domain-card.featured-track {
  animation: cardSubtleFloat 7.5s ease-in-out infinite alternate;
  will-change: transform;
}

.domain-card.featured-track:hover {
  animation-play-state: paused;
}

@keyframes cardSubtleFloat {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

/* Responsive adjustments for section floating decor */
@media (max-width: 768px) {
  .s-float-3, .s-float-4 {
    display: none !important;
  }
  .s-float-1 { top: 5%; left: 1.5%; }
  .s-float-1 svg { width: 40px; height: 30px; }
  .s-float-2 { top: 5%; right: 1.5%; }
  .s-float-2 svg { width: 32px; height: 36px; }
  .section-floating-bg { opacity: 0.45; }
}

@media (max-width: 480px) {
  .s-float-2 { display: none !important; }
}

/* Accessibility: Respect Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  .section-float-anim,
  .section-float-item,
  .domain-icon-wrap,
  .why-choose-icon-box,
  .program-card.featured,
  .domain-card.featured-track {
    animation: none !important;
    transform: none !important;
    transition: none !important;
  }
}

/* -------------------------------------------------------------
   8. Section Headers & Page Heroes (16:9 Widescreen Presentation)
   ------------------------------------------------------------- */
.page-hero-section {
  position: relative;
  min-height: calc(100vh - var(--header-h, 72px));
  min-height: calc(100dvh - var(--header-h, 72px));
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  padding: 2.25rem 0;
  border-bottom: 1px solid var(--border-color);
  overflow: hidden;
  box-sizing: border-box;
  background-image:
    linear-gradient(to right, rgba(16, 185, 129, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(16, 185, 129, 0.025) 1px, transparent 1px);
  background-size: 52px 52px;
  animation: heroPageGridFloat 36s linear infinite;
}

[data-theme="dark"] .page-hero-section {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
}

@keyframes heroPageGridFloat {
  0% { background-position: 0 0; }
  100% { background-position: 52px 52px; }
}

.page-hero-section > .container {
  width: 100%;
  margin: auto 0;
  position: relative;
  z-index: 2;
}

@media (min-width: 1024px) {
  .page-hero-section {
    padding: 1.25rem 0 1.75rem;
  }
}

.page-hero-section.page-hero-compact {
  min-height: auto;
  padding: 2.5rem 0 1.5rem;
}

.page-hero-header-wrap {
  text-align: center;
  max-width: 740px;
  margin: 0 auto;
}

.page-hero-title {
  font-size: clamp(1.75rem, 3.2vw, 2.35rem);
  font-weight: 800;
  margin-bottom: 0.4rem;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--text-main);
}

.page-hero-desc {
  font-size: clamp(0.88rem, 1.2vw, 0.98rem);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 620px;
  margin: 0 auto 0.65rem;
}

.page-hero-badges-row {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  justify-content: center;
  margin-bottom: 0.25rem;
}

/* Expansive 16:9 Widescreen Hero Cover Showcase (Viewport Responsive, Sized Cleanly for Desktop Windows View) */
.page-hero-widescreen-frame {
  width: 100%;
  max-width: min(680px, calc((100vh - 380px) * 1.777));
  max-width: min(680px, calc((100dvh - 380px) * 1.777));
  margin: 0.85rem auto 0;
  position: relative;
}

@media (max-width: 768px) {
  .page-hero-widescreen-frame {
    max-width: 100%;
    margin: 1.25rem auto 0;
  }
  .page-hero-section {
    padding: 2rem 0;
  }
}

.page-hero-16-9-card {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 24px 64px -14px rgba(0, 0, 0, 0.5);
  transform: translateZ(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  animation: heroCardFloatMotion 6.5s ease-in-out infinite alternate;
  will-change: transform;
}

[data-theme="dark"] .page-hero-16-9-card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 28px 72px -16px rgba(0, 0, 0, 0.7), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.page-hero-16-9-card:hover {
  animation-play-state: paused;
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 32px 80px -16px rgba(16, 185, 129, 0.16);
}

.page-hero-16-9-card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(115deg, transparent 35%, rgba(255, 255, 255, 0.06) 50%, transparent 65%);
  background-size: 250% 100%;
  animation: heroCardGleam 9s ease-in-out infinite;
  pointer-events: none;
}

@keyframes heroCardGleam {
  0% { background-position: -250% 0; }
  100% { background-position: 250% 0; }
}

.page-hero-16-9-img {
  width: 100%;
  height: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.page-hero-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 65%, rgba(10, 12, 18, 0.75) 100%);
  pointer-events: none;
}

[data-theme="light"] .page-hero-cover-overlay {
  background: linear-gradient(180deg, transparent 65%, rgba(0, 0, 0, 0.25) 100%);
}

.page-hero-cover-badge {
  position: absolute;
  bottom: 1.15rem;
  left: 1.15rem;
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.4rem 0.95rem;
  background: rgba(18, 22, 34, 0.85);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.35);
  animation: heroBadgeLevitate 4.5s ease-in-out infinite alternate;
  will-change: transform;
}

@keyframes heroBadgeLevitate {
  0% { transform: translateY(0); }
  100% { transform: translateY(-6px); }
}

[data-theme="light"] .page-hero-cover-badge {
  background: rgba(255, 255, 255, 0.92);
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
}

/* Subtle Full-Window Hero Scroll Indicator */
.hero-scroll-indicator {
  position: absolute;
  bottom: 0.85rem;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.25rem;
  color: var(--text-light);
  font-family: var(--font-mono);
  font-size: 0.62rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.7;
  transition: opacity 0.3s ease;
  pointer-events: none;
  z-index: 5;
}

.hero-scroll-mouse {
  width: 16px;
  height: 24px;
  border: 1.5px solid var(--border-color);
  border-radius: var(--radius-full);
  display: flex;
  justify-content: center;
  padding-top: 3px;
}

.hero-scroll-wheel {
  width: 2.5px;
  height: 5px;
  background: var(--primary-green);
  border-radius: 2px;
  animation: heroScrollWheel 2s infinite ease-in-out;
}

@keyframes heroScrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  60% { transform: translateY(6px); opacity: 0; }
  100% { transform: translateY(0); opacity: 0; }
}

@media (max-width: 768px) {
  .hero-scroll-indicator {
    display: none;
  }
}

/* Also support 2-column split if used */
.page-hero-grid {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .page-hero-grid {
    display: grid;
    grid-template-columns: 1.12fr 0.88fr;
    gap: 3.5rem;
    align-items: center;
  }
  .page-hero-grid .page-hero-text {
    text-align: left !important;
  }
}

.page-hero-text {
  width: 100%;
}

.page-hero-cover-wrap {
  width: 100%;
  max-width: 540px;
  margin: 0 auto;
  position: relative;
}

.page-hero-cover-card {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.45);
  transform: translateZ(0);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
}

[data-theme="dark"] .page-hero-cover-card {
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 48px -10px rgba(0, 0, 0, 0.55);
}

.page-hero-cover-card:hover {
  transform: translateY(-3px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 24px 54px -12px rgba(16, 185, 129, 0.15);
}

.page-hero-cover-img {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  display: block;
}

.page-hero-cover-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 60%, rgba(10, 12, 18, 0.7) 100%);
  pointer-events: none;
}

[data-theme="light"] .page-hero-cover-overlay {
  background: linear-gradient(180deg, transparent 60%, rgba(0, 0, 0, 0.25) 100%);
}

.page-hero-cover-badge {
  position: absolute;
  bottom: 0.85rem;
  left: 0.85rem;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  padding: 0.3rem 0.8rem;
  background: rgba(18, 22, 34, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 600;
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.3);
}

[data-theme="light"] .page-hero-cover-badge {
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-main);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.06);
}

/* Feature Illustration Banner in Domains / Career page */
.counseling-feature-banner {
  display: flex;
  flex-direction: column;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .counseling-feature-banner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3rem;
    align-items: center;
    text-align: left;
  }
}

.illustration-card-frame {
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: rgba(20, 33, 61, 0.4);
  border: 1px solid rgba(255, 255, 255, 0.08);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.5);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  animation: heroCardFloatMotion 6.5s ease-in-out infinite alternate;
  will-change: transform;
}

.illustration-card-frame:hover {
  animation-play-state: paused;
}

[data-theme="light"] .illustration-card-frame {
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  box-shadow: 0 16px 40px -10px rgba(0, 0, 0, 0.06);
}

.glass-cta-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-xl);
  padding: 3.5rem 2rem;
  text-align: center;
  overflow: hidden;
  box-shadow: 0 16px 48px -12px rgba(0, 0, 0, 0.4);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s ease, border-color 0.35s ease;
  animation: ctaCardBreath 7s ease-in-out infinite alternate;
  will-change: transform;
}

[data-theme="dark"] .glass-cta-card {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 20px 54px -14px rgba(0, 0, 0, 0.65), 0 0 0 1px rgba(255, 255, 255, 0.04);
}

.glass-cta-card:hover {
  animation-play-state: paused;
  transform: translateY(-4px);
  border-color: rgba(16, 185, 129, 0.35);
  box-shadow: 0 24px 64px -12px rgba(16, 185, 129, 0.16);
}

.glass-cta-card::before {
  content: '';
  position: absolute;
  top: -60px;
  left: -60px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(16, 185, 129, 0.18) 0%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
  animation: ctaOrbDrift1 12s ease-in-out infinite alternate;
}

.glass-cta-card::after {
  content: '';
  position: absolute;
  bottom: -60px;
  right: -60px;
  width: 240px;
  height: 240px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(14, 165, 233, 0.16) 0%, transparent 70%);
  filter: blur(45px);
  pointer-events: none;
  z-index: 0;
  animation: ctaOrbDrift2 15s ease-in-out infinite alternate;
}

.glass-cta-card > * {
  position: relative;
  z-index: 2;
}

@keyframes ctaCardBreath {
  0% { transform: translateY(0px); }
  50% { transform: translateY(-5px); }
  100% { transform: translateY(0px); }
}

@keyframes ctaOrbDrift1 {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(45px, 35px, 0); }
}

@keyframes ctaOrbDrift2 {
  0% { transform: translate3d(0, 0, 0); }
  100% { transform: translate3d(-40px, -30px, 0); }
}

.section-header {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 2.5rem;
}

.section-tagline {
  display: block !important;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
  line-height: 1.4;
  clear: both;
}

.page-hero-tagline {
  display: block !important;
  width: 100%;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--primary-green);
  text-transform: uppercase;
  letter-spacing: 0.12em;
  margin-bottom: 0.6rem;
  line-height: 1.4;
}

.section-title {
  font-size: clamp(1.5rem, 2.8vw, 2.1rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 0.6rem;
  line-height: 1.15;
}

.section-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 46ch;
  margin-left: auto;
  margin-right: auto;
}

/* -------------------------------------------------------------
   9. Course Cards — Border-separated editorial grid
   ------------------------------------------------------------- */
.courses-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

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

@media (min-width: 1024px) {
  .courses-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

.course-card {
  background-color: var(--bg-card);
  border: none;
  border-radius: 0;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: background-color var(--transition-normal);
  box-shadow: none;
  position: relative;
}

[data-theme="dark"] .course-card {
  background: var(--bg-card);
}

.course-card:hover {
  background-color: var(--bg-card-hover);
  transform: none;
  box-shadow: none;
}

[data-theme="dark"] .course-card:hover {
  background: var(--bg-card-hover);
}

[data-theme="dark"] .course-card-category {
  color: var(--primary-blue);
}

[data-theme="dark"] .course-price {
  color: var(--primary-green);
}

.course-card-thumb {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  background-color: var(--bg-section-alt);
  overflow: hidden;
}

.course-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.course-card:hover .course-card-thumb img {
  transform: scale(1.03);
}

.course-card-badges {
  position: absolute;
  top: 0.6rem;
  left: 0.6rem;
  display: flex;
  gap: 0.3rem;
  z-index: 2;
}

.course-card-body {
  padding: 1.15rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.course-card-category {
  font-family: var(--font-mono);
  font-size: 0.7rem;
  font-weight: 500;
  color: var(--primary-blue);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 0.3rem;
}

.course-card-title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 0.4rem;
  color: var(--text-main);
}

.course-card-desc {
  font-size: 0.84rem;
  color: var(--text-muted);
  line-height: 1.5;
  margin-bottom: 0.9rem;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.course-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.6rem 0;
  border-top: 1px solid var(--border-color);
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-light);
}

.course-meta-item {
  display: flex;
  align-items: center;
  gap: 0.25rem;
}

.course-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 0.7rem;
  border-top: 1px solid var(--border-color);
}

.course-price-wrap {
  display: flex;
  flex-direction: column;
}

.course-price {
  font-size: 1.15rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--text-main);
  line-height: 1.1;
}

.course-original-price {
  font-size: 0.72rem;
  color: var(--text-light);
  text-decoration: line-through;
}

/* Filter bar */
.catalog-filter-bar {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  padding: 0.75rem 1rem;
  margin-bottom: 1.75rem;
  background: var(--bg-card);
}

@media (min-width: 768px) {
  .catalog-filter-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.search-input-wrap {
  position: relative;
  flex: 1;
  max-width: 440px;
}

.search-input {
  width: 100%;
  height: 40px;
  padding: 0.4rem 0.9rem 0.4rem 2.25rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-body);
  color: var(--text-main);
  font-size: 0.875rem;
  transition: border-color var(--transition-fast);
}

.search-input:focus {
  border-color: var(--primary-green);
  outline: none;
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-light);
  pointer-events: none;
  font-size: 0.85rem;
}

.filter-pills {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  overflow-x: auto;
  padding-bottom: 0.25rem;
  -webkit-overflow-scrolling: touch;
}

.filter-pill {
  padding: 0.3rem 0.75rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: var(--radius-full);
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.filter-pill:hover,
.filter-pill.active {
  background-color: var(--text-main);
  color: var(--bg-body);
  border-color: var(--text-main);
}

/* -------------------------------------------------------------
   10. Program Cards — Border-divided editorial layout
   ------------------------------------------------------------- */
.programs-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .programs-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .programs-grid > .program-card + .program-card {
    border-left: 1px solid var(--border-color);
  }
}

.program-card {
  background-color: var(--bg-card);
  border: none;
  border-radius: 0;
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  position: relative;
  transition: background-color var(--transition-normal);
  box-shadow: none;
  overflow: hidden;
}

.program-card + .program-card {
  border-top: 1px solid var(--border-color);
}

@media (min-width: 768px) {
  .program-card + .program-card {
    border-top: none;
  }
}

.program-card-thumb {
  width: calc(100% + 3rem);
  margin: -1.75rem -1.5rem 1.35rem -1.5rem;
  aspect-ratio: 16 / 9;
  max-height: 220px;
  overflow: hidden;
  position: relative;
  background-color: var(--bg-section-alt);
}

.program-card-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

.program-card:hover .program-card-thumb img {
  transform: scale(1.03);
}

[data-theme="dark"] .program-card {
  background: var(--bg-card);
}

.program-card:hover {
  background-color: var(--bg-card-hover);
  transform: none;
  box-shadow: none;
}

[data-theme="dark"] .program-card:hover {
  background: var(--bg-card-hover);
}

.program-card.featured {
  border-left: 2px solid var(--primary-green);
}

@media (min-width: 768px) {
  .program-card.featured {
    border-left: 1px solid var(--border-color);
    border-top: 2px solid var(--primary-green);
  }
}

[data-theme="dark"] .program-card.featured {
  background: var(--bg-card);
}

.program-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  background: var(--primary-green);
  color: #ffffff;
  padding: 0.2rem 0.65rem;
  font-family: var(--font-mono);
  font-size: 0.65rem;
  font-weight: 600;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.program-card-header { margin-bottom: 1.15rem; }
.program-title { font-size: 1.25rem; font-weight: 700; margin-bottom: 0.4rem; }
.program-desc { font-size: 0.88rem; color: var(--text-muted); line-height: 1.55; }

.program-features {
  margin: 1.15rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.feature-item {
  display: flex;
  align-items: flex-start;
  gap: 0.5rem;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.45;
}

.feature-icon {
  color: var(--primary-green);
  font-size: 0.95rem;
  flex-shrink: 0;
  margin-top: 2px;
}

/* -------------------------------------------------------------
   11. Domain / Category Cards
   ------------------------------------------------------------- */
.domains-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 481px) {
  .domains-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .domains-grid { grid-template-columns: repeat(4, 1fr); }
}

.domain-card {
  background-color: var(--bg-card);
  border: none;
  border-radius: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  transition: background-color var(--transition-normal);
  text-decoration: none;
}

[data-theme="dark"] .domain-card {
  background: var(--bg-card);
}

.domain-card:hover {
  background-color: var(--bg-card-hover);
  transform: none;
  box-shadow: none;
}

[data-theme="dark"] .domain-card:hover {
  background: var(--bg-card-hover);
}

.domain-icon-wrap {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.12);
  color: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.25rem;
  margin-bottom: 0.85rem;
}

[data-theme="dark"] .domain-icon-wrap {
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.15);
}

.domain-name { font-size: 0.95rem; font-weight: 700; margin-bottom: 0.3rem; color: var(--text-main); }
.domain-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; }

/* Value Props, About, Contact cards */
.why-choose-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-top: 1rem;
}

@media (min-width: 768px) {
  .why-choose-grid { grid-template-columns: repeat(3, 1fr); }
}

.why-choose-col {
  position: relative;
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: none;
  border-radius: 0;
  transition: background-color var(--transition-normal);
}

.why-choose-col:hover {
  background-color: var(--bg-card-hover);
  transform: none;
  box-shadow: none;
}

.why-choose-icon-box {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.3rem;
  margin-bottom: 1rem;
}

.why-choose-title { font-size: 1.05rem; font-weight: 700; margin-bottom: 0.6rem; color: var(--text-main); line-height: 1.3; }
.why-choose-text { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin: 0; }

/* Contact channels */
.contact-channel-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 1rem 1.15rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-normal);
}

.contact-channel-card:hover {
  border-color: var(--text-light);
}

.contact-channel-icon {
  width: 40px;
  height: 40px;
  min-width: 40px;
  border-radius: var(--radius-sm);
  background: rgba(14, 165, 233, 0.06);
  border: 1px solid rgba(14, 165, 233, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  animation: iconFloatBob 6.2s ease-in-out infinite;
  will-change: transform;
}

.contact-channel-card:nth-child(2) .contact-channel-icon {
  animation-delay: 0.7s;
}

.contact-channel-card:nth-child(3) .contact-channel-icon {
  animation-delay: 1.4s;
}

.contact-channel-card:nth-child(4) .contact-channel-icon {
  animation-delay: 2.1s;
}

.contact-channel-label {
  display: block;
  font-family: var(--font-mono);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-light);
  font-weight: 500;
  margin-bottom: 0.15rem;
}

.contact-channel-value {
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
}

/* About Mission & Values */
.about-statement-card {
  padding: 2rem 1.75rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-normal);
}

.about-statement-card:hover {
  border-color: var(--text-light);
}

.about-statement-icon {
  width: 42px;
  height: 42px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  margin-bottom: 1.15rem;
}

.about-value-item {
  padding: 1.5rem 1.35rem;
  background: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-md);
  transition: border-color var(--transition-fast);
}

.about-value-item:hover {
  border-color: var(--text-light);
}

.about-value-icon {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-sm);
  background: rgba(16, 185, 129, 0.06);
  border: 1px solid rgba(16, 185, 129, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  margin-bottom: 0.85rem;
}

.about-value-title { font-size: 1rem; font-weight: 700; color: var(--text-main); margin-bottom: 0.35rem; }
.about-value-desc { font-size: 0.84rem; color: var(--text-muted); line-height: 1.55; margin: 0; }

/* -------------------------------------------------------------
   12. Counseling Modal
   ------------------------------------------------------------- */
.modal-overlay {
  position: fixed;
  inset: 0;
  background-color: rgba(0, 0, 0, 0.65);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  z-index: 2000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.3s ease;
}

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

.counseling-modal {
  background-color: var(--bg-card);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 88vh;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-lg);
  transform: scale(0.95) translateY(12px);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.35s ease;
  overflow: hidden;
  will-change: transform;
}

[data-theme="dark"] .counseling-modal {
  background: var(--bg-card);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: 0 24px 60px -12px rgba(0, 0, 0, 0.8);
}

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

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border-color);
  position: sticky;
  top: 0;
  z-index: 10;
}

.modal-title-wrap { display: flex; flex-direction: column; }
.modal-title { font-size: 1.15rem; font-weight: 700; color: var(--text-main); }
.modal-subtitle { font-family: var(--font-mono); font-size: 0.72rem; color: var(--text-light); font-weight: 500; letter-spacing: 0.02em; }

.modal-close-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: var(--radius-full);
  background-color: transparent;
  border: 1px solid var(--border-color);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1rem;
  transition: all var(--transition-fast);
}

.modal-close-btn:hover {
  background-color: #ef4444;
  color: #ffffff;
  border-color: #ef4444;
}

.modal-body {
  padding: 1.25rem;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.form-group { margin-bottom: 0.9rem; }
.form-label { display: block; font-family: var(--font-mono); font-size: 0.75rem; font-weight: 500; margin-bottom: 0.3rem; color: var(--text-muted); text-transform: uppercase; letter-spacing: 0.04em; }

.form-control {
  width: 100%;
  height: 44px;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-body);
  color: var(--text-main);
  font-size: 0.95rem;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

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

textarea.form-control {
  height: auto;
  min-height: 80px;
  resize: vertical;
}

.form-select {
  width: 100%;
  height: 44px;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-color);
  background-color: var(--bg-body);
  color: var(--text-main);
  font-size: 0.95rem;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

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

.form-feedback {
  margin-top: 0.75rem;
  padding: 0.6rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.84rem;
  display: none;
}

.form-feedback.success {
  display: block;
  background-color: rgba(16, 185, 129, 0.1);
  color: #059669;
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.form-feedback.error {
  display: block;
  background-color: rgba(239, 68, 68, 0.1);
  color: #dc2626;
  border: 1px solid rgba(239, 68, 68, 0.2);
}

/* -------------------------------------------------------------
   13. Testimonials — Border-divided grid
   ------------------------------------------------------------- */
.testimonials-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1px;
  background: var(--border-color);
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

@media (min-width: 768px) {
  .testimonials-grid { grid-template-columns: repeat(3, 1fr); }
}

.testimonial-card {
  background-color: var(--bg-card);
  border: none;
  border-radius: 0;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

[data-theme="dark"] .testimonial-card { background: var(--bg-card); }

.testimonial-rating { color: #f59e0b; margin-bottom: 0.6rem; font-size: 0.85rem; letter-spacing: 2px; }
.testimonial-text { font-size: 0.86rem; color: var(--text-muted); line-height: 1.6; margin-bottom: 1rem; }
.testimonial-author { display: flex; align-items: center; gap: 0.6rem; }

.author-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary-green);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-weight: 700;
  font-family: var(--font-mono);
  font-size: 0.8rem;
}

.author-name { font-size: 0.85rem; font-weight: 700; line-height: 1.2; }
.author-role { font-family: var(--font-mono); font-size: 0.7rem; color: var(--text-light); font-weight: 500; }

/* -------------------------------------------------------------
   14. FAQs
   ------------------------------------------------------------- */
.faq-list {
  max-width: 760px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid var(--border-color);
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.faq-item {
  background-color: var(--bg-card);
  border: none;
  border-radius: 0;
  overflow: hidden;
  transition: background-color var(--transition-fast);
}

.faq-item + .faq-item {
  border-top: 1px solid var(--border-color);
}

[data-theme="dark"] .faq-item { background: var(--bg-card); }
[data-theme="dark"] .faq-item:hover,
[data-theme="dark"] .faq-item.active { background: var(--bg-card-hover); }

.faq-question {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: none;
  border: none;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-main);
  text-align: left;
  cursor: pointer;
  transition: color var(--transition-fast);
}

.faq-icon {
  font-size: 1rem;
  color: var(--text-light);
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), color 0.3s ease;
  flex-shrink: 0;
  margin-left: 0.75rem;
}

.faq-item.active .faq-icon { transform: rotate(45deg); color: var(--primary-green); }

.faq-answer {
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  display: block;
  padding: 0 1.25rem;
  font-size: 0.88rem;
  color: var(--text-muted);
  line-height: 1.65;
  transition: max-height 0.38s cubic-bezier(0.16, 1, 0.3, 1), padding 0.3s ease, opacity 0.3s ease;
}

.faq-item.active .faq-answer {
  max-height: 600px;
  padding: 0 1.25rem 1.15rem;
  opacity: 1;
}

/* -------------------------------------------------------------
   15. Footer
   ------------------------------------------------------------- */
.site-footer {
  background-color: var(--bg-card);
  border-top: 1px solid var(--border-color);
  padding: 3.5rem 0 1.5rem;
  margin-top: 3rem;
}

[data-theme="dark"] .site-footer { background: var(--bg-card); border-top: 1px solid rgba(255, 255, 255, 0.08); }

.footer-desktop-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  margin-bottom: 2.5rem;
}

@media (max-width: 1023px) and (min-width: 768px) {
  .footer-desktop-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
}

.footer-brand { display: flex; flex-direction: column; gap: 0.65rem; }

.footer-slogan-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--primary-green);
  background: rgba(16, 185, 129, 0.06);
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(16, 185, 129, 0.15);
  width: fit-content;
}

.footer-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.55; }

.footer-social-row { display: flex; align-items: center; gap: 0.5rem; margin-top: 0.25rem; }

.footer-social-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  border: 1px solid var(--border-color);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
  text-decoration: none;
}

.footer-social-btn:hover {
  border-color: var(--primary-green);
  color: var(--primary-green);
  transform: translateY(-1px);
}

.footer-col-title { font-family: var(--font-mono); font-size: 0.72rem; font-weight: 600; margin-bottom: 0.85rem; color: var(--text-light); letter-spacing: 0.08em; text-transform: uppercase; }

.footer-links { display: flex; flex-direction: column; gap: 0.4rem; list-style: none; }

.footer-link {
  font-size: 0.82rem;
  color: var(--text-muted);
  display: inline-flex;
  align-items: center;
  gap: 0.2rem;
  padding: 0.2rem 0;
  transition: color var(--transition-fast);
  text-decoration: none;
}

.footer-link:hover { color: var(--text-main); }

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  font-size: 0.82rem;
  color: var(--text-muted);
  margin-bottom: 0.5rem;
  line-height: 1.45;
}

.footer-contact-item a { color: var(--text-muted); text-decoration: none; transition: color var(--transition-fast); }
.footer-contact-item a:hover { color: var(--text-main); }

.text-emerald { color: var(--primary-green); }
.text-sky { color: var(--primary-blue); }
.text-green { color: var(--primary-green); }
.text-blue { color: var(--primary-blue); }
.text-primary { color: var(--primary-green); }
.text-muted { color: var(--text-muted); }

/* Mobile Footer */
.footer-mobile-view { display: none; }

@media (max-width: 767px) {
  .site-footer { padding: 2rem 0 1.25rem; margin-top: 2rem; }
  .footer-desktop-grid { display: none !important; }

  .footer-mobile-view {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.25rem;
  }

  .mf-brand-section { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.5rem; padding: 0 0.5rem; }
  .mf-logo-wrap { display: flex; align-items: center; justify-content: center; }
  .mf-brand-logo { height: 36px; width: auto; max-width: 130px; object-fit: contain; display: block; }
  .mf-brand-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.5; max-width: 360px; margin: 0 auto; }
  .mf-social-row { display: flex; align-items: center; justify-content: center; gap: 0.5rem; margin-top: 0.15rem; }

  .mf-cta-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 1.25rem 1rem;
    text-align: center;
  }

  [data-theme="dark"] .mf-cta-card { background: var(--bg-card); border-color: rgba(255, 255, 255, 0.08); }

  .mf-cta-badge { display: inline-flex; align-items: center; gap: 0.3rem; font-family: var(--font-mono); font-size: 0.68rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--primary-green); margin-bottom: 0.35rem; }
  .mf-cta-heading { font-size: 1.1rem; font-weight: 700; color: var(--text-main); margin: 0 0 0.3rem 0; line-height: 1.3; }
  .mf-cta-desc { font-size: 0.82rem; color: var(--text-muted); line-height: 1.45; margin: 0 0 0.85rem 0; }
  .mf-cta-btn { width: 100%; min-height: 44px; font-size: 0.88rem; font-weight: 600; display: flex; align-items: center; justify-content: center; gap: 0.5rem; }

  .mf-accordion-group { display: flex; flex-direction: column; gap: 0.35rem; }

  .mf-accordion-item {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-sm);
    overflow: hidden;
    transition: border-color var(--transition-fast);
  }

  [data-theme="dark"] .mf-accordion-item { background: var(--bg-card); border-color: rgba(255, 255, 255, 0.08); }
  .mf-accordion-item.open { border-color: var(--text-light); }

  .mf-accordion-header {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.75rem 0.85rem;
    background: transparent;
    border: none;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--text-main);
    cursor: pointer;
    text-align: left;
    min-height: 44px;
    -webkit-tap-highlight-color: transparent;
  }

  .mf-acc-title { display: flex; align-items: center; gap: 0.5rem; }
  .mf-chevron { font-size: 0.75rem; color: var(--text-light); transition: transform 0.25s ease; }
  .mf-accordion-item.open .mf-chevron { transform: rotate(180deg); color: var(--primary-green); }

  .mf-accordion-collapse { max-height: 0; overflow: hidden; transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1); }
  .mf-accordion-item.open .mf-accordion-collapse { max-height: 420px; }

  .mf-accordion-body { padding: 0.15rem 0.75rem 0.75rem; display: flex; flex-direction: column; gap: 0.15rem; border-top: 1px solid var(--border-color); }
  [data-theme="dark"] .mf-accordion-body { border-top: 1px solid rgba(255, 255, 255, 0.05); }

  .mf-acc-link {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.4rem;
    font-size: 0.82rem;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: 6px;
    min-height: 38px;
    transition: color var(--transition-fast);
  }

  .mf-acc-link:hover, .mf-acc-link:active { color: var(--text-main); }
  [data-theme="dark"] .mf-acc-link:hover, [data-theme="dark"] .mf-acc-link:active { color: #F8FAFC; }

  .mf-acc-info { display: flex; align-items: center; gap: 0.4rem; font-size: 0.74rem; color: var(--text-light); padding: 0.45rem 0.4rem; line-height: 1.4; }

  .mf-contact-card {
    background: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-md);
    padding: 0.4rem;
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
  }

  [data-theme="dark"] .mf-contact-card { background: var(--bg-card); border: 1px solid rgba(255, 255, 255, 0.08); }

  .mf-contact-header { padding: 0.4rem 0.6rem 0.2rem; }
  .mf-contact-badge-label { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 500; text-transform: uppercase; letter-spacing: 0.06em; color: var(--text-light); }

  .mf-contact-row {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.55rem 0.65rem;
    border-radius: var(--radius-sm);
    text-decoration: none;
    color: var(--text-main);
    min-height: 46px;
    transition: background-color var(--transition-fast);
  }

  .mf-contact-row:not(.static-row):hover, .mf-contact-row:not(.static-row):active { background: var(--bg-card-hover); }
  [data-theme="dark"] .mf-contact-row:not(.static-row):hover, [data-theme="dark"] .mf-contact-row:not(.static-row):active { background: rgba(255, 255, 255, 0.03); }

  .mf-contact-icon {
    width: 34px;
    height: 34px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
  }

  .icon-mail { background: rgba(14, 165, 233, 0.08); color: var(--primary-blue); border: 1px solid rgba(14, 165, 233, 0.15); }
  .icon-phone { background: rgba(16, 185, 129, 0.08); color: var(--primary-green); border: 1px solid rgba(16, 185, 129, 0.15); }
  .icon-wa { background: rgba(37, 211, 102, 0.08); color: #25d366; border: 1px solid rgba(37, 211, 102, 0.15); }
  .icon-time { background: rgba(245, 158, 11, 0.08); color: #f59e0b; border: 1px solid rgba(245, 158, 11, 0.15); }

  .mf-contact-meta { display: flex; flex-direction: column; flex: 1; min-width: 0; }
  .mf-meta-sub { font-family: var(--font-mono); font-size: 0.65rem; font-weight: 500; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.04em; }
  .mf-meta-main { font-size: 0.84rem; font-weight: 600; color: var(--text-main); line-height: 1.3; }
  .mf-text-break { word-break: break-all; overflow-wrap: anywhere; }
  .mf-contact-arrow { font-size: 1rem; color: var(--text-light); margin-left: auto; flex-shrink: 0; }

  .mf-legal-section { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 0.35rem; padding-top: 0.25rem; }
  .mf-divider { width: 100%; height: 1px; background: var(--border-color); margin-bottom: 0.25rem; }
  .mf-legal-links { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 0.3rem 0.5rem; font-size: 0.72rem; color: var(--text-light); }
  .mf-legal-link { color: var(--text-light); text-decoration: none; transition: color var(--transition-fast); }
  .mf-legal-link:hover { color: var(--text-main); }
  .mf-legal-dot { opacity: 0.3; font-size: 0.6rem; }
  .mf-copyright { font-size: 0.72rem; color: var(--text-light); line-height: 1.4; }
}

/* Footer Bottom */
.footer-bottom {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid var(--border-color);
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
}

@media (min-width: 768px) {
  .footer-bottom { flex-direction: row; text-align: left; }
}

.footer-copyright-text { line-height: 1.5; }

.footer-admin-link {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--text-light);
  text-decoration: none;
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-full);
  border: 1px solid var(--border-color);
  transition: all var(--transition-fast);
}

.footer-admin-link:hover { color: var(--text-main); border-color: var(--text-light); }

/* -------------------------------------------------------------
   16. Responsive Fine-Tuning
   ------------------------------------------------------------- */
@media (max-width: 480px) {
  :root { --header-h: 60px; }
  .navbar { height: 60px; padding: 0; }
  .brand-logo-wrap { height: 36px; }
  .brand-logo-img { height: 28px; max-width: 100px; }
  .brand-name { font-size: 1.05rem; }
  .hero-title { font-size: clamp(1.75rem, 7vw, 2.5rem); line-height: 1.1; }
  .hero-subtitle { font-size: 0.88rem; }
  .btn { width: 100%; }
  .hero-ctas { width: 100%; }
  .counseling-modal { width: calc(100% - 16px); margin: 8px; max-height: 90vh; }
  .modal-body { padding: 1rem; }
  .courses-grid { grid-template-columns: 1fr; }
  .stat-num { font-size: 1.4rem; }
  .stat-label { font-size: 0.65rem; }
}

@media (min-width: 481px) and (max-width: 767px) {
  .hero-title { font-size: clamp(1.85rem, 5vw, 2.8rem); }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (min-width: 1024px) and (max-width: 1439px) {
  .courses-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1440px) {
  .hero-title { font-size: clamp(2.3rem, 4vw, 3.8rem); }
  .container { max-width: 100%; }
}

/* =============================================================
   15. Website Preloader & Kinetic Brand Text Animation
   ============================================================= */
.site-preloader {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: flex;
  align-items: center;
  justify-content: center;
  background-color: #08090d;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              visibility 0.3s cubic-bezier(0.16, 1, 0.3, 1),
              transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  will-change: opacity, transform;
}

[data-theme="light"] .site-preloader {
  background-color: #f8fafc;
}

.site-preloader.is-loaded {
  opacity: 0;
  visibility: hidden;
  transform: scale(1.02);
  pointer-events: none;
}

.preloader-backdrop {
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at center, rgba(16, 185, 129, 0.08) 0%, rgba(14, 165, 233, 0.04) 50%, transparent 80%);
  pointer-events: none;
}

.preloader-content {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 2rem;
  max-width: 440px;
  width: 90%;
}

.preloader-emblem {
  position: relative;
  width: 72px;
  height: 72px;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.emblem-glow-ring {
  position: absolute;
  inset: -6px;
  border-radius: 50%;
  border: 2px solid transparent;
  border-top-color: var(--primary-green);
  border-right-color: var(--primary-blue);
  animation: emblemRingSpin 2s linear infinite;
  filter: drop-shadow(0 0 8px rgba(16, 185, 129, 0.6));
}

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

.preloader-logo-img {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.4));
  animation: preloaderLogoPulse 2s ease-in-out infinite;
}

@keyframes preloaderLogoPulse {
  0%, 100% { transform: scale(1); filter: drop-shadow(0 0 10px rgba(16, 185, 129, 0.3)); }
  50% { transform: scale(1.06); filter: drop-shadow(0 0 18px rgba(16, 185, 129, 0.6)); }
}

/* Kinetic Letter-by-Letter Text Reveal */
.preloader-brand-title {
  display: flex;
  gap: 3px;
  font-family: var(--font-heading);
  font-size: 2.1rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  margin-bottom: 0.35rem;
  overflow: hidden;
}

.preloader-char {
  display: inline-block;
  color: #ffffff;
  background: linear-gradient(135deg, #ffffff 30%, #34d399 75%, #38bdf8 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  opacity: 0;
  transform: translateY(22px) rotateX(45deg);
  animation: preloaderCharReveal 0.35s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  animation-delay: calc(var(--i) * 0.035s + 0.04s);
}

[data-theme="light"] .preloader-char {
  background: linear-gradient(135deg, #090a0f 30%, #059669 75%, #0284c7 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

@keyframes preloaderCharReveal {
  0% {
    opacity: 0;
    transform: translateY(22px) rotateX(45deg);
  }
  100% {
    opacity: 1;
    transform: translateY(0) rotateX(0deg);
  }
}

/* Kinetic Slogan Reveal */
.preloader-slogan-wrap {
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.preloader-slogan {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: 0.08em;
  opacity: 0;
  transform: translateY(12px);
  animation: preloaderSloganReveal 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.2s;
}

@keyframes preloaderSloganReveal {
  0% {
    opacity: 0;
    transform: translateY(12px);
    letter-spacing: 0.04em;
  }
  100% {
    opacity: 0.85;
    transform: translateY(0);
    letter-spacing: 0.08em;
  }
}

/* Status text & pulsing dot */
.preloader-status-wrap {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  margin-bottom: 0.9rem;
}

.preloader-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--primary-green);
  animation: preloaderDotPulse 1.4s infinite ease-in-out;
  box-shadow: 0 0 8px var(--primary-green);
}

@keyframes preloaderDotPulse {
  0%, 100% { transform: scale(0.85); opacity: 0.5; }
  50% { transform: scale(1.3); opacity: 1; }
}

.preloader-status-text {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-light);
  letter-spacing: 0.04em;
  min-width: 190px;
  transition: opacity 0.25s ease;
}

/* Sleek Glowing Progress Bar */
.preloader-progress-track {
  width: 180px;
  height: 3px;
  background: rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-full);
  overflow: hidden;
  position: relative;
}

[data-theme="light"] .preloader-progress-track {
  background: rgba(0, 0, 0, 0.08);
}

.preloader-progress-fill {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #10b981 0%, #0ea5e9 100%);
  border-radius: var(--radius-full);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.8);
  transition: width 0.25s ease-out;
}

/* =============================================================
   16. Dynamic Typing Text Animation (Hero Headline)
   ============================================================= */
.dynamic-typing-text {
  display: inline-block;
  min-height: 1.1em;
  color: var(--primary-green);
  position: relative;
  transition: color 0.3s ease;
}

.typing-cursor-blink {
  display: inline-block;
  color: var(--primary-green);
  font-weight: 300;
  margin-left: 3px;
  animation: typingCursorBlink 0.9s infinite ease-in-out;
  line-height: 1;
}

@keyframes typingCursorBlink {
  0%, 100% { opacity: 1; transform: scaleY(1); }
  50% { opacity: 0; transform: scaleY(0.8); }
}

/* =============================================================
   17. Rich Animations for Other Website Components
   ============================================================= */

/* A. Card Hover Elevation & Radiant Glow */
.course-card,
.program-card,
.domain-card,
.testimonial-card,
.why-choose-col {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease !important;
  will-change: transform, box-shadow;
}

.course-card:hover,
.program-card:hover,
.domain-card:hover {
  transform: translateY(-6px) scale(1.008);
  border-color: rgba(16, 185, 129, 0.38) !important;
  box-shadow: 0 20px 48px -12px rgba(16, 185, 129, 0.16),
              0 0 0 1px rgba(16, 185, 129, 0.22) !important;
}

.course-card-img,
.program-card-img,
.domain-card-img {
  transition: transform 0.5s cubic-bezier(0.16, 1, 0.3, 1) !important;
}

.course-card:hover .course-card-img,
.program-card:hover .program-card-img,
.domain-card:hover .domain-card-img {
  transform: scale(1.04);
}

/* B. Button Energetic Shimmer & Icon Micro-Bounce */
.btn-primary:hover i,
.btn-secondary:hover i {
  transform: translateX(3px) scale(1.1);
  transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

.btn-primary {
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.25), transparent);
  transition: left 0.75s ease;
  pointer-events: none;
}

.btn-primary:hover::before {
  left: 100%;
}

/* C. Status Dots & Pill Rippling Pulse Animation */
.status-pulse-dot,
.badge-pill-dot,
.hero-badge-dot {
  position: relative;
  animation: pingPulse 2.2s cubic-bezier(0, 0, 0.2, 1) infinite;
}

@keyframes pingPulse {
  0% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  }
  70% {
    box-shadow: 0 0 0 7px rgba(16, 185, 129, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(16, 185, 129, 0);
  }
}

/* D. Subpage Hero Title Entrance Animation */
.page-hero-title {
  animation: heroTitleTextReveal 0.75s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.page-hero-desc {
  animation: heroTextRevealFade 0.85s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both;
}

@keyframes heroTitleTextReveal {
  0% {
    opacity: 0;
    transform: translateY(16px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes heroTextRevealFade {
  0% {
    opacity: 0;
    transform: translateY(12px);
  }
  100% {
    opacity: 1;
    transform: translateY(0);
  }
}

/* E. Staggered Scroll Entrance Reveal Classes */
.reveal-stagger-1 { transition-delay: 0.04s !important; }
.reveal-stagger-2 { transition-delay: 0.10s !important; }
.reveal-stagger-3 { transition-delay: 0.16s !important; }
.reveal-stagger-4 { transition-delay: 0.22s !important; }
.reveal-stagger-5 { transition-delay: 0.28s !important; }
.reveal-stagger-6 { transition-delay: 0.34s !important; }

/* F. Subtle Hover Lift on Trust Statistics */
.stat-item {
  transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.3s ease;
}

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

/* Accessibility: Reduced Motion */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
  .site-preloader { display: none !important; }
  .typing-cursor-blink { display: none !important; }
  .reveal-on-scroll { opacity: 1 !important; transform: none !important; transition: none !important; }
  .text-reveal { animation: none !important; opacity: 1 !important; transform: none !important; }
  .ambient-glow-orb, .hero-showcase-card, .floating-icon { animation: none !important; }
}
