/* ==========================================================================
   RED DUNE TRAINING CENTRE — MAIN STYLESHEET
   Structure:
     01. Reset & base
     02. Typography helpers
     03. Layout & sections
     04. Buttons & badges
     05. Topbar & header navigation
     06. Hero slider
     07. Page hero (inner pages)
     08. Cards & grids
     09. Counters / stats
     10. Facility, why-us, testimonials
     11. Client logos
     12. Blog
     13. Course pages
     14. Tables (schedule)
     15. Accordion / FAQ
     16. Gallery
     17. Forms & contact
     18. CTA band
     19. Footer
     20. Floating actions
     21. Utilities & reveal animations
     22. Responsive
   ========================================================================== */

/* ============================================================ 01. RESET === */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 110px;
  overflow-x: hidden;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: var(--fs-body);
  line-height: var(--lh-body);
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
input, select, textarea { font: inherit; color: inherit; }
ul, ol { margin: 0; padding: 0; }
li { list-style: none; }
table { border-collapse: collapse; width: 100%; }

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: 12px; top: -60px;
  background: var(--accent); color: #fff;
  padding: 10px 18px; border-radius: var(--radius-sm);
  z-index: var(--z-modal); transition: top var(--t-fast);
  font-weight: var(--fw-semibold);
}
.skip-link:focus { top: 12px; }

/* ======================================================= 02. TYPOGRAPHY === */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--heading);
  line-height: var(--lh-heading);
  margin: 0 0 .6em;
  font-weight: var(--fw-bold);
  letter-spacing: -.015em;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); }
h4 { font-size: var(--fs-h4); }
p  { margin: 0 0 1.15em; }
p:last-child { margin-bottom: 0; }

.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-heading);
  font-size: var(--fs-xs);
  font-weight: var(--fw-bold);
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 14px;
}
.kicker::before {
  content: ""; width: 26px; height: 2px;
  background: var(--accent); border-radius: 2px;
}
.kicker--center { justify-content: center; }
.on-dark .kicker, .kicker--light { color: var(--gold); }
.on-dark .kicker::before, .kicker--light::before { background: var(--gold); }

.lead { font-size: 1.0625rem; color: var(--body); }
.section-head { max-width: 760px; margin: 0 auto clamp(34px, 5vw, 58px); text-align: center; }
.section-head p { color: var(--body); }
.section-head--left { margin-left: 0; text-align: left; }

.on-dark, .on-dark p, .on-dark li { color: var(--on-dark-muted); }
.on-dark h1, .on-dark h2, .on-dark h3, .on-dark h4 { color: var(--on-dark); }

/* =========================================================== 03. LAYOUT === */
.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: var(--container-narrow); }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: clamp(40px, 5vw, 70px); }
.section--alt { background: var(--bg-alt); }
.section--tint { background: var(--brand-tint); }
.section--dark {
  background:
    radial-gradient(1000px 500px at 85% -10%, rgba(217, 84, 43, .22), transparent 60%),
    linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: var(--on-dark-muted);
}
.section--dark h2, .section--dark h3, .section--dark h4 { color: var(--on-dark); }

.grid { display: grid; gap: 26px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 5vw, 70px);
  align-items: center;
}

/* ========================================================== 04. BUTTONS === */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-heading);
  font-weight: var(--fw-semibold);
  font-size: var(--fs-sm);
  padding: 14px 28px;
  border-radius: var(--radius-pill);
  transition: transform var(--t-fast), box-shadow var(--t), background var(--t), color var(--t), border-color var(--t);
  white-space: nowrap;
  border: 2px solid transparent;
  line-height: 1.2;
}
.btn svg { width: 16px; height: 16px; flex: none; transition: transform var(--t-fast); }
.btn:hover { transform: translateY(-2px); }
.btn:hover svg { transform: translateX(3px); }
.btn:active { transform: translateY(0); }

