/*
 * index.css — COMMON (A) — HOME-PAGE RESIDUE ONLY
 * Loaded LAST, after brand.css + shared.css, on the home page only.
 * Contains: home-only sections (hero, audiences, partners, badges, course-card detail,
 * dropdowns) + home-specific OVERRIDES of shared components. No :root tokens (brand.css owns).
 * Shared components themselves live ONCE in shared.css and are NOT repeated here.
 */

html {
    scroll-behavior: smooth;
    scroll-padding-top: var(--scroll-offset, 70px);
  }

/* ── Scroll offset for sticky nav ── */
  .scroll-anchor,
  section[id],
  [id="main-content"] {
    scroll-margin-top: var(--scroll-offset, 70px);
  }

.scroll-anchor {
    display: block;
    height: 0;
    visibility: hidden;
  }

body {
    font-family: var(--font-body);
    font-size: 19px;
    line-height: 1.7;
    color: var(--brand-charcoal);
    background: var(--brand-white);
  }

.nav-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    padding: 0 1.5rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
  }

.nav-logo { display: flex; align-items: center; padding-right: 1rem; }

.nav-logo svg { display: block; vertical-align: middle; }

.nav-logo img { max-height: 42px; height: auto; width: auto; display: block; }

.nav-links { display: flex; gap: 2rem; list-style: none; }
@media (max-width: 900px) { .nav-links { display: none; } }

.nav-links a {
    color: var(--brand-mid);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: color 0.2s;
  }

.nav-cta {
    background: var(--brand-gradient) !important;
    color: var(--brand-white) !important;
    padding: 10px 20px;
    border-radius: var(--radius);
    font-weight: 600 !important;
    font-size: 15px;
    transition: opacity 0.2s, transform 0.15s;
  }

.nav-cta:hover { opacity: 0.88; color: var(--brand-white) !important; transform: translateY(-1px); }

/* ── HERO ── */
  .hero {
    background: var(--brand-light-bg);
    padding: 5rem 1.5rem;
    border-bottom: 1px solid var(--brand-border);
    position: relative;
    overflow: hidden;
  }

.hero::before { display: none; }

.hero-inner {
    max-width: var(--max-w);
    margin: 0 auto;
  }

.hero-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: center;
    background: var(--brand-hero-grad);
    border: 1px solid var(--brand-hero-border);
    border-radius: var(--radius-lg);
    padding: 2.5rem 3rem;
    box-shadow: 0 4px 24px rgba(var(--brand-primary-rgb), 0.08);
  }

.hero-badge {
    display: inline-block;
    background: var(--brand-gradient);
    color: var(--brand-white);
    font-size: 13px;
    font-weight: 600;
    padding: 5px 14px;
    border-radius: 100px;
    margin-bottom: 1.2rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
  }

.hero h1 {
    font-family: var(--font-display);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.15;
    color: var(--brand-ink);
    margin-bottom: 1rem;
  }

.hero h1 span {
    background: var(--brand-gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
  }

.hero-lead {
    font-size: 1.1rem;
    color: var(--brand-mid);
    margin-bottom: 2rem;
    line-height: 1.65;
  }

.btn-primary,
  .btn-outline {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 28px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 15px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s, border-color 0.2s, color 0.2s;
    white-space: nowrap;
    line-height: 1;
  }

.btn-primary {
    background: var(--brand-gradient);
    color: var(--brand-white);
    border: 1.5px solid transparent;
  }

.btn-outline {
    background: transparent;
    color: var(--brand-charcoal);
    border: 1.5px solid var(--brand-muted);
  }

.nav-logo,
  .nav-links a,
  .nav-mobile a,
  .btn-primary,
  .btn-outline,
  .nav-burger,
  .footer-bottom a,
  .footer-col ul li a,
  .audience-card a,
  .form-note a {
    outline: none;
  }

.nav-logo:focus-visible,
  .nav-links a:focus-visible,
  .nav-mobile a:focus-visible,
  .btn-primary:focus-visible,
  .btn-outline:focus-visible,
  .nav-burger:focus-visible,
  .footer-bottom a:focus-visible,
  .footer-col ul li a:focus-visible,
  .audience-card a:focus-visible,
  .form-note a:focus-visible {
    outline: 3px solid var(--brand-dark);
    outline-offset: 3px;
    border-radius: var(--radius);
  }

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 1rem;
  }

