.featured-card--news .heading,
.featured-card--team-member .heading {
  margin-block-start: 0;
  margin-block-end: 0;
}

.featured-card__description,
.featured-card__date {
  margin-block-start: 0;
  margin-block-end: 0;
}

.featured-card__media {
  position: relative;
  overflow: hidden;
}

.featured-card {
  width: 87.5% !important;
  height: auto;
  position: relative;
  flex-shrink: 0;
  overflow: hidden;
}

.featured-card img {
  width: 100%;
  border-radius: var(--spacing);
}

.featured-card--our-work {
  .featured-card__content {
    padding-block: var(--spacing-2);
    display: flex;
    gap: var(--spacing-2);

    svg {
      min-width: 6rem;
      max-width: 6rem;
      max-height: 6rem;
      padding: var(--spacing-2) var(--spacing-2-5);
    }
  }

  .featured-card__text {
    display: flex;
    flex-direction: column;

    .heading {
      margin: 0;
    }
  }
}

.featured-card--our-work:nth-of-type(even) {
  display: flex;
  flex-direction: column-reverse;

  .featured-card__content {
    svg {
      transform: rotate(180deg);
    }
  }

  .foreground-image img {
    transform: translate(0%, -100%);
    border-bottom-left-radius: 0;
    border-bottom-right-radius: 0;
  }
}

.featured-card__date {
  margin-bottom: var(--spacing);
}

.featured-card--news:nth-of-type(even) {
  display: flex;
  flex-direction: column-reverse;

  .featured-card__text {
    margin-bottom: var(--spacing-5);

    .heading:has(.link:focus-visible) {
      margin-bottom: 0;
    }
  }
}

.featured-card--team-member:nth-of-type(even) {
  .featured-card__media {
    margin-bottom: var(--spacing-2);
  }
}

.featured-card--news:nth-of-type(odd) {
  .featured-card__media {
    margin-bottom: var(--spacing-4);
  }
}

.featured-card--team-member:nth-of-type(odd) {
  display: flex;
  flex-direction: column-reverse;

  .featured-card__text {
    margin-bottom: var(--spacing-4);
  }
}

.featured-card--news .heading:has(.link:focus-visible) {
  margin-bottom: var(--spacing-half);
  margin-left: var(--spacing-half);
}

@media (min-width: 540px) {
  .featured-card--carousel {
    width: calc(62.5% - var(--spacing)) !important;
  }

  .featured-card--our-work .featured-card__content {
    padding-left: var(--spacing-6);
  }

  .featured-card--our-work.featured-card--carousel:nth-of-type(odd) {
    .featured-card__content {
      padding-top: var(--spacing-4);

      svg {
        transform: rotate(-45deg);
      }
    }
  }

  .featured-card--our-work.featured-card--carousel:nth-of-type(even) {
    .featured-card__content {
      svg {
        transform: rotate(225deg);
      }
    }
  }
}

@media (min-width: 992px) {
  .featured-card--carousel {
    width: calc(37.5% - var(--spacing)) !important;
  }

  .featured-card--carousel:last-child {
    padding-right: var(--spacing-4) !important;
  }
}

@media (min-width: 1440px) {
  .featured-card--carousel {
    width: calc(37.5% - var(--spacing-2-5)) !important;
  }

  .featured-card--our-work .featured-card__content {
    padding-left: var(--spacing-8);
  }
}