.hd-bento-mini-hero-banner {
  position: relative;
  width: 100%;
  height: 50vh;
  overflow: hidden;
}

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

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

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

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

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

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

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

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

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

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

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

/* Content Wrapper */
.hd-bento-mini-hero-banner .hero-content-wrapper {
  position: relative;
  margin: 0 auto;
  height: 100%;
  z-index: 2;
  padding: 0 20px;
  display: flex;
  align-items: center;
}

/* Glass Effect Box */
.hd-bento-mini-hero-banner .hero-glass-box {
  position: absolute;
  top: auto;
  bottom: auto;
  left: 80px;
  max-width: 906px;
  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-mini-hero-banner .hero-glass-box {
    background: rgba(19, 38, 61, 0.60);
  }
}

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

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

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

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

.hd-bento-mini-hero-banner .hero-body-mb {
  margin-bottom: 30px;
}

.hd-bento-mini-hero-banner .hd-bento-button {
  display: inline-block;
  padding: 16px 20px;
  background-color: #e5dcc4;
  color: #13263d;
  font-family: 'Inter', sans-serif;
  font-weight: 700;
  font-size: 14px;
  line-height: 100%;
  text-decoration: none;
  text-transform: uppercase;
  border-radius: 6px;
/*   transition: background-color 0.3s ease, transform 0.2s ease; */
  transition: background-color .3s ease-in-out, color .3s ease-in-out;
  align-self: flex-start;
}

.hd-bento-mini-hero-banner .hd-bento-button:hover {
  background-color: #d4cbbb;
/*   transform: translateY(-2px); */
  transition: all .3s ease-in-out;
}

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

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

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

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