/* ====================================================================
   ENGLIXIA ACADEMY — PREMIUM FRONTEND THEME REBUILD
   Architecture: Clean, Modern, WordPress-Free, Gold-Restrained
   Palette: White + Navy + Blue (Strictly enforced, no yellow/beige cast)
==================================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Serif+Display:ital@0;1&family=Inter:wght@400;500;600;700&family=Manrope:wght@400;500;600;700;800&display=swap');

/* --------------------------------------------------------------------
   1. CSS VARIABLES (ENGLIXIA MASTER PALETTE)
-------------------------------------------------------------------- */
:root {
  /* Core Brand Colors */
  --ea-navy: #0B1220;
  --ea-navy-light: #162033;
  --ea-navy-dark: #050810;
  
  --ea-blue: #2563EB;
  --ea-blue-strong: #1D4ED8;
  --ea-blue-soft: #DBEAFE;
  --ea-blue-faint: rgba(37, 99, 235, 0.1);
  
  /* Surfaces & Backgrounds */
  --ea-bg: #F8FAFC;
  --ea-paper: #FFFFFF;
  --ea-surface: #F1F5F9;
  
  /* Text Colors */
  --ea-ink: #0F172A;
  --ea-ink-soft: #334155;
  --ea-ink-muted: #64748B;
  
  /* Borders & Lines */
  --ea-line: #E2E8F0;
  --ea-line-dark: rgba(255, 255, 255, 0.12);
  
  /* Status Colors */
  --ea-success: #16A34A;
  --ea-success-text: #166534;
  --ea-success-bg: rgba(22, 163, 74, 0.1);
  --ea-success-border: rgba(22, 163, 74, 0.3);
  --ea-danger: #DC2626;

  /* Layout & FX */
  --ea-shadow-sm: 0 4px 6px -1px rgba(11, 18, 32, 0.05);
  --ea-shadow: 0 10px 25px -5px rgba(11, 18, 32, 0.08);
  --ea-shadow-lg: 0 25px 50px -12px rgba(11, 18, 32, 0.15);
  
  --ea-radius-sm: 8px;
  --ea-radius-md: 12px;
  --ea-radius-lg: 20px;
  --ea-container: 1220px;
  
  --ea-transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

/* --------------------------------------------------------------------
   2. RESETS & BASE
-------------------------------------------------------------------- */
* { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--ea-ink);
  background: var(--ea-bg);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

a { 
  color: inherit; 
  text-decoration: none; 
  transition: var(--ea-transition);
}

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

/* Accessibility: Skip Link */
.ea-skip, .ea-sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.ea-skip:focus {
  position: fixed;
  left: 14px;
  top: 14px;
  width: auto;
  height: auto;
  clip-path: none;
  padding: 12px 24px;
  border-radius: var(--ea-radius-sm);
  background: var(--ea-navy);
  color: #FFFFFF;
  font-weight: 700;
  z-index: 99999;
  box-shadow: var(--ea-shadow);
  outline: 2px solid var(--ea-blue);
  outline-offset: 2px;
}

:focus-visible {
  outline: 2px solid var(--ea-blue);
  outline-offset: 2px;
}

::selection {
  background: rgba(37, 99, 235, 0.2);
  color: var(--ea-navy);
}

/* --------------------------------------------------------------------
   3. LAYOUT CONTAINERS
-------------------------------------------------------------------- */
.ea-container {
  width: min(100% - 2rem, var(--ea-container));
  margin-inline: auto;
}

#ea-header-mount,
#ea-footer-mount {
  width: 100%;
  display: block;
}

.ea-main {
  position: relative;
  z-index: 1;
}

/* --------------------------------------------------------------------
   4. TOPBAR
-------------------------------------------------------------------- */
.ea-topbar {
  background: var(--ea-navy-dark);
  color: rgba(255, 255, 255, 0.8);
  border-bottom: 1px solid var(--ea-line-dark);
}

.ea-topbar * { box-sizing: border-box; }

.ea-topbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 42px;
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.ea-topbar-left, 
.ea-topbar-right {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
}

.ea-topbar-note {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(255, 255, 255, 0.75);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.13em;
  white-space: nowrap;
}

.ea-topbar-note i {
  color: var(--ea-blue);
}

.ea-topbar-right a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 2px;
  color: rgba(255, 255, 255, 0.65);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.ea-topbar-right a:hover,
.ea-topbar-right a:focus-visible { 
  color: #FFFFFF; 
}

