:root {
  --blue: #2ea3f2;
  --blue-deep: #1478c2;
  --navy: #0a2541;
  --ink: #15171e;
  --ink-2: #1c1e25;
  --orange: #f96b24;
  --amber: #ff9100;
  --text: #243044;
  --muted: #5c6b7c;
  --line: #e4edf5;
  --paper: #f4f8fb;
  --white: #ffffff;
  --shadow: 0 16px 40px rgba(10, 37, 65, 0.08);
  --radius: 16px;
  --max: 1120px;
  --font: "Source Sans 3", "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  --display: "Outfit", "Source Sans 3", "Segoe UI", sans-serif;
  --topbar: 42px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  color: var(--text);
  background: var(--white);
  font-family: var(--font);
  font-size: 1.0625rem;
  line-height: 1.55;
  text-rendering: optimizeLegibility;
}

body.nav-lock { overflow: hidden; }

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

a { color: var(--blue-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { color: var(--navy); }

h1, h2, h3, h4, p { margin: 0; }

h1, h2, h3, .display {
  font-family: var(--display);
  letter-spacing: -0.03em;
  line-height: 1.12;
  color: var(--navy);
}

button,
[role="button"],
summary { cursor: pointer; }

:focus-visible {
  outline: 3px solid var(--blue);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: var(--navy);
  color: var(--white);
  padding: 8px 12px;
  z-index: 100;
  border-radius: 8px;
}
.skip:focus { top: 12px; }

.wrap {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.topbar {
  background: var(--navy);
  color: #d5e6f5;
  font-size: 0.92rem;
  min-height: var(--topbar);
}

.topbar-inner,
.header-inner,
.footer-grid,
.hero-grid,
.split,
.why-grid,
.benefit-grid,
.course-grid,
.alumni-grid,
.stat-row,
.format-grid,
.contact-grid {
  display: grid;
  gap: 20px;
}

.topbar-inner {
  min-height: var(--topbar);
  align-items: center;
  grid-template-columns: 1fr auto;
  padding: 8px 0;
}

.topbar a { color: #fff; text-decoration: none; font-weight: 600; }
.topbar a:hover { color: var(--amber); }

.contact-bits,
.socials { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; }

.socials a {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
}
.socials svg { width: 15px; height: 15px; fill: currentColor; }

.header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.header-inner {
  min-height: 76px;
  grid-template-columns: auto 1fr auto;
  align-items: center;
}

.logo { display: flex; align-items: center; }
.logo img { width: 196px; height: 44px; object-fit: contain; }

.nav {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 4px;
}

.nav a,
.nav-drop > button {
  color: var(--navy);
  text-decoration: none;
  font-weight: 700;
  font-size: 0.98rem;
  background: none;
  border: 0;
  font-family: inherit;
  padding: 10px 12px;
  border-radius: 10px;
}

.nav a:hover,
.nav-drop > button:hover,
.nav a[aria-current="page"] { color: var(--blue-deep); background: #f3f9fe; }

.nav-drop { position: relative; }

.dropdown {
  display: none;
  position: absolute;
  top: calc(100% - 4px);
  right: 0;
  min-width: 280px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: var(--shadow);
  padding: 8px;
  z-index: 20;
}

.nav-drop:hover .dropdown,
.nav-drop:focus-within .dropdown { display: grid; }

.dropdown a {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 10px;
  font-weight: 650;
}
.dropdown small { color: var(--muted); font-weight: 600; }

.menu-toggle {
  display: none;
  position: relative;
  z-index: 90;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
}
.menu-toggle svg { width: 22px; height: 22px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  border: 0;
  font-family: var(--display);
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  letter-spacing: -0.01em;
  transition: transform 160ms ease, filter 160ms ease;
}
.btn:hover { transform: translateY(-1px); filter: brightness(1.03); color: #fff; }
.btn-orange {
  color: #fff;
  background-image: linear-gradient(270deg, #f96b24 0%, #ff9100 100%);
  box-shadow: 0 8px 18px rgba(249, 107, 36, 0.28);
}
.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { color: #fff; }
.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1.5px solid #c9d8e6;
}
.btn-ghost:hover { color: var(--navy); background: #f7fbfe; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 90% 10%, rgba(46, 163, 242, 0.18), transparent 60%),
    linear-gradient(180deg, #f7fbfe 0%, #ffffff 70%);
  padding: 56px 0 28px;
}

.hero-grid { grid-template-columns: 1.15fr 0.85fr; align-items: center; }

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-deep);
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.78rem;
  margin-bottom: 14px;
}
.kicker::before {
  content: "";
  width: 18px;
  height: 3px;
  border-radius: 99px;
  background: linear-gradient(270deg, var(--orange), var(--amber));
}

.hero h1 {
  font-size: clamp(2.4rem, 5vw, 4.35rem);
  max-width: 14ch;
}
.hero h1 span { display: block; color: var(--blue-deep); }
.lede { margin-top: 18px; font-size: 1.18rem; color: var(--muted); max-width: 46ch; }
.hero .btn-row { margin-top: 26px; }

.hero-art {
  position: relative;
  min-height: 280px;
}
.hero-art img { width: min(100%, 520px); margin-left: auto; }

.band { padding: 72px 0; }
.band-paper { background: var(--paper); }
.band-dark {
  background: var(--ink) url("/assets/img/circuit.png") right -20% center / 640px no-repeat;
  color: #e7eef6;
}
.band-dark h2, .band-dark h3 { color: #fff; }
.band-dark p { color: #c5d3e2; }

.section-head { max-width: 720px; margin-bottom: 28px; }
.section-head h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); margin-top: 8px; }
.section-head p { margin-top: 10px; color: var(--muted); }

.feature-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: -36px;
  position: relative;
  z-index: 2;
}
.feature {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 18px;
  display: grid;
  grid-template-columns: 64px 1fr;
  gap: 14px;
  align-items: center;
}
.feature img { width: 64px; height: 64px; object-fit: contain; }
.feature h3 { font-size: 1.05rem; }
.feature p { color: var(--muted); font-size: 0.95rem; margin-top: 4px; }

.logo-marquee { padding: 28px 0 10px; overflow: hidden; }
.logo-marquee p {
  text-align: center;
  color: var(--muted);
  font-weight: 700;
  margin-bottom: 14px;
}
.marquee { overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track {
  display: flex;
  gap: 18px;
  width: max-content;
  animation: slide 42s linear infinite;
}
.logo-pill {
  width: 168px;
  height: 78px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  display: grid;
  place-items: center;
  padding: 8px 12px;
}
.logo-pill img { max-height: 52px; width: auto; max-width: 140px; object-fit: contain; }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.why-grid { grid-template-columns: repeat(4, 1fr); }
.why-card, .format-card, .course-card, .alumni-card, .post-card, .panel {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.why-card, .format-card { padding: 22px; }
.why-card img { width: 56px; height: 56px; object-fit: contain; margin-bottom: 12px; }
.why-card h3, .format-card h3 { font-size: 1.2rem; margin-bottom: 8px; }
.why-card p, .format-card p { color: var(--muted); }

.format-grid { grid-template-columns: repeat(3, 1fr); margin-top: 22px; }
.format-card strong { display: block; color: var(--blue-deep); font-size: 0.8rem; letter-spacing: 0.06em; text-transform: uppercase; margin-bottom: 6px; }

.benefit-grid { grid-template-columns: repeat(4, 1fr); margin-top: 22px; }
.benefit {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 14px;
  padding: 16px;
  color: #fff;
  font-weight: 700;
}
.benefit span { display: block; color: var(--amber); font-size: 0.78rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 6px; }

.prose { max-width: 74ch; }
.prose p + p, .prose ul { margin-top: 12px; }
.prose ul { padding-left: 1.1rem; }
.prose li + li { margin-top: 6px; }
.split { grid-template-columns: 1.2fr 0.8fr; align-items: start; }
.note {
  background: #fff;
  border-left: 4px solid var(--orange);
  border-radius: 12px;
  padding: 18px 18px 18px 16px;
  box-shadow: var(--shadow);
}
.note h3 { margin-bottom: 8px; }

.course-grid { grid-template-columns: repeat(3, 1fr); }
.course-card { overflow: hidden; display: flex; flex-direction: column; color: inherit; text-decoration: none; }
.course-card:hover { color: inherit; transform: translateY(-3px); box-shadow: var(--shadow); transition: 180ms ease; }
.course-card img { width: 100%; aspect-ratio: 418 / 220; object-fit: cover; background: #eaf3fb; }
.course-card .body { padding: 16px 16px 18px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.course-card h3 { font-size: 1.25rem; }
.meta { display: flex; flex-wrap: wrap; gap: 6px; color: var(--muted); font-size: 0.92rem; font-weight: 600; }
.meta span { background: var(--paper); border-radius: 999px; padding: 4px 8px; }
.fee { margin-top: auto; color: var(--orange); font-family: var(--display); font-weight: 800; font-size: 1.25rem; }

.alumni-grid { grid-template-columns: repeat(3, 1fr); }
.alumni-card { overflow: hidden; }
.alumni-card img.portrait { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.alumni-card .body { padding: 16px 16px 18px; }
.alumni-card header { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.alumni-card h3 { font-size: 1.25rem; }
.role { color: var(--muted); font-weight: 700; font-size: 0.92rem; }
.company { height: 36px; width: auto; max-width: 110px; object-fit: contain; }
.alumni-card blockquote { margin: 12px 0 0; color: var(--text); }

.crumbs { color: var(--muted); font-size: 0.92rem; margin-bottom: 14px; }
.crumbs a { color: var(--muted); font-weight: 700; text-decoration: none; }
.crumbs a:hover { color: var(--blue-deep); }

.page-hero { padding: 36px 0 10px; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3.3rem); max-width: 18ch; }

.course-hero {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 28px;
  align-items: center;
  padding-bottom: 20px;
}
.poster {
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.poster img { width: 100%; aspect-ratio: 418 / 230; object-fit: cover; }
.facts { display: flex; flex-wrap: wrap; gap: 8px; margin: 16px 0; }
.facts li {
  list-style: none;
  background: var(--paper);
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  color: var(--navy);
}
.facts { padding: 0; }
.stars { color: #e39b12; font-weight: 800; letter-spacing: 0.04em; }

.curriculum { display: grid; gap: 10px; }
details.module {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 0 16px;
}
details.module summary {
  font-family: var(--display);
  font-weight: 700;
  color: var(--navy);
  padding: 14px 0;
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
details.module summary::-webkit-details-marker { display: none; }
details.module summary::after { content: "+"; color: var(--orange); font-size: 1.3rem; }
details.module[open] summary::after { content: "–"; }
details.module ul { margin: 0 0 14px; padding-left: 1.1rem; color: var(--muted); }

.tools { display: flex; flex-wrap: wrap; gap: 8px; }
.tools span {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 6px 10px;
  font-weight: 700;
  color: var(--navy);
}

.enquire {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 28px;
  align-items: start;
}
.form {
  background: #fff;
  border-radius: 18px;
  padding: 18px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
  display: grid;
  gap: 12px;
}
.form h2 { font-size: 1.6rem; }
label { display: grid; gap: 6px; font-weight: 700; color: var(--navy); font-size: 0.95rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid #d5e0ea;
  border-radius: 10px;
  min-height: 48px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text);
  background: #fff;
}
textarea { min-height: 110px; resize: vertical; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.status { min-height: 1.4em; font-weight: 700; }
.status.ok { color: #0d7a45; }
.status.err { color: #b42318; }
.phone-stack { display: grid; gap: 8px; margin-top: 16px; }
.phone-stack a { font-weight: 800; font-size: 1.15rem; text-decoration: none; color: var(--navy); }

.contact-grid { grid-template-columns: 1fr 1fr; }
.address-card { padding: 18px; }
.address-card h3 { margin-bottom: 6px; }
.map-link img { border-radius: 14px; border: 1px solid var(--line); margin-top: 8px; }

.post-list { display: grid; gap: 14px; }
.post-card { padding: 18px 20px; text-decoration: none; color: inherit; }
.post-card:hover { color: inherit; box-shadow: var(--shadow); }
.post-card time { color: var(--muted); font-weight: 700; font-size: 0.9rem; }
.article { max-width: 760px; }
.article p { margin-top: 14px; }
.article h2 { font-size: 1.45rem; margin-top: 28px; }

.footer { background: var(--ink-2); color: #d5deea; padding: 48px 0 0; }
.footer a { color: #fff; text-decoration: none; }
.footer a:hover { color: var(--amber); }
.footer h2 { color: var(--blue); font-size: 1rem; letter-spacing: 0.04em; text-transform: uppercase; margin-bottom: 12px; }
.footer-grid { grid-template-columns: 1.4fr 1fr 1fr 1.1fr; }
.footer p { color: #b7c3d1; }
.footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.subfoot {
  margin-top: 28px;
  background: #14161c;
  color: #8d99a8;
  padding: 14px 0;
}
.subfoot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }

@media (max-width: 980px) {
  .header-inner { grid-template-columns: auto auto; }
  .menu-toggle { display: grid; place-items: center; }
  .header .btn-orange { display: none; }
  .nav { display: none; }
  .nav.is-open {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    position: fixed;
    inset: 0;
    z-index: 70;
    background: #fff;
    padding: 92px 16px 28px;
    overflow: auto;
    border: 0;
    border-radius: 0;
    box-shadow: none;
  }
  .nav > a.top-course { display: none; }
  .nav-drop > button {
    pointer-events: none;
    text-align: left;
    color: var(--muted);
    font-size: 0.78rem;
    letter-spacing: 0.06em;
    text-transform: uppercase;
  }
  .dropdown {
    position: static;
    display: grid;
    min-width: 0;
    box-shadow: none;
    border: 0;
    padding: 0 0 8px;
  }
  .hero-grid, .split, .course-hero, .enquire, .contact-grid, .footer-grid { grid-template-columns: 1fr; }
  .feature-row, .why-grid, .benefit-grid, .course-grid, .alumni-grid, .format-grid { grid-template-columns: 1fr 1fr; }
  .hero-art { order: -1; }
  .hero-art img { margin: 0 auto; max-height: 280px; width: auto; }
  .topbar-inner { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .topbar { font-size: 0.84rem; }
  .topbar .socials { display: none; }
  .topbar-inner { padding: 6px 0; }
  .contact-bits { gap: 2px 12px; }
  .feature-row, .why-grid, .benefit-grid, .course-grid, .alumni-grid, .format-grid, .form-row { grid-template-columns: 1fr; }
  .hero { padding-top: 28px; }
  .band { padding: 48px 0; }
  .logo img { width: 160px; height: 36px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .marquee-track { animation: none; }
  .btn, .course-card { transition: none; }
}
