.legacy-home-slideshow {
  position: relative;
  height: 500px;
  overflow: hidden;
  isolation: isolate;
  background: #1b1b1b;
  color: #fff;
  font-family: Poppins, Arial, sans-serif;
}

.legacy-slideshow-track {
  display: flex;
  height: 100%;
  transition: transform 0.6s ease;
}

.legacy-slide-filter-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

.legacy-slide {
  position: relative;
  display: flex;
  flex: 0 0 100%;
  min-width: 0;
  height: 100%;
  align-items: center;
  overflow: hidden;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.legacy-slide::before {
  position: absolute;
  inset: 0;
  z-index: 0;
  content: "";
}

.legacy-slide--iso {
  background-image: url("public/app-assets/images/banner/isotrainingbanner.jpeg");
}

.legacy-slide--iosh {
  background-image: url("public/app-assets/images/banner/hero-workers.webp");
  background-position: center 20%;
}

.legacy-slide--iso::before,
.legacy-slide--iosh::before {
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.4) 55%, rgba(0, 0, 0, 0.04));
}

.legacy-slide--qhse {
  background-image: url("public/app-assets/images/banner/home-hero-woman-bg.jpg");
}

.legacy-slide--qhse::before {
  background: linear-gradient(270deg, rgba(0, 0, 0, 0.72), rgba(0, 0, 0, 0.42) 55%, rgba(0, 0, 0, 0.04));
}

.legacy-slide--nebosh {
  background-image: url("public/app-assets/images/banner/home-hero-background-03.jpg");
  color: #252525;
}

.legacy-slide-content {
  position: relative;
  z-index: 1;
  display: flex;
  width: min(1200px, calc(100% - 120px));
  height: 100%;
  align-items: center;
  margin: 0 auto;
}

.legacy-slide-copy {
  width: 52%;
  max-width: 600px;
}

.legacy-slide--qhse .legacy-slide-copy {
  margin-left: auto;
}

.legacy-slide-subtitle,
.legacy-slide-title,
.legacy-slide-description {
  margin-top: 0;
}

.legacy-slide-subtitle {
  margin-bottom: 0.6rem;
  font-size: 1.75rem;
  font-weight: 700;
  line-height: 1.2;
}

.legacy-slide-title {
  margin-bottom: 1rem;
  font-size: clamp(2.3rem, 4vw, 3rem);
  font-weight: 700;
  line-height: 1.2;
}

.legacy-slide-description {
  margin-bottom: 1.5rem;
  font-size: 1.0625rem;
  line-height: 1.8;
}

.legacy-slide-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.legacy-slide-button {
  display: inline-block;
  padding: 0.85rem 2rem;
  border: 1px solid #0b7807;
  border-radius: 3px;
  background: #0b7807;
  color: #fff;
  font-size: 0.8125rem;
  line-height: 1;
  text-decoration: none;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.legacy-slide-button:hover,
.legacy-slide-button:focus-visible {
  background: #086105;
  color: #fff;
}

.legacy-slide-button--outline {
  border-color: #fff;
  background: #fff;
  color: #0b7807;
}

.legacy-slide-button--outline:hover,
.legacy-slide-button--outline:focus-visible {
  border-color: #0b7807;
  background: #0b7807;
  color: #fff;
}

.legacy-slide--nebosh .legacy-slide-copy {
  width: 50%;
}

.legacy-slide--iso .legacy-slide-logo,
.legacy-slide--nebosh .legacy-slide-logo,
.legacy-slide--iosh .legacy-slide-logo {
  display: block;
  width: clamp(120px, 14vw, 180px);
  max-width: 100%;
  height: auto;
  margin-bottom: 0.9rem;
  object-fit: contain;
  object-position: left center;
}

.legacy-slide--iosh .legacy-slide-logo {
  width: clamp(90px, 8vw, 130px);
  margin-bottom: 0.5rem;
}

.legacy-slide--iso .legacy-slide-logo {
  width: clamp(150px, 17vw, 230px);
}

.legacy-slide-logo-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.9rem;
}

