/* ============================================================
   CSS Design System — VPET Fun Day 2026 Landing Page
   ============================================================ */

/* ── Custom Properties ─────────────────────────────────────── */
:root {
  /* Brand */
  --color-primary: #002157;
  --color-secondary: #00ADC6;
  --color-accent: #00829B;

  /* Text */
  --text-primary: #002157;
  --text-body: #030712;
  --text-gray: #1F2937;
  --text-muted: #9CA3AF;
  --text-white: #FFFFFF;
  --text-yellow: #FDE047;
  --text-cyan: #CFFAFE;

  /* Tailwind color swatches */
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-400: #60A5FA;
  --cyan-50: #ECFEFF;
  --lime-100: #ECFCCB;
  --lime-200: #D9F99D;
  --lime-300: #BEF264;
  --fuchsia-100: #FAE8FF;
  --fuchsia-200: #F5D0FE;
  --fuchsia-300: #F0ABFC;
  --orange-100: #FFEDD5;
  --orange-200: #FED7AA;

  /* Radius */
  --rounded-xl: 12px;
  --rounded-2xl: 16px;
  --rounded-3xl: 24px;
  --rounded-full: 9999px;

  /* Spacing (4px base) */
  --spacing-1: 4px;
  --spacing-2: 8px;
  --spacing-3: 12px;
  --spacing-4: 16px;
  --spacing-5: 20px;
  --spacing-6: 24px;
  --spacing-8: 32px;
  --spacing-10: 40px;
  --spacing-12: 48px;
  --spacing-16: 64px;
  --spacing-20: 80px;
  --spacing-24: 96px;

  /* Typography */
  --font-family: 'Noto Sans HK', sans-serif;
  --text-xs: 12px;
  --text-sm: 14px;
  --text-md: 16px;
  --text-lg: 18px;
  --text-xl: 20px;
  --text-2xl: 24px;
  --text-3xl: 30px;
  --text-4xl: 36px;
  --text-5xl: 48px;

  /* Line heights */
  --lh-h1: 48px;
  --lh-h2: 44px;
  --lh-h3: 36px;
  --lh-h4: 32px;
  --lh-p: 28px;
}

/* ── Global Resets ──────────────────────────────────────────── */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-family);
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* ── Bilingual Visibility ───────────────────────────────────── */
[data-lang="zh"] .lang-en { display: none; }
[data-lang="en"] .lang-zh { display: none; }

/* ── Nav ────────────────────────────────────────────────────── */
#main-nav {
  position: fixed;
  top: 0;
  z-index: 100;
  width: 100%;
  background: #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.nav-container {
  margin: 0;
  padding: 0 96px;
  height: 96px;
  display: flex;
  align-items: center;
}

/* Logo */
.nav-logo {
  flex-shrink: 0;
  flex-grow: 0;
  flex-basis: 204px;
  width: 204px;
  min-width: 204px;
  display: flex;
  align-items: center;
}

.nav-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Desktop nav links (4 items) */
.nav-links {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-8);
  list-style: none;
}

.nav-links a {
  display: inline-block;
  padding-bottom: 2px;
  font-size: var(--text-md);
  font-weight: 500;
  color: var(--text-primary);
  text-decoration: none;
  border-bottom: 2px solid transparent;
  white-space: nowrap;
  transition: color 0.15s, border-color 0.15s;
}

.nav-links a:hover,
.nav-links a.active {
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}

/* Right controls */
.nav-controls {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  margin-left: auto;
}

/* Register button */
.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 24px;
  font-family: var(--font-family);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  border: none;
  border-radius: var(--rounded-full);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease;
}

.btn-register:hover {
  background: var(--color-secondary);
}

/* Language switcher: 繁 | EN */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: var(--spacing-1);
}

.lang-divider {
  color: var(--text-muted);
  font-size: var(--text-sm);
  user-select: none;
}

.lang-btn {
  background: none;
  border: none;
  font-family: var(--font-family);
  font-size: var(--text-md);
  font-weight: 600;
  color: var(--text-primary);
  cursor: pointer;
  padding: 0 var(--spacing-1);
  border-bottom: 2px solid transparent;
  text-decoration: none;
  transition: color 0.15s, border-color 0.15s;
}

/* Active language button highlighted in secondary color */
[data-lang="zh"] .lang-btn-zh,
[data-lang="en"] .lang-btn-en {
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}

/* Hover on inactive lang button */
.lang-btn:hover {
  color: var(--color-secondary);
  border-bottom-color: var(--color-secondary);
}

/* Hamburger button (hidden on desktop) */
.nav-hamburger {
  display: none;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-1);
}

.nav-hamburger img {
  width: 28px;
  height: 28px;
}

/* Show/hide hamburger icon states */
.nav-hamburger .hamburger-close { display: none; }
.nav-hamburger.is-open .hamburger-open  { display: none; }
.nav-hamburger.is-open .hamburger-close { display: block; }

/* Mobile overlay — full-screen, slides in from top */
.nav-mobile-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: #fff;
  z-index: 200;
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 0 var(--spacing-6) var(--spacing-8);
  overflow-y: auto;
  /* hidden state */
  transform: translateY(-100%);
  opacity: 0;
  pointer-events: none;
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
              opacity 0.35s ease;
}

.nav-mobile-panel.is-open {
  transform: translateY(0);
  opacity: 1;
  pointer-events: auto;
}

/* Overlay top bar */
.nav-mobile-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  height: 56px;
  flex-shrink: 0;
  margin-bottom: var(--spacing-10);
}

.nav-close-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: none;
  cursor: pointer;
  padding: var(--spacing-1);
}

.nav-close-btn img {
  width: 28px;
  height: 28px;
}

.nav-mobile-links {
  list-style: none;
  width: 100%;
  text-align: center;
  margin-bottom: var(--spacing-8);
}

.nav-mobile-links li + li {
  margin-top: var(--spacing-6);
}

.nav-mobile-links a {
  display: block;
  font-size: var(--text-xl);
  font-weight: 600;
  color: var(--text-primary);
  text-decoration: none;
  transition: color 0.15s;
}

.nav-mobile-links a:hover {
  color: var(--color-secondary);
}

