/* ==========================================================================
   Build Safe Training Institute – public website
   Mobile-first. Bootstrap 5 grid + utilities underneath; everything visual is defined here.
   ========================================================================== */

:root {
  --navy-950: #041328;
  --navy-900: #071f3f;
  --navy-800: #0c2f5c;
  --navy-700: #123f78;
  --navy-100: #e6edf6;
  --navy-50: #f2f6fb;
  --orange-600: #d95f00;
  --orange-500: #f57200;
  --orange-400: #ff8a1f;
  --orange-100: #fff1e5;
  --ink: #0f1b2d;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-soft: #f5f7fa;
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(7, 31, 63, .06), 0 2px 8px rgba(7, 31, 63, .05);
  --shadow: 0 10px 30px -12px rgba(7, 31, 63, .25);
  --shadow-lg: 0 30px 60px -24px rgba(7, 31, 63, .35);
  --font-head: "Archivo", "Inter", system-ui, sans-serif;
  --font-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  --container: 1220px;
  --gutter: 16px;
  --header-h: 72px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } *, *::before, *::after { transition: none !important; animation: none !important; } }
body { margin: 0; font-family: var(--font-body); font-size: 16px; line-height: 1.65; color: var(--text); background: var(--bg); overflow-x: hidden; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-head); color: var(--ink); font-weight: 800; line-height: 1.15; letter-spacing: -.01em; margin: 0 0 .5em; }
p { margin: 0 0 1em; }
a { color: var(--navy-700); text-decoration: none; }
a:hover { color: var(--orange-600); }
img { max-width: 100%; height: auto; }
:focus-visible { outline: 3px solid var(--orange-500); outline-offset: 2px; }
.skip-link { position: absolute; left: 12px; top: -60px; z-index: 2000; background: var(--orange-500); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm); font-weight: 700; }
.skip-link:focus { top: 12px; color: #fff; }

.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
/* legacy wrapper used by some views */
.site-container { width: 100%; max-width: var(--container); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 24px; } }

