/* V13 · Logo spotlight: continuous scroll with a restrained interactive hover/focus. */
/* Extra breathing room prevents the enlarged tile from being clipped vertically. */
.logo-section .marquee-viewport,
.school-section .marquee-viewport {
  padding-top: 24px;
  padding-bottom: 30px;
}
.logo-section .marquee-group,
.school-section .marquee-group { gap: 22px; padding-right: 22px; }
.logo-section .marquee-brand,
.school-section .marquee-brand {
  isolation: isolate;
  position: relative;
  z-index: 0;
  transform: translateZ(0) scale(1);
  transform-origin: center center;
  border: 1px solid #284b65;
  box-shadow: 0 5px 16px rgba(0, 0, 0, .17);
  transition: transform .26s cubic-bezier(.18,.7,.23,1.2),
              box-shadow .26s ease,
              border-color .24s ease,
              background-color .24s ease;
  cursor: default;
  outline-offset: 3px;
}
.logo-section .marquee-brand::before,
.school-section .marquee-brand::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  opacity: 0;
  background: linear-gradient(115deg, transparent 15%, rgba(80, 194, 255, .12) 42%, transparent 66%);
  transition: opacity .25s ease;
}
.logo-section .marquee-brand:is(:hover, :focus-visible),
.school-section .marquee-brand:is(:hover, :focus-visible) {
  z-index: 4;
  transform: translateY(-3px) scale(1.075);
  border-color: #38baff;
  background: #1b405a;
  box-shadow: 0 0 0 1px rgba(69, 190, 255, .34),
              0 0 28px 5px rgba(19, 162, 255, .37),
              0 16px 28px rgba(0, 7, 20, .48);
}
.logo-section .marquee-brand:is(:hover, :focus-visible)::before,
.school-section .marquee-brand:is(:hover, :focus-visible)::before { opacity: 1; }
.logo-section .marquee-brand .marquee-logo,
.school-section .marquee-brand .marquee-logo { transition: background-color .22s ease; }
.logo-section .marquee-brand:is(:hover, :focus-visible) .marquee-logo,
.school-section .marquee-brand:is(:hover, :focus-visible) .marquee-logo { background-color: #fff; }
.logo-section .marquee-brand img,
.school-section .marquee-brand img { transition: transform .25s ease, filter .25s ease; }
.logo-section .marquee-brand:is(:hover, :focus-visible) img,
.school-section .marquee-brand:is(:hover, :focus-visible) img {
  transform: scale(1.035);
  filter: brightness(1.07) saturate(1.11);
}
.school-section .marquee-brand .school-label { transition: color .25s ease, text-shadow .25s ease; }
.school-section .marquee-brand:is(:hover, :focus-visible) .school-label {
  color: #fff;
  text-shadow: 0 0 10px rgba(55, 186, 255, .85);
}
/* Keep the carousel running until a visitor explores a logo. Existing marquee
   behavior pauses on hover/focus, then resumes on exit. */
@media(max-width:760px) {
  .logo-section .marquee-viewport,
  .school-section .marquee-viewport { padding-top: 18px; padding-bottom: 22px; }
  .logo-section .marquee-group,
  .school-section .marquee-group { gap: 15px; padding-right: 15px; }
  .logo-section .marquee-brand:is(:hover, :focus-visible),
  .school-section .marquee-brand:is(:hover, :focus-visible) { transform: translateY(-2px) scale(1.055); }
}
@media(prefers-reduced-motion:reduce) {
  .logo-section .marquee-brand,
  .school-section .marquee-brand,
  .logo-section .marquee-brand img,
  .school-section .marquee-brand img { transition: none; }
}