.stat-card {
    background: var(--brand-white);
    border: 1px solid var(--brand-muted);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
  }

.stat-card .num {
    font-family: var(--font-display);
    font-size: 2rem;
    color: var(--brand-ink);
    line-height: 1;
    margin-bottom: 0.3rem;
  }

.stat-card .label {
    font-size: 13px;
    color: var(--brand-muted-text);
    line-height: 1.3;
  }

.btn-card {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 9px 20px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: border-color 0.2s, color 0.2s, transform 0.15s;
    background: transparent;
    color: var(--brand-charcoal);
    border: 1.5px solid var(--brand-muted);
    margin-top: 0.75rem;
  }

.btn-card:hover { border-color: var(--brand-primary); color: var(--brand-ink); transform: translateY(-1px); }

.badges {
    background: var(--brand-primary);
    border-top: none;
    border-bottom: none;
    padding: 3.5rem 1.5rem;
  }

.badges-header {
    max-width: var(--max-w);
    margin: 0 auto 2.5rem;
    text-align: center;
  }

.badges-eyebrow {
    display: inline-block;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: #ffffff;
    margin-bottom: 0.75rem;
  }

.badges-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: #ffffff;
    line-height: 1.2;
    margin: 0;
  }

.badges-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2.2rem;
  }

.badge-card {
    background: var(--brand-light-bg);
    border: 1px solid var(--brand-primary);
    border-radius: var(--radius-lg);
    padding: 1.25rem 1rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(var(--brand-dark-rgb), 0.5), 0 2px 8px rgba(var(--brand-dark-rgb), 0.3);
  }

.badge-card .num {
    font-family: var(--font-display);
    font-size: 1.6rem;
    color: var(--brand-ink);
    line-height: 1;
    margin-bottom: 0.3rem;
  }

.badge-card .label {
    font-size: 13px;
    color: var(--brand-muted-text);
    line-height: 1.3;
  }

@media (max-width: 640px) {
  .badges-inner { grid-template-columns: repeat(2, 1fr); }
}

section { padding: 4.5rem 1.5rem; }

.section-inner { max-width: var(--max-w); margin: 0 auto; }

.section-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--brand-ink);
    margin-bottom: 0.6rem;
  }

.section-title {
    font-family: var(--font-display);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    color: var(--brand-ink);
    margin-bottom: 0.75rem;
    line-height: 1.2;
  }

.section-lead {
    font-size: 1rem;
    color: var(--brand-muted-text);
    max-width: 600px;
    margin-bottom: 3rem;
  }

/* ── COURSES ── */
  .courses-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
    padding-top: 1rem;
  }

.course-card {
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius-lg);
    transition: border-color 0.2s, transform 0.2s;
    position: relative;
    overflow: visible;
    display: flex;
    flex-direction: column;
  }

.course-card:hover { border-color: var(--brand-primary); transform: translateY(-3px); }

.course-card.featured { border-color: var(--brand-primary); border-width: 2px; }

.course-badge-feat {
    position: absolute;
    top: -12px; left: 1.5rem;
    background: var(--brand-primary);
    color: var(--brand-white);
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
  }

.course-badge-value {
    position: absolute;
    top: -12px; left: 1.5rem;
    font-size: 11px;
    font-weight: 700;
    padding: 3px 12px;
    border-radius: 100px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    border: 2px solid transparent;
    background:
      linear-gradient(white, white) padding-box,
      linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%) border-box;
  }

.course-badge-value-text {
    background: linear-gradient(135deg, var(--brand-primary) 0%, var(--brand-dark) 100%);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }

.course-card-top {
    padding: 1.5rem 1.5rem 1rem;
    flex: 1;
  }

.course-card-bottom {
    border-top: 1px solid var(--brand-border);
    padding: 1rem 1.5rem 1.25rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
  }

.course-card h3 { font-size: 1.05rem; font-weight: 600; color: var(--brand-ink); margin-bottom: 0.75rem; }

.course-card p { font-size: 1rem; color: var(--brand-ink); line-height: 1.5; margin-bottom: 0; }

.course-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 1.25rem; }

