/* GENERAL */

.highlight {
  --verticalSpacing: 90px;
}

.highlight {
  padding: var(--verticalSpacing) var(--horizontalSpacing) var(--verticalSpacing) var(--horizontalSpacing);
  background-color: var(--backgroundColorAccent);
  font-family: "Herokid", sans-serif;
  font-stretch: semi-condensed;
}

.highlight h2 {
  text-transform: none;
  border-bottom: none;
  padding-bottom: 0;
}

.highlight .block-header {
  display: flex;
  justify-content: space-between;
  margin-bottom: 70px;
}

.highlight .mid-header {
  margin-top: var(--verticalSpacing);
}

.highlight .content {
  display: flex;
  flex-wrap: wrap;
  column-gap: 21px;
  row-gap: 40px;
  justify-content: space-between;
}

.highlight::before,
.highlight::after {
  content: none;
}

.highlight .external {
  display: block;
  background-color: var(--colorTextNegative);
  mask-image: url(../../img/new_tab.svg);
  -webkit-mask-image: url(../../img/new_tab.svg);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
  width: 18px;
  height: 18px;
  position: absolute;
}

.highlight .arrow {
  display: block;
  background-color: var(--colorTextNegative);
  mask-image: url(../../img/arrow_thick_white.svg);
  -webkit-mask-image: url(../../img/arrow_thick_white.svg);
  mask-repeat: no-repeat;
  -webkit-mask-repeat: no-repeat;
  mask-size: contain;
  -webkit-mask-size: contain;
  width: 18px;
  height: 18px;
  position: absolute;
}

.highlight .block-header a {
  display: flex;
  text-transform: uppercase;
  flex-direction: column;
  position: relative;
  font-weight: 500;
  color: var(--colorText);
}

.highlight .block-header a::after {
  content: "";
  display: block;
  position: absolute;
  height: 2px;
  width: 100%;
  bottom: -4px;
  background-color: var(--colorText);
}

.highlight .block-header a:hover,
.highlight .block-header a:focus-visible {
  color: var(--colorText);
}

.highlight .block-footer {
  display: none;
}

/* CARDS */

.highlight .card {
  display: block;
  width: 23%;
  position: relative;
  background-color: var(--backgroundColor);
}

/* cards are mostly links, but they can be wrappers for links too */
.highlight .card > a:not(.bw-button) {
  width: 100%;
  height: 100%;
}

.highlight .card-simple {
  display: flex;
  align-items: center;
}

.highlight .card i {
  bottom: 28px;
}

.highlight .card-detailed i {
  right: 28px;
}

.highlight .card-simple i {
  left: 20px;
}

.highlight .card .head {
  width: 100%;
  height: 278px;
  position: relative;
}

.highlight .card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* texts */

.highlight .card .title {
  position: absolute;
  left: 20px;
  max-width: 75%;
  font-weight: 500;
  font-stretch: semi-condensed;
  font-size: 24px;
  line-height: 130%;
  color: var(--colorTextNegative);
  margin: 0;
}

.highlight .card-detailed .title {
  bottom: 18px;
}

.highlight .card .title::before {
  content: "";
  display: block;
  width: 40px;
  height: 14px;
  background-color: var(--colorTextNegative);
  margin-bottom: 8px;
}

.highlight .bw-button {
  margin-top: 35px;
}

.highlight .card p {
  font-family: "Herokid", sans-serif;
  font-stretch: normal;
  font-weight: 400;
  font-size: 17px;
  line-height: 160%;
  color: var(--colorText);
  margin-bottom: 0;
  padding: 25px 22px 37px 22px;
}

/* RESPONSIVE */

@media (max-width: 1399px) {
  .highlight .card .head {
    height: 240px;
  }
}

@media (max-width: 1199px) {
  .highlight .card {
    width: 48%;
  }
}

@media (max-width: 768px) {
  .highlight {
    --verticalSpacing: 45px;
  }

  .highlight .block-header {
    margin-bottom: 35px;
  }

  .highlight .card {
    width: 100%;
  }

  .highlight .card-detailed img {
    height: 240px;
  }

  .highlight .card-simple img {
    height: 400px;
  }

  .highlight .card p {
    padding: 21px 19px 31px 19px;
  }

  .highlight .block-header .see-all {
    display: none;
  }

  .highlight .block-footer {
    display: flex;
    margin-top: 50px;
  }

  .highlight .block-footer .see-all,
  .highlight .block-footer .see-all:hover,
  .highlight .block-footer .see-all:focus-visible {
    font-family: "Herokid", sans-serif;
    margin-right: 0;
    text-transform: uppercase;
    font-weight: 500;
    position: relative;
    text-align: right;
    inset: 0;
    font-size: 16px;
    color: var(--colorText);
    font-stretch: semi-condensed;
  }

  .highlight .block-footer .see-all:after {
    content: "";
    display: block;
    position: absolute;
    height: 2px;
    width: 100%;
    bottom: -4px;
    right: 0;
    background-color: var(--colorText);
  }
}
