@import "/mk3/assets/palette.css";
* { margin: 0; padding: 0; box-sizing: border-box; }
  :root {
  --mk-font: 'Rubik', 'PingFang HK', 'Noto Sans HK', 'Microsoft JhengHei', system-ui, -apple-system, sans-serif;
  --radius: 16px;
  --shadow: 0 2px 16px rgba(36,85,166,0.08);
}
  html, body { background: var(--light-gray); }
  body { font-family: var(--mk-font); color: var(--text); line-height: 1.6; -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column; }
  a { text-decoration: none; color: var(--navy); }
  :focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 4px; }

  .skip-link { position: absolute; left: -9999px; top: 0; background: var(--navy); color: #fff; padding: 10px 16px; z-index: 3000; border-radius: 0 0 8px 0; }
  .skip-link:focus { left: 0; }

  .page-hero::before { content: ''; position: absolute; top: -30%; right: -8%; width: 480px; height: 480px; background: radial-gradient(circle, rgba(251,171,24,.12) 0%, transparent 70%); pointer-events: none; }
  .hero-inner { max-width: 1100px; margin: 0 auto; position: relative; z-index: 1; }

  .main-content { max-width: 1100px; margin: 0 auto; padding: 44px 48px; width: 100%; flex: 1; }

  .panel { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow); padding: 32px 34px; margin-bottom: 28px; }
  .panel h2 { font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
  .panel .lead { font-size: 14px; color: var(--gray); margin-bottom: 18px; }
  .panel > p { font-size: 14px; color: #444; line-height: 1.8; }

  .philosophy-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 20px; }
  .phil-card { background: var(--light-gray); border-radius: 12px; padding: 20px; border-left: 4px solid var(--navy); }
  .phil-card.o { border-left-color: var(--orange); }
  .phil-card .phil-icon { font-size: 28px; margin-bottom: 8px; }
  .phil-card h4 { font-size: 15px; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
  .phil-card.o h4 { color: #a06800; }
  .phil-card p { font-size: 13px; color: #555; line-height: 1.7; }

  /* modules */
  .module-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .module-card { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; transition: transform .2s, box-shadow .2s; }
  .module-card:hover { transform: translateY(-4px); box-shadow: 0 12px 28px rgba(36,85,166,0.14); }
  .module-top { background: linear-gradient(135deg, var(--navy), var(--navy-dark)); color: #fff; padding: 18px 20px; }
  .module-card:nth-child(2) .module-top, .module-card:nth-child(5) .module-top { background: linear-gradient(135deg, #e8900a, var(--orange)); color: var(--dark); }
  .module-card:nth-child(3) .module-top, .module-card:nth-child(6) .module-top { background: linear-gradient(135deg, var(--navy-deep), var(--navy-dark)); }
  .module-icon { font-size: 30px; margin-bottom: 8px; }
  .module-top h4 { font-size: 16px; font-weight: 800; }
  .module-hours { display: inline-block; margin-top: 8px; background: rgba(255,255,255,.2); font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; }
  .module-card:nth-child(2) .module-hours, .module-card:nth-child(5) .module-hours { background: rgba(0,0,0,.15); }
  .module-body { padding: 16px 20px 20px; }
  .module-body p { font-size: 13px; color: #555; line-height: 1.7; }

  /* certification path */
  .cert-path { display: grid; grid-template-columns: 1fr auto 1fr auto 1fr; align-items: stretch; gap: 0; }
  .cert-tier { background: var(--light-gray); border-radius: 14px; padding: 24px 20px; text-align: center; border-top: 5px solid var(--navy); }
  .cert-tier.t2 { border-top-color: var(--orange); }
  .cert-tier.t3 { border-top-color: var(--navy-dark); background: linear-gradient(135deg, #eef3fc, var(--light-gray)); }
  .cert-medal { font-size: 40px; margin-bottom: 10px; }
  .cert-tier h4 { font-size: 17px; font-weight: 800; color: var(--navy); margin-bottom: 4px; }
  .cert-level { font-size: 11px; font-weight: 700; color: var(--orange); letter-spacing: .5px; margin-bottom: 12px; }
  .cert-tier ul { list-style: none; text-align: left; display: flex; flex-direction: column; gap: 8px; }
  .cert-tier li { font-size: 12px; color: #555; line-height: 1.6; padding-left: 18px; position: relative; }
  .cert-tier li::before { content: '✓'; position: absolute; left: 0; color: var(--navy); font-weight: 800; }
  .cert-arrow { display: flex; align-items: center; justify-content: center; font-size: 26px; color: var(--orange); padding: 0 8px; }

  /* schedule table */
  .table-scroll { overflow-x: auto; }
  .mk-table { width: 100%; border-collapse: collapse; font-size: 14px; min-width: 560px; }
  .mk-table th, .mk-table td { text-align: left; padding: 13px 14px; border-bottom: 1px solid var(--line); }
  .mk-table thead th { font-size: 12px; color: #fff; background: var(--navy); font-weight: 700; letter-spacing: .4px; }
  .mk-table thead th:first-child { border-radius: 10px 0 0 0; }
  .mk-table thead th:last-child { border-radius: 0 10px 0 0; }
  .mk-table tbody tr:hover { background: var(--light-gray); }
  .mk-table td b { color: var(--navy); }
  .pill { display: inline-block; font-size: 11px; font-weight: 700; padding: 3px 11px; border-radius: 20px; }
  .pill-blue { background: var(--light-blue); color: var(--navy); }
  .pill-orange { background: #fff3d6; color: #a06800; }
  .pill-dark { background: #e2e8f5; color: var(--navy-dark); }

  /* enrol form */
  .enrol { background: linear-gradient(135deg, var(--navy) 0%, var(--navy-dark) 100%); color: #fff; border-radius: var(--radius); padding: 36px; }
  .enrol h2 { color: #fff; }
  .enrol .lead { color: rgba(255,255,255,.75); }
  .enrol-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 20px; }
  .field { display: flex; flex-direction: column; gap: 6px; }
  .field.full { grid-column: 1 / -1; }
  .field label { font-size: 12px; font-weight: 700; color: rgba(255,255,255,.85); letter-spacing: .3px; }
  .field input, .field select { border: 1.5px solid rgba(255,255,255,.25); background: rgba(255,255,255,.1); color: #fff; border-radius: 8px; padding: 11px 14px; font-size: 14px; font-family: inherit; outline: none; }
  .field input::placeholder { color: rgba(255,255,255,.5); }
  .field input:focus, .field select:focus { border-color: var(--orange); background: rgba(255,255,255,.16); }
  .field select option { color: var(--text); }
  .btn-orange { background: var(--orange); color: var(--dark); border: none; padding: 14px 30px; border-radius: 8px; font-size: 15px; font-weight: 700; cursor: pointer; font-family: inherit; }
  .btn-orange:hover { opacity: .9; }
  .sim-note { font-size: 12px; color: rgba(255,255,255,.6); margin-top: 14px; }

  .mk-toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%) translateY(20px); background: var(--navy-dark); color: #fff; padding: 12px 22px; border-radius: 30px; font-size: 14px; font-weight: 600; box-shadow: 0 8px 24px rgba(0,0,0,.25); opacity: 0; pointer-events: none; transition: opacity .25s, transform .25s; z-index: 2000; }
  .mk-toast.show { opacity: 1; transform: translateX(-50%) translateY(0); }

  .page-hero {
  padding: 56px 48px 48px;
  position: relative;
  overflow: hidden;
}
.mk-footer {
  padding: 26px 48px;
  gap: 12px;
  margin-top: 48px;
}
.footer-logo {
  font-size: 18px;
}

@media (max-width: 1024px) {
    .philosophy-grid { grid-template-columns: 1fr; }
    .module-grid { grid-template-columns: repeat(2, 1fr); }
    .cert-path { grid-template-columns: 1fr; }
    .cert-arrow { transform: rotate(90deg); padding: 8px 0; }
  }
  @media (max-width: 768px) {

    .main-content { padding: 28px 18px; }
    .panel { padding: 24px 20px; }
    .module-grid { grid-template-columns: 1fr; }
    .enrol { padding: 24px 20px; }
    .enrol-form { grid-template-columns: 1fr; }

    .page-hero {
    padding: 36px 18px 32px;
  }
  .mk-footer {
    padding: 20px 18px;
    flex-direction: column;
    text-align: center;
  }
}
  @media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
