/* LSIB media hub — course videos & podcasts */

/* Match course-details.aspx base typography (overrides skeleton 62.5% / 10px rem). */
html {
  font-size: 16px;
}

/* Header is position:absolute (lsib.css); hero sits beneath the transparent overlay. */
.mh-page {
  font-family: 'Roboto', sans-serif;
  color: #1a1a2e;
  padding-bottom: 48px;
  position: relative;
  z-index: 1;
}

header.header .curtain-links,
header.header .curtain-links__close {
  display: none !important;
}

.mh-wrap {
  max-width: 1140px;
  margin: 0 auto;
  padding: 0 16px;
}

.mh-hero {
  background: linear-gradient(135deg, #0d3b66 0%, #1a5490 50%, #2471a3 100%);
  color: #fff;
  padding: 0 0 2.5rem;
  margin-bottom: 32px;
}

/* Mirror #course-title .hero__wrapper + .hero__body on course-details.aspx */
.mh-hero__wrapper {
  box-sizing: border-box;
  padding: 0;
}

.mh-hero__body {
  box-sizing: border-box;
  padding-top: 10.5rem;
  padding-left: 1rem;
  padding-right: 1rem;
}

@media (max-width: 767px) {
  .mh-hero {
    min-height: 320px;
  }

  .mh-hero__body {
    padding-top: 11.5rem;
  }
}

@media (min-width: 768px) and (max-width: 1023px) {
  .mh-hero {
    min-height: 360px;
  }

  .mh-hero__body {
    padding-left: 2rem;
  }
}

@media (min-width: 1024px) {
  .mh-hero__wrapper {
    max-width: calc(1340px + 4rem);
    margin: 0 auto;
    padding: 0 2rem;
  }

  .mh-hero__body {
    max-width: 100%;
    /* Clear nav pill row (~167px) — 7.5rem was too tight and overlapped the eyebrow. */
    padding-top: 10.75rem;
    padding-left: 9rem;
    padding-right: 0;
  }
}

/* lsib.css sets h1 { color: #05345c } — keep hero copy white. */
.mh-page .mh-hero .mh-eyebrow,
.mh-page .mh-hero .mh-h1,
.mh-page .mh-hero .mh-sub,
.mh-page .mh-hero .mh-stat-num,
.mh-page .mh-hero .mh-stat-label {
  color: #fff !important;
}

.mh-eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 8px;
}

.mh-h1 {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  margin: 0 0 12px;
}

.mh-sub {
  font-size: 1.05rem;
  line-height: 1.55;
  opacity: 0.92;
  max-width: 640px;
  margin: 0 0 24px;
}

.mh-search {
  display: flex;
  gap: 8px;
  max-width: 520px;
  margin-bottom: 28px;
}

.mh-search input {
  flex: 1;
  padding: 12px 16px;
  border: none;
  border-radius: 6px;
  font-size: 15px;
}

.mh-search button {
  padding: 12px 20px;
  background: #fff;
  color: #0d3b66;
  border: none;
  border-radius: 6px;
  font-weight: 700;
  cursor: pointer;
}

.mh-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 24px 40px;
}

.mh-stat-num {
  font-size: 1.5rem;
  font-weight: 700;
}

.mh-stat-label {
  font-size: 12px;
  opacity: 0.8;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.mh-section-title {
  font-size: 1.35rem;
  font-weight: 700;
  margin: 0 0 20px;
  color: #0d3b66;
}

.mh-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 24px;
}

.mh-grid--compact {
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}