/* --------------------------------------------------------------------
   5. HEADER & NAVIGATION
-------------------------------------------------------------------- */
.ea-header {
  position: sticky;
  top: 0;
  z-index: 1600;
  background: rgba(11, 18, 32, 0.98);
  border-bottom: 1px solid var(--ea-line-dark);
  backdrop-filter: blur(12px) saturate(130%);
  -webkit-backdrop-filter: blur(12px) saturate(130%);
  transition: var(--ea-transition);
}

body.admin-bar .ea-header { top: 32px; }
@media (max-width: 782px) { body.admin-bar .ea-header { top: 46px; } }

.ea-header.ea-scrolled {
  box-shadow: 0 14px 36px rgba(5, 8, 16, 0.5);
  border-bottom-color: rgba(37, 99, 235, 0.4);
}

.ea-header-row {
  display: grid;
  grid-template-columns: minmax(150px, 220px) minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  min-height: 82px;
  transition: min-height 0.3s ease;
}

/* Logo */
.ea-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #FFFFFF;
}

.ea-logo-img {
  display: block;
  width: auto;
  height: clamp(48px, 5vw, 64px);
  filter: drop-shadow(0 4px 14px rgba(0, 0, 0, 0.3));
}

.ea-logo-badge {
  width: 46px;
  height: 46px;
  border-radius: var(--ea-radius-sm);
  background: linear-gradient(135deg, rgba(37, 99, 235, 0.2), rgba(37, 99, 235, 0.05));
  border: 1px solid rgba(37, 99, 235, 0.4);
  display: grid;
  place-items: center;
  font-family: 'DM Serif Display', serif;
  font-size: 26px;
  font-weight: 700;
  color: var(--ea-blue-soft);
}

.ea-logo-text {
  display: grid;
  line-height: 1.1;
}

.ea-logo-title {
  font-family: 'DM Serif Display', serif;
  font-size: 27px;
  letter-spacing: 0.02em;
  color: #FFFFFF;
}

.ea-logo-sub {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ea-blue-soft);
  font-weight: 600;
}

/* Desktop Navigation */
.ea-nav {
  justify-self: center;
  display: flex;
  align-items: center;
}

.ea-header ul { margin: 0; padding: 0; list-style: none; }

.ea-nav-list {
  display: flex;
  align-items: center;
  gap: 8px;
}

.ea-nav-item { 
  position: relative; 
}

.ea-nav-link {
  position: relative;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11.5px;
  letter-spacing: 0.11em;
  text-transform: uppercase;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
  color: rgba(255, 255, 255, 0.85);
  background: transparent;
  border: 0;
  cursor: pointer;
  transition: var(--ea-transition);
}

/* FIXED: Removed blue/white capsule backgrounds from active states */
.ea-nav-link:hover,
.ea-nav-item.ea-open > .ea-nav-link,
.ea-nav-link.ea-active {
  color: #FFFFFF;
  background: transparent; 
}

.ea-nav-link:focus-visible {
  color: #FFFFFF;
  background: transparent;
  outline: 2px solid var(--ea-blue);
  outline-offset: 2px;
}

.ea-nav-link::after {
  content: '';
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 4px;
  height: 2px;
  background: var(--ea-blue);
  border-radius: 2px;
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
}

.ea-nav-link:hover::after,
.ea-nav-item.ea-open > .ea-nav-link::after,
.ea-nav-link.ea-active::after { 
  transform: scaleX(1); 
}

.ea-caret {
  color: var(--ea-blue-soft);
  font-size: 10px;
  transition: transform 0.3s ease;
}

.ea-nav-item.ea-open .ea-caret { 
  transform: rotate(180deg); 
}

/* Mega Menu Dropdown */
.ea-mega {
  position: absolute;
  left: 50%;
  top: calc(100% + 10px);
  transform: translate(-50%, 15px);
  width: min(1040px, calc(100vw - 32px));
  background: var(--ea-navy);
  border: 1px solid var(--ea-line-dark);
  border-radius: var(--ea-radius-lg);
  box-shadow: 0 30px 80px rgba(5, 8, 16, 0.6);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  z-index: 1600;
  overflow: hidden;
}

.ea-nav-item.ea-open > .ea-mega,
.ea-nav-item:focus-within > .ea-mega {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.ea-mega-grid {
  display: grid;
  grid-template-columns: 290px 1fr;
}

.ea-mega-side {
  padding: 30px;
  border-right: 1px solid var(--ea-line-dark);
  background: radial-gradient(circle at 15% 12%, rgba(37, 99, 235, 0.15), transparent 60%);
}

.ea-mega-side h3 {
  margin: 0;
  color: #FFFFFF;
  font-family: 'DM Serif Display', serif;
  font-size: 32px;
  line-height: 1.1;
}

.ea-mega-side p {
  margin: 12px 0 0;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.6;
}

.ea-mega-side a {
  margin-top: 16px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--ea-blue-soft);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 700;
}

