/**
 * EPW homepage v4.
 *
 * Scoped under .e4 so the live homepage and every other page are unaffected.
 * Palette: brand violet (#754ffe, from theme.min.css) on a slate neutral ramp,
 * with a deep navy hero. System font stack — no web-font round trip.
 */

.e4 {
  --e4-brand: #754ffe;
  --e4-brand-rgb: 117, 79, 254;
  --e4-brand-hover: #6338f5;
  --e4-brand-050: #f6f3ff;
  --e4-brand-100: #ede9fe;
  --e4-brand-200: #c8b9ff;
  --e4-brand-ink: #2f2066;

  --e4-night: #0d0b2b;
  --e4-night-2: #1a1547;
  --e4-night-3: #241a55;

  --e4-ink: #0f172a;
  --e4-ink-2: #1e293b;
  --e4-body: #475569;
  --e4-muted: #64748b;
  --e4-faint: #94a3b8;
  --e4-line: #e2e8f0;
  --e4-line-soft: #eef2f7;
  --e4-surface: #fff;
  --e4-canvas: #f8fafc;

  --e4-accent: #22c55e;
  --e4-gold: #f59e0b;

  --e4-r-sm: 10px;
  --e4-r-md: 14px;
  --e4-r-lg: 20px;
  --e4-r-xl: 28px;

  --e4-shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .06);
  --e4-shadow-md: 0 4px 12px -2px rgba(15, 23, 42, .07), 0 12px 28px -8px rgba(15, 23, 42, .1);
  --e4-shadow-lg: 0 24px 50px -16px rgba(13, 11, 43, .28), 0 8px 16px -8px rgba(13, 11, 43, .12);
  --e4-shadow-brand: 0 10px 26px -8px rgba(var(--e4-brand-rgb), .5);

  --e4-ease: cubic-bezier(.22, .68, .34, 1);

  position: relative;
  background: var(--e4-surface);
  color: var(--e4-body);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
  line-height: 1.6;
}

.e4 *, .e4 *::before, .e4 *::after { box-sizing: border-box; }
:where(.e4 a) { color: inherit; text-decoration: none; }
.e4 img { max-width: 100%; }
.e4 :focus-visible { outline: 2px solid var(--e4-brand); outline-offset: 3px; border-radius: 4px; }
.e4 ::selection { background: var(--e4-brand-100); color: var(--e4-brand-ink); }
.e4 h1, .e4 h2, .e4 h3, .e4 h4 { color: var(--e4-ink); margin: 0; letter-spacing: -.01em; }
.e4 p { margin: 0; }
.e4 ul, .e4 ol { margin: 0; padding: 0; list-style: none; }

/* Sticky navbar softening (cosmetic only, applies while this page is shown). */
body:has(.e4) .navbar {
  background: rgba(255, 255, 255, .88) !important;
  backdrop-filter: saturate(160%) blur(12px);
  -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid var(--e4-line, #e2e8f0);
  box-shadow: none;
}
/* Sticky CTA bar needs breathing room on mobile so the footer isn't covered. */
@media (max-width: 991.98px) { body:has(.e4) { padding-bottom: 68px; } }

/* ── Layout ──────────────────────────────────────────────────────────── */

.e4-wrap { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
@media (min-width: 576px) { .e4-wrap { width: min(1200px, 100% - 4rem); } }

.e4-section { padding: clamp(3.25rem, 2rem + 4.5vw, 6rem) 0; }
.e4-section--canvas { background: var(--e4-canvas); border-block: 1px solid var(--e4-line-soft); }
.e4-center { display: flex; justify-content: center; margin-top: 2.25rem; }

.e4-head { max-width: 720px; margin-bottom: clamp(1.75rem, 1rem + 2vw, 3rem); }
.e4-head--center { margin-inline: auto; text-align: center; }
.e4-head--split { max-width: none; display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; }
.e4-head--split > div:first-child { max-width: 680px; }

.e4-eyebrow {
  display: inline-flex; align-items: center; gap: .45rem;
  font-size: .78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--e4-brand); margin-bottom: .75rem;
}
.e4-eyebrow--light { color: var(--e4-brand-200); }
.e4-h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 800; line-height: 1.15; }
.e4-lead { margin-top: .75rem; font-size: 1.08rem; color: var(--e4-muted); max-width: 62ch; }
.e4-head--center .e4-lead { margin-inline: auto; }
.e4-empty { color: var(--e4-muted); padding: 1rem 0; grid-column: 1 / -1; }