/* Register button inside mobile overlay */
.nav-register-mobile {
  width: calc(100% - var(--spacing-8));
  max-width: 400px;
  font-size: var(--text-xl);
  margin-bottom: var(--spacing-6);
}

/* Language switcher inside mobile overlay */
.lang-switcher-mobile {
  gap: var(--spacing-4);
}

.lang-switcher-mobile .lang-btn {
  font-size: var(--text-xl);
}

.lang-switcher-mobile .lang-divider {
  font-size: var(--text-xl);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .nav-container {
    margin: 0;
    padding: 0 32px;
    height: 80px;
  }
}

@media (max-width: 767px) {
  .nav-container {
    margin: 0;
    padding: 0 20px;
    height: 68px;
  }

  .nav-logo {
    flex-basis: 180px;
    width: 180px;
    min-width: 180px;
  }
}

@media (max-width: 1023px) {
  /* Hide desktop links and controls on mobile/tablet */
  .nav-links,
  .nav-register,
  .lang-switcher:not(.lang-switcher-mobile) {
    display: none !important;
  }

  /* Show hamburger on mobile/tablet */
  .nav-hamburger {
    display: flex;
  }
}

/* ── Section scroll offset ──────────────────────────────────── */
section {
  scroll-margin-top: 80px;
}

@media (max-width: 1023px) {
  section {
    scroll-margin-top: 60px;
  }
}

/* Offset for main content below fixed nav */
main {
  padding-top: 80px;
}

@media (max-width: 1023px) {
  main {
    padding-top: 60px;
  }
}
/* ============================================================
   Hero + About Section
   ============================================================ */

#hero-about {
  background:
    url('image/hero-mesh.png') center 30% / cover no-repeat,
    linear-gradient(to bottom right, #BFDBFE 6%, #ECFEFF 50%, #60A5FA 86%);
    padding-top: var(--spacing-6);
    padding-bottom: var(--spacing-12);
}

/* ── Hero subsection ──────────────────────────────────────── */
.hero {
  position: relative;
  width: 100%;
  min-height: 520px;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  overflow: visible;
  padding: 100px var(--spacing-12) 0;
}

/* Full-width background illustration (desktop) */
.hero-bg-illustration {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center center;
  pointer-events: none;
  user-select: none;
}

/* Desktop: show desktop bg, hide mobile bg */
.hero-img-desktop { display: block; }
.hero-img-mobile  { display: none; }

/* Centered content column sits above the bg illustration */
.hero-center {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  max-width: 860px;
  gap: var(--spacing-10);
}

/* Mobile top illustration — hidden on desktop */
.hero-mobile-top-illustration {
  display: none;
}

.hero-event-logo {
  max-width: 720px;
  width: 90%;
  height: auto;
}

/* Card wrapper — desktop: transparent passthrough; mobile: relative for illustration overlay */
.hero-card-wrapper {
  width: 100%;
  max-width: 860px;
}

/* Glass info card */
.hero-card {
  width: 100%;
  max-width: 860px;
  background: rgba(255, 255, 255, 0.50);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.85);
  border-radius: var(--rounded-2xl);
  box-shadow: 0 4px 32px rgba(0, 33, 87, 0.12);
  padding: var(--spacing-6) var(--spacing-8);
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: var(--spacing-8);
  margin-bottom: var(--spacing-20);
}

.hero-card-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-2);
  min-width: 0;
}

.hero-card-datetime {
  display: flex;
  flex-wrap: nowrap;
  align-items: baseline;
  gap: var(--spacing-3);
  font-size: var(--text-3xl);
  font-weight: 700;
  line-height: var(--lh-h3);
  white-space: nowrap;
}

.hero-date {
  color: var(--text-primary);
}

.hero-time {
  color: var(--color-secondary);
}

.hero-card-venue {
  font-size: var(--text-xl);
  font-weight: 500;
  color: var(--text-gray);
  line-height: var(--lh-p);
  margin-top: var(--spacing-1);
}

/* Desktop: hide the <br> in venue so it stays on one line */
.hero-card-venue br {
  display: none;
}

.hero-card-cta {
  flex-shrink: 0;
}

.hero-cta {
  font-size: var(--text-md);
  white-space: nowrap;
}

/* ── About subsection ─────────────────────────────────────── */
.about {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 60px;
  padding: 60px 96px;
}

/* Heading badge — background image is pre-rotated; only text rotates */
.about-heading-badge {
  background-image: url('image/header-bg-about-desktop-zh.png');
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: var(--text-5xl);
  white-space: nowrap;
  padding: 0.4em 1.2em;
  aspect-ratio: 2544 / 458;
}

[data-lang="en"] .about-heading-badge {
  background-image: url('image/header-bg-about-desktop-en.png');
}

.about-badge-text {
  display: inline-block;
  transform: rotate(-4deg);
}

/* Hide the forced line break on desktop — badge stays single line */
.about-heading-badge br {
  display: none;
}

.about-heading-yellow {
  color: #FDE047;
}

/* 4 highlight cards: image left, text right */
.about-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-6);
  width: 100%;
}

.about-card {
  background: #fff;
  border-radius: var(--rounded-2xl);
  box-shadow: 0 4px 16px rgba(0, 33, 87, 0.10);
  padding: var(--spacing-5) var(--spacing-3);
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: var(--spacing-4);
  height: 148px;
  overflow: hidden;
}

.about-card img {
  width: 114px;
  height: auto;
  object-fit: contain;
  flex-shrink: 0;
}

.about-card-text {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-1);
  flex: 1;
  min-width: 0;
}

.about-card-label {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.2;
}

.about-card-sublabel {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: 1.4;
}

/* Body text below cards */
.about-body {
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
  max-width: 900px;
}

.about-body-desc {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: var(--lh-h3);
}

.about-body-highlight {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: var(--lh-h2);
}

/* ============================================================
   Scroll-reveal animation — bouncy spring fade up
   ============================================================ */