.ea-mega-side a:hover {
  color: #FFFFFF;
}

.ea-mega-body {
  padding: 28px 26px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.ea-mega-body h4 {
  margin: 0 0 12px;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ea-blue-soft);
  font-family: 'Manrope', sans-serif;
}

.ea-mega-links {
  display: grid;
  gap: 6px;
}

.ea-mega-links a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  border-radius: 8px;
  padding: 8px 10px;
  margin-left: -10px;
}

.ea-mega-links a:hover,
.ea-mega-links a:focus-visible {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.08);
}

/* --------------------------------------------------------------------
   6. HEADER SEARCH & BUTTONS
-------------------------------------------------------------------- */
.ea-head-actions {
  justify-self: end;
  display: grid;
  grid-template-columns: 192px auto auto auto;
  align-items: center;
  gap: 10px;
}

.ea-search {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
  transition: var(--ea-transition);
}

.ea-search:focus-within {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(37, 99, 235, 0.5);
}

.ea-search i {
  color: rgba(255, 255, 255, 0.4);
  font-size: 13px;
}

.ea-search input {
  width: 100%;
  color: #FFFFFF;
  background: transparent;
  border: 0;
  outline: none;
  font-size: 13px;
  font-family: 'Inter', sans-serif;
}

.ea-search input::placeholder {
  color: rgba(255, 255, 255, 0.45);
}

.ea-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 10px;
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  font-family: 'Manrope', sans-serif;
  transition: var(--ea-transition);
  cursor: pointer;
}

.ea-btn-ghost {
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.ea-btn-ghost:hover,
.ea-btn-ghost:focus-visible {
  background: rgba(37, 99, 235, 0.15);
  border-color: rgba(37, 99, 235, 0.5);
}

.ea-btn-primary {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--ea-blue) 0%, var(--ea-blue-strong) 100%);
  border: 1px solid var(--ea-blue-strong);
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
}

.ea-btn-primary:hover,
.ea-btn-primary:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.4);
}

.ea-burger {
  display: none;
  width: 42px;
  height: 42px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: var(--ea-transition);
}

.ea-burger:hover,
.ea-burger:focus-visible {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.4);
}

/* --------------------------------------------------------------------
   7. MOBILE NAVIGATION DRAWER
-------------------------------------------------------------------- */
.ea-mobile {
  position: fixed;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(88vw, 370px);
  background: var(--ea-navy);
  border-right: 1px solid var(--ea-line-dark);
  transform: translateX(-103%);
  transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1);
  z-index: 1800;
  display: grid;
  grid-template-rows: auto 1fr auto;
}

.ea-mobile * { box-sizing: border-box; }

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

.ea-mobile-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 76px;
  padding: 0 16px;
  border-bottom: 1px solid var(--ea-line-dark);
}

.ea-logo-img-mobile {
  height: 42px;
  width: auto;
}

.ea-mobile-close {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
  cursor: pointer;
  transition: var(--ea-transition);
}

.ea-mobile-close:hover {
  background: rgba(220, 38, 38, 0.8);
  border-color: #DC2626;
}

.ea-mobile-body {
  padding: 16px;
  overflow-y: auto;
}

.ea-mobile-group { margin-bottom: 12px; }

.ea-mobile-trigger,
.ea-mobile-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 44px;
  padding: 0 16px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
  color: #FFFFFF;
  font-family: 'Manrope', sans-serif;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  cursor: pointer;
  transition: var(--ea-transition);
}

.ea-mobile-trigger:hover,
.ea-mobile-link:hover,
.ea-mobile-trigger[aria-expanded="true"] {
  background: rgba(255, 255, 255, 0.04);
  border-color: rgba(37, 99, 235, 0.4);
}

/* FIXED: Removed blue background expansion on active mobile accordion */
.ea-mobile-group.ea-open .ea-mobile-trigger {
  color: var(--ea-blue-soft);
  background: transparent; 
  border-color: rgba(37, 99, 235, 0.4);
}

.ea-mobile-panel {
  display: none;
  margin: 8px 0 0 12px;
  padding-left: 16px;
  border-left: 1px solid rgba(37, 99, 235, 0.4);
}