.tag {
    font-size: 12px;
    background: var(--brand-white);
    color: var(--brand-dark);
    border: 1px solid var(--brand-muted);
    padding: 2px 10px;
    border-radius: 100px;
    font-weight: 500;
  }

/* ── COURSE CARD BUTTONS ── */
  .btn-sm-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 8px 18px;
    border-radius: var(--radius);
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-decoration: none;
    cursor: pointer;
    transition: opacity 0.2s, transform 0.15s;
    background: var(--brand-gradient);
    color: #ffffff !important;
    border: 1.5px solid transparent;
    line-height: 1;
  }

.btn-sm-primary:hover { opacity: 0.88; color: #ffffff !important; transform: translateY(-1px); }

/* ── COURSE CARD DROPDOWN ── */
  .card-btn-wrap { position: relative; display: inline-block; }

.card-dropdown {
    display: none;
    position: absolute;
    bottom: calc(100% + 6px);
    left: 0;
    min-width: 220px;
    background: var(--brand-white);
    border: 1px solid var(--brand-border);
    border-radius: var(--radius);
    box-shadow: 0 4px 16px rgba(0,0,0,0.10);
    z-index: 50;
    overflow: hidden;
  }

.card-dropdown.open { display: block; }

.card-dropdown-item {
    display: block;
    padding: 10px 16px;
    font-size: 13px;
    font-weight: 500;
    color: var(--brand-mid);
    text-decoration: none;
    border-bottom: 1px solid var(--brand-border);
    transition: background 0.15s, color 0.15s;
    white-space: nowrap;
  }

.card-dropdown-item:last-child { border-bottom: none; }

.card-dropdown-item:hover { background: var(--brand-section-alt); color: var(--brand-dark); }

.card-btn-wrap.align-right .card-dropdown { left: auto; right: 0; }

/* ── AUDIENCES ── */
  .audiences { background: var(--brand-section-alt); }

.audiences-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 1.5rem;
  }

.audience-card {
    background: var(--brand-white);
    border-radius: var(--radius-lg);
    padding: 2rem 1.5rem;
    border: 1px solid var(--brand-border);
    display: flex;
    flex-direction: column;
    align-items: flex-start;
  }

.audience-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 57px;
    height: 57px;
    background: var(--brand-section-alt);
    border-radius: var(--radius);
    margin-bottom: 1rem;
    padding: 12px;
  }

.audience-icon svg {
    width: 32px;
    height: 32px;
  }

.audience-card h3 { font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem; color: var(--brand-ink); }

.audience-card p { font-size: 1rem; color: var(--brand-muted-text); line-height: 1.55; }

.audience-card a { color: var(--brand-white); font-weight: 600; text-decoration: none; font-size: 14px; display: inline-block; }


.audience-card a:hover { text-decoration: none; opacity: 0.88; }

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

.about-grid .section-title {
    font-size: 1.75rem;
  }

.about-text p { color: var(--brand-mid); margin-bottom: 1rem; }

.about-text p:last-child { margin-bottom: 0; }

.creds-list { list-style: none; }

.creds-list li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    padding: 0.75rem 0;
    border-bottom: 1px solid var(--brand-border);
    font-size: 1rem;
    color: var(--brand-mid);
  }

.creds-list li:last-child { border-bottom: none; }

.check {
    width: 20px; height: 20px;
    background: var(--brand-muted);
    border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    flex-shrink: 0;
    margin-top: 2px;
  }

.check svg { width: 11px; height: 11px; stroke: var(--brand-dark); }

/* ── ENQUIRY FORM ── */
.enquiry {
  background: var(--brand-light-bg);
  border-top: 1px solid var(--brand-border);
  border-bottom: 1px solid var(--brand-border);
}

.enquiry .section-label {
  color: var(--brand-ink);
}

.enquiry .section-title {
  color: var(--brand-ink);
}

.enquiry .section-lead {
  color: var(--brand-muted-text);
}

.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  background: var(--brand-white);
  border: 1px solid var(--brand-nav-border);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 15px;
  color: var(--brand-charcoal);
  font-family: var(--font-body);
  transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%236b7280' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  padding-right: 36px;
}

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

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px var(--brand-muted);
}

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

.form-group .field-error {
  display: none;
  font-size: 13px;
  color: #b42318;
  margin-top: 4px;
  line-height: 1.4;
}