/* ── Buttons ─────────────────────────────────────────────────────────── */

.e4-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: 999px; font-weight: 700; font-size: .98rem;
  line-height: 1.2; border: 1.5px solid transparent; cursor: pointer; white-space: nowrap;
  transition: transform .18s var(--e4-ease), box-shadow .18s var(--e4-ease), background .18s, color .18s, border-color .18s;
}
.e4-btn:hover { transform: translateY(-1px); }
.e4-btn:active { transform: translateY(0); }
.e4-btn--sm { padding: .6rem 1rem; font-size: .9rem; }
.e4-btn--lg { padding: 1rem 1.7rem; font-size: 1.05rem; }
.e4-btn--primary { background: var(--e4-brand); color: #fff; box-shadow: var(--e4-shadow-brand); }
.e4-btn--primary:hover { background: var(--e4-brand-hover); color: #fff; }
.e4-btn--dark { background: var(--e4-ink); color: #fff; }
.e4-btn--dark:hover { background: #000; color: #fff; }
.e4-btn--outline { background: #fff; color: var(--e4-brand-ink); border-color: var(--e4-line); }
.e4-btn--outline:hover { border-color: var(--e4-brand); color: var(--e4-brand); background: var(--e4-brand-050); }
.e4-btn--ghost { background: var(--e4-brand-050); color: var(--e4-brand-ink); }
.e4-btn--ghost:hover { background: var(--e4-brand-100); color: var(--e4-brand-ink); }
.e4-btn--white { background: #fff; color: var(--e4-brand-ink); }
.e4-btn--white:hover { background: var(--e4-brand-050); color: var(--e4-brand-ink); }
.e4-btn--glass { background: rgba(255, 255, 255, .12); color: #fff; border-color: rgba(255, 255, 255, .3); }
.e4-btn--glass:hover { background: rgba(255, 255, 255, .2); color: #fff; }

.e4-textlink { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--e4-brand); }
.e4-textlink:hover { color: var(--e4-brand-hover); text-decoration: underline; }

.e4-chip {
  display: inline-flex; align-items: center; gap: .35rem; padding: .4rem .85rem;
  border-radius: 999px; font-size: .88rem; font-weight: 600;
  background: #fff; color: var(--e4-brand-ink); border: 1px solid var(--e4-line); box-shadow: var(--e4-shadow-sm);
  transition: background .15s, border-color .15s;
}
.e4-chip:hover { background: var(--e4-brand-050); border-color: var(--e4-brand-200); color: var(--e4-brand); }

/* ── Hero ────────────────────────────────────────────────────────────── */

.e4-hero {
  position: relative; isolation: isolate; color: var(--e4-body);
  background: #fbfaff;
  padding: clamp(3rem, 2rem + 4vw, 5.5rem) 0 clamp(3.25rem, 2rem + 4vw, 6rem);
  /* No overflow clip here (the decorative layers are clipped by .e4-hero__bg),
     and z-index above the stats band so the finder dropdown can overlap it. */
  z-index: 2;
}
/* Background composition: base gradient → drifting aurora blobs → light beam
   → dotted grid + grain → orbit rings → skyline silhouette + ground glow.
   Everything is CSS or one inline SVG, so it costs zero network requests. */
.e4-hero__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden;
  background: linear-gradient(165deg, #ffffff 0%, #faf8ff 48%, #f4f8ff 100%);
}
/* dotted grid, faded toward the edges */
.e4-hero__bg::before { content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(rgba(47,32,102,.14) 1px, transparent 1.4px);
  background-size: 28px 28px;
  opacity: .35;
  -webkit-mask-image: radial-gradient(75% 80% at 45% 35%, #000 20%, transparent 100%);
  mask-image: radial-gradient(75% 80% at 45% 35%, #000 20%, transparent 100%);
}
/* film grain */
.e4-hero__bg::after { content: ""; position: absolute; inset: 0; opacity: .05; mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 .6 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.e4-hero__blob { position: absolute; border-radius: 50%; will-change: transform; filter: saturate(120%); }
.e4-hero__blob--a { width: 62vw; max-width: 900px; aspect-ratio: 1; left: -18vw; top: -34vw;
  background: radial-gradient(circle, rgba(var(--e4-brand-rgb), .18) 0%, rgba(var(--e4-brand-rgb), .06) 38%, transparent 68%);
  animation: e4-drift-a 22s ease-in-out infinite alternate; }
.e4-hero__blob--b { width: 48vw; max-width: 720px; aspect-ratio: 1; right: -14vw; bottom: -28vw;
  background: radial-gradient(circle, rgba(14, 165, 233, .15) 0%, rgba(14, 165, 233, .05) 40%, transparent 70%);
  animation: e4-drift-b 26s ease-in-out infinite alternate; }
.e4-hero__blob--c { width: 30vw; max-width: 460px; aspect-ratio: 1; left: 44%; top: 8%;
  background: radial-gradient(circle, rgba(244, 114, 182, .12) 0%, rgba(244, 114, 182, .04) 40%, transparent 70%);
  animation: e4-drift-c 30s ease-in-out infinite alternate; }
@keyframes e4-drift-a { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(6vw, 4vw, 0) scale(1.08); } }
@keyframes e4-drift-b { from { transform: translate3d(0,0,0) scale(1); } to { transform: translate3d(-5vw, -3vw, 0) scale(1.1); } }
@keyframes e4-drift-c { from { transform: translate3d(0,0,0); } to { transform: translate3d(-8vw, 5vw, 0); } }

/* diagonal light beam */
.e4-hero__beam { position: absolute; left: 30%; top: -40%; width: 26vw; min-width: 260px; height: 190%;
  transform: rotate(28deg); transform-origin: center;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.55) 45%, rgba(255,255,255,.85) 50%, rgba(255,255,255,.55) 55%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
  mask-image: linear-gradient(to bottom, transparent, #000 25%, #000 75%, transparent);
}

/* orbit rings behind the advisor card */
.e4-hero__rings { position: absolute; right: -6%; top: 50%; width: min(58vw, 720px); aspect-ratio: 1;
  transform: translateY(-50%); border-radius: 50%; border: 1px solid rgba(47,32,102,.09); }
.e4-hero__rings::before, .e4-hero__rings::after { content: ""; position: absolute; inset: 11%; border-radius: 50%; border: 1px solid rgba(47,32,102,.09); }
.e4-hero__rings::after { inset: 24%; border: 1px dashed rgba(var(--e4-brand-rgb),.38); animation: e4-spin 90s linear infinite; }
@keyframes e4-spin { to { transform: rotate(360deg); } }

/* ground glow + skyline */
.e4-hero__ground { position: absolute; left: 0; right: 0; bottom: 0; height: 46%;
  background: linear-gradient(to top, rgba(var(--e4-brand-rgb), .07), rgba(var(--e4-brand-rgb), .015) 55%, transparent); }
.e4-hero__skyline { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: clamp(120px, 16vw, 240px); display: block; }
@media (max-width: 991.98px) {
  .e4-hero__rings { display: none; }
  .e4-hero__blob--c { display: none; }
  .e4-hero__skyline { height: 110px; opacity: .8; }
}
/* minmax(0, …) tracks + min-width:0 children stop the <select> elements'
   long option labels from widening the layout on small screens. */
.e4-hero__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2.5rem; align-items: start; }
.e4-hero__grid > * { min-width: 0; }
@media (min-width: 992px) { .e4-hero__grid { grid-template-columns: minmax(0, 1.6fr) minmax(320px, .9fr); gap: 3.5rem; align-items: center; } }

.e4-hero .e4-eyebrow { color: var(--e4-brand); }
.e4-hero h1 { color: var(--e4-ink); font-size: clamp(2.1rem, 1.3rem + 3vw, 3.6rem); font-weight: 800; line-height: 1.08; letter-spacing: -.025em; max-width: 18ch; }
.e4-hl { background: linear-gradient(90deg, var(--e4-brand), #0ea5e9); -webkit-background-clip: text; background-clip: text; color: transparent; }
.e4-hero__lead { margin-top: 1.25rem; font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem); color: var(--e4-body); max-width: 58ch; }

/* Finder */
.e4-finder { margin-top: 1.75rem; position: relative; z-index: 5; }
/* The keyword field is static so the suggestions panel positions against the
   whole finder bar and spans its full width instead of just the one field. */
.e4-finder .e4-field.e4-field--grow { position: static; }
.e4-finder__row {
  display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; padding: .6rem;
  background: #fff; border-radius: var(--e4-r-lg); box-shadow: var(--e4-shadow-lg); border: 1px solid var(--e4-line);
}
.e4-finder__row > * { min-width: 0; }
@media (min-width: 768px) { .e4-finder__row { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr) auto; align-items: stretch; } }
.e4-field { position: relative; display: flex; flex-direction: column; gap: .15rem; padding: .55rem .9rem; border-radius: var(--e4-r-md); background: var(--e4-canvas); border: 1px solid var(--e4-line-soft); min-width: 0; }
.e4-field:focus-within { border-color: var(--e4-brand-200); background: #fff; box-shadow: 0 0 0 3px rgba(var(--e4-brand-rgb), .12); }
.e4-field label { display: flex; align-items: center; gap: .35rem; font-size: .72rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--e4-muted); }
.e4-field input, .e4-field select {
  width: 100%; border: 0; background: transparent; padding: 0; margin: 0; font: inherit; font-size: .98rem; font-weight: 600; color: var(--e4-ink);
  outline: none; -webkit-appearance: none; appearance: none; min-height: 1.6rem;
}
.e4-field select { cursor: pointer; padding-right: 1.2rem; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 16 16'%3E%3Cpath fill='%2364748b' d='M1.6 5.6a.8.8 0 0 1 1.1 0L8 10.9l5.3-5.3a.8.8 0 1 1 1.1 1.1l-5.8 5.9a.8.8 0 0 1-1.2 0L1.6 6.7a.8.8 0 0 1 0-1.1z'/%3E%3C/svg%3E") no-repeat right center;
}
.e4-field input::placeholder { color: var(--e4-faint); font-weight: 500; }
.e4-field input[type="search"]::-webkit-search-decoration, .e4-field input[type="search"]::-webkit-search-cancel-button { -webkit-appearance: none; }
.e4-finder__go { border-radius: var(--e4-r-md); min-height: 100%; }

.e4-ac {
  position: absolute; left: 0; right: 0; top: calc(100% + 10px); z-index: 30;
  background: #fff; border: 1px solid var(--e4-line); border-radius: var(--e4-r-lg); box-shadow: var(--e4-shadow-lg);
  padding: .5rem; max-height: 420px; overflow: auto;
}
.e4-ac a { display: flex; align-items: center; gap: .85rem; padding: .75rem .9rem; border-radius: 10px; color: var(--e4-ink); font-size: 1rem; }
.e4-ac a:hover, .e4-ac a.is-active { background: var(--e4-brand-050); }
.e4-ac__ico { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; background: var(--e4-brand-100); color: var(--e4-brand); flex: none; font-size: 1.05rem; }
.e4-ac__txt { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.e4-ac__tag { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--e4-faint); }

.e4-popular { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; margin-top: 1.1rem; font-size: .9rem; }
.e4-popular > span { color: var(--e4-muted); font-weight: 600; margin-right: .2rem; }

.e4-trust { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1.75rem; font-size: .92rem; font-weight: 600; color: var(--e4-ink-2); }
.e4-trust li { display: inline-flex; align-items: center; gap: .45rem; }
.e4-trust i { color: #16a34a; }

/* Advisor card */
.e4-advisor {
  background: #fff; color: var(--e4-body); border-radius: var(--e4-r-xl); padding: 1.6rem;
  box-shadow: var(--e4-shadow-lg); position: relative;
}
.e4-advisor::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; z-index: -1;
  background: linear-gradient(140deg, rgba(200,185,255,.9), rgba(143,211,255,.5)); }
.e4-advisor__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .6rem; }
.e4-advisor__head h2 { font-size: 1.25rem; font-weight: 800; }
.e4-advisor__dot { width: 10px; height: 10px; border-radius: 50%; background: var(--e4-accent); box-shadow: 0 0 0 4px rgba(34,197,94,.2); flex: none; }
.e4-advisor > p { font-size: .95rem; color: var(--e4-muted); }
.e4-advisor__actions { display: grid; gap: .6rem; margin-top: 1.1rem; }
.e4-advisor__actions .e4-btn { width: 100%; }
.e4-advisor__mail { display: inline-flex; align-items: center; justify-content: center; gap: .45rem; font-size: .9rem; font-weight: 600; color: var(--e4-brand); margin-top: .1rem; }
.e4-advisor__mail:hover { text-decoration: underline; }
.e4-advisor__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin: 1.25rem 0 0; padding-top: 1.1rem; border-top: 1px solid var(--e4-line-soft); }
.e4-advisor__stats div { text-align: center; }
.e4-advisor__stats dt { font-size: 1.35rem; font-weight: 800; color: var(--e4-ink); line-height: 1.1; }
.e4-advisor__stats dd { margin: 0; font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--e4-faint); }

/* ── Stats band ──────────────────────────────────────────────────────── */

.e4-band { position: relative; z-index: 1; background: #fff; border-bottom: 1px solid var(--e4-line-soft); }
.e4-band__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .e4-band__grid { grid-template-columns: repeat(4, 1fr); } }
.e4-stat { padding: 1.4rem 1rem; text-align: center; border-right: 1px solid var(--e4-line-soft); }
.e4-stat:nth-child(2n) { border-right: 0; }
@media (min-width: 768px) { .e4-stat:nth-child(2n) { border-right: 1px solid var(--e4-line-soft); } .e4-stat:last-child { border-right: 0; } }
.e4-stat b { display: block; font-size: clamp(1.7rem, 1.3rem + 1.2vw, 2.4rem); font-weight: 800; color: var(--e4-ink); line-height: 1.05; font-variant-numeric: tabular-nums; }
.e4-stat span { display: block; margin-top: .3rem; font-size: .84rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--e4-muted); }

/* ── Filters ─────────────────────────────────────────────────────────── */

.e4-filter { position: relative; min-width: 260px; }
.e4-filter i { position: absolute; left: .9rem; top: 50%; transform: translateY(-50%); color: var(--e4-faint); pointer-events: none; }
.e4-filter input { width: 100%; padding: .7rem .9rem .7rem 2.4rem; border-radius: 999px; border: 1px solid var(--e4-line); background: #fff; font: inherit; font-size: .95rem; color: var(--e4-ink); outline: none; }
.e4-filter input:focus { border-color: var(--e4-brand); box-shadow: 0 0 0 3px rgba(var(--e4-brand-rgb), .12); }

/* ── Categories ──────────────────────────────────────────────────────── */

.e4-cats { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.e4-cat {
  display: flex; flex-direction: column; gap: .8rem; padding: 1.25rem; border-radius: var(--e4-r-lg);
  background: #fff; border: 1px solid var(--e4-line); box-shadow: var(--e4-shadow-sm);
  transition: transform .2s var(--e4-ease), box-shadow .2s var(--e4-ease), border-color .2s;
}
.e4-cat:hover { transform: translateY(-3px); box-shadow: var(--e4-shadow-md); border-color: var(--e4-brand-200); }
.e4-cat__icon { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--e4-brand-050); color: var(--e4-brand); font-size: 1.35rem; }
.e4-cat__body h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.3; }
.e4-cat__body p { margin-top: .35rem; font-size: .88rem; color: var(--e4-muted); }
.e4-cat__foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: .5rem; padding-top: .75rem; border-top: 1px solid var(--e4-line-soft); font-size: .86rem; }
.e4-cat__count { font-weight: 700; color: var(--e4-ink-2); }
.e4-cat__go { display: inline-flex; align-items: center; gap: .35rem; font-weight: 700; color: var(--e4-brand); }
.e4-cat:hover .e4-cat__go i { transform: translateX(3px); }
.e4-cat__go i { transition: transform .2s var(--e4-ease); }

/* ── Courses ─────────────────────────────────────────────────────────── */

.e4-courses { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.e4-course {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--e4-r-lg); overflow: hidden;
  border: 1px solid var(--e4-line); box-shadow: var(--e4-shadow-sm);
  transition: transform .2s var(--e4-ease), box-shadow .2s var(--e4-ease);
}
.e4-course:hover { transform: translateY(-3px); box-shadow: var(--e4-shadow-md); }
.e4-course__media { position: relative; display: block; aspect-ratio: 16 / 9; background: linear-gradient(135deg, var(--e4-brand-100), #e0f2fe); overflow: hidden; }
.e4-course__media img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s var(--e4-ease); }
.e4-course:hover .e4-course__media img { transform: scale(1.04); }
.e4-course__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2.4rem; color: var(--e4-brand); opacity: .55; }
.e4-course__cat { position: absolute; left: .8rem; top: .8rem; padding: .3rem .7rem; border-radius: 999px; background: rgba(255,255,255,.92); color: var(--e4-brand-ink); font-size: .74rem; font-weight: 700; letter-spacing: .03em; }
.e4-course__body { display: flex; flex-direction: column; gap: .6rem; padding: 1.15rem 1.25rem 1.25rem; flex: 1; }
.e4-course__body h3 { font-size: 1.08rem; font-weight: 700; line-height: 1.35; }
.e4-course__body h3 a:hover { color: var(--e4-brand); }
.e4-course__body p { font-size: .9rem; color: var(--e4-muted); }
.e4-course__meta { display: flex; flex-wrap: wrap; gap: .4rem 1rem; font-size: .84rem; font-weight: 600; color: var(--e4-ink-2); }
.e4-course__meta li { display: inline-flex; align-items: center; gap: .35rem; }
.e4-course__meta i { color: var(--e4-brand); }
.e4-course__cta { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: auto; padding-top: .5rem; }

/* ── Why ─────────────────────────────────────────────────────────────── */

.e4-why { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.e4-why__item { padding: 1.5rem; border-radius: var(--e4-r-lg); background: var(--e4-canvas); border: 1px solid var(--e4-line-soft); }
.e4-why__item i { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #fff; color: var(--e4-brand); font-size: 1.3rem; box-shadow: var(--e4-shadow-sm); margin-bottom: 1rem; }
.e4-why__item h3 { font-size: 1.05rem; font-weight: 700; margin-bottom: .4rem; }
.e4-why__item p { font-size: .92rem; color: var(--e4-muted); }

/* ── Destinations ────────────────────────────────────────────────────── */

.e4-dests { display: grid; gap: 1rem; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 2.5rem; }
@media (min-width: 768px) { .e4-dests { grid-template-columns: repeat(4, 1fr); } }
.e4-dest {
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: .35rem; padding: 1.35rem 1rem 1.1rem;
  border-radius: var(--e4-r-lg); background: #fff; border: 1px solid var(--e4-line); box-shadow: var(--e4-shadow-sm);
  transition: transform .2s var(--e4-ease), box-shadow .2s var(--e4-ease), border-color .2s;
}
.e4-dest:hover { transform: translateY(-3px); box-shadow: var(--e4-shadow-md); border-color: var(--e4-brand-200); }
.e4-dest__art { width: 88px; height: 88px; display: grid; place-items: center; margin-bottom: .4rem; }
.e4-dest__art img { width: 88px; height: 88px; object-fit: contain; }
.e4-dest__ph { font-size: 2.2rem; color: var(--e4-brand); }
.e4-dest__name { font-weight: 700; color: var(--e4-ink); font-size: .98rem; }
.e4-dest__country { display: inline-flex; align-items: center; gap: .4rem; font-size: .84rem; color: var(--e4-muted); }
.e4-flag { width: 20px; height: 15px; border-radius: 3px; object-fit: cover; box-shadow: 0 0 0 1px rgba(15,23,42,.08); }
.e4-flag--lg { width: 26px; height: 20px; }
.e4-flag-fallback { display: inline-grid; place-items: center; width: 26px; height: 20px; border-radius: 3px; background: var(--e4-brand-100); color: var(--e4-brand-ink); font-size: .62rem; font-weight: 800; }

.e4-subhead { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.e4-subhead h3 { font-size: 1.3rem; font-weight: 800; }

.e4-atlas { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); content-visibility: auto; contain-intrinsic-size: auto 900px; }
.e4-country { padding: 1rem 1.1rem 1.1rem; border-radius: var(--e4-r-md); background: #fff; border: 1px solid var(--e4-line); }
.e4-country__head { display: flex; align-items: center; gap: .6rem; margin-bottom: .7rem; }
.e4-country__head h4 { font-size: 1rem; font-weight: 700; flex: 1; }
.e4-country__n { font-size: .74rem; font-weight: 800; color: var(--e4-muted); background: var(--e4-canvas); border: 1px solid var(--e4-line-soft); border-radius: 999px; padding: .1rem .55rem; }
.e4-cities { display: flex; flex-wrap: wrap; gap: .4rem; }
.e4-city { padding: .3rem .7rem; border-radius: 999px; font-size: .85rem; font-weight: 600; background: var(--e4-canvas); color: var(--e4-ink-2); border: 1px solid var(--e4-line-soft); transition: background .15s, color .15s, border-color .15s; }
.e4-city:hover { background: var(--e4-brand-050); color: var(--e4-brand); border-color: var(--e4-brand-200); }

/* ── Steps ───────────────────────────────────────────────────────────── */

.e4-steps { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); counter-reset: step; }
.e4-step { position: relative; padding: 1.75rem 1.5rem 1.5rem; border-radius: var(--e4-r-lg); background: #fff; border: 1px solid var(--e4-line); }
.e4-step__num { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--e4-brand); color: #fff; font-weight: 800; box-shadow: var(--e4-shadow-brand); margin-bottom: 1rem; }
.e4-step h3 { font-size: 1.1rem; font-weight: 700; margin-bottom: .4rem; }
.e4-step p { font-size: .93rem; color: var(--e4-muted); }

/* ── Corporate CTA ───────────────────────────────────────────────────── */

.e4-corp-wrap { padding: 0 0 clamp(3.25rem, 2rem + 4.5vw, 6rem); }
.e4-corp {
  position: relative; overflow: hidden; display: grid; gap: 2rem; align-items: center; padding: clamp(2rem, 1.5rem + 2vw, 3.5rem);
  border-radius: var(--e4-r-xl); color: #e6e1ff;
  background: radial-gradient(70% 90% at 90% 10%, rgba(var(--e4-brand-rgb), .6), transparent 55%), linear-gradient(150deg, var(--e4-night-3), var(--e4-night));
  box-shadow: var(--e4-shadow-lg);
}
@media (min-width: 992px) { .e4-corp { grid-template-columns: 1.6fr 1fr; } }
.e4-corp h2 { color: #fff; font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem); font-weight: 800; line-height: 1.15; }
.e4-corp__copy > p { margin-top: .85rem; max-width: 60ch; color: #c9c3ea; }
.e4-corp__list { display: grid; gap: .45rem; margin-top: 1.1rem; font-size: .95rem; font-weight: 600; }
.e4-corp__list li { display: flex; align-items: center; gap: .55rem; }
.e4-corp__list i { color: var(--e4-accent); }
.e4-corp__actions { display: grid; gap: .7rem; }
@media (min-width: 992px) { .e4-corp__actions { justify-self: end; min-width: 280px; } }

/* ── Posts ───────────────────────────────────────────────────────────── */

.e4-posts { display: grid; gap: 1.25rem; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.e4-post { display: flex; flex-direction: column; border-radius: var(--e4-r-lg); overflow: hidden; background: #fff; border: 1px solid var(--e4-line); box-shadow: var(--e4-shadow-sm); transition: transform .2s var(--e4-ease), box-shadow .2s var(--e4-ease); }
.e4-post:hover { transform: translateY(-3px); box-shadow: var(--e4-shadow-md); }
.e4-post__media { display: block; aspect-ratio: 16 / 9; background: var(--e4-brand-050); position: relative; }
.e4-post__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.e4-post__ph { position: absolute; inset: 0; display: grid; place-items: center; font-size: 2rem; color: var(--e4-brand); opacity: .6; }
.e4-post__body { padding: 1.1rem 1.25rem 1.25rem; display: flex; flex-direction: column; gap: .45rem; }
.e4-post__body time { font-size: .8rem; font-weight: 700; color: var(--e4-faint); text-transform: uppercase; letter-spacing: .06em; }
.e4-post__body h3 { font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.e4-post__body h3 a:hover { color: var(--e4-brand); }
.e4-post__body p { font-size: .9rem; color: var(--e4-muted); }

/* ── FAQ ─────────────────────────────────────────────────────────────── */

.e4-faq { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 992px) { .e4-faq { grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr); gap: 4rem; } .e4-faq__intro { position: sticky; top: 96px; } }
.e4-faq__intro .e4-btn { margin-top: 1.25rem; }
.e4-faq__list { display: grid; gap: .6rem; }
.e4-faq__item { background: #fff; border: 1px solid var(--e4-line); border-radius: var(--e4-r-md); padding: 0 1.25rem; transition: border-color .2s; }
.e4-faq__item[open] { border-color: var(--e4-brand-200); }
.e4-faq__item summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 0; cursor: pointer; list-style: none; }
.e4-faq__item summary::-webkit-details-marker { display: none; }
.e4-faq__item summary h3 { font-size: 1rem; font-weight: 700; line-height: 1.4; }
.e4-faq__item summary i { flex: none; color: var(--e4-brand); transition: transform .2s var(--e4-ease); }
.e4-faq__item[open] summary i { transform: rotate(45deg); }
.e4-faq__item > p { padding: 0 0 1.1rem; font-size: .95rem; color: var(--e4-body); }

/* ── About ───────────────────────────────────────────────────────────── */

.e4-about__grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; }
@media (min-width: 992px) { .e4-about__grid { grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: 4rem; } }
.e4-about__text { display: grid; gap: 1rem; font-size: 1.02rem; color: var(--e4-body); }
.e4-about__text a { color: var(--e4-brand); font-weight: 700; }
.e4-about__text a:hover { text-decoration: underline; }

/* ── Final CTA ───────────────────────────────────────────────────────── */

.e4-final { background: var(--e4-canvas); border-top: 1px solid var(--e4-line-soft); padding: clamp(3rem, 2rem + 3vw, 5rem) 0; }
.e4-final__inner { text-align: center; }
.e4-final h2 { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.5rem); font-weight: 800; }
.e4-final p { margin-top: .6rem; color: var(--e4-muted); font-size: 1.08rem; }
.e4-final__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; margin-top: 1.6rem; }

/* ── Sticky mobile CTA ───────────────────────────────────────────────── */

.e4-sticky {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex;
  background: rgba(255,255,255,.96); border-top: 1px solid var(--e4-line);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  padding: .45rem .6rem calc(.45rem + env(safe-area-inset-bottom)); gap: .45rem;
  box-shadow: 0 -8px 24px -12px rgba(15,23,42,.25);
}
.e4-sticky a { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: .1rem; padding: .45rem .3rem; border-radius: 12px; font-size: .74rem; font-weight: 700; color: var(--e4-ink-2); background: var(--e4-canvas); }
.e4-sticky a i { font-size: 1.1rem; color: var(--e4-brand); }
.e4-sticky__main { flex: 1.4 !important; background: var(--e4-brand) !important; color: #fff !important; }
.e4-sticky__main i { color: #fff !important; }
@media (min-width: 992px) { .e4-sticky { display: none; } }

/* ── Reveal animation (opt-in via JS; no-JS shows everything) ────────── */

.e4-anim .e4-reveal { opacity: 0; transform: translateY(14px); transition: opacity .55s var(--e4-ease), transform .55s var(--e4-ease); }
.e4-anim .e4-reveal.is-in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .e4 *, .e4 *::before, .e4 *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .e4-anim .e4-reveal { opacity: 1; transform: none; }
}

/* Small screens */
@media (max-width: 575.98px) {
  .e4-hero h1 { max-width: none; }
  .e4-advisor { padding: 1.25rem; }
  .e4-head--split .e4-filter { width: 100%; }
  .e4-course__cta .e4-btn { flex: 1; }
}