.ea-mobile-panel a {
  display: block;
  padding: 8px 0;
  color: rgba(255, 255, 255, 0.8);
  font-size: 13px;
}

.ea-mobile-panel a:hover {
  color: var(--ea-blue-soft);
}

.ea-mobile-group.ea-open .ea-mobile-panel { display: block; }

.ea-mobile-foot {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  padding: 16px;
  border-top: 1px solid var(--ea-line-dark);
}

/* Mobile Overlay Background */
.ea-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5, 8, 16, 0.8);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease;
  z-index: 1700;
}

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

/* --------------------------------------------------------------------
   8. HERO SECTION
-------------------------------------------------------------------- */
.ea-hero {
  position: relative;
  background: var(--ea-navy);
  color: #FFFFFF;
  padding: clamp(60px, 10vw, 120px) 0 clamp(50px, 8vw, 100px);
  overflow: hidden;
}

.ea-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: 
    radial-gradient(circle at 10% 0%, rgba(37, 99, 235, 0.2), transparent 40%),
    radial-gradient(circle at 90% 100%, rgba(37, 99, 235, 0.1), transparent 40%);
  z-index: 0;
}

.ea-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  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);
  background-size: 42px 42px;
  mask-image: radial-gradient(circle at 50% 50%, black, transparent 80%);
  pointer-events: none;
  z-index: 0;
}

.ea-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  gap: clamp(24px, 4vw, 40px);
  align-items: center;
}

.ea-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid rgba(37, 99, 235, 0.4);
  background: rgba(37, 99, 235, 0.15);
  color: var(--ea-blue-soft);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-weight: 700;
  margin-bottom: 16px;
}

.ea-hero h1 {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(40px, 6.2vw, 86px);
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.ea-hero h1 span { 
  color: var(--ea-blue-soft); 
}

.ea-hero p {
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(16px, 1.4vw, 20px);
  line-height: 1.7;
  max-width: 62ch;
}

.ea-hero-actions {
  margin-top: 32px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* Floating Metrics Panel (Hero Right) */
.ea-panel {
  border-radius: var(--ea-radius-lg);
  border: 1px solid rgba(255, 255, 255, 0.15);
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: 0 25px 60px rgba(5, 8, 16, 0.4);
}

.ea-panel h3 {
  margin: 0;
  font-size: 26px;
  font-family: 'Manrope', sans-serif;
  font-weight: 700;
}

.ea-metrics {
  margin-top: 20px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ea-metric {
  border-radius: var(--ea-radius-sm);
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.05);
  padding: 16px;
  transition: var(--ea-transition);
}
.ea-metric:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(37, 99, 235, 0.3);
}

.ea-metric strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  color: var(--ea-blue-soft);
  font-size: clamp(26px, 3vw, 32px);
  line-height: 1;
}

.ea-metric span {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  color: rgba(255, 255, 255, 0.8);
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

/* --------------------------------------------------------------------
   9. SECTIONS & GRIDS
-------------------------------------------------------------------- */
.ea-section {
  padding: clamp(60px, 8vw, 100px) 0;
}

.ea-section.ea-light { background: var(--ea-bg); }
.ea-section.ea-paper { background: var(--ea-paper); }

.ea-tag {
  display: block;
  margin: 0 0 12px;
  color: var(--ea-blue-strong);
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.15em;
  font-weight: 800;
}

.ea-title {
  margin: 0;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4vw, 56px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--ea-ink);
}

.ea-intro {
  margin: 16px 0 0;
  color: var(--ea-ink-soft);
  max-width: 68ch;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.7;
}

.ea-grid-2,
.ea-grid-3,
.ea-grid-4 {
  display: grid;
  gap: clamp(16px, 2vw, 24px);
  margin-top: 40px;
}

.ea-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ea-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ea-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* --------------------------------------------------------------------
   10. CARDS
