.vhb-hero {
  position: relative;
  overflow: hidden;
  width: 100vw;
  max-width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  min-height: 300px;
  box-sizing: border-box;
  height: calc(var(--vh, 1vh) * 100);
}

.vhb-hero.vhb-fullscreen {
  height: 100vh;
}

.vhb-video-bg,
.vhb-video-embed {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  overflow: hidden;
  z-index: 1;
  background: #000;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vhb-video-fallback {
  color: rgba(255, 255, 255, 0.85);
  text-align: center;
  max-width: 80%;
  font-size: 1rem;
}

.vhb-video-bg video,
.vhb-video-embed iframe {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.vhb-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 2;
  pointer-events: none;
}

.vhb-slides {
  position: relative;
  z-index: 3;
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  box-sizing: border-box;
}

.vhb-slide {
  width: 100%;
  max-width: 1100px;
  opacity: 0;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  text-align: center;
  color: #fff;
  transition: opacity 0.6s ease, transform 0.6s ease;
  pointer-events: none;
}

.vhb-slide.vhb-active {
  pointer-events: auto;
}

/* Fallback when JS is disabled: show first slide */
.vhb-slide:first-child {
  opacity: 1;
}

.vhb-slide.vhb-active {
  opacity: 1;
  z-index: 5;
}

.vhb-slide.vhb-animate-slide-up.vhb-active {
  transform: translate(-50%, -60%);
}

.vhb-slide.vhb-animate-zoom.vhb-active {
  transform: translate(-50%, -50%) scale(1.05);
}

.vhb-slide.vhb-animate-typewriter .vhb-typewriter {
  overflow: hidden;
  white-space: nowrap;
  border-right: 3px solid rgba(255, 255, 255, 0.75);
  animation: vhb-typewriter 3s steps(40) infinite;
}

@keyframes vhb-typewriter {
  from { width: 0; }
  to { width: 100%; }
}

.vhb-slide h1 {
  margin: 0 0 0.5em;
}

.vhb-slide h2 {
  margin: 0 0 0.75em;
  opacity: 0.9;
}

.vhb-slide p {
  max-width: 800px;
  margin: 0 auto 1.2em;
  line-height: 1.5;
}

.vhb-slide .vhb-btn {
  display: inline-block;
  background-color: rgba(255, 255, 255, 0.85);
  color: #000;
  padding: 0.85em 1.6em;
  border-radius: 40px;
  text-decoration: none;
  font-weight: 600;
  transition: background 0.2s ease, transform 0.2s ease;
}

.vhb-slide .vhb-btn:hover {
  background-color: rgba(255, 255, 255, 1);
  transform: translateY(-2px);
}

.vhb-nav {
  position: absolute;
  width: 100%;
  bottom: 20px;
  left: 0;
  z-index: 6;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1rem;
}

.vhb-nav .vhb-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  cursor: pointer;
}

.vhb-nav .vhb-dot.vhb-active {
  background: rgba(255, 255, 255, 0.95);
}

.vhb-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.35);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 6;
  transition: background 0.2s ease;
}

.vhb-arrow:hover {
  background: rgba(0, 0, 0, 0.55);
}

.vhb-arrow.vhb-prev {
  left: 20px;
}

.vhb-arrow.vhb-next {
  right: 20px;
}

@media (max-width: 768px) {
  .vhb-slide h1 {
    font-size: 1.8rem;
  }
  .vhb-slide h2 {
    font-size: 1.2rem;
  }
  .vhb-slide p {
    font-size: 0.95rem;
  }
}
