section.tm-classroom-banner {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  width: 100%;
  min-height: clamp(22rem, 36vw, 57rem);
  overflow: hidden;
  margin: 0;
  background: #122d36;
  color: #fff9f2;
}

.tm-classroom-banner::before {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(90deg, #102832f2 0%, #102832d9 17%, #102832bd 30%, #10283245 42%, #10283200 56%),
    url("/brand/home-classroom-rotation.webp") center 20% / cover no-repeat;
  content: "";
}

.tm-classroom-banner__copy {
  max-width: min(34%, 34rem);
  margin-inline-start: min(5vw, 6rem);
  padding: clamp(1.3rem, 3.5vw, 3rem);
}

.tm-classroom-banner__copy h2 {
  margin: 0;
  color: #fff9f2;
  font-size: clamp(1.75rem, 3.1vw, 2.95rem);
  font-weight: 800;
  line-height: 1.55;
  text-wrap: balance;
}

.tm-classroom-banner__copy p {
  max-width: 25rem;
  margin: .8rem 0 0;
  color: #f4e9df;
  font-size: clamp(.92rem, 1.25vw, 1.08rem);
  line-height: 1.9;
}

@media (max-width: 740px) {
  section.tm-classroom-banner {
    align-items: end;
    min-height: auto;
    padding-top: clamp(14.6rem, 64vw, 23.4rem);
  }

  .tm-classroom-banner::before {
    bottom: auto;
    height: clamp(15.5rem, 68vw, 25rem);
    background:
      linear-gradient(180deg, #122d3600 78%, #122d36 100%),
      url("/brand/home-classroom-rotation-mobile.webp") center 26% / cover no-repeat;
  }

  .tm-classroom-banner__copy {
    max-width: none;
    margin-inline-start: 0;
    padding: .8rem 1.2rem 1.5rem;
  }

  .tm-classroom-banner__copy h2 {
    font-size: clamp(1.35rem, 4.8vw, 2rem);
  }

  .tm-classroom-banner__copy p {
    margin-top: .35rem;
  }
}
