/* ===== IMPACT DANCE BANNER COMPONENT ===== */

/* Banner Container */
.banner--impact-dance {
  width: 100%;
  overflow: hidden;
}

/* Individual Banner Sections */
.banner__container {
  width: 100%; /* stay within parent */
  padding: 5rem 0;
  display: block; /* Remove flexbox centering - let inner container handle layout */
  text-align: center;
}

/* Sale Banner (First Container) */
.banner__container--sale {
  background-color: var(--ica-mint);
  color: var(--ica-green-deep);
}

/* Shared section inner styling */
.banner__container--sale .section__inner--wide,
.banner__container--intro .section__inner--wide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
  height: 100%; /* Take full height of parent */
  display: flex;
  align-items: center; /* Center content vertically */
}

.banner__container--sale .banner__title {
  color: var(--ica-green-deep);
  margin: 0 auto 0.375rem auto; /* zero top, minimal bottom */
  display: block;
  width: fit-content;
  text-align: center;
  font-family: var(--font-heading);
  font-size: 48px;
  font-weight: 400;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
}

.banner__title-highlight {
  font-size: 48px;
  font-weight: 300;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0) 50%, rgba(255, 255, 255, 0.5) 50%);
  background-size: 100% 100%;
  background-repeat: no-repeat;
  display: inline;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
  text-transform: none; /* Override parent's uppercase */
}


.banner__container--sale .banner__button {
  margin: 1rem auto 0 auto;
  display: inline-block;
  text-align: center;
}

/* Program Intro Banner (Second Container) */
.banner__container--intro {
  background-color: var(--ica-green-deep);
  color: var(--ica-bg);
}

/* Ensure inner content is truly centered and constrained */
.banner__content {
  width: 100%;
  max-width: 900px;
  margin: 0 auto;
}

.banner__container--intro .banner__title {
  color: var(--ica-lime);
  font-family: var(--font-ui, "Termina", "Arial Black", sans-serif) !important;
  font-size: 32px;
  font-weight: 600;
  line-height: 1.2;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  text-transform: uppercase;
}

.banner__container--intro .banner__description {
  font-family: var(--font-body, "roboto-condensed", system-ui, sans-serif) !important;
  font-size: 26px;
  font-weight: 400;
  line-height: 1.5;
  max-width: 900px;
  text-align: center;
  margin: 0 auto 1.5rem auto; /* center the block itself and add bottom margin */
}

.banner__container--intro .banner__description strong {
  font-family: var(--font-ui, "Termina", "Arial Black", sans-serif) !important;
  text-transform: uppercase;
}



/* Large Tablets */
@media (max-width: 1200px) {
  
  
  
  .banner__container--intro .banner__description {
    font-size: 25px;
    max-width: 650px;
  }
  
  .banner__container--sale .section__inner--wide,
  .banner__container--intro .section__inner--wide {
    padding: 0 1.5rem;
  }
}

/* Tablets */
@media (max-width: 768px) {
  .banner__container {
    padding: 3rem 0;
  }
  
  
  
  .banner__container--intro .banner__description {
    font-size: 24px;
    max-width: 600px;
  }
  
  .banner__container--sale .section__inner--wide,
  .banner__container--intro .section__inner--wide {
    padding: 0 1.5rem;
  }
  
}

/* Mobile */
@media (max-width: 480px) {
  .banner__container {
    padding: 3rem 0;
  }
  
  
  .banner__container--sale .banner__title {
    font-size: 38px;
  }
  
  .banner__title-highlight {
    font-size: 34px;
  }
  
  .banner__container--intro .banner__description {
    font-size: 21px;
    max-width: 550px;
  }
  
  .banner__container--sale .section__inner--wide,
  .banner__container--intro .section__inner--wide {
    padding: 0 1.5rem;
  }
  
}

/* ===== ANIMATIONS ===== */

/* Banner Content Animations - Immediate Load for SEO */
.banner--impact-dance .banner__title {
  animation: bannerTextFadeIn 1s ease-out 0.1s both;
}


.banner--impact-dance .banner__button {
  animation: bannerTextFadeIn 1s ease-out 0.3s both;
}

/* Keyframe Animations */
@keyframes bannerTextFadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ===== PERFORMANCE OPTIMIZATIONS ===== */

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .banner--impact-dance .banner__title,
  .banner--impact-dance .banner__button {
    animation: none;
  }
}

/* Optimize for GPU acceleration */
.banner--impact-dance .banner__title,
.banner--impact-dance .banner__button {
  will-change: transform, opacity;
}
