/* =========================================================
   MM Engineering — Trade Preparation Center
   Stylesheet — rebuilt 2026
   ========================================================= */

/* ---------- Design tokens ---------- */
:root {
  --forest: #3f4a40;
  --forest-2: #525f52;
  --forest-dark: #2b332c;
  --forest-tint: #eef1ee;
  --amber: #f6a337;
  --amber-dark: #df7e00;
  --amber-tint: #fef3e2;
  --ink: #1d211e;
  --ink-soft: #4b544d;
  --paper: #faf9f6;
  --paper-2: #f2f0ea;
  --white: #ffffff;
  --line: #e4e2da;
  --shadow-sm: 0 1px 2px rgba(29, 33, 30, 0.06), 0 1px 3px rgba(29, 33, 30, 0.08);
  --shadow-md: 0 8px 24px -8px rgba(29, 33, 30, 0.22);
  --shadow-lg: 0 24px 48px -16px rgba(29, 33, 30, 0.32);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 22px;
  --container: 1180px;
  --nav-h: 106px;
  --ff-head: "Chivo", "Inter", system-ui, sans-serif;
  --ff-body: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
}

/* ---------- Reset ---------- */
* , *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }
body {
  margin: 0;
  font-family: var(--ff-body);
  color: var(--ink);
  background: var(--paper);
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
h1, h2, h3, h4 { font-family: var(--ff-head); line-height: 1.15; margin: 0; color: var(--forest-dark); }
p { margin: 0; }
.container { max-width: var(--container); margin: 0 auto; padding: 0 24px; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}

/* ---------- Type scale ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--ff-head);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--amber-dark);
  font-weight: 700;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 2px;
  background: var(--amber);
  display: inline-block;
}
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); margin-top: 10px; }
.section-head p { margin-top: 14px; color: var(--ink-soft); font-size: 1.05rem; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

section { padding: 88px 0; }
.section-tight { padding: 64px 0; }
.bg-paper2 { background: var(--paper-2); }
.bg-forest { background: var(--forest-dark); color: #eef0ec; }
.bg-forest h2, .bg-forest h3, .bg-forest h1 { color: #fff; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--ff-head);
  font-weight: 700;
  font-size: 0.92rem;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 15px 28px;
  border-radius: 999px;
  border: 1.5px solid transparent;
  transition: transform 0.18s ease, box-shadow 0.18s ease, background-color 0.18s ease, color 0.18s ease, border-color 0.18s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--amber); color: var(--forest-dark); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: var(--amber-dark); box-shadow: var(--shadow-md); transform: translateY(-2px); color: #fff; }
.btn-outline { background: transparent; border-color: rgba(255,255,255,0.55); color: #fff; }
.btn-outline:hover { background: rgba(255,255,255,0.12); border-color: #fff; transform: translateY(-2px); }
.btn-outline.dark { border-color: var(--forest); color: var(--forest-dark); }
.btn-outline.dark:hover { background: var(--forest); color: #fff; }
.btn-block { width: 100%; }
.btn-sm { padding: 11px 20px; font-size: 0.82rem; }

/* ---------- Top utility bar ---------- */
.topbar {
  background: var(--forest-dark);
  color: #d8ddd6;
  font-size: 0.82rem;
}
.topbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 9px 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
.topbar-left { display: flex; gap: 22px; flex-wrap: wrap; }
.topbar a { display: inline-flex; align-items: center; gap: 7px; transition: color 0.15s ease; }
.topbar a:hover { color: var(--amber); }
.topbar svg { width: 14px; height: 14px; flex: none; }
.topbar-social { display: flex; align-items: center; gap: 6px; }

/* ---------- Header / Nav ---------- */
.site-header { position: sticky; top: 0; z-index: 200; }
.navbar {
  /* Solid background on purpose: a backdrop-filter/blur here would make this
     element establish a containing block for position:fixed descendants
     (like the mobile nav panel), trapping it inside the navbar's own box
     instead of the viewport. */
  background: var(--paper);
  border-bottom: 1px solid var(--line);
  transition: box-shadow 0.25s ease, background-color 0.25s ease;
}
.site-header.is-scrolled .navbar { box-shadow: var(--shadow-md); }
.navbar-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand img { height: 42px; width: auto; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 6px;
  font-family: var(--ff-head);
  font-weight: 500;
  font-size: 0.95rem;
}
.nav-links > a, .nav-dropdown-toggle {
  padding: 10px 16px;
  border-radius: 999px;
  color: var(--ink);
  transition: background-color 0.15s ease, color 0.15s ease;
  background: transparent;
  border: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.nav-links > a:hover, .nav-dropdown-toggle:hover, .nav-dropdown.is-open .nav-dropdown-toggle {
  background: var(--forest-tint);
  color: var(--forest-dark);
}
.nav-dropdown { position: relative; }
.nav-dropdown-toggle svg { width: 11px; height: 11px; transition: transform 0.2s ease; }
.nav-dropdown.is-open .nav-dropdown-toggle svg { transform: rotate(180deg); }
.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  min-width: 240px;
  background: var(--white);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s;
}
.nav-dropdown.is-open .nav-dropdown-menu { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.nav-dropdown-menu a {
  display: block;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  color: var(--ink);
}
.nav-dropdown-menu a:hover { background: var(--forest-tint); color: var(--forest-dark); }
.navbar-actions { display: flex; align-items: center; gap: 14px; }
.qcto-badge { height: 36px; width: auto; opacity: 0.9; }
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--white);
}
.nav-toggle span { height: 2px; width: 18px; margin: 0 auto; background: var(--forest-dark); transition: transform 0.2s ease, opacity 0.2s ease; }
.nav-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.is-open span:nth-child(2) { opacity: 0; }
.nav-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  min-height: min(86vh, 760px);
  display: flex;
  align-items: center;
  color: #fff;
  overflow: hidden;
  background: linear-gradient(160deg, var(--forest-dark), #23291f 70%);
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.42; }
.hero-media::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(115deg, rgba(31,37,32,0.96) 20%, rgba(31,37,32,0.72) 55%, rgba(246,163,55,0.28) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 90px 0 70px; }
.hero-badges { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.28);
  padding: 7px 14px 7px 8px;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.03em;
  backdrop-filter: blur(6px);
}
.hero-badge img { height: 20px; width: auto; background: #fff; border-radius: 50%; padding: 3px; }
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: #fff;
  max-width: 15ch;
  letter-spacing: -0.01em;
}
.hero h1 em { font-style: normal; color: var(--amber); }
.hero-lead { margin-top: 22px; max-width: 46ch; font-size: 1.12rem; color: #dfe4dc; }
.hero-cta { margin-top: 34px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-stats {
  margin-top: 56px;
  display: grid;
  grid-template-columns: repeat(4, auto);
  gap: 34px 44px;
}
.hero-stats .stat-num { font-family: var(--ff-head); font-size: 1.7rem; color: #fff; font-weight: 700; }
.hero-stats .stat-label { font-size: 0.78rem; color: #b9c0b4; text-transform: uppercase; letter-spacing: 0.06em; margin-top: 3px; }

/* page hero (inner pages) */
.page-hero {
  position: relative;
  color: #fff;
  padding: 150px 0 64px;
  background: linear-gradient(150deg, var(--forest-dark), #23291f 75%);
  overflow: hidden;
}
.page-hero-media { position: absolute; inset: 0; }
.page-hero-media img { width: 100%; height: 100%; object-fit: cover; opacity: 0.34; }
.page-hero-media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(120deg, rgba(31,37,32,0.95), rgba(31,37,32,0.65)); }
.page-hero .container { position: relative; z-index: 2; }
.page-hero h1 { color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); }
.page-hero p.lead { margin-top: 14px; max-width: 56ch; color: #dfe4dc; font-size: 1.05rem; }
.breadcrumb { display: flex; gap: 8px; align-items: center; font-size: 0.85rem; color: #b9c0b4; margin-bottom: 16px; }
.breadcrumb a:hover { color: var(--amber); }

/* ---------- Trust strip ---------- */
.trust-strip { background: var(--forest); padding: 22px 0; }
.trust-strip .container { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; text-align: center; }
.trust-strip p { color: #eef1ee; font-size: 0.92rem; font-weight: 500; }
.trust-strip strong { color: var(--amber); }

/* ---------- Cards: courses ---------- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.course-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--line);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
  display: flex;
  flex-direction: column;
}
.course-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.course-card-media { position: relative; aspect-ratio: 4/3; overflow: hidden; }
.course-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.course-card:hover .course-card-media img { transform: scale(1.06); }
.course-card-tag {
  position: absolute; top: 14px; left: 14px;
  background: rgba(29,33,30,0.72);
  color: #fff;
  font-size: 0.7rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 12px;
  border-radius: 999px;
  backdrop-filter: blur(4px);
}
.course-card-body { padding: 26px; display: flex; flex-direction: column; gap: 12px; flex: 1; }
.course-card-body h3 { font-size: 1.28rem; }
.course-card-body p { color: var(--ink-soft); font-size: 0.96rem; flex: 1; }
.course-card-link {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-head); font-weight: 700; font-size: 0.86rem;
  color: var(--forest-dark); text-transform: uppercase; letter-spacing: 0.03em;
  margin-top: 4px;
}
.course-card-link svg { width: 14px; height: 14px; transition: transform 0.2s ease; }
.course-card:hover .course-card-link svg { transform: translateX(4px); }

/* ---------- Curriculum ---------- */
.grid-topics { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.topic-group {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 26px 24px;
}
.topic-group h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--amber-dark); margin-bottom: 16px;
}
.topic-group li { display: flex; align-items: flex-start; gap: 10px; padding: 8px 0; font-size: 0.96rem; border-top: 1px dashed var(--line); }
.topic-group li:first-child { border-top: none; padding-top: 0; }
.topic-group li svg { width: 16px; height: 16px; margin-top: 3px; flex: none; color: var(--forest); }

/* ---------- Values / why us ---------- */
.grid-values { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.value-card { padding: 30px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line); box-shadow: var(--shadow-sm); }
.value-card .icon-wrap {
  width: 52px; height: 52px; border-radius: 14px;
  background: var(--forest-tint); color: var(--forest);
  display: flex; align-items: center; justify-content: center; margin-bottom: 18px;
}
.value-card .icon-wrap svg { width: 26px; height: 26px; }
.value-card h3 { font-size: 1.12rem; margin-bottom: 10px; }
.value-card p { color: var(--ink-soft); font-size: 0.95rem; }
.value-card ul { margin-top: 12px; display: flex; flex-direction: column; gap: 8px; }
.value-card ul li { display: flex; gap: 9px; font-size: 0.92rem; color: var(--ink-soft); }
.value-card ul li svg { width: 15px; height: 15px; margin-top: 4px; flex: none; color: var(--amber-dark); }

/* ---------- Facilities gallery ---------- */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 150px;
  gap: 14px;
}
.gallery-item { position: relative; border-radius: var(--radius-md); overflow: hidden; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.gallery-item:hover img { transform: scale(1.08); }
.gallery-item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(29,33,30,0.55), transparent 55%); opacity: 0; transition: opacity 0.25s ease; }
.gallery-item:hover::after { opacity: 1; }
.gallery-item span {
  position: absolute; left: 14px; bottom: 12px; color: #fff;
  font-family: var(--ff-head); font-size: 0.86rem; font-weight: 600;
  opacity: 0; transform: translateY(6px); transition: opacity 0.25s ease, transform 0.25s ease;
}
.gallery-item:hover span { opacity: 1; transform: translateY(0); }
.gallery-item.span-2-2 { grid-column: span 2; grid-row: span 2; }
.gallery-item.span-2-1 { grid-column: span 2; }
.gallery-item.span-1-2 { grid-row: span 2; }

/* ---------- About split ---------- */
.about-split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.about-media { position: relative; border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-lg); }
.about-media img { width: 100%; aspect-ratio: 4/3.1; object-fit: cover; }
.about-media-badge {
  position: absolute; left: 20px; bottom: -1px;
  background: var(--amber); color: var(--forest-dark);
  padding: 16px 20px; border-radius: var(--radius-md) var(--radius-md) 0 0;
  font-family: var(--ff-head); font-weight: 700; font-size: 0.95rem;
  box-shadow: var(--shadow-md);
}
.about-copy p { color: var(--ink-soft); margin-top: 16px; font-size: 1rem; }
.about-copy p:first-of-type { margin-top: 18px; }
.about-quote {
  margin-top: 26px; padding: 20px 22px; border-left: 3px solid var(--amber);
  background: var(--forest-tint); border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  font-style: italic; color: var(--forest-dark); font-size: 0.98rem;
}

/* ---------- Ownership / stats strip ---------- */
.stats-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.stats-strip .stat { padding: 26px 16px; border-radius: var(--radius-md); background: var(--white); border: 1px solid var(--line); }
.stats-strip .stat-num { font-family: var(--ff-head); font-weight: 700; font-size: 2rem; color: var(--forest); }
.stats-strip .stat-label { margin-top: 6px; font-size: 0.86rem; color: var(--ink-soft); }

/* ---------- Course detail page ---------- */
.course-layout { display: grid; grid-template-columns: 1.6fr 1fr; gap: 48px; align-items: start; }
.course-main h2 { font-size: 1.5rem; margin-top: 40px; }
.course-main h2:first-child { margin-top: 0; }
.course-main p { margin-top: 14px; color: var(--ink-soft); }
.req-list { margin-top: 16px; display: flex; flex-direction: column; gap: 10px; }
.req-list li { display: flex; gap: 12px; font-size: 0.98rem; color: var(--ink-soft); background: var(--white); border: 1px solid var(--line); padding: 14px 16px; border-radius: var(--radius-sm); }
.req-list li svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--forest); }

