/* ==== IMPACT PROGRAM OVERVIEW SECTION ==== */

.ica-overview {
  padding: clamp(2.2rem, 4vw, 3.6rem) 0;
  background: var(--ica-bg);
  margin-top: 2rem;
}

/* Fade-in Animation Styles */
.ica-overview__copy {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ica-overview__copy.animate-in {
  opacity: 1;
  transform: translateY(0);
}

.ica-overview__media {
  margin: 12px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

.ica-overview__media.animate-in {
  opacity: 1;
  transform: translateY(0);
}

/* Staggered animation delays */
.ica-overview__copy.animate-in {
  transition-delay: 0.1s;
}

.ica-overview__media.animate-in {
  transition-delay: 0.3s;
}

/* Respect user's motion preferences */
@media (prefers-reduced-motion: reduce) {
  .ica-overview__copy,
  .ica-overview__media {
    opacity: 1;
    transform: none;
    transition: none;
  }
}

/* Add base horizontal spacing for the section content */
.ica-overview .section__inner--wide {
  padding-left: clamp(2rem, 5vw, 3rem);
  padding-right: clamp(2rem, 5vw, 3rem);
}

.ica-overview__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(0, 1fr); /* 55/45 layout */
  gap: clamp(2rem, 4vw, 3rem);
  align-items: center;
  width: 100%;
}

/* Content section */
.ica-overview__copy {
  order: 1;
  max-width: 600px;
}

/* Media section */
.ica-overview__media {
  order: 2;
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  contain: layout style;
}

/* Image Slider Container */
.ica-overview__slider {
  position: relative;
  width: 100%;
  aspect-ratio: 9 / 12;
  border-radius: 18px;
  overflow: hidden;
  filter: drop-shadow(0 10px 30px rgba(0, 0, 0, 0.15));
  background: var(--ica-bg);
  cursor: grab;
  user-select: none;
  transition: transform 0.2s ease;
  contain: layout style paint;
}

.ica-overview__slider:active {
  cursor: grabbing;
  transform: scale(0.98);
}

/* Individual Slides */
.ica-overview__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 1.2s cubic-bezier(0.4, 0, 0.2, 1), transform 1.2s cubic-bezier(0.4, 0, 0.2, 1);
  z-index: 1;
  /* will-change: opacity, transform; - Removed for better performance */
}

/* Active slide state */
.ica-overview__slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 3;
}


/* Slide Images */
.ica-overview__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  border-radius: 18px;
}

/* Fallback Placeholder */
.ica-overview__placeholder {
  width: 100%;
  aspect-ratio: 9 / 12;
  background: var(--ica-bg);
  border: 2px dashed rgba(0, 0, 0, 0.2);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  color: rgba(0, 0, 0, 0.5);
}

/* Placeholder content */
.ica-overview__placeholder-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1rem;
}

/* Placeholder icon */
.ica-overview__placeholder-icon {
  font-size: 3rem;
  opacity: 0.5;
}

/* Logo Overlay */
.overview-logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: clamp(200px, 30vw, 200px);
  height: auto;
  filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.3));
  pointer-events: none;
  z-index: 4;
  object-fit: contain;
}

/* Eyebrow heading */
.ica-overview__copy .eyebrow {
  font-family: var(--font-heading);
  font-size: 39px;
  font-weight: 300;
  line-height: 1.1;
  color: var(--ica-green-deep);
  margin: 0 0 clamp(1.5rem, 3vw, 2rem);
  font-display: swap;
}

/* Description text */
.ica-overview__description {
  font-weight: 500;
  font-family: var(--font-ui) !important;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ica-text-muted, rgba(0, 0, 0, 0.7));
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

/* Features intro */
.ica-overview__features-intro {
  font-family: var(--font-ui) !important;
  font-size: 24px;
  font-weight: 600;
  color: var(--ica-green-deep);
  margin: 0 0 clamp(1rem, 2vw, 1.5rem);
}

/* Features list */
.ica-overview__features {
  margin: 0 0 clamp(2rem, 4vw, 3rem);
  padding-left: 1.5rem;
}

/* Features list items */
.ica-overview__features li {
  font-family: var(--font-body) !important;
  font-size: 20px;
  line-height: 1.5;
  color: var(--ica-text-muted, rgba(0, 0, 0, 0.7));
  margin: 0 0 clamp(0.5rem, 1vw, 0.5rem);
  font-display: swap;
}

/* Conclusion text */
.ica-overview__conclusion {
  font-weight: 500;
  font-family: var(--font-ui) !important;
  font-size: 14px;
  line-height: 1.6;
  color: var(--ica-text-muted, rgba(0, 0, 0, 0.7));
  margin: 0 0 clamp(2rem, 4vw, 3rem);
}

/* Responsive Design */
@media (max-width: 340px) {
  .ica-overview__copy .eyebrow {
    font-size: 30px;
  }
  
  .ica-overview__features li {
    font-size: 18px;
  }
}

@media (min-width: 341px) and (max-width: 480px) {
  .ica-overview__copy .eyebrow {
    font-size: 40px;
  }
  
  .ica-overview__features-intro {
    font-size: 21px;
  }
  
  .ica-overview__features li {
    font-size: 18px;
  }
}

@media (min-width: 481px) and (max-width: 768px) {
  .ica-overview__copy .eyebrow {
    font-size: 58px;
  }
}

@media (min-width: 769px) {
  .ica-overview__copy .eyebrow {
    font-size: 55px;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  /* Tablet: 9:16 ratio */
  .ica-overview .ica-overview__slider,
  .ica-overview .ica-overview__placeholder {
    aspect-ratio: 9 / 16 !important;
    width: 100% !important;
    height: auto !important;
  }
}

@media (max-width: 768px) {
  .ica-overview {
    padding: clamp(2rem, 4vw, 3rem) 0;
  }
  
  /* Remove horizontal padding on mobile for full-width slider */
  .ica-overview .section__inner--wide {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }
  
  .ica-overview__grid {
    grid-template-columns: 1fr;
    gap: clamp(2rem, 4vw, 3rem);
  }
  
  .ica-overview__copy {
    max-width: none;
    padding: 0 clamp(2rem, 5vw, 3rem); /* Add padding back to content only */
  }
  
  /* Mobile: 4:3 ratio */
  .ica-overview .ica-overview__slider,
  .ica-overview .ica-overview__placeholder {
    aspect-ratio: 4 / 3 !important;
  }
  
  .overview-logo {
    width: clamp(200px, 30vw, 200px);
  }
}

@media (max-width: 480px) {
  .ica-overview__features {
    padding-left: 1rem;
  }
}
