.templateTwo {
  position: relative;
  display: flex;
  justify-content: space-between;
  flex-direction: column-reverse;
  padding: 0 1.6rem;

  &::before,
  &::after {
    content: '';
    display: block;
    position: absolute;
    z-index: -1;
    left: -1px;
    right: -1px;
    height: 100%;
  }

  &::before {
    background: white;
    height: calc(100% - 300px);

    @include min(tablet) {
      right: auto;
      left: 0;
      width: 60%;
      height: 100%;
    }
  }

  &::after {
    background-color: hsla(0, 100%, 50%, 0);
    background-image: radial-gradient(at 0% 0%, hsla(165, 62%, 69%, 1) 0px, transparent 50%),
      radial-gradient(at 100% 0%, hsla(221, 90%, 63%, 1) 0px, transparent 50%),
      radial-gradient(at 100% 100%, hsla(50, 100%, 56%, 1) 0px, transparent 50%),
      radial-gradient(at 0% 100%, hsla(249, 42%, 46%, 1) 0px, transparent 50%);
    top: 0;
    max-height: 268px;

    @include min(tablet) {
      right: 0;
      left: auto;
      width: 40%;
      height: 100%;
      max-height: none;
    }
  }

  @include min(tablet) {
    flex-direction: row;
  }
}

.imgContainer {
  width: 100%;
  display: flex;
  align-items: center;

  @include min(laptop) {
    margin-right: 5.8rem;
    width: auto;
  }

  img {
    border-radius: 1.6rem;

    @include min(tablet) {
      padding: 5rem 0;
    }

    @include min(laptop) {
      max-width: 64.1rem;
    }
  }
}

.headerContainer {
  display: flex;
  flex-direction: column;
  justify-content: center;

  @include min(tablet) {
    align-items: flex-start;
    width: 50%;
  }

  h1 {
    font-weight: 800;
    font-size: 3.2rem;
    line-height: 4.2rem;
    text-transform: capitalize;
    color: #1c1a28;
    margin: 0 0 3.2rem;

    @include min(tablet) {
      font-size: 6rem;
      line-height: 7rem;
      padding: 0 1.6rem 4rem 0;
      margin: 0;
    }
  }

  > a {
    display: flex !important;
    gap: 1.1rem;
    margin-bottom: 6.7rem;
    background-color: #5545a9 !important;
    color: #ffffff !important;
    font-size: 18px;
    line-height: 20px;
    padding: 2rem 2.4rem !important;
    border-radius: 12px !important;
    border: none !important;
  }
}

.bonusText {
  font-weight: 700;
  font-size: 1.3rem;
  line-height: 1.9rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #6b6a72;
  margin-bottom: 0.8rem;

  @include min(tablet) {
    font-size: 1.9rem;
    line-height: 2.8rem;
  }
}

.tnc {
  font-size: 1.2rem;
  line-height: 2rem;
  font-weight: 400;

  @include min(tablet) {
    position: absolute;
    bottom: 3.2rem;
  }
}

.blendColors {
  &::after {
    max-height: 300px;
  }

  .headerContainer {
    width: 100%;
  }

  .tnc {
    position: relative;
    bottom: 0;
    margin-top: 1rem;
  }

  @media only screen and (max-width: 767px) {
    padding-top: 15rem;

    .bonusText,
    h1 {
      color: #ffffff;
    }

    .bonusText {
      margin-bottom: 1.6rem;
    }

    h1 {
      display: inline;
      font-size: 4.5rem;
      line-height: 6rem;
      margin: 0 0 4rem;
      background: linear-gradient(to bottom, white 0%, white 110px, black 10%);
      -webkit-background-clip: text;
      -webkit-text-fill-color: transparent;
    }

    a {
      margin-bottom: 9rem;
    }
  }
}
