/* =========================================================
   BASIC HAZMAT TRAINING (HZT) — active page stylesheet
   ========================================================= */

/* =========================================================
   01. Shared reset, variables and reusable elements
   ========================================================= */

/* Matches the FSM sizing reset and prevents default page whitespace. */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  position: relative;
  margin: 0;
  font-family: "Poppins", sans-serif;
}

/* Keep the previous Hazmat markup hidden while the HZT page is active. */
.kg-course-page.theme-hazmat,
.legacy-course-content {
  display: none;
}

.hzt-page {
  --hzt-navy: #001776;
  --hzt-ink: #17213a;
  /* Standard section descriptions use black; hero and dark-panel copy override this locally. */
  --hzt-copy: #000;
  --hzt-gold: #b87b19;
  --hzt-gold-deep: #87570c;
  --hzt-gold-soft: #fff3d9;
  --hzt-line: #dce3ed;
  color: var(--hzt-ink);
  font-family: "Poppins", Arial, sans-serif;
  line-height: 1.65;
}

.hzt-shell {
  width: min(1400px, calc(100% - 40px));
  margin-inline: auto;
}

.hzt-section,
.hzt-cta {
  padding-block: 50px;
}

.hzt-section > .hzt-shell,
.hzt-cta > .hzt-shell {
  width: min(1180px, calc(100% - 126px));
}

.hzt-heading {
  max-width: 760px;
  margin: 0 auto 32px;
  text-align: center;
}

.hzt-heading h2,
.hzt-split h2 {
  margin-bottom: 14px;
  color: var(--hzt-navy);
  font-size: clamp(28px, 4vw, 30px);
  font-weight: 800;
  line-height: 1.15;
}

.hzt-heading p,
.hzt-split p {
  color: var(--hzt-copy);
  font-size: 16px;
}

.hzt-rows p,
.hzt-cards p,
.hzt-ripnot-grid p,
.hzt-details-list p,
.hzt-faq-list article div {
  color: var(--hzt-copy);
  font-size: 14px;
}

.hzt-button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 12px 23px;
  border: 2px solid var(--hzt-navy);
  border-radius: 10px;
  background: var(--hzt-navy);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.hzt-button:hover {
  background: #000e51;
}

/* =========================================================
   02. Hero
   ========================================================= */

.hzt-hero {
  position: relative;
  isolation: isolate;
  display: grid;
  min-height: clamp(440px, 42vw, 640px);
  align-items: center;
  background: url("/images/basic_hazmat_training.webp") center / cover no-repeat;
  color: #fff;
}

.hzt-hero-overlay {
  position: absolute;
  z-index: -1;
  inset: 0;
  background:
    linear-gradient(
      90deg,
      rgba(0, 0, 0, 0.32),
      rgba(0, 0, 0, 0.3) 56%,
      rgba(0, 0, 0, 0.6)
    ),
    linear-gradient(90deg, rgba(184, 123, 25, 0.18), rgba(184, 123, 25, 0) 68%);
}

.hzt-hero-content {
  max-width: 900px;
  padding-block: 72px;
  transform: translateY(22px);
}

.hzt-label {
  display: block;
  width: fit-content;
  margin-bottom: 12px;
  padding: 9px 14px;
  border-radius: 999px;
  background: #fff;
  color: var(--hzt-navy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.hzt-hero h1 {
  max-width: 900px;
  margin-bottom: 14px;
  font-size: clamp(32px, 9vw, 72px);
  font-weight: 800;
  line-height: 1.1;
  text-shadow: 5px 5px 0 rgba(184, 123, 25, 0.62);
}

.hzt-hero p {
  max-width: 740px;
  margin-bottom: 30px;
  font-size: 18px;
}

/* =========================================================
   03. Understanding HAZMAT in the workplace
   ========================================================= */

.hzt-about {
  background: #f8fbfd;
}

.hzt-split {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(0, 1.1fr);
  gap: clamp(32px, 6vw, 78px);
  align-items: center;
}

.hzt-split figure,
.hzt-about-mobile-intro figure {
  overflow: hidden;
  border-radius: 18px;
  box-shadow: 0 16px 36px rgba(0, 23, 118, 0.1);
}

.hzt-split img,
.hzt-about-mobile-intro img {
  display: block;
  width: 100%;
  height: auto;
}

.hzt-split p + p {
  margin-top: 16px;
}

.hzt-about .hzt-split > div > p {
  text-align: justify;
  hyphens: auto;
}

/* This title/image pairing is used below the desktop breakpoint only. */
.hzt-about-mobile-intro {
  display: none;
}

/* =========================================================
   04. HAZMAT training topics
   ========================================================= */

.hzt-content {
  background: #f1f6fa;
}

.hzt-rows {
  display: grid;
  max-width: 1100px;
  gap: 10px;
  margin-inline: auto;
}

.hzt-rows article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 14px 18px;
  border: 1px solid var(--hzt-line);
  border-radius: 16px;
  background: #fff;
}

.hzt-rows span {
  display: grid;
  width: 35px;
  height: 35px;
  place-items: center;
  border-radius: 50%;
  background: var(--hzt-gold-soft);
  color: var(--hzt-gold-deep);
  font-size: 12px;
  font-weight: 800;
}

.hzt-rows h3,
.hzt-details-list h3 {
  margin-bottom: 3px;
  color: var(--hzt-navy);
  font-size: 17px;
}

/* =========================================================
   05. Workplace HAZMAT awareness benefits
   ========================================================= */

.hzt-benefits {
  background: #fff;
}

.hzt-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 15px;
}