.rpl-note { margin-top: 14px; color: var(--ink-soft); }
.accordion { margin-top: 18px; display: flex; flex-direction: column; gap: 10px; }
.accordion details {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 4px 4px;
}
.accordion summary {
  cursor: pointer; list-style: none; padding: 16px 18px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-weight: 600; font-size: 0.96rem; color: var(--forest-dark);
}
.accordion summary::-webkit-details-marker { display: none; }
.accordion summary .plus { flex: none; width: 22px; height: 22px; border-radius: 50%; background: var(--forest-tint); display: flex; align-items: center; justify-content: center; transition: transform 0.2s ease, background-color 0.2s ease; }
.accordion details[open] summary .plus { transform: rotate(45deg); background: var(--amber-tint); }
.accordion-body { padding: 0 18px 18px; color: var(--ink-soft); font-size: 0.94rem; }

.course-sidebar { position: sticky; top: calc(var(--nav-h) + 20px); display: flex; flex-direction: column; gap: 18px; }
.sidebar-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; box-shadow: var(--shadow-sm); }
.sidebar-card h3 { font-size: 1.05rem; margin-bottom: 14px; }
.sidebar-fact { display: flex; justify-content: space-between; gap: 10px; padding: 10px 0; border-top: 1px dashed var(--line); font-size: 0.92rem; }
.sidebar-fact:first-of-type { border-top: none; padding-top: 0; }
.sidebar-fact strong { color: var(--forest-dark); }
.sidebar-card.dark { background: var(--forest-dark); color: #eef0ec; border: none; }
.sidebar-card.dark h3 { color: #fff; }
.sidebar-card.dark p { color: #c8cfc4; font-size: 0.9rem; margin-bottom: 16px; }
.other-courses a {
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  padding: 12px 4px; font-size: 0.92rem; font-weight: 600; color: var(--forest-dark);
  border-top: 1px dashed var(--line);
}
.other-courses a:first-child { border-top: none; }
.other-courses a:hover { color: var(--amber-dark); }

/* ---------- Enquiry / footer ---------- */
.enquiry {
  background: var(--forest-dark);
  color: #eef0ec;
}
.enquiry-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 56px; align-items: start; }
.enquiry h2 { color: #fff; }
.enquiry-copy p { color: #c8cfc4; margin-top: 16px; }
.enquiry-facts { margin-top: 28px; display: flex; flex-direction: column; gap: 14px; }
.enquiry-facts li { display: flex; gap: 12px; align-items: flex-start; font-size: 0.95rem; color: #dfe4dc; }
.enquiry-facts svg { width: 18px; height: 18px; flex: none; color: var(--amber); margin-top: 2px; }
.enquiry-form {
  background: #fff; color: var(--ink); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-lg);
}
.enquiry-form h3 { font-size: 1.2rem; margin-bottom: 6px; }
.enquiry-form .hint { color: var(--ink-soft); font-size: 0.86rem; margin-bottom: 20px; }
.form-row { margin-bottom: 14px; }
.form-row label { display: block; font-size: 0.8rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.03em; color: var(--ink-soft); margin-bottom: 6px; }
.form-control {
  width: 100%; padding: 13px 14px; border-radius: var(--radius-sm); border: 1.5px solid var(--line);
  font: inherit; font-size: 0.96rem; background: var(--paper); transition: border-color 0.15s ease, box-shadow 0.15s ease;
}
.form-control:focus { outline: none; border-color: var(--forest); box-shadow: 0 0 0 3px var(--forest-tint); }
textarea.form-control { resize: vertical; min-height: 88px; }
select.form-control { appearance: none; background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'><path d='M1 1l5 5 5-5' stroke='%234b544d' stroke-width='1.6' fill='none' fill-rule='evenodd'/></svg>"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }

/* map */
.map-wrap { border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow-md); border: 1px solid var(--line); }
.map-wrap iframe { width: 100%; height: 380px; border: 0; display: block; }

/* footer bottom */
.footer-bottom {
  background: #1a1f1b; color: #93998f; font-size: 0.84rem; padding: 22px 0;
}
.footer-bottom .container { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; }
.footer-bottom a:hover { color: var(--amber); }
.footer-brand { display: flex; align-items: center; gap: 10px; }
.footer-brand img { height: 22px; }
.footer-credit { display: flex; align-items: center; gap: 6px; }
.footer-credit img { height: 16px; }

/* accreditation chip in footer copy */
.accred-chip {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 18px;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.14);
  padding: 10px 16px; border-radius: 999px; font-size: 0.82rem; color: #dfe4dc;
}
.accred-chip img { height: 26px; background: #fff; border-radius: 6px; padding: 3px; }

/* ---------- Booking modal ---------- */
.modal-overlay {
  position: fixed; inset: 0; background: rgba(20, 24, 20, 0.6); backdrop-filter: blur(3px);
  display: flex; align-items: center; justify-content: center; padding: 24px;
  opacity: 0; visibility: hidden; transition: opacity 0.22s ease, visibility 0.22s;
  z-index: 500;
}
.modal-overlay.is-open { opacity: 1; visibility: visible; }
.modal-card {
  background: #fff; width: min(560px, 100%); max-height: 88vh; overflow-y: auto;
  border-radius: var(--radius-lg); padding: 34px; position: relative; box-shadow: var(--shadow-lg);
  transform: translateY(18px) scale(0.98); transition: transform 0.25s ease;
}
.modal-overlay.is-open .modal-card { transform: translateY(0) scale(1); }
.modal-card h2 { font-size: 1.4rem; }
.modal-card .hint { color: var(--ink-soft); font-size: 0.9rem; margin-top: 6px; margin-bottom: 22px; }
.modal-close {
  position: absolute; top: 18px; right: 18px; width: 34px; height: 34px; border-radius: 50%;
  background: var(--paper-2); border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
}
.modal-close svg { width: 14px; height: 14px; }
.modal-close:hover { background: var(--forest-tint); }
.form-grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 14px; }

/* ---------- Reveal-on-scroll ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.is-visible { opacity: 1; transform: translateY(0); }

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0 !important; }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .about-split { grid-template-columns: 1fr; }
  .about-media { order: -1; }
  .course-layout { grid-template-columns: 1fr; }
  .course-sidebar { position: static; }
  .gallery-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 170px; }
  .gallery-item.span-2-2, .gallery-item.span-2-1 { grid-column: span 2; }
  .enquiry-grid { grid-template-columns: 1fr; }
}
@media (max-width: 900px) {
  .grid-3, .grid-values, .grid-topics { grid-template-columns: 1fr 1fr; }
  .hero-stats { grid-template-columns: repeat(2, auto); }
  .stats-strip { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  :root { --nav-h: 64px; }
  .topbar { display: none; }
  .navbar-inner { padding: 10px 20px; }
  .brand img { height: 34px; }
  .qcto-badge { display: none; }
  .nav-toggle { display: flex; }
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0; bottom: 0;
    background: var(--paper); flex-direction: column; align-items: stretch; gap: 4px;
    padding: 18px; overflow-y: auto;
    transform: translateX(100%); transition: transform 0.28s ease;
  }
  .nav-links.is-open { transform: translateX(0); }
  .nav-links > a, .nav-dropdown-toggle { width: 100%; padding: 14px 12px; font-size: 1.05rem; justify-content: space-between; }
  /* Higher-specificity ".nav-dropdown.is-open .nav-dropdown-menu" rule above
     (desktop) still wins on transform/opacity/visibility by specificity even
     inside this media query, so it must be repeated here to actually reset it. */
  .nav-dropdown-menu, .nav-dropdown.is-open .nav-dropdown-menu {
    position: static; transform: none; opacity: 1; visibility: visible;
    box-shadow: none; border: none; padding: 0; min-width: 0;
  }
  .nav-dropdown-menu { max-height: 0; overflow: hidden; transition: max-height 0.25s ease; }
  .nav-dropdown.is-open .nav-dropdown-menu { max-height: 220px; padding: 4px 0 8px 12px; }
  .navbar-actions .btn-primary { display: none; }
  .hero { min-height: auto; }
  .hero-inner { padding: 54px 0 50px; }
  .hero-stats { grid-template-columns: repeat(2, auto); gap: 26px 34px; }
  .grid-3, .grid-values, .grid-topics, .stats-strip { grid-template-columns: 1fr; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-auto-rows: 140px; }
  section { padding: 60px 0; }
  .form-grid-2 { grid-template-columns: 1fr; }
  .footer-bottom .container { flex-direction: column; text-align: center; }
  .page-hero { padding: 116px 0 48px; }
}