-------------------------------------------------------------------- */
.ea-card {
  background: var(--ea-paper);
  border: 1px solid var(--ea-line);
  border-radius: var(--ea-radius-md);
  padding: clamp(24px, 3vw, 32px);
  box-shadow: var(--ea-shadow-sm);
  transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.ea-card:hover {
  transform: translateY(-6px);
  border-color: rgba(37, 99, 235, 0.4);
  box-shadow: var(--ea-shadow-lg);
}

.ea-card-dark {
  background: var(--ea-navy);
  border-color: var(--ea-line-dark);
  color: #FFFFFF;
  box-shadow: 0 15px 35px rgba(5, 8, 16, 0.15);
}
.ea-card-dark:hover {
  border-color: rgba(37, 99, 235, 0.5);
  box-shadow: 0 20px 45px rgba(5, 8, 16, 0.25);
}

.ea-card h3 {
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(20px, 1.8vw, 24px);
  font-weight: 700;
  line-height: 1.3;
}

.ea-card p {
  margin: 12px 0 0;
  color: var(--ea-ink-muted);
  font-size: 15px;
  line-height: 1.6;
  flex-grow: 1;
}
.ea-card-dark p { color: rgba(255, 255, 255, 0.7); }

.ea-icon {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--ea-blue-faint);
  border: 1px solid rgba(37, 99, 235, 0.2);
  color: var(--ea-blue-strong);
  margin-bottom: 20px;
  font-size: 22px;
}
.ea-card-dark .ea-icon {
  background: rgba(255, 255, 255, 0.05);
  border-color: rgba(255, 255, 255, 0.15);
  color: var(--ea-blue-soft);
}

.ea-list {
  margin: 20px 0 0;
  padding-left: 20px;
  color: var(--ea-ink-soft);
}
.ea-card-dark .ea-list { color: rgba(255, 255, 255, 0.8); }

.ea-list li { 
  margin-top: 8px; 
  font-size: 14px;
}

.ea-meta {
  margin-top: 24px;
  display: grid;
  gap: 12px;
}

.ea-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--ea-line);
  border-radius: var(--ea-radius-sm);
  padding: 12px 16px;
  background: var(--ea-bg);
}
.ea-card-dark .ea-meta-row {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.1);
}

.ea-meta-row span { color: var(--ea-ink-muted); font-size: 13px; }
.ea-card-dark .ea-meta-row span { color: rgba(255, 255, 255, 0.6); }

