/* Industry cards share the site's section typography, with plain backgrounds. */
.industry-section {
  --industry-photo-ratio: 2.15;
  padding-block: 56px;
}

/* Contain the existing banner's slide-in artwork on narrow screens. */
.page-industry .main-feature {
  overflow: hidden;
}

.industry-section .home-section-heading {
  margin-bottom: 32px;
  text-align: center;
}

.industry-section .home-section-eyebrow {
  display: none !important;
}

.industry-section h2 {
  font-family: var(--font-family);
  font-size: clamp(28px, 3.2vw, 42px);
  font-weight: 750;
  line-height: 1.28;
  letter-spacing: -0.01em;
  color: #0b1426;
  text-align: center;
}

.industry-section-description {
  max-width: 900px;
  margin: 18px auto 0;
}

.industry-section .industry-section-description p {
  color: var(--home-muted);
  font-size: 18px;
  line-height: 1.65;
  text-wrap: pretty;
}

.industry-cards-grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 20px;
}

.industry-card {
  display: flex;
  flex: 0 0 calc((100% - 40px) / 3);
  min-width: 0;
  flex-direction: column;
  padding: 20px;
  border: 1px solid #f6eef0;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 6px 28px #4b172008;
}

.industry-columns-2 .industry-card {
  flex-basis: calc((100% - 20px) / 2);
}

.industry-columns-4 .industry-card {
  flex-basis: calc((100% - 60px) / 4);
}

.industry-card-heading {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  min-height: 84px;
  margin-bottom: 18px;
}

.industry-card-icon {
  display: grid;
  width: 70px;
  height: 70px;
  place-items: center;
  border-radius: 50%;
  background: #ffe9ec;
  color: var(--home-red);
  font-size: 32px;
}

.industry-card-icon > img {
  display: block;
  width: 40px;
  height: 40px;
  object-fit: contain;
  filter: brightness(0) saturate(100%) invert(16%) sepia(97%) saturate(6500%) hue-rotate(352deg) brightness(103%) contrast(116%);
}

.industry-card-icon i {
  color: inherit;
}

.industry-section .industry-card-heading h3 {
  color: var(--home-ink);
  font-size: 21px;
  font-weight: 750;
  line-height: 1.4;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.industry-card-description {
  flex: 1;
  margin-bottom: 22px;
}

.industry-section .industry-card-description p {
  color: #53617a;
  font-size: 17px;
  line-height: 1.6;
  text-wrap: pretty;
}

.industry-section .industry-card-description p + p {
  margin-top: 14px;
}

.industry-card-photo {
  display: block;
  width: 100%;
  height: auto;
  margin-top: auto;
  aspect-ratio: var(--industry-photo-ratio);
  border-radius: 14px;
  object-fit: cover;
}

.industry-challenges {
  --industry-photo-ratio: 1.65;
}

.industry-challenges .industry-card-heading {
  min-height: 110px;
}

.industry-challenges .industry-card-heading h3,
.industry-reasons .industry-card-heading h3 {
  font-size: 24px;
}

.industry-reasons {
  --industry-photo-ratio: 2.55;
}

.industry-columns-4 .industry-card-heading {
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 12px;
}

.industry-columns-4 .industry-card-icon {
  width: 56px;
  height: 56px;
}

.industry-columns-4 .industry-card-icon > img {
  width: 32px;
  height: 32px;
}

.industry-section .industry-columns-4 h3 {
  font-size: 19px;
}

@media (max-width: 1100px) {
  .industry-card { padding: 18px; }
  .industry-card-heading { grid-template-columns: 58px minmax(0, 1fr); gap: 14px; }
  .industry-card-icon { width: 58px; height: 58px; }
  .industry-card-icon > img { width: 34px; height: 34px; }
  .industry-section .industry-card-heading h3 { font-size: 20px; }
  .industry-section .industry-card-description p { font-size: 16px; }
}

@media (max-width: 900px) {
  .industry-section { padding-block: 44px; }
  .industry-cards-grid .industry-card { flex-basis: calc((100% - 20px) / 2); }
  .industry-card-heading { min-height: 82px; }
  .industry-challenges .industry-card-heading { min-height: 100px; }
}

@media (max-width: 600px) {
  .industry-section { padding-block: 32px; }
  .industry-section .home-section-heading { margin-bottom: 24px; }
  .industry-section .home-section-eyebrow { display: none !important; }
  .industry-cards-grid { gap: 16px; }
  .industry-cards-grid .industry-card { flex-basis: 100%; padding: 18px; }
  .industry-cards-grid .industry-card-heading { grid-template-columns: 58px minmax(0, 1fr); min-height: 70px; gap: 14px; margin-bottom: 16px; }
  .industry-card-description { margin-bottom: 20px; }
  .industry-section .industry-section-description p { font-size: 16px; }
}
