/* YMM Art Space Canada — Global Stylesheet */
:root {
  /* Logo-derived palette (logo20.jpg): yellow #f8e90a, red #ce0623, blue #0caaef — no black */
  --purple: #1e3a5f;
  --purple-dark: #152a45;
  --purple-light: #2a5080;
  --teal: #0caaef;
  --teal-dark: #0880b8;
  --gold: #f8e90a;
  --gold-dark: #d4c508;
  --red: #ce0623;
  --white: #ffffff;
  --off-white: #f5f5f8;
  --gray-light: #f0f0f0;
  --gray: #777;
  --dark: #2a2a3a;
  --text: #2a2a3a;
  --shadow: 0 4px 24px rgba(0,0,0,0.10);
  --radius: 12px;
  --radius-sm: 6px;
  --transition: 0.25s ease;
  --font: 'Segoe UI', 'PingFang SC', 'Microsoft YaHei', Arial, sans-serif;
}

/* ── SITE HEADER: YMM-head.jpg with overlaid logo + text + nav ── */
/* Image is 2022×250px.
   Logo (Ymm-Logo2026.jpg, 178×250) at (286,0): left=14.15%, top=0, width=8.8%
   Text at (511,22): left=25.3%, top=8.8%
   Nav at (511,187): left-padding=25.3%, top=74.8% */
.site-header {
  width: 100%;
  position: relative;
  line-height: 0;
  border-bottom: 3px solid var(--gold);
}

/* Logo overlay — injected via CSS, no HTML change needed across pages */
.site-header::before {
  content: '';
  position: absolute;
  left: 14.15%;   /* 286/2022 */
  top: 0;
  width: 8.8%;    /* 178/2022 */
  height: 100%;
  background: url('Ymm-Logo2026.jpg') no-repeat left top / contain;
  z-index: 2;
  pointer-events: none;
}

/* Full-width banner image — displayed 100% without cropping */
.site-header-banner {
  width: 100%;
  display: block;
  height: auto;
  object-fit: fill;
}

/* Text overlay: "YMM Art Space Canada Toronto | 专业青少年美术教育"
   positioned at image coords (511, 22) relative to 2022×250 image */
.site-header-title-overlay {
  position: absolute;
  left: 25.3%;   /* 511/2022 */
  top: 8.8%;     /* 22/250  */
  line-height: 1.3;
  pointer-events: none;
  white-space: nowrap;
}
.site-header-title-overlay .title-main {
  font-size: clamp(0.75rem, 1.8vw, 1.25rem);
  font-weight: 800;
  color: var(--purple);
  letter-spacing: 0.02em;
  display: block;
}
.site-header-title-overlay .title-sub {
  font-size: clamp(0.6rem, 1.1vw, 0.82rem);
  font-weight: 500;
  color: var(--teal);
  display: block;
  margin-top: 2px;
}

/* Nav overlay: full-width strip at y=187/250=74.8% of image height */
.site-header-nav-overlay {
  position: absolute;
  top: 74.8%;    /* 187/250 */
  left: 0; right: 0;
  background: rgba(255,255,255,0.88);
  backdrop-filter: blur(4px);
}
.site-header-nav-overlay nav {
  position: static;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
  border: none;
}
.site-header-nav-overlay .nav-inner { height: 42px; padding: 0 16px 0 14.88%; } /* 14.88% = 301/2022 */
.site-header-nav-overlay .nav-logo { display: none; }
.site-header-nav-overlay .nav-links a {
  color: var(--dark);
  font-size: 0.82rem;
  padding: 4px 8px;
}
.site-header-nav-overlay .nav-links a:hover,
.site-header-nav-overlay .nav-links a.active {
  background: var(--gold);
  color: var(--dark);
  border-radius: var(--radius-sm);
}
.site-header-nav-overlay .lang-btn {
  border-color: var(--teal); color: var(--teal); font-size: 0.78rem; padding: 3px 10px;
}
.site-header-nav-overlay .lang-btn:hover { background: var(--teal); color: var(--white); }
.site-header-nav-overlay .nav-cta {
  background: var(--gold); color: var(--dark); font-size: 0.8rem; padding: 5px 12px;
}
.site-header-nav-overlay .nav-cta:hover { background: var(--gold-dark); }
.site-header-nav-overlay .hamburger span { background: var(--dark); }