.ea-meta-row strong { font-family: 'Manrope', sans-serif; font-size: 14px; font-weight: 700; }
.ea-card-dark .ea-meta-row strong { color: #FFFFFF; }

/* Statistic Counter Blocks */
.ea-counter {
  text-align: center;
  border-radius: var(--ea-radius-md);
  padding: 32px 24px;
  border: 1px solid var(--ea-line);
  background: var(--ea-paper);
  box-shadow: var(--ea-shadow-sm);
}

.ea-counter strong {
  display: block;
  font-family: 'Manrope', sans-serif;
  color: var(--ea-blue-strong);
  font-size: clamp(36px, 4vw, 52px);
  line-height: 1;
}

.ea-counter span {
  display: block;
  margin-top: 12px;
  color: var(--ea-ink-soft);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

/* --------------------------------------------------------------------
   11. TESTIMONIALS SLIDER
-------------------------------------------------------------------- */
.ea-testimonials {
  position: relative;
  overflow: hidden;
  border-radius: var(--ea-radius-lg);
  background: var(--ea-navy);
  color: #FFFFFF;
  padding: clamp(32px, 4vw, 48px);
}

.ea-testimonial-track {
  display: flex;
  transition: transform 0.5s cubic-bezier(0.25, 1, 0.5, 1);
}

.ea-testimonial { 
  min-width: 100%; 
  padding-right: 24px;
}

.ea-quote {
  margin: 0;
  font-size: clamp(18px, 2vw, 24px);
  font-family: 'DM Serif Display', serif;
  line-height: 1.5;
  color: #FFFFFF;
}

.ea-quote-footer {
  margin-top: 20px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 600;
}

.ea-slider-controls {
  margin-top: 24px;
  display: flex;
  gap: 12px;
}

.ea-slider-btn {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #FFFFFF;
  background: rgba(255, 255, 255, 0.05);
  display: grid;
  place-items: center;
  cursor: pointer;
  transition: var(--ea-transition);
}

.ea-slider-btn:hover,
.ea-slider-btn:focus-visible { 
  border-color: var(--ea-blue); 
  background: var(--ea-blue); 
}

/* --------------------------------------------------------------------
   12. CALL TO ACTION (CTA) BANNER
-------------------------------------------------------------------- */
.ea-cta {
  border-radius: var(--ea-radius-lg);
  background: var(--ea-navy);
  background-image: radial-gradient(circle at 12% 12%, rgba(37, 99, 235, 0.2), transparent 50%);
  border: 1px solid rgba(37, 99, 235, 0.3);
  color: #FFFFFF;
  padding: clamp(32px, 5vw, 56px);
  text-align: center;
  box-shadow: var(--ea-shadow-lg);
}

.ea-cta h3 {
  margin: 0 auto;
  font-family: 'DM Serif Display', serif;
  font-size: clamp(32px, 4vw, 48px);
  line-height: 1.1;
  max-width: 20ch;
}

.ea-cta p { 
  margin: 16px auto 0; 
  color: rgba(255, 255, 255, 0.8); 
  font-size: 18px;
  max-width: 50ch;
}

.ea-cta .ea-hero-actions {
  justify-content: center;
  margin-top: 32px;
}

/* --------------------------------------------------------------------
   13. FAQ ACCORDION
-------------------------------------------------------------------- */
.ea-faq-list {
  display: grid;
  gap: 12px;
  max-width: 800px;
  margin: 0 auto;
}

.ea-faq-item {
  border: 1px solid var(--ea-line);
  border-radius: var(--ea-radius-sm);
  background: var(--ea-paper);
  overflow: hidden;
  transition: var(--ea-transition);
}

.ea-faq-item:hover {
  border-color: rgba(37, 99, 235, 0.3);
}

.ea-faq-q {
  width: 100%;
  border: 0;
  background: transparent;
  color: var(--ea-navy);
  min-height: 64px;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 16px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: var(--ea-transition);
}

.ea-faq-q:focus-visible {
  background: var(--ea-bg);
  outline: none;
  box-shadow: inset 0 0 0 2px var(--ea-blue);
}

.ea-faq-a {
  display: none;
  padding: 0 20px 20px;
  color: var(--ea-ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

.ea-faq-item.ea-open {
  border-color: var(--ea-blue);
  box-shadow: var(--ea-shadow-md);
}

.ea-faq-item.ea-open .ea-faq-q {
  color: var(--ea-blue-strong);
}

.ea-faq-item.ea-open .ea-faq-a { 
  display: block; 
}

.ea-faq-item.ea-open .ea-faq-q i,
.ea-faq-item.ea-open .ea-faq-q svg { 
  transform: rotate(180deg); 
  color: var(--ea-blue);
}

/* --------------------------------------------------------------------
   14. FORMS
-------------------------------------------------------------------- */
.ea-form {
  display: grid;
  gap: 16px;
  background: var(--ea-paper);
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--ea-radius-lg);
  border: 1px solid var(--ea-line);
  box-shadow: var(--ea-shadow-md);
}

.ea-field {
  display: grid;
  gap: 8px;
}

.ea-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ea-navy);
}

.ea-field input,
.ea-field select,
.ea-field textarea {
  width: 100%;
  border-radius: 10px;
  border: 1px solid var(--ea-line);
  background: var(--ea-bg);
  color: var(--ea-ink);
  min-height: 48px;
  padding: 12px 16px;
  font-family: inherit;
  font-size: 15px;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.ea-field input:focus,
.ea-field select:focus,
.ea-field textarea:focus {
  outline: none;
  border-color: var(--ea-blue);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
  background: var(--ea-paper);
}

.ea-field textarea { 
  min-height: 120px; 
  resize: vertical; 
}

/* Form Messaging */
.ea-form-msg {
  display: none;
  border-radius: 10px;
  border: 1px solid var(--ea-success-border);
  background: var(--ea-success-bg);
  color: var(--ea-success-text);
  padding: 14px 16px;
  font-size: 14px;
  font-weight: 500;
}

.ea-form-msg.ea-active { display: block; }

/* --------------------------------------------------------------------
   15. ANIMATIONS & REVEALS
-------------------------------------------------------------------- */
.ea-reveal {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.ea-reveal.ea-visible {
  opacity: 1;
  transform: translateY(0);
}

/* --------------------------------------------------------------------
   16. FOOTER
-------------------------------------------------------------------- */
.ea-footer {
  background: var(--ea-navy);
  color: #FFFFFF;
  border-top: 1px solid var(--ea-line-dark);
}

.ea-footer * { box-sizing: border-box; }

.ea-footer-program-strip {
  background: var(--ea-navy-dark);
  border-bottom: 1px solid var(--ea-line-dark);
  padding: clamp(40px, 5vw, 60px) 0;
}

.ea-footer-program-strip h3 {
  text-align: center;
  color: var(--ea-blue);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin: 0;
  font-family: 'Manrope', sans-serif;
  font-size: clamp(22px, 2.5vw, 34px);
}

.ea-footer-program-strip p {
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px;
  max-width: 1100px;
  margin: 18px auto 0;
}

.ea-footer-program-strip a {
  color: rgba(255, 255, 255, 0.75);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 600;
}

.ea-footer-program-strip a:hover {
  color: #FFFFFF;
}

.ea-footer-program-strip span {
  color: rgba(255, 255, 255, 0.3);
  font-size: 12px;
}

.ea-footer-status {
  background: var(--ea-navy-dark);
  border-top: 1px solid var(--ea-line-dark);
  border-bottom: 1px solid var(--ea-line-dark);
}

.ea-footer-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  min-height: 54px;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
}

.ea-status-left, 
.ea-status-right {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: rgba(255, 255, 255, 0.7);
}

.ea-status-left strong { color: var(--ea-success); }
.ea-status-right { color: var(--ea-blue); }

.ea-divider { color: rgba(255, 255, 255, 0.3); }

.ea-live-dot {
  background: var(--ea-success);
  border-radius: 50%;
  width: 8px;
  height: 8px;
  box-shadow: 0 0 10px rgba(22, 163, 74, 0.6);
}

.ea-footer-main {
  padding: clamp(50px, 6vw, 80px) 0;
}

.ea-footer-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr)) minmax(240px, 320px);
  gap: clamp(24px, 3vw, 40px);
}

