.cb-service-overview {
  image-rendering: crisp-edges;
  background-color: var(--yellow);
  padding: 4.5rem 0 6.75rem 0;
  background-image: url("/wp-content/themes/cbra-child/assets/icons/square-lefttop.png"),
    url("/wp-content/themes/cbra-child/assets/icons/square-rightbottom.png");
  background-position: left top, 98% 100%;
  background-repeat: no-repeat, no-repeat;
  background-size: 20%, 30%;
}

.buak-bvk .cb-service-overview {
  background-image: url("/wp-content/themes/cbra-child/assets/icons/square-lefttop-green.png"),
    url("/wp-content/themes/cbra-child/assets/icons/square-rightbottom-green.png");
  background-position: left top, 98% 100%;
  background-repeat: no-repeat, no-repeat;
  background-size: 20%, 30%;
}

.buak-training .cb-service-overview {
  background-image: url("/wp-content/themes/cbra-child/assets/icons/square-lefttop-blue.png"),
    url("/wp-content/themes/cbra-child/assets/icons/square-rightbottom-blue.png");
  background-position: left top, 98% 100%;
  background-repeat: no-repeat, no-repeat;
  background-size: 20%, 30%;
}

.buak-intranet .cb-service-overview {
  background-image: url("/wp-content/themes/cbra-child/assets/icons/square-lefttop-violet.png"),
    url("/wp-content/themes/cbra-child/assets/icons/square-rightbottom-violet.png");
  background-position: left top, 98% 100%;
  background-repeat: no-repeat, no-repeat;
  background-size: 20%, 30%;
}

.cb-service-overview h2 {
  margin-bottom: 4rem;
  position: relative;
  font-size: 3rem;
  text-align: center;
}

.cb-service-overview h2:after {
  content: "";
  background-color: var(--black);
  height: 3px;
  width: 130px;
  position: absolute;
  bottom: -1.5rem;
  left: calc(50% - (130px / 2));
}

.cb-service-overview__card-wrapper {
  margin-left: calc((100vw - var(--width-content)) / 2);
  margin-right: calc((100vw - var(--width-content)) / 2);
  display: flex;
  grid-gap: 1.875rem;
  flex-wrap: wrap;
  justify-content: center;
}

.cb-service-overview__card {
  flex-basis: calc(50% - 1.875rem);
  background-color: var(--white);
  box-shadow: 2px 2px 5px 0 rgba(180, 180, 180, 0.5);
  padding: 3.625rem 4.5rem 4rem 3rem;
  box-sizing: border-box;
  position: relative;
}

.cb-service-overview__card .cb-link--secondary {
  position: absolute;
  right: 0;
}

.cb-service-overview__card h3 {
  font-size: 2.25rem;
  display: inline-block;
  position: relative;
  line-height: 1;
  margin-top: 0;
  margin-bottom: 1rem;
}

.cb-service-overview__card h3:after {
  content: "";
  height: 5px;
  background-color: var(--yellow);
  width: 100%;
  position: absolute;
  bottom: -1rem;
  left: 0;
}

.cb-service-overview__card > div {
  min-height: 3.125rem;
}

/* TABLET */
@media only screen and (max-width: 1024px) {
  .cb-service-overview {
    padding: 2rem 0 4rem 0;
  }
  .cb-service-overview__card {
    padding: 3rem 2rem 4rem 2rem;
  }
  .cb-service-overview__card .cb-link--secondary {
    left: 2rem;
    right: unset;
  }
}
/* MOBILE (ca.)*/
@media only screen and (max-width: 768px) {
  .cb-service-overview h2 {
    line-height: 1;
    font-size: 2rem;
  }
  .cb-service-overview__card {
    width: 100%;
    flex-basis: 100%;
    padding: 1.5rem 1rem 4rem 1.5rem;
  }
  .cb-service-overview__card p {
    margin-top: 2rem;
  }
  .cb-service-overview__card h3 {
    font-size: 1.625rem;
    display: block;
  }
  .cb-service-overview__card-wrapper {
    margin-left: 1rem;
    margin-right: 1rem;
  }
  .cb-service-overview {
    padding: 2rem 0 3.5rem 0;
  }
  .cb-service-overview__card .cb-link--secondary {
    position: static;
    left: unset;
    bottom: 0.5rem;
    right: 0;
    margin-right: 0;
  }
}

/* PRINT STYLES */

@media print {
  .cb-service-overview h2 {
    margin-bottom: 2rem;
    font-size: 2.5rem;
    text-align: center;
  }

  .cb-service-overview h2::after {
    display: none !important;
  }

  .cb-service-overview__card-wrapper {
    display: flex;
    margin: auto;
    margin-top: 2rem;
    padding: 1rem;
    width: 100%;
  }

  .cb-service-overview__card {
    flex: 40%;
    box-shadow: none;
    padding: 2rem;
    page-break-inside: avoid;
    margin-top: 4rem;
    margin-bottom: 2rem;
  }

  .cb-service-overview__card .cb-link--secondary {
    display: none;
  }
}
