.brand-partners {
  background-color: var(--secondary-color);
  overflow: hidden;
  padding-top: 5rem;
}
.brand-partners-heading {
  color: var(--primary-color);
  font-size: 3rem;
  font-weight: bold;
  letter-spacing: 1.5px;
  margin-left: 5rem;
  text-align: center;
}

.brands-container {
  padding: 0 3rem 5rem 3rem;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 3rem;
  justify-content: space-between;
}

.brand {
  background-color: var(--tertiary-color);
  border-radius: 1rem;
  border: 1px solid grey;
  padding: 1rem;
  text-align: center;
}

.brand a {
  align-items: center;
  display: flex;
  flex-direction: column;
  height: 100%;
  justify-content: space-between;
  width: 100%;
}

.brand a img {
  width: 25vw;
}

.brand a h3 {
  color: var(--primary-color);
  font-size: 1.8rem;
  margin-top: 2rem;
  text-decoration: none;
}

@media (min-width: 900px) {
  .brands-container {
    grid-template-columns: repeat(4, 1fr);
  }
  .brand a img {
    width: 18vw;
  }
}

@media (max-width: 650px) {
  .brands-container {
    grid-template-columns: repeat(2, 1fr);
  }
  .brand a img {
    width: 35vw;
  }
  .brand a h3 {
    font-size: 2rem;
  }
}

@media (max-width: 450px) {
  .brands-container {
    grid-template-columns: repeat(1, 1fr);
  }
  .brand a img {
    width: 70vw;
  }
}