.legacy-slide-logo-row img {
  display: block;
  width: clamp(62px, 7vw, 92px);
  height: clamp(62px, 7vw, 92px);
  filter: url(#legacy-logo-sharpen);
  object-fit: contain;
}

.legacy-slide--iosh .legacy-slide-title {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.1;
}

.legacy-slide--nebosh .legacy-slide-title {
  font-size: 2.6rem;
}

.legacy-slide-figure {
  position: absolute;
  right: 2%;
  bottom: 0;
  z-index: 1;
  display: block;
  width: auto;
  max-width: 42%;
  height: 96%;
  object-fit: contain;
  object-position: bottom;
}

.legacy-slideshow-control {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.38);
  color: #fff;
  cursor: pointer;
  transform: translateY(-50%);
}

.legacy-slideshow-control:hover,
.legacy-slideshow-control:focus-visible {
  background: rgba(0, 0, 0, 0.72);
}

.legacy-slideshow-control::before {
  width: 10px;
  height: 10px;
  border: solid currentColor;
  border-width: 0 3px 3px 0;
  content: "";
}

.legacy-slideshow-control--previous {
  left: 18px;
}

.legacy-slideshow-control--previous::before {
  transform: rotate(135deg);
}

.legacy-slideshow-control--next {
  right: 18px;
}

.legacy-slideshow-control--next::before {
  transform: rotate(-45deg);
}