.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #b42318;
  box-shadow: 0 0 0 3px rgba(180, 35, 24, 0.12);
}

.form-status {
  display: none;
  margin-top: 1rem;
  padding: 0.9rem 1rem;
  border-radius: var(--radius);
  font-size: 14px;
  line-height: 1.5;
}

#form-success {
  display: none;
  background: var(--brand-muted);
  border: 1px solid var(--brand-ink);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  text-align: center;
  color: var(--brand-ink);
  font-weight: 500;
  margin-top: 1rem;
}

/* ── FOOTER ── */
  footer {
    background: var(--brand-tag-bg);
    color: var(--brand-mid);
    padding: 3rem 1.5rem 2rem;
    border-top: 1px solid var(--brand-footer-border);
  }

.nav-mobile.open {
    max-height: 360px;
    padding: 0.5rem 0 1rem;
  }

.nav-mobile .nav-mobile-cta:hover {
    opacity: 0.88;
    color: var(--brand-white) !important;
    background: var(--brand-gradient);
    transform: translateY(-1px);
  }

/* ── RESPONSIVE ── */

  /* Tablet — 900px to 1024px */
  @media (max-width: 1024px) {
  .hero-card { gap: 2rem; padding: 2rem; }
  .hero h1 { font-size: clamp(1.8rem, 3.5vw, 2.5rem); }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.75rem; }
  .stat-card .num { font-size: 1.6rem; }
  .courses-grid { grid-template-columns: repeat(2, 1fr); }
  .audiences-grid { grid-template-columns: repeat(2, 1fr); }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 2rem; }
  .footer-brand { grid-column: 1 / -1; }
  .about-grid { gap: 2rem; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}

/* Large mobile / small tablet — 768px to 900px */
  @media (max-width: 900px) {
  .hero-card { grid-template-columns: 1fr; padding: 1.75rem; }
  .hero::before { display: none; }
  .hero-stats { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .about-grid { grid-template-columns: 1fr; }
  .form-grid { grid-template-columns: 1fr 1fr; }
}

/* Mobile — under 600px */
  @media (max-width: 600px) {
  .hero-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .courses-grid { grid-template-columns: 1fr; }
  .audiences-grid { grid-template-columns: 1fr; }
  .partners-grid { grid-template-columns: repeat(2, 1fr); }
  .form-grid { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 1.5rem; }
  .footer-brand { grid-column: auto; }
  .footer-bottom { flex-direction: column; align-items: flex-start; gap: 0.25rem; }
  .section-title { font-size: 1.6rem; }
  .hero h1 { font-size: 1.8rem; }
  .about-grid { grid-template-columns: 1fr; }
}

.partners {
    background: var(--brand-dark);
    padding: 3.5rem 1.5rem;
  }

.partners-inner {
    max-width: var(--max-w);
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2rem;
  }

.partners-eyebrow {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--brand-white);
  }

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.25rem;
    width: 100%;
  }

.partner-card {
    background: var(--brand-section-alt);
    border-radius: var(--radius-lg);
    padding: 1.75rem 1.25rem;
    text-align: center;
    box-shadow: 0 6px 20px rgba(26, 26, 26, 0.18);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
  }

.partner-card-abbr {
    font-family: var(--font-display);
    font-size: 1.75rem;
    color: var(--brand-ink);
    line-height: 1;
  }

.partner-card-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--brand-ink);
    letter-spacing: 0.03em;
  }