@keyframes bounceReveal {
  0%   { opacity: 0; transform: translateY(0) scale(1); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
  75%  { transform: translateY(6px) scale(0.99); }
  90%  { transform: translateY(-3px) scale(1.005); }
  100% { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes floatBob {
  0%   { transform: translateY(0); }
  50%  { transform: translateY(-10px); }
  100% { transform: translateY(0); }
}

/* Elements start hidden; JS adds .is-visible to trigger animation */
.reveal {
  opacity: 0;
}

.reveal.is-visible {
  animation: bounceReveal 0.85s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

/* Staggered delay for multiple items in a row */
.reveal[data-delay="1"] { animation-delay: 0.05s; }
.reveal[data-delay="2"] { animation-delay: 0.15s; }
.reveal[data-delay="3"] { animation-delay: 0.25s; }
.reveal[data-delay="4"] { animation-delay: 0.35s; }

/* Floating loop on card images */
.about-card img {
  animation: floatBob 3s ease-in-out infinite;
}
.about-card:nth-child(2) img { animation-delay: 0.5s; }
.about-card:nth-child(3) img { animation-delay: 1s; }
.about-card:nth-child(4) img { animation-delay: 1.5s; }

/* Default: zh, desktop */
.section-header--about        { background-image: url('image/header-bg-about-desktop-zh.png'); }
.section-header--themes       { background-image: url('image/header-bg-themes-desktop-zh.png'); }
.section-header--health       { background-image: url('image/header-bg-health-desktop-zh.png'); }
.section-header--skills       { background-image: url('image/header-bg-skills-desktop-zh.png'); }
.section-header--craft        { background-image: url('image/header-bg-craft-desktop-zh.png'); }
.section-header--tech         { background-image: url('image/header-bg-tech-desktop-zh.png'); }
.section-header--getting-here { background-image: url('image/header-bg-getting-here-desktop-zh.png'); }
.section-header--recap        { background-image: url('image/header-bg-past-event-desktop-zh.png'); }

/* English, desktop */
[data-lang="en"] .section-header--about        { background-image: url('image/header-bg-about-desktop-en.png'); }
[data-lang="en"] .section-header--themes       { background-image: url('image/header-bg-themes-desktop-en.png'); }
[data-lang="en"] .section-header--health       { background-image: url('image/header-bg-health-desktop-en.png'); }
[data-lang="en"] .section-header--skills       { background-image: url('image/header-bg-skills-desktop-en.png'); }
[data-lang="en"] .section-header--craft        { background-image: url('image/header-bg-craft-desktop-en.png'); }
[data-lang="en"] .section-header--tech         { background-image: url('image/header-bg-tech-desktop-en.png'); }
[data-lang="en"] .section-header--getting-here { background-image: url('image/header-bg-getting-here-desktop-en.png'); }
[data-lang="en"] .section-header--recap        { background-image: url('image/header-bg-past-event-desktop-en.png'); }

/* ── Responsive: Tablet (768px–1023px) ──────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .about {
    padding: var(--spacing-10) var(--spacing-8);
  }
  .about-cards {
    grid-template-columns: repeat(2, 1fr);
  }
  /* Change to icon-on-top, text-below layout for tablet */
  .about-card {
    flex-direction: column;
    align-items: center;
    text-align: center;
    height: auto;
    padding: var(--spacing-5) var(--spacing-4);
    gap: var(--spacing-3);
  }
  .about-card img {
    width: 96px;
    height: 96px;
  }
  .about-card-text {
    width: 100%;
  }
}

/* ── Responsive: Mobile (<768px) ────────────────────────────── */
@media (max-width: 767px) {
  #hero-about {
    padding-bottom: var(--spacing-10);
    background-position: center center;
    background-size: cover;
  }

  .hero {
    min-height: unset;
    padding: var(--spacing-6) var(--spacing-4) 0;
    align-items: flex-start;
  }

  .hero-center {
    gap: var(--spacing-4);
  }

  /* On mobile: hide the absolute bg illustration */
  .hero-bg-illustration {
    display: none !important;
  }

  /* Card wrapper becomes relative so illustration can be positioned at bottom */
  .hero-card-wrapper {
    position: relative;
    width: 100%;
  }

  /* Mobile illustration: simple in-flow display to confirm image loads */
  .hero-mobile-top-illustration {
    display: block;
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    height: auto;
    pointer-events: none;
    z-index: 2;
  }

  /* Card wrapper: relative container for illustration overlay */
  .hero-card-wrapper {
    position: relative;
    width: 100%;
    padding-bottom: 80px; /* space for illustration to overlap */
  }

  /* Card needs enough bottom padding so CTA isn't hidden behind illustration */
  .hero-card {
    grid-template-columns: 1fr;
    align-items: center;
    text-align: center;
    padding: var(--spacing-6) var(--spacing-5) var(--spacing-10);
    margin-bottom: 0;
    gap: var(--spacing-4);
    overflow: visible;
  }

  /* Show <br> in venue on mobile for 2-line address */
  .hero-card-venue br {
    display: block;
  }

  .hero-event-logo {
    max-width: 100%;
    width: 90%;
    margin-top: 40px;
  }

  /* On mobile: date and time stack — time on its own row */
  .hero-card-datetime {
    flex-direction: column;
    align-items: center;
    white-space: normal;
    font-size: 24px;
    gap: var(--spacing-1);
  }

  .hero-card-venue {
    font-size: 16px;
    margin-top: 0;
    line-height: 1.6;
  }

  .hero-cta {
    width: 100%;
    max-width: 280px;
    font-size: var(--text-lg);
  }

  .about {
    padding: var(--spacing-8) var(--spacing-5);
  }

  .about-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: var(--spacing-4);
    padding: 0;
  }

  .about-card {
    width: auto;
    height: auto;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--spacing-4) var(--spacing-3);
    gap: var(--spacing-2);
  }

  .about-card img {
    width: 96px;
    height: 96px;
  }

  .about-card-label {
    font-size: var(--text-xl);
  }

  .about-card-sublabel {
    font-size: var(--text-md);
  }

  .about-body-desc {
    font-size: var(--text-md);
    font-weight: 600;
    line-height: 1.5;
  }

  .about-body-highlight {
    font-size: var(--text-xl);
    line-height: 1.4;
  }

  .about-heading-badge {
    background-image: url('image/header-bg-about-mobile-zh.png');
    background-size: 100% 100%;
    font-size: var(--text-2xl);
    white-space: normal;
    text-align: center;
    width: min(260px, 80%);
    aspect-ratio: 848 / 407;
    padding: 0 var(--spacing-5);
  }

  .about-heading-badge br {
    display: block;
  }

  [data-lang="en"] .about-heading-badge {
    background-image: url('image/header-bg-about-mobile-en.png');
    width: min(320px, 90%);
  }

  /* Mobile section header badges */
  .section-header--about        { background-image: url('image/header-bg-about-mobile-zh.png'); }
  .section-header--themes       { background-image: url('image/header-bg-themes-mobile-zh.png'); }
  .section-header--health       { background-image: url('image/header-bg-health-mobile-zh.png'); }
  .section-header--skills       { background-image: url('image/header-bg-skills-mobile-zh.png'); }
  .section-header--craft        { background-image: url('image/header-bg-craft-mobile-zh.png'); }
  .section-header--tech         { background-image: url('image/header-bg-tech-mobile-zh.png'); }
  .section-header--getting-here { background-image: url('image/header-bg-getting-here-mobile-zh.png'); }
  .section-header--recap        { background-image: url('image/header-bg-past-event-mobile-zh.png'); }

  /* Mobile, en */
  [data-lang="en"] .section-header--about        { background-image: url('image/header-bg-about-mobile-en.png'); }
  [data-lang="en"] .section-header--themes       { background-image: url('image/header-bg-themes-mobile-en.png'); }
  [data-lang="en"] .section-header--health       { background-image: url('image/header-bg-health-mobile-en.png'); }
  [data-lang="en"] .section-header--skills       { background-image: url('image/header-bg-skills-mobile-en.png'); }
  [data-lang="en"] .section-header--craft        { background-image: url('image/header-bg-craft-mobile-en.png'); }
  [data-lang="en"] .section-header--tech         { background-image: url('image/header-bg-tech-mobile-en.png'); }
  [data-lang="en"] .section-header--getting-here { background-image: url('image/header-bg-getting-here-mobile-en.png'); }
  [data-lang="en"] .section-header--recap        { background-image: url('image/header-bg-past-event-mobile-en.png'); }

  /* Mobile English section header widths — wider than Chinese to fit longer text */
  [data-lang="en"] .section-header--themes       { width: 65%; aspect-ratio: 656 / 268 !important; height: auto !important; }
  [data-lang="en"] .section-header--health       { width: 55%; aspect-ratio: 340 / 142 !important; height: auto !important; }
  [data-lang="en"] .section-header--skills       { width: 50%; aspect-ratio: 325 / 130 !important; height: auto !important; }
  [data-lang="en"] .section-header--craft        { width: 65%; aspect-ratio: 840 / 275 !important; height: auto !important; }
  [data-lang="en"] .section-header--tech         { width: 65%; aspect-ratio: 431 / 140 !important; height: auto !important; }
  [data-lang="en"] .section-header--getting-here { width: 50%; aspect-ratio: 328 / 134 !important; height: auto !important; }
  [data-lang="en"] .section-header--recap        { width: 88%; aspect-ratio: 284 / 131 !important; height: auto !important; }

  /* Mobile English about cards — larger font sizes for EN labels */
  [data-lang="en"] .about-card-label   { font-size: var(--text-xl) !important; }
  [data-lang="en"] .about-card-sublabel { font-size: var(--text-md) !important; }
}

