/* =============================================================
   media-news.css — Media News & Press Releases page styles
   Base: 19px → scaled via global.css media queries
   ============================================================= */

/* ============================================================
   1. HERO SECTION
   ============================================================ */


.mn-hero-content {
  position: relative;
  z-index: 2;
  /* padding-bottom: 23rem; */
  /* max-width: 85.47rem; */
}

.mn-hero-title {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 3.368rem; /* 64px / 19 */
  line-height: 1.266; /* ~81px */
  color: #ffffff;
  margin-bottom: 1.053rem;
  max-width: 56.158rem; /* ~1067px cap */
}

.mn-hero-desc {
  font-family: var(--font-secondary);
  font-weight: 300;
  font-size: 1rem; /* 19px / 19 */
  line-height: 1.632rem; /* 31px / 19 */
  color: #ffffff;
  max-width: 56.158rem;
}

/* ============================================================
   2. SHARED CONTAINER
   ============================================================ */
.mn-container {
  max-width: 85.47rem;
}

/* ============================================================
   3. PRESS CARDS SECTION — 4-column grid
   ============================================================ */
.mn-cards-section {
  padding: 4.737rem 4.211rem 4.211rem 4.211rem;
  background-color: var(--bg-white);
}

.mn-cards-grid {
  display: flex;
  gap: 1.579rem; /* 30px / 19 */
  overflow-x: auto;
  scroll-snap-type: x proximity;
  scroll-behavior: smooth;
  padding-bottom: 0.5rem; /* room for scrollbar so cards don't get clipped */

  /* Hide native scrollbar — same treatment as .mn-sidebar-list */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mn-cards-grid::-webkit-scrollbar {
  display: none;
}

/* Individual press card */
.mn-press-card {
  flex: 0 0 auto;
  width: 19.5rem; /* fixed card width so scroll works predictably */
  scroll-snap-align: start;
  background-color: var(--bg-white);
  border-radius: 0.568rem; /* ~10.787px / 19 */
  box-shadow: 0 0 1.514rem rgba(0, 0, 0, 0.07); /* 28.764px / 19 */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  padding: 0.474rem; /* ~9px / 19 */
}

.mn-press-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12);
}

/* Clickable card anchor — strip link styles so the card looks unchanged */
a.mn-press-card-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}

.mn-press-card-img-wrapper {
  width: 100%;
  height: 12.395rem; /* ~235.5px / 19 */
  overflow: hidden;
  border-radius: 0.568rem;
  background-color: #d9d9d9;
  flex-shrink: 0;
}

.mn-press-card-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.mn-press-card:hover .mn-press-card-img {
  transform: scale(1.05);
}

.mn-press-card-body {
  padding: 0.757rem 0.757rem 0.757rem 0.284rem; /* ~14.382px scaled */
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 0.421rem;
}

