/* 3 x 2 statistics cards over the banner */
.video-banner-slider{
  position:relative !important;
}

.hero-stats-overlay{
  position:absolute;
  z-index:9;
  top:50%;
  right:max(42px,calc((100vw - 1180px)/2));
  transform:translateY(-50%);
  width:min(500px,42vw);
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}

.hero-stat-card{
  min-height:96px;
  padding:16px 10px 14px;
  display:flex;
  flex-direction:column;
  align-items:center;
  justify-content:center;
  text-align:center;
  background:rgba(255,255,255,.94);
  border:1px solid rgba(255,255,255,.55);
  border-radius:16px;
  box-shadow:0 10px 26px rgba(0,0,0,.16);
  backdrop-filter:blur(5px);
  -webkit-backdrop-filter:blur(5px);
}

.hero-stat-card strong{
  display:block;
  color:#0f1e4a;
  font-size:clamp(21px,2vw,29px);
  line-height:1;
  font-weight:900;
  letter-spacing:-.025em;
}

.hero-stat-card span{
  display:block;
  margin-top:10px;
  color:#52647d;
  font-size:12px;
  line-height:1.2;
  font-weight:600;
}

/* Keep hero text on the left so the cards do not overlap it */
.video-banner-slider .banner-content{
  padding-right:min(540px,44vw) !important;
}

.video-banner-slider .banner-content h1{
  max-width:620px !important;
}

.video-banner-slider .banner-content p{
  max-width:600px !important;
}

/* Keep dots centered below everything */
.video-banner-slider .banner-dots{
  z-index:11 !important;
}

/* Tablet: stats become a bottom overlay with 3 columns */
@media(max-width:1050px){
  .hero-stats-overlay{
    top:auto;
    bottom:58px;
    left:50%;
    right:auto;
    transform:translateX(-50%);
    width:calc(100% - 80px);
    max-width:760px;
    gap:10px;
  }

  .hero-stat-card{
    min-height:76px;
    padding:11px 8px;
    border-radius:12px;
  }

  .hero-stat-card strong{
    font-size:20px;
  }

  .hero-stat-card span{
    margin-top:6px;
    font-size:11px;
  }

  .video-banner-slider .banner-content{
    padding-right:30px !important;
    padding-bottom:235px !important;
  }

  .video-banner-slider .banner-dots{
    bottom:25px !important;
  }
}

/* Mobile: 2 columns, still over the lower banner area */
@media(max-width:620px){
  .video-banner-slider{
    height:760px !important;
    min-height:760px !important;
  }

  .hero-stats-overlay{
    width:calc(100% - 32px);
    grid-template-columns:repeat(2,minmax(0,1fr));
    bottom:55px;
  }

  .hero-stat-card{
    min-height:68px;
  }

  .hero-stat-card strong{
    font-size:18px;
  }

  .video-banner-slider .banner-content{
    padding:42px 24px 315px !important;
  }

  .video-banner-slider .banner-dots{
    bottom:22px !important;
  }
}
