.banner {
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  overflow: hidden;
  box-sizing: border-box;
  padding: 3.2rem 0;
  height: 45.5rem;
  @include media-min($medium) {
    height: 40rem;
  }
  &--large {
    @include media-min($medium) {
      height: 50rem;
    }
  }
  &--small {
    height: 24rem;
    @include media-min($medium) {
      height: 24rem;
    }
  }

  p + p {
    margin-top: 3.2rem;
  }

  h5 {
    font-size: 1.6rem;
    @include media-min($medium) {
      font-size: 1.8rem;
    }
  }

  .container {
    height: 100%;
  }

  &-default__inner {
    box-sizing: border-box;
    height: 100%;
    padding-top: calc(var(--header-height, 0rem) - 2.2rem);
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  &-default__title {
    font-size: 2rem;
    @include media-min($medium) {
      font-size: clamp(2.8rem, 3.65vw, 3.6rem);
    }
  }

  &-default--first-block-pull-up {
    padding-bottom: 12rem;
  }

  &-home {
    position: relative;

    &__slide {
      position: relative;
      display: block;
      height: 100%;
    }

    &__bg {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      z-index: 0;
      display: block;
      width: 100%;
      height: 100%;
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
    }

    &__content {
      position: relative;
      z-index: 1;
      padding-top: 10rem;
      padding-bottom: 10rem;
      display: flex;
      height: 100%;
      box-sizing: border-box;
      @include media-min($medium) {
        padding-top: 3.2rem;
        align-items: center;
      }
    }

    &__title {
      font-size: clamp(24px, 3.65vw, 42px);
    }

    .slick {
      height: 62rem;
      padding: 0;
      @include media-min($medium) {
        height: 56vw;
        max-height: 72rem;
      }
    }

    .slick-pagination {
      position: absolute;
      z-index: 1;
      bottom: 12rem;
      left: 0;
      right: 0;
      margin: 0 auto;
    }

    .swiper-pagination-bullet {
      width: 3.2rem;
      height: 1.2rem;
      border-radius: 0.4rem;
      background-color: $white;
    }
  }

  &-resource {
    height: 45.5rem;
    @include media-min($medium) {
      height: 40rem;
    }

    h5 {
      font-size: 1.6rem;
      @include media-min($medium) {
        font-size: 1.8rem;
      }
    }

    &--small {
      height: 30rem;
      @include media-min($medium) {
        height: 30rem;
      }
    }
    .container {
      height: 100%;
    }
    &__inner {
      box-sizing: border-box;
      height: 100%;
      display: flex;
      flex-direction: column;
      justify-content: center;
    }
    &__button-container {
      position: absolute;
      bottom: 3.2rem;
    }
  }

  &-multi {
    &__inner {
      position: relative;
      display: block;
      height: 45.5rem;
      @include media-min($medium) {
        height: 52rem;
      }
    }
    &__bg {
      position: absolute;
      left: 0;
      right: 0;
      top: 0;
      bottom: 0;
      z-index: 0;
      display: block;
      width: 100%;
      height: 100%;
      background-position: center;
      background-repeat: no-repeat;
      background-size: cover;
    }
    &__content {
      position: relative;
      z-index: 1;
      box-sizing: border-box;
      height: 100%;
      padding: calc(var(--header-height, 0rem) + var(--admin-bar-height, 0rem) + 3.2rem) 0;
      display: flex;
      @include media-min($medium) {
        padding: calc(var(--header-height, 0rem) + var(--admin-bar-height, 0rem)) 0;
        align-items: center;
      }
      h1 {
        font-size: clamp(22px, 3.65vw, 36px);
      }
    }
    .tidb-logo-white {
      display: inline-block;
      vertical-align: middle;
      background: url('https://img1.pingcap.com/files/2023/12/20231211092416288.png') no-repeat center center/contain;
      width: 9rem;
      height: 4rem;
      @include media-min($medium) {
        width: 15.4rem;
        height: 6rem;
      }
    }
    .slick-pagination {
      position: absolute;
      bottom: 3.2rem;
      z-index: 1;
      left: 0;
      right: 0;
    }
    .swiper-pagination-bullet {
      background-color: #fff;
      width: 3.2rem;
      height: 1.2rem;
      border-radius: 4px;
    }
  }

  &-education {
    &__inner {
      background-repeat: no-repeat;
      background-position: center;
      background-size: cover;
      height: 45.5rem;
      @include media-min($medium) {
        height: 52rem;
      }
      .container {
        height: 100%;
      }
    }
    &__content {
      box-sizing: border-box;
      height: 100%;
      padding: calc(var(--header-height, 0rem) + var(--admin-bar-height, 0rem)) 0;
      text-align: center;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      p {
        color: rgba(255, 255, 255, 0.8);
        font-size: 18px;
      }
    }
    .slick-pagination {
      position: absolute;
      bottom: 3.2rem;
      z-index: 1;
      left: 0;
      right: 0;
    }
    .swiper-pagination-bullet {
      background-color: #fff;
    }

    .block-bg-image.block-bg-overlay::after {
      background: rgba(0, 4, 49, 0.6);
    }
  }
}