/* ============================================================
   Four Activity Themes Section
   ============================================================ */

#themes {
  background: #FFFFFF;
  padding: 80px var(--spacing-5);
}

.themes-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
}

/* Header group: badge + subheadline */
.themes-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-5);
}

.section-header--themes {
  font-size: 48px;
  background-size: 100% 100%;
  background-position: center center;
  width: 55%;
  aspect-ratio: 1392 / 382;
  height: auto;
  padding: 0.25em 1.4em;
}

.section-header--themes .lang-zh,
.section-header--themes .lang-en {
  display: inline-block;
  transform: rotate(-4deg);
}

/* Yellow-300 on 活動主題 part */
.themes-accent {
  color: #FDE047;
}

.themes-subheadline {
  font-size: var(--text-3xl);
  font-weight: 500;
  color: var(--text-body);
  text-align: center;
}

/* Theme cards grid: 4 columns desktop */
.themes-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  column-gap: var(--spacing-6);
  row-gap: 0;
  width: 100%;
  align-items: start;
}

/* Wrapper: image on top, text below */
.theme-card-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
}

/* Theme image — full image, no cropping */
.theme-card-img {
  width: 100%;
  height: auto;
  display: block;
  transition: transform 0.3s ease;
}

.theme-card-wrapper:hover .theme-card-img {
  transform: scale(1.06);
}

/* Text sits below the image */
.theme-card-text {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-2);
  text-align: center;
  padding-top: 40px;
}

.theme-card-name {
  font-size: var(--text-3xl);
  font-weight: 700;
  color: var(--text-primary);
  line-height: var(--lh-h4);
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-2);
}

.theme-card-arrow {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  color: var(--color-primary);
  transition: color 0.3s ease, transform 0.3s ease;
}

.theme-card-arrow svg {
  width: 100%;
  height: 100%;
}

.theme-card-wrapper:hover .theme-card-arrow {
  color: var(--color-secondary);
  transform: translateX(4px);
}

.theme-card-desc {
  font-size: var(--text-2xl);
  font-weight: 500;
  color: var(--text-body);
  line-height: var(--lh-p);
}

/* ── Responsive: Tablet (768px–1023px) ──────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  .themes-grid {
    grid-template-columns: repeat(2, 1fr);
    column-gap: var(--spacing-6);
    row-gap: var(--spacing-10);
  }
  .theme-card-wrapper {
    overflow: hidden;
  }
  .theme-card-img {
    width: 85%;
    height: auto;
  }
}

/* ── Responsive: Mobile (<768px) ────────────────────────────── */
@media (max-width: 767px) {
  #themes {
    padding: 60px var(--spacing-5);
  }

  .themes-grid {
    grid-template-columns: 1fr;
    row-gap: 32px;
  }

  .theme-card-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
  }

  .theme-card-img {
    width: 80%;
    height: auto;
    object-fit: contain;
  }

  .section-header--themes {
    font-size: 24px;
    background-size: 50% 50%;
    background-position: center center;
    background-repeat: no-repeat;
    padding: 0.3em 1.4em;
  }

  .themes-subheadline {
    font-size: var(--text-md);
  }

  .theme-card-name {
    font-size: var(--text-2xl);
  }

  .theme-card-desc {
    font-size: var(--text-sm);
    font-weight: 500;
  }
}

