/* Clean light service cards: distinct photography and readable content panel. */
.services-offered__grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

.service-offered-card--featured {
  grid-column: span 1;
}

@media (max-width: 1050px) {
  .services-offered__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 18px;
  }
}

.service-offered-card,
.service-offered-card--featured {
  min-height: 360px;
  display: flex;
  align-items: stretch;
  justify-content: flex-end;
  overflow: hidden;
  border: 1px solid #dce6f2;
  border-radius: 22px;
  color: #142943;
  background: #fff;
  box-shadow: 0 12px 26px rgba(28, 57, 95, .07), 0 1px 3px rgba(28, 57, 95, .04);
  transition: transform .28s ease, box-shadow .28s ease, border-color .28s ease;
}

.service-offered-card--featured {
  min-height: 360px;
}

.service-offered-card:hover {
  transform: translateY(-5px);
  border-color: #c7d8ed;
  box-shadow: 0 20px 38px rgba(28, 57, 95, .14);
}

.service-offered-card img {
  z-index: 0;
  inset: 0 0 auto;
  width: 100%;
  height: calc(100% - 166px);
  object-fit: cover;
  object-position: center;
  filter: none;
  transition: transform .5s ease;
}

.service-offered-card:hover img {
  transform: scale(1.025);
}

.service-offered-card__shade {
  display: none;
}

.service-offered-card__number {
  z-index: 2;
  top: 15px;
  right: 16px;
  color: #254366;
  font-size: 12px;
  letter-spacing: .08em;
  background: rgba(255, 255, 255, .9);
  border: 1px solid rgba(220, 230, 242, .9);
  border-radius: 999px;
  padding: 5px 9px;
}

.service-offered-card__icon {
  z-index: 2;
  top: 14px;
  left: 14px;
  width: 38px;
  height: 38px;
  border: 1px solid rgba(220, 230, 242, .95);
  border-radius: 12px;
  color: #14865a;
  background: rgba(255, 255, 255, .94);
  box-shadow: 0 5px 16px rgba(24, 48, 79, .12);
  backdrop-filter: blur(6px);
}

.service-offered-card__content {
  position: absolute;
  z-index: 1;
  inset: auto 0 0;
  box-sizing: border-box;
  height: 166px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 20px 22px;
  background: linear-gradient(145deg, #fff 0%, #f8fbff 100%);
  border-top: 1px solid #edf2f8;
  text-shadow: none;
}

.service-offered-card__content small {
  display: none;
}

.service-offered-card__content h3,
.service-offered-card--featured .service-offered-card__content h3 {
  margin: 0 0 8px;
  color: #142943;
  font-family: Manrope, sans-serif;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.3;
  letter-spacing: -.025em;
  text-shadow: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.service-offered-card__content p {
  max-width: 390px;
  margin: 0;
  color: #526780;
  font-size: 13px;
  line-height: 1.65;
  text-shadow: none;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
  overflow: hidden;
}

.service-offered-card__arrow {
  z-index: 2;
  right: 17px;
  bottom: 20px;
  color: #426080;
  opacity: .75;
}

@media (max-width: 700px) {
  .services-offered__grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .service-offered-card,
  .service-offered-card--featured {
    min-height: 330px;
  }

  .service-offered-card--featured {
    min-height: 330px;
  }

  .service-offered-card img {
    height: calc(100% - 158px);
  }

  .service-offered-card__content {
    height: 158px;
    padding: 17px 16px;
  }

  .service-offered-card__content h3,
  .service-offered-card--featured .service-offered-card__content h3 {
    font-size: 16px;
  }

  .service-offered-card__content p {
    font-size: 11px;
  }
}

@media (max-width: 480px) {
  .services-offered__grid {
    grid-template-columns: 1fr;
  }
}
