.hd-bento-hero-banner {
  position: relative;
  width: 100%;
  height: calc(100vh - 80px); /* Default header height */
  overflow: hidden;
}

/* Background Media Container */
.hd-bento-hero-banner .hero-background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1; 
}

.hd-bento-hero-banner .hero-video,
.hd-bento-hero-banner .hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Dynamic positioning based on module settings */
.hd-bento-hero-banner[data-position-v="top"][data-position-h="left"] .hero-video,
.hd-bento-hero-banner[data-position-v="top"][data-position-h="left"] .hero-image {
  object-position: top left;
}

.hd-bento-hero-banner[data-position-v="top"][data-position-h="center"] .hero-video,
.hd-bento-hero-banner[data-position-v="top"][data-position-h="center"] .hero-image {
  object-position: top center;
}

.hd-bento-hero-banner[data-position-v="top"][data-position-h="right"] .hero-video,
.hd-bento-hero-banner[data-position-v="top"][data-position-h="right"] .hero-image {
  object-position: top right;
}

.hd-bento-hero-banner[data-position-v="center"][data-position-h="left"] .hero-video,
.hd-bento-hero-banner[data-position-v="center"][data-position-h="left"] .hero-image {
  object-position: center left;
}

.hd-bento-hero-banner[data-position-v="center"][data-position-h="center"] .hero-video,
.hd-bento-hero-banner[data-position-v="center"][data-position-h="center"] .hero-image {
  object-position: center center;
}

.hd-bento-hero-banner[data-position-v="center"][data-position-h="right"] .hero-video,
.hd-bento-hero-banner[data-position-v="center"][data-position-h="right"] .hero-image {
  object-position: center right;
}

.hd-bento-hero-banner[data-position-v="bottom"][data-position-h="left"] .hero-video,
.hd-bento-hero-banner[data-position-v="bottom"][data-position-h="left"] .hero-image {
  object-position: bottom left;
}

.hd-bento-hero-banner[data-position-v="bottom"][data-position-h="center"] .hero-video,
.hd-bento-hero-banner[data-position-v="bottom"][data-position-h="center"] .hero-image {
  object-position: bottom center;
}

.hd-bento-hero-banner[data-position-v="bottom"][data-position-h="right"] .hero-video,
.hd-bento-hero-banner[data-position-v="bottom"][data-position-h="right"] .hero-image {
  object-position: bottom right;
}

/* Content Wrapper */
.hd-bento-hero-banner .hero-content-wrapper {
  position: relative;
/*   max-width: 1200px; */
  margin: 0 auto;
  height: 100%;
  z-index: 2;
  padding: 0 20px;
}

/* Glass Effect Box */
.hd-bento-hero-banner .hero-glass-box {
  position: absolute;
  bottom: 60px;
  left: 80px;
  max-width: 730px;
  padding: 60px;
  
  /* Glass effect */
  background: rgba(19, 38, 61, 0.60);
  backdrop-filter: blur(5px);
  -webkit-backdrop-filter: blur(5px);
  
  /* Border and shadow */
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 10px;
  box-shadow: 0 4px 4px 0 rgba(0, 0, 0, 0.25);
  
  /* Fallback for browsers without backdrop-filter support */
  background: rgba(19, 38, 61, 0.60);
}

/* Support check for backdrop-filter */
@supports (backdrop-filter: blur(5px)) or (-webkit-backdrop-filter: blur(5px)) {
  .hd-bento-hero-banner .hero-glass-box {
    background: rgba(19, 38, 61, 0.60);
  }
}

/* Heading Styles */
.hd-bento-hero-banner .hero-heading {
  margin: 0 0 30px 0;
  font-size: 60px;
  font-weight: 600;
  line-height: 1.3;
  color: #ffffff;
  font-family: "Inter", sans-serif;
}

/* Body Text Styles */
.hd-bento-hero-banner .hero-body {
  margin: 0;
  font-size: 20px;
  line-height: 1.5;
  color: #ffffff;
  font-weight: normal;
  font-family: "Inter", sans-serif;
}

.hd-bento-hero-banner .hero-body * {
  color: #fff;
}

.hd-bento-hero-banner .hero-body p {
  margin: 0;
}

/* Mobile Styles */
@media (max-width: 767px) {
  .hd-bento-hero-banner {
    height: calc(100vh - 60px); /* Smaller header on mobile */
  }
  
  .hd-bento-hero-banner .hero-video.hide-mobile {
    display: none;
  }
  
  .hd-bento-hero-banner .video-mobile-img {
    display: block;
  }
  
  .hd-bento-hero-banner .hero-content-wrapper {
    padding: 0;
  }
  
  .hd-bento-hero-banner .hero-glass-box {
    left: 20px;
    right: 20px;
    bottom: 40px;
    max-width: none;
    width: calc(100% - 40px);
    padding: 32px 24px;
  }
  
  .hd-bento-hero-banner .hero-heading {
    font-size: 50px;
    margin-bottom: 20px;
  }
  
  .hd-bento-hero-banner .hero-body {
    font-size: 18px;
  } 
}

/* Tablet Styles */
@media (min-width: 768px) and (max-width: 1024px) {
  .hd-bento-hero-banner .hero-glass-box {
    left: 40px;
    max-width: 500px;
  }
  
  .hd-bento-hero-banner .hero-heading {
    font-size: 50px;
  }
}

@media (min-width: 768px) {
.hd-bento-hero-banner .video-mobile-img {
    display: none;
  }
}

@media (min-width: 1366px) {
  .hd-bento-hero-banner .hero-glass-box {
    left: 122px;
  }
}