@media (max-width: 760px) {
  .legacy-home-slideshow {
    height: 560px;
  }

  .legacy-slide-content {
    width: calc(100% - 88px);
  }

  .legacy-slide-copy,
  .legacy-slide--nebosh .legacy-slide-copy {
    width: 100%;
    max-width: 600px;
  }

  .legacy-slide--qhse .legacy-slide-copy {
    margin-left: 0;
  }

  .legacy-slide-subtitle {
    font-size: 1.25rem;
  }

  .legacy-slide-title {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .legacy-slide--nebosh .legacy-slide-title {
    font-size: clamp(2rem, 8vw, 2.6rem);
  }

  .legacy-slide-description {
    font-size: 0.95rem;
    line-height: 1.65;
  }

  .legacy-slide-figure {
    display: none;
  }

  .legacy-slideshow-control {
    width: 36px;
    height: 36px;
  }

  .legacy-slideshow-control--previous {
    left: 8px;
  }

  .legacy-slideshow-control--next {
    right: 8px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .legacy-slideshow-track {
    transition: none;
  }
}

/* Homepage refresh */
main.page-transition {
  --home-ink: #17251d;
  --home-muted: #66736b;
  --home-green: #246a43;
  --home-border: #e6ece7;
  color: var(--home-ink);
}

main.page-transition > div > section.legacy-home-slideshow {
  width: min(1440px, calc(100% - 48px));
  height: clamp(500px, 52vw, 650px);
  margin: 24px auto 0;
  border-radius: 24px;
  background: #17251d;
  box-shadow: 0 24px 60px rgba(16, 40, 25, 0.18);
}

main.page-transition .legacy-slide--iso::before,
main.page-transition .legacy-slide--iosh::before {
  background: linear-gradient(90deg, rgba(10, 28, 17, 0.82), rgba(10, 28, 17, 0.58) 52%, rgba(10, 28, 17, 0.08));
}

main.page-transition .legacy-slide--qhse::before {
  background: linear-gradient(270deg, rgba(10, 28, 17, 0.82), rgba(10, 28, 17, 0.56) 52%, rgba(10, 28, 17, 0.05));
}

main.page-transition .legacy-slide--nebosh {
  color: #fff;
}

main.page-transition .legacy-slide--nebosh::before {
  background: linear-gradient(90deg, rgba(10, 28, 17, 0.82), rgba(10, 28, 17, 0.5) 55%, rgba(10, 28, 17, 0.12));
}

main.page-transition .legacy-slide-content {
  width: min(1180px, calc(100% - 144px));
}

main.page-transition .legacy-slide-copy,
main.page-transition .legacy-slide--nebosh .legacy-slide-copy {
  width: 58%;
  max-width: 650px;
}

main.page-transition .legacy-slide--qhse .legacy-slide-copy {
  margin-left: auto;
}

main.page-transition .legacy-slide-subtitle {
  margin-bottom: 0.9rem;
  color: #f7c64a;
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

main.page-transition .legacy-slide-title,
main.page-transition .legacy-slide--nebosh .legacy-slide-title {
  margin-bottom: 1.15rem;
  font-size: clamp(2.8rem, 5vw, 4.25rem);
  font-weight: 750;
  letter-spacing: -0.045em;
  line-height: 1.04;
}

main.page-transition .legacy-slide--iosh .legacy-slide-title {
  font-size: clamp(2rem, 3.2vw, 3.2rem);
  line-height: 1.1;
}

main.page-transition .legacy-slide-description {
  max-width: 570px;
  margin-bottom: 1.8rem;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.05rem;
  line-height: 1.75;
}

main.page-transition .legacy-slide-actions {
  gap: 0.8rem;
}

main.page-transition .legacy-slide-button {
  padding: 0.95rem 1.5rem;
  border: 1px solid var(--home-green);
  border-radius: 6px;
  background: var(--home-green);
  font-size: 0.86rem;
  font-weight: 700;
}

main.page-transition .legacy-slide-button:hover,
main.page-transition .legacy-slide-button:focus-visible {
  border-color: #f7c64a;
  background: #f7c64a;
  color: #17251d;
}

main.page-transition .legacy-slide-button--outline {
  border-color: rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

main.page-transition .legacy-slide-button--outline:hover,
main.page-transition .legacy-slide-button--outline:focus-visible {
  border-color: #f7c64a;
  background: #f7c64a;
  color: #17251d;
}

main.page-transition .legacy-slideshow-control {
  width: 48px;
  height: 48px;
  background: rgba(10, 28, 17, 0.5);
  backdrop-filter: blur(8px);
}

main.page-transition > div > section:nth-of-type(2) {
  width: min(1240px, calc(100% - 48px));
  margin: 5rem auto 3rem !important;
  padding: 3rem !important;
  border: 1px solid var(--home-border);
  border-radius: 22px;
  background: #f7f9f7;
  grid-template-columns: 1fr 1fr !important;
  gap: 3rem !important;
}

main.page-transition > div > section:nth-of-type(2) img {
  width: 100%;
  border-radius: 16px;
  object-fit: cover;
}

main.page-transition > div > section:nth-of-type(2) h2 {
  color: var(--home-green) !important;
  font-size: 0.88rem !important;
  font-weight: 800 !important;
  letter-spacing: 0.14em !important;
}

main.page-transition > div > section:nth-of-type(2) p {
  color: var(--home-muted);
  line-height: 1.85;
}

main.page-transition > div > section:nth-of-type(3),
main.page-transition > div > section:nth-of-type(4),
main.page-transition > div > section:nth-of-type(5),
main.page-transition > div > section:nth-of-type(6),
main.page-transition > div > section:nth-of-type(7),
main.page-transition > div > section:nth-of-type(8),
main.page-transition > div > section:nth-of-type(9),
main.page-transition > div > section:nth-of-type(11) {
  padding: 4rem 2rem !important;
}

main.page-transition > div > section:nth-of-type(4) {
  border-top: 1px solid var(--home-border);
  border-bottom: 1px solid var(--home-border);
  background: #f5f8f5 !important;
}

main.page-transition > div > section:nth-of-type(5),
main.page-transition > div > section:nth-of-type(7),
main.page-transition > div > section:nth-of-type(9),
main.page-transition > div > section:nth-of-type(11) {
  background: #f7f9f7 !important;
}

main.page-transition > div > section:nth-of-type(3) [style*="display: grid"],
main.page-transition > div > section:nth-of-type(4) [style*="display: grid"],
main.page-transition > div > section:nth-of-type(5) [style*="display: grid"],
main.page-transition > div > section:nth-of-type(6) [style*="display: grid"],
main.page-transition > div > section:nth-of-type(7) [style*="display: grid"],
main.page-transition > div > section:nth-of-type(8) [style*="display: grid"],
main.page-transition > div > section:nth-of-type(9) [style*="display: grid"],
main.page-transition > div > section:nth-of-type(10) [style*="display: grid"],
main.page-transition > div > section:nth-of-type(11) [style*="display: grid"] {
  gap: 1.25rem !important;
}

main.page-transition > div > section:nth-of-type(5) h2,
main.page-transition > div > section:nth-of-type(6) h2,
main.page-transition > div > section:nth-of-type(7) h2,
main.page-transition > div > section:nth-of-type(8) h2,
main.page-transition > div > section:nth-of-type(9) h2,
main.page-transition > div > section:nth-of-type(10) h2,
main.page-transition > div > section:nth-of-type(11) h2 {
  color: var(--home-ink) !important;
  letter-spacing: -0.025em !important;
}

main.page-transition > div > section:nth-of-type(5) h3,
main.page-transition > div > section:nth-of-type(6) h3,
main.page-transition > div > section:nth-of-type(7) h3,
main.page-transition > div > section:nth-of-type(8) h3,
main.page-transition > div > section:nth-of-type(9) h3,
main.page-transition > div > section:nth-of-type(10) h3,
main.page-transition > div > section:nth-of-type(11) h3 {
  color: var(--home-green) !important;
}

main.page-transition > div > section:nth-of-type(10) {
  width: min(1240px, calc(100% - 48px));
  margin: 4rem auto 0 !important;
}

main.page-transition > div > section:nth-of-type(12) {
  padding: 2rem 1.5rem !important;
  background: #f2f6f2 !important;
}

@media (max-width: 760px) {
  main.page-transition > div > section.legacy-home-slideshow {
    width: calc(100% - 24px);
    height: 600px;
    margin-top: 12px;
    border-radius: 16px;
  }

  main.page-transition .legacy-slide-content {
    width: calc(100% - 72px);
  }

  main.page-transition .legacy-slide-copy,
  main.page-transition .legacy-slide--nebosh .legacy-slide-copy {
    width: 100%;
    max-width: 540px;
  }

  main.page-transition .legacy-slide-subtitle {
    font-size: 0.78rem;
  }

  main.page-transition .legacy-slide-title,
  main.page-transition .legacy-slide--nebosh .legacy-slide-title {
    font-size: clamp(2.25rem, 9vw, 3.25rem) !important;
  }

  main.page-transition .legacy-slide--iso .legacy-slide-logo,
  main.page-transition .legacy-slide--nebosh .legacy-slide-logo {
    width: clamp(120px, 34vw, 160px);
    margin-bottom: 0.65rem;
  }

  main.page-transition .legacy-slide--iso .legacy-slide-logo {
    width: clamp(150px, 44vw, 200px);
  }

  main.page-transition .legacy-slide--iosh .legacy-slide-logo {
    width: clamp(72px, 22vw, 96px);
    margin-bottom: 0.3rem;
  }

  main.page-transition .legacy-slide--iosh .legacy-slide-title {
    font-size: clamp(1.35rem, 5vw, 1.8rem) !important;
    line-height: 1.15;
  }

  main.page-transition .legacy-slide-description {
    font-size: 0.92rem;
    line-height: 1.65;
  }

  main.page-transition > div > section:nth-of-type(2) {
    width: calc(100% - 24px);
    margin: 2.5rem auto !important;
    padding: 1.4rem !important;
    grid-template-columns: 1fr !important;
    gap: 1.5rem !important;
  }

  main.page-transition > div > section:nth-of-type(3),
  main.page-transition > div > section:nth-of-type(4),
  main.page-transition > div > section:nth-of-type(5),
  main.page-transition > div > section:nth-of-type(6),
  main.page-transition > div > section:nth-of-type(7),
  main.page-transition > div > section:nth-of-type(8),
  main.page-transition > div > section:nth-of-type(9),
  main.page-transition > div > section:nth-of-type(11) {
    padding: 2.75rem 1rem !important;
  }
}

@media (max-width: 380px) {
  main.page-transition > div > section.legacy-home-slideshow {
    height: 640px;
  }
}

@media (prefers-reduced-motion: reduce) {
  main.page-transition .legacy-slide-button,
  main.page-transition .legacy-slideshow-control {
    transition: none;
  }
}

