/* Cinematic Learning Home v2 - scoped to the web home page. */
body.mj-home-page {
  --mj-home-space: clamp(42px, 5.2vw, 78px);
}

body.mj-home-page .mj-hero {
  min-height: clamp(590px, 76vh, 700px);
  align-items: center;
  padding: calc(var(--mj-header) + 44px) 0 72px;
  isolation: isolate;
}

body.mj-home-page .mj-hero__backdrop img {
  position: relative;
  z-index: 1;
  object-position: center 28%;
  filter: saturate(.92) contrast(1.07) brightness(.82);
  transform: scale(1.018);
}

.mj-hero__fallback-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 23% 42%, rgba(var(--mj-accent-rgb), .24), transparent 23%),
    radial-gradient(circle at 49% 78%, rgba(101,183,238,.1), transparent 26%),
    linear-gradient(120deg, #111e2a, #071019 58%, #080c12);
}

.mj-hero__fallback-art > i {
  position: absolute;
  width: clamp(180px, 18vw, 310px);
  aspect-ratio: 2/3;
  border: 1px solid rgba(255,255,255,.06);
  border-radius: 26px;
  background: linear-gradient(150deg, rgba(255,255,255,.045), rgba(255,255,255,.01));
  box-shadow: 0 28px 70px rgba(0,0,0,.26);
  transform: rotate(-9deg);
}

.mj-hero__fallback-art > i:nth-of-type(1) {
  inset: 8% auto auto 5%;
}

.mj-hero__fallback-art > i:nth-of-type(2) {
  inset: 28% auto auto 20%;
  transform: rotate(7deg);
}

.mj-hero__fallback-art > i:nth-of-type(3) {
  inset: 3% auto auto 34%;
  opacity: .6;
  transform: rotate(-2deg);
}

.mj-hero__fallback-play {
  position: absolute;
  z-index: 2;
  left: 22%;
  top: 40%;
  width: 76px;
  height: 76px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(var(--mj-accent-rgb), .3);
  border-radius: 50%;
  background: rgba(7,14,21,.64);
  color: var(--mj-primary);
  box-shadow: 0 0 0 12px rgba(var(--mj-accent-rgb), .055), 0 20px 48px rgba(0,0,0,.32);
  backdrop-filter: blur(10px);
}

.mj-hero__fallback-play svg {
  width: 35px;
  fill: currentColor;
}

.mj-hero__fallback-line {
  position: absolute;
  z-index: 2;
  left: 8%;
  min-width: 270px;
  padding: 10px 17px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 13px;
  background: rgba(5,11,17,.58);
  color: #e8eef3;
  box-shadow: 0 14px 32px rgba(0,0,0,.2);
  backdrop-filter: blur(12px);
}

.mj-hero__fallback-line--en {
  top: 62%;
  font: 750 clamp(15px,1.4vw,22px)/1.4 "Segoe UI", Arial, sans-serif;
}

.mj-hero__fallback-line--fa {
  top: calc(62% + 58px);
  color: #b8c5cf;
  font-size: clamp(12px,1vw,15px);
}

body.mj-home-page .mj-hero__backdrop::after {
  background:
    linear-gradient(90deg, rgba(7,10,15,.08), rgba(7,10,15,.36) 42%, rgba(7,10,15,.91) 78%),
    linear-gradient(0deg, var(--mj-bg) 0%, rgba(7,10,15,.1) 38%, rgba(7,10,15,.34) 100%);
}

body.mj-home-page .mj-hero__content {
  align-items: center;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, .5fr);
  gap: clamp(34px, 6vw, 88px);
}

body.mj-home-page .mj-hero__copy {
  max-width: 690px;
}

body.mj-home-page .mj-hero h1 {
  margin-block: 12px 13px;
  font-size: clamp(50px, 5.5vw, 78px);
  letter-spacing: -3.8px;
}