.hzt-cards article,
.hzt-ripnot-grid article {
  padding: 24px 20px;
  border-top: 4px solid var(--hzt-gold);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 25px rgba(0, 23, 118, 0.06);
}

.hzt-cards i {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  margin: 0 auto 16px;
  border-radius: 50%;
  background: var(--hzt-gold-soft);
  color: var(--hzt-gold);
}

.hzt-cards h3,
.hzt-ripnot-grid h3 {
  margin-bottom: 8px;
  color: var(--hzt-navy);
  font-size: 17px;
  text-align: center;
}

.hzt-cards p,
.hzt-ripnot-grid p {
  text-align: justify;
  hyphens: auto;
}

/* =========================================================
   06. RIPNOT initial response principles
   ========================================================= */

.hzt-ripnot {
  background: #f8f5ef;
}

.hzt-ripnot-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 15px;
}

.hzt-ripnot-grid article {
  background: var(--hzt-navy);
  color: #fff;
}

.hzt-ripnot-grid strong {
  display: block;
  margin-bottom: 14px;
  color: #f3c97c;
  font-size: 28px;
  text-align: center;
}

.hzt-ripnot-grid h3 {
  color: #fff;
}

.hzt-ripnot-grid p {
  color: rgba(255, 255, 255, 0.82);
}

/* =========================================================
   07. Suitable participants
   ========================================================= */

.hzt-participants {
  background: #faf8f3;
}

/* =========================================================
   08. Training details
   ========================================================= */

.hzt-details {
  background: #edf4fa;
}

.hzt-details-intro > p {
  margin-bottom: 20px;
  text-align: justify;
  hyphens: auto;
}

.hzt-details-list {
  display: grid;
  gap: 10px;
}

.hzt-details-list article {
  padding: 15px 17px;
  border: 1px solid var(--hzt-line);
  border-left: 4px solid var(--hzt-gold);
  border-radius: 14px;
  background: #fff;
}

/* =========================================================
   09. Final CTA
   ========================================================= */

.hzt-cta {
  background: #fbf6eb;
  text-align: center;
}

