/**
 * Hero Section Styles for The School Page
 * Component: IcaHero-school
 * Page: The School
 * Self-contained CSS - only uses global fonts and colors
 */

/* ===== School Hero Section ===== */
.school-hero {
  position: relative;
  height: 60vh;
  min-height: 400px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--ica-green-deep);
  contain: layout style paint;
}

/* Background Slider Container */
.school-hero__background {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}

/* Individual Background Slides */
.school-hero__slide {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  transition: opacity 1.5s ease-in-out;
  z-index: 1;
  aspect-ratio: 16/9;
  will-change: opacity;
  contain: layout style paint;
}

.school-hero__slide.active {
  opacity: 1;
  z-index: 2;
}

.school-hero__slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  will-change: transform;
  contain: layout style paint;
}

/* Background Overlay Gradient */
.school-hero__overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  z-index: 3;
  background: linear-gradient(320deg, #17968C 0%, #DCF4EF 100%);
  opacity: 0.75;
}

/* Content Container */
.school-hero__content {
  position: relative;
  z-index: 4;
  text-align: center;
  color: var(--ica-green-deep);
  max-width: 800px;
  margin: 0 auto;
  padding: 0 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 100%;
  pointer-events: none;
}

/* Logo container with pointer events */
.school-hero__logo {
  display: flex;
  justify-content: center;
  align-items: center;
  pointer-events: auto;
  aspect-ratio: 1/1;
  /* Add subtle glow effect for prominence */
  filter: drop-shadow(0 0 20px rgba(255, 255, 255, 0.3));
}

.school-hero__logo img {
  width: auto;
  height: 160px;
  object-fit: contain;
  opacity: 1;
  filter: brightness(1.1) contrast(1.2) drop-shadow(0 4px 12px rgba(0, 0, 0, 0.3));
  will-change: filter;
  contain: layout style paint;
}

/* ===== Responsive Design ===== */

/* Tablet Breakpoint */
@media (max-width: 1024px) {
  .school-hero {
    height: 50vh;
    min-height: 400px;
  }
  
  .school-hero__logo img {
    height: 120px;
  }
}

/* Mobile Breakpoint */
@media (max-width: 768px) {
  .school-hero {
    height: 45vh;
    min-height: 350px;
  }
  
  .school-hero__content {
    padding: 0 1.5rem;
  }
  
  .school-hero__logo img {
    height: 100px;
  }
}

/* Small Mobile Breakpoint */
@media (max-width: 480px) {
  .school-hero {
    height: 40vh;
    min-height: 300px;
  }
  
  .school-hero__content {
    padding: 0 1rem;
  }
  
  .school-hero__logo img {
    height: 80px;
  }
}

/* ===== Accessibility & Motion Preferences ===== */
@media (prefers-reduced-motion: reduce) {
  .school-hero__slide {
    transition: none;
  }
}

/* ===== Print Styles ===== */
@media print {
  .school-hero {
    height: auto;
    min-height: auto;
    background: none !important;
  }
  
  .school-hero__background,
  .school-hero__overlay {
    display: none;
  }
  
  .school-hero__content {
    color: var(--ica-green-deep) !important;
  }
}
