#hero #client-types {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
}

#hero #client-types .client-type {
  width: 17rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1rem;
  padding: 2.25rem 0.75rem 0.75rem;
  background-color: white;
  box-shadow: var(--shadow-xl);
  border-radius: 4px;
  text-align: center;
}

#hero #client-types .client-type:nth-child(1) {
  grid-area: 2 / 1 / 3 / 2;
  margin: -15% 0 15%;
}

#hero #client-types .client-type:nth-child(2) {
  grid-area: 1 / 2 / 2 / 3;
  margin: 15% 0 -15%;
}

#hero #client-types .client-type:nth-child(3) {
  grid-area: 2 / 2 / 3 / 3;
  margin: 15% 0 -15%;
}

#hero #client-types .client-type:nth-child(4) {
  grid-area: 1 / 3 / 2 / 4;
  margin: -15% 0 15%;
}

#hero #client-types .client-type:nth-child(5) {
  grid-area: 2 / 3 / 3 / 4;
  margin: -15% 0 15%;
}

#hero #client-types .client-type .content {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.5rem;
}

#hero #client-types .client-type .content img {
  width: 50%;
  filter: saturate(85%);
  border-radius: 4px;
  object-fit: cover;
}

#hero #client-types .client-type .content .text {
  width: 100%;
}

#hero #client-types .client-type .bu-button {
  background-color: var(--navy-blue);
  color: white;
  border: 0;
  width: 100%;
  font-size: 0.85rem;
  overflow: hidden;
  white-space: nowrap;
}

#hero #client-types .client-type .bu-subtitle {
  margin-bottom: 0 !important;
  margin-top: 0;
}

#hero #client-types .client-type .bu-title {
  color: var(--navy-blue-medium-light);
  margin-bottom: 0 !important;
  margin-top: 0;
  font-size: 1.1rem !important;
}

#hero #client-types .client-type:hover .bu-button {
  background-color: var(--navy-blue-medium-light);
}

#hero #client-types .client-type:active .bu-button {
  background-color: var(--navy-blue-dark);
}

@media (max-width: 1408px) {
  #hero #client-types .client-type:nth-child(1) {
    margin: -60% 0 60%;
  }
}

@media (max-width: 900px) {
  #hero #client-types {
    grid-template-columns: repeat(2, 1fr);
  }

  #hero #client-types .client-type:nth-child(1) {
    grid-area: 2 / 1 / 3 / 2;
    margin: -75% 0 75%;
  }

  #hero #client-types .client-type:nth-child(2) {
    grid-area: 3 / 1 / 4 / 2;
    margin: -75% 0 75%;
  }

  #hero #client-types .client-type:nth-child(3) {
    grid-area: 1 / 2 / 2 / 3;
    margin: 0;
  }

  #hero #client-types .client-type:nth-child(4) {
    grid-area: 2 / 2 / 3 / 3;
    margin: 0;
  }

  #hero #client-types .client-type:nth-child(5) {
    grid-area: 3 / 2 / 4 / 3;
    margin: 0;
  }
}

@media (max-width: 640px) {
  #hero #client-types {
    grid-template-columns: 1fr;
    align-items: center;
  }

  #hero #client-types .client-type {
    width: 100%;
    align-items: stretch;
    padding: 1rem;
    max-width: 28rem;
    grid-area: auto !important;
    margin: 0 !important;
  }

  #hero #client-types .client-type .content {
    flex-direction: row;
    gap: 0.75rem;
  }

  #hero #client-types .client-type .content img {
    width: 40%;
  }
}