.ea-footer h4 {
  margin: 0 0 16px;
  font-family: 'Manrope', sans-serif;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--ea-blue-soft);
}

.ea-footer p,
.ea-footer li,
.ea-footer a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 14px;
  line-height: 1.7;
}

.ea-footer ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 12px;
}

.ea-footer a {
  display: inline-block;
}

.ea-footer a:hover,
.ea-footer a:focus-visible { 
  color: #FFFFFF; 
}

.ea-footer-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--ea-radius-md);
  padding: 24px;
}

.ea-footer-card-label {
  margin: 0;
  color: rgba(255, 255, 255, 0.6);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 11px;
  font-weight: 700;
}

.ea-footer-card-time {
  margin: 10px 0 20px;
  color: #FFFFFF;
  font-family: 'Manrope', sans-serif;
  font-size: 28px;
  font-weight: 800;
  line-height: 1;
}

.ea-footer-portal {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  width: 100%;
  min-height: 50px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--ea-blue), var(--ea-blue-strong));
  color: #FFFFFF;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 10px 24px rgba(37, 99, 235, 0.3);
  transition: var(--ea-transition);
}

.ea-footer-portal:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.4);
}

.ea-footer-contact {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  font-size: 12px;
  font-weight: 600;
}

.ea-socials {
  margin-top: 20px;
  display: inline-flex;
  flex-wrap: wrap;
  gap: 12px;
}

.ea-socials a {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.15);
  display: grid;
  place-items: center;
  transition: var(--ea-transition);
}

.ea-socials a:hover,
.ea-socials a:focus-visible {
  border-color: var(--ea-blue);
  background: var(--ea-blue);
  color: #FFFFFF;
}

.ea-footer-bottom {
  border-top: 1px solid var(--ea-line-dark);
  padding: 24px 0;
  text-align: center;
}

.ea-footer-bottom p {
  margin: 0;
  color: rgba(255, 255, 255, 0.5);
  font-size: 13px;
  line-height: 1.6;
}

.ea-footer-bottom span {
  display: block;
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 14px;
  font-weight: 700;
}

/* --------------------------------------------------------------------
   17. ALTERNATE ENX COMPONENTS MAPPED TO MASTER (PREMIUM MAP)
-------------------------------------------------------------------- */
/* FIXED: Mapped legacy gold buttons cleanly into modern blue to prevent JS/HTML breakages */
a.enx-btn-gold, a.enx-btn-gold:link, a.enx-btn-gold:visited, a.enx-btn-gold:active,
a.eglx-btn-gold, a.eglx-btn-gold:link, a.eglx-btn-gold:visited, a.eglx-btn-gold:active {
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--ea-blue) 0%, var(--ea-blue-strong) 100%);
  border: 1px solid var(--ea-blue-strong);
}

a.enx-btn-gold:hover, a.eglx-btn-gold:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.4);
}

#enx-header-master {
  position: sticky;
  top: 0;
  z-index: 1500;
}

/* FIXED: Replaced hardcoded legacy hex codes with authoritative --ea CSS tokens */
#enx-header-master .enx-top-bar {
  background: var(--ea-bg);
  border-bottom: 1px solid rgba(11, 18, 32, 0.08);
  padding: 8px 0;
  font-size: 12px;
  color: var(--ea-ink-muted);
}