.btn--primary { background: var(--accent); color: #fff; box-shadow: 0 10px 22px -10px rgba(217,84,43,.8); }
.btn--primary:hover { background: var(--accent-hover); box-shadow: 0 16px 30px -12px rgba(217,84,43,.9); }

.btn--brand { background: var(--brand); color: #fff; box-shadow: var(--shadow-brand); }
.btn--brand:hover { background: var(--brand-deep); }

.btn--ghost { border-color: var(--border); color: var(--heading); background: #fff; }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }

.btn--light { background: #fff; color: var(--brand); }
.btn--light:hover { background: var(--brand-tint); }

.btn--outline-light { border-color: rgba(255,255,255,.45); color: #fff; }
.btn--outline-light:hover { background: #fff; color: var(--brand); border-color: #fff; }

.btn--sm { padding: 10px 20px; font-size: var(--fs-xs); }
.btn--block { width: 100%; }

.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-row--center { justify-content: center; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--fs-xs); font-weight: var(--fw-semibold);
  padding: 5px 13px; border-radius: var(--radius-pill);
  background: var(--brand-tint); color: var(--brand);
  font-family: var(--font-heading);
  white-space: nowrap; line-height: 1.4;
}
.badge svg { width: 13px; height: 13px; flex: none; }
.badge--accent { background: var(--accent-soft); color: var(--accent-hover); }
.badge--light  { background: rgba(255,255,255,.14); color: #fff; }

.link-arrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-heading); font-weight: var(--fw-semibold);
  font-size: var(--fs-sm); color: var(--accent);
}
.link-arrow svg { width: 15px; height: 15px; transition: transform var(--t-fast); }
.link-arrow:hover svg { transform: translateX(4px); }

/* ================================================ 05. TOPBAR & HEADER === */
.topbar {
  background: var(--brand-deep);
  color: var(--on-dark-muted);
  font-size: var(--fs-xs);
  padding: 9px 0;
}
.topbar .container { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.topbar-list { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.topbar-list a { display: inline-flex; align-items: center; gap: 7px; transition: color var(--t-fast); }
.topbar-list a:hover { color: #fff; }
.topbar-list svg { width: 14px; height: 14px; color: var(--gold); flex: none; }
.topbar-social { display: flex; align-items: center; gap: 8px; }
.topbar-social a {
  width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center;
  background: rgba(255,255,255,.10);
  transition: background var(--t-fast), transform var(--t-fast);
}
.topbar-social a:hover { background: var(--accent); transform: translateY(-2px); }
.topbar-social svg { width: 13px; height: 13px; }

.header {
  position: sticky; top: 0; z-index: var(--z-header);
  background: #fff;
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--t), padding var(--t);
}
.header.is-stuck { box-shadow: var(--shadow); }
.header .container {
  display: flex; align-items: center; gap: 18px; min-height: 78px;
  max-width: 1440px;          /* the header is allowed to be wider than content */
}

.logo { display: flex; align-items: center; gap: 12px; flex: none; }
.logo img { width: 46px; height: 46px; }
.logo-text { display: flex; flex-direction: column; line-height: 1.05; }
.logo-text b {
  font-family: var(--font-heading); font-weight: var(--fw-black);
  font-size: 1.2rem; color: var(--brand); letter-spacing: .04em;
}
.logo-text span {
  font-size: .6rem; letter-spacing: .22em;
  color: var(--muted); font-weight: var(--fw-semibold);
}

.nav { margin-left: auto; min-width: 0; }
.nav > ul { display: flex; align-items: center; gap: 0; }
.nav > ul > li { position: relative; }
.nav > ul > li > a {
  display: flex; align-items: center; gap: 5px;
  padding: 28px 11px;
  white-space: nowrap;
  font-family: var(--font-heading);
  font-size: .875rem; font-weight: var(--fw-semibold);
  color: var(--heading);
  transition: color var(--t-fast);
  position: relative;
}
.nav > ul > li > a::after {
  content: ""; position: absolute; left: 11px; right: 11px; bottom: 20px;
  height: 2px; background: var(--accent); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform var(--t);
}
.nav > ul > li > a:hover,
.nav > ul > li.is-active > a { color: var(--brand); }
.nav > ul > li > a:hover::after,
.nav > ul > li.is-active > a::after { transform: scaleX(1); }
.nav .caret { width: 11px; height: 11px; opacity: .55; transition: transform var(--t-fast); }
.nav li:hover > a .caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown {
  position: absolute; top: 100%; left: 0;
  min-width: 300px;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 10px;
  opacity: 0; visibility: hidden; transform: translateY(12px);
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nav li:hover > .dropdown,
.nav li:focus-within > .dropdown { opacity: 1; visibility: visible; transform: translateY(0); }
.dropdown a {
  display: block; padding: 10px 14px; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); color: var(--body);
  transition: background var(--t-fast), color var(--t-fast), padding-left var(--t-fast);
}
.dropdown a:hover { background: var(--brand-tint); color: var(--brand); padding-left: 20px; }

/* Mega menu */
.mega {
  position: absolute; top: 100%; left: 50%; transform: translate(-50%, 12px);
  width: min(900px, calc(100vw - 48px));
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 26px;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px 20px;
  opacity: 0; visibility: hidden;
  transition: opacity var(--t), transform var(--t), visibility var(--t);
}
.nav li:hover > .mega,
.nav li:focus-within > .mega { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.mega a {
  display: flex; align-items: flex-start; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); color: var(--body); line-height: 1.4;
  transition: background var(--t-fast), color var(--t-fast);
}
.mega a::before {
  content: ""; width: 5px; height: 5px; margin-top: 8px; flex: none;
  background: var(--accent); border-radius: 50%; opacity: .5;
  transition: opacity var(--t-fast), transform var(--t-fast);
}
.mega a:hover { background: var(--brand-tint); color: var(--brand); }
.mega a:hover::before { opacity: 1; transform: scale(1.5); }
.mega-foot {
  grid-column: 1 / -1; margin-top: 14px; padding-top: 16px;
  border-top: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  flex-wrap: wrap;
}
.mega-foot span { font-size: var(--fs-sm); color: var(--muted); }

.header-cta { flex: none; margin-left: 8px; }
.nav-toggle {
  display: none; margin-left: auto;
  width: 46px; height: 46px; border-radius: var(--radius-sm);
  background: var(--brand-tint); color: var(--brand);
  place-items: center;
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile drawer */
.drawer {
  position: fixed; inset: 0 0 0 auto; width: min(400px, 88vw);
  background: #fff; z-index: var(--z-drawer);
  transform: translateX(102%); transition: transform var(--t-slow);
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-lg);
}
.drawer.is-open { transform: translateX(0); }
.drawer-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px var(--gutter); border-bottom: 1px solid var(--border);
}
.drawer-close { width: 40px; height: 40px; display: grid; place-items: center; border-radius: var(--radius-sm); background: var(--bg-alt); }
.drawer-close svg { width: 20px; height: 20px; }
.drawer-body { overflow-y: auto; padding: 12px var(--gutter) 30px; flex: 1; }
.drawer-body > ul > li { border-bottom: 1px solid var(--border); }
.drawer-body a, .drawer-toggle {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  width: 100%; padding: 14px 2px; text-align: left;
  font-family: var(--font-heading); font-weight: var(--fw-semibold);
  color: var(--heading); font-size: var(--fs-sm);
}
.drawer-toggle svg { width: 16px; height: 16px; transition: transform var(--t-fast); flex: none; }
.drawer-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.drawer-sub { display: none; padding: 0 0 12px 14px; border-left: 2px solid var(--brand-tint); margin-left: 4px; }
.drawer-sub.is-open { display: block; }
.drawer-sub a { padding: 9px 2px; font-weight: var(--fw-normal); color: var(--body); }
.drawer-foot { padding: 18px var(--gutter) 26px; border-top: 1px solid var(--border); display: grid; gap: 12px; }

.backdrop {
  position: fixed; inset: 0; background: rgba(20,18,58,.55);
  backdrop-filter: blur(2px);
  opacity: 0; visibility: hidden; transition: opacity var(--t), visibility var(--t);
  z-index: var(--z-drawer);
}
.backdrop.is-open { opacity: 1; visibility: visible; }

/* ====================================================== 06. HERO SLIDER === */
.hero { position: relative; overflow: hidden; background: var(--brand-deep); }
.hero-track { position: relative; min-height: clamp(520px, 76vh, 760px); }
.hero-slide {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  opacity: 0; visibility: hidden;
  transition: opacity .8s var(--ease-out), visibility .8s;
}
.hero-slide.is-active { opacity: 1; visibility: visible; }
.hero-bg {
  position: absolute; inset: 0;
  width: 100%; height: 100%; object-fit: cover;
  transform: scale(1.06);
  transition: transform 9s linear;
}
.hero-slide.is-active .hero-bg { transform: scale(1); }
.hero-slide::after {
  content: ""; position: absolute; inset: 0;
  background:
    linear-gradient(100deg, rgba(20,17,52,.95) 0%, rgba(30,26,74,.88) 45%, rgba(38,33,95,.66) 100%);
}
.hero-inner {
  position: relative; z-index: 2; text-align: center;
  max-width: 880px; padding: 96px var(--gutter) 168px;
}
.hero-kicker {
  display: inline-block; margin-bottom: 20px;
  padding: 7px 18px; border-radius: var(--radius-pill);
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #fff; font-size: var(--fs-xs);
  font-family: var(--font-heading); font-weight: var(--fw-semibold);
  letter-spacing: .1em; text-transform: uppercase;
}
/* Only the first slide carries the <h1>; later slides use .hero-title so the
   page keeps exactly one top-level heading. Both look identical. */
.hero h1, .hero .hero-title {
  font-family: var(--font-heading);
  font-size: var(--fs-hero); color: #fff;
  line-height: var(--lh-tight); margin: 0 0 .25em;
  font-weight: var(--fw-black);
  letter-spacing: -.015em;
}
.hero-sub {
  font-family: var(--font-heading);
  font-size: clamp(1rem, 1.9vw, 1.4rem);
  letter-spacing: .28em; text-transform: uppercase;
  color: var(--gold); font-weight: var(--fw-semibold);
  margin-bottom: 22px;
}
.hero-text {
  color: rgba(255,255,255,.86);
  font-size: 1.0625rem; max-width: 620px; margin: 0 auto 32px;
}
.hero .btn-row { justify-content: center; }

.hero-slide.is-active .hero-kicker,
.hero-slide.is-active h1,
.hero-slide.is-active .hero-title,
.hero-slide.is-active .hero-sub,
.hero-slide.is-active .hero-text,
.hero-slide.is-active .btn-row {
  animation: heroUp .9s var(--ease-out) backwards;
}
.hero-slide.is-active h1,
.hero-slide.is-active .hero-title { animation-delay: .1s; }
.hero-slide.is-active .hero-sub { animation-delay: .2s; }
.hero-slide.is-active .hero-text{ animation-delay: .3s; }
.hero-slide.is-active .btn-row  { animation-delay: .4s; }
@keyframes heroUp { from { opacity: 0; transform: translateY(26px); } to { opacity: 1; transform: none; } }

.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; z-index: 3;
  background: rgba(255,255,255,.10);
  border: 1px solid rgba(255,255,255,.28);
  color: #fff; transition: background var(--t), transform var(--t-fast);
}
.hero-arrow:hover { background: var(--accent); border-color: var(--accent); }
.hero-arrow svg { width: 20px; height: 20px; }
.hero-arrow--prev { left: 22px; }
.hero-arrow--next { right: 22px; }

.hero-dots {
  position: absolute; bottom: 88px; left: 50%; transform: translateX(-50%);
  display: flex; gap: 10px; z-index: 3;
}
.hero-dots button {
  width: 10px; height: 10px; border-radius: 50%;
  background: rgba(255,255,255,.4); transition: all var(--t);
}
.hero-dots button.is-active { background: var(--gold); width: 34px; border-radius: var(--radius-pill); }

.hero-accreditations {
  position: relative; z-index: 3;
  background: rgba(20,18,58,.55);
  border-top: 1px solid rgba(255,255,255,.14);
  backdrop-filter: blur(6px);
  padding: 16px 0;
  margin-top: -68px;
}
.hero-accreditations ul {
  display: flex; flex-wrap: wrap; justify-content: center; gap: 12px 30px;
}
.hero-accreditations li {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,.85);
  font-family: var(--font-heading); font-size: var(--fs-xs);
  font-weight: var(--fw-semibold); letter-spacing: .1em; text-transform: uppercase;
}
.hero-accreditations svg { width: 15px; height: 15px; color: var(--gold); flex: none; }

/* ======================================================== 07. PAGE HERO === */
.page-hero {
  position: relative; padding: clamp(60px, 9vw, 120px) 0 clamp(52px, 7vw, 90px);
  background:
    radial-gradient(900px 420px at 80% -20%, rgba(217,84,43,.28), transparent 60%),
    linear-gradient(120deg, var(--brand) 0%, var(--brand-deep) 100%);
  color: #fff; overflow: hidden;
}
.page-hero::before {
  content: ""; position: absolute; right: -80px; bottom: -120px;
  width: 420px; height: 420px; border-radius: 50%;
  border: 60px solid rgba(255,255,255,.04);
}
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; max-width: 900px; margin-bottom: .3em; }
.page-hero p { color: rgba(255,255,255,.82); max-width: 700px; font-size: 1.0625rem; }

.crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: var(--fs-sm); }
.crumbs a { color: rgba(255,255,255,.72); transition: color var(--t-fast); }
.crumbs a:hover { color: var(--gold); }
.crumbs span { color: var(--gold); }
.crumbs .sep { color: rgba(255,255,255,.4); }

/* ============================================================ 08. CARDS === */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 30px;
  transition: transform var(--t), box-shadow var(--t), border-color var(--t);
  height: 100%;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); border-color: transparent; }