/* Keep legacy .site-header-top hidden (used in previous version) */
.site-header-top { display: none; }

/* Spacing after site-header for page content */
.site-header ~ .hero-slider,
.site-header ~ section,
.site-header ~ .page-hero,
.site-header ~ .notice-banner {
  margin-top: 0 !important;
}

/* Mobile: hide desktop overlay nav, show hamburger; text scales down */
@media(max-width:768px) {
  .site-header-title-overlay .title-main { font-size: 0.65rem; }
  .site-header-title-overlay .title-sub { display: none; }
  .site-header-nav-overlay .nav-inner { height: 38px; }
  .site-header-nav-overlay .nav-links { display: none; }
  .site-header-nav-overlay .hamburger { display: flex; }
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--font);
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
}

/* ── LANGUAGE TOGGLE ── */
.lang-zh .en { display: none !important; }
.lang-en .zh { display: none !important; }

/* ── NAV ── */
nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  z-index: 1000;
  box-shadow: 0 2px 16px rgba(92,64,128,0.10);
  border-bottom: 3px solid var(--gold);
}

.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}

.nav-logo { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.nav-logo img { height: 44px; width: auto; }
.nav-logo-text { font-size: 1.05rem; font-weight: 700; color: var(--purple); line-height: 1.2; }
.nav-logo-text span { display: block; font-size: 0.72rem; font-weight: 400; color: var(--teal); }

.nav-links {
  display: flex;
  list-style: none;
  gap: 4px;
  align-items: center;
}

.nav-links a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.88rem;
  padding: 6px 10px;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  font-weight: 500;
  white-space: nowrap;
}

.nav-links a:hover, .nav-links a.active {
  background: var(--off-white);
  color: var(--purple);
}

.nav-right { display: flex; align-items: center; gap: 12px; }

.lang-btn {
  background: none;
  border: 1.5px solid var(--purple);
  color: var(--purple);
  padding: 4px 12px;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.82rem;
  font-weight: 600;
  transition: var(--transition);
}

.lang-btn:hover { background: var(--purple); color: var(--white); }

.nav-cta {
  background: var(--gold);
  color: var(--dark);
  padding: 7px 16px;
  border-radius: 20px;
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 700;
  transition: var(--transition);
  white-space: nowrap;
}
.nav-cta:hover { background: var(--gold-dark); color: var(--dark); transform: translateY(-1px); }

.hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  background: none;
  border: none;
  padding: 4px;
}
.hamburger span {
  width: 24px; height: 2px;
  background: var(--purple);
  border-radius: 2px;
  transition: var(--transition);
  display: block;
}

/* ── HERO ── */
.hero {
  min-height: 92vh;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: linear-gradient(135deg, var(--purple-dark) 0%, var(--purple) 40%, var(--teal) 100%);
  color: var(--white);
  padding: 60px 24px 60px;
  position: relative;
  overflow: hidden;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%; left: -30%;
  width: 700px; height: 700px;
  background: radial-gradient(circle, rgba(233,161,42,0.15) 0%, transparent 70%);
  pointer-events: none;
}

.hero-content { position: relative; z-index: 1; max-width: 800px; }
.hero-tag {
  display: inline-block;
  background: rgba(233,161,42,0.25);
  border: 1px solid var(--gold);
  color: var(--gold);
  padding: 5px 16px;
  border-radius: 20px;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  margin-bottom: 20px;
}

.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 20px;
}
.hero h1 em {
  font-style: normal;
  color: var(--gold);
}

