/* intro.css — CSS-only infinite scrolling logo marquee with stable spacing */

/* ---------- Reset / Utility ---------- */
*,
*::before,
*::after { box-sizing: border-box; }

.visually-hidden{
  position:absolute!important;
  height:1px;width:1px;overflow:hidden;
  clip:rect(1px,1px,1px,1px);
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  isolation: isolate;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}
.hero-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.hero img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  filter: brightness(0.75);
}
.hero-overlay {
  position: absolute; inset: 0;
  display: grid; place-content: center; gap: 16px;
  text-align: center; color: #fff;
  padding: 0 20px;
}
.hero-overlay h1 { margin: 0; font-size: 2.4rem; font-weight: 900; letter-spacing: .5px; }
.hero-overlay h1 span { color: #aee9ff; }
.hero-overlay p { margin: 0 auto; max-width: 700px; font-size: 1.1rem; }

/* =======================================================================
   UNIVERSITIES — CSS-only infinite marquee
======================================================================= */

.universities { padding: 28px 0; }

.logos {
  overflow: hidden;
  padding: 24px 0;
  background: #fff;
  position: relative;
}

/* Edge fades */
.logos::before,
.logos::after {
  content: "";
  position: absolute;
  top: 0; width: 120px; height: 100%;
  z-index: 2; pointer-events: none;
}
.logos::before { left: 0;  background: linear-gradient(to right, #fff, transparent); }
.logos::after  { right: 0; background: linear-gradient(to left,  #fff, transparent); }

/* Track holds both slides side-by-side and is what we animate.
   translateX(-50%) = exactly one slide width, always correct. */
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}

.logos-track {
  display: flex;
  width: max-content;
  animation: marquee 35s linear infinite;
  will-change: transform;
}
.logos-track:hover { animation-play-state: paused; }

.logos-slide {
  display: flex;
  align-items: center;
  gap: clamp(28px, 4vw, 56px);
  padding: 0 clamp(14px, 2vw, 28px);
}

.logos-slide img {
  display: block;
  height: clamp(44px, 6vw, 80px);
  width: auto;
  flex: 0 0 auto;
  filter: grayscale(1);
  opacity: 0.85;
  transition: filter .2s, opacity .2s, transform .2s;
}
.logos-slide img:hover {
  filter: none;
  opacity: 1;
  transform: scale(1.05);
}

/* =======================================================================
   Impact band
======================================================================= */
.impact { background: #0fa6d7; color: #fff; padding: 32px 0; }
.impact-grid {
  display: grid;
  grid-template-columns: 1.2fr repeat(3, 1fr);
  gap: 22px;
  align-items: start;
  max-width: 1150px;
  margin: 0 auto;
  padding: 0 20px;
}
.impact-title h3 { margin: 0; font-size: 1.6rem; line-height: 1.2; }
.impact-stat{
  background: rgba(255,255,255,.08);
  border-radius: 18px;
  padding: 18px;
  text-align: center;
}
.impact-stat .num{ font-size: 1.8rem; font-weight: 900; }
.impact-stat .label{ opacity: .95; margin-bottom: .35rem; font-weight: 600; }

/* =======================================================================
   Partners
======================================================================= */
#partners{ padding: 56px 20px; }
#partners h3{ text-align: center; margin-bottom: 32px; font-size: 1.8rem; }
.card-grid{
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 22px;
  max-width: 1150px;
  margin: 0 auto;
}
.card{
  background: #fff;
  border: 1px solid #eef2f5;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,.08);
  transition: transform .2s ease;
}
.card:hover{ transform: translateY(-4px); }
.card img{ width: 100%; display: block; aspect-ratio: 16/10; object-fit: cover; }
.card-body{ padding: 14px 16px; }
.card-body h4{ margin: 0 0 8px; font-size: 1.2rem; }
.card-body p{ font-size: .95rem; line-height: 1.4; color: #444; }

/* ---------- Responsive for impact/partners ---------- */
@media (max-width: 960px) {
  .impact-grid{ grid-template-columns: 1fr 1fr; }
  .impact-title{ grid-column: 1 / -1; margin-bottom: 12px; text-align: center; }
  .card-grid{ grid-template-columns: repeat(2,1fr); }
}
@media (max-width: 600px) {
  .impact-grid{ grid-template-columns: 1fr; }
  .card-grid{ grid-template-columns: 1fr; }
}

