/* Nihao Learners 好學漢語 — light, cheerful, friendly */
:root {
  --yellow: #F6D46B;
  --lav: #D4C2EF;
  --off: #F5F7EE;
  --white: #ffffff;
  --purple: #72559F;
  --ink: #0E1318;
  --muted: #3B3F46;
  --radius: 24px;
  --wrap: 1160px;
  --stroke: 2.5px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --font: "Hanken Grotesk", "Noto Sans TC", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "PingFang TC", "Microsoft JhengHei", sans-serif;
  --blob-a: 58% 42% 55% 45% / 48% 58% 42% 52%;
  --blob-b: 45% 55% 40% 60% / 55% 45% 55% 45%;
  --blob-c: 52% 48% 62% 38% / 42% 52% 48% 58%;
  /* signature motif: ●──────── */
  --dotline: radial-gradient(circle, var(--ink) 5px, transparent 5.6px) left center / 12px 12px no-repeat,
             linear-gradient(var(--ink), var(--ink)) left center / 100% 2px no-repeat;
}

[hidden] { display: none !important; }
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body {
  margin: 0;
  background: var(--off);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17.5px;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { max-width: 100%; display: block; }
svg { max-width: 100%; }
a { color: var(--ink); text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-style: wavy; text-decoration-color: var(--purple); }
h1, h2, h3 { font-weight: 800; line-height: 1.1; margin: 0 0 .5em; letter-spacing: -.02em; }
h1 { font-size: clamp(2.4rem, 5.6vw, 4.1rem); }
h2 { font-size: clamp(1.85rem, 3.6vw, 2.7rem); }
h3 { font-size: 1.22rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0 0 1em; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; position: relative; z-index: 1; }
section { padding: 92px 0; position: relative; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.lead { font-size: 1.18rem; color: var(--muted); max-width: 58ch; }

/* Colour blocks */
.bg-yellow { background: var(--yellow); }
.bg-lav { background: var(--lav); }
.bg-off { background: var(--off); }
.bg-white { background: var(--white); }

/* Wavy divider: the section's own colour rises into the block above */
.wave { position: relative; }
.wave::before {
  content: ""; position: absolute; left: 0; right: 0; top: -47px; height: 48px;
  background: inherit; pointer-events: none;
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V26C180 4 360 4 540 22S900 46 1080 24 1320 2 1440 14V48Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
          mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 48' preserveAspectRatio='none'%3E%3Cpath d='M0 48V26C180 4 360 4 540 22S900 46 1080 24 1320 2 1440 14V48Z'/%3E%3C/svg%3E") 0 0 / 100% 100% no-repeat;
}

/* Little doodles in section corners */
.doodle-stars::after, .doodle-squiggle::after, .doodle-q::after {
  content: ""; position: absolute; top: 26px; right: 5%; z-index: 0; pointer-events: none;
  background: center / contain no-repeat;
}
.doodle-stars::after {
  width: 120px; height: 90px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 90'%3E%3Cpath d='M30 12Q33 27 48 30Q33 33 30 48Q27 33 12 30Q27 27 30 12Z' fill='%2372559F'/%3E%3Cpath d='M92 50Q93.6 60.4 104 62Q93.6 63.6 92 74Q90.4 63.6 80 62Q90.4 60.4 92 50Z' fill='%230E1318'/%3E%3Ccircle cx='84' cy='20' r='6' fill='none' stroke='%230E1318' stroke-width='3'/%3E%3C/svg%3E");
}
.doodle-squiggle::after {
  width: 140px; height: 60px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 140 60'%3E%3Cpath d='M6 30c14-24 28 24 42 0s28 24 42 0 28 24 42 0' fill='none' stroke='%2372559F' stroke-width='5' stroke-linecap='round'/%3E%3C/svg%3E");
}
.doodle-q::after {
  width: 90px; height: 80px; transform: rotate(8deg);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 90 80'%3E%3Cg fill='none' stroke='%230E1318' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M45 8c22 0 38 12 38 28S67 64 45 64c-5 0-10-1-14-2l-16 10 4-15C11 52 7 45 7 36 7 20 23 8 45 8Z' fill='%23F6D46B'/%3E%3Cpath d='M36 29q0-11 10-11t10 9c0 8-10 8-10 15'/%3E%3C/g%3E%3Ccircle cx='46' cy='51' r='3' fill='%230E1318'/%3E%3C/svg%3E");
}

/* Eyebrow with the dot-and-line motif */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 800;
  margin-bottom: 1em;
}
.eyebrow::before { content: ""; flex: none; width: 36px; height: 12px; background: var(--dotline); }

.skip { position: absolute; left: -999px; top: 8px; z-index: 100; }
.skip:focus { left: 12px; background: #fff; padding: 8px 14px; border: var(--stroke); border-radius: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 15px 28px; border-radius: 999px; border: var(--stroke);
  background: var(--ink); color: #fff; font: inherit; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; text-align: center; cursor: pointer;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease;
}
.btn:hover { color: #fff; text-decoration: none; transform: translateY(-3px); box-shadow: 0 5px 0 var(--purple); }
.btn:active { transform: translateY(0); box-shadow: none; }
.btn.ghost { background: transparent; color: var(--ink); }
.btn.ghost:hover { background: #fff; color: var(--ink); box-shadow: 0 5px 0 var(--ink); }
.btn.small { padding: 10px 20px; font-size: .94rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

:focus-visible { outline: 3px solid var(--ink); outline-offset: 3px; }
.announce :focus-visible, .site-footer :focus-visible { outline-color: var(--yellow); }

/* Announcement bar */
.announce { background: var(--ink); color: #fff; font-size: .93rem; text-align: center; padding: 10px 16px; }
.announce a { color: var(--yellow); font-weight: 700; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 50; background: var(--off); border-bottom: var(--stroke); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; position: static; }
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); font-weight: 800; font-size: 1.18rem; letter-spacing: -.01em; white-space: nowrap; }
.brand:hover { text-decoration: none; }
.brand small { font-weight: 500; color: var(--muted); font-size: .88rem; }
.seal {
  display: grid; place-items: center; width: 42px; height: 42px; flex: none;
  background: var(--yellow); border: var(--stroke); border-radius: var(--blob-a);
  font-size: 1.2rem; font-weight: 700; transform: rotate(-8deg); transition: transform .25s ease;
}
.brand:hover .seal { transform: rotate(6deg) scale(1.06); }
.nav { display: flex; align-items: center; gap: 26px; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: .98rem; }
.nav a:not(.btn):hover { text-decoration: underline wavy var(--purple); text-decoration-thickness: 2px; text-underline-offset: 6px; }
.menu-btn { display: none; background: #fff; color: var(--ink); border: var(--stroke); border-radius: 12px; padding: 6px 13px; font-size: 1.1rem; cursor: pointer; }

/* Hero */
.hero { padding: 64px 0 120px; }
.hero .wrap { display: grid; grid-template-columns: 1.08fr .92fr; gap: 40px; align-items: center; }
.hero h1 em {
  font-style: normal; white-space: nowrap; padding-bottom: .1em;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 200 20' preserveAspectRatio='none'%3E%3Cpath d='M3 12q12-9 24 0t24 0 24 0 24 0 24 0 24 0 24 0 24 0' fill='none' stroke='%2372559F' stroke-width='4' stroke-linecap='round'/%3E%3C/svg%3E") left bottom / 100% .3em no-repeat;
}
.hero-art { position: relative; }
.hero-art picture { display: block; }
.hello-bubble { position: absolute; top: 2%; left: 0; width: 24%; height: auto; animation: bob 5s ease-in-out infinite; }
.trust { display: flex; flex-wrap: wrap; gap: 10px; margin: 30px 0 0; padding: 0; list-style: none; font-size: .92rem; font-weight: 600; }
.trust li { display: flex; align-items: center; gap: 8px; background: #fff; border: var(--stroke); border-radius: 999px; padding: 6px 14px 6px 8px; line-height: 1.3; }
.trust li::before { content: "✓"; flex: none; display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--lav); font-size: .75rem; font-weight: 800; }
.trust li:nth-child(2) { transform: rotate(-1.2deg); }
.trust li:nth-child(3) { transform: rotate(1deg); }

/* Gentle floating for the speech bubble */
@keyframes bob { 50% { transform: translateY(-6px) rotate(2deg); } }

/* Cards */
.grid { display: grid; gap: 22px; }
.grid.c4 { grid-template-columns: repeat(4, 1fr); }
.grid.c3 { grid-template-columns: repeat(3, 1fr); }
.grid.c2 { grid-template-columns: repeat(2, 1fr); }
.card { background: #fff; border: var(--stroke); border-radius: var(--radius); padding: 28px 24px; transition: transform .2s ease, box-shadow .2s ease; }
.card p { color: var(--muted); margin: 0; font-size: .98rem; }
.card h3::before, .topic h3::before {
  content: ""; display: block; height: 12px; max-width: 150px; margin-bottom: 16px; background: var(--dotline);
}
#lessons .grid:not(.features) .card:hover { transform: translateY(-5px) rotate(-.4deg); box-shadow: var(--shadow); }
/* Spot illustration at the top of each "What I teach" card */
.card-art { height: 150px; margin: -6px 0 18px; display: flex; align-items: flex-end; justify-content: center; }
.card-art picture { display: block; height: 100%; }
.card-art img { height: 100%; width: auto; max-width: 100%; object-fit: contain; transition: transform .25s ease; }
.card:hover .card-art img { transform: rotate(-2deg) scale(1.04); }
/* Second row: plain feature items like the old site */
.features .card { background: transparent; border: 0; padding: 8px 4px 0; }

/* Featured course (home) */
.feature {
  display: grid; grid-template-columns: 1.25fr .75fr; gap: 44px; align-items: center;
  background: #fff; border: var(--stroke); border-radius: 36px; padding: 52px; box-shadow: 8px 8px 0 var(--ink);
}
.feature > div > p:not(.eyebrow) { color: var(--muted); }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 10px; }
.facts li { display: flex; gap: 12px; align-items: baseline; flex-wrap: wrap; }
.facts b { flex: none; min-width: 104px; background: var(--lav); border-radius: 999px; padding: 2px 12px; font-size: .84rem; font-weight: 700; text-align: center; }

/* Price box + sticker tag */
.price-box { position: relative; background: var(--yellow); border: var(--stroke); border-radius: 28px; padding: 44px 26px 26px; text-align: center; }
.course-hero .price-box { background: #fff; box-shadow: var(--shadow); }
.price-box .tag { position: absolute; top: -20px; right: -10px; }
.tag {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--purple); color: #fff; border: var(--stroke); border-radius: 999px;
  padding: 7px 15px; font-size: .8rem; font-weight: 800; letter-spacing: .02em; white-space: nowrap;
  transform: rotate(5deg); box-shadow: 3px 3px 0 var(--ink);
}
.tag::before {
  content: ""; width: 13px; height: 13px; flex: none;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0-11Q2-2 11 0Q2 2 0 11Q-2 2-11 0Q-2-2 0-11Z' fill='%23ffffff'/%3E%3C/svg%3E") center / contain no-repeat;
}
.price { font-size: 3.6rem; line-height: 1; font-weight: 800; letter-spacing: -.03em; }
.price s { font-size: 1.3rem; color: var(--muted); font-weight: 500; margin-right: 8px; vertical-align: middle; letter-spacing: 0; }
.price-note { color: var(--muted); font-size: .94rem; margin: 10px 0 20px; }
.price-box .btn { width: 100%; }

/* About + portrait frame */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: 64px; align-items: center; }
.about-card { text-align: center; }
.about-card .name { font-size: 1.45rem; font-weight: 800; letter-spacing: -.01em; }
.portrait { position: relative; width: min(78%, 300px); aspect-ratio: 3 / 4; margin: 20px auto 40px; }
/* lavender skewed, rounded quadrilateral behind the photo */
.portrait::before {
  content: ""; position: absolute; inset: -5% -9%;
  background: var(--lav); border: var(--stroke); border-radius: 40px 72px 36px 78px;
  transform: rotate(-6deg) skew(-6deg);
}
/* the photo itself is clipped to a smaller skewed rounded shape; the img is counter-skewed so it is never distorted */
.portrait > picture, .portrait > img {
  position: relative; display: block; width: 100%; height: 100%; overflow: hidden;
  border: var(--stroke); border-radius: 30px 52px 30px 56px; background: var(--off);
  transform: rotate(2deg) skew(-4deg);
}
.portrait > picture img, .portrait > img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; transform: skew(4deg) scale(1.1); }

/* Off-duty polaroid overlapping the portrait's lower-left corner (clear of her face and the caption) */
.offduty {
  position: absolute; left: -62px; bottom: 7%; z-index: 2; width: 152px;
  background: #fff; border: var(--stroke); border-radius: 10px; padding: 8px 8px 22px;
  box-shadow: 4px 4px 0 var(--ink); transform: rotate(-8deg);
}
.offduty::before { /* strip of tape */
  content: ""; position: absolute; top: -12px; left: 50%; width: 58px; height: 20px; margin-left: -29px;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 3px; transform: rotate(4deg); opacity: .95;
}
/* fixed square crop of roughly x 20–75%, y 20–70% of the 800×886 photo: face kept, café advert pushed out */
.offduty-crop { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: 4px; border: 1.5px solid var(--ink); }
.offduty-crop img { position: absolute; left: -36.4%; top: -40.2%; width: 181.8%; max-width: none; height: auto; }

/* Photo feature: Zhao with young students */
.photo-feature { position: relative; max-width: 760px; margin: 72px auto 24px; }
.photo-feature::before {
  content: ""; position: absolute; inset: -4% -5%; z-index: 0;
  background: var(--yellow); border: var(--stroke); border-radius: 46px 80px 40px 90px; transform: rotate(3deg) skew(4deg);
}
.photo-frame {
  position: relative; z-index: 1; overflow: hidden;
  border: var(--stroke); border-radius: 30px 46px 30px 50px; box-shadow: 8px 8px 0 var(--ink); transform: rotate(-1.5deg);
}
.photo-frame img { width: 100%; height: auto; }
.photo-sticker {
  position: absolute; z-index: 2; right: 6%; bottom: -22px;
  background: var(--purple); color: #fff; border: var(--stroke); border-radius: 999px; box-shadow: 3px 3px 0 var(--ink);
  padding: 9px 18px; font-weight: 800; font-size: .95rem; transform: rotate(4deg);
}
.portrait::after {
  content: ""; position: absolute; top: -18px; right: -26px; width: 44px; height: 44px; transform: rotate(12deg);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-12 -12 24 24'%3E%3Cpath d='M0-11Q2-2 11 0Q2 2 0 11Q-2 2-11 0Q-2-2 0-11Z' fill='%2372559F'/%3E%3C/svg%3E") center / contain no-repeat;
}
.spot-right { float: right; width: 150px; margin: 0 0 12px 24px; }
.spot-right img, .contact-art img, .head-art img, .outcomes-art img, .feature-art img, .hero-art img { width: 100%; height: auto; }
.contact-art { display: block; max-width: 320px; margin-top: 28px; }
.head-art { display: block; width: 100%; max-width: 360px; justify-self: end; }
.outcomes { display: grid; grid-template-columns: 1fr 190px; gap: 32px; align-items: end; }
.outcomes-art { display: block; }
.feature-side { display: grid; gap: 4px; justify-items: center; }
.feature-art { display: block; width: 70%; max-width: 220px; margin: -12px 0 26px -18%; }
.price-box .tag { z-index: 2; }
.feature-side .price-box { width: 100%; }
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 16px; }
.checks li { padding-left: 42px; position: relative; }
.checks li::before {
  content: "✓"; position: absolute; left: 0; top: 0; width: 28px; height: 28px; display: grid; place-items: center;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: var(--blob-a); font-size: .82rem; font-weight: 800;
}
.bg-yellow .checks li::before { background: #fff; }
.checks b { display: block; }
.checks span { color: var(--muted); font-size: .98rem; }

/* Testimonials */
blockquote { position: relative; margin: 0; background: #fff; border: var(--stroke); border-radius: 28px; padding: 38px 30px 26px; transition: transform .2s ease, box-shadow .2s ease; }
blockquote::before {
  content: "“"; position: absolute; top: -26px; left: 24px; width: 52px; height: 52px;
  background: var(--purple); color: #fff; border: var(--stroke); border-radius: 50%;
  font-size: 2.8rem; font-weight: 800; line-height: 1.3; text-align: center;
}
blockquote p { font-size: 1.1rem; font-weight: 500; }
blockquote footer { color: var(--muted); font-size: .92rem; padding-top: 14px; border-top: 2px dashed rgba(14, 19, 24, .25); }
blockquote footer b { display: block; color: var(--ink); font-size: 1rem; }
blockquote footer.has-avatar { display: flex; align-items: center; gap: 14px; }
.avatar {
  flex: none; width: 60px; height: 60px; border-radius: 50%; border: var(--stroke);
  object-fit: cover; object-position: 50% 40%; background: var(--lav);
}
.avatar-initials { display: grid; place-items: center; background: var(--lav); color: var(--ink); font-weight: 800; font-size: 1.1rem; letter-spacing: .04em; }
#reviews blockquote:nth-child(1) { transform: rotate(-1deg); }
#reviews blockquote:nth-child(2) { transform: rotate(1deg); }
#reviews blockquote:hover { transform: rotate(0) translateY(-4px); box-shadow: var(--shadow); }

/* FAQ */
.faq { max-width: 800px; margin: 0 auto; }
details { background: #fff; border: var(--stroke); border-radius: 22px; padding: 0 24px; margin-bottom: 14px; transition: box-shadow .2s ease; }
details[open] { box-shadow: 5px 5px 0 var(--ink); }
summary { cursor: pointer; padding: 20px 0; font-weight: 700; font-size: 1.06rem; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; flex: none; display: grid; place-items: center; width: 32px; height: 32px;
  background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; font-size: 1.2rem; font-weight: 700; line-height: 1;
  transition: transform .2s ease;
}
details[open] summary::after { content: "–"; background: var(--lav); transform: rotate(180deg); }
details p { color: var(--muted); padding-bottom: 20px; margin: 0; }

/* Form */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: start; }
form.enquiry { position: relative; display: grid; gap: 18px; background: #fff; border: var(--stroke); border-radius: 32px; padding: 34px; box-shadow: 8px 8px 0 var(--ink); }
label { font-weight: 700; font-size: .94rem; display: grid; gap: 7px; }
input, select, textarea { font: inherit; font-weight: 400; padding: 13px 16px; border: 2px solid var(--ink); border-radius: 14px; background: var(--off); width: 100%; color: var(--ink); }
input:focus-visible, select:focus-visible, textarea:focus-visible { outline: 3px solid var(--purple); outline-offset: 2px; background: #fff; }
textarea { min-height: 130px; resize: vertical; }
form.enquiry .btn { justify-self: start; }
.form-note { color: var(--muted); font-size: .87rem; margin: 0; }
.form-status { font-weight: 700; margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* Course page */
.crumbs { font-size: .9rem; color: var(--muted); padding-top: 26px; background: var(--yellow); box-shadow: 0 0 0 100vmax var(--yellow); clip-path: inset(0 -100vmax); }
.crumbs a { color: var(--ink); }
.course-hero { padding: 26px 0 110px; }
.course-layout { display: grid; grid-template-columns: 1.4fr .6fr; gap: 52px; align-items: start; }
.sticky { position: sticky; top: 104px; }
.keyfacts { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin: 30px 0 0; padding: 0; list-style: none; }
.keyfacts li { background: #fff; border: var(--stroke); border-radius: 20px; padding: 16px 18px; transition: transform .2s ease, box-shadow .2s ease; }
.keyfacts li:nth-child(3n+2) { background: var(--lav); }
.keyfacts li:nth-child(3n) { background: var(--off); }
.keyfacts li:nth-child(odd) { transform: rotate(-1deg); }
.keyfacts li:nth-child(even) { transform: rotate(1deg); }
.keyfacts li:hover { transform: translateY(-3px); box-shadow: 4px 4px 0 var(--ink); }
.keyfacts small { display: block; color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; }
.keyfacts b { display: block; margin-top: 2px; font-size: 1.06rem; font-weight: 800; line-height: 1.25; }

.section-head { display: grid; grid-template-columns: 1fr 360px; gap: 32px; align-items: center; }
.topics { display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px; }
.topic {
  display: grid; grid-template-columns: 76px 1fr; gap: 20px;
  background: #fff; border: var(--stroke); border-radius: 28px; padding: 26px 26px 26px 22px;
  transition: transform .2s ease, box-shadow .2s ease;
}
.topic:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.topic .num {
  display: grid; place-items: center; width: 72px; height: 70px;
  font-size: 2.5rem; font-weight: 800; line-height: 1;
  background: var(--yellow); border: var(--stroke); border-radius: var(--blob-a); transform: rotate(-6deg);
}
.topic:nth-child(2) .num { background: var(--lav); border-radius: var(--blob-b); transform: rotate(5deg); }
.topic:nth-child(3) .num { background: var(--purple); color: #fff; border-radius: var(--blob-c); transform: rotate(-3deg); }
.topic:nth-child(4) .num { background: var(--off); border-radius: var(--blob-b); transform: rotate(7deg); }
.topic h3 { margin-bottom: .4em; }
.topic .zh { display: inline-block; background: var(--lav); border-radius: 12px; padding: 2px 12px; font-size: 1.1rem; font-weight: 700; margin-bottom: .7em; transform: rotate(-1deg); }
.topic ul { margin: 0; padding-left: 20px; color: var(--muted); font-size: .97rem; }
.topic li::marker { color: var(--purple); }

.dates { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; list-style: none; padding: 0; margin: 34px 0 0; }
.dates li {
  position: relative; overflow: hidden; text-align: center;
  background: #fff; border: var(--stroke); border-radius: 18px; box-shadow: 4px 4px 0 var(--ink);
  transition: transform .2s ease;
}
.dates li::before {
  content: ""; position: absolute; top: 6px; left: 50%; width: 44px; height: 8px; transform: translateX(-50%);
  background: radial-gradient(circle, var(--ink) 3px, transparent 3.6px) 0 0 / 22px 8px repeat-x;
}
.dates small { display: block; background: var(--lav); border-bottom: var(--stroke); padding: 18px 6px 6px; font-size: .8rem; font-weight: 800; text-transform: uppercase; letter-spacing: .12em; }
.dates li:nth-child(n+4) small { background: var(--yellow); }
.dates li:nth-child(n+8) small { background: var(--purple); color: #fff; }
.dates li:nth-child(n+8)::before { background-image: radial-gradient(circle, #fff 3px, transparent 3.6px); }
.dates b { display: block; padding: 14px 0 16px; font-size: 2.3rem; font-weight: 800; line-height: 1; }
.dates li:hover { transform: translateY(-4px) rotate(-2deg); }
.dates li:nth-child(even):hover { transform: translateY(-4px) rotate(2deg); }

.mobile-cta { display: none; }

/* Online payment block in #enrol (only shown when PAYMENT_LINK is set in site.js) */
.pay-box { padding: 30px 26px 24px; margin-bottom: 32px; box-shadow: 8px 8px 0 var(--ink); }
.pay-box .price-note { margin: 14px 0 0; }
form.enquiry .form-title { margin: 0; }

/* Thank-you page */
.thanks-hero { padding: 56px 0 110px; }
ol.steps { list-style: none; margin: 32px 0 0; padding: 0; grid-template-columns: repeat(3, 1fr); }
.steps .topic p { color: var(--muted); margin: 0; font-size: .97rem; }
@media (max-width: 900px) { ol.steps { grid-template-columns: 1fr; } }

/* Footer */
.site-footer { background: var(--ink); color: #d6d9dc; padding: 44px 0; font-size: .94rem; }
.site-footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; }
.site-footer a { color: #fff; }

@media (max-width: 900px) {
  section { padding: 72px 0; }
  .hero { padding: 40px 0 96px; }
  .hero .wrap, .feature, .about, .contact, .course-layout, .section-head { grid-template-columns: 1fr; }
  .hero-art { width: 100%; max-width: 440px; margin: 0 auto; }
  .grid.c4, .grid.c3 { grid-template-columns: repeat(2, 1fr); }
  .topics { grid-template-columns: 1fr; }
  .feature { padding: 38px 26px; box-shadow: 5px 5px 0 var(--ink); }
  .about { gap: 40px; }
  .head-art { justify-self: center; max-width: 320px; }
  .sticky { position: relative; top: auto; }
  .menu-btn { display: block; }
  .nav {
    display: none; position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; align-items: stretch; gap: 4px; padding: 10px 24px 24px;
    background: var(--off); border-bottom: var(--stroke);
  }
  .nav.open { display: flex; }
  .nav a:not(.btn) { padding: 10px 0; border-bottom: 1.5px dashed rgba(14, 19, 24, .25); }
  .nav .btn { margin-top: 12px; }
  .brand small { display: none; }
  .mobile-cta {
    display: flex; position: fixed; bottom: 0; left: 0; right: 0; z-index: 40;
    align-items: center; justify-content: space-between; gap: 12px; padding: 12px 18px;
    background: #fff; border-top: var(--stroke); border-radius: 22px 22px 0 0; box-shadow: 0 -6px 20px rgba(14, 19, 24, .08);
  }
  .mobile-cta b { font-size: 1.45rem; font-weight: 800; line-height: 1.1; }
  .mobile-cta small { display: block; color: var(--muted); font-size: .8rem; }
  body.has-mobile-cta { padding-bottom: 80px; }
}
@media (max-width: 560px) {
  body { font-size: 16.5px; }
  .wrap { padding: 0 20px; }
  section { padding: 64px 0; }
  .wave::before { top: -27px; height: 28px; }
  .grid.c4, .grid.c3, .grid.c2 { grid-template-columns: 1fr; }
  .keyfacts { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .keyfacts li { padding: 14px; }
  .dates { gap: 8px; }
  .dates li { border-radius: 12px; box-shadow: 3px 3px 0 var(--ink); }
  .dates small { font-size: .66rem; letter-spacing: .06em; padding: 16px 2px 4px; }
  .dates li::before { width: 28px; background-size: 14px 8px; }
  .dates b { font-size: 1.55rem; padding: 10px 0 12px; }
  .topic { grid-template-columns: 56px 1fr; gap: 14px; padding: 22px 18px; }
  .topic .num { width: 54px; height: 52px; font-size: 1.9rem; }
  .feature { padding: 32px 20px; }
  form.enquiry { padding: 24px 20px; box-shadow: 5px 5px 0 var(--ink); }
  form.enquiry .btn { justify-self: stretch; }
  .btn-row .btn { width: 100%; }
  .outcomes { grid-template-columns: 1fr; gap: 12px; }
  .outcomes-art { width: 150px; justify-self: center; }
  .spot-right { width: 104px; margin-left: 14px; }
  .contact-art { max-width: 240px; margin-left: auto; margin-right: auto; }
  .card-art { height: 140px; }
  .offduty { width: 104px; left: -30px; bottom: 5%; padding: 6px 6px 16px; }
  .offduty::before { width: 42px; height: 16px; margin-left: -21px; top: -10px; }
  .photo-feature { margin: 56px 6px 30px; }
  .photo-frame { box-shadow: 5px 5px 0 var(--ink); border-radius: 22px 32px 22px 34px; }
  .photo-sticker { right: 4%; bottom: -20px; font-size: .85rem; padding: 7px 14px; max-width: 92%; }
  .price { font-size: 3rem; }
  .doodle-stars::after { display: none; }
  .doodle-squiggle::after { width: 80px; height: 34px; top: 16px; }
  .doodle-q::after { width: 56px; height: 50px; top: 14px; right: 4%; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .btn:hover, .card:hover, #lessons .grid:not(.features) .card:hover, .topic:hover,
  .keyfacts li:hover, .dates li:hover, .dates li:nth-child(even):hover { transform: none; }
}
