/* YouTube / hero video blocks */

.hero-video-container {
  position: relative;
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.1),
    0 10px 10px -5px rgba(0, 0, 0, 0.04);
  border: 1px solid rgba(0, 0, 0, 0.08);
  /* background: linear-gradient(135deg, rgba(99, 102, 241, 0.05) 0%, rgba(168, 85, 247, 0.05) 100%); */
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.hero-video-container:hover {
  transform: translateY(-4px);
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.15),
    0 12px 20px -8px rgba(0, 0, 0, 0.08);
}

.dark-theme .hero-video-container {
  border-color: rgba(255, 255, 255, 0.1);
  box-shadow:
    0 20px 25px -5px rgba(0, 0, 0, 0.3),
    0 10px 10px -5px rgba(0, 0, 0, 0.2);
  /* background: linear-gradient(135deg, rgba(99, 102, 241, 0.08) 0%, rgba(168, 85, 247, 0.08) 100%); */
}

.dark-theme .hero-video-container:hover {
  box-shadow:
    0 25px 50px -12px rgba(0, 0, 0, 0.4),
    0 12px 20px -8px rgba(0, 0, 0, 0.3);
}

.hero-video-container iframe {
  border-radius: 16px;
}

.hero-video-placeholder{
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;        /* fill 16:9, keep aspect ratio, crop overflow */
  object-position: 50% 50%; /* center horizontally, shift crop upward; tweak % as needed */
  z-index: 55;
}

@keyframes hero-video-placeholder-fade-out {
  0% {
    opacity: 1;
  }
  99% {
    opacity: 0;
  }
  100% {
    opacity: 0;
    visibility: hidden;
  }
}

.hero-video-placeholder-hidden{
  animation: hero-video-placeholder-fade-out 1s ease-out forwards;
  pointer-events: none;
}

#hero .hero-video-container {
  margin-bottom: 2rem;
}

.hero-video-placeholder-link {
  display: block;
  position: absolute;
  inset: 0;
  z-index: 2;
}

.hero-video-placeholder-link .hero-video-placeholder {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.hero-video-play {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 13%;
  height: auto;
  aspect-ratio: 1 / 1;
}

@keyframes hero-video-play-pulsate {
  0% {
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    transform: translate(-50%, -50%) scale(1.25);
  }
  100% {
    transform: translate(-50%, -50%) scale(1);
  }
}

.hero-video-play.hero-video-play-pulsate {
  animation: hero-video-play-pulsate 1s ease-in-out infinite;
}

.hero-video-wrapper iframe {
  z-index: 1;
}

@media (max-width: 991px) {
  .hero-video-container {
    top: 0 !important;
  }
}