.card h3 { margin-bottom: .5em; }
.card p { font-size: var(--fs-sm); }
.card .link-arrow { margin-top: auto; padding-top: 18px; }

.icon-box {
  width: 60px; height: 60px; border-radius: var(--radius);
  display: grid; place-items: center; margin-bottom: 22px;
  background: linear-gradient(135deg, var(--brand-tint), #fff);
  color: var(--brand); border: 1px solid var(--border);
  transition: background var(--t), color var(--t), transform var(--t);
}
.icon-box svg { width: 28px; height: 28px; }
.card:hover .icon-box { background: var(--accent); color: #fff; border-color: var(--accent); transform: rotate(-6deg); }
.icon-box--accent { background: var(--accent-soft); color: var(--accent); }
.icon-box--sm { width: 46px; height: 46px; margin-bottom: 0; }
.icon-box--sm svg { width: 21px; height: 21px; }

/* Service card with big number */
.service-card { position: relative; overflow: hidden; }
.service-card .num {
  position: absolute; top: 14px; right: 20px;
  font-family: var(--font-heading); font-size: 3.4rem; font-weight: var(--fw-black);
  color: var(--brand-tint); line-height: 1; transition: color var(--t);
}
.service-card:hover .num { color: var(--accent-soft); }

/* Category card */
.cat-card {
  position: relative; overflow: hidden;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px 28px;
  transition: transform var(--t), box-shadow var(--t);
  display: flex; flex-direction: column; height: 100%;
}
.cat-card::after {
  content: ""; position: absolute; left: 0; top: 0; height: 4px; width: 0;
  background: linear-gradient(90deg, var(--accent), var(--gold));
  transition: width var(--t-slow);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.cat-card:hover::after { width: 100%; }
.cat-card .tagline {
  font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .12em;
  color: var(--accent); font-weight: var(--fw-semibold);
  font-family: var(--font-heading); margin-bottom: 8px;
}

/* Feature list with check icons */
.check-list { display: grid; gap: 12px; }
.check-list li { display: flex; align-items: flex-start; gap: 12px; font-size: var(--fs-sm); }
.check-list svg { width: 20px; height: 20px; flex: none; margin-top: 3px; color: var(--accent); }
.on-dark .check-list svg { color: var(--gold); }

/* Point rows (about section) */
.point-row { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; }
.point-row:last-child { margin-bottom: 0; }
.point-row h4 { margin-bottom: 3px; font-size: 1.0625rem; }
.point-row p { font-size: var(--fs-sm); margin: 0; }

.media-frame {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame--offset::before {
  content: ""; position: absolute; inset: auto auto -18px -18px;
  width: 140px; height: 140px; border-radius: var(--radius-lg);
  background: var(--accent); opacity: .12; z-index: -1;
}

.call-card {
  display: flex; align-items: center; gap: 16px;
  margin-top: 30px; padding: 18px 24px;
  background: var(--brand-tint); border-radius: var(--radius);
}
.call-card .icon-box { margin: 0; background: var(--brand); color: #fff; border-color: var(--brand); }
.call-card small { display: block; font-size: var(--fs-xs); color: var(--muted); text-transform: uppercase; letter-spacing: .1em; }
.call-card strong { font-family: var(--font-heading); color: var(--brand); font-size: 1.0625rem; }
.call-card a { display: block; }
.call-card a:hover strong { color: var(--accent); }

/* ========================================================= 09. COUNTERS === */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.stat {
  text-align: center; padding: 34px 18px;
  border-radius: var(--radius-lg);
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.14);
  transition: background var(--t), transform var(--t);
}
.stat:hover { background: rgba(255,255,255,.13); transform: translateY(-5px); }
.stat b {
  display: block; font-family: var(--font-heading);
  font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: var(--fw-black);
  color: var(--gold); line-height: 1; margin-bottom: 8px;
}
.stat span { color: rgba(255,255,255,.82); font-size: var(--fs-sm); }

/* ============================== 10. FACILITY / WHY-US / TESTIMONIALS === */
.facility-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 46px; }
.facility-card {
  background: rgba(255,255,255,.07);
  border: 1px solid rgba(255,255,255,.15);
  border-radius: var(--radius-lg); padding: 30px;
  transition: background var(--t), transform var(--t);
  display: flex; flex-direction: column;
}
.facility-card:hover { background: rgba(255,255,255,.13); transform: translateY(-6px); }
.facility-card .num {
  font-family: var(--font-heading); font-weight: var(--fw-black);
  font-size: 1.6rem; color: var(--gold); margin-bottom: 12px; display: block;
}
.facility-card h3 { color: #fff; }
.facility-card .link-arrow { color: var(--gold); margin-top: auto; padding-top: 16px; }

.why-card {
  display: flex; gap: 18px; padding: 26px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); transition: box-shadow var(--t), transform var(--t);
  height: 100%;
}
.why-card:hover { box-shadow: var(--shadow); transform: translateY(-4px); }
.why-card h4 { margin-bottom: 5px; }
.why-card p { font-size: var(--fs-sm); margin: 0; }

.quote-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 32px;
  position: relative; height: 100%;
  display: flex; flex-direction: column;
  transition: box-shadow var(--t), transform var(--t);
}
.quote-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-5px); }
.quote-card .qmark {
  font-family: var(--font-heading); font-size: 3.6rem; font-weight: var(--fw-black);
  color: var(--accent); opacity: .18; line-height: .8; margin-bottom: 8px;
}
.quote-card blockquote { margin: 0 0 22px; font-size: 1.0625rem; color: var(--heading); line-height: 1.65; }
.quote-card footer { margin-top: auto; display: flex; align-items: center; gap: 12px; }
.avatar {
  width: 46px; height: 46px; border-radius: 50%; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-soft));
  color: #fff; display: grid; place-items: center;
  font-family: var(--font-heading); font-weight: var(--fw-bold);
}
.quote-card cite { font-style: normal; font-family: var(--font-heading); font-weight: var(--fw-semibold); color: var(--heading); display: block; }
.quote-card small { color: var(--muted); font-size: var(--fs-xs); }

