:root {
  --navy: #1a3351;
  --navy-deep: #14283f;
  --navy-soft: #1e3a5f;
  --bg: #f0f4f8;
  --bg-soft: #e8eef5;
  --card: #ffffff;
  --accent-gold: #c9a227;
  --accent-gold-bright: #e6b422;
  --success: #28a745;
  --text: #1a3351;
  --text-muted: #5a6b7d;
  --border: #d0dbe8;
  --pill-bg: #e1ebf5;
  --radius: 14px;
  --radius-sm: 10px;
  --shadow: 0 4px 18px rgba(26, 51, 81, 0.08);
  --font: "Source Sans 3", "Segoe UI", "Helvetica Neue", sans-serif;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
}

a {
  color: var(--navy);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

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

.page {
  max-width: 1100px;
  margin: 0 auto;
  padding: 24px 20px 40px;
}

/* —— Top bar —— */
.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(240, 244, 248, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(208, 219, 232, 0.7);
}

.topbar-inner,
.site-header {
  max-width: 1100px;
  margin: 0 auto;
  padding: 12px 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px 20px;
}

.site-header {
  margin-bottom: 14px;
  padding: 0;
}

.header-left {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 18px;
}

.page-nav {
  display: flex;
  gap: 14px;
}

.page-nav a {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
}

.page-nav a:hover {
  color: var(--accent-gold);
  text-decoration: none;
}

.page-nav a[aria-current="page"] {
  color: var(--accent-gold);
  text-decoration: none;
  box-shadow: inset 0 -2px 0 var(--accent-gold);
}

/* —— Hero —— */
.hero {
  position: relative;
  min-height: min(72vh, 620px);
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  background: var(--navy-deep);
}

.hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 35%;
  animation: heroZoom 18s ease-out forwards;
}

@keyframes heroZoom {
  from {
    transform: scale(1.06);
  }
  to {
    transform: scale(1);
  }
}

.hero-veil {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(105deg, rgba(20, 40, 63, 0.88) 0%, rgba(20, 40, 63, 0.55) 48%, rgba(20, 40, 63, 0.25) 100%),
    linear-gradient(to top, rgba(20, 40, 63, 0.75) 0%, transparent 45%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1100px;
  width: 100%;
  margin: 0 auto;
  padding: 48px 20px 52px;
  color: #fff;
  animation: heroRise 0.9s ease-out both;
}

@keyframes heroRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-brand {
  margin: 0 0 10px;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 800;
  letter-spacing: 0.04em;
  line-height: 1;
}

.hero-title {
  margin: 0 0 12px;
  font-size: clamp(1.25rem, 2.8vw, 1.85rem);
  font-weight: 600;
  max-width: 18ch;
  line-height: 1.25;
}

.hero-lead {
  margin: 0 0 22px;
  font-size: 1.05rem;
  max-width: 36ch;
  color: rgba(255, 255, 255, 0.88);
}

.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.btn-hero {
  min-width: 160px;
}

.btn-ghost {
  background: transparent;
  color: #fff;
  border-color: rgba(255, 255, 255, 0.65);
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}

/* —— About —— */
.about-section {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 28px 36px;
  align-items: center;
  margin: 8px 0 40px;
  padding: 8px 0 8px;
  animation: sectionFade 0.8s ease-out both;
  animation-delay: 0.15s;
}

@keyframes sectionFade {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.about-media {
  display: grid;
  grid-template-columns: 1.3fr 0.9fr;
  gap: 10px;
}

.about-media > img {
  width: 100%;
  height: 100%;
  min-height: 320px;
  object-fit: cover;
  border-radius: var(--radius);
  grid-row: 1 / 3;
}

.about-media-stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.about-media-stack img {
  width: 100%;
  height: 155px;
  object-fit: cover;
  border-radius: var(--radius-sm);
  flex: 1;
}

.section-kicker {
  margin: 0 0 8px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.about-copy h2 {
  margin: 0 0 10px;
  font-size: clamp(1.35rem, 2.4vw, 1.75rem);
  color: var(--navy);
  line-height: 1.25;
}

.about-zh {
  margin: 0 0 12px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.about-copy > p {
  margin: 0 0 16px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.about-points {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.about-points li {
  padding-left: 14px;
  border-left: 3px solid var(--accent-gold);
}

.about-points strong {
  display: block;
  font-size: 0.88rem;
  color: var(--navy);
}

.about-points span {
  font-size: 0.82rem;
  color: var(--text-muted);
}

.btn-inline {
  width: auto;
  display: inline-flex;
}

.programmes-section,
.gallery-section {
  margin-bottom: 36px;
  scroll-margin-top: 72px;
}

.about-section {
  scroll-margin-top: 72px;
}

.section-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-title svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

/* —— Gallery —— */
.gallery-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 12px;
}

.gallery-item {
  margin: 0;
  position: relative;
  overflow: hidden;
  border-radius: var(--radius);
  background: var(--navy-deep);
}

.gallery-item img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.gallery-wide img {
  height: 220px;
}

.gallery-item:hover img {
  transform: scale(1.04);
}

.gallery-item figcaption {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 28px 14px 12px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #fff;
  background: linear-gradient(to top, rgba(20, 40, 63, 0.85), transparent);
}

.logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 0.95rem;
  letter-spacing: 0.02em;
  padding: 8px 18px;
  border-radius: 999px;
  text-decoration: none;
  white-space: nowrap;
}

.logo:hover {
  text-decoration: none;
  background: var(--navy-deep);
}

.site-links {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 18px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-links a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--navy);
  text-decoration: none;
}

.site-links a:hover {
  text-decoration: underline;
}

.site-links svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: 0.75;
}

.bank-box {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  border: 1.5px solid var(--accent-gold);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  background: #fffef8;
  font-size: 0.78rem;
  line-height: 1.35;
  max-width: 280px;
}

.bank-box svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-gold);
}

