/* Services, Specialties, Products pages */

.overview-section {
  background-color: var(--white);
  padding: 32px 0;
}

.overview-cards {
  display: flex;
  flex-direction: column;
}

.overview-card-link {
  display: block;
  text-decoration: none;
  color: var(--black-text);
}

.overview-card-link:not(:last-child) {
  border-bottom: 1px solid var(--grey-50); 
}

.overview-card {
  min-height: 332px;
  padding: 32px 0;
}

.overview-info {
  display: flex;
  flex-direction: column;
  height: 100%;
}

.overview-info p {
  margin: auto 0;
}

@media (max-width: 767.98px) {
  .overview-card {
    gap: 32px;
  }

  .overview-info {
    gap: 24px;
  }
}

.overview-card h2 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: 32px;
  line-height: 44px;
  margin: 0;
}

.overview-card:hover h2 {
  color: var(--blue);
}

@media (max-width: 991.98px) {
  .overview-card h2 {
    font-size: 22px;
    line-height: 34px;
  }
}

.overview-card:hover .arrow-icon {
  transform: scale(1.25);
}

.overview-cover-image {
  height: 100%;
  overflow: hidden;
}

.overview-cover-image img {
  width: 100%;
  height: 332px;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

@media (max-width: 767.98px) {
  .overview-cover-image img {
    height: 228px;
  }
}

.overview-card:hover .overview-cover-image img {
  transform: scale(1.1);
}

.overview-cards > .overview-card-link:nth-child(even) .overview-card {
  flex-direction: row-reverse;
}