.services {
  width: 90%;
  max-width: 1200px;
  margin: 60px auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 30px;
}

/* CARD */
.service-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 10px 25px rgba(0,0,0,0.08);
  transition: 0.3s ease;

  /* 🔑 CRITICAL FIX */
  display: flex;
  flex-direction: column;
}

.service-card:hover {
  transform: translateY(-8px);
}

/* IMAGE */
.service-card img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block; /* prevents inline spacing issues */
}

/* CONTENT */
.service-card .content {
  padding: 20px;
  flex: 1; /* ensures content area is visible */
}

.service-card h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #0a2a43;
}

.service-card p {
  font-size: 15px;
  line-height: 1.6;
  color: #555;
}

/* 📱 MOBILE FIX */
@media (max-width: 768px) {
  .service-card img {
    height: 200px;
  }

  .service-card h3 {
    font-size: 20px;
  }

.service-card .content { background: red; }

}
