/* ==== IMPACT SECTION - FULL CSS ==== */
/* Note: CSS variables are defined globally in style.css */

.ica-impact{ 
  padding: var(--global-padding-desktop);
  background: var(--ica-lavender); /* ICA lavender background */
  height: auto; /* Flexible height */
  min-height: auto; /* No minimum constraint */
  max-height: none; /* No maximum constraint */
  display: flex;
  align-items: center;
  justify-content: center;
  contain: layout; /* CSS containment for better performance */
}

.ica-impact__grid{
  display: grid;
  grid-template-columns: 1fr 1fr; /* 50/50 split */
  gap: clamp(1rem, 1vw, 3rem);
  align-items: center;
  width: 100%;
}

/* Grid order: Content first (left), Media second (right) */
.ica-impact__copy {
  order: 1; /* Content comes first */
}

/* Media/slider */
.ica-impact__media{ 
  position: relative; 
  display: flex;
  justify-content: center;
  align-items: center;
  order: 2; /* Image slider comes second */
  margin: 0; /* Remove default margins */
  padding: 0; /* Remove default padding */
}

/* Image Slider Container - Base styles */
.ica-impact__slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: var(--ica-lavender);
  contain: layout; /* CSS containment for better performance */
}

/* Individual Slides */
.ica-impact__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;
}

.ica-impact__slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 3;
}

.ica-impact__slide.prev {
  opacity: 0;
  transform: scale(1.05);
  z-index: 2;
}

/* Slide Images */
.ica-impact__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.impact-logo{
  position: absolute; 
  left: 50%; 
  top: 50%; 
  transform: translate(-50%, -50%);
  width: 275px;
  height: 101px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
  pointer-events: none;
  z-index: 4;
}

/* Copy column */
.ica-impact__copy .eyebrow{
  font-size: 70px; /* Fixed 70px for all screens */
  font-weight: 300;
  line-height: 1; 
  color: var(--ica-green-deep); 
  margin: 0 0 .6rem;
  font-family: var(--font-heading) !important;
  min-height: 1.1em; /* Prevent layout shift during font load */
}

/* Prevent h2 link color change on hover */
.ica-impact__copy .eyebrow a {
  color: inherit; /* Inherit the green color from parent */
  text-decoration: none; /* Remove underline */
}

.ica-impact__copy .eyebrow a:hover,
.ica-impact__copy .eyebrow a:focus,
.ica-impact__copy .eyebrow a:active {
  color: inherit; /* Keep the same green color on hover/focus/active */
  text-decoration: none; /* No underline on hover */
}

.ica-impact__copy h3{
  font-size: 19px; /* Fixed 19px for desktop screens */
  line-height: 1.3em; 
  margin: .4rem 0 1rem; 
  color: var(--ica-green-deep);
  font-weight: 600;
  font-family: var(--font-ui) !important; /* Termina for impact title */
  letter-spacing: -0.2px; /* looks dense */
  min-height: 1.3em; /* Prevent layout shift during font load */
}

.ica-impact__copy p{ 
  font-family: "roboto-condensed", sans-serif !important;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
  color: var(--ica-text-muted, rgba(0, 0, 0, 0.7));
  margin: 0;
  text-align: justify;
  min-height: 2.6em; /* Prevent layout shift during font load */
}

/* Session info container - parent container */
.session-info-container {
  margin: 1.5rem 0 0 0; /* Top margin from main paragraph */
  display: flex;
  flex-direction: column;
  gap: 1.0rem; /* 1.5rem gap between session info children */
}

/* Session info lines in Termina font - children */
p.session-info {
  font-family: var(--font-ui) !important; /* Termina font */
  font-size: 19px !important;
  font-weight: 600 !important;
  color: var(--ica-green-deep) !important;
  margin: 0 !important; /* No margin on the paragraph itself */
  text-align: left !important;
  display: block !important;
  line-height: 1.3 !important;
  min-height: 1.3em; /* Prevent layout shift during font load */
}

/* CTA Buttons Container - Layout only, styling handled by ica-buttons.css */
.impact-cta-buttons {
  display: flex;
  gap: 2rem;
  margin-top: 1.2rem;
  align-items: flex-start;
}