.hzt-cta .hzt-shell {
  padding: clamp(28px, 5vw, 52px);
  border-radius: 22px;
  background: linear-gradient(112deg, #000e51, #001776 64%, #87570c);
  color: #fff;
}

.hzt-cta h2 {
  margin-bottom: 8px;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.16;
}

.hzt-cta p {
  max-width: 720px;
  margin: 0 auto 24px;
  font-size: 16px;
  text-align: center;
}

.hzt-button-light {
  border-color: #fff;
  background: #fff;
  color: var(--hzt-navy);
}

.hzt-cta .hzt-button-light:hover,
.hzt-cta .hzt-button-light:focus-visible {
  border-color: #f3c97c;
  background: #f3c97c;
  color: var(--hzt-navy);
}

.hzt-cta .hzt-button-light:active {
  border-color: #d7a84d;
  background: #d7a84d;
  color: var(--hzt-navy);
}

.hzt-cta .hzt-button-light:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

/* =========================================================
   10. Frequently asked questions
   ========================================================= */

.hzt-faq {
  background: #f2f6f9;
}

.hzt-faq-list {
  display: grid;
  max-width: 1050px;
  gap: 10px;
  margin: 40px auto 0;
}

.hzt-faq-list article {
  overflow: hidden;
  border: 1px solid #e2d7c4;
  border-radius: 12px;
  background: #fff;
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

.hzt-faq-list article:has(.hzt-question.active) {
  border-color: rgba(184, 123, 25, 0.55);
  box-shadow: 0 9px 22px rgba(0, 23, 118, 0.07);
}

.hzt-question {
  position: relative;
  width: 100%;
  padding: 20px 60px 20px 20px;
  border: 0;
  background: #fff;
  color: var(--hzt-ink);
  cursor: pointer;
  font:
    700 18px / 1.45 "Poppins",
    Arial,
    sans-serif;
  text-align: left;
}

.hzt-question::after {
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--hzt-gold);
  content: "+";
  font-size: 24px;
  font-weight: 800;
  line-height: 1;
  transform: translateY(-50%);
}

.hzt-question[aria-expanded="true"]::after {
  content: "−";
}

.hzt-question.active {
  border-bottom: 1px solid #ead8b5;
  color: var(--hzt-navy);
}

.hzt-question.active::after {
  color: var(--hzt-gold);
}

.hzt-faq-list article div {
  padding: 18px 20px 22px;
  border-top: 1px solid #ead8b5;
  background: #fff9ec;
  text-align: justify;
  animation: hzt-faq-open 0.3s ease-out;
}

@keyframes hzt-faq-open {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================================================
   11. Large tablet and desktop responsive rules
   ========================================================= */

@media (max-width: 1200px) {
  .hzt-shell {
    width: min(1400px, calc(100% - 120px));
  }

  .hzt-section > .hzt-shell,
  .hzt-cta > .hzt-shell {
    width: min(1180px, calc(100% - 120px));
  }

  .hzt-hero h1 {
    max-width: 500px;
    font-size: 50px;
  }
}

@media (max-width: 1199px) {
  .hzt-about-mobile-intro {
    display: block;
    margin-bottom: 26px;
  }

  .hzt-about-mobile-intro h2 {
    margin-bottom: 16px;
    color: var(--hzt-navy);
    font-size: 28px;
    text-align: center;
  }

  .hzt-about-mobile-intro figure {
    width: min(100%, 550px);
    margin-inline: auto;
  }

  .hzt-about .hzt-split {
    display: block;
  }

  .hzt-about .hzt-split > figure,
  .hzt-about .hzt-split > div > h2 {
    display: none;
  }
}

@media (max-width: 991px) {
  .hzt-shell {
    width: min(1400px, calc(100% - 80px));
  }

  .hzt-section > .hzt-shell,
  .hzt-cta > .hzt-shell {
    width: min(1180px, calc(100% - 80px));
  }

  .hzt-hero {
    min-height: 480px;
  }

  .hzt-hero-content {
    max-width: 600px;
  }

  .hzt-hero h1 {
    font-size: 45px;
  }

  .hzt-heading h2,
  .hzt-split h2 {
    font-size: 28px;
  }

  .hzt-label {
    font-size: 11px;
  }

  .hzt-cta h2 {
    font-size: 28px;
  }

  .hzt-cta p {
    font-size: 16px;
  }
}

@media (max-width: 860px) {
  .hzt-split {
    grid-template-columns: 1fr;
  }

  .hzt-split > div {
    text-align: center;
  }

  .hzt-split figure {
    width: min(100%, 550px);
    margin-inline: auto;
  }

  .hzt-heading p,
  .hzt-split p,
  .hzt-cta p {
    max-width: 720px;
    text-align: justify;
    hyphens: auto;
  }

  .hzt-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .hzt-ripnot-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 768px) {
  .hzt-section,
  .hzt-cta {
    padding-block: 40px;
  }

  .hzt-shell {
    width: min(1400px, calc(100% - 90px));
  }

  .hzt-section > .hzt-shell,
  .hzt-cta > .hzt-shell {
    width: min(1180px, calc(100% - 90px));
  }

  .hzt-hero {
    min-height: 400px;
  }

  .hzt-hero-content {
    padding-block: 56px;
  }

  .hzt-hero h1 {
    max-width: 370px;
    font-size: 28px;
  }

  .hzt-heading h2,
  .hzt-split h2 {
    font-size: 30px;
  }

  .hzt-rows h3,
  .hzt-cards h3,
  .hzt-ripnot-grid h3,
  .hzt-details-list h3 {
    font-size: 17px;
  }

  .hzt-page p,
  .hzt-faq-list article div {
    font-size: 15px;
  }

  .hzt-label {
    font-size: 10px;
  }

  .hzt-question {
    font-size: 16px;
  }

  .hzt-cta h2 {
    font-size: 30px;
  }

  .hzt-cta p {
    font-size: 15px;
  }
}

/* =========================================================
   12. Phone and small-phone responsive rules
   ========================================================= */

@media (min-width: 469px) and (max-width: 600px) {
  .hzt-shell,
  .hzt-section > .hzt-shell,
  .hzt-cta > .hzt-shell {
    width: calc(100% - 32px);
  }

  .hzt-hero-content {
    text-align: left;
  }

  .hzt-label {
    margin-inline: 0;
  }
}

@media (max-width: 600px) {
  /* Mobile hero: show the responders on the right and darken bright sky areas.
     Adjust 68% toward 100% to move further right, or toward 0% to move left. */
  .hzt-hero {
    background-position: 68% center;
  }
  /* Keep the RIPNOT letter close to its point title on phone screens. */
  .hzt-ripnot-grid strong {
    margin-bottom: 10px;
  }

  .hzt-hero-overlay {
    background:
      linear-gradient(90deg, rgba(0, 0, 0, 0.65), rgba(0, 0, 0, 0.55)),
      linear-gradient(
        90deg,
        rgba(184, 123, 25, 0.12),
        rgba(184, 123, 25, 0) 72%
      );
  }

  .hzt-hero p {
    text-align: justify;
    hyphens: auto;
  }

  .hzt-button {
    font-size: 13px;
  }

  .hzt-cards,
  .hzt-ripnot-grid {
    grid-template-columns: 1fr;
  }

  .hzt-rows article {
    display: block;
  }

  .hzt-rows article,
  .hzt-cards article,
  .hzt-ripnot-grid article,
  .hzt-details-list article {
    padding: 15px;
  }

  .hzt-rows span {
    margin: 0 auto 10px;
  }

  .hzt-rows h3 {
    text-align: center;
  }

  .hzt-rows p,
  .hzt-cards p,
  .hzt-ripnot-grid p,
  .hzt-cta p {
    text-align: justify;
    hyphens: auto;
  }

  .hzt-about-mobile-intro figure,
  .hzt-details .hzt-details-intro figure {
    width: min(100%, 300px);
    margin-inline: auto;
  }

  .hzt-faq-list article div {
    padding: 14px 15px 17px;
  }

  .hzt-question {
    padding: 16px 48px 16px 15px;
    font-size: 14px;
  }

  .hzt-question::after {
    right: 14px;
    font-size: 20px;
    font-weight: 800;
    line-height: 1;
  }

  .hzt-button-light {
    width: 100%;
  }

  .hzt-cta p {
    font-size: 15px;
  }
}

@media (max-width: 468px) {
  .hzt-shell {
    width: min(1400px, calc(100% - 40px));
  }

  .hzt-section > .hzt-shell,
  .hzt-cta > .hzt-shell {
    width: min(1180px, calc(100% - 40px));
  }

  .hzt-hero {
    min-height: 350px;
  }

  .hzt-hero-content {
    padding-block: 44px;
    text-align: center;
    transform: translateY(20px);
  }

  .hzt-label {
    display: flex;
    width: fit-content;
    margin-inline: auto;
    font-size: 8px;
  }

  .hzt-hero h1,
  .hzt-heading h2,
  .hzt-split h2,
  .hzt-about-mobile-intro h2 {
    margin-inline: auto;
    font-size: 22px;
    text-align: center;
  }

  .hzt-hero .hzt-button {
    width: 65%;
    margin-inline: auto;
  }

  .hzt-rows h3,
  .hzt-cards h3,
  .hzt-ripnot-grid h3,
  .hzt-details-list h3 {
    font-size: 16px;
  }

  .hzt-page p,
  .hzt-faq-list article div {
    font-size: 14px;
  }

  .hzt-cta h2 {
    font-size: 22px;
  }

  .hzt-cta p {
    font-size: 14px;
  }
}

@media (max-width: 429px) {
  .hzt-hero {
    min-height: 330px;
  }

  .hzt-hero-content {
    padding-block: 36px;
  }

  .hzt-hero h1,
  .hzt-heading h2,
  .hzt-split h2,
  .hzt-about-mobile-intro h2 {
    font-size: 20px;
  }

  .hzt-page p,
  .hzt-faq-list article div {
    font-size: 13px;
  }

  .hzt-cta h2 {
    font-size: 20px;
  }

  .hzt-cta p {
    font-size: 13px;
  }
}

@media (max-width: 374px) {
  .hzt-shell {
    width: min(1400px, calc(100% - 32px));
  }

  .hzt-section > .hzt-shell,
  .hzt-cta > .hzt-shell {
    width: min(1180px, calc(100% - 32px));
  }

  .hzt-hero {
    min-height: 300px;
  }

  .hzt-hero-content {
    padding-block: 32px;
  }

  .hzt-hero h1,
  .hzt-heading h2,
  .hzt-split h2,
  .hzt-about-mobile-intro h2 {
    font-size: 18px;
  }

  .hzt-rows h3,
  .hzt-cards h3,
  .hzt-ripnot-grid h3,
  .hzt-details-list h3 {
    font-size: 15px;
  }

  .hzt-page p,
  .hzt-faq-list article div {
    font-size: 12px;
  }

  .hzt-label {
    font-size: 8px;
  }

  .hzt-cta h2 {
    font-size: 18px;
  }

  .hzt-cta p {
    font-size: 12px;
  }

  .hzt-button {
    font-size: 12px;
  }
}
