/* ——— EJS Home polish (overrides on top of vid-home.css) ——— */

.section-slider-wrap {
  position: relative;
  margin: 0 -4px;
  padding: 0 4px;
}

.section-slider-nav-btn {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  border: 1px solid rgba(84, 58, 227, 0.14);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  color: #543ae3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow:
    0 4px 6px rgba(15, 23, 42, 0.04),
    0 14px 32px rgba(84, 58, 227, 0.14);
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease,
    box-shadow 0.2s ease,
    border-color 0.2s ease;
}

.section-slider-nav-btn svg {
  width: 18px;
  height: 18px;
}

.section-slider-nav-btn--overlay {
  position: absolute;
  top: 50%;
  z-index: 4;
}

.section-slider-nav-btn--prev {
  left: 10px;
  transform: translateY(-50%);
}

.section-slider-nav-btn--next {
  right: 10px;
  transform: translateY(-50%);
}

.section-slider-nav-btn--overlay:hover {
  background: #fff;
  color: #4630c4;
  border-color: rgba(84, 58, 227, 0.28);
  box-shadow:
    0 6px 10px rgba(15, 23, 42, 0.06),
    0 18px 40px rgba(84, 58, 227, 0.2);
}

.section-slider-nav-btn--prev:hover {
  transform: translateY(-50%) translateX(-2px);
}

.section-slider-nav-btn--next:hover {
  transform: translateY(-50%) translateX(2px);
}

.section-slider-nav-btn--overlay:active {
  transform: translateY(-50%) scale(0.94);
}

.section-slider-nav-btn[hidden],
.section-slider-wrap:not(.is-scrollable) .section-slider-nav-btn {
  display: none !important;
}

.main-content {
  min-height: 100vh;
  height: fit-content;
  /* overflow: auto; */
  scroll-behavior: smooth;
}

body.ejs-home,
body.ejs-landing,
body.ejs-app {
  margin: 0;
  font-family: "Nunito", system-ui, sans-serif;
  background: #f3f5fc;
  color: #0f1724;
  -webkit-font-smoothing: antialiased;
}

a.primary-btn,
a.secondary-btn {
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

a.arrow-btn {
  text-decoration: none;
}

/* ——— Hero atmosphere ——— */
.ejs-home .vid-home .hero-section {
  position: relative;
  padding: 2.75rem 0 3.75rem;
  background:
    radial-gradient(ellipse 70% 55% at 12% 8%, rgba(84, 58, 227, 0.08), transparent 55%),
    radial-gradient(ellipse 50% 40% at 88% 20%, rgba(253, 230, 138, 0.28), transparent 50%),
    linear-gradient(180deg, #f7f8ff 0%, #eef1fb 48%, #f3f5fc 100%);
  overflow: hidden;
}

.ejs-home .vid-home .hero-section::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(84, 58, 227, 0.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(84, 58, 227, 0.035) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.55), transparent 85%);
  pointer-events: none;
}

.ejs-home .vid-home .hero-section .vk-container {
  position: relative;
  z-index: 1;
}

.ejs-home .vid-home .hero-pro-grid {
  grid-template-columns: minmax(0, 3fr) minmax(280px, 2fr);
  align-items: end;
  gap: 3rem;
}

.ejs-home .vid-home .hero-pro-content,
.ejs-home .vid-home .hero-pro-visual {
  min-width: 0;
}

