.service-section {
  padding: 55px 5%;
  background: #ffffff;
  text-align: center;
}

.service-header {
  max-width: 900px;
  margin: 0 auto 60px;
}

.service-badge {
  display: inline-block;
  padding: 6px 14px;
  background: #ffe5e5;
  color: #d71920;
  font-size: 16px;
  font-weight: 500;
  border-radius: 6px;
  margin-bottom: 30px;
}

.service-header h2 {
  font-size: 36px;
  font-weight: 700;
  margin: 12px 0;
  color: #111;
}

.service-header p {
  font-size: 15px;
  font-weight: 500;
  color: #555;
  line-height: 1.6;
  margin-top: 1rem;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.service-card {
  position: relative;
  border-radius: 10px;
}

.service-image {
  border-radius: 10px;
  overflow: hidden;
}

.service-card img {
  width: 100%;
  height: 420px;
  object-fit: cover;
  display: block;
}

.service-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  align-items:center;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(100, 100, 100, 0.25) 30%,
    rgba(50, 50, 50, 0.5) 60%,
    rgba(0, 0, 0, 0.85) 100%
  );


  color: #fff;
  text-align: left;

  display: flex;              /* 🔑 */
  flex-direction: column;
  justify-content: flex-start;
}

.service-overlay h3 {
  font-size: 18px;
  margin-bottom: 8px;
  font-weight: 700;
  text-align: center;
}

.service-overlay p {
  text-align: center;
  font-size: 14px;
  line-height: 1.5;
  opacity: 0.95;
}

.service-header h1 {
  font-size: 30px;
  font-weight: 700;
}

/* ===============================
   MOBILE HORIZONTAL SERVICES
================================ */
@media (max-width: 1019px) {
  .service-badge {
    font-size: 15px;
    font-weight: 400;
    margin-bottom: 10px;
  }

  .service-header {
    padding: 0 20px;
    margin-bottom: 40px;
  }

  .service-header h2 {
    font-size: 26px;
  }

  .service-header p {
    font-size: 12px;
    font-weight: 400;
  }

  /* Horizontal scroll */
  .service-grid {
    display: flex;
    gap: 16px;
    padding: 0 20px 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  /* Hide scrollbar */
  .service-grid::-webkit-scrollbar {
    display: none;
  }

  .service-grid {
    scrollbar-width: none;
  }

  /* Card sizing */
  .service-card {
    min-width: 260px;
    max-width: 260px;
    flex-shrink: 0;
    scroll-snap-align: start;
  }

  .service-card img {
    height: 340px;
  }

  .service-overlay {
    padding: 8px 5px;
  }

  .service-number {
    width: 32px;
    height: 32px;
    font-size: 13px;
  }

  .service-overlay h3 {
    font-size: 16px;
  }

  .service-overlay p {
    font-size: 12px;
  }

  .service-header h1 {
    font-size: 25px;
    font-weight: 700;
  }
}

.cert-card h3 {
  font-size: 17px;
  font-weight: 700;
  margin-top: 18px;   /* 🔽 reduced from 28px */
  margin-bottom: 8px;
  color: #111;
}

.cert-card {
  margin-top: -8px;
}

@media (max-width: 1019px) {
  .cert-card h3 {
    font-size: 16px;
    margin-top: 16px;
  }

  .service-section {
    padding: 30px 5%;
  }
}