/* =========================================================== 11. LOGOS === */
.logo-marquee { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logo-track { display: flex; gap: 18px; width: max-content; animation: marquee 46s linear infinite; }
.logo-marquee:hover .logo-track { animation-play-state: paused; }
@keyframes marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
.client-logo {
  flex: none; width: 190px; height: 92px;
  display: grid; place-items: center; padding: 16px;
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-heading); font-weight: var(--fw-bold);
  color: var(--muted); font-size: var(--fs-sm); text-align: center;
  transition: color var(--t), border-color var(--t), box-shadow var(--t);
}
.client-logo:hover { color: var(--brand); border-color: var(--brand-soft); box-shadow: var(--shadow-sm); }
.client-logo img { max-height: 56px; width: auto; object-fit: contain; }

/* ============================================================ 12. BLOG === */
.post-card {
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius-lg); overflow: hidden;
  display: flex; flex-direction: column; height: 100%;
  transition: transform var(--t), box-shadow var(--t);
}
.post-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.post-thumb { position: relative; aspect-ratio: 16 / 10; overflow: hidden; background: var(--brand-tint); }
.post-thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.post-card:hover .post-thumb img { transform: scale(1.06); }
.post-thumb .badge { position: absolute; top: 14px; left: 14px; background: #fff; }
.post-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.post-meta {
  display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px;
  font-size: var(--fs-xs); color: var(--muted); margin-bottom: 14px;
}
.post-meta span { display: inline-flex; align-items: center; gap: 6px; }
.post-meta svg { width: 14px; height: 14px; color: var(--accent); }
.post-card h3 { font-size: 1.1875rem; margin-bottom: .5em; }
.post-card h3 a { transition: color var(--t-fast); }
.post-card:hover h3 a { color: var(--accent); }
.post-card p { font-size: var(--fs-sm); }
.post-card .link-arrow { margin-top: auto; padding-top: 18px; }

.article { max-width: 780px; }
.article h2 { font-size: 1.5rem; margin-top: 1.8em; }
.article h2:first-child { margin-top: 0; }
.article p, .article li { font-size: 1.0625rem; line-height: 1.8; }
.article ul { margin: 0 0 1.4em; display: grid; gap: 11px; }
.article ul li { display: flex; gap: 12px; align-items: flex-start; }
.article ul li::before {
  content: ""; width: 7px; height: 7px; margin-top: 12px; flex: none;
  border-radius: 50%; background: var(--accent);
}
.article blockquote {
  margin: 1.8em 0; padding: 24px 28px;
  background: var(--brand-tint); border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  font-family: var(--font-heading); font-size: 1.125rem;
  color: var(--brand); font-weight: var(--fw-medium); line-height: 1.6;
}
.article-hero { border-radius: var(--radius-lg); overflow: hidden; margin-bottom: 40px; box-shadow: var(--shadow); }

.sidebar { display: grid; gap: 26px; align-content: start; position: sticky; top: 100px; }
.widget { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; }
.widget h4 { margin-bottom: 18px; padding-bottom: 14px; border-bottom: 1px solid var(--border); }
.widget-list { display: grid; gap: 4px; }
.widget-list a {
  display: flex; justify-content: space-between; gap: 12px;
  padding: 10px 12px; border-radius: var(--radius-sm);
  font-size: var(--fs-sm); transition: background var(--t-fast), color var(--t-fast);
}
.widget-list a:hover { background: var(--brand-tint); color: var(--brand); }
.widget-list small { color: var(--muted); flex: none; }
.recent-post { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--border); }
.recent-post:last-child { border-bottom: 0; padding-bottom: 0; }
.recent-post img { width: 72px; height: 60px; border-radius: var(--radius-sm); object-fit: cover; flex: none; }
.recent-post strong { font-family: var(--font-heading); font-size: var(--fs-sm); color: var(--heading); display: block; line-height: 1.4; transition: color var(--t-fast); }
.recent-post:hover strong { color: var(--accent); }
.recent-post small { color: var(--muted); font-size: var(--fs-xs); }

