.quiz-banner {
  position: relative;
  display: grid;
  grid-template-rows: 1fr;
  grid-template-columns: 1fr;
  min-height: 450px;
  overflow: hidden;
}

.quiz-banner__content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 20px;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}

.quiz-banner__text-content-wrap {
  flex: 0 1 534px;
}

.quiz-banner__label {
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  font-variant: small-caps;
  line-height: 140%;
  color: var(--Neutral-100);
  letter-spacing: 1.12px;
}

.quiz-banner__title {
  margin: 4px 0 16px;
  font-family: HarlowDuoSerifPlain, serif;
  font-size: 42px;
  font-style: normal;
  font-weight: 400;
  line-height: 140%;
  color: var(--Primary-teal);
}

.quiz-banner__description {
  width: 91%;
  max-width: 486px;
  margin: 0;
  font-family: Montserrat, sans-serif;
  font-size: 16px;
  font-style: normal;
  font-weight: 400;
  line-height: 162%;
  color: var(--Neutral-0);
}

.quiz-banner__btn-wrap {
  margin-top: 42px;
}

.quiz-banner__btn {
  min-width: 212px;
}

.quiz-banner__media-content-wrap {
  flex: 0 1 510px;
}

.quiz-banner__content-image-wrapper {
  width: 100%;
  height: 100%;
}

.quiz-banner__content-image {
  display: block;
  width: 100%;
  height: auto;
  object-fit: cover;
  object-position: center;
}

.quiz-banner__background-image-wrapper {
  position: absolute;
  top: 0;
  right: 0;
  width: 65%;
  height: 100%;
}

.quiz-banner__background-image-wrapper:after {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  content: '';
  background: linear-gradient(0deg, rgba(255, 255, 255, 0.80) 0%, rgba(255, 255, 255, 0.80) 100%);
}

.quiz-banner__background-image-wrapper:before {
  position: absolute;
  top: 50%;
  left: -2px;
  width: 62%;
  height: calc(100% + 20px);
  content: '';
  background: linear-gradient(90deg, #FFF 0%, rgba(255, 255, 255, 0.92) 38.7%, rgba(255, 255, 255, 0.21) 83.25%);
  transform: translateY(-50%);
}

.quiz-banner__background-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

@media screen and (max-width: 1360px) {
  .quiz-banner__title {
    font-size: clamp(28px, 18.2px + 1.75vw, 42px);
  }

  .quiz-banner__description {
    font-size: clamp(12px, 9.2px + 0.5vw, 16px);
  }

  .quiz-banner__btn-wrap {
    margin-top: clamp(16px, -2.2px + 3.25vw, 42px);
  }
}

@media screen and (max-width: 768px) {
  .quiz-banner {
    padding: 32px 0 44px;
  }

  .quiz-banner__content {
    flex-direction: column;
    gap: 34px;
  }

  .quiz-banner__text-content-wrap {
    flex: 1 1 auto;
  }

  .quiz-banner__label,
  .quiz-banner__title,
  .quiz-banner__description {
    margin-inline: auto;
    text-align: center;
  }

  .quiz-banner__btn-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .quiz-banner__media-content-wrap {
    flex: 1 1 auto;
  }

  .quiz-banner__background-image-wrapper {
    top: unset;
    bottom: 0;
    width: 100%;
    height: 70%;
  }

  .quiz-banner__background-image-wrapper:before {
    top: -2px;
    width: 100%;
    height: 47%;
    background: linear-gradient(180deg, #FFF 0%, rgba(255, 255, 255, 0.92) 38.7%, rgba(255, 255, 255, 0.21) 83.25%);
    transform: unset;
  }
}

@media screen and (max-width: 560px) {
  .quiz-banner__title {
    max-width: 308px;
    margin: 12px auto 16px;
    font-size: 28px;
    text-transform: capitalize;
  }

  .quiz-banner__description {
    width: 100%;
    max-width: 308px;
    font-size: 12px;
  }

  .quiz-banner__btn-wrap {
    margin-top: 16px;
  }

  .quiz-banner__btn {
    min-width: 166px;
  }
}