.bank-box .en {
  font-weight: 600;
  color: var(--navy);
}

.bank-box .zh {
  color: var(--text-muted);
  font-size: 0.72rem;
}

/* —— Banners —— */
.tquk-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 16px;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-sm);
  padding: 10px 16px;
  margin-bottom: 12px;
  font-size: 0.82rem;
}

.tquk-banner .banner-left {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.tquk-banner .star {
  color: var(--accent-gold-bright);
  flex-shrink: 0;
  margin-top: 2px;
}

.tquk-banner .zh {
  display: block;
  font-size: 0.75rem;
  opacity: 0.85;
  margin-top: 2px;
}

.tquk-banner a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--accent-gold-bright);
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
}

.tquk-banner a:hover {
  text-decoration: underline;
}

.info-bar {
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 28px;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.info-bar ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px 24px;
}

.info-bar li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.info-bar li svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
  color: var(--navy);
  opacity: 0.7;
}

.info-bar .zh {
  display: block;
  font-size: 0.72rem;
  color: #7a8a9a;
}

/* —— Section title —— */
.section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

.section-head h1,
.section-head .section-title {
  margin: 0;
  font-size: clamp(1.35rem, 2.5vw, 1.75rem);
  color: var(--navy);
  display: flex;
  align-items: center;
  gap: 10px;
}

.section-head h1 svg,
.section-head .section-title svg {
  width: 26px;
  height: 26px;
  flex-shrink: 0;
}

.badge-pill {
  display: inline-block;
  background: var(--pill-bg);
  color: var(--navy);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.section-intro {
  margin: 0 0 22px;
  font-size: 0.85rem;
  color: var(--text-muted);
  max-width: 720px;
}

/* —— Programme grid —— */
.programme-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin-bottom: 28px;
}

.programme-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 0 0 16px;
  display: flex;
  flex-direction: column;
  border: 1px solid rgba(208, 219, 232, 0.6);
  overflow: hidden;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.programme-card:hover {
  box-shadow: 0 8px 24px rgba(26, 51, 81, 0.12);
  transform: translateY(-2px);
}