.ejs-home .vid-home .hero-pro-badge--yellow {
  background: linear-gradient(135deg, #fde68a, #fbbf24);
  color: #78350f;
  box-shadow: 0 8px 20px rgba(251, 191, 36, 0.25);
  animation: home-fade-up 0.55s ease both;
}

.ejs-home .vid-home .hero-pro-title {
  font-weight: 700;
  letter-spacing: -0.02em;
  animation: home-fade-up 0.6s ease 0.06s both;
}

.ejs-home .vid-home .hero-pro-title-auth {
  text-transform: none;
}

.ejs-home .vid-home .hero-pro-title-auth > span:not(.hero-pro-title-accent) {
  color: #111827;
}

.ejs-home .vid-home .hero-pro-title .hero-pro-title-accent {
  background: linear-gradient(90deg, #543ae3 0%, #7c3aed 48%, #2563eb 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.ejs-home .vid-home .hero-pro-desc {
  max-width: 34rem;
  animation: home-fade-up 0.6s ease 0.12s both;
}

.ejs-home .vid-home .hero-pro-features {
  animation: home-fade-up 0.65s ease 0.18s both;
}

.ejs-home .vid-home .hero-pro-feature {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(238, 242, 255, 0.95);
  box-shadow: 0 10px 28px rgba(15, 23, 36, 0.05);
}

.ejs-home .vid-home .hero-pro-feature:hover {
  transform: translateY(-3px);
  box-shadow: 0 16px 36px rgba(84, 58, 227, 0.12);
  border-color: rgba(84, 58, 227, 0.22);
}

.ejs-home .vid-home .hero-pro-feature-icon {
  background: linear-gradient(145deg, #f3f0ff, #e8e4ff);
  box-shadow: inset 0 0 0 1px rgba(84, 58, 227, 0.06);
}

.ejs-home .vid-home .hero-pro-highlight {
  margin-top: 1.5rem;
  padding: 1rem 1.25rem 1rem 1.35rem;
  border: 1px solid rgba(84, 58, 227, 0.16);
  background:
    linear-gradient(90deg, rgba(84, 58, 227, 0.06), transparent 42%),
    #ffffff;
  border-radius: 18px;
  /* box-shadow:
    0 12px 32px rgba(84, 58, 227, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.8) inset; */
  gap: 1rem;
  min-height: 88px;
  animation: home-fade-up 0.65s ease 0.24s both;
}

.ejs-home .vid-home .subscription-banner-text {
  flex: 1;
  min-width: 0;
}

.ejs-home .vid-home .subscription-banner-label {
  color: #334155;
  font-size: 1rem;
  font-weight: 700;
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-clamp: 1;
  white-space: normal;
}

.ejs-home .vid-home .subscription-banner-price {
  margin-top: 4px;
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  color: #543ae3;
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
  min-height: 1.1em;
}

.ejs-home .vid-home .subscription-banner-btn {
  padding: 14px 26px;
  border-radius: 12px;
  background: linear-gradient(135deg, #543ae3, #6d5ef7);
  box-shadow: 0 10px 24px rgba(84, 58, 227, 0.35);
}

.ejs-home .vid-home .subscription-banner-btn:hover {
  transform: translateY(-2px);
  background: linear-gradient(135deg, #4630c4, #5b4de8);
  box-shadow: 0 14px 30px rgba(84, 58, 227, 0.42);
}

.ejs-home .vid-home .hero-pro-visual {
  animation: home-fade-in 0.8s ease 0.15s both;
}

.ejs-home .vid-home .hero-pro-video {
  border-radius: 28px;
  min-height: 500px;
  /* box-shadow:
    0 28px 64px rgba(84, 58, 227, 0.22),
    0 0 0 1px rgba(255, 255, 255, 0.35) inset; */
  transform: translateZ(0);
}

.ejs-home .vid-home .hero-pro-video::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.18);
  z-index: 2;
}

.ejs-home .vid-home .hero-pro-video.hero-banner-slider {
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  min-height: 0 !important;
  height: auto;
  aspect-ratio: 1 / 1;
  background: #0f1118;
  overflow: hidden;
}

.ejs-home .vid-home .hero-banner-slider {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 100%;
}

.ejs-home .vid-home .hero-banner-slider__viewport {
  display: grid;
  position: relative;
  width: 100%;
  height: 100%;
  background: #0f1118;
}

.ejs-home .vid-home .hero-banner-slide {
  grid-area: 1 / 1;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.45s ease, visibility 0.45s ease;
  pointer-events: none;
}

.ejs-home .vid-home .hero-banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.ejs-home .vid-home .hero-banner-slide__link {
  display: block;
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 0;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.ejs-home .vid-home .hero-banner-slide__link img,
.ejs-home .vid-home .hero-banner-slide > img {
  position: absolute;
  inset: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: inherit;
}

.ejs-home .vid-home .hero-banner-slider__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.92);
  color: #543ae3;
  box-shadow: 0 8px 24px rgba(15, 23, 36, 0.16);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ejs-home .vid-home .hero-banner-slider__nav:hover {
  transform: translateY(-50%) scale(1.05);
  background: #fff;
}

.ejs-home .vid-home .hero-banner-slider__nav--prev {
  left: 14px;
}

.ejs-home .vid-home .hero-banner-slider__nav--next {
  right: 14px;
}

.ejs-home .vid-home .hero-banner-slider__dots {
  position: absolute;
  left: 50%;
  bottom: 16px;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 8px;
  transform: translateX(-50%);
}

.ejs-home .vid-home .hero-banner-slider__dot {
  width: 9px;
  height: 9px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.55);
  cursor: pointer;
  transition: transform 0.2s ease, background 0.2s ease;
}

.ejs-home .vid-home .hero-banner-slider__dot.is-active {
  background: #fff;
  transform: scale(1.15);
}

/* ——— Sections ——— */
.ejs-home .vid-home .app-section .section-top h2 span,
.ejs-home .vid-home .recorded-section-header h2 span {
  color: #543ae3;
}

.ejs-home .vid-home .promo-card {
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.ejs-home .vid-home .promo-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(15, 23, 36, 0.1);
}

.ejs-home .vid-home .course-recommend .recommend-card {
  overflow: hidden;
  box-shadow: 0 22px 50px rgba(84, 58, 227, 0.12);
}

.ejs-home .vid-home .course-recommend .recommend-btn-primary {
  background: linear-gradient(135deg, #543ae3, #6d5ef7);
  box-shadow: 0 10px 24px rgba(84, 58, 227, 0.28);
}

.ejs-home .vid-home .course-recommend .recommend-btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(84, 58, 227, 0.36);
}

.ejs-home .vid-home .course-recommend .recommend-offer {
  background: linear-gradient(90deg, #543ae3, #6d5ef7);
  box-shadow: 0 16px 36px rgba(84, 58, 227, 0.22);
}

/* ——— Explore plans (premium) ——— */
.ejs-home .vid-home .course-recommend.section-recommend {
  padding: 3.25rem 0 4rem;
  /* background:
    radial-gradient(ellipse 90% 70% at 50% -20%, rgba(84, 58, 227, 0.14), transparent 58%),
    radial-gradient(ellipse 40% 50% at 100% 80%, rgba(20, 184, 166, 0.07), transparent 55%),
    linear-gradient(180deg, #f8f6ff 0%, #ffffff 55%); */
}

.ejs-home .vid-home .course-recommend .recommend-header {
  margin-bottom: 2.25rem;
}

.ejs-home .vid-home .course-recommend .recommend-badge {
  border: 1px solid rgba(84, 58, 227, 0.12);
  box-shadow: 0 8px 24px rgba(84, 58, 227, 0.08);
}

.ejs-home .vid-home .course-recommend .recommend-title {
  font-size: clamp(1.85rem, 4vw, 2.5rem);
  letter-spacing: -0.02em;
}

.explore-plans--premium {
  position: relative;
  margin-top: 0;
  padding: 1.75rem 1.75rem 1.5rem;
  border-radius: 28px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(255, 255, 255, 0.88)),
    radial-gradient(circle at top right, rgba(84, 58, 227, 0.06), transparent 45%);
  border: 1px solid rgba(84, 58, 227, 0.1);
  box-shadow:
    0 24px 60px rgba(84, 58, 227, 0.1),
    0 1px 0 rgba(255, 255, 255, 0.8) inset;
  overflow: hidden;
}

.explore-plans--premium::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, #543ae3, #6d5ef7, #14b8a6);
}

.explore-plans__toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  display: none;
  flex-wrap: wrap;
  margin-bottom: 1.35rem;
}

