.card-office {
  position: relative;
  display: block;
  color: var(--color-white);
  text-decoration: none;
}

.card-office:hover .card-office-image:before,
.card-office:focus .card-office-image:before {
  height: 100%;
}

.card-office-image {
  height: 200px;
  position: relative;
}

.card-office-image:before {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 35%;
  background: linear-gradient(to bottom, rgba(18, 31, 41, 0) 0%, rgba(18, 31, 41, 1) 100%);
  content: '';
  transition: all .3s ease;
}

.card-office-image img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.card-office-text {
  padding: 20px 30px;
  position: absolute;
  bottom: 0;
  left: 0;
  z-index: 1;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.card-office-text span {
  display: block;
  font-size: 24px;
  font-weight: 200;
}

.card-office-text i {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  font-size: 15px;
  color: var(--color-white);
  border-radius: 30px;
  background-color: var(--color-secondary);
}

.card-office:hover {
  color: var(--color-white);
}

.page-template-template-home .card-office-image:before,
.page-template-template-offices .card-office-image:before {
  opacity: 0;
  height: 100%;
}

.page-template-template-home .card-office:hover .card-office-image:before,
.page-template-template-home .card-office:focus .card-office-image:before,
.page-template-template-offices .card-office:hover .card-office-image:before,
.page-template-template-offices .card-office:focus .card-office-image:before {
  opacity: 1;
}

@media screen and (min-width: 768px) {
  .module-offices-2-row {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1px;
  }

  .card-office-image {
    min-height: 250px;
  }
}

@media screen and (min-width: 1025px) {
  .module-offices-2-row {
    grid-template-columns: repeat(3, 1fr);
  }

  .card-office-image {
    height: 340px;
  }
}