:root[data-utiva-redesign] {
  --rd-blue: #080b83;
  --rd-ink: #19213a;
  --rd-muted: #515c71;
  --rd-ivory: #fbf8ef;
  --rd-white: #fff;
  --rd-line: #dfe4ee;
  --rd-gold: #ffbe32;
  --rd-rise: clamp(46px, 6vw, 86px);
  --rd-grid: linear-gradient(#18367b0c 1px, transparent 1px),
    linear-gradient(90deg, #18367b0c 1px, transparent 1px);
}

[data-utiva-redesign] body {
  background: var(--rd-ivory);
}

[data-utiva-redesign] [data-redesign-removed] {
  display: none !important;
}

[data-utiva-redesign] :is(.site-header,#utiva-standard-nav) {
  border-bottom: 1px solid var(--rd-line);
  box-shadow: 0 4px 22px #1528540b;
}

[data-utiva-redesign] [data-redesign-role="hero"] {
  padding-block-start: clamp(34px, 5vw, 76px) !important;
  padding-block-end: clamp(35px, 4.5vw, 64px) !important;
  border-bottom: 1px solid #7791c526;
  background-image: var(--rd-grid);
  background-size: 58px 58px;
}

[data-utiva-redesign="home"] [data-redesign-role="hero"] {
  border-bottom: 0;
  background-color: var(--rd-ivory);
}

[data-utiva-redesign="home"] #top {
  background-color: var(--rd-ivory);
}

[data-utiva-redesign] [data-redesign-role="hero"] h1 {
  max-inline-size: 18ch;
  margin-block-end: 0.35em;
  font-size: clamp(35px, 5.2vw, 74px);
  line-height: 1.035;
  letter-spacing: -0.052em;
  text-wrap: balance;
}

[data-utiva-redesign="home"] [data-redesign-role="hero"] h1 {
  max-inline-size: 24ch;
  margin-inline: auto;
}

[data-utiva-redesign] [data-redesign-role="hero"] :is([class*="_heroCopy_"],[class*="_heroLead_"]) > p {
  max-inline-size: 59ch;
  line-height: 1.58;
}

[data-utiva-redesign] [data-redesign-role="hero"] :is(figure, [class*="_heroVisual_"], [class*="_heroPhoto_"]) {
  border-radius: clamp(14px, 2vw, 26px);
  box-shadow: 0 14px 35px #131f4221;
}

[data-utiva-redesign] [data-redesign-role="section"] {
  padding-block: var(--rd-rise) !important;
}

[data-utiva-redesign] [data-redesign-role="section"] h2 {
  line-height: 1.13;
  letter-spacing: -0.036em;
  text-wrap: balance;
}

[data-utiva-redesign] [data-redesign-role="section"] :is([class*="_sectionHeading_"], [class*="_sectionHead_"], [class*="_sectionIntro_"]) {
  row-gap: 10px;
  margin-block-end: clamp(18px, 3vw, 34px);
}

[data-utiva-redesign] [data-redesign-role="section"] :is([class*="_sectionHeading_"], [class*="_sectionHead_"]) > p {
  max-inline-size: 57ch;
  margin-block-end: 0;
  text-wrap: pretty;
}

[data-utiva-redesign] [data-redesign-role="action"] {
  min-block-size: 0;
  padding-block: clamp(36px, 6vw, 68px) !important;
  border-block-start: 3px solid var(--rd-gold);
}

[data-utiva-redesign] [data-redesign-role="action"] h2 {
  max-inline-size: 25ch;
  margin-block-end: 0.4em;
  line-height: 1.12;
}

[data-utiva-redesign] [data-redesign-role="cards"] {
  gap: clamp(12px, 2.5vw, 21px);
}

[data-utiva-redesign] [data-redesign-role="cards"] > article {
  min-block-size: 0 !important;
  border-radius: 15px;
  box-shadow: 0 4px 13px #132b4a0e;
}

[data-utiva-redesign] [data-redesign-role="cards"] > article p {
  line-height: 1.52;
}

[data-utiva-redesign] [data-redesign-role="cards"] > article h3 {
  line-height: 1.22;
}

[data-utiva-redesign="course"] [data-redesign-role="hero"] {
  background-color: var(--rd-ivory);
  border-radius: 0 0 20px 20px;
}

[data-utiva-redesign="course"] #root section:has(> div > h2) > div:first-child {
  row-gap: 12px;
}

[data-utiva-redesign="course"]:not(:has([data-course-hero])) :is(#curriculum,#pricing,#course-curriculum) {
  scroll-margin-top: 100px;
}

