/* =========================================================
   Coreveon — Design System
   Sharp, professional, corporate-advisory aesthetic.
   No rounded corners anywhere by design.
   ========================================================= */

:root {
  --navy: #0c1670;
  --navy-dark: #080d4c;
  --navy-tint: #eef0fb;
  --orange: #cc5500;
  --green: #32620e;
  --cyan: #08a49c;
  --cyan-bright: #08e8de;
  --ink: #12131a;
  --muted: #545a6e;
  --muted-light: #868ba0;
  --border: #dfe1ea;
  --border-dark: #c6c9d8;
  --bg: #ffffff;
  --bg-alt: #f5f6fb;
  --bg-navy: var(--navy);
  --max-width: 1220px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 16px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

/* Hard reset: nothing on this site is rounded */
* { border-radius: 0 !important; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4, h5 {
  font-family: var(--font-sans);
  color: var(--navy);
  font-weight: 700;
  line-height: 1.18;
  margin: 0 0 0.5em;
  letter-spacing: -0.01em;
}

h1 { font-size: clamp(2.1rem, 3.6vw, 3.4rem); }
h2 { font-size: clamp(1.7rem, 2.6vw, 2.35rem); }
h3 { font-size: 1.35rem; }
h4 { font-size: 1.1rem; }

p { margin: 0 0 1.1em; color: var(--ink); }

.lead {
  font-size: 1.2rem;
  color: var(--muted);
  line-height: 1.6;
}

ul, ol { margin: 0 0 1.2em; padding-left: 0; }

.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 32px;
}

section { position: relative; }

.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.section--alt { background: var(--bg-alt); }
.section--navy { background: var(--navy); color: #fff; }
.section--navy h2, .section--navy h3 { color: #fff; }
.section--navy p { color: rgba(255,255,255,0.82); }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 3px;
  background: var(--orange);
  display: inline-block;
}
.section--navy .eyebrow { color: var(--cyan-bright); }
.section--navy .eyebrow::before { background: var(--cyan-bright); }

.tri-bar {
  display: flex;
  flex-direction: column;
  width: 8px;
  height: 44px;
  gap: 2px;
}
.tri-bar span { flex: 1; display: block; }
.tri-bar span:nth-child(1) { background: var(--orange); }
.tri-bar span:nth-child(2) { background: var(--green); }
.tri-bar span:nth-child(3) { background: var(--cyan-bright); }

.tri-rule {
  display: flex;
  width: 64px;
  height: 6px;
  margin: 22px 0 28px;
}
.tri-rule span { flex: 1; }
.tri-rule span:nth-child(1) { background: var(--orange); }
.tri-rule span:nth-child(2) { background: var(--green); }
.tri-rule span:nth-child(3) { background: var(--cyan-bright); }
.tri-rule.center { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.95rem;
  padding: 14px 26px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  white-space: nowrap;
}
.btn-arrow { transition: transform 0.15s ease; }
.btn:hover .btn-arrow { transform: translateX(4px); }
.btn-compact { font-size: 0.82rem; padding: 10px 18px; }

.btn-primary { background: var(--navy); color: #fff; border-color: var(--navy); }
.btn-primary:hover { background: var(--navy-dark); border-color: var(--navy-dark); }

.btn-outline { background: transparent; color: var(--navy); border-color: var(--navy); }
.btn-outline:hover { background: var(--navy); color: #fff; }

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

.btn-danger-outline { background: transparent; color: #b3261e; border-color: #b3261e; }
.btn-danger-outline:hover { background: #b3261e; color: #fff; }

.btn-accent { background: var(--orange); color: #fff; border-color: var(--orange); }
.btn-accent:hover { background: #a84500; border-color: #a84500; }

.btn-block { width: 100%; justify-content: center; }

.text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  color: var(--navy);
  border-bottom: 2px solid var(--orange);
  padding-bottom: 3px;
}
.text-link:hover .btn-arrow { transform: translateX(4px); }
.section--navy .text-link { color: #fff; border-color: var(--cyan-bright); }

.btn-row { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 32px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 500;
  background: #fff;
  border-bottom: 1px solid var(--border);
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 84px;
  gap: 28px;
}
.brand { display: flex; align-items: center; }
.brand img { height: 30px; width: auto; }

.main-nav { display: flex; align-items: center; gap: 2px; flex: 1; justify-content: center; }
.nav-item { position: relative; }
.nav-link {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 30px 16px;
  font-weight: 600;
  font-size: 0.94rem;
  color: var(--ink);
  border-bottom: 3px solid transparent;
}
.nav-item:hover .nav-link,
.nav-item.active .nav-link { color: var(--navy); border-bottom-color: var(--orange); }
.nav-caret { font-size: 0.6rem; color: var(--muted-light); margin-top: 1px; }

.mega-panel {
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 340px;
  background: #fff;
  border: 1px solid var(--border);
  box-shadow: 0 18px 40px rgba(12,22,112,0.12);
  padding: 10px;
  opacity: 0;
  visibility: hidden;
  transform: translateX(-50%) translateY(6px);
  transition: opacity 0.15s ease, transform 0.15s ease, visibility 0.15s ease;
}
.nav-item:hover .mega-panel,
.nav-item:focus-within .mega-panel {
  opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0);
}
.mega-panel a {
  display: block;
  padding: 13px 16px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink);
  border-left: 3px solid transparent;
}
.mega-panel a:hover { background: var(--bg-alt); border-left-color: var(--orange); color: var(--navy); }
.mega-panel .mega-foot {
  border-top: 1px solid var(--border);
  margin-top: 6px;
  padding-top: 6px;
}
.mega-panel .mega-foot a { color: var(--navy); font-weight: 700; }

.header-cta { display: flex; align-items: center; gap: 18px; }
.header-cta .text-link { white-space: nowrap; border-bottom: none; padding-bottom: 0; font-size: 0.94rem; }
.lang-switch { display: flex; margin: 0; }
.lang-switch--end { margin-left: 6px; padding-left: 18px; border-left: 1px solid var(--border); }
.lang-switch select {
  border: 1px solid var(--border-dark, var(--border)); background: #fff; color: var(--ink);
  font-family: inherit; font-size: 0.86rem; padding: 6px 8px; cursor: pointer;
}
.mobile-nav .lang-switch { margin: 10px 0 4px; }
.mobile-nav .lang-switch select { width: 100%; padding: 12px; }
.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--navy); margin: 5px 0; }

/* ---------- Hero ---------- */
.hero {
  padding: 100px 0 90px;
  background: linear-gradient(180deg, #fff 0%, var(--bg-alt) 100%);
  border-bottom: 1px solid var(--border);
}
.hero-inner { max-width: 900px; }
.hero h1 { margin-bottom: 22px; }
.hero .lead { max-width: 720px; margin-bottom: 8px; }

.page-hero {
  background: var(--navy);
  color: #fff;
  padding: 78px 0 64px;
}
.page-hero h1 { color: #fff; }
.page-hero .lead { color: rgba(255,255,255,0.85); max-width: 780px; }
.breadcrumb {
  font-size: 0.82rem;
  color: rgba(255,255,255,0.65);
  margin-bottom: 18px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 600;
}
.breadcrumb a { color: rgba(255,255,255,0.85); }
.breadcrumb a:hover { color: #fff; text-decoration: underline; }

/* ---------- Full-bleed background-image hero ---------- */
.hero-bg {
  position: relative;
  color: #fff;
  padding: 84px 0 70px;
  background:
    radial-gradient(circle at 18% 18%, rgba(8,232,222,0.20), transparent 45%),
    radial-gradient(circle at 88% 90%, rgba(204,85,0,0.20), transparent 45%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  overflow: hidden;
}
.hero-bg--tall { padding: 128px 0 108px; }
.hero-bg-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(100deg, rgba(6,11,58,0.92) 0%, rgba(6,11,58,0.72) 40%, rgba(6,11,58,0.38) 78%, rgba(6,11,58,0.20) 100%);
}
.hero-bg-content { position: relative; z-index: 1; max-width: 900px; }
.hero-bg h1 { color: #fff; }
.hero-bg .lead { color: rgba(255,255,255,0.88); max-width: 840px; }
.hero-bg .breadcrumb { color: rgba(255,255,255,0.6); }
.hero-bg .breadcrumb a { color: rgba(255,255,255,0.85); }
.hero-bg .emphasis { color: #fff; border-left-color: var(--cyan-bright); }
.course-level--dark { border-color: rgba(255,255,255,0.35); color: #fff; }
.progress-bar { height: 8px; background: rgba(255,255,255,0.18); }
.progress-bar-fill { height: 100%; background: var(--cyan-bright); }

/* ---------- Certificate preview lock (generic mock — see _certificate_preview.html) ---------- */
.cert-preview-frame { position: relative; overflow: hidden; border: 1px solid var(--border); background: #fff; }
.cert-preview-mock {
  padding: 28px 20px; text-align: center; filter: blur(4px); user-select: none;
  transform: scale(1.03);
}
.cert-preview-mock-tribar { display: flex; justify-content: center; gap: 3px; margin-bottom: 10px; }
.cert-preview-mock-tribar span { width: 28px; height: 3px; }
.cert-preview-mock-tribar span:nth-child(1) { background: var(--orange); }
.cert-preview-mock-tribar span:nth-child(2) { background: var(--green); }
.cert-preview-mock-tribar span:nth-child(3) { background: var(--cyan); }
.cert-preview-mock-eyebrow { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.22em; text-transform: uppercase; color: var(--muted); }
.cert-preview-mock-title { font-family: 'Playfair Display', serif; font-weight: 800; color: var(--navy); font-size: 1.1rem; margin: 6px 0 10px; }
.cert-preview-mock-presented { font-size: 0.72rem; color: var(--muted); }
.cert-preview-mock-name { font-family: 'Great Vibes', cursive; font-size: 1.7rem; color: var(--navy); margin: 2px 0 8px; }
.cert-preview-mock-course { font-size: 0.78rem; font-weight: 700; color: var(--navy); margin-bottom: 14px; }
.cert-preview-mock-sigrow { display: flex; justify-content: center; gap: 30px; }
.cert-preview-mock-sigrow span { width: 60px; height: 1px; background: var(--ink); align-self: flex-end; }
.cert-preview-lock {
  position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: rgba(12,22,112,0.72); color: #fff; text-align: center; padding: 20px; font-size: 0.86rem; font-weight: 600;
}
.cert-preview-lock-icon { font-size: 1.6rem; }

/* ---------- Grids & Cards ---------- */
.grid { display: grid; gap: 28px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-5 { grid-template-columns: repeat(5, 1fr); }

.card {
  background: #fff;
  border: 1px solid var(--border);
  padding: 32px 28px;
  transition: box-shadow 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
  display: flex;
  flex-direction: column;
  height: 100%;
}
.card:hover { box-shadow: 0 16px 32px rgba(12,22,112,0.09); border-color: var(--border-dark); transform: translateY(-3px); }
.card-accent { height: 5px; width: 40px; margin-bottom: 22px; }
.card h3 { margin-bottom: 12px; }
.card p { color: var(--muted); flex: 1; }
.card .text-link { margin-top: 18px; }

.card.c-orange .card-accent { background: var(--orange); }
.card.c-green .card-accent { background: var(--green); }
.card.c-cyan .card-accent { background: var(--cyan-bright); }
.card.c-navy .card-accent { background: var(--navy); }

.pill {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 11px;
  background: var(--navy-tint);
  color: var(--navy);
  margin-bottom: 14px;
}

/* ---------- Stepper (home value chain) ---------- */
.stepper {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  position: relative;
  margin-top: 50px;
}
.stepper::before {
  content: "";
  position: absolute;
  top: 20px;
  left: 6%;
  right: 6%;
  height: 2px;
  background: var(--border-dark);
  z-index: 0;
}
.step { position: relative; z-index: 1; padding: 0 16px 0 0; }
.step-num {
  width: 40px; height: 40px;
  background: var(--navy);
  color: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 700;
  margin-bottom: 22px;
}
.step:nth-child(1) .step-num { background: var(--orange); }
.step:nth-child(2) .step-num { background: #b3480d; }
.step:nth-child(3) .step-num { background: var(--green); }
.step:nth-child(4) .step-num { background: var(--cyan); }
.step:nth-child(5) .step-num { background: var(--navy); }
.step h4 { margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.95rem; margin-bottom: 0; }

/* ---------- Lists with square markers ---------- */
.check-list, .content-block ul { list-style: none; margin: 0 0 1.4em; padding: 0; }
ul.check-list li, .content-block ul li {
  position: relative;
  padding-left: 26px !important;
  margin-bottom: 12px;
  color: var(--ink);
}
ul.check-list li::before, .content-block ul li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 9px;
  height: 9px;
  background: var(--orange);
}

/* ---------- Content / detail pages ---------- */
.content-block { max-width: 780px; }
.content-block h2 { margin-top: 2.2em; }
.content-block h2:first-child { margin-top: 0; }
.emphasis {
  font-weight: 700;
  color: var(--navy);
  font-size: 1.08rem;
  border-left: 3px solid var(--orange);
  padding-left: 16px;
}

.detail-layout { display: grid; grid-template-columns: 2.2fr 1fr; gap: 64px; align-items: start; }
.side-panel { position: sticky; top: 110px; }
.side-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  padding: 28px;
  margin-bottom: 22px;
}
.side-card h4 { margin-bottom: 14px; }
.side-card ul { list-style: none; padding: 0; margin: 0; }
.side-card li { padding: 9px 0; border-top: 1px solid var(--border); font-size: 0.92rem; }
.side-card li:first-child { border-top: none; }
.side-card a:hover { color: var(--orange); }
.side-card.cta { background: var(--navy); color: #fff; }
.side-card.cta h4 { color: #fff; }
.side-card.cta p { color: rgba(255,255,255,0.8); font-size: 0.92rem; }

/* ---------- Industry table blocks ---------- */
.info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin: 40px 0; }
.info-box { border: 1px solid var(--border); padding: 26px 28px; background: #fff; }
.info-box h4 {
  font-size: 0.82rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--orange);
  margin-bottom: 16px;
}
.info-box ul { list-style: none; padding: 0; margin: 0; }
.info-box li {
  padding-left: 20px;
  position: relative;
  margin-bottom: 10px;
  font-size: 0.95rem;
  color: var(--ink);
}
.info-box li::before {
  content: "";
  position: absolute; left: 0; top: 8px;
  width: 7px; height: 7px;
  background: var(--navy);
}

/* ---------- Stats / philosophy row ---------- */
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.philosophy-points { display: grid; gap: 24px; margin-top: 12px; }
.philosophy-point { border-top: 1px solid var(--border); padding-top: 20px; }
.philosophy-point h4 { margin-bottom: 8px; }
.philosophy-point p { color: var(--muted); margin-bottom: 0; }

/* ---------- Team / values grid ---------- */
.value-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 40px; margin-top: 20px; }
.value-item h4 { border-bottom: 2px solid var(--orange); display: inline-block; padding-bottom: 6px; margin-bottom: 12px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--navy);
  color: #fff;
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 { color: #fff; }
.cta-band p { color: rgba(255,255,255,0.82); max-width: 640px; margin: 0 auto 12px; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Forms ---------- */
.form-input {
  width: 100%;
  padding: 13px 15px;
  border: 1px solid var(--border-dark);
  font-family: var(--font-sans);
  font-size: 0.96rem;
  background: #fff;
  color: var(--ink);
}
.form-input:focus { outline: none; border-color: var(--navy); box-shadow: 0 0 0 3px var(--navy-tint); }
.form-textarea { resize: vertical; }
.form-row { margin-bottom: 20px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.form-label { display: block; font-weight: 600; font-size: 0.88rem; margin-bottom: 8px; color: var(--navy); }
.form-error { color: #b3261e; font-size: 0.82rem; margin-top: 6px; }
.form-hint { color: var(--muted-light); font-size: 0.82rem; margin-top: 6px; }

.alert {
  padding: 16px 20px;
  border: 1px solid var(--border);
  margin-bottom: 24px;
  font-weight: 500;
}
.alert-success { background: #eef7ea; border-color: #b7dba3; color: #2b4a1a; }
.alert-error { background: #fbeceb; border-color: #efb6b1; color: #7a1f18; }
.alert-info { background: var(--navy-tint); border-color: #c7ccf0; color: var(--navy); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy-dark); color: rgba(255,255,255,0.75); padding-top: 72px; }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1fr; gap: 32px; padding-bottom: 56px; border-bottom: 1px solid rgba(255,255,255,0.12); }
.footer-brand img { height: 26px; margin-bottom: 18px; }
.footer-brand p { color: rgba(255,255,255,0.65); font-size: 0.92rem; max-width: 280px; }
.footer-col h5 { color: #fff; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; margin-bottom: 18px; }
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 0.92rem; color: rgba(255,255,255,0.72); }
.footer-col a:hover { color: var(--cyan-bright); }
.newsletter-box { padding: 40px 0; border-bottom: 1px solid rgba(255,255,255,0.12); display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.newsletter-box h5 { color: #fff; margin-bottom: 4px; }
.newsletter-box p { color: rgba(255,255,255,0.6); margin: 0; font-size: 0.9rem; }
.newsletter-form { display: flex; gap: 0; }
.newsletter-input {
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,0.25);
  background: rgba(255,255,255,0.06);
  color: #fff;
  min-width: 260px;
  font-family: var(--font-sans);
}
.newsletter-input::placeholder { color: rgba(255,255,255,0.5); }
.newsletter-form .btn { border-color: var(--orange); }
.footer-bottom { padding: 26px 0; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px; font-size: 0.82rem; color: rgba(255,255,255,0.5); }
.footer-bottom a { color: rgba(255,255,255,0.6); margin-left: 20px; }
.footer-bottom a:hover { color: #fff; }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.section-head { max-width: 760px; margin-bottom: 52px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.tag-row { display: flex; flex-wrap: wrap; gap: 10px; margin: 20px 0; }
.tag { border: 1px solid var(--border-dark); padding: 8px 14px; font-size: 0.85rem; font-weight: 600; color: var(--navy); }

.badge-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 28px; }
.badge-row span { border: 1px solid var(--border-dark); padding: 10px 16px; font-size: 0.88rem; font-weight: 600; color: var(--navy); background: #fff; }

/* ---------- Article cards ---------- */
.article-card { border: 1px solid var(--border); background: #fff; height: 100%; display: flex; flex-direction: column; }
.article-card-body { padding: 28px; display: flex; flex-direction: column; flex: 1; }
.article-meta { font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.06em; color: var(--orange); font-weight: 700; margin-bottom: 12px; }
.article-card h3 { margin-bottom: 10px; }
.article-card p { color: var(--muted); flex: 1; }
.article-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 18px; font-size: 0.82rem; color: var(--muted-light); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .footer-top { grid-template-columns: 1fr 1fr 1fr; }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .detail-layout { grid-template-columns: 1fr; }
  .side-panel { position: static; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
}
@media (max-width: 860px) {
  .main-nav, .header-cta .btn, .header-cta .text-link, .header-cta .lang-switch { display: none; }
  .nav-toggle { display: block; }
  .grid-5, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-3, .grid-2, .info-grid, .two-col, .value-grid, .form-grid { grid-template-columns: 1fr; }
  .stepper { grid-template-columns: 1fr; gap: 32px; }
  .stepper::before { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .side-panel { grid-template-columns: 1fr; }
  .hero { padding: 64px 0; }
  .section { padding: 64px 0; }
}
@media (max-width: 560px) {
  .footer-top { grid-template-columns: 1fr; }
  .grid-5, .grid-4 { grid-template-columns: 1fr; }
  .container { padding: 0 20px; }
  .newsletter-box { flex-direction: column; align-items: flex-start; }
  .newsletter-form { width: 100%; }
  .newsletter-input { flex: 1; min-width: 0; }
}

/* ---------- Media frames, fallbacks & carousels ---------- */
.media-frame {
  position: relative;
  width: 100%;
  aspect-ratio: 4 / 3;
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.media-frame img { width: 100%; height: 100%; object-fit: cover; }
.media-frame.square { aspect-ratio: 1 / 1; }
.media-frame.wide { aspect-ratio: 16 / 9; }
.media-frame.tall { aspect-ratio: 3 / 4; }
.media-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 10px 16px;
  font-size: 0.82rem; font-weight: 600;
  color: #fff;
  background: linear-gradient(0deg, rgba(8,13,76,0.85), transparent);
}

.media-fallback {
  background:
    radial-gradient(circle at 25% 20%, rgba(8,232,222,0.28), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(204,85,0,0.28), transparent 46%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  border-color: var(--navy);
}
.media-fallback::before {
  content: "";
  position: absolute; inset: 0;
  background-image: repeating-linear-gradient(45deg, rgba(255,255,255,0.05) 0 2px, transparent 2px 42px);
}
.tri-bar-lg {
  position: relative;
  display: flex;
  gap: 6px;
  z-index: 1;
}
.tri-bar-lg span { display: block; width: 14px; height: 64px; }
.tri-bar-lg span:nth-child(1) { background: var(--orange); }
.tri-bar-lg span:nth-child(2) { background: var(--green); }
.tri-bar-lg span:nth-child(3) { background: var(--cyan-bright); }

/* ---------- Split hero (text + media) ---------- */
.hero-split { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; }
.hero-split .media-frame { aspect-ratio: 5 / 4; }
.page-hero .hero-split { align-items: start; }
.page-hero .media-frame { border-color: rgba(255,255,255,0.25); }
@media (max-width: 1080px) {
  .hero-split { grid-template-columns: 1fr; }
  .hero-split .media-frame { order: -1; aspect-ratio: 16/9; max-width: 520px; }
}

/* ---------- Photo cards (industries/services overview) ---------- */
.card-photo { padding: 0; overflow: hidden; }
.card-photo .media-frame { aspect-ratio: 5 / 4; border: none; border-bottom: 4px solid var(--orange); }
.card-photo.c-green .media-frame { border-bottom-color: var(--green); }
.card-photo.c-cyan .media-frame { border-bottom-color: var(--cyan-bright); }
.card-photo.c-navy .media-frame { border-bottom-color: var(--navy); }
.card-photo-body { padding: 26px 26px 30px; }

/* ---------- Carousel ---------- */
.carousel { position: relative; overflow: hidden; border: 1px solid var(--border); background: var(--navy); }
.carousel-track { position: relative; width: 100%; aspect-ratio: 16 / 9; }
.carousel-slide {
  position: absolute; inset: 0;
  opacity: 0; visibility: hidden;
  transition: opacity 0.6s ease;
}
.carousel-slide.active { opacity: 1; visibility: visible; }
.carousel-slide img { width: 100%; height: 100%; object-fit: cover; }
.carousel-caption {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 22px 28px;
  color: #fff;
  font-weight: 600;
  font-size: 1.05rem;
  background: linear-gradient(0deg, rgba(8,13,76,0.88), transparent);
}
.carousel-btn {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 44px; height: 44px;
  background: rgba(8,13,76,0.55);
  color: #fff; border: 1px solid rgba(255,255,255,0.4);
  font-size: 1.4rem; line-height: 1;
  cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.15s ease;
}
.carousel-btn:hover { background: var(--orange); border-color: var(--orange); }
.carousel-btn.prev { left: 16px; }
.carousel-btn.next { right: 16px; }
.carousel-dots { position: absolute; bottom: 18px; right: 24px; display: flex; gap: 8px; z-index: 2; }
.carousel-dot { width: 9px; height: 9px; background: rgba(255,255,255,0.45); border: none; cursor: pointer; padding: 0; }
.carousel-dot.active { background: var(--orange); }

/* ---------- Course cards ---------- */
.course-card { border: 1px solid var(--border); background: #fff; display: flex; flex-direction: column; height: 100%; }
.course-card .media-frame { aspect-ratio: 16 / 10; border: none; }
.course-card-body { padding: 26px; display: flex; flex-direction: column; flex: 1; }
.course-meta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 14px; }
.course-price {
  font-weight: 700; font-size: 0.85rem;
  padding: 5px 12px;
  color: #fff; background: var(--navy);
}
.course-price.free { background: var(--green); }
.course-level {
  font-weight: 600; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em;
  padding: 5px 12px; border: 1px solid var(--border-dark); color: var(--muted);
}
.course-card h3 { margin-bottom: 10px; }
.course-card p { color: var(--muted); flex: 1; }
.module-list { list-style: none; margin: 18px 0 0; padding: 0; border-top: 1px solid var(--border); }
.module-item { display: flex; justify-content: space-between; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--border); font-size: 0.94rem; }
.module-item .module-title { display: flex; align-items: center; gap: 10px; }
.module-num { width: 24px; height: 24px; background: var(--navy-tint); color: var(--navy); font-size: 0.76rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.module-preview-tag { font-size: 0.72rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--orange); }
.module-duration { color: var(--muted-light); font-size: 0.85rem; white-space: nowrap; }

/* ---------- Course curriculum accordion ---------- */
.curriculum { margin: 28px 0 40px; border-top: 1px solid var(--border); }
.curriculum-module { border-bottom: 1px solid var(--border); padding: 18px 0; }
.curriculum-module.is-locked { opacity: 0.6; }
.curriculum-module.is-locked summary { cursor: default; }
.curriculum-module summary {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; list-style: none; font-weight: 700; color: var(--navy);
  gap: 16px;
}
.curriculum-module summary::-webkit-details-marker { display: none; }
.curriculum-module-title { display: flex; align-items: center; gap: 12px; }
.curriculum-module-meta { font-size: 0.82rem; font-weight: 600; color: var(--muted-light); white-space: nowrap; }
.curriculum-module-summary { color: var(--muted); font-size: 0.92rem; margin: 10px 0 0 36px; }
.curriculum-module .module-list { margin: 14px 0 0 36px; border-top: 1px solid var(--border); }
.module-downloads { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; margin: 14px 0 0 36px; }
.module-downloads-label { font-size: 0.82rem; font-weight: 700; color: var(--muted); }
.module-status {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; font-size: 0.75rem;
  background: var(--navy-tint); color: var(--navy); flex-shrink: 0;
}
.module-status.done { background: var(--green); color: #fff; }
.module-status.locked { background: var(--bg-alt); color: var(--muted-light); }
.module-item .module-title { display: flex; align-items: center; gap: 10px; }
.locked-link { color: var(--muted-light); display: flex; align-items: center; gap: 10px; }

/* ---------- Course player ---------- */
.player { background: var(--bg-alt); min-height: 70vh; }
.player-topbar { background: var(--navy); color: #fff; padding: 18px 0; }
.player-topbar-inner { display: flex; align-items: center; gap: 24px; }
.player-back { color: #fff; font-weight: 600; font-size: 0.92rem; white-space: nowrap; }
.player-back:hover { color: var(--cyan-bright); }
.player-progress { flex: 1; max-width: 320px; }
.player-progress-label { font-size: 0.8rem; color: rgba(255,255,255,0.75); white-space: nowrap; }

.player-layout { display: grid; grid-template-columns: 300px 1fr; gap: 40px; padding: 40px 32px 80px; align-items: start; }
.player-sidebar { background: #fff; border: 1px solid var(--border); position: sticky; top: 24px; max-height: calc(100vh - 48px); overflow-y: auto; }
.player-module { border-bottom: 1px solid var(--border); padding: 16px 18px; }
.player-module:last-child { border-bottom: none; }
.player-module-title { font-weight: 700; font-size: 0.86rem; color: var(--navy); margin-bottom: 10px; }
.player-chapter-list { list-style: none; margin: 0; padding: 0; }
.player-chapter-list li { margin-bottom: 4px; }
.player-chapter-list a, .player-chapter-list .locked-link {
  display: flex; align-items: center; gap: 10px;
  padding: 8px 8px; font-size: 0.88rem; color: var(--ink);
}
.player-chapter-list a:hover { background: var(--bg-alt); color: var(--navy); }
.player-chapter-list li.active a { background: var(--navy-tint); color: var(--navy); font-weight: 700; }

.course-content-toggle { display: none; }

@media (max-width: 1080px) {
  .player-layout { grid-template-columns: 1fr; padding: 24px 20px 60px; }
  .player-sidebar { position: static; max-height: none; order: 2; margin-top: 32px; }
  .player-content { padding: 28px 22px; }
  .player-topbar-inner { flex-wrap: wrap; row-gap: 10px; }
  .player-back { white-space: normal; }
  .player-progress { flex-basis: 100%; max-width: none; order: 3; }

  /* On mobile the module/chapter list is collapsed behind a toggle below the
     video and chapter content — otherwise it used to sit in a 300px sidebar
     column that had nowhere to go on a narrow screen and ended up pushed off
     to the right, invisible without horizontal scrolling. */
  .course-content-toggle {
    display: flex; align-items: center; justify-content: space-between;
    width: 100%; padding: 16px 20px;
    background: var(--navy); color: #fff; border: none;
    font-family: var(--font-sans); font-weight: 700; font-size: 0.94rem;
    cursor: pointer;
  }
  .course-content-toggle-icon { transition: transform 0.2s ease; font-size: 0.8em; }
  .course-content-toggle[aria-expanded="true"] .course-content-toggle-icon { transform: rotate(180deg); }
  .course-content-list { display: none; }
  .course-content-list.open { display: block; }
}

.player-main { min-width: 0; }
.player-video {
  width: 100%; aspect-ratio: 16/9; background: #000; margin-bottom: 32px;
  border: 1px solid var(--border);
}
.player-video iframe, .player-video video { width: 100%; height: 100%; display: block; }
.player-video-placeholder {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 25% 20%, rgba(8,232,222,0.28), transparent 42%),
    radial-gradient(circle at 82% 78%, rgba(204,85,0,0.28), transparent 46%),
    linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%);
}
.play-badge {
  position: absolute;
  width: 64px; height: 64px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.6);
  color: #fff; font-size: 1.4rem;
  display: flex; align-items: center; justify-content: center;
  padding-left: 4px;
}
.player-content { background: #fff; border: 1px solid var(--border); padding: 40px; }
.player-nav { display: flex; justify-content: space-between; align-items: center; margin-top: 44px; padding-top: 28px; border-top: 1px solid var(--border); gap: 16px; }
.player-nav-btn { min-width: 130px; justify-content: center; }

/* ---------- Quiz ---------- */
.quiz-question { border: 1px solid var(--border); background: #fff; padding: 26px 28px; margin-bottom: 20px; }
.quiz-question h4 { margin-bottom: 18px; }
.quiz-choices { display: grid; gap: 10px; }
.quiz-choice {
  display: flex; align-items: center; gap: 12px;
  border: 1px solid var(--border-dark); padding: 13px 16px;
  cursor: pointer; font-size: 0.95rem; position: relative;
}
.quiz-choice:hover { border-color: var(--navy); }
.quiz-choice input { accent-color: var(--navy); width: 16px; height: 16px; flex-shrink: 0; }
.quiz-choice.correct { border-color: var(--green); background: #eef7ea; }
.quiz-choice.wrong { border-color: #b3261e; background: #fbeceb; }
.quiz-flag { margin-left: auto; font-size: 0.74rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.quiz-flag.correct { color: var(--green); }
.quiz-flag.wrong { color: #b3261e; }
.quiz-result { display: flex; align-items: center; gap: 22px; padding: 24px 28px; border: 1px solid var(--border); margin: 24px 0; }
.quiz-result.pass { background: #eef7ea; border-color: #b7dba3; color: #2b4a1a; }
.quiz-result.fail { background: #fbeceb; border-color: #efb6b1; color: #7a1f18; }
.quiz-result-score { font-size: 2.4rem; font-weight: 800; line-height: 1; }
.quiz-form { margin-top: 8px; }
.quiz-review { margin-top: 8px; }
.quiz-choice--readonly { cursor: default; }
.quiz-choice--readonly:hover { border-color: var(--border-dark); }

/* ---------- Mock Exams ---------- */
.mock-exam-card { border: 1px solid var(--border); background: #fff; padding: 22px 24px; margin-bottom: 16px; display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; }
.mock-exam-card h4 { margin-bottom: 6px; }
.mock-exam-meta { color: var(--muted); font-size: 0.86rem; }
.mock-timer { position: fixed; top: 96px; right: 24px; z-index: 600; display: inline-flex; align-items: center; gap: 8px; background: var(--navy); color: #fff; padding: 10px 18px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: 0 6px 20px rgba(12,22,112,0.35); }
.mock-timer.low-time { background: #b3261e; }
@media (max-width: 640px) {
  .mock-timer { top: auto; bottom: 16px; right: 16px; left: 16px; justify-content: center; }
}
.mock-domain-bar { margin-bottom: 16px; }
.mock-domain-bar-head { display: flex; justify-content: space-between; font-size: 0.86rem; margin-bottom: 6px; }
.mock-domain-bar-track { height: 8px; background: var(--bg-alt); }
.mock-domain-bar-fill { height: 100%; background: var(--navy); }
.mock-domain-bar-fill.pass { background: var(--green); }
.mock-domain-bar-fill.fail { background: #b3261e; }
.mock-explanation { margin-top: 10px; padding: 12px 14px; background: var(--bg-alt); border-left: 3px solid var(--border-dark); font-size: 0.88rem; color: var(--muted); }
.quiz-choice.correct .mock-explanation { border-left-color: var(--green); }
.quiz-choice.wrong .mock-explanation { border-left-color: #b3261e; }
.mock-checkbox-row { display: flex; align-items: center; gap: 14px; border: 1px solid var(--border); padding: 14px 18px; margin-bottom: 10px; background: #fff; }
.mock-checkbox-row.owned { opacity: 0.6; }
.mock-checkbox-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--navy); flex-shrink: 0; }
.mock-checkbox-row .price { margin-left: auto; font-weight: 700; }
.mock-bundle-summary { position: sticky; bottom: 0; background: var(--navy); color: #fff; padding: 18px 24px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-top: 24px; }

/* ---------- Shared stat-grid / data-table / badge components ---------- */
.studio-stat-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 20px; margin-bottom: 36px; }
.studio-stat { background: #fff; border: 1px solid var(--border); padding: 22px; }
.studio-stat .num { font-size: 2rem; font-weight: 800; color: var(--navy); line-height: 1; }
.studio-stat .label { color: var(--muted); font-size: 0.86rem; margin-top: 8px; }

.studio-table-wrap { background: #fff; border: 1px solid var(--border); overflow-x: auto; }
table.studio-table { width: 100%; border-collapse: collapse; font-size: 0.92rem; }
table.studio-table th {
  text-align: left; padding: 13px 18px; background: var(--bg-alt);
  font-size: 0.76rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted);
  border-bottom: 1px solid var(--border);
}
table.studio-table td { padding: 13px 18px; border-bottom: 1px solid var(--border); vertical-align: middle; }
table.studio-table tr:last-child td { border-bottom: none; }
table.studio-table tr:hover td { background: var(--bg-alt); }
.studio-thumb { width: 52px; height: 36px; object-fit: cover; border: 1px solid var(--border); display: block; }
.studio-thumb-placeholder { width: 52px; height: 36px; background: var(--navy-tint); }
.studio-row-actions { display: flex; gap: 14px; }
.studio-row-actions a, .studio-row-actions button {
  font-size: 0.84rem; font-weight: 600; color: var(--navy); background: none; border: none; padding: 0; cursor: pointer; font-family: var(--font-sans);
}
.studio-row-actions .danger { color: #b3261e; }
.studio-badge { display: inline-block; padding: 3px 9px; font-size: 0.72rem; font-weight: 700; text-transform: uppercase; background: var(--navy-tint); color: var(--navy); }
.studio-badge.on { background: #eef7ea; color: #2b4a1a; }
.studio-badge.off { background: var(--bg-alt); color: var(--muted-light); }

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

/* ---------- Auth pages ---------- */
.auth-layout { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; max-width: 980px; margin: 0 auto; }
.auth-layout--single { grid-template-columns: 1fr; max-width: 480px; }
.auth-card { border: 1px solid var(--border); padding: 40px; background: #fff; }
.auth-side { background: var(--navy); color: #fff; padding: 40px; }
.auth-side h3 { color: #fff; }
.auth-side .check-list li { color: rgba(255,255,255,0.88); }
.auth-side .check-list li::before { background: var(--cyan-bright); }
@media (max-width: 860px) { .auth-layout { grid-template-columns: 1fr; } }

/* ---------- Mobile nav drawer ---------- */
.mobile-nav {
  display: none;
  position: fixed;
  inset: 84px 0 0 0;
  background: #fff;
  z-index: 400;
  overflow-y: auto;
  padding: 20px;
}
.mobile-nav.open { display: block; }
.mobile-nav details { border-bottom: 1px solid var(--border); }
.mobile-nav summary { padding: 16px 4px; font-weight: 700; color: var(--navy); cursor: pointer; }
.mobile-nav a.top-link { display: block; padding: 16px 4px; font-weight: 700; color: var(--navy); border-bottom: 1px solid var(--border); }
.mobile-nav .sub-link { display: block; padding: 10px 4px 10px 16px; font-size: 0.94rem; color: var(--ink); }
.mobile-nav .btn { margin-top: 20px; }
