/**
 * eCare Academy — "Why Ecare Academy", "For Kids & Teens" and "Your Next Step" sections.
 * Matched with ui/frontend.png. Loaded after ecare-hero.css (reuses .ecare-hl / .ecare-float).
 */

/* ============================== Scroll reveal ============================== */
.ecare-js [data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ecare-ease), transform 0.8s var(--ecare-ease);
  transition-delay: calc(var(--i, 0) * 80ms);
}

.ecare-js [data-reveal].is-in {
  opacity: 1;
  transform: none;
}

/* Safety net if the script never loads. */
.ecare-reveal-fallback [data-reveal] {
  opacity: 1 !important;
  transform: none !important;
}

/* ============================== Section headings ==============================
 * Shared by every section: pill → title → subtitle, with one consistent, tight rhythm.
 */
.ecare-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 12px;
  padding: 6px 14px 6px 12px;
  border: 1px solid #DDE5FF;
  border-radius: 999px;
  background: linear-gradient(180deg, #F5F7FF, #EDF1FF);
  color: #3B4FC4;
  font-family: var(--ecare-font-en);
  font-size: 11.5px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: 0.08em;
}

.ecare-pill::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--ecare-blue), var(--ecare-violet));
  box-shadow: 0 0 0 0 rgba(217, 6, 67, 0.45);
  animation: ecare-ping 2.4s ease-out infinite;
}

.ecare-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 36px;
}

.ecare-head-text { min-width: 0; }

.ecare-head--center {
  flex-direction: column;
  align-items: center;
  margin-bottom: 40px;
  text-align: center;
}

.ecare-title {
  margin: 0;
  color: var(--ecare-navy);
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.01em;
}

.ecare-accent {
  background: linear-gradient(120deg, var(--ecare-blue) 0%, var(--ecare-violet) 60%, #DB2777 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  text-decoration: underline wavy rgba(251, 191, 36, 0.9) 2px;
  text-decoration-skip-ink: none;
  text-underline-offset: 9px;
}

.ecare-sub {
  max-width: 580px;
  margin: 10px 0 0;
  color: #5B6B82;
  font-size: 16px;
  line-height: 1.65;
  text-wrap: balance;
}

.ecare-head--center .ecare-sub { margin-left: auto; margin-right: auto; }

/* ============================== Why Ecare Academy ============================== */
.ecare-why {
  position: relative;
  overflow: hidden;
  padding: 56px 0 72px;
  background:
    radial-gradient(700px 420px at 100% 40%, rgba(219, 234, 254, 0.55), transparent 70%),
    #FFFFFF;
}

.ecare-why-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 3fr);
  align-items: center;
  gap: 48px;
}

.ecare-why-title { font-size: clamp(1.9rem, 3.3vw, 2.75rem); }

.ecare-why-desc {
  max-width: 500px;
  margin: 12px 0 26px;
}

.ecare-why-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin: 0 0 32px;
  padding: 0;
  list-style: none;
}

.ecare-why-list li {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #1E293B;
  font-size: 16px;
  font-weight: 600;
}

.ecare-why-check {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--ecare-cat-green), var(--ecare-success));
  color: #FFFFFF;
  box-shadow: 0 4px 10px -3px rgba(5, 150, 105, 0.5);
}

.ecare-why-check svg { width: 14px; height: 14px; }

/* ------------------------------ Collage ------------------------------
 * Everything is placed in % of a fixed-ratio stage, measured from ui/frontend.png.
 * No hover or pointer effects here — the only motion is the periodic shine sweep.
 */
.ecare-why-stage {
  position: relative;
  container-type: inline-size;
  width: 100%;
  aspect-ratio: 1 / 0.97;
}

.ecare-why-stage > * { position: absolute; }