/* ==================================================== 13. COURSE PAGES === */
.course-layout { display: grid; grid-template-columns: 1fr 340px; gap: clamp(30px, 4vw, 52px); align-items: start; }

.spec-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 148px), 1fr));
  background: #fff; border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; margin-bottom: 40px;
}
.spec { padding: 20px 22px; border-right: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.spec:last-child { border-right: 0; }
.spec small { display: block; font-size: var(--fs-xs); text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 5px; }
.spec strong { font-family: var(--font-heading); color: var(--heading); font-size: var(--fs-sm); font-weight: var(--fw-semibold); line-height: 1.4; }

.module-list { counter-reset: mod; display: grid; gap: 10px; }
.module-list li {
  counter-increment: mod;
  display: flex; gap: 16px; align-items: flex-start;
  padding: 16px 20px; background: var(--bg-alt);
  border-radius: var(--radius); border: 1px solid transparent;
  transition: border-color var(--t), background var(--t);
  font-size: var(--fs-sm);
}
.module-list li:hover { background: #fff; border-color: var(--border); }
.module-list li::before {
  content: counter(mod, decimal-leading-zero);
  font-family: var(--font-heading); font-weight: var(--fw-bold);
  color: var(--accent); flex: none; font-size: var(--fs-sm);
}

.course-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); }

