/* RPK24 V1.5.9 — fills Discover video panel and presents illustrated education news.
   Place after rpk24-discover-video-v158.css, scoped to homepage only. */
body.rpk-homepage .rpk24-v15-highlight-photo.rpk24-v15-highlight-video {
  display:block !important;
  position:relative !important;
  min-width:0;
  min-height:320px !important;
  padding:0 !important;
  margin:0 !important;
  background:#0b2a60 !important;
  overflow:hidden;
}
body.rpk-homepage .rpk24-v15-highlight-video::after { display:none !important; }
body.rpk-homepage .rpk24-v15-highlight-video .rpk24-v15-highlight-label { display:none !important; }
body.rpk-homepage .rpk24-v15-highlight-video .rpk24-video-frame {
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  max-width:none !important;
  height:100% !important;
  min-height:100% !important;
  aspect-ratio:auto !important;
  margin:0 !important;
  border:0 !important;
  border-radius:0 !important;
  box-shadow:none !important;
  overflow:hidden !important;
  background:#071d43;
}
body.rpk-homepage .rpk24-v15-highlight-video .rpk24-video-launch,
body.rpk-homepage .rpk24-v15-highlight-video .rpk24-video-frame iframe {
  display:block;
  width:100% !important;
  height:100% !important;
  min-height:100% !important;
  border-radius:0 !important;
  border:0;
}
body.rpk-homepage .rpk24-v15-highlight-video .rpk24-video-launch img {
  display:block;
  width:100% !important;
  height:100% !important;
  object-fit:cover !important;
  object-position:center !important;
  opacity:1;
}
body.rpk-homepage .rpk24-v15-highlight-video .rpk24-video-launch > span {
  width:62px;height:62px;border:2px solid rgba(255,255,255,.75);
  background:#ffc83d;color:#123772;
}
body.rpk-homepage .rpk24-v15-highlight-video .rpk24-video-launch:hover > span {background:#ffe080;}
/* Newspaper-style illustrated RSS cards. Real images only, no invented photo. */
body.rpk-homepage .rpk24-edu-feed {
  padding:13px;
  background:#f8faff;
  border:1px solid #d9e5f8;
}
body.rpk-homepage .rpk24-edu-cards {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
body.rpk-homepage .rpk24-edu-feed .rpk24-edu-card {
  min-width:0;
  display:grid;
  grid-template-columns:116px minmax(0,1fr);
  align-items:stretch;
  gap:12px;
  padding:8px !important;
  border:1px solid #dfe8f6 !important;
  background:#fff;
  border-radius:12px;
  color:#163c7b;
  text-decoration:none;
  box-shadow:0 2px 9px rgba(20,55,108,.04);
  transition:transform .15s,border-color .15s;
}
body.rpk-homepage .rpk24-edu-feed .rpk24-edu-card:hover {transform:translateY(-2px);border-color:#a1c2ff;}
body.rpk-homepage .rpk24-edu-card-media {
  position:relative;
  width:100%;
  min-height:100px;
  aspect-ratio:4/3;
  overflow:hidden;
  border-radius:9px;
  background:linear-gradient(130deg,#103b85,#3276c9);
}
body.rpk-homepage .rpk24-edu-card-placeholder {
  position:absolute;inset:0;display:grid;place-items:center;
  background:linear-gradient(130deg,#103b85,#377bd2);
  color:#ffdd68;font-size:27px;
}
body.rpk-homepage .rpk24-edu-card-media img {
  position:absolute;inset:0;
  width:100%;height:100%;
  object-fit:cover;object-position:center;
  display:block;
}
body.rpk-homepage .rpk24-edu-card-copy {min-width:0;display:flex;flex-direction:column;justify-content:center;gap:7px;padding:3px 3px 3px 0;}
body.rpk-homepage .rpk24-edu-card-copy .rpk24-edu-title {
  font-size:12px;line-height:1.6;color:#12356d;font-weight:750;
  display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;
  overflow:hidden;
}
body.rpk-homepage .rpk24-edu-card .rpk24-edu-date {font-size:10px;color:#7182a1;margin:0;}
body.rpk-homepage .rpk24-edu-readmore {font-size:10px;color:#b47b00;font-weight:700;}
@media (max-width:1100px){
  body.rpk-homepage .rpk24-edu-cards {grid-template-columns:minmax(0,1fr);}
  body.rpk-homepage .rpk24-edu-feed .rpk24-edu-card {grid-template-columns:142px minmax(0,1fr);}
}
@media (max-width:760px){
  body.rpk-homepage .rpk24-v15-highlight-photo.rpk24-v15-highlight-video {
    min-height:0 !important;
    max-height:none !important;
    aspect-ratio:16/9;
  }
  body.rpk-homepage .rpk24-v15-highlight-video .rpk24-video-frame {height:100% !important;}
  body.rpk-homepage .rpk24-edu-feed .rpk24-edu-card {grid-template-columns:116px minmax(0,1fr);gap:10px;}
}
@media (max-width:400px){
  body.rpk-homepage .rpk24-edu-feed {padding:8px;}
  body.rpk-homepage .rpk24-edu-feed .rpk24-edu-card {grid-template-columns:100px minmax(0,1fr);gap:8px;padding:6px !important;}
  body.rpk-homepage .rpk24-edu-card-media {min-height:90px;}
  body.rpk-homepage .rpk24-edu-card-copy .rpk24-edu-title {font-size:11px;}
}
@media (prefers-reduced-motion:reduce){body.rpk-homepage .rpk24-edu-feed .rpk24-edu-card{transition:none;}}
