.services {
  background: var(--gray-50);
}

.section-header {
  text-align: center;
  margin-bottom: 56px;
}

.section-header .section-subtitle {
  margin: 0 auto;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

/* last card full-width if odd count */
.services-grid article:last-child:nth-child(odd) {
  grid-column: 1 / -1;
  max-width: 560px;
  margin: 0 auto;
  width: 100%;
}

.service-card {
  display: flex;
  align-items: flex-start;
  gap: 20px;
  padding: 28px 24px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-left: 4px solid var(--accent);
  border-radius: var(--radius);
  transition:
    transform var(--transition),
    box-shadow var(--transition);
  cursor: default;
}

.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.service-icon {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform var(--transition);
}

.service-icon svg {
  width: 26px;
  height: 26px;
}

.service-card:hover .service-icon {
  transform: scale(1.1);
}

.service-body h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 8px;
  line-height: 1.3;
}

.service-body p {
  font-size: 0.875rem;
  color: var(--gray-600);
  line-height: 1.65;
}

/* ── Clinic Gallery ── */
.clinic-gallery {
  overflow: hidden;
  margin-bottom: 56px;
  border-radius: var(--radius);
  mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
}

.gallery-track {
  display: flex;
  gap: 16px;
  width: max-content;
  animation: gallery-scroll 22s linear infinite;
}

.gallery-track:hover {
  animation-play-state: paused;
}

.gallery-slide {
  position: relative;
  flex-shrink: 0;
  width: 320px;
  height: 210px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

.gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
  display: block;
}

.gallery-slide:hover img {
  transform: scale(1.06);
}

.gallery-slide span {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 10px 14px;
  background: linear-gradient(transparent, rgba(0,0,0,0.55));
  color: #fff;
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.02em;
}

@keyframes gallery-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(calc(-50%)); }
}

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

  .services-grid article:last-child:nth-child(odd) {
    max-width: 100%;
  }

  .gallery-slide {
    width: 240px;
    height: 160px;
  }
}
