/* =============================================================================
   HERO BANNER
   Full-viewport Swiper hero with background media, overlay, content,
   pagination counter, and animated progress bars.
   ============================================================================= */


/* -----------------------------------------------------------------------------
   1. BASE
   ----------------------------------------------------------------------------- */

.hero-banner {
  position: relative;
  height: calc(100vh - 85px);
  min-height: 100vh;
  overflow: hidden;
}

/* Swiper fills full height */
.hero-banner .swiper,
.hero-banner .swiper-wrapper,
.hero-banner .swiper-slide {
  height: 100%;
}


/* -----------------------------------------------------------------------------
   2. BACKGROUND MEDIA
   ----------------------------------------------------------------------------- */

.hero-banner .hero-media {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hero-banner .hero-bg {
  width: 100%;
  height: 100%;
  object-fit: cover;
  background-size: cover;
  background-position: center;
}

/* Primary dark overlay */
.hero-banner .hero-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
}
/* Secondary scrim layered on top of media — adjust alpha to control darkness */
.hero-banner .hero-media::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 2;
  background: rgba(0, 0, 0, 0.20);
}


/* -----------------------------------------------------------------------------
   3. CONTENT
   ----------------------------------------------------------------------------- */

.hero-banner .hero-content {
  position: relative;
  z-index: 2;
  height: 100%;
  display: flex;
  align-items: flex-end;
}

.hero-banner .hero-content-detailes {
  padding-bottom: 111px;
}

.hero-banner .hero-title {
  font-size: clamp(32px, 5vw, 70px);
  line-height: 1.15;
  max-width: 987px;
  margin-bottom: 45px;
  color: #fff;
}


/* -----------------------------------------------------------------------------
   4. PAGINATION (counter + progress bars)
   ----------------------------------------------------------------------------- */

.hero-banner .hero-pagination {
  position: absolute;
  bottom: 104px;
  right: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 18px;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
}

/* Slide counter */
.hero-banner .hero-counter {
  letter-spacing: 0.5px;
  font-weight: 500;
}

/* Progress bar row */
.hero-bars {
  display: flex;
  gap: 8px;
}

/* Individual bar track */
.hero-bars .bar {
  position: relative;
  width: 20px;
  height: 2px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.3);
  overflow: hidden;
  cursor: pointer;
}

/* Animated fill — driven by --progress CSS variable set via JS */
.hero-bars .bar::after {
  content: "";
  position: absolute;
  inset: 0;
  background: #fff;
  transform: scaleX(0);
  transform-origin: left;
  animation: none;
  /* width: var(--progress, 0%);
  background: #fff;
  transition: width 0.05s linear; */
}
@keyframes barFill {
  from { transform: scaleX(0); }
  to   { transform: scaleX(1); }
}
.hero-bars .bar.active::after {
  animation: barFill var(--bar-duration, 5s) linear forwards;
}


/* -----------------------------------------------------------------------------
   5. RESPONSIVE
   ----------------------------------------------------------------------------- */

/* Tablet / desktop: tighten content bottom padding */
@media screen and (max-width: 1024px) {
  .hero-banner .hero-content-detailes {
    padding-bottom: 12vh !important;
  }
}

/* Mobile */
@media (max-width: 768px) {
  .hero-banner {
    height: calc(80vh - 65px) !important;
    min-height: 80vh !important;
  }

  .hero-banner .hero-pagination {
    bottom: 40px;
    right: 20px;
  }

  .hero-banner .hero-bars .bar {
    width: 20px;
  }
}