body.mj-home-page .mj-hero__copy > p {
  max-width: 610px;
  margin-bottom: 22px;
  color: #d0d7df;
  font-size: clamp(14px, 1vw, 16px);
  line-height: 2;
}

body.mj-home-page .mj-hero__lesson {
  min-height: 220px;
  padding: 22px;
  border-radius: 22px;
  background: linear-gradient(145deg, rgba(19,29,41,.84), rgba(7,13,20,.72));
  box-shadow: 0 24px 64px rgba(0,0,0,.28);
}

body.mj-home-page .mj-hero__lesson li {
  font-size: 12px;
}

body.mj-home-page .mj-value-strip,
body.mj-home-page .mj-home-command {
  margin-top: -30px;
  position: relative;
  z-index: 3;
}

.mj-home-today {
  width: var(--mj-page);
  min-height: 142px;
  display: grid;
  grid-template-columns: 62px minmax(280px, 1fr) auto auto;
  align-items: center;
  gap: 24px;
  margin: 28px auto 8px;
  padding: 22px 24px;
  border: 1px solid rgba(var(--mj-accent-rgb), .22);
  border-radius: 22px;
  background:
    radial-gradient(circle at 8% 50%, rgba(var(--mj-accent-rgb), .13), transparent 30%),
    linear-gradient(135deg, var(--mj-surface), var(--mj-surface-2));
  box-shadow: 0 18px 52px rgba(0,0,0,.12);
}

.mj-home-today__icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 18px;
  background: var(--mj-primary-soft);
  color: var(--mj-primary);
}

.mj-home-today__icon svg {
  width: 28px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.mj-home-today__copy > span {
  color: var(--mj-primary);
  font-size: 12px;
  font-weight: 850;
}

.mj-home-today__copy h2 {
  margin: 4px 0 3px;
  font-size: clamp(20px, 1.7vw, 27px);
  line-height: 1.55;
}

.mj-home-today__copy p {
  margin: 0;
  color: var(--mj-muted);
  font-size: 13px;
  line-height: 1.85;
}

.mj-home-today__meta {
  display: flex;
  align-items: stretch;
  border: 1px solid var(--mj-line);
  border-radius: 16px;
  overflow: hidden;
  background: rgba(255,255,255,.018);
}

.mj-home-today__meta > span {
  min-width: 86px;
  display: grid;
  place-items: center;
  gap: 3px;
  padding: 12px 14px;
  text-align: center;
}

.mj-home-today__meta > span + span {
  border-inline-start: 1px solid var(--mj-line);
}

.mj-home-today__meta b {
  color: var(--mj-text);
  font: 850 16px/1 Arial, sans-serif;
}

.mj-home-today__meta small {
  color: var(--mj-muted);
  font-size: 10px;
  white-space: nowrap;
}

.mj-home-today > .mj-button {
  min-width: 150px;
  white-space: nowrap;
}

.mj-home-today > .mj-button svg {
  width: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
}

body.mj-home-page .mj-section {
  padding-block: var(--mj-home-space);
}

body.mj-home-page .mj-section--learning {
  padding-top: clamp(42px, 4.6vw, 66px);
}

body.mj-home-page .mj-section__heading {
  margin-bottom: 24px;
}

body.mj-home-page .mj-section__heading p {
  max-width: 760px;
  font-size: 13px;
  line-height: 1.9;
}

body.mj-home-page .mj-learning-title-grid--home {
  gap: 16px;
}

body.mj-home-page .mj-learning-title[data-surface="home"] {
  border-radius: 20px;
  box-shadow: 0 14px 38px rgba(0,0,0,.08);
}

body.mj-home-page .mj-learning-title[data-surface="home"] .mj-learning-title__summary {
  min-height: 150px;
  grid-template-columns: 142px minmax(0,1fr) minmax(108px,.28fr) auto;
  gap: 16px;
  padding: 12px;
}

body.mj-home-page .mj-learning-title[data-surface="home"] .mj-learning-title__art {
  height: 124px;
  border-radius: 14px;
}

body.mj-home-page .mj-learning-title[data-surface="home"] .mj-learning-title__episodes {
  max-height: min(560px, 66vh);
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-color: rgba(var(--mj-accent-rgb), .38) transparent;
  scrollbar-width: thin;
}

body.mj-home-page .mj-learning-title[data-surface="home"] .mj-learning-title__episodes::-webkit-scrollbar {
  width: 7px;
}

body.mj-home-page .mj-learning-title[data-surface="home"] .mj-learning-title__episodes::-webkit-scrollbar-thumb {
  border-radius: 8px;
  background: rgba(var(--mj-accent-rgb), .34);
}

body.mj-home-page .mj-learning-title__copy > small,
body.mj-home-page .mj-learning-title__facts em {
  font-size: 12px;
}

.mj-home-learning-more {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 14px;
  padding: 13px 18px;
  border: 1px dashed rgba(var(--mj-accent-rgb), .24);
  border-radius: 16px;
  background: rgba(var(--mj-accent-rgb), .025);
  color: var(--mj-muted);
  font-size: 13px;
}

.mj-home-learning-more span b {
  margin-inline-end: 4px;
  color: var(--mj-primary);
  font: 850 15px/1 Arial, sans-serif;
}

.mj-home-learning-more a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--mj-primary);
  font-size: 13px;
  font-weight: 850;
  white-space: nowrap;
}