.mn-press-card-title {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 0.663rem; /* ~12.584px / 19 */
  color: #3e3232;
  line-height: normal;
  text-transform: capitalize;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mn-press-card-excerpt {
  font-family: 'Roboto', var(--font-secondary);
  font-weight: 400;
  font-size: 0.663rem;
  color: rgba(62, 50, 50, 0.75);
  line-height: 0.946rem; /* ~17.978px / 19 */
  text-transform: capitalize;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.mn-press-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background-color: #f5f5f5;
  border-radius: 0.568rem;
  padding: 0.615rem 0.757rem; /* ~11.686px 14.382px / 19 */
  margin-top: auto;
  flex-shrink: 0;
  gap: 0.5rem;
}

.mn-press-card-meta {
  display: flex;
  flex-direction: column;
  gap: 0.189rem; /* ~3.596px / 19 */
  min-width: 0;
}

.mn-press-card-source {
  font-family: var(--font-secondary);
  font-weight: 500;
  font-size: 0.615rem; /* ~11.686px / 19 */
  color: #3e3232;
  letter-spacing: 0.005rem;
  line-height: 1.041rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.mn-press-card-date {
  font-family: 'Roboto', var(--font-secondary);
  font-weight: 400;
  font-size: 0.568rem; /* ~10.787px / 19 */
  color: rgba(62, 50, 50, 0.75);
  letter-spacing: 0.012rem;
  line-height: 0.852rem;
  white-space: nowrap;
}

.mn-press-card-actions {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

.mn-press-card-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  font-family: var(--font-secondary);
  font-size: 0.58rem;
  font-weight: 500;
  color: var(--primary-blue, #084b81);
  text-decoration: none;
  padding: 0.25rem 0.45rem;
  border-radius: 0.3rem;
  background-color: rgba(8, 75, 129, 0.06);
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
  white-space: nowrap;
}

.mn-press-card-btn:hover {
  background-color: var(--primary-blue, #084b81);
  color: #ffffff;
}

.mn-press-card-btn svg {
  transition: transform 0.2s ease;
}

.mn-press-card-btn:hover svg {
  transform: translate(2px, -1px);
}

.mn-btn-view:hover svg {
  transform: translateX(2px);
}

.mn-press-card-bookmark {
  /* background: none; */
  border: none;
  cursor: pointer;
  padding: 0.211rem;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease;
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.5);
}

.mn-press-card-bookmark:hover {
  opacity: 0.7;
}

.mn-press-card-bookmark svg path {
  transition: stroke 0.2s ease;
}

.mn-press-card-bookmark.bookmarked svg path {
  /* stroke: var(--primary-blue, #084b81); */
  fill: var(--primary-blue, #084b81);
}

/* ============================================================
   4. FEATURED VIDEO + SCROLLABLE VIDEO LIST SIDEBAR
   ============================================================ */
.mn-feature-section {
  background-color: var(--bg-white);
  padding: 4.211rem 4.211rem 5.263rem 4.211rem;
}

.mn-feature-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1.579rem;
  align-items: start;
}

/* ---- Main Video Player Container ---- */
.mn-feature-main {
  position: relative;
  width: 100%;
}

.mn-feature-video-wrapper {
  position: relative;
  width: 100%;
  height: 29.368rem; /* ~558px / 19 */
  overflow: hidden;
  background-color: #000000;
  border-radius: 0.568rem;
  box-shadow: 0 0.4rem 1.5rem rgba(0, 0, 0, 0.12);
}

.mn-feature-video-iframe {
  width: 100%;
  height: 100%;
  border: none;
  border-radius: 0.568rem;
  object-fit: cover;
}

/* ---- Video Sidebar post list ---- */
.mn-feature-sidebar {
  display: flex;
  flex-direction: row;
  gap: 0;
  width: 27.526rem; /* right column ~523px total */
  position: relative;
}

/* Custom scrollbar track (decorative, Figma-style) */
.mn-sidebar-track {
  width: 1.316rem; /* ~25px / 19 */
  height: 30.684rem; /* ~583px / 19 */
  background-color: var(--bg-white);
  box-shadow: inset 0 0 0.474rem rgba(0, 0, 0, 0.21);
  border-radius: 0.263rem;
  position: relative;
  flex-shrink: 0;
  display: flex;
  justify-content: center;
  align-items: flex-start;
  padding-top: 2.211rem; /* ~42px / 19 — top offset for thumb */
}



/* Thumb — height set by JS proportional to content ratio; fewer videos = taller thumb */
.mn-sidebar-thumb {
  width: 0.895rem; /* ~17px / 19 */
  min-height: 2rem; /* safety fallback before JS first runs */
  background-color: #c4c4c4;
  border-radius: 0.211rem;
  position: absolute;
  top: 2.211rem;
  left: 50%;
  transform: translateX(-50%);
  cursor: pointer;
  transition: top 0.2s ease, height 0.25s ease;
}

/* Scroll arrows (top/bottom) */
.mn-sidebar-track::before,
.mn-sidebar-track::after {
  content: '';
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 0.316rem solid transparent;
  border-right: 0.316rem solid transparent;
}

.mn-sidebar-track::before {
  top: 0.316rem;
  border-bottom: 0.474rem solid #555;
}

.mn-sidebar-track::after {
  bottom: 0.316rem;
  border-top: 0.474rem solid #555;
}

/* Scrollable video post list */
.mn-sidebar-list {
  flex: 1;
  overflow-y: auto;
  max-height: 29.368rem; /* matches featured video height */
  display: flex;
  flex-direction: column;
  gap: 0;
  /* hide native scrollbar — using custom track */
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.mn-sidebar-list::-webkit-scrollbar {
  display: none;
}

/* Individual sidebar video post */
.mn-sidebar-post {
  display: flex;
  flex-direction: row;
  gap: 0.842rem; /* ~16px / 19 */
  padding: 0.9rem 0.842rem;
  border-bottom: 0.053rem solid #f0f0f0;
  cursor: pointer;
  transition: background-color 0.2s ease, border-left-color 0.2s ease;
  align-items: center;
  border-left: 0.25rem solid transparent;
}

.mn-sidebar-post:last-child {
  border-bottom: none;
}

.mn-sidebar-post:hover {
  background-color: rgba(8, 75, 129, 0.04);
}

.mn-sidebar-post.active {
  background-color: rgba(8, 75, 129, 0.07);
  border-left-color: var(--primary-blue, #084b81);
}

.mn-video-thumb-wrapper {
  width: 6.32rem; /* ~120px / 19 */
  height: 4.921rem; /* ~93.4px / 19 */
  overflow: hidden;
  border-radius: 0.35rem;
  flex-shrink: 0;
  background-color: #111111;
  position: relative;
}

.mn-sidebar-post-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.mn-sidebar-post:hover .mn-sidebar-post-img {
  transform: scale(1.06);
}

.mn-video-play-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.35);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s ease, opacity 0.3s ease;
}

.mn-sidebar-post:hover .mn-video-play-overlay,
.mn-sidebar-post.active .mn-video-play-overlay {
  background: rgba(8, 75, 129, 0.55);
}

.mn-video-duration {
  position: absolute;
  bottom: 0.3rem;
  right: 0.3rem;
  background: rgba(0, 0, 0, 0.75);
  color: #ffffff;
  font-family: var(--font-secondary);
  font-size: 0.52rem;
  font-weight: 500;
  padding: 0.1rem 0.35rem;
  border-radius: 0.2rem;
  line-height: 1;
}

.mn-sidebar-post-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  padding-top: 0.105rem;
}

.mn-sidebar-post-meta {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 0.68rem; /* ~13px / 19 */
  line-height: 1.1;
  margin: 0;
}

.mn-post-source {
  color: #393939;
  font-weight: 500;
}

.mn-post-date {
  color: rgba(57, 57, 57, 0.6);
}

.mn-sidebar-post-title {
  font-family: var(--font-secondary);
  font-weight: 400;
  font-size: 0.82rem; /* ~15.5px / 19 */
  color: #393939;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  transition: color 0.2s ease;
}

.mn-sidebar-post.active .mn-sidebar-post-title {
  color: var(--primary-blue, #084b81);
  font-weight: 600;
}

/* ============================================================
   5. RESPONSIVE
   ============================================================ */
@media (max-width: 1199px) {
  .mn-hero-title {
    font-size: 2.8rem;
  }


  .mn-feature-sidebar {
    width: 22rem;
  }
}

@media (max-width: 1024px) {

  .mn-feature-row {
    grid-template-columns: 1fr;
  }

  .mn-feature-sidebar {
    width: 100%;
  }

  .mn-sidebar-list {
    max-height: none;
    overflow-y: visible;
  }

  .mn-sidebar-track {
    display: none;
  }
}

@media (max-width: 768px) {
  .mn-hero {
    height: 38rem;
  }

  .mn-hero-title {
    font-size: 2rem;
  }

  .mn-hero-desc {
    font-size: 0.895rem;
  }

  .mn-press-card {
    width: 15rem; /* narrower cards on small screens */
  }

  .mn-cards-grid {
    gap: 1.053rem;
  }

  .mn-feature-video-wrapper {
    height: 20rem;
  }
  .mn-hero-content {
    position: absolute;
    top: 40%;
  }
}

@media (max-width: 575px) {
  .mn-hero-title {
    font-size: 1.6rem;
  }

}