.services-card {
  font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  background: #F5F5F5;
  padding: 20px;
}

.services-card .grid-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}

@media (max-width: 992px) {
  .services-card .grid-container {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .services-card .grid-container {
    grid-template-columns: 1fr;
  }
}

.services-card .card {
  background: #ffffff;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 4px 8px rgba(26, 42, 69, 0.15);
  text-align: center;
  text-decoration: none;
  color: #1A2A45;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  opacity: 0;
  animation: fadeIn 0.8s ease forwards;
  animation-delay: calc(var(--i) * 0.2s);
  display: flex;
  flex-direction: column;
  height: 100%;
}

@keyframes fadeIn {
  to {
    opacity: 1;
  }
}

.services-card .card:hover {
  transform: translateY(-8px);
  box-shadow: 0 8px 20px rgba(26, 42, 69, 0.25);
}

.services-card .card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: top;
  display: block;
  border: none;
  margin-bottom: -1px;
  transition: transform 0.4s ease;
  flex-shrink: 0;
}

.services-card .card:hover img {
  transform: scale(1.05);
}

.services-card .card-text {
  background: #1A2A45;
  color: #ffffff;
  font-size: clamp(14px, 2vw, 18px);
  font-weight: 600;
  padding: 12px 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  flex-grow: 1;
  line-height: 1.3;
  min-height: 80px;
  overflow-wrap: break-word;
  word-break: break-word;
  transition: text-shadow 0.3s ease, transform 0.3s ease;
}

.services-card .card-text:hover {
  text-shadow:
    0 0 5px rgba(255, 255, 255, 0.6),
    0 0 10px rgba(255, 255, 255, 0.4);
}

.services-card a {
  text-decoration: none;
  color: inherit;
  display: block;
}
