.lt-card-video-host {
  isolation: isolate;
  overflow: hidden;
}
.lt-card-video-host-static { position: relative; }
.lt-card-video-placement.cinematic-cover {
  position: relative;
  width: 100%;
  height: auto;
  min-height: 112px;
  max-height: 190px;
  aspect-ratio: 16 / 9;
  flex-shrink: 0;
  margin: 0 0 16px;
  border-radius: 10px;
  overflow: hidden;
  background: #10233f;
  pointer-events: none;
}
.lt-card-video-placement.cinematic-cover > img.cinematic-cover-image {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
}
.lt-card-video-host > video.lt-card-video {
  position: absolute;
  inset: 0;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  pointer-events: none;
  z-index: 0;
  opacity: 0;
  transition: opacity 400ms ease;
}
.lt-card-video-host > video.lt-card-video[data-playing="true"] { opacity: 1; }
.lt-card-video-control {
  position: fixed;
  left: max(16px, env(safe-area-inset-left));
  bottom: max(16px, env(safe-area-inset-bottom));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 42px;
  padding: 10px 14px;
  border: 1px solid rgba(225, 201, 142, .65);
  border-radius: 999px;
  background: rgba(8, 24, 48, .94);
  color: #fff;
  font: 600 12px/1.35 system-ui, sans-serif;
  box-shadow: 0 5px 24px rgba(0, 0, 0, .18);
  cursor: pointer;
  -webkit-tap-highlight-color: transparent;
}
.lt-card-video-control::before { content: "Ⅱ"; font-size: 14px; }
.lt-card-video-control[aria-pressed="true"]::before { content: "▶"; font-size: 11px; }
.lt-card-video-control:focus-visible { outline: 3px solid #f5cc62; outline-offset: 4px; }
.lt-card-video-control:disabled { opacity: .85; cursor: default; }
.lt-card-video-control[hidden] { display: none; }
.lt-card-video-credits {
  display: block;
  width: fit-content;
  max-width: 100%;
  margin: 14px auto 0;
  padding: 0 18px 16px;
  color: inherit;
  font: 500 12px/1.5 system-ui, sans-serif;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.lt-card-video-credits:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
@media (prefers-reduced-motion: reduce) {
  .lt-card-video-host > video.lt-card-video { opacity: 0 !important; transition: none; }
}

/* Compact, full-bleed scheduled-class cards on the homepage. */
.home-page #live-learning { padding-block: 44px; }
.home-page #live-learning #home-live-title {
  font-size: clamp(22px, 2.2vw, 28px);
  line-height: 1.2;
  letter-spacing: -.025em;
}
.home-page #live-learning > div > div:first-child { margin-bottom: 22px; }
.home-page #live-learning > div > .grid { gap: 16px; }
.home-page #live-learning > div > .grid > article.p-6 {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 312px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(208, 181, 121, .35);
  border-radius: 16px;
  background: #0b1d30;
  color: #f8fafc;
  box-shadow: 0 8px 24px rgba(13, 32, 52, .1);
  transform: none !important;
  translate: none !important;
  scale: 1 !important;
  filter: none !important;
  border-color: rgba(208, 181, 121, .35) !important;
  transition-property: border-color, box-shadow !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.home-page #live-learning > div > .grid > article.p-6:hover {
  border-color: rgba(208, 181, 121, .8) !important;
  box-shadow: 0 12px 28px rgba(13, 32, 52, .16);
  transform: none !important;
}
.home-page #live-learning > div > .grid > article.p-6 > .cinematic-cover.lt-card-video-placement {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  border-radius: inherit;
}
.home-page #live-learning > div > .grid > article.p-6::before {
  position: absolute;
  inset: 0;
  z-index: 1;
  content: "";
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 17, 31, .12), rgba(5, 17, 31, .38) 42%, rgba(5, 17, 31, .78));
}
.home-page #live-learning > div > .grid > article.p-6 > :not(.cinematic-cover) {
  position: relative;
  z-index: 2;
}
.home-page #live-learning > div > .grid > article.p-6 > p:first-of-type {
  align-self: flex-start;
  margin: 0 0 10px;
  padding: 4px 8px;
  border: 1px solid rgba(235, 205, 143, .35);
  border-radius: 999px;
  background: rgba(9, 27, 45, .64);
  color: #f2d79b !important;
  font-size: 9px;
  line-height: 1.3;
  letter-spacing: .12em;
}
.home-page #live-learning > div > .grid > article.p-6 > h3 {
  margin: 0 0 8px;
  color: #fff !important;
  font-size: 16px;
  font-weight: 750;
  line-height: 1.3;
  letter-spacing: -.015em;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .85), 0 2px 12px rgba(0, 0, 0, .4);
}
.home-page #live-learning > div > .grid > article.p-6 > h3 a { color: #fff !important; }
.home-page #live-learning > div > .grid > article.p-6 > p:not(:first-of-type) {
  display: -webkit-box;
  margin: 0 0 12px;
  overflow: hidden;
  color: #f1f5f9 !important;
  text-shadow: 0 1px 3px rgba(0, 0, 0, .8);
  font-size: 12px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}
