/* ==========================================================================
   Hero Slider Styles (/css/hero-slider.css)
   ==========================================================================

   TABLE OF CONTENTS
   --------------------------------------------------------------------------
   1. HERO SECTION WRAPPER (#hero)
   2. IMAGE LAYER (.hero-background-images, .hero-bg-image)
   3. CAPTION LAYER (.hero-caption-container, .hero-caption)

========================================================================== */

/* ==========================================================================
   1. HERO SECTION WRAPPER (#hero)
   ========================================================================== */

#hero {
  --hero-bg-color: #4959a5; /* Default color for slide 1, controlled by JS */
  min-height: 1400px;
  position: relative; /* Establishes the stacking context for z-index */
  background-color: var(--hero-bg-color);
  transition: background-color 0.7s ease-in-out;
  overflow: hidden;
}

/* --- Breakpoints for #hero --- */
@media screen and (min-width: 1200px) {
  #hero {
    min-height: 950px;
  }
}

@media screen and (min-width: 1920px) {
  #hero {
    min-height: 1050px;
  }
}

/* ==========================================================================
   2. IMAGE LAYER (.hero-background-images, .hero-bg-image)
   ========================================================================== */

/* Container for all the <picture> elements */
.hero-background-images {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Individual <picture> elements */
.hero-bg-image {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0; /* Hidden by default */
  transition: opacity 0.7s ease-in-out; /* Fade effect */
}

.hero-bg-image.is-active {
  opacity: 1;
}

.hero-bg-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: bottom center;
}

@media screen and (min-width: 1200px) {
  .hero-bg-image img {
    object-position: top right;
    object-fit: contain;
  }
}

/* ==========================================================================
   3. CAPTION LAYER (.hero-caption-container, .hero-caption)
   ========================================================================== */

/* Container for the text captions */
.hero-caption-container {
  /* Positioning */
  position: absolute;
  z-index: 2;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);

  /* Layout Styles */
  display: flex;
  width: 300px;
  height: 61px;
  padding: 35px 10px;
  justify-content: center;
  align-items: center;
  gap: 10px;
  flex-shrink: 0;

  /* Background & Border Style */
  background: #20233533; /* #202335 at 20% opacity */
  border-radius: 8px; /* Based on visual design */
  box-sizing: border-box;
  border: 1px solid #fbfbfc;
}

/* Individual caption <p> tags */
.hero-caption {
  display: none;
  margin: 0;

  /* Figma Font Styles */
  color: #fbfbfc;
  font-family: "Montserrat", sans-serif;
  font-size: 1.75rem;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

/* The '.is-active' class shows the current caption */
.hero-caption.is-active {
  display: block;
  text-align: center;
}

/* --- Breakpoints for Caption Layer --- */
@media screen and (min-width: 768px) {
  .hero-caption-container {
    bottom: 60px;
  }

}

@media screen and (min-width: 1200px) {
  .hero-caption-container {
    top: auto;
    left: auto;
    right: -6px;
    bottom: 225px;
    transform: none;
    width: 515px;
  }
  .hero-caption {
    font-size: 2.065rem;
  }
  .hero-caption br {
    display: none;
  }
}
@media screen and (min-width: 1920px) {
      .hero-caption-container{
        width: 705px;
      }
      .hero-caption {
    font-size: 2.85rem;
  }
}