.school-scroller {
  border-radius: 10px;
  overflow: hidden;
}

.scroller-header {
  padding: 30px;
}

.school-scroller .scroller {
  aspect-ratio: 1/1.25;
  overflow: hidden;
}

.school-scroller .scroller .schools {
  font-size: 18px;
  color: var(--color-purple);
  line-height: 40px;
  text-align: center;
}

.school-scroller .scroller:before {
  content: '';
  display: block;
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(
    to bottom,
    rgba(243, 243, 243, 1) 0%,
    rgba(243, 243, 243, 0) 100%
  );
  z-index: 1;
}

.school-scroller .scroller:after {
  content: '';
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 20%;
  background: linear-gradient(
    to bottom,
    rgba(243, 243, 243, 0) 0%,
    rgba(243, 243, 243, 1) 100%
  );
  z-index: 1;
}

.school-scroller.bg-yellow .scroller:before {
  background: linear-gradient(
    to bottom,
    rgba(254, 206, 62, 1) 0%,
    rgba(254, 206, 62, 0) 100%
  );
}

.school-scroller.bg-yellow .scroller:after {
  background: linear-gradient(
    to bottom,
    rgba(254, 206, 62, 0) 0%,
    rgba(254, 206, 62, 1) 100%
  );
}

.schools-section .flex-container {
  gap: 48px;
}

.schools-section .flex-container .school-scroller {
  flex-basis: calc(50% - 24px);
}

@media (min-width: 960px) {
  .school-scroller .scroller {
    aspect-ratio: 1/0.88;
    overflow: hidden;
    max-height: 540px;
    width: calc(100% - 72px);
    margin-left: 72px;
  }

  .school-scroller {
    position: relative;
  }

  .school-scroller:before {
    content: '';
    display: block;
    position: absolute;
    z-index: 2;
    left: 70px;
    top: 0;
    height: 100%;
    width: 1px;
    background: var(--color-purple);
  }

  .scroller-header {
    padding: 42px 30px 42px 120px;
  }

  .school-scroller .pf24,
  .signup-card .pf24 {
    position: absolute;
    top: 91px;
    left: 24px;
    width: 7.5px;
  }

  .school-scroller .color-dot,
  .signup-card .color-dot {
    position: absolute;
    top: 46px;
    left: 21px;
    width: 14px;
    aspect-ratio: 1/1;
    background: var(--color-accent-teal);
    border-radius: 999px;
  }

  .school-scroller .card-text {
    position: absolute;
    z-index: 1;
    top: 4.6%;
    left: 54%;
    bottom: 4.6%;
    right: 4.6%;
    display: flex;
    flex-flow: column;
    align-items: flex-start;
    justify-content: space-between;
  }

  .school-scroller .side-text {
    font-size: 18px;
    color: var(--color-purple);
    position: absolute;
    z-index: 2;
    transform-origin: bottom left;
    left: 45px;
    bottom: 35px;
    transform: rotate(-90deg);
  }

  .students-lower {
    flex-flow: column;
    flex-direction: column-reverse;
  }

  .school-scroller .scroller .schools {
    font-size: 24px;
    line-height: 50px;
  }
}

.students-lower .form-group {
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}

@media (min-width: 1200px) {
  .school-scroller .scroller {
    width: 100%;
    margin-left: 0;
  }
}

@media (max-width: 1023px) {
  .school-scroller {
    max-width: 640px;
    margin-left: auto;
    margin-right: auto;
  }
}
