/*
 * Two tall cards side by side: a blue link card with a big line of text,
 * and a yellow card with a tag, icon, heading, text and a button
 * (/teenused/).
 */
.yb-duo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.yb-duo__blue,
.yb-duo__yellow {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 560px;
  padding: 30px;
  border-radius: var(--yb-radius-panel);
}

.yb-duo__blue {
  position: relative;
  background: var(--yb-color-primary);
  color: var(--yb-color-white);
}

.yb-duo__blue h3 {
  max-width: 420px;
  margin: 0;
  color: var(--yb-color-white);
  font-size: var(--yb-size-h2);
  font-weight: var(--yb-weight-regular, 400);
  line-height: 1.2;
}

/* Yellow asterisk in the top right corner. */
.yb-duo__blue::after {
  content: "";
  position: absolute;
  top: 30px;
  right: 36px;
  width: 24px;
  height: 24px;
  background: var(--yb-color-accent);
  -webkit-mask: url("../../icons/asterisk.svg") center / contain no-repeat;
  mask: url("../../icons/asterisk.svg") center / contain no-repeat;
}

.yb-duo__check {
  display: block;
  width: 50px;
  height: 50px;
  border-radius: 50%;
  background: var(--yb-color-white);
  position: relative;
}

.yb-duo__check::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--yb-color-primary);
  -webkit-mask: url("../../icons/check.svg") center / 14px no-repeat;
  mask: url("../../icons/check.svg") center / 14px no-repeat;
}

.yb-duo__blue:hover .yb-duo__check {
  background: var(--yb-color-accent);
}

.yb-duo__yellow {
  padding: 40px;
  background: var(--yb-color-accent);
}

.yb-duo__top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.yb-duo__top .yb-tag {
  font-size: 9px;
}

.yb-duo__top .yb-icon-badge {
  width: 60px;
  height: 60px;
  color: var(--yb-color-white);
  font-size: 24px;
}

.yb-duo__title {
  max-width: 300px;
  margin: -150px 0 0;
  font-size: var(--yb-size-h3);
  font-weight: var(--yb-weight-medium);
  letter-spacing: 0;
}

.yb-duo__bottom {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
}

.yb-duo__bottom div {
  max-width: 240px;
  font-size: 13px;
  line-height: 1.5;
}

.yb-duo__bottom p {
  margin: 0 0 12px;
}

.yb-duo__bottom .yb-button {
  flex: none;
}

@media (max-width: 1024px) {
  .yb-duo__blue,
  .yb-duo__yellow {
    min-height: 460px;
  }

  .yb-duo__title {
    margin-top: 0;
  }

  .yb-duo__bottom {
    flex-direction: column;
    align-items: flex-start;
  }

  .yb-duo__bottom div {
    max-width: none;
  }
}

@media (max-width: 767px) {
  .yb-duo {
    grid-template-columns: 1fr;
  }

  .yb-duo__blue,
  .yb-duo__yellow {
    min-height: 360px;
    padding: 20px;
  }
}