[data-utiva-redesign="course"] :is(#curriculum,#course-curriculum) :is(details,article) {
  border-radius: 12px;
}

[data-utiva-redesign="education"] :is([class*="_benefitCard_"],[class*="_pricingCard_"]) {
  border-radius: 18px;
}

[data-utiva-redesign="catalogue"] :is([class*="_searchPanel_"],[class*="_filterPanel_"],[class*="_toolbar_"]) {
  border-radius: 12px;
}

[data-utiva-redesign="work"] [data-redesign-role="hero"] :is([class*="_heroCopy_"],[class*="_heroContent_"]) {
  max-inline-size: 710px;
}

.redesign-reading-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 24px;
  padding: 16px max(18px, calc((100vw - 1180px) / 2));
  border-bottom: 1px solid var(--rd-line);
  background: white;
}

.redesign-reading-header img { width: clamp(76px, 11vw, 106px); height: auto; }
.redesign-reading-header nav { display: flex; gap: clamp(13px, 3vw, 36px); }
.redesign-reading-header nav a { color: var(--rd-ink); font-size: 14px; font-weight: 650; }
.redesign-reading-header nav a[aria-current] { color: var(--rd-blue); text-decoration: underline; text-underline-offset: 5px; }

[data-utiva-redesign="article"] [data-redesign-reading] {
  margin-block-start: clamp(34px, 6vw, 86px);
  padding-inline: clamp(14px, 4vw, 42px);
}

[data-utiva-redesign="article"] [data-redesign-reading] > div,
[data-utiva-redesign="article"] .redesign-journal-link {
  width: min(100%, 760px) !important;
  margin-inline: auto;
}

[data-utiva-redesign="article"] [data-redesign-reading] > div {
  padding: clamp(22px, 4vw, 52px);
  border: 1px solid var(--rd-line);
  border-top: 4px solid var(--rd-blue);
  border-radius: 18px;
  background: white;
  box-shadow: 0 10px 36px #14294e17;
}

[data-utiva-redesign="article"] .redesign-journal-link {
  display: block;
  margin-block-end: 14px;
  color: var(--rd-blue);
  font-size: 14px;
  font-weight: 750;
}

[data-utiva-redesign="article"] [data-redesign-reading] > div > h2 {
  width: auto !important;
  font-family: Poppins, system-ui, sans-serif;
  font-size: clamp(31px, 5vw, 49px);
  line-height: 1.13;
  letter-spacing: -.047em;
}

[data-utiva-redesign="article"] [data-redesign-reading] .react-reveal {
  visibility: visible !important;
  opacity: 1 !important;
  animation: none !important;
}

[data-utiva-redesign="article"] [data-redesign-reading] {
  color: var(--rd-ink);
}

[data-utiva-redesign="article"] [data-redesign-reading] > div > p:first-child {
  margin-bottom: 10px;
  color: var(--rd-muted);
  font-size: 13px;
  font-weight: 650;
}

[data-utiva-redesign="article"] [data-redesign-role="article-copy"] {
  margin-top: 24px;
  border-top: 1px solid var(--rd-line);
  padding-top: 26px;
  color: var(--rd-ink);
  font-size: clamp(15px, 2vw, 17px);
  line-height: 1.75;
  overflow-wrap: break-word;
}

[data-utiva-redesign="article"] [data-redesign-role="article-copy"] :is(h2,h3,h4) {
  max-inline-size: 30ch;
  margin-block: 1.4em .55em;
  color: var(--rd-blue);
  line-height: 1.24;
}

[data-utiva-redesign="article"] [data-redesign-role="article-copy"] img {
  height: auto;
  max-width: 100%;
  border-radius: 12px;
}

@media (max-width: 650px) {
  [data-utiva-redesign] [data-redesign-role="hero"] h1 {
    font-size: clamp(33px, 9vw, 49px);
    text-wrap: wrap;
  }

  [data-utiva-redesign] [data-redesign-role="section"] {
    padding-block: 45px !important;
  }

  [data-utiva-redesign] [data-redesign-role="section"] h2 {
    text-wrap: wrap;
  }
}

/* Shared Learn menu */
html:has(.rd-learn[open]) { overflow: hidden; }

[data-learn-trigger][aria-expanded="true"] {
  background: var(--rd-blue) !important;
  color: white !important;
}