.hero p {
  font-size: clamp(1rem, 2vw, 1.2rem);
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

.hero-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

.btn {
  display: inline-block;
  padding: 13px 30px;
  border-radius: 30px;
  font-weight: 700;
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
  cursor: pointer;
  border: none;
}
.btn-primary { background: var(--gold); color: var(--dark); }
.btn-primary:hover { background: var(--gold-dark); color: var(--dark); transform: translateY(-2px); box-shadow: 0 6px 20px rgba(248,233,10,0.5); }
.btn-outline { background: transparent; color: var(--white); border: 2px solid rgba(255,255,255,0.7); }
.btn-outline:hover { background: rgba(255,255,255,0.15); transform: translateY(-2px); }
.btn-purple { background: var(--purple); color: var(--white); }
.btn-purple:hover { background: var(--purple-dark); transform: translateY(-2px); }
.btn-teal { background: var(--teal); color: var(--white); }
.btn-teal:hover { background: var(--teal-dark); transform: translateY(-2px); }

/* ── SECTIONS ── */
section { padding: 80px 24px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-header { text-align: center; margin-bottom: 52px; }
.section-tag {
  display: inline-block;
  background: var(--off-white);
  color: var(--purple);
  padding: 4px 14px;
  border-radius: 20px;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 12px;
}
.section-header h2 {
  font-size: clamp(1.7rem, 3.5vw, 2.4rem);
  font-weight: 800;
  color: var(--purple);
  margin-bottom: 12px;
}
.section-header p {
  color: var(--gray);
  max-width: 580px;
  margin: 0 auto;
  font-size: 1.05rem;
}

/* ── CARDS ── */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 28px;
}
.cards-grid-4 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 24px;
}

.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 32px 28px;
  transition: var(--transition);
  border: 1px solid rgba(92,64,128,0.08);
}
.card:hover { transform: translateY(-4px); box-shadow: 0 8px 32px rgba(92,64,128,0.18); }

.card-icon {
  width: 52px; height: 52px;
  border-radius: 12px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 18px;
}
.card-icon.purple { background: rgba(92,64,128,0.12); color: var(--purple); }
.card-icon.teal { background: rgba(42,157,143,0.12); color: var(--teal); }
.card-icon.gold { background: rgba(233,161,42,0.15); color: var(--gold-dark); }

.card h3 { font-size: 1.1rem; font-weight: 700; color: var(--purple); margin-bottom: 10px; }
.card p { color: var(--gray); font-size: 0.95rem; line-height: 1.6; }

/* ── ACHIEVEMENT BANNER ── */
.achievement-banner {
  background: linear-gradient(135deg, var(--purple) 0%, var(--purple-dark) 100%);
  color: var(--white);
  padding: 64px 24px;
}
.achievement-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 24px;
  max-width: 1000px;
  margin: 40px auto 0;
}
.achievement-item {
  background: rgba(255,255,255,0.10);
  border: 1px solid rgba(255,255,255,0.20);
  border-radius: var(--radius);
  padding: 24px 20px;
  text-align: center;
  transition: var(--transition);
}
.achievement-item:hover { background: rgba(255,255,255,0.17); }
.achievement-item .school { font-size: 0.8rem; color: var(--gold); font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 6px; }
.achievement-item .name { font-size: 1rem; font-weight: 700; }
.achievement-item .program { font-size: 0.82rem; opacity: 0.8; margin-top: 4px; }

/* ── PROGRAMS ── */
.program-card {
  display: flex;
  gap: 24px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 28px;
  border-left: 5px solid var(--purple);
  transition: var(--transition);
  align-items: flex-start;
}
.program-card:hover { transform: translateX(4px); box-shadow: 0 8px 32px rgba(92,64,128,0.15); }
.program-card.teal-border { border-left-color: var(--teal); }
.program-card.gold-border { border-left-color: var(--gold); }

.program-age {
  min-width: 70px;
  background: var(--purple);
  color: var(--white);
  border-radius: 8px;
  text-align: center;
  padding: 10px 8px;
  font-weight: 800;
  font-size: 0.9rem;
  line-height: 1.2;
}
.program-age.teal { background: var(--teal); }
.program-age.gold { background: var(--gold-dark); }