.enquiry-box {
  background: linear-gradient(150deg, var(--brand) 0%, var(--brand-deep) 100%);
  border-radius: var(--radius-lg); padding: 30px; color: #fff;
}
.enquiry-box h4 { color: #fff; }
.enquiry-box p { font-size: var(--fs-sm); color: rgba(255,255,255,.8); }
.enquiry-box .contact-line { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,.15); font-size: var(--fs-sm); }
.enquiry-box .contact-line:last-of-type { border-bottom: 0; }
.enquiry-box svg { width: 17px; height: 17px; color: var(--gold); flex: none; }

.course-filter { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 38px; }
.filter-btn {
  padding: 9px 20px; border-radius: var(--radius-pill);
  border: 1px solid var(--border); background: #fff;
  font-family: var(--font-heading); font-size: var(--fs-sm); font-weight: var(--fw-semibold);
  color: var(--body); transition: all var(--t-fast);
}
.filter-btn:hover { border-color: var(--brand-soft); color: var(--brand); }
.filter-btn.is-active { background: var(--brand); border-color: var(--brand); color: #fff; }

/* =========================================================== 14. TABLES === */
.table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; }
table.data { min-width: 720px; font-size: var(--fs-sm); }
table.data thead th {
  background: var(--brand); color: #fff;
  font-family: var(--font-heading); font-weight: var(--fw-semibold);
  text-align: left; padding: 15px 20px; white-space: nowrap;
  font-size: var(--fs-xs); letter-spacing: .06em; text-transform: uppercase;
}
table.data tbody td { padding: 15px 20px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.data tbody tr:last-child td { border-bottom: 0; }
table.data tbody tr { transition: background var(--t-fast); }
table.data tbody tr:hover { background: var(--brand-tint); }
table.data td:first-child { font-family: var(--font-heading); font-weight: var(--fw-semibold); color: var(--heading); }
.seats { display: inline-flex; align-items: center; gap: 6px; font-weight: var(--fw-semibold); }
.seats.low { color: var(--danger); }
.seats.ok  { color: var(--success); }

/* ======================================================== 15. ACCORDION === */
.accordion { display: grid; gap: 14px; }
.acc-item { background: #fff; border: 1px solid var(--border); border-radius: var(--radius); overflow: hidden; transition: box-shadow var(--t), border-color var(--t); }
.acc-item.is-open { box-shadow: var(--shadow); border-color: var(--brand-soft); }
.acc-head {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 20px 24px; text-align: left;
  font-family: var(--font-heading); font-weight: var(--fw-semibold);
  color: var(--heading); font-size: 1.0625rem; line-height: 1.4;
}
.acc-head .plus { width: 30px; height: 30px; flex: none; border-radius: 50%; background: var(--brand-tint); color: var(--brand); display: grid; place-items: center; transition: all var(--t); }
.acc-item.is-open .acc-head { color: var(--brand); }
.acc-item.is-open .plus { background: var(--accent); color: #fff; transform: rotate(45deg); }
.acc-head svg { width: 16px; height: 16px; }
.acc-panel { max-height: 0; overflow: hidden; transition: max-height var(--t-slow); }
.acc-panel-inner { padding: 0 24px 22px; font-size: var(--fs-sm); }

/* ========================================================== 16. GALLERY === */
.gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.gal-item {
  position: relative; border-radius: var(--radius); overflow: hidden;
  aspect-ratio: 4 / 3; cursor: zoom-in; background: var(--brand-tint);
}
.gal-item img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow); }
.gal-item:hover img { transform: scale(1.08); }
.gal-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 40px 18px 16px;
  background: linear-gradient(transparent, rgba(20,18,58,.92));
  color: #fff; font-size: var(--fs-sm);
  transform: translateY(6px); opacity: 0; transition: all var(--t);
}
.gal-item:hover figcaption { transform: none; opacity: 1; }