.ecare-why-main {
  z-index: 1;
  top: 1%;
  left: 8%;
  width: 92%;
  height: 73%;
  overflow: hidden;
  border-radius: clamp(16px, 3.4cqw, 26px);
  background: #E2E8F0;
  box-shadow:
    -5px -5px 0 -1px rgba(251, 191, 36, 0.35),
    0 28px 50px -22px rgba(15, 23, 42, 0.45);
}

.ecare-why-main img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 62% 50%;
}

/* Info cards */
.ecare-why-badge,
.ecare-why-modern {
  display: flex;
  align-items: center;
  gap: clamp(8px, 2cqw, 15px);
  padding: clamp(8px, 2cqw, 16px) clamp(10px, 2.6cqw, 22px);
  overflow: hidden;
  border-radius: clamp(12px, 2.6cqw, 20px);
  background: #FFFFFF;
  box-shadow: 0 22px 40px -18px rgba(15, 23, 42, 0.35);
}

.ecare-why-badge { z-index: 4; top: 10%; left: 12%; width: max-content; max-width: 70%; }

.ecare-why-badge-ic {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: clamp(28px, 6.2cqw, 46px);
  aspect-ratio: 1;
  border-radius: 28%;
}

.ecare-why-badge-ic svg { width: 58%; height: 58%; }
.ecare-why-badge-ic--green { background: #D1FAE5; color: var(--ecare-success); }
.ecare-why-badge-ic--blue { background: #DBEAFE; color: var(--ecare-blue); }
.ecare-why-badge-ic--amber { background: #FEF3C7; color: #D97706; }

.ecare-why-badge-txt {
  display: flex;
  flex-direction: column;
  min-width: 0;
  line-height: 1.3;
}

.ecare-why-badge-txt strong {
  color: var(--ecare-navy);
  font-size: clamp(11px, 2.4cqw, 17px);
  font-weight: 700;
  white-space: nowrap;
}

.ecare-why-badge-txt span {
  color: var(--ecare-slate);
  font-size: clamp(9.5px, 1.9cqw, 14px);
  font-weight: 500;
  white-space: nowrap;
}

/* Small photo card (bottom-left) */
.ecare-why-practice {
  z-index: 3;
  top: 65%;
  left: 0;
  width: 31%;
  overflow: hidden;
  border-radius: clamp(12px, 2.8cqw, 20px);
  background: #FFFFFF;
  box-shadow: 0 24px 44px -18px rgba(15, 23, 42, 0.4);
}

.ecare-why-practice img {
  display: block;
  width: 100%;
  aspect-ratio: 1.3;
  object-fit: cover;
}

.ecare-why-practice-txt {
  display: flex;
  align-items: center;
  gap: clamp(6px, 1.6cqw, 11px);
  padding: clamp(7px, 1.8cqw, 14px) clamp(8px, 2cqw, 14px);
}

.ecare-why-practice .ecare-why-badge-ic { width: clamp(24px, 5cqw, 38px); }

/* Lab photo with the caption card attached to its bottom-right corner */
.ecare-why-lab {
  z-index: 2;
  top: 54%;
  right: 3%;
  width: 50%;
  aspect-ratio: 1.72;
}

.ecare-why-lab-img {
  position: absolute;
  inset: 0;
  overflow: hidden;
  border: clamp(3px, 0.8cqw, 6px) solid #FFFFFF;
  border-radius: clamp(22px, 7cqw, 52px);
  background: #E2E8F0;
  box-shadow: 0 26px 46px -20px rgba(15, 23, 42, 0.45);
}

.ecare-why-lab-img img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ecare-why-modern {
  z-index: 5;
  right: 0;
  bottom: -25%;
  width: 73%;
}

/* Hand-drawn arrows — static, anchored to the cards they point at */
.ecare-why-doodle { z-index: 6; height: auto; pointer-events: none; }
.ecare-why-doodle--a { top: 40%; left: -1%; width: 5%; }
.ecare-why-doodle--b { top: 86%; left: 41%; width: 13%; }

/* Periodic shine sweep (replaces hover effects) */
.ecare-shine { position: relative; }

.ecare-shine::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 3;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 255, 255, 0.6) 50%, transparent 62%);
  transform: translateX(-130%);
  animation: ecare-shine 7s ease-in-out infinite;
  animation-delay: var(--sd, 0s);
  pointer-events: none;
}

