/* RPK24 V1.5.8 - Video introductory panel. Add AFTER v157.css. */
/* The original school video now lives in the left side of the Discover card. */
body.rpk-homepage .rpk24-v15-highlight-photo.rpk24-v15-highlight-video {
  display:flex !important;
  align-items:center !important;
  justify-content:center !important;
  flex-direction:column;
  min-width:0;
  min-height:330px;
  padding:22px 14px 54px;
  background:radial-gradient(circle at 25% 20%, #246aca 0%, #123b89 42%, #092554 100%);
  box-sizing:border-box;
}
body.rpk-homepage .rpk24-v15-highlight-video .rpk24-video-frame {
  position:relative;
  z-index:3;
  display:block;
  width:100%;
  max-width:650px;
  aspect-ratio:16 / 9;
  height:auto;
  margin:0 auto;
  border-radius:14px;
  overflow:hidden;
  background:#091c3a;
  box-shadow:0 12px 28px rgba(2,17,49,.3);
}
body.rpk-homepage .rpk24-v15-highlight-video .rpk24-video-launch { display:block;width:100%;height:100%; }
body.rpk-homepage .rpk24-v15-highlight-video .rpk24-video-launch img {
  width:100% !important;
  height:100% !important;
  max-width:100% !important;
  object-fit:contain !important;
  filter:none !important;
}
body.rpk-homepage .rpk24-v15-highlight-video .rpk24-video-frame iframe {
  display:block;
  width:100% !important;
  height:100% !important;
  border:0;
}
/* Keep the DISCOVER label visible without obscuring the play button. */
body.rpk-homepage .rpk24-v15-highlight-video .rpk24-v15-highlight-label {
  bottom:16px;
  left:20px;
  color:#ffe078;
  text-shadow:0 2px 8px rgba(3,20,62,.65);
}
body.rpk-homepage .rpk24-v15-highlight-video::after {
  z-index:2 !important;
  height:20%;
  pointer-events:none;
}
/* Former video card is gone. Educational news uses the full width of its row. */
body.rpk-homepage .rpk24-resources-grid.rpk24-resources-grid--single {
  display:grid;
  grid-template-columns:minmax(0,1fr) !important;
}
@media (max-width:760px) {
  body.rpk-homepage .rpk24-v15-highlight-photo.rpk24-v15-highlight-video {
    min-height:0 !important;
    max-height:none !important;
    padding:16px 12px 48px;
  }
  body.rpk-homepage .rpk24-v15-highlight-video .rpk24-video-frame { border-radius:11px; }
  body.rpk-homepage .rpk24-v15-highlight-video .rpk24-v15-highlight-label { bottom:13px;left:15px;font-size:12px; }
}