.home-page #live-learning > div > .grid > article.p-6 > dl {
  display: grid;
  gap: 4px;
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid rgba(255, 255, 255, .15);
  color: #e5ebf3 !important;
  font-size: 12px;
  line-height: 1.4;
}
.home-page #live-learning > div > .grid > article.p-6 > dl > div { margin: 0; }
.home-page #live-learning > div > .grid > article.p-6 > dl dt:not(.sr-only) { color: #cbd8e7 !important; }
.home-page #live-learning > div > .grid > article.p-6 > dl svg {
  width: 13px;
  height: 13px;
  color: #e6c986;
}
.home-page #live-learning > div > .grid > article.p-6 > a:last-child {
  align-self: flex-start;
  min-height: 32px;
  margin-top: 12px;
  padding: 8px 11px;
  border: 1px solid rgba(246, 224, 175, .6);
  border-radius: 8px;
  background: #e6c986;
  color: #102238;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.2;
  text-decoration: none;
}
.home-page #live-learning > div > .grid > article.p-6 > a:last-child:hover { background: #f3dba6; }
.home-page #live-learning > div > .grid > article.p-6 a:focus-visible {
  outline: 2px solid #f3dba6;
  outline-offset: 4px;
}

/* Keep the learner and online tutor screen visible in the narrow card crop. */
.home-page .hc-category-cover[data-card-video-key="home-category-school"] > img,
.home-page .hc-category-cover[data-card-video-key="home-category-school"] > video {
  object-position: 80% center !important;
}
.home-page .hc-category-cover[data-card-video-key="home-category-medical-eng"] > img,
.home-page .hc-category-cover[data-card-video-key="home-category-medical-eng"] > video {
  object-position: 60% center !important;
}