.mh-card {
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 2px 8px rgba(13, 59, 102, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.mh-card:hover {
  box-shadow: 0 8px 24px rgba(13, 59, 102, 0.12);
  transform: translateY(-2px);
}

.mh-card-thumb,
.mh-featured-thumb {
  display: block;
  position: relative;
  aspect-ratio: 16 / 9;
  background: #eef2f6;
  overflow: hidden;
}

/* lsib.css img { height: auto } breaks aspect-ratio thumbnails. */
.mh-page .mh-card-thumb img,
.mh-page .mh-featured-thumb img,
.mh-page .mh-card-thumb video.mh-card-thumb-video,
.mh-page .mh-featured-thumb video.mh-card-thumb-video {
  display: block;
  width: 100%;
  height: 100% !important;
  max-width: none;
  object-fit: cover;
  vertical-align: top;
  pointer-events: none;
}

.mh-page .mh-thumb--fallback img {
  object-fit: contain;
  padding: 12px;
  background: #fff;
}

.mh-page .mh-thumb--generated {
  background: linear-gradient(135deg, #0d3b66 0%, #1a5490 55%, #2471a3 100%);
}

.mh-page .mh-thumb--generated img {
  object-fit: contain !important;
  object-position: left top !important;
  width: 42% !important;
  height: auto !important;
  max-height: 46% !important;
  padding: 14px 0 0 14px !important;
  background: transparent !important;
}

.mh-page .mh-thumb--poster img {
  object-fit: cover !important;
  padding: 0 !important;
  background: #000;
}

.mh-play {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 28px;
  color: #fff;
  background: rgba(13, 59, 102, 0.45);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.mh-card:hover .mh-play,
.mh-featured-card:hover .mh-play {
  opacity: 1;
}

.mh-play--audio {
  font-size: 32px;
}

.mh-card-body {
  padding: 16px;
}

.mh-card-eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #2471a3;
  margin-bottom: 6px;
}

.mh-card-title {
  font-size: 1rem;
  font-weight: 600;
  margin: 0 0 12px;
  line-height: 1.35;
}

.mh-card-title a {
  color: inherit;
  text-decoration: none;
}

.mh-card-title a:hover {
  color: #2471a3;
}

.mh-card-cta,
.mh-featured-cta {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  color: #0d3b66;
  text-decoration: none;
}

.mh-card-cta:hover,
.mh-featured-cta:hover {
  text-decoration: underline;
}

.mh-featured {
  margin-bottom: 40px;
}

.mh-featured-card {
  display: grid;
  grid-template-columns: minmax(200px, 280px) 1fr auto;
  gap: 24px;
  align-items: center;
  background: #fff;
  border: 1px solid #e8ecf0;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 4px 16px rgba(13, 59, 102, 0.08);
}

.mh-featured-thumb {
  width: 100%;
  max-width: 280px;
}

.mh-featured-title {
  font-size: 1.25rem;
  margin: 0 0 8px;
}

.mh-featured-title a {
  color: inherit;
  text-decoration: none;
}

.mh-featured-desc {
  font-size: 14px;
  color: #555;
  margin: 0;
  line-height: 1.5;
}

.mh-featured-cta {
  padding: 12px 20px;
  background: #0d3b66;
  color: #fff !important;
  border-radius: 6px;
  white-space: nowrap;
}

.mh-featured-cta:hover {
  background: #1a5490;
  text-decoration: none;
}

.mh-chips-wrap {
  margin: 40px 0;
}

.mh-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.mh-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: #f0f4f8;
  border-radius: 999px;
  font-size: 13px;
  color: #0d3b66;
  text-decoration: none;
  border: 1px solid transparent;
}

.mh-chip:hover,
.mh-chip--active {
  background: #0d3b66;
  color: #fff;
  border-color: #0d3b66;
}

.mh-chip-count {
  font-size: 11px;
  opacity: 0.75;
}

.mh-cta {
  margin-top: 48px;
}

.mh-cta-card {
  background: linear-gradient(135deg, #eef4fa, #fff);
  border: 1px solid #d0dde8;
  border-radius: 12px;
  padding: 32px;
  text-align: center;
}

.mh-cta-h {
  font-size: 1.25rem;
  margin: 0 0 16px;
  color: #0d3b66;
}

.mh-cta-primary {
  display: inline-block;
  padding: 14px 28px;
  background: #0d3b66;
  color: #fff !important;
  font-weight: 700;
  border-radius: 6px;
  text-decoration: none;
}

.mh-cta-primary:hover {
  background: #1a5490;
}

.mh-empty {
  padding: 32px;
  text-align: center;
  color: #666;
}

.mh-pager {
  margin: 32px 0;
}

.mh-pager ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  justify-content: center;
}

.mh-pager__link {
  display: inline-block;
  padding: 8px 14px;
  border: 1px solid #d0dde8;
  border-radius: 6px;
  color: #0d3b66;
  text-decoration: none;
}

.mh-pager__active {
  background: #0d3b66;
  color: #fff !important;
  border-color: #0d3b66;
}

.mh-page--detail {
  padding-top: 24px;
}

.mh-breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  font-size: 13px;
}

.mh-breadcrumb li:not(:last-child)::after {
  content: "›";
  margin-left: 8px;
  opacity: 0.5;
}

.mh-breadcrumb a {
  color: #2471a3;
}

.mh-detail-title {
  font-size: clamp(1.5rem, 3vw, 2rem);
  margin: 0 0 8px;
  color: #0d3b66;
}

.mh-detail-byline {
  color: #666;
  margin: 0 0 20px;
}

.mh-player {
  margin-bottom: 28px;
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.mh-player video,
.mh-player iframe {
  display: block;
  width: 100%;
  max-height: 480px;
}

.mh-player--yt iframe {
  aspect-ratio: 16 / 9;
  height: auto;
  border: 0;
}

.mh-player--audio {
  background: transparent;
}

.mh-facts {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
  margin: 24px 0;
  padding: 16px;
  background: #f8fafc;
  border-radius: 8px;
}

.mh-facts dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #666;
}

.mh-facts dd {
  margin: 4px 0 0;
  font-weight: 600;
}

.mh-script {
  margin: 28px 0;
}

.mh-script h2 {
  font-size: 1.1rem;
  margin-bottom: 12px;
  color: #0d3b66;
}

.mh-script-lines {
  list-style: none;
  padding: 0;
  margin: 0;
}

.mh-script-lines li {
  padding: 10px 0;
  border-bottom: 1px solid #eee;
  font-size: 14px;
  line-height: 1.5;
}

.mh-detail-actions {
  margin: 24px 0;
}

.mh-related {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid #e8ecf0;
}

.mh-more-link {
  display: inline-block;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 600;
  color: #2471a3;
}

button.mh-card-thumb,
button.mh-featured-thumb {
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  font: inherit;
  color: inherit;
  width: 100%;
  text-align: left;
}

button.mh-card-cta,
button.mh-featured-cta {
  border: none;
  cursor: pointer;
  font: inherit;
}

a.mh-video-trigger {
  cursor: pointer;
}

.mh-video-modal[hidden] {
  display: none !important;
}

.mh-video-modal {
  position: fixed;
  inset: 0;
  z-index: 10060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  box-sizing: border-box;
}

.mh-video-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 18, 38, 0.82);
  backdrop-filter: blur(4px);
}