#enx-header-master .enx-top-bar a {
  color: var(--ea-ink-muted);
  text-decoration: none;
  padding: 0 12px;
  transition: color 0.2s ease;
}

#enx-header-master .enx-top-bar a:hover { 
  color: var(--ea-blue); 
}

#enx-header-master .enx-navbar {
  background: var(--ea-navy);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  padding: 0 24px;
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--ea-shadow-sm);
}

#enx-header-master .enx-nav-menu {
  display: flex;
  align-items: center;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}

#enx-header-master .enx-nav-link {
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 600;
  color: #FFFFFF;
  text-decoration: none;
  border-radius: 8px;
  transition: var(--ea-transition);
}

#enx-header-master .enx-nav-link:hover,
#enx-header-master .enx-nav-link.active {
  color: var(--ea-blue);
  background: transparent;
}

#enx-header-master .enx-cta-group {
  display: flex;
  align-items: center;
  gap: 12px;
}

#enx-header-master .enx-btn-login {
  padding: 10px 20px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ea-ink);
  border: 1px solid var(--ea-line);
  border-radius: 8px;
  background: #FFFFFF;
  cursor: pointer;
  transition: var(--ea-transition);
}

#enx-header-master .enx-btn-login:hover {
  border-color: var(--ea-blue);
  color: var(--ea-blue);
}

#enx-header-master .enx-btn-join {
  padding: 10px 24px;
  font-size: 13px;
  font-weight: 700;
  color: #FFFFFF;
  background: linear-gradient(135deg, var(--ea-blue), var(--ea-blue-strong));
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: var(--ea-transition);
}

#enx-header-master .enx-btn-join:hover {
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.3);
  transform: translateY(-1px);
}

.enx-footer-body {
  background: var(--ea-navy);
  color: rgba(255, 255, 255, 0.7);
  padding: 64px 0 0;
  border-top: 1px solid var(--ea-line-dark);
}

.enx-footer-body a {
  color: rgba(255, 255, 255, 0.7);
  transition: color 0.2s ease;
}
.enx-footer-body a:hover { color: #FFFFFF; }

.enx-footer-body .enx-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
  gap: 40px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

.enx-footer-body .enx-col-head {
  font-size: 13px;
  font-weight: 700;
  color: var(--ea-blue-soft); 
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 16px;
}

.enx-footer-body .enx-nav-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.enx-footer-body .enx-nav-list li { margin-bottom: 10px; }
.enx-footer-body .enx-nav-list a { font-size: 14px; }

.enx-footer-body .enx-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  margin-top: 48px;
  padding: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

/* --------------------------------------------------------------------
   18. RESPONSIVE BREAKPOINTS
-------------------------------------------------------------------- */
@media (max-width: 1240px) {
  .ea-nav-link { letter-spacing: 0.1em; font-size: 11px; }
  .ea-head-actions { grid-template-columns: 170px auto auto auto; }
  .ea-topbar-right { gap: 10px; }
  .ea-topbar-right a { font-size: 9.5px; }
}

@media (max-width: 1120px) {
  .ea-nav, 
  .ea-search, 
  .ea-head-actions .ea-btn-ghost, 
  .ea-head-actions .ea-btn-primary { display: none; }
  
  .ea-burger { display: inline-flex; }
  .ea-head-actions { grid-template-columns: auto; }
  .ea-header-row { grid-template-columns: auto 1fr auto; }
}

@media (max-width: 980px) {
  .ea-topbar-row {
    flex-direction: column;
    justify-content: center;
    gap: 8px;
    padding: 12px 0;
  }
}

@media (max-width: 920px) {
  .ea-topbar { display: none; }
  .ea-header-row { min-height: 72px; }
  
  .ea-footer-status-row {
    flex-direction: column;
    justify-content: center;
    text-align: center;
    padding: 16px 0;
    gap: 12px;
  }
  
  .ea-footer-grid { grid-template-columns: 1fr; }
  .ea-footer-card { order: -1; }
}

@media (max-width: 768px) {
  .enx-footer-body .enx-grid { grid-template-columns: 1fr; gap: 32px; }
  #enx-header-master .enx-nav-menu { display: none; }
  .enx-footer-body .enx-bottom { flex-direction: column; gap: 16px; text-align: center; }
}

@media (max-width: 700px) {
  .ea-footer-program-strip p { gap: 8px; }
  .ea-footer-program-strip a { font-size: 11px; }
  .ea-socials { flex-wrap: nowrap; justify-content: flex-start; }
  .ea-socials a { width: 40px; height: 40px; }
}

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