/* ============================================================
   Activity Detail Sections (Health, Skills, Craft, Tech)
   ============================================================ */

/* Section background gradients + illustration overlay — zigzag: Health L, Skills R, Craft L, Tech R */
#health {
  background:
    url('image/section-illustration-health.png') left 48px top 40px / auto 240px no-repeat,
    linear-gradient(to bottom, #ECFCCB 0%, #D9F99D 35%, #BEF264 100%);
}
#skills {
  background:
    url('image/section-illustration-skills.png') right 48px top 40px / auto 240px no-repeat,
    linear-gradient(to bottom, #FAE8FF 0%, #F5D0FE 35%, #F0ABFC 100%);
}
#craft {
  background:
    url('image/section-illustration-craft.png') left 48px top 40px / auto 240px no-repeat,
    linear-gradient(to bottom, #FFEDD5 0%, #FFEDD5 35%, #FED7AA 100%);
}
#tech {
  background:
    url('image/section-illustration-tech.png') right 48px top 40px / auto 240px no-repeat,
    linear-gradient(to bottom, #DBEAFE 0%, #BFDBFE 35%, #60A5FA 100%);
}

/* Inner container — left/top/bottom padding, no right padding so carousel bleeds to edge */
.activity-section-inner {
  padding: 80px 0 80px 96px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-10);
}

/* Header block — centered */
.activity-section-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: var(--spacing-5);
  width: 100%;
}

/* Section header pill — background fills element exactly; each section sets its own width+aspect-ratio */
.section-header {
  background-size: 100% 100%;
  background-repeat: no-repeat;
  background-position: center center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 48px;
  white-space: nowrap;
}

/* Per-section sizes at 40% of natural image size */
/* Health 1300×428 → 520×171px */
.section-header--health {
  width: 25%;
  aspect-ratio: 1300 / 428;
  height: auto;
  padding-left: 2.1em;
  padding-right: 1.2em;
  padding-top: 0.2em;
}

/* Skills 1466×368 → 586×147px */
.section-header--skills {
  width: 25%;
  aspect-ratio: 1466 / 368;
  height: auto;
  padding-left: 0.1em;
  padding-right: 1.8em;
  padding-bottom: 0.2em;
}

/* Craft 1180×406 → 472×162px */
.section-header--craft {
  width: 25%;
  aspect-ratio: 1180 / 406;
  height: auto;
  padding-left: 1.9em;
  padding-right: 0.8em;
  padding-top: 0.2em;
}

/* Tech 1460×384 → 584×154px */
.section-header--tech {
  width: 25%;
  aspect-ratio: 1460 / 384;
  height: auto;
  padding-left: 0.7em;
  padding-right: 2.1em;
}

/* Activity badge text rotation — alternating up/down: health +4, skills -4, craft +4, tech -4 */
.section-header--health .lang-zh { display: inline-block; transform: rotate(5deg); }
.section-header--skills .lang-zh { display: inline-block; transform: rotate(-5deg); }
.section-header--craft  .lang-zh { display: inline-block; transform: rotate(5deg); }
.section-header--tech   .lang-zh { display: inline-block; transform: rotate(-5deg); }

/* Two-tone badge text */
.badge-white  { color: #ffffff; }
.badge-yellow { color: #FDE047; }

/* Subheadline — single line, centered */
.activity-subheadline {
  font-size: 24px;
  font-weight: 500;
  color: var(--text-body);
  line-height: 1.5;
  white-space: nowrap;
  text-align: center;
}

/* ── Carousel ──────────────────────────────────────────────── */

/*
  Peek effect: show N full items + ~0.3 of the next one.
  Desktop: 4.3 visible  Tablet: 2.3 visible  Mobile: 1.3 visible
  Item width = 100% / --carousel-visible
  The track has no right padding so the partial item bleeds to the section edge.
*/
:root { --carousel-visible: 4.3; }

/* Carousel outer: full width of the inner container */
.carousel-outer {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: var(--spacing-5);
}

.carousel-track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
  gap: var(--spacing-4);
  scrollbar-width: none;
}

.carousel-track::-webkit-scrollbar { display: none; }

.carousel-track > * {
  scroll-snap-align: start;
  flex-shrink: 0;
}

.carousel-item {
  width: calc(100% / var(--carousel-visible));
  display: flex;
  flex-direction: column;
  gap: var(--spacing-3);
  background: none;
  overflow: visible;
  box-shadow: none;
}

.carousel-item img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--rounded-2xl);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.carousel-caption {
  font-size: 24px;
  font-weight: 600;
  color: var(--text-primary);
  line-height: 1.4;
  padding: 0;
}

/* Controls row: arrows below the track */
.carousel-controls {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
}

/* Hide arrows on desktop when section has exactly 4 items (craft, tech) */
@media (min-width: 1024px) {
  .carousel-controls--desktop-hidden {
    display: none;
  }
}

.carousel-prev,
.carousel-next {
  width: 56px;
  height: 56px;
  border-radius: var(--rounded-full);
  border: 1px solid #EEEEEE;
  background: rgba(255, 255, 255, 0.5);
  color: var(--color-primary);
  font-size: 28px;
  line-height: 1;
  cursor: pointer;
  padding: 0;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s;
  -webkit-appearance: none;
  appearance: none;
  outline: none;
}

.carousel-prev::before { content: '‹'; }
.carousel-next::before { content: '›'; }

.carousel-prev:hover,
.carousel-next:hover {
  background: var(--color-secondary);
  color: #fff;
  border-color: var(--color-secondary);
}

