/* ===== IMPACT MT summer HERO COMPONENT ===== */
/* Clean, optimized version following performance best practices */

/* Hero Container */
.hero--impact-mt-summer,
.hero--impact-mt-winter {
  position: relative;
  padding: var(--global-padding-desktop) 0;
  min-height: 70vh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background Slider */
.hero__background-slider {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Individual Slides */
.hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 0.5s ease-in-out; /* Smooth slider transitions */
  /* Performance: Optimize background image rendering */
  background-attachment: scroll;
  will-change: opacity;
  /* Prevent layout shifts during image loading */
  min-height: 100%;
  /* Performance: Use GPU acceleration */
  transform: translateZ(0);
  backface-visibility: hidden;
}

/* Loading state for background images */
.hero__slide[data-background] {
  background-color: #f0f0f0;
  background-image: linear-gradient(45deg, #f0f0f0 25%, transparent 25%), 
                    linear-gradient(-45deg, #f0f0f0 25%, transparent 25%), 
                    linear-gradient(45deg, transparent 75%, #f0f0f0 75%), 
                    linear-gradient(-45deg, transparent 75%, #f0f0f0 75%);
  background-size: 20px 20px;
  background-position: 0 0, 0 10px, 10px -10px, -10px 0px;
}

/* First slide with real <img> tag for LCP optimization */
.hero__slide:first-child img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  image-rendering: -webkit-optimize-contrast;
  image-rendering: crisp-edges;
  aspect-ratio: 16/9;
}

/* Active Slide */
.hero__slide.active {
  opacity: 1;
}

/* Background Overlay */
.hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(210deg, rgba(207, 173, 209, 0.85) 0%, rgba(23, 150, 140, 0.85) 100%);
  z-index: 2;
}

/* Hero Content */
.hero__content {
  position: relative;
  z-index: 3;
  text-align: center;
  color: white;
  max-width: 800px;
  padding: 2rem;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

/* Logo */
.hero__logo {
  margin-bottom: 1rem;
  text-align: center;
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
}

.hero__logo img {
  width: 700px;
  height: 310px;
  max-width: 700px;
  max-height: 310px;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  margin: 0 auto;
  flex-shrink: 0;
}

/* Program Details */
.hero__details {
  text-align: center;
  width: 100%;
}

.hero__dates {
  font-family: var(--font-ui, "Termina", "Arial Black", sans-serif) !important;
  font-size: 28px;
  text-transform: uppercase;
  line-height: 1.2em;
  margin: 0 0 0.5rem 0;
  font-weight: 600;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.hero__time, 
.hero__location {
  font-family: var(--font-ui, "Termina", "Arial Black", sans-serif) !important;
  font-size: 15px;
  text-transform: uppercase;
  font-weight: 600 !important;
  line-height: 1.6em;
  letter-spacing: 1px;
  margin: 0 0 0.25rem 0;
  font-weight: 500;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* CTA Button */
.hero__cta {
  margin-top: 2rem;
  text-align: center;
}

/* Hero Again specific button styling */
#hero-again .hero__cta .btn-ica-white {
  font-size: 15px !important;
  border-style: solid !important;
  border-width: 2px 2px 2px 2px !important;
  border-color: #1E312F !important;
  border-radius: 0px 0px 0px 0px !important;
  box-shadow: -6px 6px 0px 1px rgba(29.99999999999996, 48.99999999999993, 46.999999999999936, 0.45) !important;
  letter-spacing: 1px !important;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Large Tablets */
@media (max-width: 1200px) {
  .hero--impact-mt-summer,
  .hero--impact-mt-winter {
    height: 60vh;
    min-height: 350px;
  }
  .hero__time, 
  .hero__location {
    font-size: 14px;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .hero--impact-mt-summer,
  .hero--impact-mt-winter {
    height: 60vh;
    min-height: 350px;
  }
  
  .hero__content {
    padding: 1rem;
    max-width: 100%;
  }
  
  .hero__logo img {
    width: 500px;
    height: 250px;
    max-width: 500px;
    max-height: 250px;
  }  
  .hero__time, 
  .hero__location {
    font-size: 12px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero--impact-mt-summer,
  .hero--impact-mt-winter {
    min-height: 250px;
    padding: var(--global-padding-mobile) !important;
  }
  
  .hero__logo img {
    width: 380px;
    height: 200px;
    max-width: 380px;
    max-height: 200px;
  }
  
  .hero__dates {
    font-size: 18px;
  }
}