.post-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2rem;
  margin: 4rem 0;
  padding: 0;
  list-style: none;
}

.post-card-grid .post-card {
  min-width: 0;
  margin: 0;
}

.post-card-grid .post-card--archive {
  display: flex;
  flex-direction: column;
}

.post-card-grid .post-card--archive .post-card__image {
  display: block;
  height: 200px;
  margin-bottom: 2rem;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
}

.post-card-grid .post-card--archive h3 a {
  font: inherit;
  color: inherit;
  text-decoration: none;
}

.post-card-grid .post-card--archive .post-card__excerpt {
  margin-bottom: 1.5rem;
  font-size: 1rem;
  line-height: 1.5;
}

.post-card-grid .post-card--archive .button {
  align-self: flex-start;
  margin-top: auto;
}

.post-card-grid .post-card--career {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: clamp(18rem, 32vw, 33.125rem);
  overflow: hidden;
  background-repeat: no-repeat;
  background-position: center;
  background-size: cover;
  border-radius: 15px;
}

.post-card-grid .post-card--career::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(0deg, rgba(0, 0, 0, .95) 0%, rgba(0, 0, 0, 0) 100%);
}

.post-card-grid .post-card--career .post-card__cover {
  position: absolute;
  inset: 0;
  z-index: 2;
}

.post-card-grid .post-card--career .post-card__content {
  position: relative;
  width: 100%;
  margin-top: auto;
  z-index: 1;
  padding: 2rem;
}

.post-card-grid .post-card--career .post-card__content h3,
.post-card-grid .post-card--career .post-card__content p {
  color: #fff !important;
}

.post-card-grid .post-card--career .post-card__content h3 {
  font-size: 1.75rem;
  font-style: normal;
  font-weight: 500;
  line-height: 2.375rem;
}

.post-card-grid .post-card--career .post-card__content p:last-child {
  margin-bottom: 0;
}

.similar-posts__heading {
  margin-bottom: 1.5rem;
}

.post-card-grid.post-card-grid--similar {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: 0;
}

.post-card-grid.post-card-grid--similar-sidebar {
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.post-card-grid.post-card-grid--similar .post-card--career {
  min-height: clamp(15rem, 25vw, 24rem);
}

.post-card-grid.post-card-grid--similar-sidebar .post-card--career {
  min-height: 13rem;
}

.post-card-grid.post-card-grid--similar-sidebar .post-card--archive .post-card__image {
  height: 10rem;
  margin-bottom: 1rem;
}

.post-card-grid.post-card-grid--similar-sidebar .post-card .post-card__content h3,
.post-card-grid.post-card-grid--similar-sidebar .post-card--archive h3 {
  margin-bottom: 0.5rem;
  font-size: 1rem;
  line-height: 1.375rem;
}

.post-card-grid.post-card-grid--similar-sidebar .post-card__excerpt,
.post-card-grid.post-card-grid--similar-sidebar .post-card__excerpt p {
  font-size: 0.875rem;
  line-height: 1.25rem;
}

.post-card-grid.post-card-grid--similar-sidebar .post-card--career .post-card__content {
  padding: 1rem;
}

@media (min-width: 1201px) {
  .post-card-grid.post-card-grid--career-section > .post-card:nth-child(4) {
    display: none;
  }
}

@media (max-width: 1200px) {
  .post-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .post-card-grid .post-card--career {
    min-height: 300px;
  }
}

@media (max-width: 767px) {
  .post-card-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }

  .post-card-grid .post-card {
    width: 100%;
    max-width: 32rem;
    justify-self: center;
  }

  .post-card-grid .post-card--career {
    min-height: 250px;
  }

  .post-card-grid.post-card-grid--similar {
    grid-template-columns: 1fr;
  }
}
