*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --navy:      #000d47;
  --navy-deep: #000a38;
  --orange:    #ed6623;
  --orange-dark: #c4511a;
  --cream:     #e7e5d6;
  --white:     #ffffff;
  --light:     #f4f7fb;
  --gray:      #666666;
  --gray-dark: #444444;
  --border:    #e2e2e2;
  --text:      #222222;
  --success:   #1f9d6b;
  --warn:      #d08410;
  --mono:      'JetBrains Mono', monospace;
  --sans:      'Open Sans', sans-serif;
}

html { scroll-behavior: smooth; }

body {
  font-family: var(--sans);
  color: var(--text);
  background: var(--white);
  line-height: 1.6;
}

a { color: inherit; }

/* ── HEADER ─────────────────────────────────────── */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--navy);
  border-bottom: 2px solid var(--orange);
  padding: 0 2rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  text-decoration: none;
  color: var(--white);
}

.brand-mark {
  font-family: var(--mono);
  font-weight: 700;
  font-size: 0.85rem;
  letter-spacing: 0.12em;
  color: var(--orange);
  border: 1.5px solid var(--orange);
  border-radius: 4px;
  padding: 0.3rem 0.55rem;
  line-height: 1;
}

.brand-wordmark {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--white);
  letter-spacing: -0.005em;
}

.brand-sub {
  font-family: var(--mono);
  font-size: 0.65rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
  margin-top: 2px;
}

nav a {
  color: rgba(255,255,255,0.75);
  text-decoration: none;
  font-size: 0.875rem;
  font-weight: 600;
  margin-left: 1.75rem;
  transition: color 0.2s;
}

nav a:hover,
nav a.active { color: var(--orange); }

nav .btn-nav {
  background: var(--orange);
  color: var(--white);
  padding: 0.5rem 1.1rem;
  border-radius: 4px;
  transition: background 0.2s;
}

nav .btn-nav:hover { background: var(--orange-dark); color: var(--white); }

@media (max-width: 720px) {
  header { padding: 0 1rem; height: auto; flex-wrap: wrap; gap: 0.75rem; padding-top: 0.75rem; padding-bottom: 0.75rem; }
  .brand-sub { display: none; }
  nav a { margin-left: 1rem; font-size: 0.8rem; }
}

/* ── PARTNER STRIP ──────────────────────────────── */
.partner-strip {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 1.75rem;
  flex-wrap: wrap;
}

.partner-strip .label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--gray);
}

.partner-strip .partner-logo {
  height: 30px;
  width: auto;
}

.partner-strip .partner-logo.malsec { height: 72px; }

.partner-strip .partner-x {
  color: var(--border);
  font-weight: 300;
}

/* ── HERO ────────────────────────────────────────── */
.hero {
  background: var(--navy);
  color: var(--white);
  padding: 5rem 2rem 4rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 80% 60% at 50% 0%, rgba(237,102,35,0.12) 0%, transparent 70%);
  pointer-events: none;
}

.hero-badge {
  display: inline-block;
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  border: 1px solid rgba(237,102,35,0.4);
  padding: 0.3rem 0.85rem;
  border-radius: 100px;
  margin-bottom: 1.5rem;
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  letter-spacing: -0.02em;
}

.hero h1 span { color: var(--orange); }

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  color: rgba(255,255,255,0.75);
  max-width: 680px;
  margin: 0 auto 2.25rem;
  font-weight: 300;
}

.hero-cta {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: var(--orange);
  color: var(--white);
  padding: 0.85rem 2rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: background 0.2s, transform 0.15s;
}

.hero-cta:hover { background: var(--orange-dark); transform: translateY(-1px); }

.hero-cta svg { width: 18px; height: 18px; }

.hero-cta-secondary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: rgba(255,255,255,0.8);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.95rem;
  margin-left: 1rem;
  padding: 0.85rem 1rem;
  transition: color 0.2s;
}

.hero-cta-secondary:hover { color: var(--orange); }

.hero-meta {
  margin-top: 3rem;
  display: flex;
  justify-content: center;
  gap: 2.5rem;
  flex-wrap: wrap;
}