.explore-plans__context {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.explore-plans__context span {
  padding: 7px 12px;
  border-radius: 999px;
  background: rgba(84, 58, 227, 0.08);
  color: #543ae3;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.explore-plans__count {
  font-size: 13px;
  font-weight: 700;
  color: #64748b;
}

.explore-plans__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem 1.25rem;
  margin-top: 1.35rem;
  padding: 1rem;
  border-top: 1px solid rgba(84, 58, 227, 0.08);
}

.explore-plans__trust span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 700;
  color: #475569;
}

.explore-plans__trust i {
  color: #543ae3;
  font-size: 14px;
}

/* Plan showcase cards */
.plan-showcase-card {
  display: flex;
  flex-direction: column;
  width: 35%;
  background: #fff;
  border-radius: 22px;
  border: 1px solid rgba(84, 58, 227, 0.1);
  overflow: hidden;
  box-shadow:
    0 18px 44px rgba(84, 58, 227, 0.1),
    0 2px 8px rgba(15, 23, 36, 0.04);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.plan-showcase-card:hover {
  transform: translateY(-6px);
  border-color: rgba(84, 58, 227, 0.22);
  box-shadow:
    0 28px 56px rgba(84, 58, 227, 0.16),
    0 4px 12px rgba(15, 23, 36, 0.06);
}

.plan-showcase-card--hero {
  border-color: rgba(84, 58, 227, 0.18);
  box-shadow:
    0 28px 64px rgba(84, 58, 227, 0.14),
    0 0 0 1px rgba(255, 255, 255, 0.6) inset;
}

.plan-showcase-card__media {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: none;
  background: #0f172a;
  cursor: pointer;
  overflow: hidden;
  /* aspect-ratio: 16 / 9 !important; */
  font-family: inherit;
}

.plan-showcase-card__media img {
  width: 100%;
  /* height: 100%; */
  object-fit: cover;
  display: block;
  transition: transform 0.45s ease;
}

.plan-showcase-card:hover .plan-showcase-card__media img {
  transform: scale(1.04);
}

.plan-showcase-card__overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(
    180deg,
    rgba(15, 23, 36, 0.02) 0%,
    rgba(15, 23, 36, 0.08) 55%,
    rgba(15, 23, 36, 0.42) 100%
  );
  opacity: 0.85;
  transition: opacity 0.3s ease;
}

