/* Commercial course pages (NEBOSH first) - builds on vacancy_detail.css (.alv tokens,
   cards, facts, buttons). Everything here is scoped under .neb. */

/* ---------- Section nav ---------- */
.neb .neb-subnav {
  position: sticky; top: 0; z-index: 1020;
  background: #fff; border-bottom: 1px solid var(--alv-line);
  box-shadow: 0 2px 10px rgba(26, 40, 54, .05);
}
.neb .neb-subnav .container { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.neb .neb-subnav .container::-webkit-scrollbar { display: none; }
.neb .neb-subnav a {
  flex: 0 0 auto; padding: 15px 14px 13px; border-bottom: 3px solid transparent;
  color: var(--alv-navy); font-family: 'Source Sans Pro', sans-serif; font-weight: 600; font-size: 16px;
  text-decoration: none; white-space: nowrap;
}
.neb .neb-subnav a:hover { color: var(--alv-teal-dark); }
.neb .neb-subnav a.is-on { border-bottom-color: var(--alv-teal); color: var(--alv-teal-dark); }
.neb .neb-subnav-cta {
  margin-left: auto; flex: 0 0 auto;
  display: inline-flex; align-items: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 8px 18px;
  background: var(--alv-teal-dark); color: #fff;
  font-family: 'Source Sans Pro', sans-serif; font-weight: 700; font-size: 15px; cursor: pointer;
}
.neb .neb-subnav-cta:hover { background: #026d69; }

/* ---------- Intro ---------- */
.neb-intro { text-align: center; max-width: 860px; margin: 36px auto 26px; }
.neb-intro h1 { font-size: 36px; font-weight: 700; color: var(--alv-navy); margin: 0 0 12px; }
.neb-intro p { font-size: 17px; line-height: 1.6; margin: 0; }

/* ---------- Course picker ---------- */
.neb-picker { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.neb .neb-pick {
  position: relative; text-align: left; cursor: pointer;
  display: flex; flex-direction: column; gap: 8px;
  background: #fff; border: 2px solid transparent; border-radius: var(--alv-radius);
  box-shadow: var(--alv-shadow); padding: 22px 24px 20px; color: var(--alv-ink);
  font: inherit; transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.neb .neb-pick:hover { transform: translateY(-3px); box-shadow: 0 14px 34px rgba(26, 40, 54, .13); }
.neb .neb-pick:focus-visible { outline: 3px solid #7fe3d6; outline-offset: 2px; }
.neb .neb-pick.is-on {
  border-color: var(--alv-teal);
  background: linear-gradient(135deg, var(--alv-navy) 0%, var(--alv-navy-2) 65%, #0f4d5f 100%);
  color: #fff;
}
.neb .neb-pick.is-on::after {
  content: ""; position: absolute; left: 50%; bottom: -12px; margin-left: -11px;
  border: 11px solid transparent; border-bottom: 0; border-top-color: #18485a;
}
.neb-pick-tag {
  align-self: flex-start; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em;
  background: var(--alv-teal-soft); color: var(--alv-teal-dark); border-radius: 999px; padding: 4px 10px;
}
.neb-pick.is-on .neb-pick-tag { background: rgba(255, 255, 255, .14); color: #fff; }
.neb-pick-name { font-family: 'Source Sans Pro', sans-serif; font-size: 23px; font-weight: 700; line-height: 1.2; color: var(--alv-navy); }
.neb-pick.is-on .neb-pick-name { color: #fff; }
.neb-pick-line { font-size: 15px; line-height: 1.45; color: var(--alv-muted); }
.neb-pick.is-on .neb-pick-line { color: rgba(255, 255, 255, .85); }
.neb-pick-facts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 2px; }
.neb-pick-facts > span {
  display: inline-flex; align-items: center; gap: 6px; font-size: 14px; font-weight: 600;
  background: #f0f3f6; border-radius: 999px; padding: 5px 12px; color: var(--alv-navy);
}
.neb-pick.is-on .neb-pick-facts > span { background: rgba(255, 255, 255, .1); color: #fff; }
.neb-pick-facts .fa { color: var(--alv-teal-dark); }
.neb-pick.is-on .neb-pick-facts .fa { color: #7fe3d6; }
.neb-pick-next { font-size: 14px; color: var(--alv-muted); margin-top: 4px; }
.neb-pick-next .fa { margin-right: 6px; }
.neb-pick.is-on .neb-pick-next { color: rgba(255, 255, 255, .85); }
.neb-pick-go { margin-top: auto; padding-top: 10px; font-family: 'Source Sans Pro', sans-serif; font-weight: 700; color: var(--alv-teal-dark); }
.neb-pick-go .fa { transition: transform .2s ease; }
.neb-pick:hover .neb-pick-go .fa { transform: translateX(4px); }
.neb-pick.is-on .neb-pick-go { display: none; }

/* ---------- Course panel ---------- */
.neb-panel[hidden] { display: none; }
.neb-panel { animation: neb-in .35s ease; }
@keyframes neb-in { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.neb .neb-facts { margin-top: 30px; }
.neb .alv-card p { font-size: 16px; line-height: 1.65; }
.neb .alv-card p:last-child { margin-bottom: 0; }
.neb-lead { font-size: 18px !important; color: var(--alv-navy); }
.neb-small { font-size: 14px !important; color: var(--alv-muted); margin: 0 0 12px; }
.neb .alv-card h2 .fa-info { font-size: 18px; }

.neb-callout {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 16px;
  background: var(--alv-teal-soft); border-left: 4px solid var(--alv-teal); border-radius: 10px;
  padding: 14px 16px; font-size: 15px; line-height: 1.5;
}
.neb-callout .fa { font-size: 22px; color: var(--alv-teal-dark); margin-top: 2px; }

.neb-units { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.neb-unit { border: 1px solid var(--alv-line); border-radius: 12px; padding: 18px 20px; }
.neb-unit-code {
  display: inline-block; font-family: 'Source Sans Pro', sans-serif; font-weight: 700; font-size: 13px; letter-spacing: .08em;
  background: var(--alv-navy); color: #fff; border-radius: 6px; padding: 3px 9px;
}
.neb-unit h3 { font-size: 19px; font-weight: 700; color: var(--alv-navy); margin: 10px 0 8px; }
.neb-unit ul { margin: 0; padding-left: 18px; font-size: 15px; line-height: 1.6; }
.neb-unit li::marker { color: var(--alv-teal); }

.neb .neb-checklist { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.neb .neb-checklist li { align-items: flex-start; line-height: 1.45; }
.neb .neb-checklist .fa { margin-top: 1px; }

.neb-timeline { list-style: none; margin: 0; padding: 0; counter-reset: neb-t; }
.neb-timeline li {
  position: relative; counter-increment: neb-t; padding: 0 0 20px 50px; font-size: 16px; line-height: 1.55;
}
.neb-timeline li::before {
  content: counter(neb-t); position: absolute; left: 0; top: -2px;
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--alv-teal-dark); color: #fff; font-weight: 700; font-family: 'Source Sans Pro', sans-serif;
  display: flex; align-items: center; justify-content: center;
}
.neb-timeline li::after { content: ""; position: absolute; left: 16px; top: 34px; bottom: 2px; width: 2px; background: var(--alv-line); }
.neb-timeline li:last-child { padding-bottom: 0; }
.neb-timeline li:last-child::after { display: none; }
.neb-timeline strong { display: block; color: var(--alv-navy); font-family: 'Source Sans Pro', sans-serif; font-size: 18px; }

.neb-quote { margin: 18px 0 0; padding: 4px 0 4px 18px; border-left: 4px solid var(--alv-orange); font-size: 16px; }
.neb-quote p { font-style: italic; color: var(--alv-navy); }
.neb .neb-quote footer { background: none; padding: 0; display: block; font-size: 14px; color: var(--alv-muted); margin-top: 6px; }
.neb-quote footer::before { content: "\2014\00a0"; }

/* ---------- Dates card ---------- */
.neb-runs { list-style: none; margin: 0 0 18px; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.neb-run {
  border: 1px solid var(--alv-line); border-radius: 12px; padding: 14px 15px;
  display: flex; flex-direction: column; gap: 10px; transition: border-color .15s ease;
}
.neb-run:hover { border-color: var(--alv-teal); }
.neb-run-when .neb-date { display: block; font-family: 'Source Sans Pro', sans-serif; font-weight: 700; font-size: 18px; color: var(--alv-navy); line-height: 1.25; }
.neb-time { display: block; font-size: 14px; color: var(--alv-muted); margin-top: 2px; }
.neb-time:empty { display: none; }
.neb-run-meta { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: center; font-size: 14px; color: var(--alv-muted); }
.neb-run-meta .fa { margin-right: 5px; color: var(--alv-navy); }
.neb-badge {
  font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em;
  border-radius: 999px; padding: 3px 9px; background: var(--alv-teal-soft); color: var(--alv-teal-dark);
}
.neb-badge-hot { background: var(--alv-navy); color: #fff; }
.neb-badge-muted { background: #e8ebef; color: var(--alv-muted); }
.neb-countdown { font-weight: 600; color: var(--alv-teal-dark); }
.neb-run-actions { display: flex; gap: 8px; }
.neb-run-actions .alv-btn { flex: 1 1 0; padding: 10px 14px; font-size: 15px; }
.neb-none { font-size: 15px; color: var(--alv-muted); }
.neb-nextup { margin-bottom: 18px; }
.neb .alv-path p { margin: 0 0 12px; }
.neb .alv-path .alv-btn { padding: 11px 16px; font-size: 15px; }

/* Contact card */
.neb-contact h2 { margin-bottom: 8px !important; }
.neb .neb-contact-line {
  display: flex; align-items: center; gap: 10px; padding: 10px 0; border-top: 1px solid var(--alv-line);
  color: var(--alv-navy); font-weight: 600; text-decoration: none; overflow-wrap: anywhere;
}
.neb .neb-contact-line:hover { color: var(--alv-teal-dark); text-decoration: none; }
.neb-contact-line .fa { width: 30px; height: 30px; border-radius: 8px; background: var(--alv-teal-soft); color: var(--alv-teal-dark); display: inline-flex; align-items: center; justify-content: center; flex: 0 0 30px; }
.neb-partner { display: flex; gap: 12px; align-items: center; margin-top: 12px; padding: 12px; background: #f0f3f6; border-radius: 12px; font-size: 13px; color: var(--alv-muted); }
.neb-partner > .fa { font-size: 26px; color: var(--alv-blue); }
.neb-partner strong { display: block; color: var(--alv-navy); font-size: 14px; }

/* ---------- Where ---------- */
.neb-where { margin-top: 26px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 26px; align-items: center; }
.neb-where p { font-size: 16px; line-height: 1.6; }

/* ---------- FAQs ---------- */
.neb-faqs { margin-top: 22px; }
.neb-faq-list details { border-top: 1px solid var(--alv-line); }
.neb-faq-list details:last-child { border-bottom: 1px solid var(--alv-line); }
.neb-faq-list summary {
  list-style: none; cursor: pointer; position: relative;
  padding: 16px 44px 16px 0; font-family: 'Source Sans Pro', sans-serif; font-weight: 600; font-size: 18px; color: var(--alv-navy);
}
.neb-faq-list summary::-webkit-details-marker { display: none; }
.neb-faq-list summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; margin-top: -15px;
  width: 30px; height: 30px; border-radius: 50%; background: var(--alv-teal-soft); color: var(--alv-teal-dark);
  display: flex; align-items: center; justify-content: center; font-size: 20px; font-weight: 700; line-height: 1;
  transition: transform .2s ease, background-color .2s ease;
}
.neb-faq-list details[open] summary::after { content: "\2212"; background: var(--alv-teal-dark); color: #fff; }
.neb-faq-list summary:hover { color: var(--alv-teal-dark); }
.neb-faq-list details p { padding: 0 44px 16px 0; margin: 0; }
.neb .neb-faq-list a { color: var(--alv-teal-dark); font-weight: 600; }

/* ---------- Enquiry drawer ---------- */
.neb-drawer[hidden] { display: none; }
.neb-drawer { position: fixed; inset: 0; z-index: 1050; }
.neb-drawer-scrim { position: absolute; inset: 0; background: rgba(15, 25, 35, .55); opacity: 0; transition: opacity .25s ease; }
.neb-drawer-panel {
  position: absolute; top: 0; right: 0; bottom: 0; width: 520px; max-width: 100%;
  background: #fff; overflow-y: auto; overscroll-behavior: contain;
  box-shadow: -10px 0 40px rgba(0, 0, 0, .2);
  transform: translateX(100%); transition: transform .3s cubic-bezier(.2, .8, .2, 1);
}
.neb-drawer.is-open .neb-drawer-scrim { opacity: 1; }
.neb-drawer.is-open .neb-drawer-panel { transform: none; }
.neb-drawer-head {
  position: sticky; top: 0; z-index: 1;
  display: flex; justify-content: space-between; align-items: flex-start; gap: 12px;
  padding: 22px 26px 18px; color: #fff;
  background: linear-gradient(135deg, var(--alv-navy) 0%, var(--alv-navy-2) 65%, #0f4d5f 100%);
  border-bottom: 4px solid var(--alv-orange);
}
.neb-drawer-eyebrow { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: #7fe3d6; }
.neb-drawer-head h2 { color: #fff; font-size: 26px; font-weight: 700; margin: 4px 0 0; }
.neb-drawer-x {
  border: 0; background: rgba(255, 255, 255, .12); color: #fff; width: 38px; height: 38px; border-radius: 50%;
  font-size: 18px; cursor: pointer; flex: 0 0 38px;
}
.neb-drawer-x:hover { background: rgba(255, 255, 255, .22); }
.neb-form, .neb-done { padding: 22px 26px 28px; }
.neb-step { border: 0; margin: 0 0 16px; padding: 0; min-width: 0; }
.neb-step legend {
  border: 0; margin: 0 0 8px; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--alv-muted);
}
.neb-choice { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.neb-choice label { margin: 0; font-weight: 400; cursor: pointer; }
.neb-choice input { position: absolute; opacity: 0; pointer-events: none; }
.neb-choice span {
  display: flex; flex-direction: column; gap: 2px; height: 100%;
  border: 2px solid var(--alv-line); border-radius: 12px; padding: 10px 12px; font-size: 13px; color: var(--alv-muted);
  transition: border-color .15s ease, background-color .15s ease;
}
.neb-choice strong { font-family: 'Source Sans Pro', sans-serif; font-size: 16px; color: var(--alv-navy); line-height: 1.2; }
.neb-choice input:checked + span { border-color: var(--alv-teal); background: var(--alv-teal-soft); }
.neb-choice input:focus-visible + span { outline: 3px solid #7fe3d6; outline-offset: 2px; }
.neb-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.neb-field { display: flex; flex-direction: column; gap: 5px; margin: 0 0 14px; font-weight: 400; min-width: 0; }
.neb-field > span { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--alv-muted); }
.neb-field input, .neb-field select, .neb-field textarea {
  width: 100%; border: 2px solid var(--alv-line); border-radius: 10px; padding: 10px 12px;
  font-size: 16px; color: var(--alv-ink); background: #fff; transition: border-color .15s ease;
}
.neb-field select { appearance: none; -webkit-appearance: none; padding-right: 34px;
  background-image: linear-gradient(45deg, transparent 50%, var(--alv-navy) 50%), linear-gradient(135deg, var(--alv-navy) 50%, transparent 50%);
  background-position: calc(100% - 18px) 50%, calc(100% - 13px) 50%; background-size: 5px 5px, 5px 5px; background-repeat: no-repeat; }
.neb-field input:focus, .neb-field select:focus, .neb-field textarea:focus { outline: 0; border-color: var(--alv-teal); }
.neb-field.is-bad input { border-color: #c0392b; }
.neb-field textarea { resize: vertical; min-height: 80px; }
.neb-stepper { display: flex; border: 2px solid var(--alv-line); border-radius: 10px; overflow: hidden; }
.neb-stepper:focus-within { border-color: var(--alv-teal); }
.neb-stepper button { flex: 0 0 42px; border: 0; background: #f0f3f6; color: var(--alv-navy); font-size: 20px; font-weight: 700; cursor: pointer; }
.neb-stepper button:hover { background: var(--alv-teal-soft); color: var(--alv-teal-dark); }
.neb .neb-stepper input { border: 0; border-radius: 0; text-align: center; font-weight: 700; -moz-appearance: textfield; min-width: 0; }
.neb-stepper input::-webkit-outer-spin-button, .neb-stepper input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.neb-captcha { margin: 4px 0 14px; min-height: 0; }
.neb-form-error { background: #fdecea; color: #922; border-radius: 10px; padding: 10px 14px; font-size: 15px; }
.neb-form-error[hidden] { display: none; }
.neb-submit[disabled] { opacity: .7; cursor: wait; transform: none !important; }
.neb-form-note { font-size: 14px; color: var(--alv-muted); text-align: center; margin: 14px 0 0; }
.neb .neb-form-note a { color: var(--alv-teal-dark); font-weight: 600; }
.neb-done { text-align: center; padding-top: 50px; outline: 0; }
.neb-done[hidden] { display: none; }
.neb-done-tick {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%;
  background: var(--alv-teal-dark); color: #fff; font-size: 40px;
  display: flex; align-items: center; justify-content: center;
  animation: neb-pop .5s cubic-bezier(.2, 1.6, .4, 1);
}
@keyframes neb-pop { from { transform: scale(.3); opacity: 0; } to { transform: none; opacity: 1; } }
.neb-done h3 { font-size: 26px; font-weight: 700; color: var(--alv-navy); }
.neb-done p { font-size: 16px; line-height: 1.6; max-width: 360px; margin: 0 auto 22px; }
body.neb-lock { overflow: hidden; }

/* Highlight the dates card when jumped to */
@keyframes neb-flash { 0% { box-shadow: 0 0 0 0 rgba(3, 153, 147, .55); } 100% { box-shadow: 0 0 0 16px rgba(3, 153, 147, 0); } }
.neb-dates.is-flash { animation: neb-flash .9s ease 2; }
.neb-anchor { display: block; height: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 991px) {
  .neb .alv-side { order: -1; }
  .neb .alv-body { display: flex; flex-direction: column; }
  .neb .neb-contact { display: none; }
}
@media (max-width: 767px) {
  .neb-picker { grid-template-columns: 1fr; gap: 12px; }
  .neb .neb-pick.is-on::after { display: none; }
  .neb-pick-name { font-size: 20px; }
  .neb-pick-line { display: none; }
  .neb-units { grid-template-columns: 1fr; }
  .neb-where { grid-template-columns: 1fr; }
  .neb .neb-subnav a { padding: 13px 10px 11px; font-size: 15px; }
  .neb-intro { margin: 24px auto 18px; }
  .neb-intro h1 { font-size: 28px; }
  .neb-intro p { font-size: 16px; }
}
@media (max-width: 520px) {
  .neb-row { grid-template-columns: 1fr; gap: 0; }
  .neb-choice { grid-template-columns: 1fr; }
  .neb-choice span { flex-direction: row; justify-content: space-between; align-items: center; }
  .neb-form, .neb-done { padding: 18px 16px 24px; }
  .neb-drawer-head { padding: 18px 16px 14px; }
  .neb .neb-subnav-cta { padding: 7px 14px; }
}
@media (prefers-reduced-motion: reduce) {
  .neb-panel, .neb-done-tick, .neb-dates.is-flash { animation: none !important; }
  .neb-drawer-panel, .neb-drawer-scrim { transition: none !important; }
}

/* =====================================================================
   NEBOSH info page - the landing page above the course/booking page
   ===================================================================== */
.neb .neb-subnav-back { color: var(--alv-muted) !important; font-weight: 600; }
.neb .neb-subnav-back .fa { margin-right: 6px; }
.neb .neb-subnav a.neb-subnav-cta { border-bottom: 0; padding: 8px 18px; color: #fff; }
.neb .neb-subnav a.neb-subnav-cta:hover { color: #fff; text-decoration: none; }
.neb-intro a { color: var(--alv-teal-dark); font-weight: 600; }

.neb-stats { margin: 0 0 26px; }
.neb-section { margin-top: 40px; }
.neb-section-head { text-align: center; max-width: 760px; margin: 0 auto 20px; }
.neb-section-head h2 { font-size: 30px; font-weight: 700; color: var(--alv-navy); margin: 0 0 8px; }
.neb-section-head p { font-size: 17px; color: var(--alv-muted); margin: 0; }

.neb-about { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 30px; align-items: center; }
.neb-about-points { list-style: none; margin: 0; padding: 20px; display: flex; flex-direction: column; gap: 14px;
  background: var(--alv-teal-soft); border-radius: 12px; }
.neb-about-points li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; }
.neb-about-points .fa { flex: 0 0 24px; width: 24px; height: 24px; border-radius: 50%; background: var(--alv-teal-dark); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px; margin-top: 1px; }
.neb-about-points strong { color: var(--alv-navy); }

.neb-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.neb-ccard { background: #fff; border-radius: var(--alv-radius); box-shadow: var(--alv-shadow); overflow: hidden;
  display: flex; flex-direction: column; border-top: 5px solid var(--alv-teal); }
.neb-ccard-top { padding: 24px 26px 6px; }
.neb-ccard h3 { font-size: 24px; font-weight: 700; color: var(--alv-navy); margin: 12px 0 10px; line-height: 1.2; }
.neb-ccard p { font-size: 16px; line-height: 1.6; margin: 0; }
.neb-ccard-facts { list-style: none; margin: 16px 26px 0; padding: 0; display: flex; flex-direction: column; }
.neb-ccard-facts li { display: flex; gap: 10px; align-items: baseline; padding: 9px 0; border-top: 1px solid var(--alv-line); font-size: 15px; }
.neb-ccard-facts .fa { width: 18px; text-align: center; color: var(--alv-teal-dark); }
.neb-ccard-next { font-weight: 700; color: var(--alv-navy); }
.neb-ccard-actions { margin-top: auto; padding: 18px 26px 24px; }

.neb-compare { margin-top: 40px; }
.neb-table-wrap { overflow-x: auto; }
.neb-table { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 15px; min-width: 520px; }
.neb-table th, .neb-table td { padding: 13px 16px; border-bottom: 1px solid var(--alv-line); vertical-align: top; text-align: left; line-height: 1.5; }
.neb-table thead th { font-family: 'Source Sans Pro', sans-serif; font-size: 19px; font-weight: 700; color: #fff; background: var(--alv-navy); border: 0; }
.neb-table thead th:first-child { background: transparent; }
.neb-table thead th:nth-child(2) { border-radius: 12px 0 0 0; }
.neb-table thead th:last-child { border-radius: 0 12px 0 0; background: var(--alv-teal-dark); }
.neb-table tbody th { width: 18%; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--alv-muted); font-weight: 700; }
.neb-table tbody td { width: 41%; }
.neb-table tbody tr:nth-child(odd) td { background: #f8fafb; }
.neb-table-cta td, .neb-table-cta th { border-bottom: 0; background: none !important; }

.neb-pathway-card { margin-top: 22px; }
.neb-pathway { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.neb-pathway li { position: relative; border: 1px solid var(--alv-line); border-radius: 12px; padding: 18px; font-size: 15px; line-height: 1.5; }
.neb-pathway li strong { display: block; font-family: 'Source Sans Pro', sans-serif; font-size: 19px; color: var(--alv-navy); margin: 6px 0 4px; }
.neb-pathway li:not(:last-child)::after { content: "\f054"; font-family: FontAwesome; position: absolute; right: -14px; top: 50%; margin-top: -12px;
  width: 24px; height: 24px; border-radius: 50%; background: var(--alv-teal-dark); color: #fff; font-size: 11px;
  display: flex; align-items: center; justify-content: center; z-index: 1; }
.neb-pathway-step { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--alv-teal-dark); }
.neb-pathway li:last-child { background: var(--alv-teal-soft); border-color: transparent; }

.neb-why { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.neb-why-item { background: #fff; border-radius: var(--alv-radius); box-shadow: var(--alv-shadow); padding: 22px; }
.neb-why-item > .fa { width: 44px; height: 44px; border-radius: 12px; background: var(--alv-navy); color: #fff; font-size: 20px;
  display: inline-flex; align-items: center; justify-content: center; }
.neb-why-item:nth-child(even) > .fa { background: var(--alv-teal-dark); }
.neb-why-item h3 { font-size: 19px; font-weight: 700; color: var(--alv-navy); margin: 14px 0 6px; }
.neb-why-item p { font-size: 15px; line-height: 1.55; margin: 0; }

.neb-employers { margin-top: 40px; display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr); gap: 26px; align-items: center; }
.neb .neb-employers .neb-checklist { grid-template-columns: 1fr; }
.neb-employers-cta { background: linear-gradient(135deg, var(--alv-navy) 0%, var(--alv-navy-2) 65%, #0f4d5f 100%); color: #fff;
  border-radius: 12px; padding: 22px; border-bottom: 4px solid var(--alv-orange); }
.neb .neb-employers-cta p { color: #fff; font-size: 16px; margin: 0 0 14px; }

.neb-related-links { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.neb .neb-related-links a { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 12px; box-shadow: var(--alv-shadow);
  padding: 16px; color: var(--alv-ink); text-decoration: none; font-size: 14px; transition: transform .2s ease, box-shadow .2s ease; }
.neb .neb-related-links a:hover { transform: translateY(-3px); box-shadow: 0 12px 30px rgba(26, 40, 54, .13); text-decoration: none; }
.neb-related-links a > .fa:first-child { flex: 0 0 38px; width: 38px; height: 38px; border-radius: 10px; background: var(--alv-teal-soft); color: var(--alv-teal-dark);
  display: inline-flex; align-items: center; justify-content: center; font-size: 17px; }
.neb-related-links span { flex: 1; color: var(--alv-muted); line-height: 1.35; }
.neb-related-links strong { display: block; color: var(--alv-navy); font-size: 16px; font-family: 'Source Sans Pro', sans-serif; }
.neb-related-links a > .fa:last-child { color: var(--alv-teal-dark); }
.neb-info .alv-register { margin-top: 40px; }

@media (max-width: 991px) {
  .neb-why { grid-template-columns: 1fr 1fr; }
  .neb-related-links { grid-template-columns: 1fr 1fr; }
  .neb-about, .neb-employers { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .neb-cards, .neb-why, .neb-related-links, .neb-pathway { grid-template-columns: 1fr; }
  .neb-pathway li:not(:last-child)::after { content: "\f078"; right: 50%; margin-right: -12px; top: auto; bottom: -14px; margin-top: 0; }
  .neb-section-head h2 { font-size: 25px; }
  .neb-ccard-top, .neb-ccard-actions { padding-left: 18px; padding-right: 18px; }
  .neb-ccard-facts { margin-left: 18px; margin-right: 18px; }
  .neb-ccard h3 { font-size: 21px; }
  .neb .neb-subnav-back { display: none; }
}

/* =====================================================================
   Tier bar - 3+ courses side by side (IOSH), built by course-pages/build.js
   ===================================================================== */
.neb-picker.is-tiers { grid-template-columns: repeat(var(--neb-n, 5), minmax(0, 1fr)); gap: 10px; }
.neb .is-tiers .neb-pick { padding: 16px 16px 14px; gap: 6px; }
.is-tiers .neb-pick-step {
  position: absolute; top: 12px; right: 12px; width: 26px; height: 26px; border-radius: 50%;
  background: #f0f3f6; color: var(--alv-navy); font-family: 'Source Sans Pro', sans-serif; font-weight: 700; font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.is-tiers .neb-pick.is-on .neb-pick-step { background: var(--alv-teal); color: #fff; }
.is-tiers .neb-pick-tag { font-size: 11px; padding: 3px 9px; }
.is-tiers .neb-pick-name { font-size: 18px; padding-right: 20px; }
.is-tiers .neb-pick-line { font-size: 13px; line-height: 1.4; }
.is-tiers .neb-pick-facts > span { font-size: 13px; padding: 4px 10px; }
.is-tiers .neb-pick-next { font-size: 13px; }
.is-tiers .neb-pick-go { display: none; }
.neb-choice.is-many { grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); }

@media (max-width: 991px) {
  .neb-picker.is-tiers {
    display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin: 0 -15px; padding: 4px 15px 16px;
  }
  .neb-picker.is-tiers::-webkit-scrollbar { display: none; }
  .neb .is-tiers .neb-pick { flex: 0 0 210px; scroll-snap-align: center; }
  .neb .is-tiers .neb-pick.is-on::after { display: none; }
  .is-tiers .neb-pick-line { display: block; }
}

/* Variant name on a date row (one tier covering several course variants, e.g. forklift truck types) */
.neb-run-name { display: block; font-size: 13px; font-weight: 700; color: var(--alv-teal-dark); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 3px; }

/* =====================================================================
   Hub pages (Training Courses / Health & Safety / Plant & Access) - build-hub.js
   ===================================================================== */
.neb-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; margin-top: 8px; }
.neb-hub-grid.is-four { grid-template-columns: repeat(4, 1fr); }
.neb .neb-hcard {
  display: flex; flex-direction: column; background: #fff; border-radius: var(--alv-radius); box-shadow: var(--alv-shadow);
  overflow: hidden; color: var(--alv-ink); text-decoration: none; border-bottom: 4px solid transparent;
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.neb .neb-hcard:hover, .neb .neb-hcard:focus { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(26, 40, 54, .14); border-bottom-color: var(--alv-teal); text-decoration: none; color: var(--alv-ink); }
.neb-hcard-img { display: block; aspect-ratio: 1 / 1; background: #1A2836; overflow: hidden; }
.neb-hcard-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.neb-hcard:hover .neb-hcard-img img { transform: scale(1.04); }
.neb-hcard-body { display: flex; flex-direction: column; gap: 8px; padding: 18px 20px 20px; flex: 1; }
.neb-hcard-title { font-family: 'Source Sans Pro', sans-serif; font-weight: 700; font-size: 22px; color: var(--alv-navy); line-height: 1.2; }
.neb-hcard-line { font-size: 15px; line-height: 1.5; color: var(--alv-muted); }
.neb-hcard-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.neb-hcard-tags span { font-size: 12px; font-weight: 700; background: #f0f3f6; color: var(--alv-navy); border-radius: 999px; padding: 3px 9px; }
.neb-hcard-live { font-size: 14px; font-weight: 600; color: var(--alv-teal-dark); }
.neb-hcard-live .fa { margin-right: 6px; }
.neb-hcard-go { margin-top: auto; padding-top: 6px; font-family: 'Source Sans Pro', sans-serif; font-weight: 700; color: var(--alv-teal-dark); }
.neb-hcard-go .fa { transition: transform .2s ease; }
.neb-hcard:hover .neb-hcard-go .fa { transform: translateX(4px); }
.neb-hub .neb-where { margin-top: 40px; }
.neb-booklets { grid-template-columns: repeat(2, 1fr); max-width: 760px; margin: 0 auto; }
@media (max-width: 991px) { .neb-hub-grid.is-four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) {
  .neb-hub-grid, .neb-hub-grid.is-four { grid-template-columns: 1fr; }
  .neb-hcard-img { aspect-ratio: 16 / 9; }
  .neb-booklets { grid-template-columns: 1fr; }
}

/* Single-course family (e.g. PASMA): no picker needed */
.neb-picker.is-single { display: none; }

.neb-run[hidden] { display: none; }
.neb .neb-more { margin: -6px 0 18px; padding: 10px 14px; font-size: 15px; }

/* Logged-in staff: leave room for the floating "Logged in" pill (top right) when the section bar is pinned */
.neb-has-pill .neb-subnav .container { padding-right: 190px; }
@media (max-width: 767px) { .neb-has-pill .neb-subnav .container { padding-right: 15px; } }

/* Candidate information card (NEBOSH, 20 Oct 2026): pack download + compact list of NEBOSH policy links */
.neb .neb-docs .neb-doc-btn { margin: 4px 0 18px; }
.neb-doclinks { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.neb .neb-doclinks a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--alv-line, #e3e8ee); border-radius: 10px;
  color: var(--alv-ink); text-decoration: none; font-size: 13px; line-height: 1.3; transition: border-color .2s ease, background .2s ease; }
.neb .neb-doclinks a:hover, .neb .neb-doclinks a:focus { border-color: var(--alv-teal-dark); background: var(--alv-teal-soft); text-decoration: none; }
.neb-doclinks a > .fa:first-child { flex: 0 0 30px; width: 30px; height: 30px; border-radius: 8px; background: var(--alv-teal-soft); color: var(--alv-teal-dark);
  display: inline-flex; align-items: center; justify-content: center; font-size: 14px; }
.neb-doclinks span { flex: 1; color: var(--alv-muted); }
.neb-doclinks strong { display: block; color: var(--alv-navy); font-size: 14px; }
.neb-doclinks a > .fa:last-child { color: var(--alv-teal-dark); font-size: 12px; }
.neb-info .neb-docs { margin-top: 28px; }
.neb-info .neb-doclinks { grid-template-columns: repeat(3, 1fr); }
@media (max-width: 991px) { .neb-info .neb-doclinks { grid-template-columns: 1fr 1fr; } }
@media (max-width: 767px) { .neb-doclinks, .neb-info .neb-doclinks { grid-template-columns: 1fr; } .neb .neb-docs .neb-doc-btn { display: flex; justify-content: center; } }

/* Online booking price (20 Oct 2026): list price + VAT, then the website-pricelist price as a teal tag */
.neb .neb-price-online { display: inline-flex; align-items: center; gap: 5px; background: var(--alv-teal-soft); color: var(--alv-teal-dark);
  font-weight: 600; border-radius: 999px; padding: 2px 10px; white-space: nowrap; }
.neb .neb-price-online .fa { margin: 0; }