.mj-home-learning-more i {
  font-size: 18px;
  font-style: normal;
}

body.mj-home-page .mj-path {
  margin-block: 28px 54px;
  padding: clamp(34px, 4vw, 54px);
  gap: clamp(34px, 5vw, 72px);
}

body.mj-home-page .mj-path__steps article {
  min-height: 218px;
}

body.mj-home-page .mj-path__icon {
  margin-block: 20px 22px;
}

body.mj-home-page .mj-card-rail {
  grid-auto-columns: minmax(172px, 12vw);
  gap: 16px;
  padding: 4px 4px 18px;
  scroll-padding-inline: 4px;
}

.mj-content-card__fallback {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 22px;
  background:
    radial-gradient(circle at 70% 18%, rgba(var(--mj-accent-rgb), .17), transparent 30%),
    linear-gradient(155deg, #172433, #0c141e 64%, #111d19);
  color: #dce5ed;
  text-align: center;
}

.mj-content-card__fallback::after {
  content: "";
  width: 48px;
  height: 3px;
  border-radius: 3px;
  background: var(--mj-primary);
  opacity: .72;
}

.mj-content-card__fallback svg {
  width: 42px;
  fill: none;
  stroke: var(--mj-primary);
  stroke-width: 1.4;
}

.mj-content-card__fallback b {
  max-width: 100%;
  overflow: hidden;
  color: #f0f4f7;
  font: 750 13px/1.55 "Segoe UI", Arial, sans-serif;
  text-overflow: ellipsis;
}

.mj-content-card__fallback small {
  color: #8f9ba9;
  font-size: 10px;
}

.mj-content-card__media > img {
  position: relative;
  z-index: 1;
}

.mj-content-card__shade,
.mj-content-card__media .mj-badge,
.mj-content-card__media .mj-rating,
.mj-content-card__media .mj-card-play,
.mj-content-card__media .mj-card-progress {
  z-index: 2;
}

body.mj-home-page .mj-content-card__body > strong {
  font-size: 14px;
}

body.mj-home-page .mj-content-card__body em {
  font-size: 11px;
}

body.mj-home-page .mj-cta--home {
  margin-top: 46px;
  padding: clamp(32px, 4vw, 52px);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 40%, rgba(var(--mj-accent-rgb), .13), transparent 34%),
    linear-gradient(130deg, var(--mj-surface-2), var(--mj-surface));
}