/* .ecare-why-stage > * sets absolute; keep shine hosts that need it */
.ecare-why-stage > .ecare-shine { position: absolute; }
.ecare-why-lab-img.ecare-shine { position: absolute; }

.ecare-why-modern.ecare-shine { position: absolute; }

/* ============================== For Kids & Teens ============================== */
.ecare-kids {
  --ecare-edge: max(var(--ecare-gutter, 20px), calc((100vw - var(--ecare-container, 1296px)) / 2));
  padding: 0;
  background: #FFFFFF;
}

/* Full-bleed banner: background runs edge to edge, content lines up with the site container. */
.ecare-kids-banner {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  align-items: center;
  min-height: 430px;
  overflow: hidden;
  background:
    radial-gradient(circle at 3% 10%, rgba(254, 240, 199, 0.8) 0%, rgba(254, 240, 199, 0) 30%),
    radial-gradient(circle at 2% 92%, rgba(250, 8, 79, 0.10) 0%, rgba(250, 8, 79, 0) 38%),
    radial-gradient(circle at 96% 15%, rgba(99, 3, 149, 0.12) 0%, rgba(99, 3, 149, 0) 46%),
    radial-gradient(circle at 90% 90%, rgba(250, 8, 79, 0.08) 0%, rgba(250, 8, 79, 0) 42%),
    linear-gradient(120deg, #FFF7FA 0%, #FAF4FF 55%, #F5EDFF 100%);
}

.ecare-kids-visual {
  align-self: end;
  position: relative;
  z-index: 1;
}

.ecare-kids-visual img {
  display: block;
  width: auto;
  max-width: none;
  height: clamp(360px, 31vw, 560px);
  margin-left: max(0px, calc(var(--ecare-edge) - 56px));
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 9%);
  mask-image: linear-gradient(90deg, transparent 0, #000 9%);
  filter: drop-shadow(0 14px 22px rgba(99, 3, 149, 0.16));
  animation: ecare-bob 7s ease-in-out infinite;
}

.ecare-kids-content {
  position: relative;
  z-index: 2;
  padding: 48px var(--ecare-edge) 48px 0;
}

.ecare-kids-title { font-size: clamp(1.8rem, 3.1vw, 2.65rem); }

.ecare-kids-desc {
  max-width: 500px;
  margin: 12px 0 26px;
  text-wrap: balance;
}

.ecare-kids-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 28px;
  border-radius: 999px;
  background: var(--ecare-gradient-brand);
  color: #FFFFFF !important;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px -10px rgba(250, 8, 79, 0.55);
  transition: transform 0.25s var(--ecare-ease), box-shadow 0.25s var(--ecare-ease);
}

.ecare-kids-btn svg { transition: transform 0.25s var(--ecare-ease); }
.ecare-kids-btn:hover { transform: translateY(-3px); box-shadow: 0 18px 30px -10px rgba(99, 3, 149, 0.55); }
.ecare-kids-btn:hover svg { transform: translateX(4px); }
.ecare-kids-btn:focus-visible { outline: 2px solid var(--ecare-purple); outline-offset: 3px; }

.ecare-kids-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  margin: 30px 0 0;
  padding: 0;
  list-style: none;
}

.ecare-kids-tags li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #1E293B;
  font-family: var(--ecare-font-en);
  font-size: 13.5px;
  white-space: nowrap;
  font-weight: 600;
}

.ecare-kids-tag-ic {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 24px;
  height: 24px;
  border-radius: 8px;
  background: var(--ecare-gradient-brand);
  color: #FFFFFF;
  transition: transform 0.3s var(--ecare-ease);
}

