.cards--homepage {
  position: relative;
  z-index: 1;
  padding: 98px 0 0;
  margin-top: -25px;
}

.cards--homepage:after {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 427px;
  background: linear-gradient(90.04deg, #1c1b1f 0.05%, #5e5e5e 99.98%);
  z-index: -1;
  clip-path: polygon(50% 11%, 100% 0, 100% 100%, 0 100%, 0 0);
}

.cards--homepage:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 50px;
  background-color: #fff;
  opacity: 0.25;
  clip-path: polygon(100% 0, 100% 25%, 50% 100%, 0 25%, 0 0);
}

.cards__heading {
  position: relative;
  z-index: 1;
  margin-bottom: 30px;
}

.card-slider {
  position: relative;
  z-index: 1;
  padding-bottom: 74px;
}

.cards__heading h2 {
  color: #fff;
  margin: 0 0 30px;
}

.cards--homepage .cards__headings h2 {
  color: #fff;
  margin: 0 0 30px;
}

.cards__heading a {
  position: relative;
  display: inline-block;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.25em;
  font-weight: 700;
  padding: 0;
  vertical-align: middle;
  text-decoration: none;
  transition: all ease-in-out 0.3s;
  background: transparent;
  border: none;
  z-index: 1;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  padding-right: 30px;
}

.cards__heading a:after {
  content: "\e915";
  font-family: "icomoon" !important;
  position: absolute;
  font-weight: normal;
  font-size: 16px;
  right: 0;
  top: 50%;
  transform: translate(0, -50%);
}

.card-slide__item__image {
  aspect-ratio: 2 / 0.945;
  overflow: hidden;
}

.card-slide__item {
  position: relative;
  background: linear-gradient(90.72deg, #fafafa 0.36%, #dddddd 99.14%);
  display: block;
  height: 100%;
}

.card-slide__item__content {
  padding: 30px 25px 115px 21px;
}

.card-slide__item__content h3 {
  font-size: 20px;
  color: #000000;
  font-weight: 600;
  margin: 0 0 26px;
}

.card-slide__item__content h5 {
  font-size: 14px;
  color: #223cbd;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin: 0 0 17px;
}

.card-slide__item__content p {
  font-size: 16px;
  color: #000;
  font-weight: 400;
  margin: 0;
  line-height: 1.75em;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

.card-slide__item__content button {
  position: absolute;
  bottom: 38px;
  left: 21px;
  font-size: 16px;
  font-weight: 700;
  color: #223cbd;
  text-transform: uppercase;
  background: none;
  letter-spacing: 0.1em;
  padding: 0;
  border: none;
  padding-right: 30px;
}

.card-slide__item__content button:after {
  content: "\e915";
  font-family: "icomoon" !important;
  position: absolute;
  font-weight: normal;
  font-size: 16px;
  right: 0;
  top: 50%;
  transform: translate(0, -50%);
}

.card-slider .slick-track {
  display: flex;
}

.card-slider .slick-slide {
  height: auto;
}

.card-slider .slick-slide > * {
  height: 100%;
}

.card-slide {
  height: 100%;
}

.cards.cards--blog:not(.cards--homepage) {
  padding-top: var(--section-margins);
  padding-bottom: var(--section-margins);
}

.cards.cards--blog:not(.cards--homepage):has(+ .bg-white) {
  padding-bottom: 0;
}

.cards.cards--blog:not(.cards--homepage) h2 {
  color: #000;
}

@media (min-width: 768px) {
  .card-slider .slick-slide {
    margin: 0 16px;
  }

  .card-slider .slick-list {
    margin: 0 -16px;
  }

  .card-slide__item__image {
    aspect-ratio: 2 / 0.99;
  }

  .cards--homepage {
    padding: 148px 0 0;
    margin-top: -25px;
  }

  .cards--homepage:after {
    clip-path: polygon(50% 18%, 100% 0, 100% 100%, 0 100%, 0 0);
    height: 477px;
  }

  .cards--homepage:before {
    height: 78px;
  }

  .card-slider .slick-next {
    left: unset;
    right: 0;
    margin: 0;
  }

  .card-slider .slick-prev {
    left: unset;
    right: 0;
    margin: 0 47px 0 0;
  }
}

@media (min-width: 1200px) {
  .cards__heading {
    padding-right: 350px;
    margin-bottom: 35px;
  }

  .cards__heading a {
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(0, -50%);
  }

  .cards__heading a:hover {
    color: #cce9f5;
  }

  .cards__heading .sub-heading {
    margin-bottom: 25px;
  }

  .card-slide__item__content h3 {
    font-size: 22px;
  }

  .card-slide__item__content p {
    -webkit-line-clamp: 5;
  }

  .card-slide__item__content button {
    bottom: 35px;
  }

  .card-slide__item__content {
    padding: 35px 25px 127px 21px;
  }

  .cards--homepage {
    padding: 250px 0 0;
    margin-top: -100px;
  }

  .cards--homepage:after {
    clip-path: polygon(50% 25%, 100% 0, 100% 100%, 0 100%, 0 0);
    height: 594px;
  }

  .cards--homepage:before {
    height: 148px;
    clip-path: polygon(100% 0, 100% 23%, 50% 100%, 0 23%, 0 0);
  }

  .card-slider .slick-prev {
    margin: 0 56px 0 0;
  }

  .card-slide__item:hover {
    background: linear-gradient(90.72deg, #fafafa 0.36%, #dddddd 99.14%);
  }

  .card-slide__item:after {
    content: "";
    position: absolute;
    left: -8px;
    bottom: -9px;
    width: 0;
    height: 21px;
    clip-path: polygon(0 0, 100% 0, 97% 100%, 0% 100%);
    background: linear-gradient(90.72deg, #ac0218 0.36%, #c5242a 99.14%);
    transition: all ease 0.3s;
  }

  .card-slide__item:hover:after {
    width: calc(100% + 8px - 61px);
  }

  .card-slider .slick-slide {
    margin-bottom: 10px;
  }

  .card-slider {
    padding-bottom: 92px;
  }

  .card-slider .slick-arrow::before {
    font-size: 29px;
  }

  .card-slider .slick-prev {
    margin: 0 59px 0 0;
  }
}

@media (min-width: 1600px) {
  .cards--homepage {
    padding: 260px 0 0;
    margin-top: -85px;
  }

  .cards--homepage:before {
    height: 185px;
    clip-path: polygon(100% 0, 100% 27%, 50% 100%, 0 27%, 0 0);
  }

  .cards--homepage:after {
    clip-path: polygon(50% 37%, 100% 0, 100% 100%, 0 100%, 0 0);
    height: 504px;
  }

  .cards__heading a {
    top: unset;
    transform: unset;
    bottom: 0;
  }

  .cards__heading {
    padding-right: 290px;
    margin-bottom: 50px;
  }

  .cards__heading .sub-heading {
    margin-bottom: 35px;
  }

  .card-slide__item__content h3 {
    font-size: 24px;
    margin: 0 0 50px;
  }

  .card-slide__item__content p {
    font-size: 18px;
  }

  .card-slide__item__content h5 {
    margin: 0 0 13px;
  }

  .card-slide__item__content {
    padding: 35px 40px 100px 21px;
  }

  .card-slide__item__content button {
    bottom: 44px;
    font-size: 18px;
  }

  .card-slider {
    padding-bottom: 72px;
  }

  .card-slide__item:hover:after {
    width: calc(100% + 8px - 76px);
  }
}