/* ── KB QUIRK PASS — mobile calm authority, no redesign ── */
@media (max-width: 600px) {
  html { scroll-padding-top: 64px; }
  body { font-size: 17px; line-height: 1.65; }
  nav { box-shadow: 0 1px 10px rgba(0,0,0,0.06); }
  .nav-inner { min-height: 64px; height: 64px; padding: 0 1.25rem; }
  .nav-logo img { max-height: 34px !important; }
  .nav-burger { padding: 8px; }
  .nav-burger span { width: 25px; height: 2.5px; }
  .nav-mobile a { padding-left: 1.25rem; padding-right: 1.25rem; }
  .hero { padding: 2.35rem 1rem 3rem; }
  .hero-card {
    padding: 1.7rem 1.55rem;
    gap: 1.8rem;
    border-radius: 15px;
    box-shadow: 0 3px 18px rgba(var(--brand-primary-rgb), 0.06);
  }
  .hero-badge {
    display: inline-block;
    max-width: 100%;
    background: transparent;
    color: var(--brand-dark);
    padding: 0;
    border-radius: 0;
    margin-bottom: 1.05rem;
    font-size: 0.68rem;
    line-height: 1.35;
    letter-spacing: 0.085em;
    font-weight: 800;
  }
  .hero h1 {
    font-size: clamp(1.85rem, 8.5vw, 2.2rem);
    line-height: 1.12;
    margin-bottom: 1rem;
  }
  .hero-lead {
    font-size: 1rem;
    line-height: 1.68;
    margin-bottom: 1.45rem;
  }
  .hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    align-items: stretch;
  }
  .hero-actions .btn-primary,
  .hero-actions .btn-outline {
    width: 100%;
    min-height: 46px;
    padding: 13px 18px;
  }
  .hero-stats {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.8rem;
  }
  .stat-card {
    padding: 1rem 0.75rem;
    min-height: 84px;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }
  .stat-card .num { font-size: 1.6rem; }
  .stat-card .label { font-size: 0.76rem; line-height: 1.25; }
  section { padding: 3.25rem 1.1rem; }
  .section-lead { margin-bottom: 2rem; line-height: 1.65; }
  .course-card { border-radius: 15px; transform: none !important; }
  .course-card-top { padding: 1.55rem 1.25rem 1.15rem; }
  .course-card-bottom { padding: 1.15rem 1.25rem 1.3rem; }
  .course-card h3 { font-size: 1rem; line-height: 1.35; }
  .course-card p { font-size: 0.95rem; line-height: 1.55; }
  .course-tags { gap: 0.45rem; margin-bottom: 1rem; }
  .tag { font-size: 0.72rem; padding: 3px 8px; }
  .course-badge-feat,
  .course-badge-value {
    left: 1.1rem;
    max-width: calc(100% - 2.2rem);
    white-space: normal;
    line-height: 1.2;
  }
  .course-card-bottom > div[style*="justify-content"] {
    display: grid !important;
    grid-template-columns: 1fr;
    gap: 0.65rem;
    justify-content: stretch !important;
  }
  .card-btn-wrap,
  .btn-sm-primary,
  .btn-outline.btn-card,
  .course-card .btn-outline,
  .course-card .btn-sm-primary {
    width: 100%;
  }
  .card-dropdown {
    width: 100%;
    min-width: 0;
    bottom: calc(100% + 8px);
  }
  .card-dropdown-item { white-space: normal; line-height: 1.35; }
  .audience-card { padding: 1.55rem 1.25rem; }
  .audience-icon { width: 50px; height: 50px; }
  .audience-card p { font-size: 0.95rem; }
  .partners { padding: 3rem 1.1rem; }
  .partners-grid { grid-template-columns: 1fr 1fr; gap: 0.9rem; }
  .partner-card { padding: 1.25rem 0.8rem; }
  footer { padding: 2.5rem 1.25rem 1.6rem; }
  .footer-brand img { max-width: 155px !important; }
}

@media (max-width: 380px) {
  .hero-card { padding: 1.45rem 1.25rem; }
  .hero h1 { font-size: 1.78rem; }
  .stat-card .num { font-size: 1.45rem; }
  .partners-grid { grid-template-columns: 1fr; }
}

/* ── KB FIX: course/audience button discipline ── */
.audience-card {
  align-items: center;
  text-align: center;
}

.audience-card p {
  flex: 1;
}

.audience-card a.btn-sm-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 240px;
  min-height: 44px;
  margin-top: auto !important;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  line-height: 1.15;
  text-align: center;
}

.course-card-bottom > div[style*="justify-content"] {
  gap: 0.75rem;
}