.hero-meta-item { text-align: center; }

.hero-meta-item .value {
  font-family: var(--mono);
  font-size: 1.6rem;
  font-weight: 600;
  color: var(--orange);
  display: block;
}

.hero-meta-item .label {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

/* Compact page hero for inner pages */
.page-hero {
  background: var(--navy);
  color: var(--white);
  padding: 3.5rem 2rem 2.75rem;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.page-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 70% 60% at 50% 0%, rgba(237,102,35,0.1) 0%, transparent 70%);
  pointer-events: none;
}

.page-hero h1 {
  font-size: clamp(1.8rem, 4vw, 2.75rem);
  font-weight: 700;
  letter-spacing: -0.01em;
  margin-bottom: 0.75rem;
}

.page-hero h1 span { color: var(--orange); }

.page-hero p {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.7);
  max-width: 640px;
  margin: 0 auto;
  font-weight: 300;
}

/* ── TRUST BAR ───────────────────────────────────── */
.trust-bar {
  background: var(--light);
  border-bottom: 1px solid var(--border);
  padding: 1rem 2rem;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 2rem;
  flex-wrap: wrap;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.82rem;
  color: var(--gray);
  font-weight: 600;
}

.trust-item svg { color: var(--orange); flex-shrink: 0; }

/* ── SECTIONS ────────────────────────────────────── */
section { padding: 4.5rem 2rem; }

.container { max-width: 1080px; margin: 0 auto; }

.section-label {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 0.75rem;
}

.section-title {
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 1rem;
  letter-spacing: -0.01em;
}

.section-body {
  font-size: 1rem;
  color: var(--gray);
  max-width: 640px;
  line-height: 1.75;
}

/* ── ABOUT GRID ──────────────────────────────────── */
.about-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}

@media (max-width: 720px) {
  .about-grid { grid-template-columns: 1fr; gap: 2rem; }
}

.about-list {
  list-style: none;
  margin-top: 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}

.about-list li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.95rem;
  color: var(--text);
}

.about-list li::before {
  content: '';
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--orange);
  flex-shrink: 0;
  margin-top: 0.45rem;
}

.info-card {
  background: var(--navy);
  color: var(--white);
  border-radius: 10px;
  padding: 2rem;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.info-card-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid rgba(255,255,255,0.1);
  padding-bottom: 1rem;
}

.info-card-row:last-child { border-bottom: none; padding-bottom: 0; }

.info-card-row .key {
  font-family: var(--mono);
  font-size: 0.72rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.45);
}

.info-card-row .val {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--white);
  text-align: right;
}

.info-card-row .val.highlight { color: var(--orange); }

/* ── CURRICULUM ──────────────────────────────────── */
.curriculum { background: var(--light); }

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: 2.5rem;
}

.module-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.module-card:hover {
  border-color: var(--orange);
  box-shadow: 0 4px 18px rgba(237,102,35,0.12);
}

.module-num {
  font-family: var(--mono);
  font-size: 0.68rem;
  color: var(--orange);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.module-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.5rem;
}

.module-card p {
  font-size: 0.875rem;
  color: var(--gray);
  line-height: 1.6;
}

/* ── FACILITATORS ────────────────────────────────── */
.facilitators-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 1.5rem;
  margin-top: 2.5rem;
}

.facilitator-card {
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1.5rem;
  text-align: center;
}