.plan-showcase-card:hover .plan-showcase-card__overlay {
  opacity: 1;
}

.plan-showcase-card__ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  z-index: 2;
  padding: 6px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, #16a34a, #22c55e);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  box-shadow: 0 8px 20px rgba(22, 163, 74, 0.35);
}

.plan-showcase-card__type {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  padding: 6px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #543ae3;
  font-size: 11px;
  font-weight: 700;
  backdrop-filter: blur(8px);
}

.plan-showcase-card__play {
  position: absolute;
  left: 50%;
  top: 50%;
  z-index: 2;
  transform: translate(-50%, -50%) scale(0.92);
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #543ae3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 14px 32px rgba(15, 23, 36, 0.22);
  opacity: 0;
  transition: opacity 0.25s ease, transform 0.25s ease;
}

.plan-showcase-card:hover .plan-showcase-card__play {
  opacity: 1;
  transform: translate(-50%, -50%) scale(1);
}

.plan-showcase-card__body {
  padding: 1.15rem 1.25rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
}

.plan-showcase-card__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-showcase-card__meta span {
  background: #f3f0ff;
  color: #543ae3;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
}

.plan-showcase-card__title {
  margin: 0;
  font-size: 1.12rem;
  font-weight: 700;
  color: #0f1724;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plan-showcase-card__desc {
  margin: 0;
  color: #64748b;
  font-size: 0.92rem;
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.plan-showcase-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 0.35rem;
  padding-top: 0.85rem;
  border-top: 1px solid #f1f5f9;
}

.plan-showcase-card__pricing {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 8px;
}

.plan-showcase-card__pricing strong {
  font-size: 1.4rem;
  font-weight: 700;
  color: #0f1724;
  letter-spacing: -0.02em;
}

.plan-showcase-card__pricing s {
  color: #94a3b8;
  font-size: 0.95rem;
  font-weight: 600;
}

