.school-video {
  padding-top: 96px;
  padding-bottom: 108px;
  background: #f7fbf6;
}

.school-video-layout {
  display: grid;
  grid-template-columns: minmax(280px, .58fr) minmax(0, 1.12fr);
  gap: clamp(40px, 6vw, 84px);
  align-items: center;
  max-width: 1180px;
}

.school-video-intro {
  position: relative;
  padding: 10px 0;
}

.school-video-label {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 20px;
  color: var(--green);
  font-family: "Nunito", "Noto Sans TC", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
}

.school-video-label::after {
  content: "";
  width: 52px;
  height: 4px;
  border-radius: 999px;
  background: var(--lime);
}

.school-video-intro h2 {
  max-width: 420px;
  margin-bottom: 20px;
  font-size: 48px;
}

.school-video-intro > p:not(.school-video-label) {
  max-width: 430px;
  margin-bottom: 0;
  color: var(--muted);
  font-size: 17px;
}

.school-video-buds {
  display: block;
  width: 102px;
  height: auto;
  margin: 20px 8px 0 auto;
}

.school-video-frame {
  position: relative;
  width: 100%;
  max-width: 760px;
  justify-self: end;
  padding: 10px;
  overflow: hidden;
  border: 1px solid var(--mint-line);
  border-top: 5px solid var(--fresh);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 48px rgba(6, 59, 44, .08);
}

.school-video-link {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  border-radius: 6px;
  background: #000;
  color: inherit;
  text-decoration: none;
}

.school-video-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .18s ease, transform .18s ease;
}

.school-video-link::after {
  position: absolute;
  inset: 0;
  background: rgba(6, 59, 44, .06);
  content: "";
  transition: background .18s ease;
}

.school-video-play {
  position: absolute;
  top: 50%;
  left: 50%;
  z-index: 1;
  display: grid;
  width: 82px;
  height: 82px;
  place-items: center;
  border: 3px solid rgba(255, 255, 255, .9);
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  box-shadow: 0 12px 32px rgba(6, 59, 44, .2);
  transform: translate(-50%, -50%);
  transition: background .18s ease, box-shadow .18s ease, transform .18s ease;
}

.school-video-play span {
  width: 0;
  height: 0;
  margin-left: 5px;
  border-top: 15px solid transparent;
  border-bottom: 15px solid transparent;
  border-left: 23px solid var(--ink);
}

.school-video-link:hover img {
  filter: brightness(.9);
  transform: scale(1.015);
}

.school-video-link:hover::after {
  background: rgba(6, 59, 44, .16);
}

.school-video-link:hover .school-video-play {
  background: #fff;
  box-shadow: 0 14px 36px rgba(6, 59, 44, .26);
  transform: translate(-50%, -50%) scale(1.04);
}

.school-video-link:focus-visible {
  outline: 4px solid var(--lime);
  outline-offset: 5px;
}

.school-video-link:focus-visible .school-video-play {
  background: #fff;
}

@media (max-width: 920px) {
  .school-video-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .school-video-intro {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 92px;
    column-gap: 24px;
  }

  .school-video-label,
  .school-video-intro h2,
  .school-video-intro > p:not(.school-video-label) {
    grid-column: 1;
  }

  .school-video-buds {
    grid-column: 2;
    grid-row: 1 / span 3;
    align-self: end;
    width: 92px;
    margin: 0;
  }

  .school-video-frame {
    max-width: none;
  }
}

@media (max-width: 760px) {
  .school-video {
    padding-top: 72px;
    padding-bottom: 78px;
  }

  .school-video-layout {
    gap: 26px;
  }

  .school-video-intro {
    grid-template-columns: minmax(0, 1fr) 72px;
    column-gap: 16px;
    padding: 0;
  }

  .school-video-label {
    margin-bottom: 14px;
    font-size: 12px;
  }

  .school-video-intro h2 {
    margin-bottom: 16px;
    font-size: 34px;
  }

  .school-video-intro > p:not(.school-video-label) {
    grid-column: 1 / -1;
    font-size: 16px;
  }

  .school-video-buds {
    grid-row: 1 / span 2;
    width: 72px;
  }

  .school-video-frame {
    padding: 6px;
    border-top-width: 4px;
  }

  .school-video-play {
    width: 64px;
    height: 64px;
  }

  .school-video-play span {
    border-top-width: 12px;
    border-bottom-width: 12px;
    border-left-width: 19px;
  }
}