.section { padding: 64px 0; }
.section-sm { padding: 44px 0; }
@media (min-width: 992px) { .section { padding: 96px 0; } .section-sm { padding: 60px 0; } }
.bg-soft { background: var(--bg-soft); }
.bg-navy { background: var(--navy-900); color: #c9d6e8; }
.bg-navy h1, .bg-navy h2, .bg-navy h3, .bg-navy h4 { color: #fff; }

/* ---------- Type helpers ---------- */
.eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .14em; text-transform: uppercase; color: var(--orange-600); margin-bottom: 14px; }
.eyebrow::before { content: ""; width: 26px; height: 3px; background: var(--orange-500); border-radius: 2px; }
.bg-navy .eyebrow, .on-dark .eyebrow { color: var(--orange-400); }
.h-display { font-size: clamp(2rem, 6.2vw, 3.6rem); font-weight: 900; letter-spacing: -.02em; }
.h-section { font-size: clamp(1.65rem, 4.2vw, 2.5rem); }
.lead-text { font-size: clamp(1rem, 2.2vw, 1.15rem); color: var(--muted); max-width: 680px; }
.bg-navy .lead-text { color: #b7c6db; }
.section-head { margin-bottom: 40px; }
.section-head.center { text-align: center; }
.section-head.center .lead-text { margin-left: auto; margin-right: auto; }
.section-head.split { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px; }
.text-orange { color: var(--orange-500) !important; }

/* ---------- Buttons ---------- */
.btn-x { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 12px 24px; border-radius: 10px; font-family: var(--font-head); font-weight: 700; font-size: 15px; letter-spacing: .01em; line-height: 1.2; border: 2px solid transparent; cursor: pointer; transition: background .2s var(--ease), color .2s, border-color .2s, transform .2s var(--ease), box-shadow .2s; text-align: center; }
.btn-x:hover { transform: translateY(-1px); }
.btn-x i { font-size: 1.1em; }
.btn-primary-x { background: var(--orange-500); color: #fff; box-shadow: 0 8px 20px -8px rgba(245, 114, 0, .6); }
.btn-primary-x:hover, .btn-primary-x:focus-visible { background: var(--orange-600); color: #fff; }
.btn-navy-x { background: var(--navy-800); color: #fff; }
.btn-navy-x:hover { background: var(--navy-900); color: #fff; }
.btn-ghost-x { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .45); }
.btn-ghost-x:hover { background: #fff; color: var(--navy-900); border-color: #fff; }
.btn-outline-x { background: #fff; color: var(--navy-800); border-color: var(--line); }
.btn-outline-x:hover { border-color: var(--navy-800); color: var(--navy-800); }
.btn-sm-x { min-height: 40px; padding: 8px 16px; font-size: 14px; }
.btn-block-x { width: 100%; }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--navy-800); }
.link-arrow i { transition: transform .2s var(--ease); }
.link-arrow:hover i { transform: translateX(4px); }
/* legacy class names used by flash / older partials */
.btn-brand { display: inline-flex; align-items: center; gap: 8px; background: var(--orange-500); color: #fff; font-weight: 700; padding: 12px 22px; border-radius: 10px; border: 0; }
.btn-brand:hover { background: var(--orange-600); color: #fff; }

/* ---------- Top bar + header ---------- */
.topbar { background: var(--navy-950); color: #9fb2cc; font-size: 13.5px; }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 40px; }
.topbar a { color: #dbe4f0; }
.topbar a:hover { color: var(--orange-400); }
.topbar-list { display: flex; gap: 22px; list-style: none; margin: 0; padding: 0; }
.topbar-list i { color: var(--orange-400); margin-right: 6px; }

/* ISO Certified Company badge (components/iso-badge) – chip in the top bar, card on dark footer/mobile menu. */
.iso-chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px 3px 9px; border-radius: 999px; border: 1px solid rgba(245, 114, 0, .45); background: rgba(245, 114, 0, .1); color: #fff; font-family: var(--font-head); font-size: 12px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; white-space: nowrap; }
.topbar-list .iso-chip i { margin-right: 0; }
.iso-badge { display: inline-flex; align-items: center; gap: 12px; padding: 10px 16px 10px 10px; border-radius: 14px; border: 1px solid rgba(255, 255, 255, .12); background: linear-gradient(135deg, rgba(255, 255, 255, .07), rgba(255, 255, 255, .02)); max-width: 100%; }
.iso-badge-icon { flex: 0 0 40px; height: 40px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 19px; color: #fff; background: linear-gradient(135deg, var(--orange-400), var(--orange-600)); box-shadow: 0 6px 16px -6px rgba(245, 114, 0, .8); }
.iso-badge-text { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.iso-badge-text strong { font-family: var(--font-head); font-size: 14px; font-weight: 800; letter-spacing: .02em; color: #fff; }
.iso-badge-text > span { font-size: 12.5px; color: #b7c6db; letter-spacing: .01em; }
.iso-badge-text .sep { color: var(--orange-400); margin: 0 4px; }

.site-header { position: sticky; top: 0; z-index: 1030; background: rgba(255, 255, 255, .97); backdrop-filter: saturate(160%) blur(8px); border-bottom: 1px solid var(--line); transition: box-shadow .2s; }
.site-header.is-scrolled { box-shadow: 0 6px 24px -12px rgba(7, 31, 63, .3); }
.site-header .wrap { display: flex; align-items: center; gap: 18px; min-height: var(--header-h); }
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); flex-shrink: 0; }
.brand:hover { color: var(--ink); }
.brand img { width: 50px; height: auto; }
.brand-text { display: flex; flex-direction: column; line-height: 1; }
.brand-text strong { font-family: var(--font-head); font-size: 20px; font-weight: 900; letter-spacing: -.01em; color: var(--navy-800); }
.brand-text strong span { color: var(--orange-500); }
.brand-text small { font-size: 11px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); margin-top: 4px; }

.main-nav { display: none; margin-left: auto; }
.main-nav > ul { display: flex; align-items: center; gap: 2px; list-style: none; margin: 0; padding: 0; }
.main-nav a, .main-nav button.nav-drop { display: inline-flex; align-items: center; gap: 4px; padding: 10px 12px; border-radius: 8px; font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--ink); background: none; border: 0; white-space: nowrap; }
.main-nav a:hover, .main-nav button.nav-drop:hover, .main-nav .active > a, .main-nav a.active { color: var(--orange-600); }
.main-nav a.active { box-shadow: inset 0 -3px 0 var(--orange-500); border-radius: 0; }
.main-nav .dropdown-menu { border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 8px; min-width: 300px; }
.main-nav .dropdown-item { border-radius: 8px; padding: 10px 12px; font-weight: 500; font-size: 14.5px; white-space: normal; }
.main-nav .dropdown-item small { display: block; color: var(--muted); font-size: 12.5px; }
.main-nav .dropdown-item:active { background: var(--navy-800); }
.header-cta { display: none; }
.nav-toggle { margin-left: auto; display: inline-flex; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 10px; border: 1px solid var(--line); background: #fff; color: var(--navy-800); font-size: 24px; }
@media (min-width: 1200px) {
  .main-nav { display: block; }
  .header-cta { display: none; } /* the 8-item menu needs the full width; "Training Programs" covers this link */
  .main-nav { margin-left: auto; }
  .nav-toggle { display: none; }
}

/* Mobile menu (Bootstrap offcanvas) */
.mobile-menu { --bs-offcanvas-width: min(360px, 88vw); background: var(--navy-900); color: #dbe4f0; }
.mobile-menu .offcanvas-header { border-bottom: 1px solid rgba(255, 255, 255, .08); }
.mobile-menu .brand-text strong { color: #fff; }
.mobile-menu .brand-text small { color: #9fb2cc; }
.mobile-menu .brand img { background: #fff; border-radius: 10px; padding: 3px; width: 46px; }
.mobile-nav { list-style: none; padding: 0; margin: 0; }
.mobile-nav a { display: flex; align-items: center; justify-content: space-between; padding: 14px 4px; color: #fff; font-family: var(--font-head); font-weight: 600; font-size: 17px; border-bottom: 1px solid rgba(255, 255, 255, .07); }
.mobile-nav a.active, .mobile-nav a:hover { color: var(--orange-400); }
.mobile-nav .sub a { font-size: 15px; font-weight: 500; color: #b7c6db; padding: 10px 4px 10px 16px; }
.mobile-contact { display: grid; gap: 10px; margin-top: 24px; }
.mobile-contact a { display: flex; align-items: center; gap: 12px; color: #dbe4f0; font-size: 15px; word-break: break-all; }
.mobile-contact i { flex: 0 0 38px; height: 38px; border-radius: 10px; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; justify-content: center; color: var(--orange-400); }

/* ---------- Hero ---------- */
.hero { --hero-interval: 5000ms; --hero-ease: cubic-bezier(.22, .61, .36, 1); position: relative; background: radial-gradient(120% 90% at 85% 10%, #0d3266 0%, var(--navy-900) 45%, var(--navy-950) 100%); color: #c9d6e8; overflow: hidden; isolation: isolate; }
.hero::before { content: ""; position: absolute; inset: 0; background: url("../images/buildsafe/construction-team-harness.jpg") center/cover no-repeat; opacity: .03; filter: grayscale(1); z-index: -3; }
.hero::after { content: ""; position: absolute; inset: auto 0 0; height: 40%; background: linear-gradient(180deg, transparent, rgba(4, 19, 40, .55)); z-index: -2; }
/* Decorative depth: two soft glows drifting very slowly and a faint masked grid. Transform-only animation. */
.hero-deco { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.hero-glow { position: absolute; border-radius: 50%; will-change: transform; }
.hero-glow.g1 { width: 620px; height: 620px; right: -140px; top: -180px; background: radial-gradient(circle, rgba(245, 114, 0, .2) 0%, rgba(245, 114, 0, 0) 65%); animation: hero-drift 22s ease-in-out infinite alternate; }
.hero-glow.g2 { width: 720px; height: 720px; left: -260px; bottom: -360px; background: radial-gradient(circle, rgba(46, 116, 214, .26) 0%, rgba(46, 116, 214, 0) 65%); animation: hero-drift 28s ease-in-out infinite alternate-reverse; }
.hero-grid { position: absolute; inset: 0; background-image: linear-gradient(rgba(255, 255, 255, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 75%); mask-image: radial-gradient(ellipse 70% 60% at 70% 40%, #000 0%, transparent 75%); }
@keyframes hero-drift { from { transform: translate3d(0, 0, 0) scale(1); } to { transform: translate3d(-40px, 30px, 0) scale(1.08); } }

.hero .wrap { padding-top: 36px; padding-bottom: 36px; }
.hero-stage { display: grid; }
.hero-slide { grid-area: 1 / 1; display: grid; gap: 28px; align-content: start; min-width: 0; opacity: 0; visibility: hidden; transition: opacity .8s var(--hero-ease), visibility 0s linear .8s; }
.hero-slide.is-active { opacity: 1; visibility: visible; transition: opacity .8s var(--hero-ease), visibility 0s; }
/* Outgoing text clears quickly so two headings never overlap during the crossfade. */
.hero-slide-text { transition: opacity .3s ease; }
.hero-slide:not(.is-active) .hero-slide-text { opacity: 0; }
/* Staggered fade-up: runs on page load and every time a slide becomes active. */
.hero-slide.is-active .hero-slide-text > * { animation: hero-rise .75s var(--hero-ease) both; }
.hero-slide.is-active .hero-slide-text > :nth-child(1) { animation-delay: .22s; }
.hero-slide.is-active .hero-slide-text > :nth-child(2) { animation-delay: .32s; }
.hero-slide.is-active .hero-slide-text > :nth-child(3) { animation-delay: .42s; }
.hero-slide.is-active .hero-slide-text > :nth-child(4) { animation-delay: .52s; }
@keyframes hero-rise { from { opacity: 0; transform: translate3d(0, 18px, 0); } to { opacity: 1; transform: none; } }

.hero .eyebrow { color: var(--orange-400); font-size: 12.5px; letter-spacing: .18em; margin-bottom: 18px; }
.hero .eyebrow::before { width: 32px; height: 2px; background: linear-gradient(90deg, var(--orange-500), var(--orange-400)); }
.hero-title { color: #fff; font-size: clamp(1.9rem, 4.3vw, 3.25rem); font-weight: 800; letter-spacing: -.025em; line-height: 1.08; margin-bottom: 18px; max-width: 18ch; text-wrap: balance; }
.hero p.hero-copy { font-size: clamp(1rem, 1.9vw, 1.1rem); line-height: 1.7; color: #b4c3d8; max-width: 33rem; margin-bottom: 30px; }

/* Premium CTA (hero only) */
.hero-cta { position: relative; overflow: hidden; min-height: 52px; padding: 14px 28px; border: 0; border-radius: 12px; background: linear-gradient(135deg, var(--orange-400) 0%, var(--orange-500) 45%, var(--orange-600) 100%); box-shadow: 0 10px 24px -10px rgba(245, 114, 0, .75), inset 0 1px 0 rgba(255, 255, 255, .25); transition: transform .3s var(--hero-ease), box-shadow .3s var(--hero-ease), filter .3s; }
.hero-cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 40%; background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .28), transparent); transform: skewX(-20deg); transition: left .7s var(--hero-ease); }
.hero-cta i { transition: transform .3s var(--hero-ease); }
.hero-cta:hover, .hero-cta:focus-visible { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px -12px rgba(245, 114, 0, .9), 0 0 0 4px rgba(245, 114, 0, .14), inset 0 1px 0 rgba(255, 255, 255, .3); filter: saturate(1.08); }
.hero-cta:hover::after { left: 120%; }
.hero-cta:hover i, .hero-cta:focus-visible i { transform: translateX(4px); }
.hero-cta:active { transform: translateY(0); }

/* Image frame: offset outline + dot texture behind, gentle float, slow zoom on the photo. */
.hero-visual { position: relative; } /* below the text on phones/tablets; right column on desktop */
.hero-visual::before { content: ""; position: absolute; inset: 18px -14px -14px 18px; border: 1px solid rgba(245, 114, 0, .35); border-radius: calc(var(--radius-lg) + 4px); z-index: -1; display: none; }
.hero-visual::after { content: ""; position: absolute; width: 120px; height: 120px; left: -26px; top: -26px; background-image: radial-gradient(rgba(255, 255, 255, .22) 1.5px, transparent 1.6px); background-size: 14px 14px; z-index: -1; display: none; }
.hero-slide-media { position: relative; margin: 0; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-800); box-shadow: 0 40px 70px -30px rgba(0, 0, 0, .7), 0 0 0 1px rgba(255, 255, 255, .08); }
.hero-slide-media img { width: 100%; aspect-ratio: 16 / 10; height: auto; object-fit: cover; display: block; transform: scale(1.08); transition: transform 7s cubic-bezier(.25, .46, .45, .94); }
.hero-slide.is-active .hero-slide-media img { transform: scale(1.01); }

/* ISO certification overlay: an attached panel under the photo on phones, frosted glass card on larger screens. */
.hero-cert { position: relative; z-index: 1; display: flex; align-items: center; gap: 14px; margin: 0; padding: 16px 18px; background: linear-gradient(135deg, #0a2a55, var(--navy-950)); border-top: 1px solid rgba(255, 255, 255, .08); color: #eef3f9; font-size: 13.5px; line-height: 1.55; font-weight: 500; letter-spacing: .003em; }
.hero-cert i { flex: 0 0 38px; height: 38px; border-radius: 10px; display: inline-flex; align-items: center; justify-content: center; font-size: 18px; color: #fff; background: linear-gradient(135deg, var(--orange-400), var(--orange-600)); box-shadow: 0 6px 16px -6px rgba(245, 114, 0, .8); }
.hero-slide.is-active .hero-cert { animation: hero-cert-in .8s var(--hero-ease) .6s both; }
@keyframes hero-cert-in { from { opacity: 0; transform: translate3d(0, 14px, 0); } to { opacity: 1; transform: none; } }
@media (min-width: 576px) {
  .hero-slide-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 19, 40, 0) 40%, rgba(4, 19, 40, .65) 100%); pointer-events: none; }
  .hero-cert { position: absolute; left: 16px; right: 16px; bottom: 16px; padding: 14px 18px 14px 14px; border: 1px solid rgba(255, 255, 255, .16); border-radius: 16px; background: linear-gradient(135deg, rgba(10, 42, 85, .72), rgba(4, 19, 40, .62)); -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%); box-shadow: 0 18px 40px -18px rgba(0, 0, 0, .7), inset 0 1px 0 rgba(255, 255, 255, .1); font-size: clamp(13px, 1.2vw, 14px); }
}

/* Controls: counter, progress dots, glass arrows */
.hero-controls { display: flex; align-items: center; gap: 18px; margin-top: 30px; }
.hero-count { font-family: var(--font-head); font-size: 13px; font-weight: 600; letter-spacing: .08em; color: #7f93ae; display: inline-flex; align-items: baseline; gap: 6px; font-variant-numeric: tabular-nums; }
.hero-count b { font-size: 18px; font-weight: 800; color: #fff; }
.hero-dots { display: flex; align-items: center; gap: 6px; }
.hero-dot { position: relative; width: 26px; height: 32px; padding: 0; border: 0; background: none; cursor: pointer; transition: width .45s var(--hero-ease); }
.hero-dot::before, .hero-dot::after { content: ""; position: absolute; left: 0; top: 50%; height: 4px; margin-top: -2px; border-radius: 4px; }
.hero-dot::before { right: 0; background: rgba(255, 255, 255, .22); transition: background .3s; }
.hero-dot::after { width: 0; background: linear-gradient(90deg, var(--orange-500), var(--orange-400)); }
.hero-dot:hover::before { background: rgba(255, 255, 255, .45); }
.hero-dot.is-active { width: 56px; }
.hero-dot.is-active::after { width: 100%; }
/* While autoplay runs, the active dot fills over the interval; paused (hover/keyboard) it shows full. */
.hero.is-playing .hero-dot.is-active::after { animation: hero-dot-fill var(--hero-interval) linear both; }
@keyframes hero-dot-fill { from { width: 0; } to { width: 100%; } }
.hero-arrows { display: flex; gap: 10px; margin-left: auto; }
.hero-arrow { width: 46px; height: 46px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .18); background: rgba(255, 255, 255, .05); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 17px; cursor: pointer; transition: background .3s var(--hero-ease), border-color .3s, transform .3s var(--hero-ease), box-shadow .3s; }
.hero-arrow i { transition: transform .3s var(--hero-ease); }
.hero-arrow:hover { background: var(--orange-500); border-color: var(--orange-500); box-shadow: 0 10px 22px -10px rgba(245, 114, 0, .9); transform: translateY(-1px); }
.hero-arrow[data-prev]:hover i { transform: translateX(-2px); }
.hero-arrow[data-next]:hover i { transform: translateX(2px); }
.hero-arrow:active { transform: scale(.95); }
.hazard-band { height: 10px; background: repeating-linear-gradient(-45deg, var(--orange-500) 0 14px, var(--navy-900) 14px 28px); }

@media (min-width: 576px) {
  .hero .wrap { padding-top: 48px; padding-bottom: 48px; }
}
@media (min-width: 992px) {
  .hero .wrap { padding-top: 84px; padding-bottom: 72px; }
  .hero-slide { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; align-content: center; gap: 72px; }
  .hero-visual { order: 0; margin-right: 14px; }
  .hero-visual::before, .hero-visual::after { display: block; }
  .hero-slide.is-active .hero-visual { animation: hero-float 8s ease-in-out 1s infinite; }
  .hero-slide-media img { aspect-ratio: 4 / 3; }
  .hero-cert { left: 20px; right: 20px; bottom: 20px; }
  /* Controls sit under the text column, so the indicators stay on the left side. */
  .hero-controls { max-width: calc((100% - 72px) / 2); margin-top: 44px; }
}
/* Small laptops: give the image more room and tighten the ISO card so it doesn't cover half the photo. */
@media (min-width: 992px) and (max-width: 1199.98px) {
  .hero-slide { grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; }
  .hero-controls { max-width: calc((100% - 48px) / 2.2); }
  .hero-cert { left: 14px; right: 14px; bottom: 14px; gap: 12px; padding: 11px 14px 11px 11px; font-size: 12.5px; line-height: 1.5; }
  .hero-cert i { flex-basis: 32px; height: 32px; font-size: 15px; }
}
@keyframes hero-float { 0%, 100% { transform: translate3d(0, 0, 0); } 50% { transform: translate3d(0, -8px, 0); } }

/* ---------- Program category tiles ---------- */
.cat-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .cat-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .cat-grid { grid-template-columns: repeat(4, 1fr); } }
.cat-tile { position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-height: 300px; border-radius: var(--radius-lg); overflow: hidden; color: #fff; isolation: isolate; box-shadow: var(--shadow); }
.cat-tile img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .6s var(--ease); }
.cat-tile::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, rgba(4, 19, 40, .05) 20%, rgba(4, 19, 40, .92) 100%); z-index: -1; }
.cat-tile:hover img { transform: scale(1.05); }
.cat-tile .body { padding: 22px; }
.cat-tile .count { display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; background: var(--orange-500); color: #fff; padding: 4px 10px; border-radius: 999px; margin-bottom: 10px; }
.cat-tile h3 { color: #fff; font-size: 1.25rem; margin-bottom: 6px; }
.cat-tile p { color: #d5deea; font-size: 14.5px; margin-bottom: 12px; }
.cat-tile .go { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--orange-400); }
.cat-tile:hover { color: #fff; }

/* ---------- Course cards ---------- */
.course-grid { display: grid; gap: 22px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .course-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .course-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.course-card { position: relative; display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: box-shadow .25s var(--ease), transform .25s var(--ease), border-color .25s; }
.course-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); border-color: transparent; }
.course-card .thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--navy-100); }
.course-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease); }
.course-card:hover .thumb img { transform: scale(1.04); }
.course-card .chip { position: absolute; left: 12px; top: 12px; }
.course-card .body { display: flex; flex-direction: column; flex: 1; padding: 18px 20px 20px; }
.course-card h3 { font-size: 1.08rem; line-height: 1.3; margin-bottom: 8px; }
.course-card h3 a { color: var(--ink); }
.course-card h3 a::after { content: ""; position: absolute; inset: 0; }
.course-card h3 a:hover { color: var(--orange-600); }
.course-card p { font-size: 14.5px; color: var(--muted); margin-bottom: 16px; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.course-card .foot { margin-top: auto; display: flex; align-items: center; justify-content: space-between; gap: 10px; padding-top: 14px; border-top: 1px dashed var(--line); }
.course-card .foot .link-arrow { font-size: 14px; }
.course-card .foot small { color: var(--muted); font-size: 12.5px; display: inline-flex; align-items: center; gap: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; letter-spacing: .02em; background: rgba(255, 255, 255, .94); color: var(--navy-800); box-shadow: var(--shadow-sm); max-width: calc(100% - 24px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.chip.orange { background: var(--orange-500); color: #fff; }
.chip.navy { background: var(--navy-800); color: #fff; }

/* ---------- About / split blocks ---------- */
.split { display: grid; gap: 40px; align-items: center; }
@media (min-width: 992px) { .split { grid-template-columns: 1fr 1fr; gap: 64px; } .split.wide-text { grid-template-columns: 1.1fr .9fr; } }
.photo-stack { position: relative; padding: 0 0 32px 0; }
.photo-stack .main { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 5 / 4; }
.photo-stack .main img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack .inset { position: absolute; right: -4px; bottom: 0; width: 46%; border-radius: var(--radius); overflow: hidden; border: 6px solid #fff; box-shadow: var(--shadow-lg); aspect-ratio: 4 / 3; }
.photo-stack .inset img { width: 100%; height: 100%; object-fit: cover; }
.photo-stack .tag { position: absolute; left: 16px; top: 16px; background: var(--navy-900); color: #fff; border-radius: 12px; padding: 10px 14px; font-family: var(--font-head); font-weight: 700; font-size: 14px; display: flex; align-items: center; gap: 8px; }
.photo-stack .tag i { color: var(--orange-400); }
.check-list { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 10px; }
.check-list li { position: relative; padding-left: 32px; }
.check-list li::before { content: "\F26E"; font-family: "bootstrap-icons"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--orange-100); color: var(--orange-600); font-size: 14px; display: inline-flex; align-items: center; justify-content: center; }
.check-list.cols { grid-template-columns: 1fr; }
@media (min-width: 576px) { .check-list.cols { grid-template-columns: 1fr 1fr; } }
.bg-navy .check-list li::before { background: rgba(245, 114, 0, .18); color: var(--orange-400); }

/* ---------- Trades ---------- */
.trade-grid { display: grid; gap: 14px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
@media (min-width: 768px) { .trade-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .trade-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.trade { position: relative; display: block; border-radius: var(--radius); overflow: hidden; aspect-ratio: 4 / 3; color: #fff; isolation: isolate; background: var(--navy-800); }
.trade img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: -2; transition: transform .5s var(--ease); }
.trade::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, transparent 35%, rgba(4, 19, 40, .9)); }
.trade span { position: absolute; left: 12px; right: 12px; bottom: 10px; font-family: var(--font-head); font-weight: 800; font-size: 15.5px; line-height: 1.2; }
.trade:hover img { transform: scale(1.06); }
.trade:hover { color: #fff; }
.trade:hover span { color: var(--orange-400); }

/* ---------- Equipment ---------- */
.equip-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; list-style: none; padding: 0; margin: 24px 0 28px; }
@media (min-width: 576px) { .equip-list { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.equip-list li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); border-radius: 12px; font-family: var(--font-head); font-weight: 700; font-size: 14.5px; color: #fff; }
.equip-list i { color: var(--orange-400); font-size: 18px; }
.equip-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.equip-media img { width: 100%; display: block; aspect-ratio: 4 / 3; object-fit: cover; }
.equip-media .caption { position: absolute; left: 14px; bottom: 14px; right: 14px; background: rgba(4, 19, 40, .85); color: #fff; border-radius: 12px; padding: 12px 14px; font-size: 14px; border-left: 4px solid var(--orange-500); }
.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; display: grid; gap: 12px; }
.steps li { counter-increment: step; position: relative; padding: 2px 0 2px 46px; color: #c9d6e8; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 10px; background: var(--orange-500); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 13px; display: inline-flex; align-items: center; justify-content: center; }
.steps li strong { color: #fff; }

/* ---------- Fire programs ---------- */
.fire-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .fire-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .fire-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.fire-card { position: relative; display: flex; flex-direction: column; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); height: 100%; transition: box-shadow .25s, transform .25s; }
.fire-card:hover { box-shadow: var(--shadow); transform: translateY(-3px); }
.fire-card .img { aspect-ratio: 4 / 3; overflow: hidden; }
.fire-card .img img { width: 100%; height: 100%; object-fit: cover; }
.fire-card .body { padding: 18px; border-top: 4px solid var(--orange-500); flex: 1; display: flex; flex-direction: column; }
.fire-card h3 { font-size: 1.05rem; line-height: 1.3; }
.fire-card h3 a { color: var(--ink); }
.fire-card h3 a::after { content: ""; position: absolute; inset: 0; }
.fire-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ---------- Feature (why choose us) ---------- */
.feature-grid { display: grid; gap: 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .feature-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.feature { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; height: 100%; transition: border-color .2s, box-shadow .2s; }
.feature:hover { border-color: var(--orange-500); box-shadow: var(--shadow-sm); }
.feature .ico { width: 52px; height: 52px; border-radius: 14px; background: var(--navy-800); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; margin-bottom: 16px; position: relative; }
.feature .ico::after { content: ""; position: absolute; right: -4px; bottom: -4px; width: 14px; height: 14px; border-radius: 4px; background: var(--orange-500); }
.feature h3 { font-size: 1.08rem; margin-bottom: 6px; }
.feature p { font-size: 14.5px; color: var(--muted); margin: 0; }
.feature.highlight { background: var(--navy-900); border-color: var(--navy-900); color: #c9d6e8; }
.feature.highlight h3 { color: #fff; }
.feature.highlight p { color: #b7c6db; }
.feature.highlight .ico { background: var(--orange-500); }
.feature.highlight .ico::after { background: #fff; }

/* ---------- Corporate band ---------- */
.corp-band { position: relative; border-radius: var(--radius-lg); overflow: hidden; background: var(--navy-900); color: #c9d6e8; isolation: isolate; }
.corp-band::before { content: ""; position: absolute; inset: 0; background: url("../images/buildsafe/trade-supervisor.jpg") center/cover; opacity: .22; z-index: -1; }
.corp-band .inner { display: grid; gap: 28px; padding: 36px 22px; }
.corp-band h2 { color: #fff; }
.corp-tags { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; margin: 0 0 24px; padding: 0; }
.corp-tags li { padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .14); color: #fff; font-size: 13.5px; font-weight: 600; }
@media (min-width: 992px) { .corp-band .inner { grid-template-columns: 1.3fr .7fr; align-items: center; padding: 56px; } }
.corp-panel { background: #fff; border-radius: var(--radius); padding: 22px; color: var(--text); }
.corp-panel h3 { font-size: 1.1rem; }
.corp-panel ul { margin: 0 0 18px; padding-left: 18px; font-size: 14.5px; }

/* ---------- Commitment ---------- */
.commitment { position: relative; color: #fff; isolation: isolate; overflow: hidden; }
.commitment::before { content: ""; position: absolute; inset: 0; background: url("../images/buildsafe/session-classroom-wide.jpg") center/cover; z-index: -2; }
.commitment::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, rgba(217, 95, 0, .95), rgba(245, 114, 0, .88) 45%, rgba(7, 31, 63, .9)); z-index: -1; }
.commitment .wrap { padding-top: 72px; padding-bottom: 72px; }
.commitment .label { font-family: var(--font-head); font-weight: 800; letter-spacing: .16em; text-transform: uppercase; font-size: 13px; color: #fff; opacity: .9; }
.commitment blockquote { margin: 14px 0 0; font-family: var(--font-head); font-weight: 800; font-size: clamp(1.45rem, 4.2vw, 2.4rem); line-height: 1.25; max-width: 920px; color: #fff; }
.commitment blockquote::before { content: "\201C"; display: block; font-size: 4rem; line-height: .6; color: var(--navy-900); margin-bottom: 8px; }

/* ---------- Gallery ---------- */
.gallery-filters { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; margin-bottom: 26px; scrollbar-width: thin; -webkit-overflow-scrolling: touch; }
.filter-pill { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line); background: #fff; color: var(--ink); font-weight: 600; font-size: 14px; cursor: pointer; white-space: nowrap; transition: all .2s; }
.filter-pill:hover { border-color: var(--navy-800); color: var(--navy-800); }
.filter-pill.active, .filter-pill[aria-pressed="true"] { background: var(--navy-800); border-color: var(--navy-800); color: #fff; }
.filter-pill .n { font-size: 12px; opacity: .7; }
.masonry { columns: 1; column-gap: 14px; }
@media (min-width: 576px) { .masonry { columns: 2; } }
@media (min-width: 992px) { .masonry { columns: 3; } }
.masonry .tile { break-inside: avoid; margin: 0 0 14px; }
.gallery-tile { position: relative; display: block; border-radius: var(--radius); overflow: hidden; background: var(--navy-100); cursor: zoom-in; border: 0; padding: 0; width: 100%; text-align: left; }
.gallery-tile img { width: 100%; display: block; transition: transform .5s var(--ease); }
.gallery-tile:hover img { transform: scale(1.04); }
.gallery-tile figcaption { position: absolute; left: 0; right: 0; bottom: 0; padding: 30px 14px 12px; background: linear-gradient(180deg, transparent, rgba(4, 19, 40, .88)); color: #fff; font-size: 14px; font-weight: 600; line-height: 1.35; }
.gallery-tile figcaption small { display: block; font-size: 11.5px; color: var(--orange-400); text-transform: uppercase; letter-spacing: .08em; font-weight: 700; margin-bottom: 3px; }
/* Homepage training gallery: two full-width rows looping in opposite directions (transform-only animation). */
.gallery-marquee { --gm-w: clamp(220px, 26vw, 340px); --gm-gap: 16px; display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--gm-gap); margin-top: 8px; -webkit-mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); mask-image: linear-gradient(90deg, transparent 0, #000 6%, #000 94%, transparent 100%); }
/* clip (not hidden) so focusing an item can never scroll the row; min-width: 0 is required because a clipped
   grid item would otherwise grow to its full track width and widen the whole page. */
.gm-row { min-width: 0; overflow: hidden; overflow: clip; padding: 6px 0; }
.gm-track { display: flex; width: max-content; will-change: transform; animation: gm-rtl var(--gm-duration, 60s) linear infinite; }
.gm-ltr .gm-track { animation-name: gm-ltr; }
/* Every item carries its own right margin so the two copies are exactly equal and -50% lands seamlessly. */
.gm-item { position: relative; flex: 0 0 var(--gm-w); width: var(--gm-w); aspect-ratio: 4 / 3; margin-right: var(--gm-gap); border-radius: var(--radius); overflow: hidden; background: var(--navy-100); box-shadow: 0 10px 24px -14px rgba(7, 31, 63, .45); cursor: zoom-in; }
.gm-item img { width: 100%; height: 100%; display: block; object-fit: cover; transition: transform .6s var(--ease); }
.gm-overlay { position: absolute; inset: 0; display: flex; flex-direction: column; justify-content: space-between; align-items: flex-end; padding: 12px; background: linear-gradient(180deg, rgba(4, 19, 40, 0) 40%, rgba(4, 19, 40, .82) 100%); opacity: 0; transition: opacity .35s var(--ease); }
.gm-zoom { width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--orange-500); color: #fff; font-size: 15px; box-shadow: 0 8px 18px -8px rgba(245, 114, 0, .9); transform: scale(.8); transition: transform .35s var(--ease); }
.gm-cap { align-self: stretch; color: #fff; font-size: 13.5px; font-weight: 600; line-height: 1.35; transform: translateY(8px); transition: transform .35s var(--ease); }
.gm-item:hover img, .gm-item:focus-visible img { transform: scale(1.07); }
.gm-item:hover .gm-overlay, .gm-item:focus-visible .gm-overlay { opacity: 1; }
.gm-item:hover .gm-zoom, .gm-item:focus-visible .gm-zoom { transform: scale(1); }
.gm-item:hover .gm-cap, .gm-item:focus-visible .gm-cap { transform: none; }
.gm-item:focus-visible { outline: 3px solid var(--orange-500); outline-offset: -3px; }
/* Hovering anywhere on the gallery (or tabbing into it) pauses both rows. */
.gallery-marquee:hover .gm-track, .gallery-marquee:has(.gm-item:focus-visible) .gm-track { animation-play-state: paused; }
@keyframes gm-rtl { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }
@keyframes gm-ltr { from { transform: translate3d(-50%, 0, 0); } to { transform: translate3d(0, 0, 0); } }
@media (max-width: 575.98px) { .gallery-marquee { --gm-gap: 12px; } }
/* Reduced motion: no auto-scroll; rows become swipeable/scrollable strips without the duplicate copies. */
@media (prefers-reduced-motion: reduce) {
  .gallery-marquee { -webkit-mask-image: none; mask-image: none; }
  .gm-row { overflow-x: auto; padding: 6px var(--gutter); scrollbar-width: thin; }
  .gm-track { animation: none; }
  .gm-item[data-lb-dup] { display: none; }
}

/* Lightbox */
.lightbox { position: fixed; inset: 0; z-index: 2000; display: none; align-items: center; justify-content: center; background: rgba(4, 12, 26, .94); padding: 56px 12px 72px; }
.lightbox.show { display: flex; }
.lightbox figure { margin: 0; max-width: min(1100px, 100%); text-align: center; }
.lightbox img { max-width: 100%; max-height: calc(100vh - 150px); border-radius: 10px; box-shadow: 0 20px 60px rgba(0, 0, 0, .5); }
.lightbox figcaption { color: #dbe4f0; margin-top: 12px; font-size: 15px; }
.lightbox .lb-btn { position: absolute; width: 48px; height: 48px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .12); color: #fff; font-size: 22px; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.lightbox .lb-btn:hover { background: var(--orange-500); }
.lightbox .lb-close { top: 12px; right: 12px; }
.lightbox .lb-prev { left: 12px; top: 50%; transform: translateY(-50%); }
.lightbox .lb-next { right: 12px; top: 50%; transform: translateY(-50%); }
@media (max-width: 575.98px) { .lightbox .lb-prev, .lightbox .lb-next { top: auto; bottom: 14px; transform: none; } .lightbox .lb-prev { left: calc(50% - 58px); } .lightbox .lb-next { right: calc(50% - 58px); } }

/* ---------- Testimonials ---------- */
.quote-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 992px) { .quote-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; height: 100%; display: flex; flex-direction: column; }
.quote .stars { color: var(--orange-500); margin-bottom: 10px; font-size: 14px; letter-spacing: 2px; }
.quote p { font-size: 15.5px; color: var(--ink); flex: 1; }
.quote .who { display: flex; align-items: center; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); }
.avatar-i { flex: 0 0 44px; width: 44px; height: 44px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; background: var(--navy-800); color: #fff; font-family: var(--font-head); font-weight: 800; font-size: 15px; }
.quote .who strong { display: block; color: var(--ink); font-size: 15px; line-height: 1.2; }
.quote .who span { font-size: 13px; color: var(--muted); }

/* ---------- Verify CTA ---------- */
.verify-cta { display: grid; gap: 22px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px 22px; box-shadow: var(--shadow); position: relative; overflow: hidden; }
.verify-cta::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 6px; background: repeating-linear-gradient(-45deg, var(--orange-500) 0 10px, var(--navy-900) 10px 20px); }
.verify-cta h2 { font-size: clamp(1.35rem, 3.4vw, 1.8rem); margin-bottom: 6px; }
.verify-cta p { margin: 0; color: var(--muted); }
.verify-inline { display: flex; gap: 10px; flex-wrap: wrap; }
.verify-inline input { flex: 1 1 220px; min-width: 0; }
@media (min-width: 992px) { .verify-cta { grid-template-columns: 1fr 1.1fr; padding: 36px 40px 36px 46px; } }

/* ---------- Forms ---------- */
.field-x { width: 100%; min-height: 50px; padding: 12px 16px; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1.5px solid #cfd8e3; border-radius: 10px; transition: border-color .2s, box-shadow .2s; }
.field-x:focus { outline: 0; border-color: var(--navy-700); box-shadow: 0 0 0 4px rgba(18, 63, 120, .12); }
.field-x.is-invalid { border-color: #dc2626; }
textarea.field-x { min-height: 150px; resize: vertical; }
.label-x { display: block; font-weight: 600; font-size: 14.5px; color: var(--ink); margin-bottom: 6px; }
.label-x .req { color: #dc2626; }
.invalid-x { color: #dc2626; font-size: 13.5px; margin-top: 6px; }
.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px 18px; box-shadow: var(--shadow); }
@media (min-width: 768px) { .form-card { padding: 36px; } }

/* ---------- Page banner ---------- */
.page-hero { position: relative; background: var(--navy-900); color: #c9d6e8; isolation: isolate; overflow: hidden; }
.page-hero .bg { position: absolute; inset: 0; z-index: -2; }
.page-hero .bg img { width: 100%; height: 100%; object-fit: cover; opacity: .28; }
.page-hero::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, var(--navy-950) 0%, rgba(7, 31, 63, .9) 55%, rgba(7, 31, 63, .55) 100%); }
.page-hero .wrap { padding-top: 44px; padding-bottom: 48px; }
@media (min-width: 992px) { .page-hero .wrap { padding-top: 70px; padding-bottom: 74px; } }
.page-hero h1 { color: #fff; font-size: clamp(1.85rem, 5.4vw, 3rem); margin-bottom: 10px; max-width: 860px; }
.page-hero p { color: #c3d0e2; max-width: 720px; font-size: clamp(1rem, 2.2vw, 1.12rem); margin: 0; }
.crumbs { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 16px; font-size: 13.5px; }
.crumbs li { display: inline-flex; align-items: center; gap: 6px; color: #9fb2cc; }
.crumbs li + li::before { content: "/"; color: #5b708f; }
.crumbs a { color: #dbe4f0; }
.crumbs a:hover { color: var(--orange-400); }

/* ---------- Course listing ---------- */
.list-toolbar { display: grid; gap: 14px; margin-bottom: 26px; }
.search-x { position: relative; }
.search-x i { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); color: var(--muted); font-size: 18px; pointer-events: none; }
.search-x .field-x { padding-left: 46px; padding-right: 110px; }
.search-x button { position: absolute; right: 5px; top: 5px; bottom: 5px; border: 0; border-radius: 8px; padding: 0 18px; background: var(--navy-800); color: #fff; font-weight: 700; font-family: var(--font-head); }
.search-x button:hover { background: var(--orange-500); }
.list-meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; color: var(--muted); font-size: 14.5px; margin-bottom: 18px; }
.list-meta select { width: auto; min-height: 42px; padding: 8px 34px 8px 12px; font-size: 14.5px; }
.list-meta strong { color: var(--ink); }
.empty-x { text-align: center; padding: 56px 20px; border: 2px dashed var(--line); border-radius: var(--radius-lg); }
.empty-x i { font-size: 42px; color: #a8b6c8; display: block; margin-bottom: 10px; }
.pagination { gap: 4px; flex-wrap: wrap; justify-content: center; }
.page-link { border-radius: 8px !important; color: var(--navy-800); border-color: var(--line); min-width: 42px; text-align: center; }
.page-item.active .page-link { background: var(--navy-800); border-color: var(--navy-800); }

/* ---------- Course details ---------- */
.course-hero .meta-row { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.course-hero .actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 24px; }
.course-layout { display: grid; gap: 40px; }
@media (min-width: 992px) { .course-layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; } }
.course-figure { border-radius: var(--radius-lg); overflow: hidden; margin: 0 0 32px; box-shadow: var(--shadow); }
.course-figure img { width: 100%; display: block; max-height: 460px; object-fit: cover; }
.content-block { margin-bottom: 36px; }
.content-block h2 { font-size: 1.45rem; display: flex; align-items: center; gap: 12px; }
.content-block h2 i { width: 38px; height: 38px; border-radius: 10px; background: var(--orange-100); color: var(--orange-600); display: inline-flex; align-items: center; justify-content: center; font-size: 18px; flex: 0 0 38px; }
.topic-grid { display: grid; gap: 10px; grid-template-columns: 1fr; list-style: none; padding: 0; margin: 0; }
@media (min-width: 576px) { .topic-grid { grid-template-columns: 1fr 1fr; } }
.topic-grid li { display: flex; gap: 10px; align-items: flex-start; padding: 12px 14px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-weight: 500; color: var(--ink); font-size: 15px; }
.topic-grid li span { flex: 0 0 26px; height: 26px; border-radius: 8px; background: var(--navy-800); color: #fff; font-family: var(--font-head); font-size: 12px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
.side-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow); }
@media (min-width: 992px) { .side-sticky { position: sticky; top: calc(var(--header-h) + 20px); } }
.side-card h3 { font-size: 1.1rem; }
.fact-list { list-style: none; padding: 0; margin: 0 0 20px; }
.fact-list li { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.fact-list li:last-child { border-bottom: 0; }
.fact-list i { color: var(--orange-500); font-size: 18px; flex: 0 0 22px; }
.fact-list strong { display: block; color: var(--ink); font-size: 13px; text-transform: uppercase; letter-spacing: .05em; }
.cert-note { display: flex; gap: 14px; padding: 18px; border-radius: var(--radius); background: var(--navy-50); border: 1px solid var(--navy-100); }
.cert-note i { font-size: 26px; color: var(--navy-800); }
.cert-note p { margin: 0; font-size: 14.5px; }

/* ---------- Verification page ---------- */
.verify-shell { max-width: 760px; margin: 0 auto; }
.verify-box { background: #fff; border-radius: var(--radius-lg); box-shadow: var(--shadow-lg); padding: 24px 18px; margin-top: -60px; position: relative; z-index: 2; border-top: 5px solid var(--orange-500); }
@media (min-width: 768px) { .verify-box { padding: 36px; } }
.verify-form-x { display: flex; flex-direction: column; gap: 10px; }
@media (min-width: 576px) { .verify-form-x { flex-direction: row; } .verify-form-x .field-x { flex: 1; } }
.verify-form-x .field-x { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; letter-spacing: .04em; text-transform: uppercase; font-size: 17px; }
.verify-form-x .field-x::placeholder { text-transform: none; font-family: var(--font-body); letter-spacing: 0; }
.result-card { margin-top: 26px; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); }
.result-head { display: flex; align-items: center; gap: 14px; padding: 18px 20px; color: #fff; }
.result-head i { font-size: 30px; }
.result-head h2 { color: #fff; font-size: 1.3rem; margin: 0; }
.result-head p { margin: 0; font-size: 14px; opacity: .9; }
.result-card.is-active .result-head { background: #15803d; }
.result-card.is-expired .result-head { background: #b45309; }
.result-card.is-revoked .result-head, .result-card.is-notfound .result-head { background: #b91c1c; }
.result-body { padding: 8px 20px 18px; background: #fff; }
.result-body dl { margin: 0; display: grid; grid-template-columns: 1fr; }
.result-body dl > div { display: grid; grid-template-columns: 1fr; gap: 2px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.result-body dl > div:last-child { border-bottom: 0; }
.result-body dt { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.result-body dd { margin: 0; color: var(--ink); font-weight: 600; word-break: break-word; }
@media (min-width: 576px) { .result-body dl > div { grid-template-columns: 180px 1fr; align-items: baseline; } }
.mono { font-family: ui-monospace, "SFMono-Regular", Consolas, monospace; }
.how-steps { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 34px; }
@media (min-width: 768px) { .how-steps { grid-template-columns: repeat(3, 1fr); } }
.how-steps div { padding: 18px; border-radius: var(--radius); background: var(--bg-soft); }
.how-steps i { font-size: 24px; color: var(--orange-500); }
.how-steps strong { display: block; color: var(--ink); margin: 6px 0 2px; font-family: var(--font-head); }
.how-steps p { margin: 0; font-size: 14px; color: var(--muted); }

/* ---------- Contact ---------- */
.contact-cards { display: grid; gap: 14px; }
.contact-card-x { display: flex; align-items: center; gap: 16px; padding: 18px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
a.contact-card-x:hover { border-color: var(--orange-500); box-shadow: var(--shadow-sm); color: var(--ink); }
.contact-card-x .ico { flex: 0 0 52px; height: 52px; border-radius: 14px; background: var(--navy-800); color: #fff; display: inline-flex; align-items: center; justify-content: center; font-size: 22px; }
.contact-card-x.orange .ico { background: var(--orange-500); }
.contact-card-x small { display: block; color: var(--muted); font-size: 12.5px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.contact-card-x strong { font-family: var(--font-head); font-size: 1.05rem; word-break: break-word; }

/* ---------- Team ---------- */
.team-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 576px) { .team-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .team-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.team-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; height: 100%; }
.team-card .top { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.team-card .avatar-i, .team-card .photo { flex: 0 0 60px; width: 60px; height: 60px; font-size: 19px; border-radius: 16px; object-fit: cover; }
.team-card .avatar-i { background: linear-gradient(135deg, var(--navy-800), var(--navy-700)); box-shadow: inset 0 -4px 0 var(--orange-500); }
.team-card h3 { font-size: 1.05rem; margin: 0 0 2px; }
.team-card .role { font-size: 13.5px; color: var(--orange-600); font-weight: 600; }
.team-card p { font-size: 14.5px; color: var(--muted); margin: 0; }

/* ---------- Instructors page ---------- */
.inst-grid { display: grid; gap: 22px; grid-template-columns: minmax(0, 360px); justify-content: center; }
@media (min-width: 576px) { .inst-grid { grid-template-columns: repeat(2, minmax(0, 340px)); } }
@media (min-width: 992px) { .inst-grid { grid-template-columns: repeat(3, minmax(0, 360px)); gap: 30px; } }
.inst-card { display: flex; flex-direction: column; height: 100%; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 10px; box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s; }
.inst-card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d3dce8; }
.inst-photo { position: relative; aspect-ratio: 4 / 5; border-radius: 10px; overflow: hidden; background: linear-gradient(180deg, var(--navy-50), var(--navy-100)); }
.inst-photo img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: center top; transition: transform .5s var(--ease); }
.inst-card:hover .inst-photo img { transform: scale(1.03); }
.inst-initials { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 104px; height: 104px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-family: var(--font-head); font-weight: 800; font-size: 2rem; letter-spacing: .04em; color: #fff; background: linear-gradient(150deg, var(--navy-700), var(--navy-900)); box-shadow: 0 0 0 6px #fff, 0 0 0 9px rgba(245, 114, 0, .55), var(--shadow); }
.inst-body { display: flex; flex-direction: column; flex: 1; padding: 18px 12px 12px; }
.inst-body h3 { font-size: 1.12rem; margin: 0 0 4px; color: var(--ink); }
.inst-body .role { font-size: 13.5px; font-weight: 600; color: var(--orange-600); margin-bottom: 10px; }
.inst-body p { font-size: 14.5px; line-height: 1.6; color: var(--muted); margin: 0; }
.inst-social { display: flex; gap: 8px; list-style: none; padding: 14px 0 0; margin: auto 0 0; }
.inst-social a { width: 34px; height: 34px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; background: var(--navy-50); color: var(--navy-800); transition: background .2s, color .2s; }
.inst-social a:hover { background: var(--orange-500); color: #fff; }
.inst-demo-tag { position: absolute; left: 10px; bottom: 10px; display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; background: rgba(4, 19, 40, .72); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); border: 1px solid rgba(255, 255, 255, .18); color: #fff; font-size: 11.5px; font-weight: 600; letter-spacing: .03em; }
.inst-demo-tag i { color: var(--orange-400); }
.inst-demo-note { display: flex; align-items: flex-start; justify-content: center; gap: 8px; max-width: 760px; margin: 28px auto 0; text-align: center; font-size: 13.5px; color: var(--muted); }
.inst-demo-note i { color: var(--orange-500); margin-top: 2px; }
.inst-demo-note a { color: var(--navy-800); text-decoration: underline; }

/* ---------- Value cards (mission / vision) ---------- */
.value-grid { display: grid; gap: 18px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .value-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.value-card { border-radius: var(--radius); padding: 28px; background: #fff; border: 1px solid var(--line); height: 100%; position: relative; overflow: hidden; }
.value-card::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--navy-800); }
.value-card.orange::before { background: var(--orange-500); }
.value-card i { font-size: 30px; color: var(--orange-500); }
.value-card h3 { margin: 12px 0 8px; font-size: 1.2rem; }
.value-card p { margin: 0; color: var(--muted); }
.process { display: grid; gap: 14px; grid-template-columns: 1fr; counter-reset: p; }
@media (min-width: 768px) { .process { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.process div { counter-increment: p; padding: 22px; border-radius: var(--radius); background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .1); }
.process div::before { content: "0" counter(p); display: block; font-family: var(--font-head); font-weight: 900; font-size: 2rem; color: var(--orange-500); line-height: 1; margin-bottom: 12px; }
.process strong { color: #fff; display: block; font-family: var(--font-head); font-size: 1.05rem; margin-bottom: 6px; }
.process p { margin: 0; font-size: 14.5px; color: #b7c6db; }

/* ---------- Prose (legal / FAQ) ---------- */
.prose { max-width: 820px; }
.prose h2 { font-size: 1.35rem; margin-top: 1.8em; }
.prose h3 { font-size: 1.12rem; margin-top: 1.5em; }
.prose ul { padding-left: 20px; }
.faq .accordion-item { border: 1px solid var(--line); border-radius: var(--radius) !important; margin-bottom: 12px; overflow: hidden; }
.faq .accordion-button { font-family: var(--font-head); font-weight: 700; color: var(--ink); font-size: 16px; padding: 18px 20px; }
.faq .accordion-button:not(.collapsed) { background: var(--navy-50); color: var(--navy-800); box-shadow: none; }
.faq .accordion-button:focus { box-shadow: 0 0 0 3px rgba(245, 114, 0, .3); }

/* ---------- Stats strip (facts, never invented numbers) ---------- */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 992px) { .facts { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts div { background: #fff; padding: 22px 18px; }
.facts strong { display: block; font-family: var(--font-head); font-weight: 900; font-size: clamp(1.6rem, 4vw, 2.2rem); color: var(--navy-800); line-height: 1.05; }
.facts span { font-size: 14px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-950); color: #9fb2cc; font-size: 15px; }
.footer-cta { background: var(--orange-500); color: #fff; }
.footer-cta .wrap { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; padding-top: 26px; padding-bottom: 26px; }
.footer-cta h2 { color: #fff; margin: 0; font-size: clamp(1.2rem, 3vw, 1.6rem); }
.footer-cta .btn-x { background: var(--navy-900); color: #fff; }
.footer-cta .btn-x:hover { background: #fff; color: var(--navy-900); }
.footer-main { padding: 56px 0 30px; display: grid; gap: 34px; grid-template-columns: 1fr; }
@media (min-width: 768px) { .footer-main { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .footer-main { grid-template-columns: 1.4fr .8fr 1.1fr 1.1fr; gap: 40px; } }
.footer-brand img { width: 150px; margin-bottom: 18px; }
.footer-brand .tag { font-family: var(--font-head); font-weight: 700; color: var(--orange-400); margin-bottom: 10px; }
.site-footer h3 { color: #fff; font-size: 15px; letter-spacing: .1em; text-transform: uppercase; margin-bottom: 18px; }
.footer-links { list-style: none; padding: 0; margin: 0; display: grid; gap: 9px; }
.footer-links a { color: #b7c6db; }
.footer-links a:hover { color: var(--orange-400); }
.footer-contact { list-style: none; padding: 0; margin: 0 0 18px; display: grid; gap: 12px; }
.footer-contact li { display: flex; gap: 12px; align-items: flex-start; }
.footer-contact i { color: var(--orange-400); font-size: 17px; margin-top: 2px; }
.footer-contact a { color: #dbe4f0; word-break: break-all; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); padding: 18px 0 22px; font-size: 13.5px; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; }
.footer-bottom a { color: #b7c6db; }
.footer-bottom ul { display: flex; flex-wrap: wrap; gap: 16px; list-style: none; padding: 0; margin: 0; }

/* Mobile quick-contact bar */
.quick-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1020; display: grid; grid-template-columns: 1fr 1fr 1fr; background: var(--navy-950); border-top: 1px solid rgba(255, 255, 255, .1); padding-bottom: env(safe-area-inset-bottom); }
.quick-bar a { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 9px 4px; color: #fff; font-size: 12px; font-weight: 600; }
.quick-bar a i { font-size: 19px; color: var(--orange-400); }
.quick-bar a.primary { background: var(--orange-500); }
.quick-bar a.primary i { color: #fff; }
@media (min-width: 992px) { .quick-bar { display: none; } }
@media (max-width: 991.98px) { body { padding-bottom: 62px; } #back-to-top { bottom: 76px; } }

#back-to-top { position: fixed; right: 16px; bottom: 20px; z-index: 1010; width: 46px; height: 46px; border: 0; border-radius: 12px; background: var(--navy-800); color: #fff; font-size: 18px; display: inline-flex; align-items: center; justify-content: center; opacity: 0; visibility: hidden; transform: translateY(10px); transition: all .25s var(--ease); box-shadow: var(--shadow); }
#back-to-top.show { opacity: 1; visibility: visible; transform: none; }
#back-to-top:hover { background: var(--orange-500); }

/* Flash messages */
.alert { border-radius: 12px; }

/* Subtle reveal (only when JS adds .reveal-ready) */
.reveal-ready [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal-ready [data-reveal].is-in { opacity: 1; transform: none; }
.steps.light li { color: var(--text); }
.steps.light li strong { color: var(--ink); }
.course-card h2 { font-size: 1.08rem; line-height: 1.3; margin-bottom: 8px; }
.course-card h2 a { color: var(--ink); }
.course-card h2 a::after { content: ""; position: absolute; inset: 0; }
.course-card h2 a:hover { color: var(--orange-600); }
@media (min-width: 768px) { .gallery-filters { flex-wrap: wrap; overflow: visible; } }
.course-figure.compact { max-width: 560px; }
