.learning-wrap {
  background: url("../images/game_bg.png") center / cover no-repeat;
  padding: 10px 16px 110px;
}
/* ================= HERO ================= */
.library-hero {
  min-height: 55vh; /* reduced height */
  display: flex;
  align-items: center;
  background: url("../images/banner/library.jpg")
    no-repeat right center / cover;
}

.hero-inner {
  max-width: 560px;
  margin-left: 80px;
}

.hero-pill {
  background: #fff;
  padding: 6px 16px;
  border-radius: 999px;
  font-size: 0.8rem;
  display: inline-block;
  margin-bottom: 14px;
}

.hero-title {
  font-size: 2.6rem;
  font-weight: 800;
  line-height: 1.2;
}

.hero-title span {
  background: linear-gradient(90deg,#ff4fae,#ffb000,#4fd2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-text {
  margin-top: 14px;
  color: #555;
  max-width: 460px;
}
/* ================= MOBILE ================= */
@media (max-width: 768px) {
  .hero-inner {
    margin: 0 24px;
  }

  .hero-title {
    font-size: 2.1rem;
  }

  .parents-hero {
    min-height: 48vh;
  }
}


/* ================= PLAY UI (ALWAYS VISIBLE) ================= */
.play-ui{
  position:absolute;
  inset:0;
  margin:auto;
  width: 92px;
  height: 92px;
  pointer-events:none;
}
.play-ring{
  position:absolute;
  inset:-10px;
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(168,115,255,.35);
  animation: ringPulse 2.8s infinite ease-in-out;
}
.play-core{
  position:absolute;
  inset:0;
  border-radius: 50%;
  background: linear-gradient(135deg,#a875ff,#ff77c8);
  box-shadow: 0 12px 28px rgba(0,0,0,.22);
  animation: coreFloat 3.8s infinite ease-in-out;
}
.play-tri{
  position:absolute;
  inset:0;
  margin:auto;
  width:0; height:0;
  border-left: 24px solid #fff;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  transform: translateX(5px);
}

/* hover boosts */
.video-card:hover .play-ring{ animation: ringPulseHover 1.6s infinite ease-in-out; }
.video-card:hover .play-core{ animation: coreFloatHover 2.2s infinite ease-in-out; }

@keyframes ringPulse{
  0%{ box-shadow: 0 0 0 0 rgba(168,115,255,.35); }
  70%{ box-shadow: 0 0 0 22px rgba(168,115,255,0); }
  100%{ box-shadow: 0 0 0 0 rgba(168,115,255,0); }
}
@keyframes ringPulseHover{
  0%{ box-shadow: 0 0 0 0 rgba(255,119,200,.55); }
  70%{ box-shadow: 0 0 0 28px rgba(255,119,200,0); }
  100%{ box-shadow: 0 0 0 0 rgba(255,119,200,0); }
}
@keyframes coreFloat{
  0%{ transform: translateY(0) scale(1); }
  50%{ transform: translateY(-6px) scale(1.05); }
  100%{ transform: translateY(0) scale(1); }
}
@keyframes coreFloatHover{
  0%{ transform: translateY(0) scale(1.05); }
  50%{ transform: translateY(-10px) scale(1.12); }
  100%{ transform: translateY(0) scale(1.05); }
}





/* ================= CLOSING ================= */
.about-closing{
  position: relative;
  padding: 80px 0;
  text-align: center;
  background: #fffaf7;
  overflow: hidden;
}
.about-closing::before{
  content:"";
  position:absolute;
  inset:0;
  background:
    radial-gradient(circle at 15% 20%, #ffe4ec 0%, transparent 45%),
    radial-gradient(circle at 85% 30%, #e8f6ff 0%, transparent 45%),
    radial-gradient(circle at 50% 90%, #fff1c9 0%, transparent 50%);
  opacity: .7;
}
.about-closing .wrapper{ position: relative; z-index: 2; max-width: 820px; }
.about-title{
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.25;
  margin: 0 0 12px;
}
.about-title span{
  background: linear-gradient(90deg,#ff4fae,#ffb000,#4fd2ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.closing-text{ margin: 0 0 22px; color:#555; font-size: 1.05rem; }

/* ================= MOBILE ================= */
@media (max-width: 768px){
  .library-hero-inner{ grid-template-columns: 1fr; padding: 44px 16px; }
  .library-hero-art{ display: none; }
  .hero-title{ font-size: 2.1rem; }
  .video-card img{ height: 190px; }
  .about-title{ font-size: 1.85rem; }
  .closing-text{ font-size: .95rem; }
}

/* ================= VIDEOS ================= */

.videos-premium {
  background: linear-gradient(135deg, #fff7f4, #ffffff);
}

.videos-pill {
  background: #fff;
  padding: 8px 18px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  display: inline-block;
  margin-bottom: 16px;
}

.videos-title {
  font-size: 2.4rem;
  font-weight: 800;
  margin-bottom: 50px;
}

.video-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

.video-card {
  background: #fff;
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08);
  cursor: pointer;
  transition: all 0.35s ease;
  position: relative;
  padding: 0;
}

.video-card img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  padding-left: 6px;
  padding-right: 6px;
  padding-top: 6px;
  border-radius: 26px;
}

@media (max-width: 768px) {
  .video-card img {
    height: 160px;
  }
}

.video-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 3rem;
  color: #fff;
  background: rgba(0, 0, 0, 0.25);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.video-card:hover .video-overlay {
  opacity: 1;
}

.video-card:hover {
  transform: translateY(-12px) scale(1.03);
}

.video-info {
  padding: 14px 18px 18px;
}

.video-info h4 {
  font-size: 1.1rem;
  font-weight: 700;
}

.tag {
  display: inline-block;
  padding: 6px 14px;
  border-radius: 999px;
  font-size: 0.75rem;
  margin-bottom: 8px;
}

.tag.pink {
  background: #ffe4f2;
  color: #ff4fae;
}

.tag.yellow {
  background: #fff1d6;
  color: #ffb000;
}

.tag.blue {
  background: #e9f7ff;
  color: #4fd2ff;
}

/* ================= LIGHTBOX ================= */

.video-lightbox {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.video-lightbox.active {
  display: flex;
}

.video-frame {
  width: 90%;
  max-width: 900px;
  aspect-ratio: 16/9;
  background: #000;
  border-radius: 18px;
  overflow: hidden;
  position: relative;
}

.video-frame iframe {
  width: 100%;
  height: 100%;
  border: none;
}

.close-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.6);
  border: none;
  color: #fff;
  font-size: 1.4rem;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-btn:hover {
  background: #ff4fae;
}

.video-card.blue {
  position: relative;
  background: url(../../assets/images/section5/video_btn_bg_1.png) no-repeat;
  background-size: cover;
  /* padding: 36px 34px;
    border-radius: 28px; */
  /* box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08); */
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.video-card.pink {
  position: relative;
  background: url(../../assets/images/section5/video_btn_bg_2.png) no-repeat;
  background-size: cover;
  /* padding: 36px 34px;
    border-radius: 28px; */
  /* box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08); */
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.video-card.yellow {
  position: relative;
  background: url(../../assets/images/section5/video_btn_bg_3.png) no-repeat;
  background-size: cover;
  /* padding: 36px 34px;
    border-radius: 28px; */
  /* box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08); */
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.video-card.red {
  position: relative;
  background: url(../../assets/images/section5/video_btn_bg_4.png) no-repeat;
  background-size: cover;
  /* padding: 36px 34px;
    border-radius: 28px; */
  /* box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08); */
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.video-card.green {
  position: relative;
  background: url(../../assets/images/section5/video_btn_bg_5.png) no-repeat;
  background-size: cover;
  /* padding: 36px 34px;
    border-radius: 28px; */
  /* box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08); */
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.video-card.skyblue {
  position: relative;
  background: url(../../assets/images/section5/video_btn_bg_1.png) no-repeat;
  background-size: cover;
  /* padding: 36px 34px;
    border-radius: 28px; */
  /* box-shadow: 0 30px 60px rgba(0, 0, 0, 0.08); */
  transition: transform 0.35s ease, box-shadow 0.35s ease;
}

/* Responsive */
@media(max-width:900px) {
  .video-grid {
    grid-template-columns: 1fr;
  }
}