.mh-video-modal__dialog {
  position: relative;
  z-index: 1;
  width: min(920px, 100%);
  max-height: calc(100vh - 32px);
  overflow-y: auto;
  background: #fff;
  border-radius: 14px;
  padding: 20px 20px 24px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}

.mh-video-modal__close {
  position: absolute;
  top: 10px;
  right: 12px;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  padding: 0 !important;
  margin: 0;
  border: none;
  border-radius: 999px;
  background: #eef2f6;
  color: #0d3b66;
  font-size: 22px;
  font-weight: 400;
  line-height: 1 !important;
  text-align: center;
  cursor: pointer;
  box-sizing: border-box;
}

.mh-video-modal__close:hover {
  background: #dce6f0;
}

.mh-video-modal__eyebrow {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #2471a3;
  margin: 0 0 6px;
  padding-right: 40px;
}

.mh-video-modal__title {
  font-size: clamp(1.15rem, 2.5vw, 1.5rem);
  line-height: 1.3;
  margin: 0 0 16px;
  color: #0d3b66;
  padding-right: 40px;
}

.mh-video-modal__player {
  border-radius: 10px;
  overflow: hidden;
  background: #000;
}

.mh-video-modal__player iframe,
.mh-video-modal__player video {
  display: block;
  width: 100%;
  max-height: min(56vh, 520px);
  border: 0;
}

.mh-video-modal__player iframe {
  aspect-ratio: 16 / 9;
  height: auto;
}

.mh-video-modal__actions {
  margin: 18px 0 0;
  text-align: center;
}

body.mh-video-modal-open {
  overflow: hidden;
}

@media (max-width: 768px) {
  .mh-featured-card {
    grid-template-columns: 1fr;
  }

  .mh-featured-cta {
    justify-self: start;
  }
}