.course-card .btn-sm-primary,
.course-card .btn-outline {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.card-btn-wrap {
  vertical-align: top;
}

@media (min-width: 721px) {
  .audience-card {
    min-height: 100%;
  }
  .course-card-bottom > div[style*="justify-content"] {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    align-items: stretch !important;
  }
  .course-card-bottom > div[style*="justify-content"] > .card-btn-wrap,
  .course-card-bottom > div[style*="justify-content"] > a,
  .course-card-bottom > div[style*="justify-content"] > button {
    width: 100%;
  }
  .course-card-bottom > div[style*="justify-content"] .btn-outline,
  .course-card-bottom > div[style*="justify-content"] .btn-sm-primary {
    width: 100%;
    padding-left: 0.75rem !important;
    padding-right: 0.75rem !important;
  }
  .course-card-bottom > div[style*="justify-content"]:has(.card-btn-wrap:only-child),
  .course-card-bottom > div[style*="justify-content"]:has(> a:only-child),
  .course-card-bottom > div[style*="justify-content"]:has(> button:only-child) {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .audience-card {
    align-items: center;
    text-align: center;
  }
  .audience-icon {
    margin-left: auto;
    margin-right: auto;
  }
  .audience-card a.btn-sm-primary {
    max-width: none;
  }
}

/* L4: calmer desktop course actions for unavailable courses */
.course-card .btn-disabled {
  color: var(--brand-mid) !important;
  background: #f4f4f2 !important;
  border-color: var(--brand-border) !important;
  cursor: not-allowed;
  opacity: 0.82;
  pointer-events: none;
}

.course-card .btn-disabled strong {
  font-weight: 700;
}

@media (min-width: 721px) {
  .course-card-bottom > div[style*="justify-content"] .btn-disabled {
    width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════
   SONAMA — brief v0.5 residue. Everything above this line is cloned
   verbatim from www/flc/assets/css/index.css. What follows is genuinely
   new: pieces FLC's template has no equivalent for (hero-accent span,
   methodology steps), one structural override (single-column hero card
   — Sonama has no stats data to fill FLC's second hero-card column), and
   a footer text-colour fix (FLC's --brand-mid/--brand-muted-text alias
   to dark-grey, which is unreadable on Sonama's near-black footer —
   FLC's own footer is light peach, so this never surfaced there).
═══════════════════════════════════════════════════════════════ */

/* ── NAV — single CTA, no link list ── */
@media (max-width: 900px) {
  .nav-cta { display: none; }
}

/* ── HERO — brief v0.6: full-width dark-blue background, no card/border, single column ── */
.hero {
  background: var(--dark-blue);
  border-bottom: none;
}
.hero-card {
  grid-template-columns: 1fr;
  background: none;
  border: none;
  border-radius: 0;
  box-shadow: none;
  padding: 0;
}
.hero h1 { color: var(--white); }
.hero h1 .hero-accent {
  background: none;
  -webkit-background-clip: unset;
  background-clip: unset;
  -webkit-text-fill-color: unset;
  color: var(--mid-blue);
}
.hero-lead { color: var(--light-blue); }
.hero .btn-primary { background: var(--mid-blue); }

/* ── METHODOLOGY — "How we work" — no FLC equivalent section ── */
.methodology { background: var(--white); }
.steps-flow { display: grid; grid-template-columns: repeat(5, 1fr); gap: 1.25rem; padding-top: 1rem; }
.step { display: flex; flex-direction: column; align-items: center; text-align: center; padding: 0.5rem; }
.step-num { width: 48px; height: 48px; border-radius: 50%; background: var(--dark-blue); color: var(--white); font-size: 1.1rem; font-weight: 700; display: flex; align-items: center; justify-content: center; margin-bottom: 1rem; flex-shrink: 0; }
.step-title { font-size: 1.1rem; font-weight: 600; color: var(--dark-blue); margin-bottom: 0.5rem; line-height: 1.2; }
.step-body { font-size: 14px; color: var(--dark-grey); line-height: 1.6; }

@media (max-width: 900px) {
  .steps-flow { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(5) { grid-column: 1 / -1; max-width: 260px; margin: 0 auto; }
}
@media (max-width: 640px) {
  .steps-flow { grid-template-columns: 1fr; }
  .step:nth-child(5) { grid-column: auto; max-width: none; margin: 0; }
}

/* ── FOOTER — contrast fix (Sonama footer is near-black, not FLC's light peach) ── */
.footer-brand p,
.footer-bottom p,
.footer-bottom a {
  color: var(--light-blue);
}
.footer-wordmark { font-size: 1.4rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; letter-spacing: -0.02em; }
.footer-bottom { border-top-color: var(--dark-grey); }
.footer-bottom a:hover { color: var(--white); }
.required-marker { color: var(--mid-blue); }