.program-body h3 { font-size: 1.1rem; font-weight: 700; color: var(--purple); margin-bottom: 8px; }
.program-body p { color: var(--gray); font-size: 0.92rem; }
.program-body ul { color: var(--gray); font-size: 0.9rem; padding-left: 18px; }
.program-body li { margin-bottom: 4px; }

/* ── GALLERY GRID ── */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 16px;
}
.gallery-item {
  border-radius: var(--radius);
  overflow: hidden;
  position: relative;
  aspect-ratio: 4/3;
  background: var(--gray-light);
  box-shadow: var(--shadow);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s ease; display: block; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item .overlay {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(92,64,128,0.85));
  color: var(--white);
  padding: 30px 16px 16px;
  opacity: 0;
  transition: var(--transition);
}
.gallery-item:hover .overlay { opacity: 1; }
.gallery-item .overlay .student { font-weight: 700; font-size: 0.95rem; }
.gallery-item .overlay .artwork-info { font-size: 0.8rem; opacity: 0.85; }

/* ── TESTIMONIALS ── */
.testimonials-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 24px; }
.testimonial {
  background: var(--off-white);
  border-radius: var(--radius);
  padding: 28px;
  border-top: 4px solid var(--gold);
}
.testimonial p { font-style: italic; color: var(--text); margin-bottom: 16px; font-size: 0.97rem; line-height: 1.7; }
.testimonial .author { font-weight: 700; color: var(--purple); font-size: 0.9rem; }
.testimonial .stars { color: var(--gold); font-size: 1rem; margin-bottom: 12px; }

/* ── STATS BAR ── */
.stats-bar {
  background: var(--off-white);
  padding: 48px 24px;
  border-top: 1px solid rgba(92,64,128,0.1);
  border-bottom: 1px solid rgba(92,64,128,0.1);
}
.stats-grid {
  max-width: 900px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 20px;
  text-align: center;
}
.stat-num { font-size: 2.4rem; font-weight: 900; color: var(--purple); line-height: 1; }
.stat-num span { font-size: 1.4rem; color: var(--gold); }
.stat-label { font-size: 0.88rem; color: var(--gray); margin-top: 6px; }

/* ── CTA SECTION ── */
.cta-section {
  background: linear-gradient(135deg, var(--teal) 0%, var(--purple) 100%);
  color: var(--white);
  text-align: center;
  padding: 80px 24px;
}
.cta-section h2 { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 800; margin-bottom: 16px; }
.cta-section p { opacity: 0.9; font-size: 1.05rem; margin-bottom: 36px; max-width: 520px; margin-left: auto; margin-right: auto; }

/* ── PAGE HERO (interior pages) ── */
.page-hero {
  background: linear-gradient(135deg, var(--purple-dark), var(--purple));
  color: var(--white);
  padding: 60px 24px 60px;
  text-align: center;
}
.site-header ~ .page-hero { padding-top: 60px; }
.page-hero h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); font-weight: 800; margin-bottom: 12px; }
.page-hero p { font-size: 1.05rem; opacity: 0.88; max-width: 560px; margin: 0 auto; }

/* ── EVENTS ── */
.event-card {
  display: flex;
  gap: 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 24px;
  transition: var(--transition);
  align-items: flex-start;
  border: 1px solid rgba(92,64,128,0.08);
}
.event-card:hover { transform: translateY(-3px); box-shadow: 0 8px 28px rgba(92,64,128,0.15); }
.event-date {
  min-width: 64px;
  background: var(--purple);
  color: var(--white);
  border-radius: 8px;
  text-align: center;
  padding: 10px 8px;
  font-weight: 800;
  font-size: 0.85rem;
  line-height: 1.3;
}
.event-date .day { font-size: 1.7rem; line-height: 1; }
.event-body h3 { font-size: 1.05rem; font-weight: 700; color: var(--purple); margin-bottom: 6px; }
.event-body p { color: var(--gray); font-size: 0.9rem; }
.event-tag {
  display: inline-block;
  background: var(--teal);
  color: var(--white);
  font-size: 0.72rem;
  font-weight: 700;
  padding: 2px 8px;
  border-radius: 10px;
  margin-bottom: 8px;
  letter-spacing: 0.04em;
}

