/* Solutions + Industries classic section headers. Scoped to #magtek-home. */

#magtek-home .solutions-overview,
#magtek-home .industries-section {
  padding-top: 60px;
  padding-bottom: 60px;
  background: #fff;
}

#magtek-home .solutions-overview .container,
#magtek-home .industries-section .container {
  width: 100%;
  max-width: 1170px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 15px;
  padding-right: 15px;
}

#magtek-home .solutions-overview .text-center,
#magtek-home .industries-section .text-center {
  text-align: center;
}

#magtek-home .solutions-overview .mb-4,
#magtek-home .industries-section .mb-4 {
  margin-bottom: 40px;
}

#magtek-home .solutions-overview .section-title,
#magtek-home .industries-section .section-title {
  margin: 0 auto 16px;
  padding: 0 0 24px;
  max-width: 920px;
  font-size: clamp(28px, 3.2vw, 45px);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.02em;
  color: #263c50;
  position: relative;
}

#magtek-home .solutions-overview .section-title::after,
#magtek-home .industries-section .section-title::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 80px;
  height: 4px;
  transform: translateX(-50%);
  border-radius: 2px;
  background: linear-gradient(135deg, #b01035 0%, #d21242 100%);
}

#magtek-home .solutions-overview .section-subtitle,
#magtek-home .industries-section .section-subtitle {
  max-width: 800px;
  margin: 0 auto;
  font-size: 20px;
  line-height: 1.7;
  font-weight: 400;
  color: #4a5568;
}

/* Solutions cards reuse the shared MagTek .small-card (magtek-cards.css).
   Only the grid container and the headquarters image framing live here. */
#magtek-home .hp-image-cards {
  display: grid;
  gap: 28px 24px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 0;
  list-style: none;
}

#magtek-home .hp-image-cards .small-card {
  margin-bottom: 0;
  height: 100%;
  /* Tighten the icon→title gap (shared default is 2.5rem). */
  --overlapping-card-icon-title-gap: 1rem;
}

/* The global heading reset adds a top margin that stacked on the card's own
   icon-clearing padding — that was the "space under the icon". */
#magtek-home .hp-image-cards .small-card-content h3 {
  margin-top: 0;
}

#magtek-home .hp-image-cards .small-card-image img.hp-card-img--headquarters {
  object-position: center 40%;
}

@media (max-width: 991px) {
  #magtek-home .hp-image-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 767px) {
  #magtek-home .hp-image-cards {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 767px) {
  #magtek-home .solutions-overview .section-subtitle,
  #magtek-home .industries-section .section-subtitle {
    font-size: 18px;
  }
}
