/* Homepage hero — featured YouTube carousel */
.hero-video-carousel {
  width: 100%;
}

.hero-video-carousel-shell {
  position: relative;
  width: 100%;
}

.hero-video-carousel-viewport {
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  border-radius: var(--radius-lg);
}

.hero-video-carousel-viewport::-webkit-scrollbar {
  display: none;
}

.hero-video-carousel-viewport:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
}

.hero-video-carousel-track {
  display: flex;
  width: 100%;
}

.hero-video-slide {
  flex: 0 0 100%;
  width: 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  min-width: 0;
}

.hero-video-wrapper {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border-hover);
  box-shadow: var(--shadow-lg);
  background: #F3F4F6;
}

.hero-video-wrapper iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: none;
}

.hero-video-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  position: absolute;
  top: 50%;
  z-index: 2;
  width: 44px;
  height: 44px;
  padding: 0;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid var(--border-hover);
  border-radius: 50%;
  color: var(--text-primary);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  font-family: inherit;
  box-shadow: var(--shadow-md);
  transition: border-color var(--transition), background var(--transition), color var(--transition), box-shadow var(--transition);
}

.hero-video-nav:hover {
  border-color: var(--accent);
  color: var(--accent);
  box-shadow: var(--shadow-lg);
}

.hero-video-nav:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.hero-video-nav--prev {
  left: 12px;
}

.hero-video-nav--next {
  right: 12px;
}

.hero-video-dots {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}

.hero-video-dot {
  width: 8px;
  height: 8px;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: var(--text-muted);
  opacity: 0.35;
  cursor: pointer;
  font-family: inherit;
  transition: opacity var(--transition), transform var(--transition), background var(--transition);
}

.hero-video-dot:hover {
  opacity: 0.65;
}

.hero-video-dot.is-active {
  opacity: 1;
  background: var(--accent);
  transform: scale(1.2);
}

.hero-video-dot:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

@media (max-width: 640px) {
  .hero-video-nav {
    width: 38px;
    height: 38px;
    font-size: 1.35rem;
  }

  .hero-video-nav--prev {
    left: 8px;
  }

  .hero-video-nav--next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hero-video-carousel-viewport {
    scroll-behavior: auto;
  }
}