/* Button Layout - Equal 50/50 space distribution like hero component */
.impact-cta-buttons .btn-ica,
.impact-cta-buttons .btn-ica-white {
  flex: 1 1 0;
  min-width: 0;
  width: 100%;
  text-align: center;
}


/* Desktop - Ensure desktop dimensions */
@media (min-width: 1025px){
  .ica-impact__slider {
    width: 550px !important; /* Desktop width - fixed */
    height: 630px !important; /* Desktop height - fixed */
    aspect-ratio: 550 / 630; /* ~0.87:1 aspect ratio (portrait) */
  }
}

/* Tablet - 100% width (max 500px) with 50vh height */
@media (max-width: 1024px) and (min-width: 768px){
  .ica-impact__slider {
    width: 100% !important;
    max-width: 500px;
    height: 50vh !important; /* 50vh height for tablet */
  }
}

/* Responsive - Mobile only */
@media (max-width: 768px){
  .ica-impact {
    padding: clamp(2rem, 4vw, 3rem) 0;
    margin-top: 1rem; /* Reduced top margin on mobile */
  }
  
  .ica-impact__grid{ 
    grid-template-columns: 1fr; 
    gap: 1.5rem;
  }
  
  /* Reset order on mobile - stack vertically */
  .ica-impact__copy {
    order: 2; /* Content second on mobile */
  }
  
  .ica-impact__media {
    order: 1; /* Image slider first on mobile */
  }
  
  
  /* Mobile slider - 100% width with 40vh height */
  .ica-impact__slider {
    width: 100% !important;
    max-width: 100%;
    height: 40vh !important; /* 40vh height for mobile */
  }
  
  
}

@media (max-width: 560px){
  .ica-impact {
    padding: var(--global-padding-mobile);
    margin-top: 0.5rem; /* Minimal top margin on small mobile */
  }
  
  .ica-impact__grid{
    gap: 1rem;
  }
  
  .impact-logo{ 
    width: 275px;
    height: 101px;
  }
  
  
  /* Small mobile maintains 40vh height */
  .ica-impact__slider {
    height: 40vh;
  }
  
  
}

/* Very small screens */
@media (max-width: 375px){
  .ica-impact {
    padding: 1.5rem 0;
  }
  
  
  .ica-impact__grid {
    gap: 0.75rem;
  }
  
}



/* ===== RESPONSIVE TYPOGRAPHY ===== */

/* Responsive H2 heading font sizes */
@media (max-width: 980px) and (min-width: 900px){
  .ica-impact__copy .eyebrow {
    font-size: 75px; /* H2 heading font size for 900-980px screens */
  }
}

@media (max-width: 950px) and (min-width: 850px){
  .ica-impact__copy .eyebrow {
    font-size: 70px; /* H2 heading font size for 850-950px screens */
  }
}

@media (max-width: 850px) and (min-width: 769px){
  .ica-impact__copy .eyebrow {
    font-size: 65px; /* H2 heading font size for 769-850px screens */
  }
}

@media (max-width: 767px){
  .ica-impact__copy .eyebrow {
    font-size: 70px; /* H2 heading font size for all screens below 767px */
  }
}

@media (max-width: 540px){
  .ica-impact__copy .eyebrow {
    font-size: 70px; /* H2 heading font size for screens below 540px */
  }
}


/* Responsive H3 subheading font sizes */
@media (max-width: 1240px) and (min-width: 1100px){
  .ica-impact__copy h3 {
    font-size: 20px; /* H3 subheading font size for 1100-1240px screens */
  }
}

@media (max-width: 1100px) and (min-width: 778px){
  .ica-impact__copy h3 {
    font-size: 18px; /* H3 subheading font size for 778-1100px screens */
  }
}

@media (max-width: 778px) and (min-width: 769px){
  .ica-impact__copy h3 {
    font-size: 17px; /* H3 subheading font size for 769-778px screens */
  }
}

@media (max-width: 767px){
  .ica-impact__copy h3 {
    font-size: 18px; /* H3 subheading font size for all screens below 767px */
  }
}

@media (max-width: 540px){
  .ica-impact__copy h3 {
    font-size: 16px; /* H3 subheading font size for screens below 540px */
  }
}