.plan-showcase-card__cta {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: none;
  border-radius: 12px;
  padding: 11px 16px;
  background: linear-gradient(135deg, #543ae3, #6d5ef7);
  color: #fff;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(84, 58, 227, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.plan-showcase-card__cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(84, 58, 227, 0.36);
}

.available-plans-wrap--static {
  padding: 0;
}

.available-plans-wrap--static::before,
.available-plans-wrap--static::after {
  display: none !important;
}

.available-plans-grid--single {
  display: block;
  width: 100%;
}

.available-plans-grid--single .plan-showcase-card {
  flex-direction: row;
  align-items: stretch;
  width: 100%;
  max-width: 100%;
}

.available-plans-grid--single .plan-showcase-card__media {
  flex: 0 0 min(44%, 350px);
  width: min(44%, 350px);
  min-height: 240px;
  align-self: stretch;
}

.available-plans-grid--single .plan-showcase-card__media img {
  width: 100%;
  height: 100%;
  min-height: 240px;
  object-fit: cover;
}

.available-plans-grid--single .plan-showcase-card__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.75rem 1.6rem;
}

.available-plans-grid--single .plan-showcase-card__footer {
  margin-top: auto;
}

.plan-showcase-card__highlights {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem 0.85rem;
  margin-top: 0.35rem;
}

.plan-showcase-card__highlight {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  background: #f3f5fc;
  padding: 15px;
  border-radius: 10px;
  min-width: 0;
}

.plan-showcase-card__highlight-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #9ca3af;
  font-size: 1rem;
  border-radius: 8px;
  background: #f8fafc;
  overflow: hidden;
}

.plan-showcase-card__highlight-icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.plan-showcase-card__highlight-copy {
  min-width: 0;
}

.plan-showcase-card__highlight-copy strong {
  display: block;
  margin-bottom: 0.1rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: #0f1724;
  line-height: 1.3;
}

.plan-showcase-card__highlight-copy p {
  margin: 0;
  font-size: 0.72rem;
  font-weight: 600;
  color: #6b7280;
  line-height: 1.35;
}

.available-plans-grid--pair {
  display: flex;
  /* grid-template-columns: repeat(2, minmax(0, 1fr)); */
  gap: 1.35rem;
}

.available-plans-grid--scroll {
  display: flex;
  gap: 1.25rem;
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 6px 4px 12px;
}

.available-plans-grid--scroll::-webkit-scrollbar {
  display: none;
}

.available-plans-grid--scroll .plan-showcase-card {
  flex: 0 0 min(78vw, 380px);
  width: min(78vw, 380px);
  scroll-snap-align: start;
}

/* Legacy explore-plan cards (batches fallback) */
.explore-plans {
  margin-top: 2rem;
  padding: 1.5rem 1.25rem 0;
  border-radius: 24px;
  background:
    radial-gradient(ellipse 60% 80% at 0% 0%, rgba(84, 58, 227, 0.08), transparent 55%),
    #fff;
  border: 1px solid #eef2ff;
  box-shadow: 0 14px 36px rgba(84, 58, 227, 0.06);
}

.explore-plans .section-top {
  margin-bottom: 1rem;
}

.explore-plans .section-top h2 {
  font-size: 1.5rem;
  font-weight: 700;
  margin: 0 0 0.25rem;
  color: #0f1724;
}

.explore-plans .section-top h2 span {
  color: #543ae3;
}

.explore-plans .section-top p {
  margin: 0;
  color: #64748b;
  font-weight: 600;
  font-size: 0.95rem;
}

