
/* Video background container */
#video-bg-container{
  position: fixed; /* floats beneath content */
  left: 0;
  right: 0;
  top: 0; /* JS adjusts dynamically */
  width: 100%;
  height: 420px; /* default; JS adjusts to video aspect */
  overflow: hidden;
  z-index: 1; /* behind main content which should be higher */
  pointer-events: none; /* ensure clicks go to content */
}

.vb-audio-toggle{
  position: fixed;
  right: 16px;
  bottom: 16px;
  z-index: 1100;
  pointer-events: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border: 1px solid rgba(255,255,255,0.35);
  border-radius: 999px;
  background: rgba(15, 23, 19, 0.55);
  color: #ffffff;
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.18);
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.vb-audio-toggle:hover{
  background: rgba(39, 174, 96, 0.72);
  border-color: rgba(255,255,255,0.55);
  transform: translateY(-1px);
}

.vb-audio-toggle:focus{
  outline: 2px solid rgba(255,255,255,0.8);
  outline-offset: 2px;
}

.vb-audio-toggle .vb-audio-label{
  white-space: nowrap;
}

#video-bg-container .vb-video{
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transform-origin: center center;
}

/* ensure page content overlays the video */
.container, .page-header-bar, .site-content, .main, .card, .navbar, header, .hero, .page-hero{
  position: relative; z-index: 5;
}

/* Hidden state when footer overlaps */
#video-bg-container.vb-hidden{ display: none; }

/* Make sure footer overlays above video when video is sticky end */
footer{ position: relative; z-index: 10; }

@media (max-width: 768px){
  .vb-audio-toggle{
    right: 12px;
    bottom: 12px;
    padding: 8px 12px;
    font-size: 0.8rem;
  }
}
