/**
 * Home — Featured video cards: light rotating color themes + white shimmer
 */

@keyframes mopdicVideoCardShimmer {
  0%, 72% { left: -70%; opacity: 0; }
  82% { opacity: 1; }
  100% { left: 130%; opacity: 0; }
}

.video-section .video-grid {
  gap: 28px;
}

.video-section .video-card {
  border-radius: 22px;
  overflow: hidden;
  transition: transform 0.45s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.45s ease;
}

/* White shimmer sweep — like Digital Platforms cards */
.video-section .video-card::after {
  content: '';
  position: absolute;
  top: 0;
  left: -70%;
  width: 42%;
  height: 100%;
  inset: auto;
  background: linear-gradient(105deg, transparent, rgba(255, 255, 255, 0.52), transparent);
  transform: skewX(-12deg);
  animation: mopdicVideoCardShimmer 5.5s ease-in-out infinite;
  pointer-events: none;
  z-index: 6;
  opacity: 1;
}

.video-section .video-grid .video-card:nth-child(4n+2)::after { animation-delay: 1.1s; }
.video-section .video-grid .video-card:nth-child(4n+3)::after { animation-delay: 2.2s; }
.video-section .video-grid .video-card:nth-child(4n)::after { animation-delay: 3.3s; }

.video-section .video-card::before {
  height: 4px;
  opacity: 1;
  transform: scaleX(1);
  animation: none;
}

.video-section .video-card:hover {
  transform: translateY(-12px) rotate(-0.35deg);
}

.video-section .video-card:hover::after {
  animation-duration: 2.4s;
}

/* ── Light color themes (rotate per card) ── */
.video-section .video-card--sky {
  background: linear-gradient(165deg, #ffffff 0%, #f3f8ff 55%, #eef5ff 100%);
  border-color: rgba(66, 124, 208, 0.14);
  box-shadow: 0 12px 36px rgba(66, 124, 208, 0.08), 0 4px 14px rgba(15, 23, 42, 0.04);
}
.video-section .video-card--sky::before {
  background: linear-gradient(90deg, #6ba3e8, #427cd0);
}
.video-section .video-card--sky .video-card__meta {
  color: #3266b5;
  background: rgba(66, 124, 208, 0.1);
  border-color: rgba(66, 124, 208, 0.16);
}
.video-section .video-card--sky .video-card__badge {
  background: linear-gradient(135deg, rgba(66, 124, 208, 0.92), rgba(50, 102, 181, 0.95));
  box-shadow: 0 6px 16px rgba(66, 124, 208, 0.35);
}
.video-section .video-card--sky .video-card__divider {
  background: linear-gradient(90deg, transparent, #427cd0, #6ba3e8, transparent);
}
.video-section .video-card--sky .video-card__watch-link { color: #3266b5; }

.video-section .video-card--mint {
  background: linear-gradient(165deg, #ffffff 0%, #f2fbf4 55%, #eaf8ee 100%);
  border-color: rgba(59, 178, 60, 0.14);
  box-shadow: 0 12px 36px rgba(59, 178, 60, 0.08), 0 4px 14px rgba(15, 23, 42, 0.04);
}
.video-section .video-card--mint::before {
  background: linear-gradient(90deg, #6fd672, #3bb23c);
}
.video-section .video-card--mint .video-card__meta {
  color: #2d8f30;
  background: rgba(59, 178, 60, 0.1);
  border-color: rgba(59, 178, 60, 0.16);
}
.video-section .video-card--mint .video-card__badge {
  background: linear-gradient(135deg, rgba(59, 178, 60, 0.92), rgba(45, 143, 48, 0.95));
  box-shadow: 0 6px 16px rgba(59, 178, 60, 0.32);
}
.video-section .video-card--mint .video-card__divider {
  background: linear-gradient(90deg, transparent, #3bb23c, #6fd672, transparent);
}
.video-section .video-card--mint .video-card__watch-link { color: #2d8f30; }

.video-section .video-card--lavender {
  background: linear-gradient(165deg, #ffffff 0%, #f7f4ff 55%, #f0ebff 100%);
  border-color: rgba(124, 58, 237, 0.12);
  box-shadow: 0 12px 36px rgba(124, 58, 237, 0.07), 0 4px 14px rgba(15, 23, 42, 0.04);
}
.video-section .video-card--lavender::before {
  background: linear-gradient(90deg, #a78bfa, #7c3aed);
}
.video-section .video-card--lavender .video-card__meta {
  color: #6d28d9;
  background: rgba(124, 58, 237, 0.08);
  border-color: rgba(124, 58, 237, 0.14);
}
.video-section .video-card--lavender .video-card__badge {
  background: linear-gradient(135deg, rgba(124, 58, 237, 0.88), rgba(109, 40, 217, 0.92));
  box-shadow: 0 6px 16px rgba(124, 58, 237, 0.28);
}
.video-section .video-card--lavender .video-card__divider {
  background: linear-gradient(90deg, transparent, #7c3aed, #a78bfa, transparent);
}
.video-section .video-card--lavender .video-card__watch-link { color: #6d28d9; }

.video-section .video-card--peach {
  background: linear-gradient(165deg, #ffffff 0%, #fff8f2 55%, #fff3e8 100%);
  border-color: rgba(254, 185, 30, 0.16);
  box-shadow: 0 12px 36px rgba(254, 185, 30, 0.08), 0 4px 14px rgba(15, 23, 42, 0.04);
}
.video-section .video-card--peach::before {
  background: linear-gradient(90deg, #ffd54f, #feb91e);
}
.video-section .video-card--peach .video-card__meta {
  color: #b45309;
  background: rgba(254, 185, 30, 0.12);
  border-color: rgba(254, 185, 30, 0.2);
}
.video-section .video-card--peach .video-card__badge {
  background: linear-gradient(135deg, rgba(254, 185, 30, 0.95), rgba(217, 119, 6, 0.92));
  box-shadow: 0 6px 16px rgba(254, 185, 30, 0.32);
}
.video-section .video-card--peach .video-card__divider {
  background: linear-gradient(90deg, transparent, #feb91e, #ffd54f, transparent);
}
.video-section .video-card--peach .video-card__watch-link { color: #b45309; }

.video-section .video-card__media {
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.6), rgba(226, 232, 240, 0.4));
}

.video-section .video-card__text {
  padding: 22px 24px 24px;
}

@media (prefers-reduced-motion: reduce) {
  .video-section .video-card::after {
    animation: none;
    opacity: 0;
  }
}
