.specialization {
  background: #fff;
  padding: var(--space-5) 0 var(--space-5);
}

.specialization-container {
  max-width: 1939px;
  margin: 0 auto;
  /*padding: 50px 200px; */
  padding-left: 7%;
    padding-right: 7%;
}

.specialization h2 {
  text-align: center;
  font-size: 2rem;
  letter-spacing: .6px;
  color: #111;
  margin-bottom: var(--space-3);
}

/* 5-column responsive grid */
.spec-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(160px, 1fr));
  gap: 3.2%;
  align-items: start;
}

.spec-card {
  background: #fff;
  transition: transform .25s ease, box-shadow .25s ease;
  text-align: center;
}

.spec-card:hover {
  transform: translateY(-3px);
  transform: scale(1.05);
  /*box-shadow: 0 10px 30px rgba(0,0,0,.12); */
}

.spec-image-wrap {
  width: 100%;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: #f4f4f4;
  margin-bottom: var(--space-2);
}

.spec-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1);
   object-position: center;
  transition: transform 420ms ease;
}

/* Hover: gentle zoom (no shake) */
.image-wrap:hover img { transform: scale(1.06); }

.spec-card h3 {
  font-size: 1.25rem;
  letter-spacing: .4px;
  color: #222;
  line-height: 1.25;
}

/* tighten the gap with previous section if needed */
#services + .specialization { margin-top: -8px; }

/* Responsive */
@media (max-width: 1200px) {
  .spec-grid { grid-template-columns: repeat(4, 1fr); }
}
@media (max-width: 960px) {
  .spec-grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 700px) {
  .spec-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
  .spec-grid { grid-template-columns: 1fr; }
}