.card-cover {
  position: relative;
  height: 140px;
  overflow: hidden;
  background: var(--navy-deep);
}

.card-cover img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.programme-card:hover .card-cover img {
  transform: scale(1.05);
}

.card-body {
  padding: 14px 18px 0;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.68rem;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 4px;
  letter-spacing: 0.01em;
}

.tag-code {
  background: var(--navy);
  color: #fff;
}

.tag-tquk {
  background: var(--accent-gold-bright);
  color: var(--navy-deep);
}

.programme-card h2 {
  margin: 0 0 10px;
  font-size: 1.05rem;
  line-height: 1.3;
  color: var(--navy);
}

.cert-pill {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--pill-bg);
  border-radius: 999px;
  padding: 7px 12px;
  font-size: 0.72rem;
  color: var(--navy);
  margin-bottom: 12px;
}

.cert-pill svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.card-meta {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.card-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
}

.card-meta svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  color: var(--navy);
  opacity: 0.65;
}

.card-price {
  font-size: 1.25rem;
  font-weight: 750;
  color: var(--navy);
  margin: 0 0 12px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 0.88rem;
  font-weight: 600;
  border-radius: 999px;
  cursor: pointer;
  border: 1.5px solid var(--navy);
  padding: 10px 18px;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.btn svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.btn-outline {
  background: #fff;
  color: var(--navy);
  width: 100%;
}

.card-body .btn-outline {
  margin-top: auto;
}

.btn-outline:hover {
  background: var(--pill-bg);
}

.btn-primary {
  background: var(--navy);
  color: #fff;
  border-color: var(--navy);
}

.btn-primary:hover {
  background: var(--navy-deep);
}

.btn-primary:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

a.btn {
  text-decoration: none;
}

a.btn:hover {
  text-decoration: none;
}

body.modal-open {
  overflow: hidden;
}

.card-deposit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: 10px;
  font-size: 0.72rem;
  color: var(--text-muted);
}

.card-deposit svg {
  width: 12px;
  height: 12px;
}

/* —— Footer —— */
.summary-bar {
  background: var(--pill-bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 16px;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
  margin-bottom: 16px;
  line-height: 1.55;
}

.site-footer {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  padding: 8px 0 20px;
}

.site-footer a {
  color: var(--navy);
}

/* —— Modal —— */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(20, 40, 63, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  z-index: 1000;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.2s ease, visibility 0.2s ease;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-overlay.is-open {
  opacity: 1;
  visibility: visible;
}

.modal {
  background: #fff;
  border-radius: var(--radius);
  box-shadow: 0 16px 48px rgba(26, 51, 81, 0.25);
  width: 100%;
  max-width: 440px;
  padding: 24px 24px 20px;
  position: relative;
  transform: translateY(8px);
  transition: transform 0.2s ease;
}

.modal-overlay.is-open .modal {
  transform: translateY(0);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 14px;
  background: none;
  border: none;
  font-size: 1.4rem;
  line-height: 1;
  color: var(--text-muted);
  cursor: pointer;
  padding: 4px 8px;
}

.modal-close:hover {
  color: var(--navy);
}

.modal h2 {
  margin: 0 0 6px;
  font-size: 1.2rem;
  color: var(--navy);
  padding-right: 28px;
}

.modal-programme {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 14px 0 18px;
  font-size: 0.85rem;
}

.modal-programme .title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 4px;
}

.modal-programme .fee {
  color: var(--text-muted);
}

.modal-programme .bank-hint {
  margin-top: 8px;
  font-size: 0.75rem;
  color: var(--text-muted);
  border-top: 1px solid var(--border);
  padding-top: 8px;
}

.form-group {
  margin-bottom: 14px;
}

.form-group label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  margin-bottom: 5px;
  color: var(--navy);
}

.form-group input {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  transition: border-color 0.15s ease;
}

.form-group input:focus {
  border-color: var(--navy);
}

.form-group textarea {
  width: 100%;
  font-family: inherit;
  font-size: 0.9rem;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  outline: none;
  resize: vertical;
  min-height: 88px;
  transition: border-color 0.15s ease;
}

