/* 1. Wrapper: establishes stacking context & height constraint */
.hero-banner-wrapper {
  position: relative; /* Critical for absolute children */
  width: 100%;
  height: clamp(250px, 50vw, 100vh);
  overflow: hidden;
  background: var(--color-dark, #111);
  margin: 0;
}

/* 2. Media Container: holds only the video */
.hero-banner-media-container {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 1;
  overflow: hidden; /* Clips video edges if needed */
}

/* 3. Video: fills container without distorting */
.hero-banner-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block; /* Removes bottom spacing glitch */
  opacity: 0.85; /* Slight dim for text readability */
}

/* 4. Overlay: sits above video, lets clicks pass through empty areas */
.hero-banner-overlay {
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 100%;
  z-index: 10; /* Above container/video */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  pointer-events: none; /* Allows button clicks to pass if positioned outside */
}

.hero-banner-overlay-content {
  color: #fff;
  max-width: 850px;
  width: 100%;
  padding: 1.5rem;
  text-align: center;
  pointer-events: auto; /* Makes text/content interactive */
  filter: drop-shadow(0 4px 20px rgba(0,0,0,0.6));
}

/* 5. Pause Button: highest priority, always visible in bottom-right */
.hero-banner-pause-btn {
  position: absolute;
  bottom: 1.5rem;
  right: 1.5rem;
  z-index: 20; /* Above overlay & video */
  background: #bcdc9f !important;
  color: #06534f !important;
  border: none;
  padding: 10px 14px;
  font-size: 1.2rem;
  border-radius: 8px;
  cursor: pointer; /* Shows hand icon on hover */
  backdrop-filter: blur(6px);
  transition: background 0.2s, transform 0.15s;
  pointer-events: auto; /* Explicitly clickable */
}

.hero-banner-pause-btn:hover {
  background: rgba(0, 0, 0, 0.9);
  transform: scale(1.05);
}

/* Responsive tweaks */
@media  (min-width: 987px) {
  .hero-banner-overlay-content { max-width: 60% }
}
@media (min-width: 769px) and (max-width: 986px) {
  .hero-banner-overlay-content { max-width: 70%; }
}
@media (max-width: 768px) {
  .hero-banner-overlay-content { max-width: 85%; font-size: 0.95rem; }
  .hero-banner-pause-btn { bottom: 1rem; right: 1rem; padding: 8px 12px; font-size: 1rem; }
}

