.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  margin: 2rem 0;
}

.service-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  padding: 0 !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
}

/* Header must touch the outer edge */
.service-card > .service-card__header {
  display: block;
  width: 100%;
  margin: 0 !important;
  background: linear-gradient(135deg, #1f3a5f 0%, #0f2a3d 100%) !important;
  padding: 0.95rem 1.1rem;
}

/* Make the header visually fill to the boundary (covers the top border pixel) */
.service-card > .service-card__header {
  position: relative;
}
.service-card > .service-card__header::before {
  content: "";
  position: absolute;
  left: -1px;
  right: -1px;
  top: -1px;
  height: 2px; /* just enough to visually "eat" the border line */
  background: inherit;
}
.service-card > .service-card__header > * {
  position: relative;
  z-index: 1;
}

/* Force title white (global heading rules can't win) */
.service-card .service-card__title,
.service-card .service-card__title * {
  color: #fff !important;
}

.service-card .service-card__title {
  margin: 0 !important;
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 1.15rem;
  font-weight: 600;
  line-height: 1.25;
}

/* Icon stays white */
.service-card .service-card__icon {
  width: 30px;
  height: 30px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  background: rgba(255, 255, 255, 0.16);
  color: #fff !important;
}

.service-card .service-card__icon svg {
  width: 18px;
  height: 18px;
  stroke: currentColor;
}

.service-card .service-card__body {
  padding: 1.25rem 1.25rem 1.4rem;
}

.service-card .service-card__body p {
  margin: 0 0 1rem;
  color: #4b5563;
  line-height: 1.6;
}

.service-card .service-card__body ul {
  list-style: none;
  padding: 0;
  margin: 1rem 0;
}

.service-card .service-card__body ul li {
  position: relative;
  padding-left: 1.5rem;
  margin: 0.4rem 0;
  color: #374151;
}

.service-card .service-card__body ul li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: #d6b46c;
  font-weight: 700;
}

.service-card .btn {
  margin-top: 1.1rem;
  width: 100%;
  text-align: center;
  font-size: 0.95rem;
}