/* ── CONTACT ── */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.contact-info h3 { font-size: 1.2rem; font-weight: 700; color: var(--purple); margin-bottom: 20px; }
.contact-row { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 18px; }
.contact-icon { font-size: 1.3rem; min-width: 28px; margin-top: 2px; }
.contact-row div { color: var(--text); font-size: 0.97rem; }
.contact-row strong { color: var(--purple); display: block; font-size: 0.82rem; font-weight: 700; text-transform: uppercase; margin-bottom: 2px; letter-spacing: 0.04em; }

.form-group { margin-bottom: 18px; }
.form-group label { display: block; font-size: 0.88rem; font-weight: 600; color: var(--purple); margin-bottom: 6px; }
.form-group input, .form-group textarea, .form-group select {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid #ddd;
  border-radius: 8px;
  font-family: var(--font);
  font-size: 0.95rem;
  color: var(--text);
  transition: var(--transition);
  background: var(--white);
}
.form-group input:focus, .form-group textarea:focus, .form-group select:focus {
  outline: none;
  border-color: var(--purple);
  box-shadow: 0 0 0 3px rgba(92,64,128,0.12);
}
.form-group textarea { resize: vertical; min-height: 120px; }

/* ── FOOTER ── */
footer {
  background: var(--purple-dark);
  color: rgba(255,255,255,0.85);
  padding: 60px 24px 30px;
}
.footer-inner { max-width: 1200px; margin: 0 auto; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand .brand-name { font-size: 1.1rem; font-weight: 800; color: var(--white); margin-bottom: 12px; }
.footer-brand p { font-size: 0.88rem; line-height: 1.7; color: rgba(255,255,255,0.7); margin-bottom: 18px; }
.footer-col h4 { color: var(--gold); font-size: 0.82rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; margin-bottom: 14px; }
.footer-col a { display: block; color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.88rem; margin-bottom: 8px; transition: var(--transition); }
.footer-col a:hover { color: var(--white); padding-left: 4px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
  gap: 10px;
}
.social-links { display: flex; gap: 12px; }
.social-links a {
  width: 36px; height: 36px;
  background: rgba(255,255,255,0.10);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--white);
  text-decoration: none;
  font-size: 0.85rem;
  transition: var(--transition);
}
.social-links a:hover { background: var(--gold); }

/* ── MOBILE NAV MENU ── */
.mobile-menu {
  display: none;
  position: fixed;
  top: 70px; left: 0; right: 0;
  background: var(--white);
  z-index: 999;
  padding: 16px 24px 24px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.12);
  border-top: 1px solid var(--gray-light);
  flex-direction: column;
  gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none;
  color: var(--dark);
  font-size: 0.97rem;
  padding: 10px 14px;
  border-radius: 8px;
  font-weight: 500;
  display: block;
  transition: var(--transition);
}
.mobile-menu a:hover { background: var(--off-white); color: var(--purple); }
.mobile-lang { margin-top: 10px; }

/* ── ABOUT ── */
.about-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.about-img { border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.about-img img { width: 100%; display: block; }
.about-text h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--purple); margin-bottom: 18px; }
.about-text p { color: var(--gray); font-size: 0.97rem; line-height: 1.75; margin-bottom: 16px; }
.about-list { list-style: none; }
.about-list li { padding: 8px 0; padding-left: 24px; position: relative; color: var(--text); font-size: 0.95rem; }
.about-list li::before { content: '✦'; position: absolute; left: 0; color: var(--gold); font-size: 0.7rem; top: 10px; }

/* ── NOTICE BANNER ── */
.notice-banner {
  background: var(--gold);
  color: var(--white);
  text-align: center;
  padding: 10px 24px;
  font-size: 0.88rem;
  font-weight: 600;
}

