/* All Offices Block */

.all-offices-block {
  background: var(--color-surface-0);
}

.all-offices-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 3rem;
}

@media (max-width: 768px) {
  .all-offices-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }
}

.all-offices-item {
  position: relative;
}

.all-offices-item__link {
  text-decoration: none;
  color: inherit;
  display: block;
}

.all-offices-item__image-wrapper {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-surface-100);
}

.all-offices-item__image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 400ms ease;
}

.all-offices-item__link:hover .all-offices-item__image {
  transform: scale(1.05);
}

.all-offices-item__overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: var(--color-dark-green);
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  visibility: hidden;
  transition: opacity 300ms ease, visibility 0s 300ms;
  padding: 2rem;
  z-index: 10;
}

.all-offices-item__link:hover .all-offices-item__overlay {
  opacity: 1;
  visibility: visible;
  transition: opacity 300ms ease, visibility 0s 0s;
}

.all-offices-item__features {
  list-style: none;
  margin: 0;
  padding: 0;
  color: white !important;
  font-size: 1.1rem;
  line-height: 1.8;
  text-align: center;
  width: 100%;
}

.all-offices-item__features li {
  margin-bottom: 0.75rem;
  color: white !important;
}

.all-offices-item__features li:last-child {
  margin-bottom: 0;
}

.all-offices-item__title {
  font-family: var(--font-serif);
  font-size: 1.7rem;
  line-height: 1.4;
  margin-top: 15px;
  margin-bottom: 0;
  color: var(--color-dark-green);
  transition: color 300ms ease;
}

.all-offices-item__link:hover .all-offices-item__title {
  color: var(--color-red);
}