/* ── Responsive: Tablet (768px–1023px) ──────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  :root { --carousel-visible: 2.3; }

  .activity-section-inner {
    padding: 60px 0 60px 48px;
  }

  /* Scale down 3D illustration so it doesn't overlap subheadline text */
  #health {
    background:
      url('image/section-illustration-health.png') left 32px top 30px / auto 160px no-repeat,
      linear-gradient(to bottom, #ECFCCB 0%, #D9F99D 35%, #BEF264 100%);
  }
  #skills {
    background:
      url('image/section-illustration-skills.png') right 32px top 30px / auto 160px no-repeat,
      linear-gradient(to bottom, #FAE8FF 0%, #F5D0FE 35%, #F0ABFC 100%);
  }
  #craft {
    background:
      url('image/section-illustration-craft.png') left 32px top 30px / auto 160px no-repeat,
      linear-gradient(to bottom, #FFEDD5 0%, #FFEDD5 35%, #FED7AA 100%);
  }
  #tech {
    background:
      url('image/section-illustration-tech.png') right 32px top 30px / auto 160px no-repeat,
      linear-gradient(to bottom, #DBEAFE 0%, #BFDBFE 35%, #60A5FA 100%);
  }

  /* Section header font size — fits within badge background */
  .section-header {
    font-size: 32px;
  }

  /* Tablet per-section: increase pill width so navy blue background isn't too small */
  .section-header--health { width: 65%; height: auto; aspect-ratio: 1300 / 428 !important; }
  .section-header--skills { width: 65%; height: auto; aspect-ratio: 1466 / 368 !important; }
  .section-header--craft  { width: 65%; height: auto; aspect-ratio: 1180 / 406 !important; }
  .section-header--tech   { width: 65%; height: auto; aspect-ratio: 1460 / 384 !important; }

  /* Recap header has its own font-size rule — override it for tablet */
  .section-header--recap {
    font-size: 32px !important;
  }

  /* Subheadline right padding — doesn't affect carousel (carousel has its own wrapper) */
  .activity-subheadline {
    padding-right: var(--spacing-8);
    white-space: normal;
  }
}

/* ── Responsive: Mobile (<768px) ────────────────────────────── */
@media (max-width: 767px) {
  :root { --carousel-visible: 1.3; }

  /* Left padding only — carousel bleeds to right edge */
  .activity-section-inner {
    padding: 48px 0 48px var(--spacing-5);
    gap: var(--spacing-8);
  }

  /* Scale down illustration overlay on mobile — zigzag positions maintained */
  #health {
    background:
      url('image/section-illustration-health.png') left 24px top 20px / auto 120px no-repeat,
      linear-gradient(to bottom, #ECFCCB 0%, #D9F99D 35%, #BEF264 100%);
  }
  #skills {
    background:
      url('image/section-illustration-skills.png') right 24px top 20px / auto 120px no-repeat,
      linear-gradient(to bottom, #FAE8FF 0%, #F5D0FE 35%, #F0ABFC 100%);
  }
  #craft {
    background:
      url('image/section-illustration-craft.png') left 24px top 20px / auto 120px no-repeat,
      linear-gradient(to bottom, #FFEDD5 0%, #FFEDD5 35%, #FED7AA 100%);
  }
  #tech {
    background:
      url('image/section-illustration-tech.png') right 24px top 20px / auto 120px no-repeat,
      linear-gradient(to bottom, #DBEAFE 0%, #BFDBFE 35%, #60A5FA 100%);
  }

  /* Section header pill: % width + correct aspect-ratio = no stretching */
  .section-header {
    font-size: 24px;
    background-size: 100% 100%;
  }

  /* Mobile per-section: width % + aspect-ratio from actual image dimensions */
  .section-header--health { width: 45%; height: auto; aspect-ratio: 624 / 281 !important; padding-left: 2.0em; padding-right: 1.0em; }
  .section-header--skills { width: 45%; height: auto; aspect-ratio: 670 / 261 !important; padding-left: 0.8em; padding-right: 2.4em; }
  .section-header--craft  { width: 45%; height: auto; aspect-ratio: 560 / 256 !important; padding-left: 1.8em; padding-right: 0.8em; padding-bottom:0.3em;}
  .section-header--tech   { width: 45%; height: auto; aspect-ratio: 630 / 273 !important; padding-left: 1.0em; padding-right: 2.1em; }

  /* Themes mobile */
  .section-header--themes { width: 60%; height: 100%; aspect-ratio: 656 / 268 !important; height: auto !important; }

  .activity-subheadline {
    font-size: 16px;
    white-space: normal;
    padding-right: var(--spacing-5);
  }

  .carousel-caption {
    font-size: 18px;
  }

  .carousel-prev,
  .carousel-next {
    width: 36px;
    height: 36px;
    font-size: 18px;
  }
}
/* ============================================================
   Getting Here Section
   ============================================================ */

#getting-here {
  background: #EFF6FF;
  padding: 80px 0;
}


.getting-here-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--spacing-12);
  align-items: center;
}

.getting-here-info {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-6);
  /* Left padding on the info column only */
  padding-left: var(--spacing-24);
}

.getting-here-header {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
  margin-bottom: var(--spacing-2);
}

.section-header--getting-here {
  display: inline-flex;
  width: 40%;
  aspect-ratio: 1008 / 355;
  height: auto;
  font-size: 48px;
  padding: 0.2em 1.6em;
  background-size: 100% 100%;
  flex-shrink: 0;
}

.section-header--getting-here .badge-white { color: #fff; }
.section-header--getting-here .badge-yellow { color: var(--text-yellow); }
.section-header--getting-here .lang-zh,
.section-header--getting-here .lang-en { display: inline-block; padding-bottom: 0.1em; transform: rotate(-5deg); }

.getting-here-pin-icon {
  width: 60px;
  height: auto;
  flex-shrink: 0;
  transform: rotate(10deg);
}

.getting-here-item {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
}

.getting-here-icon {
  width: 28px;
  height: 28px;
  flex-shrink: 0;
  object-fit: contain;
  filter: invert(42%) sepia(93%) saturate(400%) hue-rotate(155deg) brightness(90%);
}

.getting-here-text {
  font-size: var(--text-2xl);
  font-weight: 700;
  color: var(--color-primary);
  line-height: 1.4;
}

.getting-here-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-4);
  margin-top: var(--spacing-2);
}

.btn-register {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-family);
  font-size: var(--text-md);
  font-weight: 700;
  color: #fff;
  background: var(--color-primary);
  border: 2px solid var(--color-primary);
  border-radius: var(--rounded-full);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-register:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
}