.facilitator-logo-wrap {
  height: 72px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.facilitator-logo-wrap img { max-height: 44px; width: auto; }
.facilitator-logo-wrap img.malsec { max-height: 72px; }

.facilitator-headshot-wrap {
  width: 96px;
  height: 96px;
  margin: 0 auto 1rem;
  border-radius: 50%;
  overflow: hidden;
  border: 2px solid var(--border);
}

.facilitator-headshot {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top;
}

.facilitator-headshot-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: var(--orange);
  font-family: var(--mono);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.card-link {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.78rem;
  font-family: var(--mono);
  color: var(--orange);
  text-decoration: none;
  letter-spacing: 0.05em;
}

.card-link:hover { text-decoration: underline; }

.facilitator-card h3 {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.25rem;
}

.facilitator-card .role {
  font-size: 0.8rem;
  color: var(--orange);
  font-family: var(--mono);
  letter-spacing: 0.08em;
  margin-bottom: 0.65rem;
}

.facilitator-card p {
  font-size: 0.84rem;
  color: var(--gray);
  line-height: 1.55;
}

/* ── BOOKING FORM ────────────────────────────────── */
.booking { background: var(--navy); color: var(--white); }

.booking .section-title { color: var(--white); }
.booking .section-body  { color: rgba(255,255,255,0.65); }

.booking-layout {
  display: grid;
  grid-template-columns: 1fr 1.4fr;
  gap: 4rem;
  align-items: start;
  margin-top: 2.5rem;
}

@media (max-width: 800px) {
  .booking-layout { grid-template-columns: 1fr; gap: 2rem; }
}

.booking-info h3 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: rgba(255,255,255,0.85);
}

.booking-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.booking-bullets li {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.9rem;
  color: rgba(255,255,255,0.65);
}

.booking-bullets li::before {
  content: '→';
  font-family: var(--mono);
  color: var(--orange);
  flex-shrink: 0;
}

.form-card {
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: 10px;
  padding: 2rem;
}

.form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
}

@media (max-width: 520px) {
  .form-row { grid-template-columns: 1fr; }
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  margin-bottom: 1rem;
}

.form-group label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.55);
}

.form-group input,
.form-group select,
.form-group textarea {
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.15);
  border-radius: 5px;
  padding: 0.65rem 0.9rem;
  font-family: var(--sans);
  font-size: 0.92rem;
  color: var(--white);
  transition: border-color 0.2s;
  outline: none;
}

.form-group input::placeholder,
.form-group textarea::placeholder { color: rgba(255,255,255,0.3); }

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(237,102,35,0.15);
}

.form-group select option { background: var(--navy); color: var(--white); }

.form-group textarea { resize: vertical; min-height: 90px; }

.form-submit {
  width: 100%;
  background: var(--orange);
  color: var(--white);
  border: none;
  border-radius: 5px;
  padding: 0.9rem 1.5rem;
  font-family: var(--sans);
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  margin-top: 0.5rem;
}

.form-submit:hover { background: var(--orange-dark); transform: translateY(-1px); }

.form-note {
  margin-top: 0.75rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
  text-align: center;
}

.form-field-note {
  margin-top: 0.4rem;
  font-size: 0.78rem;
  color: rgba(255,255,255,0.5);
  line-height: 1.5;
}

.form-field-note a {
  color: var(--orange);
  text-decoration: underline;
}

/* ── COHORT CARDS (bookings page) ─────────────────── */
.filters {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin: 2rem 0 2.5rem;
}

.filter-btn {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 0.5rem 1.1rem;
  font-family: var(--mono);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gray-dark);
  cursor: pointer;
  transition: all 0.2s;
}

.filter-btn:hover {
  border-color: var(--orange);
  color: var(--orange);
}

.filter-btn.active {
  background: var(--navy);
  border-color: var(--navy);
  color: var(--white);
}

.cohort-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
}

.cohort-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 1.75rem;
  display: flex;
  flex-direction: column;
  transition: border-color 0.2s, box-shadow 0.2s, transform 0.15s;
}

.cohort-card:hover {
  border-color: var(--orange);
  box-shadow: 0 6px 24px rgba(0,13,71,0.08);
  transform: translateY(-2px);
}

.cohort-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 0.75rem;
  gap: 0.75rem;
}

.cohort-tag {
  font-family: var(--mono);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 0.25rem 0.55rem;
  border-radius: 3px;
  background: rgba(237,102,35,0.1);
  color: var(--orange);
  white-space: nowrap;
}

.cohort-tag.grc    { background: rgba(0,13,71,0.08);   color: var(--navy); }
.cohort-tag.offsec { background: rgba(192,81,26,0.12); color: var(--orange-dark); }
.cohort-tag.e8     { background: rgba(31,157,107,0.12); color: var(--success); }