.form-group textarea:focus {
  border-color: var(--navy);
}

.form-error {
  color: #c0392b;
  font-size: 0.75rem;
  margin-top: 4px;
  min-height: 1.1em;
}

.req {
  color: #c0392b;
}

/* —— Enrolment page —— */
.enrol-page .page {
  max-width: 1100px;
}

.enrol-back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--navy);
  text-decoration: none;
  margin: 0 0 16px;
}

.enrol-back svg {
  width: 18px;
  height: 18px;
}

.enrol-back:hover {
  color: var(--accent-gold);
  text-decoration: none;
}

.enrol-course {
  background: linear-gradient(135deg, #e8eef5 0%, #dce6f1 100%);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: 22px;
}

.enrol-course-badge {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.enrol-course h1 {
  margin: 0 0 8px;
  font-size: clamp(1.25rem, 2.4vw, 1.65rem);
  color: var(--navy);
  line-height: 1.25;
}

.enrol-course-meta {
  margin: 0 0 6px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--navy-soft);
}

.enrol-course-note {
  margin: 0;
  font-size: 0.82rem;
  color: var(--text-muted);
}

.enrol-layout {
  display: grid;
  grid-template-columns: 1.35fr 0.9fr;
  gap: 20px;
  align-items: start;
  margin-bottom: 32px;
}

.enrol-panel {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 22px 22px 20px;
}

.enrol-panel-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px 16px;
  margin-bottom: 18px;
}

.enrol-panel-head h2 {
  margin: 0;
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.15rem;
  color: var(--navy);
}

.enrol-panel-head h2 svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.enrol-required-hint {
  margin: 0;
  font-size: 0.78rem;
  color: var(--text-muted);
}

.enrol-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px 16px;
}

.enrol-grid-pay {
  gap: 4px 12px;
}

.enrol-bank-box {
  margin-top: 8px;
  margin-bottom: 16px;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  background: var(--bg);
}

.enrol-bank-box h3 {
  margin: 0 0 10px;
  font-size: 0.88rem;
  color: var(--navy);
}

.enrol-bank-box ul {
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 0.84rem;
  color: var(--text);
}

.enrol-bank-box li {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 12px;
  margin-bottom: 6px;
}

.enrol-bank-box li strong {
  min-width: 110px;
  color: var(--text-muted);
  font-weight: 600;
}

.enrol-bank-ref {
  margin: 10px 0 0;
  font-size: 0.8rem;
  color: var(--navy);
}

.enrol-card-brands {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.card-brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 58px;
  height: 28px;
  padding: 0 10px;
  border-radius: 6px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  color: #fff;
}

.card-brand.visa {
  background: #1a1f71;
}

.card-brand.mc {
  background: #eb001b;
}

.card-brand.amex {
  background: #2e77bc;
}

.enrol-cert-note {
  margin: 0;
  background: var(--pill-bg);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
  font-size: 0.78rem;
  color: var(--navy);
  line-height: 1.45;
}

.enrol-fee-summary {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin: 8px 0 16px;
}

.fee-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  font-size: 0.88rem;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.fee-row:last-child {
  margin-bottom: 0;
}

.fee-total {
  font-size: 1.05rem;
  font-weight: 750;
  color: var(--navy);
  border-top: 1px solid var(--border);
  padding-top: 8px;
  margin-top: 4px;
}

.btn-enrol-pay {
  width: 100%;
  border-radius: 10px;
  padding: 14px 18px;
  font-size: 0.95rem;
}

.enrol-secure-note {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin: 12px 0 0;
  font-size: 0.75rem;
  color: var(--text-muted);
  text-align: center;
}

.enrol-secure-note svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: var(--success);
}

.enrol-loading {
  text-align: center;
  margin-top: 16px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.enrol-loading[hidden] {
  display: none !important;
}

.enrol-loading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.88rem;
}

.modal-actions {
  display: flex;
  gap: 10px;
  margin-top: 8px;
}