.rd-learn {
  position: fixed;
  inset: clamp(72px, 13vh, 104px) 0 auto;
  width: min(1060px, calc(100% - 36px));
  max-height: calc(100dvh - clamp(72px, 13vh, 104px) - 20px);
  margin: 0 auto;
  padding: 0;
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid var(--rd-line);
  border-top: 4px solid var(--rd-gold);
  border-radius: 17px;
  background: #fff;
  color: var(--rd-ink);
  box-shadow: 0 24px 85px #070b3d40;
  font-family: Poppins, Arial, sans-serif;
}

.rd-learn::backdrop { background: #080d313a; }
.rd-learn a { text-decoration: none; }
.rd-learn :is(a, button):focus-visible { outline: 2px solid #565caf; outline-offset: 2px; }

.rd-learn__heading {
  position: sticky;
  z-index: 1;
  top: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 17px 22px 13px;
  border-bottom: 1px solid var(--rd-line);
  background: #fff;
}

.rd-learn__heading h2 {
  margin: 0;
  color: var(--rd-blue);
  font-size: clamp(23px, 3vw, 32px);
  font-weight: 800;
  letter-spacing: -.037em;
  line-height: 1.15;
}

.rd-learn__heading button {
  width: 38px;
  height: 38px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  padding: 0;
  border: 1px solid var(--rd-line);
  border-radius: 50%;
  background: #f5f6fd;
  color: var(--rd-blue);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.rd-learn__heading button:hover { background: #e8ecfa; }
.rd-learn__body {
  display: grid;
  grid-template-columns: minmax(0, 2.45fr) minmax(198px, 1fr);
  align-items: start;
  gap: 16px;
  padding: 16px 22px;
}
.rd-learn__schools { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }

.rd-learn__school {
  min-height: 78px;
  min-width: 0;
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--rd-line);
  border-radius: 11px;
  background: #f8f9fe;
  color: var(--rd-blue);
}

.rd-learn__school:hover { background: #ecf0ff; border-color: #b7c0ed; }
.rd-learn__icon {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--rd-line);
  border-radius: 8px;
  background: #fff;
}
.rd-learn__icon img { object-fit: contain; }
.rd-learn__school strong { display: block; font-size: 14px; line-height: 1.28; }
.rd-learn__school small { display: block; margin-top: 3px; color: var(--rd-muted); font-size: 11px; line-height: 1.4; }
.rd-learn__arrow { font-size: 15px; }

.rd-learn__aside { display: grid; gap: 8px; }
.rd-learn__mba {
  display: block;
  padding: 12px 13px;
  border-radius: 11px;
  background: linear-gradient(125deg, #060981, #242878);
  color: #fff;
}
.rd-learn__mba > span { display: flex; justify-content: space-between; font-size: 16px; font-weight: 800; }
.rd-learn__mba > span > span { color: var(--rd-gold); }
.rd-learn__mba small { display: block; margin-top: 3px; color: #e6e9ff; font-size: 11px; line-height: 1.4; }
.rd-learn__mba:hover { background: #2227a0; }
.rd-learn__teams {
  padding: 8px 13px 5px;
  border-radius: 11px;
  border: 1px solid #edddb6;
  background: #fff9eb;
}
.rd-learn__teams strong { color: #604a1b; font-size: 12px; }
.rd-learn__teams a { display: flex; align-items: center; justify-content: space-between; gap: 6px; min-height: 35px; color: var(--rd-blue); font-size: 12px; font-weight: 650; }
.rd-learn__teams a + a { border-top: 1px solid #edddb6; }
.rd-learn__teams a:hover { text-decoration: underline; text-underline-offset: 3px; }

.rd-learn__actions { display: flex; flex-wrap: wrap; gap: 8px; padding: 12px 22px; border-top: 1px solid var(--rd-line); background: #f8f9fd; }
.rd-learn__actions a { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 39px; padding: 6px 13px; border: 1px solid #cbd2e8; border-radius: 8px; color: var(--rd-blue); font-size: 13px; font-weight: 750; }
.rd-learn__actions a:first-child { background: var(--rd-blue); border-color: var(--rd-blue); color: #fff; }
.rd-learn__actions a:hover { box-shadow: 0 3px 10px #12185522; }

@media (max-width: 720px) {
  .rd-learn { width: calc(100% - 22px); }
  .rd-learn__heading { padding: 12px 14px; }
  .rd-learn__body { grid-template-columns: minmax(0, 1fr); gap: 11px; padding: 12px 14px; }
  .rd-learn__actions { padding: 10px 14px; }
}

@media (max-width: 530px) {
  .rd-learn__schools { grid-template-columns: minmax(0, 1fr); }
  .rd-learn__school { min-height: 61px; }
}

/* Homepage learner reviews shared by the course pages */
.rd-reviews {
  --review-gap: clamp(10px, 1vw, 14px);
  --review-rail: min(100vw, 1440px);
  --review-width: max(195px, calc(var(--review-rail) / 6 - var(--review-gap)));
  padding-block: clamp(42px, 5vw, 68px);
  background: var(--rd-blue);
  color: #fff;
  font-family: Poppins, Arial, sans-serif;
}
.rd-reviews__heading {
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto 22px;
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 13px;
}
.rd-reviews .rd-reviews__heading h2 {
  margin: 0 0 7px;
  color: #fff;
  font-size: clamp(30px, 4.3vw, 51px);
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: -.045em;
}
.rd-reviews .rd-reviews__heading p { margin: 0; color: #eef0ff; font-size: 14px; }
.rd-reviews__heading button {
  min-width: 69px;
  min-height: 35px;
  padding: 5px 9px;
  border: 1px solid #ffffff77;
  border-radius: 8px;
  color: #fff;
  font-size: 13px;
  font-weight: 650;
  cursor: pointer;
}
.rd-reviews__heading button:hover { background: #ffffff22; }
.rd-reviews__lanes { max-width: var(--review-rail); margin: 0 auto; display: grid; gap: var(--review-gap); }
.rd-reviews__lane { min-width: 0; overflow: hidden; }
.rd-reviews__track { display: flex; gap: var(--review-gap); width: max-content; animation: rd-review-scroll 35s linear infinite; }
.rd-reviews__lane:nth-child(2) .rd-reviews__track { animation-direction: reverse; animation-duration: 39s; }
.rd-reviews[data-reviews-paused] .rd-reviews__track, .rd-reviews__lane:hover .rd-reviews__track { animation-play-state: paused; }
.rd-reviews__lane:focus-within { overflow-x: auto; }
.rd-reviews__lane:focus-within .rd-reviews__track { animation: none; }
.rd-reviews__lane:focus-within .rd-review[aria-hidden="true"] { display: none; }
@keyframes rd-review-scroll {
  to { transform: translateX(calc(-50% - var(--review-gap) / 2)); }
}
.rd-review { display: flex; flex: 0 0 var(--review-width); width: var(--review-width); min-width: 0; flex-direction: column; padding: 15px; border: 1px solid #dfe5f2; border-radius: 13px; background: #fff; color: #202439; }
.rd-review__source { width: fit-content; min-height: 24px; display: inline-flex; align-items: center; border-radius: 3px; }
.rd-review__source:focus-visible { outline: 2px solid var(--rd-blue); outline-offset: 2px; }
.rd-review__source img { object-fit: contain; }
.rd-review__logo { display: grid; width: 17px; height: 17px; place-items: center; border-radius: 3px; background: var(--rd-blue); color: #fff; font-size: 12px; font-weight: 800; line-height: 1; }
.rd-reviews .rd-review blockquote { margin: 8px 0 15px; color: #202439; font-size: 14px; line-height: 1.5; overflow-wrap: anywhere; }
.rd-review__author { display: flex; align-items: center; gap: 8px; margin-block-start: auto; font-size: 12px; line-height: 1.3; overflow-wrap: anywhere; }
.rd-review__author img { width: 32px; height: 32px; border-radius: 50%; flex: 0 0 auto; object-fit: cover; }
.rd-review__author strong { display: block; font-size: 12px; font-weight: 800; }
.rd-review__author small { display: block; color: var(--rd-muted); font-size: 11px; }

@media (max-width: 600px) {
  .rd-reviews { --review-width: clamp(176px, calc(50vw - var(--review-gap)), 195px); }
}

@media (hover: none), (prefers-reduced-motion: reduce) {
  .rd-reviews__lane { overflow-x: auto; scroll-snap-type: x proximity; }
  .rd-reviews__lane .rd-reviews__track { animation: none !important; }
  .rd-review { scroll-snap-align: start; }
  .rd-review[aria-hidden="true"], .rd-reviews__heading button { display: none; }
}

/* Homepage video stories */
[data-video-stories] {
  scroll-margin-top: 30px;
  background: #fff;
  border-block: 1px solid var(--rd-line);
}
[data-video-stories] > .container {
  width: 100%;
  max-width: 1200px;
}
[data-video-stories] > .container > :first-child {
  display: block;
  margin-bottom: clamp(22px, 3vw, 34px);
}
[data-video-stories] > .container > :first-child h2 {
  max-width: none;
  font-size: clamp(30px, 4.1vw, 53px);
}
.rd-watch__legacy[hidden] { display: none !important; }

.rd-watch {
  display: grid;
  grid-template-columns: minmax(0, 2.04fr) minmax(0, 1fr);
  align-items: start;
  gap: clamp(14px, 2.1vw, 26px);
  color: #0f0f0f;
  font: 14px/1.45 Roboto, Arial, sans-serif;
}
.rd-watch button { cursor: pointer; }
.rd-watch :is(button, a):focus-visible { outline: 2px solid var(--rd-blue); outline-offset: 3px; }
.rd-watch__main { min-width: 0; }
.rd-watch__player {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  background: #0f0f0f;
  aspect-ratio: 16 / 9;
  scroll-margin-block: 78px;
}
.rd-watch__player > * { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.rd-watch__cover { display: grid; place-items: center; isolation: isolate; background: #121212; }
.rd-watch__cover:focus-visible { outline-offset: -4px; outline-color: white; }
.rd-watch__cover img { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.rd-watch__cover::after { content: ""; position: absolute; inset: 0; z-index: -1; background: #0a0a0a14; }
.rd-watch__play {
  width: clamp(52px, 6vw, 70px);
  height: clamp(36px, 4.2vw, 48px);
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: #e00025;
  box-shadow: 0 4px 24px #0005;
}
.rd-watch__cover:hover .rd-watch__play { background: #ff1744; }
.rd-watch__play::before {
  content: "";
  margin-left: 3px;
  border-block: 9px solid transparent;
  border-left: 15px solid #fff;
}
.rd-watch__title {
  margin: 12px 0 10px;
  color: #0f0f0f;
  font-size: clamp(18px, 2vw, 25px);
  font-weight: 750;
  line-height: 1.25;
}
.rd-watch__meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 9px 14px; }
.rd-watch__channel { display: inline-flex; align-items: center; gap: 9px; color: #0f0f0f; }
.rd-watch__channel strong { display: block; font-size: 15px; line-height: 1.15; }
.rd-watch__channel small { display: block; color: #606060; font-size: 12px; line-height: 1.2; }
.rd-watch__avatar { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--rd-blue); color: #fff; font-size: 19px; font-weight: 800; }
.rd-watch__external { min-height: 35px; display: inline-flex; align-items: center; gap: 7px; padding: 6px 12px; border-radius: 50px; background: #f0f0f0; color: #0f0f0f; font-size: 12px; font-weight: 700; }
.rd-watch__external:hover { background: #e5e5e5; }
.rd-watch .rd-watch__description { margin: 13px 0 0; padding: 11px 13px; border-radius: 10px; background: #f2f2f2; color: #262626; }

.rd-watch__queue { min-width: 0; }
.rd-watch__queue h3 { margin: 0 0 10px; color: #0f0f0f; font-size: 17px; font-weight: 750; }
.rd-watch__queue ul { display: grid; gap: 5px; margin: 0; padding: 0; list-style: none; }
.rd-watch__item {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(86px, 43%) minmax(0, 1fr);
  align-items: start;
  gap: 9px;
  padding: 6px;
  border: 1px solid transparent;
  border-radius: 10px;
  background: #fff;
  color: #0f0f0f;
  text-align: left;
}
.rd-watch__item[aria-pressed="true"] { border-color: #e8e8e8; background: #f6f6f6; }
.rd-watch__item:hover { background: #ededed; }
.rd-watch__item > img { width: 100%; height: auto; aspect-ratio: 16 / 9; object-fit: cover; border-radius: 8px; background: #131313; }
.rd-watch__item-copy { min-width: 0; padding-top: 2px; }
.rd-watch__item-copy strong { display: block; font-size: 14px; line-height: 1.25; }
.rd-watch__item-copy small { display: block; margin-top: 4px; color: #606060; font-size: 12px; line-height: 1.25; }
.rd-watch__playing { display: block; margin-top: 5px; color: #bd0027; font-size: 11px; font-weight: 750; }
.rd-watch__playing[hidden] { display: none; }

@media (max-width: 780px) {
  .rd-watch { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .rd-watch__player { border-radius: 10px; }
  .rd-watch__queue h3 { margin-bottom: 7px; }
  .rd-watch__item { grid-template-columns: minmax(96px, 135px) minmax(0, 1fr); }
}
