.livestock-page .page-hero {
  --hero-image: url('/assets/images/industry-livestock-backup-power.jpg');
  min-height: clamp(600px, 62vh, 700px);
}

.livestock-page .page-hero .container {
  min-height: inherit;
  display: grid;
  align-content: center;
  justify-items: start;
  padding-top: 104px;
  padding-bottom: 72px;
}

.livestock-page .page-hero h1 {
  max-width: 860px;
  font-size: clamp(40px, 4.4vw, 64px);
  line-height: 1.08;
  letter-spacing: 0;
}

.livestock-page .page-hero p:not(.eyebrow) {
  max-width: 760px;
}

.livestock-risk-grid,
.livestock-step-grid,
.livestock-input-grid,
.livestock-related-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.livestock-step-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  counter-reset: livestock-step;
}

.livestock-risk-card,
.livestock-step,
.livestock-input-card,
.livestock-related-card {
  min-width: 0;
  padding: 24px;
  border: 1px solid rgba(8, 34, 71, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 14px 34px rgba(0, 30, 80, 0.06);
}

.livestock-risk-card strong,
.livestock-input-card strong {
  display: block;
  margin-bottom: 10px;
  color: #0b438a;
  font-size: 14px;
  font-weight: 900;
}

.livestock-risk-card h3,
.livestock-step h3,
.livestock-input-card h3,
.livestock-related-card h3 {
  margin: 0 0 10px;
  color: var(--navy-deep);
  font-size: 21px;
  line-height: 1.3;
}

.livestock-risk-card p,
.livestock-step p,
.livestock-input-card p,
.livestock-related-card p {
  margin: 0;
  color: #5b6675;
  line-height: 1.75;
}

.livestock-step::before {
  counter-increment: livestock-step;
  content: "0" counter(livestock-step);
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  background: var(--yellow);
  color: var(--navy-deep);
  font-weight: 900;
}

.livestock-related-card a {
  display: inline-flex;
  margin-top: 16px;
  padding-bottom: 3px;
  border-bottom: 2px solid var(--yellow);
  color: #073f82;
  font-weight: 900;
  text-decoration: none;
}

.livestock-case-outcome {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.livestock-case-outcome div {
  padding: 22px;
  border-left: 5px solid var(--yellow);
  background: #fff;
  box-shadow: 0 12px 30px rgba(0, 30, 80, 0.06);
}

.livestock-case-outcome strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy-deep);
  font-size: 18px;
}

.livestock-case-outcome span {
  color: #5b6675;
  line-height: 1.65;
}

@media (max-width: 980px) {
  .livestock-risk-grid,
  .livestock-input-grid,
  .livestock-related-grid,
  .livestock-step-grid,
  .livestock-case-outcome {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 700px) {
  .livestock-page .page-hero {
    min-height: 660px;
  }

  .livestock-page .page-hero .container {
    padding-top: 230px;
    padding-bottom: 48px;
  }

  .livestock-page .page-hero h1 {
    font-size: clamp(30px, 8.2vw, 40px);
  }

  .livestock-risk-grid,
  .livestock-input-grid,
  .livestock-related-grid,
  .livestock-step-grid,
  .livestock-case-outcome {
    grid-template-columns: 1fr;
  }
}
