/* ==== SCHOOL SECTION - FULL CSS ==== */
/* Note: CSS variables are defined globally in style.css */

.ica-school{ 
  padding: var(--global-padding-desktop) 0;
  background: var(--ica-bg); 
  display: flex;
  align-items: center;
  justify-content: center;
  contain: layout;
}



.ica-school__grid{
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: var(--global-gap-desktop);
  align-items: center;
}

.ica-school__media {
  position: relative; 
  display: flex;
  margin: 0;
}

/* Button Layout - Visual styling handled by ica-buttons.css */
 .btn-ica-lime {
  font-size: 16px;
  margin-top: 1rem;

  text-align: center;
}


.ica-school__slider {
  position: relative;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  background: var(--ica-bg);
  transition: height 0.3s ease-out;
}

.ica-school__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.05);
  transition: opacity 0.8s ease-out, transform 0.8s ease-out;
  z-index: 1;
}

.ica-school__slide.active {
  opacity: 1;
  transform: scale(1);
  z-index: 3;
}

.ica-school__slide.prev {
  opacity: 0;
  transform: scale(1.05);
  z-index: 2;
}

.ica-school__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Placeholder fallback when no images provided */
.ica-school__placeholder {
  width: 100%;
  height: 100%;
  min-height: 300px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ica-bg);
  border: 2px dashed var(--ica-green-deep);
  border-radius: 18px;
}

.ica-school__placeholder-content {
  text-align: center;
  color: var(--ica-green-deep);
}

.ica-school__placeholder-icon {
  font-size: 3rem;
  display: block;
  margin-bottom: 1rem;
}

.ica-school__placeholder-content p {
  font-family: var(--font-ui);
  font-size: 1.1rem;
  margin: 0;
}


.school-logo{
  position: absolute; 
  left: 50%; 
  top: 50%; 
  transform: translate(-50%, -50%);
  width: 250px;
  height: 118px;
  filter: drop-shadow(0 6px 14px rgba(0,0,0,.25));
  pointer-events: none;
  z-index: 4;
}

.ica-school__copy .eyebrow{
  font-size: 70px;
  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-school__copy .eyebrow a {
  color: inherit; /* Inherit the green color from parent */
  text-decoration: none; /* Remove underline */
}

.ica-school__copy .eyebrow a:hover,
.ica-school__copy .eyebrow a:focus,
.ica-school__copy .eyebrow a:active {
  color: inherit; /* Keep the same green color on hover/focus/active */
  text-decoration: none; /* No underline on hover */
}

.ica-school__copy h3{
  font-size: 24px;
  line-height: 1.3em;
  margin: .4rem 0 1rem;
  color: var(--ica-green-deep);
  font-weight: 700;
  font-family: var(--font-ui) !important;
  text-transform: none;
  min-height: 1.3em; /* Prevent layout shift during font load */
}

.ica-school__copy p{ 
  font-family: "roboto-condensed", sans-serif;
  font-size: 20px;
  line-height: 1.3;
  font-weight: 400;
  color: var(--ica-green-deep);
  margin: 0 0 1rem 0;
  text-align: justify;
  min-height: 2.6em; /* Prevent layout shift during font load */
}


@media (min-width: 1025px){
  .ica-school__slider {
    width: 530px !important;
    height: 450px !important;
  }
}


@media (max-width: 1024px) and (min-width: 768px){
  .ica-school__slider {
    width: 100% !important;
    max-width: 500px;
    height: 50vh !important;
  }
}

@media (max-width: 850px) and (min-width: 769px){
  .ica-school__copy .eyebrow {
    font-size: 65px;
  }
}


@media (max-width: 767px){
  .ica-school__grid{ 
    grid-template-columns: 1fr;
  }
  
  .ica-school__slider {
    width: 100% !important;
    height: 40vh !important;
  }
  
  .ica-school .section__inner--wide {
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
  
}


@media (max-width: 560px){
  .ica-school {
    padding: var(--global-padding-mobile);
  }
  
  .ica-school__grid{
    gap: var(--global-gap-mobile);
  }
  
  .school-logo{ 
    width: 180px;
    height: 85px;
  }
}

@media (max-width: 480px){
  .ica-school__copy h3 {
    font-size: 17px;
  }
}

@media (min-width: 481px) and (max-width: 560px){
  .ica-school__copy h3 {
    font-size: 18px;
  }
}

@media (min-width: 561px) and (max-width: 599px){
  .ica-school__copy h3 {
    font-size: 20px;
  }
}

@media (min-width: 600px) and (max-width: 767px){
  .ica-school__copy h3 {
    font-size: 22px;
  }
}

@media (min-width: 768px) and (max-width: 830px){
  .ica-school__copy h3 {
    font-size: 17px;
  }
}

@media (min-width: 831px) and (max-width: 930px){
  .ica-school__copy h3 {
    font-size: 19px;
  }
}

@media (min-width: 931px) and (max-width: 960px){
  .ica-school__copy h3 {
    font-size: 21px;
  }
}

@media (min-width: 961px) and (max-width: 1024px){
  .ica-school__copy h3 {
    font-size: 22px;
  }
}

@media (min-width: 1025px) and (max-width: 1199px){
  .ica-school__copy h3 {
    font-size: 18px;
  }
}

@media (min-width: 1200px){
  .ica-school__copy h3 {
    font-size: 20px;
  }
}