.ecare-kids-tag-ic svg { width: 14px; height: 14px; }
.ecare-kids-tags li:hover .ecare-kids-tag-ic { transform: translateY(-3px) rotate(-8deg) scale(1.1); }

/* Twinkling sparkles */
.ecare-spark {
  position: absolute;
  z-index: 1;
  width: 14px;
  height: 14px;
  background: #818CF8;
  clip-path: polygon(50% 0, 62% 38%, 100% 50%, 62% 62%, 50% 100%, 38% 62%, 0 50%, 38% 38%);
  animation: ecare-twinkle 3.2s ease-in-out infinite;
  pointer-events: none;
}

.ecare-spark--1 { top: 12%; left: 42%; }
.ecare-spark--2 { top: 42%; left: 50%; width: 9px; height: 9px; background: #34D399; animation-delay: -1.2s; }
.ecare-spark--3 { top: 70%; right: 6%; width: 11px; height: 11px; background: #FBBF24; animation-delay: -2.1s; }

/* ============================== Your Next Step (CTA) ============================== */
.ecare-final-cta {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  min-height: 430px;
  overflow: hidden;
  padding: 72px 0;
  background: linear-gradient(90deg, #030B22 0%, #07143A 55%, #0A1A48 100%);
  color: #FFFFFF;
}

.ecare-cta-art {
  position: absolute;
  z-index: -2;
  top: 0;
  right: 0;
  bottom: 0;
  width: clamp(560px, 68%, 1344px);
  -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 34%);
  mask-image: linear-gradient(90deg, transparent 0, #000 34%);
}

.ecare-cta-art img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;
  transform-origin: 70% 60%;
  animation: ecare-kenburns 26s ease-in-out infinite alternate;
}

.ecare-night-stars {
  position: absolute;
  z-index: -1;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(1.6px 1.6px at 8% 18%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 19% 72%, #fff 50%, transparent 52%),
    radial-gradient(1.8px 1.8px at 31% 30%, #BFDBFE 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 43% 84%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 52% 14%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 63% 60%, #FDE68A 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 74% 12%, #fff 50%, transparent 52%),
    radial-gradient(1.2px 1.2px at 88% 40%, #fff 50%, transparent 52%),
    radial-gradient(1.6px 1.6px at 95% 82%, #BFDBFE 50%, transparent 52%);
  animation: ecare-twinkle-soft 4.5s ease-in-out infinite;
}

.ecare-cta-content {
  position: relative;
  max-width: 560px;
}

.ecare-cta-pill {
  display: inline-flex;
  align-items: center;
  margin-bottom: 14px;
  padding: 6px 16px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #E2E8F0;
  font-family: var(--ecare-font-en);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
}

.ecare-final-cta h2 {
  margin: 0;
  color: #FFFFFF;
  font-size: clamp(1.9rem, 3.3vw, 2.7rem);
  font-weight: 700;
  line-height: 1.25;
}

.ecare-final-cta p {
  margin: 10px 0 28px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 16.5px;
  line-height: 1.65;
}

.ecare-cta-btns {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

.ecare-btn-gold {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 28px;
  border: 0;
  border-radius: 999px;
  background: #FBBF24;
  color: #0A1319 !important;
  font-size: 15.5px;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
  box-shadow: 0 12px 28px -10px rgba(251, 191, 36, 0.65);
  transition: transform 0.25s var(--ecare-ease), box-shadow 0.25s var(--ecare-ease), background 0.2s;
}

.ecare-btn-gold svg { transition: transform 0.25s var(--ecare-ease); }
.ecare-btn-gold:hover { background: var(--ecare-amber); transform: translateY(-3px); box-shadow: 0 18px 34px -10px rgba(251, 191, 36, 0.8); }
.ecare-btn-gold:hover svg { transform: translateX(4px); }

.ecare-btn-outline-white {
  display: inline-flex;
  align-items: center;
  padding: 13px 26px;
  border: 1.5px solid rgba(255, 255, 255, 0.45);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #FFFFFF !important;
  font-size: 15.5px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  transition: transform 0.25s var(--ecare-ease), background 0.2s, border-color 0.2s;
}

.ecare-btn-outline-white:hover { border-color: #FFFFFF; background: rgba(255, 255, 255, 0.16); transform: translateY(-3px); }

.ecare-btn-gold:focus-visible,
.ecare-btn-outline-white:focus-visible { outline: 2px solid #FFFFFF; outline-offset: 3px; }

/* ============================== Success Stories (portrait video cards) ============================== */
.ecare-stories {
  padding: 56px 0 80px;
  background: linear-gradient(180deg, #F8FAFF 0%, #FFFFFF 100%);
}


.ecare-arrows { display: flex; flex-shrink: 0; gap: 10px; padding-bottom: 6px; }
.ecare-arrows[hidden] { display: none; }

.ecare-arrow-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  padding: 0;
  border: 1.5px solid #D6DCE8;
  border-radius: 50%;
  background: #FFFFFF;
  color: var(--ecare-navy);
  cursor: pointer;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s, transform 0.2s;
}

.ecare-arrow-btn:hover:not(:disabled) { background: var(--ecare-blue); border-color: var(--ecare-blue); color: #FFFFFF; transform: translateY(-2px); }
.ecare-arrow-btn:active { transform: scale(0.94); }
.ecare-arrow-btn:disabled { opacity: 0.35; cursor: default; }
.ecare-arrow-btn:focus-visible { outline: 2px solid var(--ecare-blue); outline-offset: 2px; }

.ecare-vtrack {
  display: flex;
  gap: 20px;
  margin: 0 -8px;
  padding: 12px 8px 30px;
  overflow-x: auto;
  justify-content: safe center;
  scroll-snap-type: x mandatory;
  scroll-padding-inline: 8px;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}

.ecare-vtrack::-webkit-scrollbar { display: none; }

.ecare-vcard {
  --g1: #6366F1;
  --g2: #EC4899;
  position: relative;
  isolation: isolate;
  flex: 0 0 calc((100% - 80px) / 5);
  min-width: 210px;
  aspect-ratio: 9 / 16;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 6px;
  background: #0F172A;
  color: #FFFFFF;
  font: inherit;
  text-align: left;
  scroll-snap-align: start;
  box-shadow: 0 24px 44px -26px rgba(15, 23, 42, 0.6);
  transition: transform 0.45s var(--ecare-ease), box-shadow 0.45s var(--ecare-ease);
  -webkit-tap-highlight-color: transparent;
}

.ecare-vcard--1 { --g1: #0EA5E9; --g2: #6366F1; }
.ecare-vcard--2 { --g1: var(--ecare-amber); --g2: #EF4444; }
.ecare-vcard--3 { --g1: var(--ecare-cat-green); --g2: #0EA5E9; }

.ecare-vcard.has-video { cursor: pointer; }
.ecare-vcard:focus-visible { outline: 3px solid var(--ecare-blue); outline-offset: 3px; }

.ecare-vcard-poster {
  position: absolute;
  inset: 0;
  z-index: -2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(160deg, var(--g1), var(--g2));
}

.ecare-vcard-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.9s var(--ecare-ease);
}

.ecare-vcard-initial {
  margin-bottom: 20%;
  color: rgba(255, 255, 255, 0.85);
  font-size: 96px;
  font-weight: 700;
  line-height: 1;
}

/* Darkening gradient + hairline highlight */
.ecare-vcard::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: linear-gradient(180deg, rgba(2, 6, 23, 0.28) 0%, rgba(2, 6, 23, 0) 26%, rgba(2, 6, 23, 0.1) 46%, rgba(2, 6, 23, 0.82) 80%, rgba(2, 6, 23, 0.94) 100%);
}

.ecare-vcard::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.14);
  pointer-events: none;
}

.ecare-vcard-play {
  position: absolute;
  top: 50%;
  left: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 66px;
  height: 66px;
  margin: -33px 0 0 -33px;
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.2);
  -webkit-backdrop-filter: blur(12px);
  backdrop-filter: blur(12px);
  color: #FFFFFF;
  transition: transform 0.4s var(--ecare-ease), opacity 0.4s, background 0.3s, color 0.3s;
}

.ecare-vcard-play::before {
  content: "";
  position: absolute;
  inset: -1px;
  border: 2px solid rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  animation: ecare-ring 2.4s ease-out infinite;
}

.ecare-vcard-play svg { width: 28px; height: 28px; margin-left: 3px; }

.is-playing .ecare-vcard-play { opacity: 0; transform: scale(0.8); }
.is-playing .ecare-vcard-play::before { animation: none; }

.ecare-vcard-meta {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 18px 18px 20px;
}

.ecare-vcard-name { font-size: 17px; font-weight: 700; line-height: 1.3; }

.ecare-vcard-course {
  align-self: flex-start;
  margin-top: 4px;
  padding: 3px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.5;
}

/* Muted preview (created by JS only after load, only while visible) */
.ecare-vcard-media {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  object-fit: cover;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.6s ease;
}

.is-playing .ecare-vcard-media { opacity: 1; }

/* YouTube preview: oversize the player so its title bar and edge padding fall outside the card. */
iframe.ecare-vcard-media--yt { inset: -9%; width: 118%; height: 118%; max-width: none; }

.ecare-video-alt {
  position: absolute;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%);
  padding: 8px 16px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.14);
  color: #FFFFFF;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.ecare-video-alt:hover { background: rgba(255, 255, 255, 0.26); }

/* 10-second progress bar — restarted by JS on every loop */
.ecare-vcard-bar {
  position: absolute;
  top: 12px;
  right: 14px;
  left: 14px;
  height: 3px;
  overflow: hidden;
  border-radius: 3px;
  background: rgba(255, 255, 255, 0.25);
  opacity: 0;
  transition: opacity 0.4s;
}

.ecare-vcard-bar::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: #FFFFFF;
  transform: scaleX(0);
  transform-origin: left;
}

.is-playing .ecare-vcard-bar { opacity: 1; }
.is-playing .ecare-vcard-bar.run::after { animation: ecare-bar 10s linear forwards; }

/* "tap for sound" hint */
.ecare-vcard-sound {
  position: absolute;
  top: 24px;
  right: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.35);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  color: #FFFFFF;
}

.ecare-vcard-sound svg { width: 16px; height: 16px; }

@media (hover: hover) and (pointer: fine) {
  .ecare-vcard.has-video:hover { transform: translateY(-8px); box-shadow: 0 34px 56px -26px rgba(217, 6, 67, 0.55); }
  .ecare-vcard.has-video:hover .ecare-vcard-poster img { transform: scale(1.07); }
  .ecare-vcard.has-video:hover .ecare-vcard-play { opacity: 1; transform: scale(1.12); background: #FFFFFF; color: var(--ecare-blue); }
}

.ecare-stories-note {
  margin: 4px 0 0;
  color: var(--ecare-slate);
  font-size: 13px;
  text-align: center;
}

.ecare-stories-note a { color: var(--ecare-blue); font-weight: 600; }

/* Portrait pop-up player */
.ecare-video-modal .ecare-video-frame--portrait {
  width: min(100%, calc(88vh * 9 / 16));
  max-width: 440px;
  aspect-ratio: 9 / 16;
}

.ecare-video-frame video { width: 100%; height: 100%; background: #000; }

/* ============================== Keyframes ============================== */
@keyframes ecare-shine { 0% { transform: translateX(-130%); } 22%, 100% { transform: translateX(130%); } }
@keyframes ecare-bar { to { transform: scaleX(1); } }
@keyframes ecare-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes ecare-twinkle { 0%, 100% { opacity: 0.25; transform: scale(0.7) rotate(0); } 50% { opacity: 1; transform: scale(1.15) rotate(20deg); } }
@keyframes ecare-twinkle-soft { 0%, 100% { opacity: 0.45; } 50% { opacity: 1; } }
@keyframes ecare-kenburns { from { transform: scale(1); } to { transform: scale(1.07) translateX(-1.5%); } }

/* ============================== Responsive ============================== */
@media (max-width: 1180px) {
  .ecare-vcard { flex-basis: calc((100% - 60px) / 4); }

  /* CTA art moves above the copy so the rocket and student never sit under text. */
  .ecare-final-cta {
    flex-direction: column;
    align-items: stretch;
    min-height: 0;
    padding: 0 0 56px;
    text-align: center;
  }
  .ecare-cta-art {
    position: relative;
    z-index: 0;
    order: -1;
    width: 100%;
    height: clamp(200px, 42vw, 380px);
    margin-bottom: 8px;
    -webkit-mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 55%, transparent 100%);
  }
  .ecare-cta-art img { object-position: 74% center; }
  .ecare-cta-content { max-width: 640px; margin: 0 auto; }
  .ecare-cta-btns { justify-content: center; }
}

@media (max-width: 991px) {
  .ecare-head { margin-bottom: 30px; }
  .ecare-vcard { flex-basis: calc((100% - 40px) / 3); }
  .ecare-why { padding: 36px 0 56px; }
  .ecare-why-grid { grid-template-columns: 1fr; gap: 36px; }
  .ecare-why-visual { width: 100%; max-width: 640px; margin: 0 auto; }

  .ecare-kids-banner { grid-template-columns: 1fr; min-height: 0; }
  .ecare-kids-visual img { width: 100%; max-width: 560px; height: auto; margin: 0 auto; -webkit-mask-image: none; mask-image: none; }
  .ecare-kids-content { padding: 4px var(--ecare-edge) 44px; }
}

@media (max-width: 768px) {
  .ecare-head { flex-direction: column; align-items: flex-start; gap: 18px; margin-bottom: 26px; }
  .ecare-head--center { align-items: center; margin-bottom: 28px; }
  .ecare-sub { font-size: 15px; margin-top: 8px; }

  /* "All courses" joins the pill on the top row */
  .ecare-head--aside-top {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    column-gap: 12px;
    row-gap: 0;
  }
  .ecare-head--aside-top > .ecare-head-text { display: contents; }
  .ecare-head--aside-top .ecare-pill { grid-column: 1; grid-row: 1; justify-self: start; margin-bottom: 0; }
  .ecare-head--aside-top > .ecare-link-arrow { grid-column: 2; grid-row: 1; padding-bottom: 0; font-size: 14px; }
  .ecare-head--aside-top .ecare-title,
  .ecare-head--aside-top .ecare-sub { grid-column: 1 / -1; }
  .ecare-head--aside-top .ecare-title { margin-top: 14px; }

  .ecare-head > .ecare-arrows,
  .ecare-head > .ecare-arrows[hidden] { display: none; }
  .ecare-stories { padding: 36px 0 56px; }
  .ecare-vtrack { gap: 14px; margin: 0 calc(var(--ecare-gutter, 20px) * -1); padding: 8px var(--ecare-gutter, 20px) 24px; scroll-padding-inline: var(--ecare-gutter, 20px); justify-content: flex-start; }
  .ecare-vcard { flex: 0 0 min(66%, 264px); min-width: 0; border-radius: 6px; }
}

@media (max-width: 600px) {
  .ecare-why-title { font-size: clamp(1.8rem, 8vw, 2.2rem); }
  .ecare-why-list li { font-size: 15px; }
  .ecare-why-practice-txt .ecare-why-badge-ic { display: none; }
  .ecare-why-modern .ecare-why-badge-ic { width: 24px; }

  .ecare-kids-content { padding: 0 var(--ecare-edge) 36px; }
  .ecare-kids-btn { width: 100%; justify-content: center; }
  .ecare-kids-tags { gap: 12px 18px; margin-top: 26px; }

  .ecare-final-cta { padding-bottom: 44px; }
  .ecare-cta-btns { flex-direction: column; width: 100%; }
  .ecare-btn-gold,
  .ecare-btn-outline-white { width: 100%; justify-content: center; }
}

@media (prefers-reduced-motion: reduce) {
  .ecare-js [data-reveal] { opacity: 1; transform: none; transition: none; }
  .ecare-kids-visual img,
  .ecare-shine::after,
  .ecare-spark,
  .ecare-night-stars,
  .ecare-pill::before,
  .ecare-vcard-bar::after,
  .ecare-vcard-play::before,
  .ecare-cta-art img { animation: none !important; }
}

/* ============================== Featured Courses ============================== */
.ecare-feat { padding: 56px 0 72px; background: #FFFFFF; }

.ecare-feat-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.ecare-fcard {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #EEF0F4;
  border-radius: 8px;
  background: #FFFFFF;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: transform 0.35s var(--ecare-ease), box-shadow 0.35s var(--ecare-ease), border-color 0.35s;
}
.ecare-fcard:hover { transform: translateY(-5px); border-color: rgba(250, 8, 79, 0.3); box-shadow: 0 24px 40px -24px rgba(99, 3, 149, 0.5); }

.ecare-fcard-media {
  position: relative;
  display: block;
  aspect-ratio: 16 / 10;
  overflow: hidden;
  background: linear-gradient(135deg, #FFF1F5, #F5EDFF);
}
.ecare-fcard-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.7s var(--ecare-ease); }
.ecare-fcard:hover .ecare-fcard-media img { transform: scale(1.05); }

.ecare-fcard-body { display: flex; flex: 1; flex-direction: column; gap: 10px; padding: 16px; }
.ecare-fcard-title { margin: 0; font-size: 16.5px; font-weight: 700; line-height: 1.4; }
.ecare-fcard-title a { color: var(--ecare-navy); text-decoration: none; }
.ecare-fcard-title a:hover { color: var(--ecare-blue, #D90643); }

.ecare-feat-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; color: #64748B; font-size: 12.5px; font-weight: 600; }
.ecare-feat-meta > span { display: inline-flex; align-items: center; gap: 5px; }

.ecare-feat-meta .ecare-mode { padding: 2px 8px; border-radius: 4px; font-weight: 700; }
.ecare-mode--online-batches { background: #EEF2FF; color: #4338CA; }
.ecare-mode--offline-batches { background: #FFF1F5; color: #B0003A; }

.ecare-fcard-foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: auto; padding-top: 12px; border-top: 1px solid #F1F5F9; }
.ecare-feat-price { color: var(--ecare-navy); font-size: 18px; font-weight: 800; letter-spacing: -0.01em; }
.ecare-feat-price s { margin-right: 6px; color: #94A3B8; font-size: 12.5px; font-weight: 500; }
.ecare-fcard-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 7px 12px;
  border-radius: 6px;
  background: var(--ecare-gradient-brand);
  color: #FFFFFF !important;
  font-size: 13px;
  font-weight: 700;
  text-decoration: none;
  transition: gap 0.25s var(--ecare-ease), box-shadow 0.25s;
}
.ecare-fcard-btn:hover { gap: 10px; box-shadow: 0 10px 18px -10px rgba(99, 3, 149, 0.7); }

@media (max-width: 1180px) { .ecare-feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 860px) {
  .ecare-feat { padding: 36px 0 56px; }
  .ecare-feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
}
@media (max-width: 520px) {
  .ecare-feat-grid { grid-template-columns: 1fr; }
}