.lightbox {
  position: fixed; inset: 0; z-index: var(--z-modal);
  background: rgba(12,10,32,.94); display: grid; place-items: center;
  padding: 40px 20px; opacity: 0; visibility: hidden; transition: all var(--t);
}
.lightbox.is-open { opacity: 1; visibility: visible; }
.lightbox img { max-width: min(1100px, 92vw); max-height: 78vh; border-radius: var(--radius); }
.lightbox p { color: #fff; text-align: center; margin-top: 18px; }
.lightbox-close { position: absolute; top: 22px; right: 22px; width: 46px; height: 46px; border-radius: 50%; background: rgba(255,255,255,.14); color: #fff; display: grid; place-items: center; }
.lightbox-close svg { width: 22px; height: 22px; }

/* ============================================================ 17. FORMS === */
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: grid; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-family: var(--font-heading); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--heading); }
.field label .req { color: var(--accent); }
.field input, .field select, .field textarea {
  width: 100%; padding: 13px 16px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: #fff; font-size: var(--fs-sm);
  transition: border-color var(--t-fast), box-shadow var(--t-fast);
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand-soft);
  box-shadow: 0 0 0 4px rgba(75,70,138,.12);
}
.field .error { color: var(--danger); font-size: var(--fs-xs); display: none; }
.field.has-error input, .field.has-error select, .field.has-error textarea { border-color: var(--danger); }
.field.has-error .error { display: block; }
.form-note { font-size: var(--fs-xs); color: var(--muted); }
.form-status { padding: 14px 18px; border-radius: var(--radius-sm); font-size: var(--fs-sm); display: none; }
.form-status.is-visible { display: block; }
.form-status.ok { background: #ECFDF3; color: #05603A; border: 1px solid #ABEFC6; }

.info-card {
  display: flex; gap: 16px; padding: 24px;
  background: #fff; border: 1px solid var(--border); border-radius: var(--radius);
  height: 100%;
}
.info-card h4 { margin-bottom: 4px; }
.info-card p, .info-card a { font-size: var(--fs-sm); margin: 0; }
.info-card a:hover { color: var(--accent); }

.map-frame { border-radius: var(--radius-lg); overflow: hidden; border: 1px solid var(--border); line-height: 0; }
.map-frame iframe { width: 100%; height: 420px; border: 0; }

/* Verification widget */
.verify-box { max-width: 620px; margin: 0 auto; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: clamp(26px, 4vw, 42px); box-shadow: var(--shadow); }
.verify-result { margin-top: 26px; padding: 24px; border-radius: var(--radius); display: none; }
.verify-result.is-visible { display: block; }
.verify-result.found { background: #ECFDF3; border: 1px solid #ABEFC6; }
.verify-result.missing { background: #FEF3F2; border: 1px solid #FECDCA; }
.verify-result dl { display: grid; grid-template-columns: auto 1fr; gap: 10px 20px; margin: 16px 0 0; font-size: var(--fs-sm); }
.verify-result dt { font-weight: var(--fw-semibold); color: var(--heading); font-family: var(--font-heading); }
.verify-result dd { margin: 0; }

/* Steps / process */
.steps { display: grid; gap: 22px; grid-template-columns: repeat(3, 1fr); counter-reset: st; }
.step-card { position: relative; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 30px; transition: transform var(--t), box-shadow var(--t); }
.step-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-lg); }
.step-card .n {
  display: inline-grid; place-items: center; width: 52px; height: 52px;
  border-radius: var(--radius); margin-bottom: 18px;
  background: var(--brand); color: #fff;
  font-family: var(--font-heading); font-weight: var(--fw-black); font-size: 1.1rem;
}
.step-card:hover .n { background: var(--accent); }

/* Event card */
.event-card { display: grid; grid-template-columns: 110px 1fr; gap: 24px; background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 26px; transition: box-shadow var(--t), transform var(--t); }
.event-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.event-date { background: var(--brand); color: #fff; border-radius: var(--radius); display: grid; place-content: center; text-align: center; padding: 16px 8px; align-self: start; }
.event-date b { display: block; font-family: var(--font-heading); font-size: 2rem; font-weight: var(--fw-black); line-height: 1; }
.event-date span { font-size: var(--fs-xs); letter-spacing: .12em; text-transform: uppercase; opacity: .9; }
.event-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: var(--fs-xs); color: var(--muted); margin-bottom: 12px; }
.event-meta span { display: inline-flex; align-items: center; gap: 6px; }
.event-meta svg { width: 14px; height: 14px; color: var(--accent); }

/* Job card */
.job-card { background: #fff; border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; transition: box-shadow var(--t), transform var(--t); height: 100%; display: flex; flex-direction: column; }
.job-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-4px); }
.job-tags { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.job-card .btn { margin-top: auto; align-self: flex-start; }

/* ========================================================= 18. CTA BAND === */
.cta-band {
  position: relative; overflow: hidden;
  background:
    radial-gradient(700px 340px at 15% 120%, rgba(232,163,61,.28), transparent 60%),
    linear-gradient(115deg, var(--brand-deep), var(--brand));
  border-radius: var(--radius-lg);
  padding: clamp(36px, 5vw, 62px);
  display: flex; align-items: center; justify-content: space-between;
  gap: 30px; flex-wrap: wrap; color: #fff;
}
.cta-band h2 { color: #fff; margin-bottom: .35em; max-width: 620px; }
.cta-band p { color: rgba(255,255,255,.82); max-width: 560px; margin: 0; }

/* =========================================================== 19. FOOTER === */
.footer {
  background:
    radial-gradient(800px 400px at 90% 0%, rgba(75,70,138,.5), transparent 60%),
    var(--brand-deep);
  color: var(--on-dark-muted);
  padding-top: clamp(56px, 7vw, 84px);
}
.footer h4 { color: #fff; margin-bottom: 22px; font-size: 1.0625rem; position: relative; padding-bottom: 12px; }
.footer h4::after { content: ""; position: absolute; left: 0; bottom: 0; width: 34px; height: 2px; background: var(--accent); border-radius: 2px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr .85fr .95fr 1fr 1.25fr; gap: 34px; padding-bottom: 50px; }
.footer .logo-text b { color: #fff; }
.footer .logo-text span { color: rgba(255,255,255,.5); }
.footer p { font-size: var(--fs-sm); }
.footer-links { display: grid; gap: 11px; }
.footer-links a { font-size: var(--fs-sm); display: inline-flex; align-items: center; gap: 9px; transition: color var(--t-fast), gap var(--t-fast); }
.footer-links a::before { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); flex: none; }
.footer-links a:hover { color: #fff; gap: 13px; }
.footer-contact { display: grid; gap: 18px; }
.footer-contact li { display: flex; gap: 14px; align-items: flex-start; font-size: var(--fs-sm); }
.footer-contact svg { width: 18px; height: 18px; color: var(--gold); flex: none; margin-top: 3px; }
.footer-contact small { display: block; font-size: var(--fs-xs); color: rgba(255,255,255,.5); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 2px; }
.footer-contact a:hover { color: #fff; }
.footer-social { display: flex; gap: 10px; margin-top: 24px; }
.footer-social a { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: rgba(255,255,255,.09); transition: all var(--t-fast); }
.footer-social a:hover { background: var(--accent); transform: translateY(-3px); }
.footer-social svg { width: 16px; height: 16px; }
.footer-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.footer-badges span { font-size: var(--fs-xs); padding: 5px 12px; border-radius: var(--radius-pill); background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,.12);
  padding: 22px 0; display: flex; align-items: center; justify-content: space-between;
  gap: 16px; flex-wrap: wrap; font-size: var(--fs-xs);
}
.footer-bottom a:hover { color: #fff; }

/* ================================================ 20. FLOATING ACTIONS === */
.float-stack { position: fixed; right: 20px; bottom: 22px; z-index: var(--z-float); display: grid; gap: 12px; }
.fab {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; color: #fff;
  box-shadow: var(--shadow-lg); transition: transform var(--t-fast), opacity var(--t);
}
.fab:hover { transform: translateY(-4px) scale(1.05); }
.fab svg { width: 24px; height: 24px; }
.fab--whatsapp { background: #25D366; }
.fab--top { background: var(--brand); opacity: 0; visibility: hidden; }
.fab--top.is-visible { opacity: 1; visibility: visible; }
.fab--top svg { width: 20px; height: 20px; }

/* ======================================================== 21. UTILITIES === */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .7s var(--ease-out), transform .7s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-3 { margin-top: 18px; }
.mt-4 { margin-top: 28px; }
.mt-5 { margin-top: 40px; }
.mb-0 { margin-bottom: 0; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.is-hidden { display: none !important; }

/* ======================================================= 22. RESPONSIVE === */
/* The E-Learning button needs room; below this width it lives in the drawer
   and the top bar instead, so the nav keeps its full set of links. */
@media (max-width: 1420px) {
  .header-cta { display: none; }
}
@media (max-width: 1240px) {
  .nav > ul > li > a { padding-inline: 8px; font-size: .8125rem; }
  .logo-text span { display: none; }
}
@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: repeat(3, 1fr); gap: 30px 34px; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
}

@media (max-width: 1080px) {
  .topbar-list li:nth-child(2) { display: none; }
}
/* Below this width the full desktop menu no longer fits on one line, so the
   site switches to the hamburger drawer. Raise it if you add more nav items. */
@media (max-width: 1140px) {
  .nav, .header-cta { display: none; }
  .nav-toggle { display: grid; }
}

@media (max-width: 1024px) {
  .split { grid-template-columns: 1fr; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .facility-cards { grid-template-columns: 1fr; }
  .course-layout { grid-template-columns: 1fr; }
  .sidebar { position: static; grid-template-columns: repeat(2, 1fr); display: grid; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .hero-dots { bottom: 92px; }
}

@media (max-width: 780px) {
  .topbar .container { justify-content: center; }
  .topbar-list li:nth-child(3) { display: none; }
  .stats { grid-template-columns: repeat(2, 1fr); }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 34px; }
  .sidebar { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .hero-arrow { display: none; }
  .hero-inner { padding: 64px var(--gutter) 78px; }
  .hero-track { min-height: 560px; }
  .cta-band { flex-direction: column; align-items: flex-start; }
  .event-card { grid-template-columns: 1fr; }
  .event-date { justify-self: start; padding: 12px 22px; }
  .hero-accreditations { margin-top: 0; }
  .hero-dots { bottom: 26px; }
}

@media (max-width: 520px) {
  :root { --gutter: 18px; }
  .topbar-social { display: none; }
  .card, .cat-card, .quote-card, .job-card, .step-card { padding: 24px; }
  .hero .btn-row { flex-direction: column; align-items: stretch; }
  .hero .btn { width: 100%; }
}

@media print {
  .header, .topbar, .float-stack, .hero-arrow, .hero-dots, .footer, .cta-band { display: none !important; }
  body { color: #000; }
}