/* Compact, full-bleed Study Resources cards on the homepage. */
.home-page .home-resource-grid > .home-resource-card {
  height: 244px;
  min-height: 244px;
}
.home-page .home-resource-grid > .res-car-card.home-resource-card {
  position: relative;
  isolation: isolate;
  height: 244px;
  min-height: 244px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, .24) !important;
  border-radius: 18px !important;
  background: #102238 !important;
  box-shadow: 0 8px 24px rgba(15, 30, 48, .1);
}
.home-page .home-resource-grid > .res-car-card.home-resource-card::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 17, 31, .02) 20%, rgba(5, 17, 31, .08) 34%, rgba(5, 17, 31, .6) 50%, rgba(5, 17, 31, .86) 72%, rgba(5, 17, 31, .96));
}
.home-page .home-resource-grid > .home-resource-card > .hc-resource-media-link {
  position: absolute !important;
  inset: 0;
  z-index: 0;
  display: block;
  width: 100%;
  height: 100%;
  margin: 0;
  border-radius: inherit;
  transform: none !important;
  filter: none !important;
}
.home-page .home-resource-card > .hc-resource-media-link > .hc-resource-cover {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
  max-height: none !important;
  aspect-ratio: auto !important;
  border-radius: 0;
}
.home-page .home-resource-card .hc-resource-cover > img,
.home-page .home-resource-card .hc-resource-cover > video {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: center;
  transform: none !important;
  filter: none !important;
}
.home-page .home-resource-card .hc-resource-cover > .cinematic-cover-scrim { display: none; }
.home-page .home-resource-card > .hc-resource-media-link + div {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  flex: 0 0 auto !important;
  gap: 0 !important;
  margin: 0;
  padding: 16px 16px 74px !important;
  pointer-events: none;
}
.home-page .home-resource-card > .hc-resource-media-link + div > div:first-child {
  position: absolute;
  top: 14px;
  left: 14px;
  right: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 5px !important;
  font-size: 0;
}
.home-page .home-resource-card > .hc-resource-media-link + div > div:first-child > span {
  padding: 3px 8px !important;
  border: 1px solid rgba(255, 255, 255, .19);
  background: rgba(10, 26, 42, .66) !important;
  color: #f6ead0 !important;
  font-size: 10px !important;
  line-height: 1.4;
  backdrop-filter: blur(6px);
}
.home-page .home-resource-card h3 {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  margin: 0 !important;
  color: #fff !important;
  font-size: 16px !important;
  font-weight: 750 !important;
  line-height: 1.3 !important;
  letter-spacing: -.15px;
  text-shadow: 0 1px 8px rgba(0, 0, 0, .22);
}
.home-page .home-resource-card p {
  display: none !important;
}
.home-page .home-resource-card > .hc-resource-media-link + div > div:last-child {
  display: none !important;
}
.home-page .home-resource-card > div:last-child {
  position: absolute;
  right: 16px;
  bottom: 16px;
  z-index: 2;
  flex: 0 0 auto;
  padding: 0 !important;
}
.home-page .home-resource-card > div:last-child > a {
  flex: 0 0 auto !important;
  min-width: 78px;
  min-height: 44px;
  padding: 8px 13px !important;
  border: 1px solid rgba(246, 224, 175, .65) !important;
  border-radius: 10px !important;
  background: #e6c986 !important;
  color: #102238 !important;
  font-size: 11px !important;
  font-weight: 750 !important;
  line-height: 1.2;
}
.home-page .home-resource-card > div:last-child > a:hover { background: #f3dba6 !important; }
.home-page .home-resource-card:focus-within {
  outline: 2px solid #c9a227;
  outline-offset: 3px;
}
.home-page .home-resource-card a:focus-visible {
  outline: 2px solid #f3dba6;
  outline-offset: 3px;
}
@media (max-width: 639px) {
  .home-page .home-resource-grid > .home-resource-card,
  .home-page .home-resource-grid > .res-car-card.home-resource-card {
    height: 240px;
    min-height: 240px;
  }
}

/* Match the complete Live Learning section to the site's navy/gold system. */
.home-page #live-learning {
  background: #fff !important;
  border-top: 1px solid #eee8da;
  border-bottom-color: #eee8da;
  padding-block: 48px;
}
.home-page #live-learning > div {
  max-width: 1200px;
  padding-inline: clamp(16px, 4vw, 24px);
}
.home-page #live-learning #home-live-title {
  color: #0b3a82 !important;
  font-size: clamp(22px, 4vw, 34px);
  font-weight: 800;
}
.home-page #live-learning > div > div:first-child > div > p:first-child {
  color: #92701b !important;
}
.home-page #live-learning > div > div:first-child > a {
  border: 1px solid rgba(201, 162, 39, .3);
  border-radius: 12px;
  background: #c9a227 !important;
  color: #06112a !important;
}
.home-page #live-learning > div > .mt-9 { margin-top: 28px; }
.home-page #live-learning > div > .mt-9 > h3 {
  color: #0b3a82 !important;
  font-size: 19px;
  font-weight: 800;
}
.home-page #live-learning article.p-5 {
  position: relative;
  isolation: isolate;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 240px;
  padding: 18px;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 39, .28);
  border-radius: 16px;
  background: #102238;
  box-shadow: 0 8px 24px rgba(15, 30, 48, .1);
}
.home-page #live-learning article.p-5 > .cinematic-cover.lt-card-video-placement {
  position: absolute;
  inset: 0;
  z-index: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  max-height: none;
  aspect-ratio: auto;
  margin: 0;
  border-radius: inherit;
}
.home-page #live-learning article.p-5::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(5, 17, 31, .02) 15%, rgba(5, 17, 31, .2) 35%, rgba(5, 17, 31, .83) 75%, rgba(5, 17, 31, .94));
}
.home-page #live-learning article.p-5 > :not(.cinematic-cover) {
  position: relative;
  z-index: 2;
}
.home-page #live-learning article.p-5 > h4 {
  margin-top: auto;
  color: #fff !important;
  font-size: 16px;
  line-height: 1.35;
}
.home-page #live-learning article.p-5 > h4 > a { color: #fff !important; }
.home-page #live-learning article.p-5 > p {
  margin-top: 8px;
  color: #e2e8f0 !important;
  font-size: 12px;
  line-height: 1.45;
}
.home-page #live-learning article.p-5 > a:last-child {
  align-self: flex-start;
  margin-top: 12px;
  padding: 8px 10px;
  border: 1px solid rgba(246, 224, 175, .65);
  border-radius: 8px;
  background: #e6c986;
  color: #102238 !important;
  font-size: 11px;
  font-weight: 750;
  line-height: 1.35;
}
.home-page #live-learning > div > nav > a {
  padding: 7px 12px;
  border: 1px solid #e5decc;
  border-radius: 999px;
  color: #15365a !important;
  font-size: 12px;
}
.home-page #live-learning > div > nav > a:hover {
  border-color: #c9a227;
  background: #faf6ea;
}
.home-page #live-learning + .resources-white-section { padding-top: 52px !important; }
