/* ===== IMPACT DANCE HERO COMPONENT ===== */
/* Clean, optimized version following performance best practices */

/* Hero Container */
.hero--impact-dance {
  position: relative;
  padding: var(--global-padding-desktop) 0 !important;
  height: 70vh;
  min-height: 400px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

/* Background Slider */
.hero__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;
  opacity: 0.85;
  width: 100%;
  height: 100%;
  background: linear-gradient(210deg, #17968c 0%, var(--ica-lime) 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: 740px;
  height: 375px;
  max-width: 740px;
  max-height: 352px;
  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;
  color: white;
  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__location {
  font-family: var(--font-ui, "Termina", "Arial Black", sans-serif) !important;
  font-size: 15px;
  color: white;
  text-transform: uppercase;
  font-weight: 600;
  line-height: 1.6em;
  letter-spacing: 1px;
  margin: 0 0 0.25rem 0;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* ===== RESPONSIVE DESIGN ===== */

/* Tablets */
@media (max-width: 768px) {
  .hero--impact-dance {
    height: 60vh;
    min-height: 350px;
  }
  
  .hero__content {
    padding: 1rem;
    max-width: 100%;
  }
  
  .hero__logo img {
    width: 500px;
    height: 220px;
    max-width: 500px;
    max-height: 200px;
  }  
  .hero__location {
    font-size: 13px;
  }
}

/* Mobile */
@media (max-width: 480px) {
  .hero--impact-dance {
    height: 55vh;
    min-height: 250px;
  }
  
  .hero__logo img {
    width: 352px;
    height: 140px;
    max-width: 352px;
    max-height: 140px;
  }
  
  .hero__dates {
    font-size: 22px;
  }
}