/* Fill the available grid track when the desktop flex cards become a grid. */
@media screen and (max-width: 991px) {
  .services_cards > .service_card {
    width: 100%;
    min-width: 0;
  }
  .service_list,
  .services_card {
    min-width: 0;
    width: 100%;
  }
}

/* Apply the same mobile stacking to both text-and-image feature sections. */
@media screen and (max-width: 767px) {
  .div-block {
    grid-template-columns: minmax(0, 1fr);
    gap: 2rem;
  }
  .div-block > * {
    min-width: 0;
    max-width: 100%;
  }
}

/* Keep the homepage hero in the first screen with the shared header above it. */
.pb-header + .main-wrapper .section_hero {
  margin-top: 0;
  min-height: calc(100svh - 94px - 1.5rem);
}

@media screen and (max-width: 900px) {
  .pb-header + .main-wrapper .section_hero {
    min-height: calc(100svh - 78px - 1rem);
    padding-block: 4rem;
  }
}