.modal-actions .btn {
  flex: 1;
}

.modal-loading {
  display: none;
  text-align: center;
  padding: 28px 12px;
}

.modal-loading.is-active {
  display: block;
}

.modal-form.is-hidden {
  display: none;
}

.spinner {
  width: 36px;
  height: 36px;
  border: 3px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  margin: 0 auto 14px;
  animation: spin 0.7s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

.modal-loading p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* —— Payment completed —— */
.receipt-page .page {
  max-width: 860px;
}

.receipt-card {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 36px 32px 28px;
  text-align: center;
  margin-top: 8px;
  margin-bottom: 24px;
}

.success-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--success);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 14px;
}

.success-icon svg {
  width: 28px;
  height: 28px;
  color: #fff;
}

.receipt-card h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 3vw, 1.7rem);
  color: var(--navy);
}

.receipt-thanks {
  margin: 0 0 22px;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.receipt-box {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 18px 20px;
  text-align: left;
  font-size: 0.88rem;
  margin-bottom: 24px;
}

.receipt-box .user-line {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 10px;
}

.receipt-box .detail {
  margin-bottom: 10px;
  color: var(--text);
  line-height: 1.45;
}

.receipt-box .detail .zh {
  display: block;
  font-size: 0.78rem;
  color: var(--text-muted);
  margin-top: 2px;
}

.receipt-box .star-note {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 10px;
  color: var(--text);
}

.receipt-box .star-note svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  color: var(--accent-gold);
}

.receipt-box .time-line {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--text-muted);
  font-size: 0.85rem;
}

.receipt-box .time-line svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  margin-top: 3px;
}

.receipt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
}

.receipt-actions .btn {
  min-width: 200px;
}

.receipt-footnote {
  text-align: center;
  font-size: 0.72rem;
  color: var(--text-muted);
  margin-top: 8px;
}

.receipt-footnote a {
  color: var(--navy);
}

/* —— Responsive —— */
@media (max-width: 900px) {
  .programme-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .info-bar ul {
    grid-template-columns: 1fr;
  }

  .about-section {
    grid-template-columns: 1fr;
  }

  .about-media > img {
    min-height: 240px;
  }

  .gallery-grid {
    grid-template-columns: 1fr 1fr;
  }

  .gallery-wide {
    grid-column: 1 / -1;
  }

  .site-links {
    display: none;
  }

  .enrol-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 600px) {
  .page {
    padding: 14px 14px 32px;
  }

  .programme-grid {
    grid-template-columns: 1fr;
  }

  .bank-box {
    max-width: 100%;
    width: 100%;
  }

  .topbar-inner,
  .site-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .hero {
    min-height: 70vh;
  }

  .hero-content {
    padding: 36px 16px 40px;
  }

  .about-media {
    grid-template-columns: 1fr;
  }

  .about-media > img {
    grid-row: auto;
    min-height: 200px;
  }

  .about-media-stack {
    flex-direction: row;
  }

  .about-media-stack img {
    height: 120px;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
  }

  .receipt-card {
    padding: 28px 18px 22px;
  }

  .receipt-actions .btn {
    width: 100%;
    min-width: 0;
  }

  .modal-actions {
    flex-direction: column;
  }

  .enrol-grid,
  .enrol-grid-pay {
    grid-template-columns: 1fr;
  }

  .enrol-course {
    padding: 18px 16px;
  }

  .enrol-panel {
    padding: 18px 16px;
  }

  .enrol-bank-box li strong {
    min-width: 0;
    width: 100%;
  }
}

/* —— Print —— */
@media print {
  body {
    background: #fff;
  }

  .site-header,
  .topbar,
  .hero,
  .tquk-banner,
  .info-bar,
  .about-section,
  .gallery-section,
  .receipt-actions,
  .modal-overlay {
    display: none !important;
  }

  .receipt-card {
    box-shadow: none;
    border: 1px solid #ccc;
  }

  .page {
    max-width: none;
    padding: 0;
  }
}