.explore-plan-card {
  min-width: 280px;
  max-width: 320px;
  background: #fff;
  border: 1.5px solid #eef2ff;
  border-radius: 20px;
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  box-shadow: 0 10px 28px rgba(84, 58, 227, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.explore-plan-card:hover {
  transform: translateY(-4px);
  border-color: rgba(84, 58, 227, 0.28);
  box-shadow: 0 18px 40px rgba(84, 58, 227, 0.14);
}

.explore-plan-badge {
  align-self: flex-start;
  background: #ede9fe;
  color: #543ae3;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}

.explore-plan-card h3 {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 700;
  color: #0f1724;
  line-height: 1.35;
}

.explore-plan-card > p {
  margin: 0;
  color: #64748b;
  font-size: 0.9rem;
  line-height: 1.45;
  min-height: 2.6em;
}

.explore-plan-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: #543ae3;
}

.explore-plan-meta span {
  background: #f3f0ff;
  padding: 4px 8px;
  border-radius: 8px;
}

.explore-plan-pricing {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin-top: 0.25rem;
}

.explore-plan-pricing strong {
  font-size: 1.35rem;
  color: #0f1724;
}

.explore-plan-pricing s {
  color: #94a3b8;
  font-size: 0.95rem;
}

.explore-plan-pricing em {
  font-style: normal;
  font-size: 12px;
  font-weight: 700;
  color: #16a34a;
  background: #dcfce7;
  padding: 2px 8px;
  border-radius: 999px;
}

.explore-plan-cta {
  margin-top: auto;
  border: none;
  background: linear-gradient(135deg, #543ae3, #6d5ef7);
  color: #fff;
  border-radius: 12px;
  padding: 12px 14px;
  font-family: inherit;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(84, 58, 227, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.explore-plan-cta:hover {
  background: linear-gradient(135deg, #4630c4, #5b4de8);
  transform: translateY(-1px);
  box-shadow: 0 12px 26px rgba(84, 58, 227, 0.32);
}

/* ——— Enrolled batches ——— */
.ejs-home .vid-home .hero-enrolled-panel {
  flex-direction: column;
  align-items: stretch;
  gap: 0.85rem;
  padding: 1rem 1rem 1.1rem;
}

.ejs-home .vid-home .hero-enrolled-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.ejs-home .vid-home .hero-enrolled-count {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 0.9rem;
  font-weight: 600;
}

.ejs-home .vid-home .hero-enrolled-view-all {
  color: #543ae3;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.ejs-home .vid-home .hero-enrolled-view-all:hover {
  text-decoration: underline;
}

.ejs-home .vid-home .hero-enrolled-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.ejs-home .vid-home .hero-enrolled-item {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 0.75rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
  border: 1px solid rgba(84, 58, 227, 0.1);
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.ejs-home .vid-home .hero-enrolled-item:hover {
  transform: translateY(-2px);
  border-color: rgba(84, 58, 227, 0.22);
  box-shadow: 0 10px 24px rgba(84, 58, 227, 0.1);
}

.ejs-home .vid-home .hero-enrolled-thumb {
  width: 56px;
  height: 56px;
  border-radius: 12px;
  overflow: hidden;
  background: #ede9fe;
  flex-shrink: 0;
}

.ejs-home .vid-home .hero-enrolled-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ejs-home .vid-home .hero-enrolled-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ejs-home .vid-home .hero-enrolled-copy strong {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f1724;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ejs-home .vid-home .hero-enrolled-copy span {
  font-size: 0.8rem;
  color: #64748b;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.ejs-home .vid-home .hero-enrolled-arrow {
  color: #543ae3;
  font-size: 1.1rem;
  font-weight: 700;
}

.ejs-home .vid-home .section-enrolled {
  padding-top: 2.5rem;
  padding-bottom: 2.5rem;
}

.ejs-home .vid-home .enrolled-section-badge {
  display: inline-block;
  margin-bottom: 0.65rem;
  padding: 6px 12px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 12px;
  display: none ;
  font-weight: 700;
}

.ejs-home .vid-home .enrolled-batches-grid--scroll {
  display: flex;
  gap: 1.25rem;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  scrollbar-width: none;
  padding: 8px 4px 16px;
}

.ejs-home .vid-home .enrolled-batches-grid--scroll::-webkit-scrollbar {
  display: none;
}

.ejs-home .vid-home .enrolled-batches-grid--scroll .enrolled-batch-card {
  flex: 0 0 40%;
  width: 40%;
  /* min-height: 420px; */
  scroll-snap-align: start;
}

.ejs-home .vid-home .enrolled-batches-wrap--static {
  padding: 8px 4px 16px;
}

.ejs-home .vid-home .enrolled-batches-wrap--static::before,
.ejs-home .vid-home .enrolled-batches-wrap--static::after {
  display: none !important;
}

.ejs-home .vid-home .enrolled-batches-grid--single {
  display: flex;
  /* justify-content: center; */
  gap: 1.25rem;
  overflow: visible;
  padding: 0;
}

.ejs-home .vid-home .enrolled-batches-grid--single .enrolled-batch-card {
  flex: 0 1 35%;
  width: 100%;
  max-width: 35%;
}

.ejs-home .vid-home .enrolled-batches-grid--pair {
  display: flex;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.25rem;
  overflow: scroll;
  padding: 0;
}

.ejs-home .vid-home .enrolled-batches-grid--pair .enrolled-batch-card {
  flex: none;
  width: 35%;
  max-width: none;
  min-width: 0;
}

.ejs-home .vid-home .enrolled-batch-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid #eef2ff;
  height: auto;
  min-height: 0;
  align-self: flex-start;
}

.ejs-home .vid-home .enrolled-batch-media {
  position: relative;
  display: block;
  line-height: 0;
  background: linear-gradient(135deg, #ede9fe, #ddd6fe);
  overflow: hidden;
}

.ejs-home .vid-home .enrolled-batch-media img {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  transition: transform 0.35s ease;
}

.ejs-home .vid-home .enrolled-batch-card:hover {
  box-shadow: 0 24px 50px rgba(84, 58, 227, 0.14);
}

.ejs-home .vid-home .enrolled-batch-card--featured {
  border-color: rgba(84, 58, 227, 0.22);
  box-shadow: 0 20px 48px rgba(84, 58, 227, 0.12);
}

.ejs-home .vid-home .enrolled-batch-card:hover .enrolled-batch-media img {
  transform: scale(1.04);
}

.ejs-home .vid-home .enrolled-batch-overlay {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(180deg, rgba(15, 23, 36, 0.02), rgba(15, 23, 36, 0.28));
  opacity: 0;
  transition: opacity 0.25s ease;
}

.ejs-home .vid-home .enrolled-batch-card:hover .enrolled-batch-overlay {
  opacity: 1;
}

.ejs-home .vid-home .enrolled-batch-play {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  color: #543ae3;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  box-shadow: 0 10px 24px rgba(15, 23, 36, 0.18);
}

.ejs-home .vid-home .enrolled-batch-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: #16a34a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  /* letter-spacing: 0.02em; */
  text-transform: uppercase;
  padding: 10px 11px;
  border-radius: 999px;
  box-shadow: 0 6px 16px rgba(22, 163, 74, 0.28);
}

.ejs-home .vid-home .enrolled-batch-body {
  padding: 1.15rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
  flex: 1;
  display: none;
}

.ejs-home .vid-home .enrolled-batch-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ejs-home .vid-home .enrolled-batch-meta span {
  background: #f3f0ff;
  color: #543ae3;
  font-size: 11px;
  font-weight: 700;
  padding: 5px 10px;
  border-radius: 999px;
  text-transform: capitalize;
}

.ejs-home .vid-home .enrolled-batch-body p {
  margin: 0;
  color: #64748b;
  font-size: 0.95rem;
  line-height: 1.55;
  flex: 1;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.ejs-home .vid-home .enrolled-batch-body h3 {
  margin: 0;
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f1724;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* min-height: 2.7em; */
}

.ejs-home .vid-home .enrolled-batch-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin-top: 0.35rem;
  padding: 13px 16px;
  border-radius: 14px;
  background: linear-gradient(135deg, #543ae3, #6d5ef7);
  color: #fff;
  text-decoration: none;
  font-weight: 700;
  font-size: 0.95rem;
  box-shadow: 0 10px 24px rgba(84, 58, 227, 0.28);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ejs-home .vid-home .enrolled-batch-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(84, 58, 227, 0.36);
}

.ejs-home .vid-home .subscription-banner-btn {
  text-decoration: none;
  text-align: center;
}

/* ——— Cards / content polish ——— */
.ejs-home .vid-home .recorded-card,
.ejs-home .vid-home .chapter-card,
.ejs-home .vid-home .educator-card,
.ejs-home .vid-home .result-card,
.ejs-home .vid-home .overview-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.ejs-home .vid-home .recorded-card:hover,
.ejs-home .vid-home .chapter-card:hover,
.ejs-home .vid-home .educator-card:hover,
.ejs-home .vid-home .result-card:hover,
.ejs-home .vid-home .overview-card:hover {
  transform: translateY(-3px);
}

@keyframes home-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes home-fade-in {
  from {
    opacity: 0;
    transform: scale(0.98);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 992px) {
  .ejs-home .vid-home .hero-pro-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .ejs-home .vid-home .hero-pro-video.hero-banner-slider {
    max-width: 420px;
    margin-left: auto;
    margin-right: auto;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .ejs-home .vid-home .enrolled-batches-grid--scroll .enrolled-batch-card {
    flex: 0 0 min(78vw, 300px);
    width: min(78vw, 300px);
  }

  .ejs-home .vid-home .class-select {
    max-width: min(200px, 46vw);
  }

  .ejs-home .vid-home #class-select-label {
    max-width: 120px;
  }

  .available-plans-grid--pair {
    grid-template-columns: 1fr;
  }

  .available-plans-grid--single .plan-showcase-card {
    flex-direction: column;
  }

  .available-plans-grid--single .plan-showcase-card__media {
    flex: none;
    width: 100%;
    min-height: 0;
    aspect-ratio: 16 / 9;
  }

  .available-plans-grid--single .plan-showcase-card__media img {
    min-height: 0;
    height: auto;
  }

  .available-plans-grid--single .plan-showcase-card__body {
    padding: 1.25rem 1.15rem 1.35rem;
  }

  .plan-showcase-card__highlights {
    grid-template-columns: 1fr;
  }

  .available-plans-grid--scroll .plan-showcase-card {
    flex: 0 0 min(82vw, 320px);
    width: min(82vw, 320px);
  }

  .explore-plans--premium {
    padding: 1.35rem 1.1rem 1.15rem;
    border-radius: 22px;
  }
}

@media (max-width: 768px) {
  .section-slider-nav-btn {
    width: 40px;
    height: 40px;
  }

  .section-slider-nav-btn--prev {
    left: 4px;
  }

  .section-slider-nav-btn--next {
    right: 4px;
  }

  .ejs-home .vid-home .hero-section {
    padding: 1.75rem 0 2.5rem;
  }

  .ejs-home .vid-home .hero-pro-features {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .ejs-home .vid-home .hero-pro-highlight {
    flex-direction: column;
    align-items: stretch;
    text-align: left;
    gap: 0.85rem;
  }

  .ejs-home .vid-home .subscription-banner-btn {
    width: 100%;
  }

  .ejs-home .vid-home .hero-pro-video {
    min-height: 280px;
    border-radius: 22px;
  }

  .ejs-home .vid-home .hero-pro-video.hero-banner-slider {
    min-height: 0 !important;
    max-width: 360px;
    height: auto;
    aspect-ratio: 1 / 1;
  }

  .explore-plans--premium {
    padding: 1.15rem 0.9rem 1rem;
  }

  .explore-plans__toolbar {
    flex-direction: column;
    align-items: flex-start;
  }

  .explore-plans__trust {
    gap: 0.55rem 0.85rem;
  }

  .plan-showcase-card__footer {
    flex-direction: column;
    align-items: stretch;
  }

  .plan-showcase-card__cta {
    justify-content: center;
  }

  .explore-plans {
    padding: 1.15rem 0.85rem 0.25rem;
  }

  .ejs-home .vid-home .enrolled-batches-grid--pair {
    grid-template-columns: 1fr;
  }

  .ejs-home .vid-home .enrolled-batches-grid--scroll .enrolled-batch-card {
    flex: 0 0 min(82vw, 280px);
    width: min(82vw, 280px);
    /* min-height: 400px; */
  }

  .ejs-home .vid-home .hero-enrolled-item {
    grid-template-columns: 48px 1fr auto;
  }

  .ejs-home .vid-home .hero-enrolled-thumb {
    width: 48px;
    height: 48px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ejs-home .vid-home .hero-pro-badge--yellow,
  .ejs-home .vid-home .hero-pro-title,
  .ejs-home .vid-home .hero-pro-desc,
  .ejs-home .vid-home .hero-pro-features,
  .ejs-home .vid-home .hero-pro-highlight,
  .ejs-home .vid-home .hero-pro-visual {
    animation: none;
  }
}

/* Full-bleed alternating section stripes — home page only */
.ejs-home.home-page .vid-home > section:nth-of-type(even) {
  background: #fff;
}

.ejs-home.home-page .vid-home > section:nth-of-type(odd):not(.hero-section) {
  background: var(--primary-bg, #f3f5fc);
}