.btn-transport {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 32px;
  font-family: var(--font-family);
  font-size: var(--text-md);
  font-weight: 700;
  color: var(--color-primary);
  background: #fff;
  border: 2px solid var(--color-primary);
  border-radius: var(--rounded-full);
  text-decoration: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.btn-transport:hover {
  background: var(--color-secondary);
  border-color: var(--color-secondary);
  color: #fff;
}

.getting-here-map-col {
  min-width: 0;
  padding-left: var(--spacing-6);
}

.getting-here-map-frame {
  border-left: 20px solid var(--color-secondary);
  border-top: 20px solid var(--color-secondary);
  border-bottom: 20px solid var(--color-secondary);
  border-right: none;
  border-radius: 96px 0 0 400px;
  overflow: hidden;
  line-height: 0;
}

.getting-here-map-frame img {
  width: 100%;
  height: 520px;
  object-fit: cover;
  display: block;
}

.map-credit {
  font-size: 16px;
  color: var(--text-body);
  text-align: right;
  margin-top: var(--spacing-2);
  padding-right: var(--spacing-4);
}

@media (min-width: 768px) and (max-width: 1023px) {
  .getting-here-info {
    padding-left: var(--spacing-8);
  }

  .section-header--getting-here {
    width: 70%;
    font-size: 32px;
  }

  .getting-here-grid {
    gap: var(--spacing-8);
  }

  .getting-here-text {
    font-size: var(--text-xl);
  }

  .getting-here-map-frame img {
    height: 520px;
  }
}

@media (max-width: 767px) {
  #getting-here {
    padding: 60px 0;
  }

  .getting-here-info {
    padding-left: var(--spacing-5);
    padding-right: var(--spacing-5);
    align-items: flex-start;
    gap: var(--spacing-5);
    width: fit-content;
    margin: 0 auto;
  }

  .getting-here-grid {
    grid-template-columns: 1fr;
    gap: var(--spacing-8);
    width: 100%;
  }

  .getting-here-header {
    justify-content: center;
    width: 100%;
  }

  .section-header--getting-here {
    width: 132px;
    font-size: 24px;
    display: inline-flex;
    aspect-ratio: 480 / 255;
    height: auto;
    padding: 0.2em 1.2em;
    background-size: 100% 100%;
    flex-shrink: 0;
  }

  .getting-here-pin-icon {
    width: 52px;
  }

  .getting-here-item {
    justify-content: flex-start;
  }

  .getting-here-text {
    font-size: var(--text-xl);
  }

  .getting-here-buttons {
    flex-direction: column;
    width: 100%;
    gap: var(--spacing-3);
  }

  .btn-register,
  .btn-transport {
    width: 100%;
    font-size: var(--text-lg);
    padding: 16px 24px;
  }

  .getting-here-map-frame {
    border-radius: 60px 0 0 200px;
    border-left-width: 12px;
    border-top-width: 12px;
    border-bottom-width: 12px;
  }

  .getting-here-map-frame img {
    height: 400px;
  }
}

/* ============================================================
   Past Event / Recap Section
   ============================================================ */

#recap {
  background: #FFFFFF;
  padding: 80px var(--spacing-5);
}

.recap-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--spacing-10);
}

.recap-header {
  display: flex;
  justify-content: center;
  padding-bottom: var(--spacing-10);
}

.section-header--recap {
  font-size: 48px;
  background-size: 100% 100%;
  background-position: center center;
  width: 80%;
  aspect-ratio: 1008 / 355;
  height: auto;
  padding: 0.25em 1.6em;
}

.section-header--recap .badge-white { color: #fff; }
.section-header--recap .badge-yellow { color: var(--text-yellow); }
.section-header--recap .lang-zh,
.section-header--recap .lang-en {
  display: inline-block;
  transform: rotate(-4deg);
}

.recap-video-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
}

/* Play-button overlay via pseudo-element */
.recap-link {
  position: relative;
  display: inline-block;
  border-radius: var(--rounded-2xl);
  overflow: hidden;
  box-shadow: 0 8px 32px rgba(252, 38, 38, 0.15);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.recap-link:hover {
  transform: scale(1.02);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.22);
}

.recap-link img {
  display: block;
  width: 100%;
  max-width: 800px;
  height: auto;
}

.recap-link::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  background: rgba(255, 0, 0, 1);
  border-radius: 50%;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='white'%3E%3Cpath d='M8 5v14l11-7z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 40px 40px;
  transition: background-color 0.2s ease;
  pointer-events: none;
}

.recap-link:hover::after {
  background-color: rgba(255, 0, 0, 0.85);
}

/* ── Responsive: Mobile (<768px) ────────────────────────────── */
@media (max-width: 767px) {
  #recap {
    padding: 60px var(--spacing-5);
  }

  .section-header--recap {
    font-size: 24px;
    width: 80%;
    aspect-ratio: 480 / 255;
  }

  .recap-link::after {
    width: 52px;
    height: 52px;
    background-size: 28px 28px;
  }
}

/* ============================================================
   Footer
   ============================================================ */

#footer {
  background: #FFFFFF;
  margin: 0 0;
  padding: var(--spacing-10) var(--spacing-24);
}

.footer-inner {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
}

.footer-left {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-6);
}

.footer-logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
}

.footer-logo-link img {
  height: 48px;
  width: auto;
}

.footer-meta {
  display: flex;
  align-items: center;
  gap: var(--spacing-3);
  font-size: var(--text-sm);
  color: var(--text-primary);
}

.footer-meta a {
  color: var(--text-primary);
  text-decoration: none;
}

.footer-meta a:hover {
  text-decoration: underline;
}

.footer-divider {
  color: var(--color-secondary);
}

.footer-social {
  display: flex;
  align-items: center;
  gap: var(--spacing-4);
}

.footer-social a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: opacity 0.2s ease, transform 0.2s ease;
  flex-shrink: 0;
}

.footer-social a:hover {
  transform: scale(1.1);
}

.footer-social-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  background: var(--color-primary);
  border-radius: 50%;
  transition: background 0.2s ease;
}

.footer-social-icon img {
  width: 24px;
  height: 24px;
  /* white icon */
  filter: brightness(0) invert(1);
  transition: filter 0.2s ease;
}

.footer-social a:hover .footer-social-icon img {
  /* secondary color (#00ADC6) icon on hover */
  filter: brightness(0) saturate(100%) invert(55%) sepia(80%) saturate(500%) hue-rotate(155deg) brightness(100%);
}

.footer-social a:hover .footer-social-icon--youtube rect {
  fill: var(--color-secondary);
}