/* ── RESPONSIVE ── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-cta { display: none; }
  .hamburger { display: flex; }
  .contact-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .about-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  section { padding: 56px 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-btns { flex-direction: column; align-items: center; }
  .program-card { flex-direction: column; }
  .event-card { flex-direction: column; }
  .achievement-grid { grid-template-columns: 1fr 1fr; }
}

/* ── UTILITY ── */
.bg-purple { background: var(--purple); color: var(--white); }
.bg-off-white { background: var(--off-white); }
.bg-teal { background: var(--teal); color: var(--white); }
.text-center { text-align: center; }
.mt-8 { margin-top: 8px; }
.mt-16 { margin-top: 16px; }
.mt-24 { margin-top: 24px; }
.mt-32 { margin-top: 32px; }
.mb-24 { margin-bottom: 24px; }
.gap-stack > * + * { margin-top: 20px; }
.pill {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.8rem;
  font-weight: 600;
  background: var(--off-white);
  color: var(--purple);
  margin: 3px;
}
.divider { height: 1px; background: rgba(92,64,128,0.1); margin: 0 auto; max-width: 1200px; }

/* ── HEADER SLIDER ── */
.hero-slider {
  width: 100%;
  overflow: hidden;
  position: relative;
  margin-top: 0; /* site-header is not fixed */
  background: #111;
  max-height: 500px;
}
.slider-track {
  display: flex;
  transition: transform 0.6s ease;
  height: 100%;
}
.slider-slide {
  min-width: 100%;
  position: relative;
  overflow: hidden;
}
.slider-slide img {
  width: 100%;
  height: 480px;
  object-fit: cover;
  display: block;
  transition: transform 0.6s ease;
}
.slider-slide:hover img { transform: scale(1.02); }
.slider-caption {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(transparent, rgba(92,64,128,0.75));
  color: white;
  padding: 32px 40px 24px;
}
.slider-caption h3 { font-size: 1.4rem; font-weight: 800; margin-bottom: 4px; }
.slider-caption p { font-size: 0.9rem; opacity: 0.88; }
.slider-dots {
  position: absolute;
  bottom: 16px; right: 20px;
  display: flex; gap: 8px;
}
.slider-dot {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  cursor: pointer;
  border: none;
  transition: background 0.3s;
}
.slider-dot.active { background: var(--gold); }
.slider-arrow {
  position: absolute;
  top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.2);
  border: none;
  color: white;
  font-size: 1.5rem;
  width: 44px; height: 44px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;
  transition: background 0.25s;
  display: flex; align-items: center; justify-content: center;
}
.slider-arrow:hover { background: rgba(92,64,128,0.7); }
.slider-prev { left: 16px; }
.slider-next { right: 16px; }

/* course card with image */
.course-card-img {
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
  border-radius: var(--radius) var(--radius) 0 0;
  display: block;
}
.course-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  overflow: hidden;
  transition: var(--transition);
  border: 1px solid rgba(92,64,128,0.08);
}
.course-card:hover { transform: translateY(-5px); box-shadow: 0 10px 36px rgba(92,64,128,0.18); }
.course-card-body { padding: 22px 20px; }
.course-card-body h3 { font-size: 1.05rem; font-weight: 800; color: var(--purple); margin-bottom: 6px; }
.course-card-body .age-badge {
  display: inline-block;
  background: var(--purple);
  color: white;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 2px 10px;
  border-radius: 12px;
  margin-bottom: 10px;
}
.course-card-body .age-badge.teal { background: var(--teal); }
.course-card-body .age-badge.gold { background: var(--gold-dark); }
.course-card-body p { color: var(--gray); font-size: 0.88rem; line-height: 1.6; margin-bottom: 12px; }
.course-card-price { font-size: 0.82rem; color: var(--teal); font-weight: 700; background: rgba(42,157,143,0.08); padding: 6px 10px; border-radius: 6px; display: inline-block; }

/* portfolio gallery */
.portfolio-grid { display: grid; grid-templa