.seat-status {
  font-family: var(--mono);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  white-space: nowrap;
}

.seat-status .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--success);
  flex-shrink: 0;
}

.seat-status.limited { color: var(--warn); }
.seat-status.limited .dot { background: var(--warn); }
.seat-status.full    { color: var(--gray); }
.seat-status.full    .dot { background: var(--gray); }
.seat-status.open    { color: var(--success); }

.cohort-card h3 {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.4rem;
  letter-spacing: -0.005em;
}

.cohort-lead {
  font-size: 0.82rem;
  color: var(--gray);
  margin-bottom: 1.25rem;
}

.cohort-lead strong { color: var(--text); }

.cohort-details {
  border-top: 1px solid var(--border);
  padding-top: 1rem;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem 1rem;
  margin-bottom: 1.25rem;
}

.cohort-detail .key {
  font-family: var(--mono);
  font-size: 0.62rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray);
  display: block;
  margin-bottom: 2px;
}

.cohort-detail .val {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
}

.cohort-price {
  display: flex;
  align-items: baseline;
  gap: 0.5rem;
  margin-bottom: 1.25rem;
}

.cohort-price .amount {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--navy);
  font-family: var(--mono);
}

.cohort-price .gst {
  font-size: 0.78rem;
  color: var(--gray);
}

.cohort-discount {
  font-size: 0.82rem;
  color: var(--gray-dark);
  margin-bottom: 1.25rem;
}

.cohort-discount strong {
  font-family: var(--mono);
  color: var(--orange-dark);
}

.cohort-book {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background: var(--orange);
  color: var(--white);
  padding: 0.7rem 1.25rem;
  border-radius: 5px;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: none;
  cursor: pointer;
  font-family: var(--sans);
  transition: background 0.2s, transform 0.15s;
}

.cohort-book:hover:not(:disabled) { background: var(--orange-dark); transform: translateY(-1px); }

.cohort-book:disabled,
.cohort-book.sold-out {
  background: var(--border);
  color: var(--gray);
  cursor: not-allowed;
  transform: none;
}

/* ── FOOTER ──────────────────────────────────────── */
footer {
  background: var(--navy-deep);
  border-top: 1px solid rgba(255,255,255,0.08);
  padding: 3rem 2rem 2rem;
  color: rgba(255,255,255,0.6);
}

.footer-grid {
  max-width: 1080px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.25rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

@media (max-width: 720px) {
  .footer-grid { grid-template-columns: 1fr; gap: 1.75rem; }
}

.footer-brand .brand-name { color: var(--white); font-size: 1rem; }
.footer-brand .brand-sub  { color: rgba(255,255,255,0.4); }

.footer-brand p {
  margin-top: 0.85rem;
  font-size: 0.85rem;
  max-width: 340px;
  line-height: 1.65;
  color: rgba(255,255,255,0.5);
}

.footer-col h4 {
  font-family: var(--mono);
  font-size: 0.7rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.85);
  margin-bottom: 0.85rem;
}

.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.55rem; }

.footer-col a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  font-size: 0.88rem;
  transition: color 0.2s;
}

.footer-col a:hover { color: var(--orange); }

.footer-partners {
  max-width: 1080px;
  margin: 1.75rem auto 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-partners-inner {
  display: flex;
  align-items: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.footer-partners .label {
  font-family: var(--mono);
  font-size: 0.68rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
}

.footer-partners img {
  height: 26px;
  width: auto;
  opacity: 0.75;
}

.footer-partners img.malsec { height: 64px; }

.footer-partners .invert-white { filter: brightness(0) invert(1); }

.footer-copy {
  font-size: 0.78rem;
  color: rgba(255,255,255,0.35);
}

.footer-copy a { color: rgba(255,255,255,0.55); text-decoration: none; }
.footer-copy a:hover { color: var(--orange); }

/* ── UTILITY ─────────────────────────────────────── */
.mt-sm { margin-top: 0.75rem; }
.mt-md { margin-top: 1.5rem; }
.invert-white { filter: brightness(0) invert(1); }
