#home-services {
  background: #f0f7fc;
  padding-block: 80px;
}
#home-services .home-services-heading {
  text-align: center;
  max-width: 900px;
  margin: 0 auto 44px;
}
#home-services .eyebrow { color: #007dcc; margin-bottom: 16px; }
#home-services h2 { font-size: 42px; line-height: 1.2; letter-spacing: 0; }
#home-services h2 span { color: #007dcc; }
body main #home-services h2::after { margin-inline: auto; }
#home-services .home-services-track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  align-items: stretch;
  padding: 4px 0 16px;
  overscroll-behavior-x: contain;
}
#home-services .home-services-track::-webkit-scrollbar { display: none; }
#home-services .home-service-card {
  flex: 0 0 calc((100% - 48px) / 3);
  min-width: 0;
  position: relative;
  display: grid;
  grid-template-columns: 1fr 114px;
  grid-template-rows: 70px minmax(108px, auto) 1fr 44px;
  gap: 16px 12px;
  padding: 28px;
  border: 1px solid #d7e5f0;
  border-radius: 8px;
  background: #fff;
  scroll-snap-align: start;
  scroll-margin: 0;
  transition: border-color .2s, box-shadow .2s;
}
#home-services .home-service-card:hover,
#home-services .home-service-card:focus-within {
  border-color: #007dcc;
  box-shadow: 0 8px 16px rgba(5, 51, 85, .08);
}
#home-services .home-service-image {
  grid-column: 2;
  grid-row: 1 / 3;
  width: 114px;
  height: 166px;
  object-fit: cover;
  border-radius: 0 8px 8px 40px;
  background: #e1f1fb;
}
#home-services .home-service-number {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 54px;
  height: 54px;
  border-radius: 50%;
  color: #fff;
  background: #007dcc;
  font-size: 20px;
  font-weight: 700;
}
#home-services .home-service-card:nth-child(even) .home-service-number { background: #083c69; }
#home-services .home-service-card h3 {
  grid-column: 1;
  grid-row: 2;
  font-size: 23px;
  line-height: 1.3;
  letter-spacing: 0;
  margin: 0;
  overflow-wrap: anywhere;
  align-self: start;
}
#home-services .home-service-card p {
  grid-column: 1 / -1;
  grid-row: 3;
  font-size: 16px;
  line-height: 1.7;
  margin: 0;
  color: #36546c;
}
#home-services .home-service-link {
  grid-column: 2;
  grid-row: 4;
  justify-self: end;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: #007dcc;
}
#home-services .home-service-link img { width: 22px; height: 22px; filter: brightness(0) invert(1); }
#home-services .home-service-link:hover { background: #083c69; }
#home-services .home-services-controls { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 20px; }
#home-services .home-services-arrows { display: flex; gap: 8px; }
#home-services .home-services-controls button {
  border: 1px solid #c1d7e8;
  background: #fff;
  border-radius: 50%;
  width: 44px;
  height: 44px;
  padding: 11px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
#home-services .home-services-controls button:hover { background: #dceefb; border-color: #007dcc; }
#home-services .home-services-controls button img { display: block; width: 20px; height: 20px; }
#home-services .home-services-dots { display: flex; flex-wrap: wrap; justify-content: center; gap: 0; }
#home-services .home-services-dots button { width: 24px; height: 32px; padding: 8px; border: 0; background: transparent; }
#home-services .home-services-dots button::after { content: ''; display: block; width: 7px; height: 7px; background: #b0c9dc; border-radius: 50%; }
#home-services .home-services-dots button[aria-current="true"]::after { background: #007dcc; width: 10px; height: 10px; }
#home-services :is(a, button):focus-visible { outline: 3px solid #007dcc; outline-offset: 3px; }
@media (max-width: 1100px) {
  #home-services .home-service-card { flex-basis: calc((100% - 24px) / 2); }
}
@media (max-width: 640px) {
  #home-services { padding-block: 52px; }
  #home-services h2 { font-size: 30px; }
  #home-services .home-services-heading { margin-bottom: 28px; }
  #home-services .home-service-card { flex-basis: 100%; padding: 24px; grid-template-columns: 1fr 100px; }
  #home-services .home-service-image { width: 100px; }
  #home-services .home-service-card h3 { font-size: 22px; }
  #home-services .home-services-controls { gap: 8px; flex-wrap: wrap; }
  #home-services .home-services-dots { order: 3; flex-basis: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  #home-services .home-service-card { transition: none; }
}