html[data-theme="light"] .mj-home-today,
html[data-theme="light"] body.mj-home-page .mj-cta--home {
  box-shadow: 0 18px 44px rgba(30,58,47,.08);
}

@media (max-width: 1180px) {
  body.mj-home-page .mj-hero {
    min-height: 620px;
  }

  body.mj-home-page .mj-hero__content {
    grid-template-columns: minmax(0,1fr) 310px;
    gap: 28px;
  }

  .mj-home-today {
    grid-template-columns: 58px minmax(0,1fr) auto;
  }

  .mj-home-today__meta {
    display: none;
  }

  body.mj-home-page .mj-learning-title[data-surface="home"] .mj-learning-title__summary {
    grid-template-columns: 126px minmax(0,1fr) auto;
  }

  body.mj-home-page .mj-learning-title[data-surface="home"] .mj-learning-title__progress {
    display: none;
  }
}

@media (max-width: 900px) {
  body.mj-home-page .mj-hero {
    min-height: 680px;
    align-items: end;
    padding-bottom: 72px;
  }

  body.mj-home-page .mj-hero__content {
    grid-template-columns: 1fr;
  }

  body.mj-home-page .mj-hero__lesson {
    display: none;
  }

  body.mj-home-page .mj-hero__backdrop::after {
    background: linear-gradient(0deg, var(--mj-bg) 0%, rgba(7,10,15,.9) 42%, rgba(7,10,15,.24) 100%);
  }

  .mj-hero__fallback-line,
  .mj-hero__fallback-play {
    display: none;
  }

  .mj-home-today {
    grid-template-columns: 52px minmax(0,1fr) auto;
    gap: 16px;
  }

  .mj-home-today__copy p {
    display: none;
  }

  body.mj-home-page .mj-learning-title-grid--home {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 680px) {
  body.mj-home-page {
    --mj-home-space: 34px;
  }

  body.mj-home-page .mj-hero {
    min-height: 620px;
    padding: 106px 0 68px;
  }

  body.mj-home-page .mj-hero h1 {
    font-size: clamp(40px, 14vw, 57px);
  }

  body.mj-home-page .mj-value-strip,
  body.mj-home-page .mj-home-command {
    margin-top: -18px;
  }

  .mj-home-today {
    grid-template-columns: 44px minmax(0,1fr);
    gap: 12px;
    margin-top: 18px;
    padding: 16px;
    border-radius: 18px;
  }

  .mj-home-today__icon {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .mj-home-today__icon svg {
    width: 23px;
  }

  .mj-home-today__copy > span {
    font-size: 10px;
  }

  .mj-home-today__copy h2 {
    margin-top: 2px;
    font-size: 16px;
  }

  .mj-home-today > .mj-button {
    grid-column: 1/-1;
    width: 100%;
  }

  body.mj-home-page .mj-section__heading p {
    display: none;
  }

  body.mj-home-page .mj-learning-title[data-surface="home"] .mj-learning-title__summary {
    min-height: 126px;
    grid-template-columns: 98px minmax(0,1fr) 36px;
    gap: 10px;
    padding: 10px;
  }

  body.mj-home-page .mj-learning-title[data-surface="home"] .mj-learning-title__art {
    height: 104px;
  }

  body.mj-home-page .mj-learning-title__copy > small,
  body.mj-home-page .mj-learning-title__facts em {
    font-size: 10px;
  }

  .mj-home-learning-more {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
    font-size: 11px;
  }

  .mj-home-learning-more a {
    font-size: 11px;
  }

  body.mj-home-page .mj-card-rail {
    grid-auto-columns: minmax(136px, 40vw);
  }

  body.mj-home-page .mj-content-card__body > strong {
    font-size: 12px;
  }

  body.mj-home-page .mj-content-card__body em {
    font-size: 9px;
  }

  body.mj-home-page .mj-cta--home {
    margin-top: 26px;
    padding: 24px 20px;
  }
}