/* YouTube SVG has its own colors — skip the white filter */
.footer-social-icon--youtube img {
  filter: none;
}

.footer-social a:hover .footer-social-icon--youtube img {
  /* tint to secondary cyan on hover */
  filter: brightness(0) saturate(100%) invert(55%) sepia(80%) saturate(500%) hue-rotate(155deg) brightness(100%);
}

/* YouTube inline SVG hover: bg → cyan, play triangle stays navy */
.footer-social-icon--youtube .yt-bg,
.footer-social-icon--youtube .yt-play {
  transition: fill 0.2s ease;
}

.footer-social a:hover .footer-social-icon--youtube .yt-bg {
  fill: var(--color-secondary);
}

.footer-social a:hover .footer-social-icon--youtube .yt-play {
  fill: var(--color-primary);
}

/* ── Responsive: Tablet (768px–1023px) ────────────────────── */
@media (min-width: 768px) and (max-width: 1023px) {
  #footer {
    padding: var(--spacing-10) var(--spacing-8);
  }
}

/* ── Responsive: Mobile (<768px) ────────────────────────────── */
@media (max-width: 767px) {
  #footer {
    padding: var(--spacing-10) var(--spacing-5);
  }

  .footer-inner {
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-6);
  }

  .footer-left {
    align-items: center;
    order: 1;
    width: 100%;
  }

  .footer-social {
    order: 2;
  }

  .footer-logo-link {
    display: flex;
    justify-content: center;
  }

  .footer-logo-link img {
    height: 40px;
  }

  .footer-meta {
    flex-wrap: wrap;
    justify-content: center;
    gap: var(--spacing-2);
  }

  .footer-copyright {
    width: 100%;
    text-align: center;
  }

  .footer-divider--hide-mobile {
    display: none;
  }

  .footer-social-icon {
    width: 40px;
    height: 40px;
  }

  .footer-social-icon img {
    width: 20px;
    height: 20px;
  }

  .footer-social svg {
    width: 38px;
    height: 38px;
  }
}

/* ============================================================
   English version — Desktop font size overrides
   ============================================================ */
@media (min-width: 1024px) {

  /* Section header badges */
  [data-lang="en"] .section-header { font-size: 36px !important; }
  [data-lang="en"] .section-header--themes { font-size: 36px !important; }
  [data-lang="en"] .section-header--getting-here { font-size: 36px !important; }
  [data-lang="en"] .section-header--recap { font-size: 36px !important; }

  /* About heading badge */
  [data-lang="en"] .about-heading-badge { font-size: 36px !important; }

  /* Subheadlines */
  [data-lang="en"] .themes-subheadline { font-size: 20px !important; }
  [data-lang="en"] .activity-subheadline { font-size: 20px !important; white-space: normal; }

  /* About cards — desktop keeps side-by-side layout for EN */
  [data-lang="en"] .about-card-label { font-size: 20px !important; }
  [data-lang="en"] .about-card-sublabel { font-size: 15px !important; }

  /* About body text */
  [data-lang="en"] .about-body-desc { font-size: 18px !important; font-weight: 500 !important; }
  [data-lang="en"] .about-body-highlight { font-size: 24px !important; font-weight: 700 !important; }

  /* Hero card */
  [data-lang="en"] .hero-card-datetime { font-size: 24px !important; }
  [data-lang="en"] .hero-card-venue { font-size: 18px !important; }

  /* Theme cards */
  [data-lang="en"] .theme-card-name { font-size: 24px !important; }
  [data-lang="en"] .theme-card-desc { font-size: 18px !important; }

  /* Activity carousel captions */
  [data-lang="en"] .carousel-caption { font-size: 18px !important; }

  /* Getting here info text */
  [data-lang="en"] .getting-here-text { font-size: 24px !important; }

  /* Section header widths — English text is wider than Chinese */
  [data-lang="en"] .section-header--themes       { width: 50%; }
  [data-lang="en"] .section-header--health       { width: 25%; }
  [data-lang="en"] .section-header--skills       { width: 25%; }
  [data-lang="en"] .section-header--craft        { width: 25%; }
  [data-lang="en"] .section-header--tech         { width: 26%; }
  [data-lang="en"] .section-header--getting-here { width: 40%; }
  [data-lang="en"] .section-header--recap        { width: 88%; }
}

/* ============================================================
   English version — Tablet font size overrides (768px–1023px)
   ============================================================ */
@media (min-width: 768px) and (max-width: 1023px) {

  /* About heading badge */
  [data-lang="en"] .about-heading-badge { font-size: 32px !important; }

  /* Section headers → 24px */
  [data-lang="en"] .section-header { font-size: 32px !important; }
  [data-lang="en"] .section-header--themes { font-size: 32px !important; }
  [data-lang="en"] .section-header--getting-here { font-size: 32px !important; }
  [data-lang="en"] .section-header--recap { font-size: 32px !important; }

  /* Subheadlines → 18px */
  [data-lang="en"] .themes-subheadline { font-size: var(--text-lg) !important; }
  [data-lang="en"] .activity-subheadline { font-size: var(--text-lg) !important; white-space: normal; }

  /* Theme card names → 24px */
  [data-lang="en"] .theme-card-name { font-size: var(--text-2xl) !important; }
  [data-lang="en"] .theme-card-desc { font-size: var(--text-lg) !important; }

  /* Activity carousel captions → 24px */
  [data-lang="en"] .carousel-caption { font-size: var(--text-xl) !important; }

   /* About body text */
  [data-lang="en"] .about-body-desc { font-size: 18px !important; font-weight: 500 !important; }
  [data-lang="en"] .about-body-highlight { font-size: 24px !important; font-weight: 700 !important; }

  /* Body text → 18px */
  [data-lang="en"] .getting-here-text { font-size: var(--text-lg) !important; }

  /* Section header widths for tablet — English needs wider containers */
  [data-lang="en"] .section-header--themes       { width: 50%; }
  [data-lang="en"] .section-header--health       { width: 55%; }
  [data-lang="en"] .section-header--skills       { width: 55%; }
  [data-lang="en"] .section-header--craft        { width: 55%; }
  [data-lang="en"] .section-header--tech         { width: 55%; }
  [data-lang="en"] .section-header--getting-here { width: 320px; }
  [data-lang="en"] .section-header--recap        { width: 90%; }
}
