/* StarWish International Foundation — Global Stylesheet */

@import url('https://fonts.googleapis.com/css2?family=Fraunces:ital,opsz,wght@0,9..144,400;0,9..144,500;0,9..144,600;0,9..144,700;1,9..144,500;1,9..144,600&family=Work+Sans:wght@400;500;600;700;800&family=Noto+Sans+SC:wght@400;500;600;700;800&display=swap');

:root {
  /* StarWish — "Starlight" palette: the brand's own name (a night sky you wish
     on) as the design concept, not a swappable warm-nonprofit default.
     Night Navy anchors dark moments · Star Gold is the literal brand accent ·
     Wish Coral is used sparingly, only for rare joyful highlights. */
  --navy: #1B2E63;          /* mid royal blue — links, small accents */
  --navy-deep: #0B1E42;     /* Night Navy — headings, hero overlay, dark bands */
  --navy-soft: #2B4A8F;     /* secondary blue — gradients on dark bands */
  --gold: #D4AF37;          /* Star Gold — primary CTA, brand moments */
  --gold-bright: #E6C766;   /* hover / brighter gold */
  --gold-soft: #F1E4B8;     /* soft gold fill */
  --coral: #E1794F;         /* Wish Coral — the one joyful accent, used sparingly */
  --coral-soft: #F6D9C9;    /* soft coral fill */
  --orange: var(--coral);
  --orange-soft: var(--coral-soft);
  --purple: #5B7FD6;        /* soft blue — icon-chip variety only */
  --purple-soft: #CFDCF4;
  --earth-blue: #3E6E8E;    /* earth blue — language switcher accent */
  --cream: #FBF8F2;         /* Paper — warm page background */
  --cream-warm: #F3EEE3;    /* warm alt-section background */
  --cream-deep: #E6DFD0;    /* warm hairline / border */

  /* Donation giving-type palette — three light pastel families, each with a
     faint tint (inactive tab), a light tint (active tab / panel body) and a
     deeper tint (option cards). Deliberately outside the core brand trio so
     the three types read as unmistakably different at a glance. */
  --peach-0: #FBF1E8; --peach-1: #F7E3D3; --peach-2: #EFC9A6;
  --sage-0: #F0F5EF; --sage-1: #D7E4D5; --sage-2: #B9D3B4;
  --lavender-0: #F3EFF7; --lavender-1: #EAE1F2; --lavender-2: #D2BEE8;
  --text: #1B1F2B;          /* Ink — primary text */
  --text-muted: #5B5548;    /* Stone — secondary text */
  --text-light: #9C9587;    /* light Stone — tertiary/hint text */
  --white: #FFFFFF;
  --shadow-sm: 0 2px 10px rgba(11, 30, 66, 0.06);
  --shadow-md: 0 10px 28px rgba(11, 30, 66, 0.10);
  --shadow-lg: 0 24px 56px rgba(11, 30, 66, 0.14);
  --radius-sm: 4px;
  --radius-md: 10px;
  --radius-lg: 18px;
  --font-serif-en: 'Fraunces', 'Noto Sans SC', Georgia, serif;
  --font-serif-zh: 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', sans-serif;
  --font-sans: 'Work Sans', 'Noto Sans SC', 'PingFang SC', 'Microsoft YaHei', -apple-system, BlinkMacSystemFont, sans-serif;
  --container: 1200px;
  --container-wide: 1360px;
  --container-narrow: 900px;
}

/* ============ Reset ============ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-sans);
  color: var(--text);
  background: var(--cream);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; transition: color 0.2s; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }
ul { list-style: none; }

/* ============ Language Toggle ============ */
body[data-lang="en"] .zh-only { display: none !important; }
body[data-lang="zh"] .en-only { display: none !important; }
body[data-lang="zh"] { font-family: var(--font-sans); }

.lang-toggle {
  display: inline-flex;
  border: 1px solid var(--cream-deep);
  border-radius: 999px;
  overflow: hidden;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.05em;
}
.lang-toggle button {
  padding: 6px 14px;
  color: var(--text-muted);
  transition: all 0.2s;
}
.lang-toggle button.active { background: var(--earth-blue); color: #fff; }
.lang-toggle button:hover:not(.active) { color: var(--earth-blue); }

/* ============ Typography ============ */
h1, h2, h3, h4 { color: var(--navy-deep); font-weight: 600; line-height: 1.25; }

body[data-lang="en"] h1, body[data-lang="en"] h2, body[data-lang="en"] h3 {
  font-family: var(--font-serif-en);
  letter-spacing: -0.01em;
}
body[data-lang="zh"] h1, body[data-lang="zh"] h2, body[data-lang="zh"] h3 {
  font-family: var(--font-serif-zh);
  font-weight: 600;
  letter-spacing: 0.02em;
}

h1 { font-size: clamp(2.4rem, 5vw, 4rem); }
h2 { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
h3 { font-size: clamp(1.25rem, 2vw, 1.6rem); }
h4 { font-size: 1.1rem; font-weight: 600; }

p { color: var(--text-muted); line-height: 1.8; }
body[data-lang="zh"] p { line-height: 1.85; }

.eyebrow {
  display: inline-block;
  font-family: var(--font-serif-en);
  font-style: italic;
  font-weight: 500;
  font-size: 17px;
  letter-spacing: 0;
  color: var(--coral);
  margin-bottom: 14px;
}
body[data-lang="zh"] .eyebrow { font-style: normal; font-weight: 600; letter-spacing: 0.03em; }

.section-title { margin-bottom: 16px; }
.section-subtitle {
  max-width: 720px;
  font-size: 1.05rem;
  color: var(--text-muted);
  margin-bottom: 56px;
}

/* ============ Layout ============ */
.container { max-width: var(--container); margin: 0 auto; padding: 0 32px; }
.container-wide { max-width: var(--container-wide); margin: 0 auto; padding: 0 32px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 32px; }
section { padding: 100px 0; }
.section-cream { background: var(--cream-warm); }
.section-navy { background: var(--navy-deep); color: var(--cream); }
.section-navy h1, .section-navy h2, .section-navy h3 { color: #fff; }
.section-navy p { color: rgba(250, 246, 238, 0.78); }
.section-navy .eyebrow { color: #F0B69B; }

/* Seam: a hairline border for when two adjacent sections would
   otherwise share the same background with no visible boundary
   between them. */
.section-seam { border-top: 1px solid var(--cream-deep); }
.section-navy.section-seam, .site-footer.section-seam { border-top-color: rgba(255,255,255,0.08); }

/* ============ Navigation ============ */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  padding: 12px 0;
  transition: all 0.3s ease;
  background: #fff;
  box-shadow: 0 1px 0 rgba(2,19,64,0.06);
}
.site-nav.scrolled {
  padding: 10px 0;
  box-shadow: var(--shadow-sm);
}
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  max-width: var(--container-wide);
  margin: 0 auto;
  padding: 0 32px;
}
.nav-brand {
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.nav-brand .brand-logo {
  height: 72px; width: auto;
  flex-shrink: 0;
  transition: height 0.3s ease;
  transform-origin: left center;
  animation: logo-in 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.site-nav.scrolled .nav-brand .brand-logo { height: 58px; }
@keyframes logo-in {
  0%   { opacity: 0; transform: scale(0.4) translateX(-12px); }
  65%  { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
.brand-slogan {
  margin-left: 16px; padding-left: 16px;
  border-left: 2px solid var(--gold);
  font-family: var(--font-serif-en);
  font-style: italic; font-weight: 500;
  font-size: 13.5px; line-height: 1.5;
  color: var(--navy);
  max-width: 250px;
  animation: slogan-in 0.7s ease 0.5s both;
}
body[data-lang="zh"] .brand-slogan { font-style: normal; letter-spacing: 0.06em; }
@keyframes slogan-in {
  from { opacity: 0; transform: translateX(-10px); }
  to   { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  .nav-brand .brand-logo, .brand-slogan { animation: none; }
}

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 13px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-muted);
  letter-spacing: 0.01em;
  border-radius: 6px;
  transition: all 0.2s;
}
.nav-links a:hover { color: var(--navy); }
.nav-links a.active { color: var(--gold); }

.nav-right { display: flex; align-items: center; gap: 18px; flex-shrink: 0; }
.nav-toggle { display: none; }

/* Below this, the 9-link nav + Donate + language toggle no longer fit
   next to the logo without squeezing it — collapse to the hamburger
   menu well before that cramped zone instead of letting flexbox
   shrink the logo. */
@media (max-width: 1180px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: flex; flex-direction: column; gap: 4px;
    width: 32px; height: 32px;
    align-items: center; justify-content: center;
  }
  .nav-toggle span { width: 22px; height: 2px; background: var(--navy); border-radius: 2px; }
  .nav-links.open {
    display: flex; flex-direction: column;
    position: absolute; top: 100%; left: 16px; right: 16px;
    background: #fff;
    border-radius: var(--radius-md);
    padding: 16px;
    margin-top: 8px;
    box-shadow: var(--shadow-lg);
    gap: 0;
  }
  .nav-links.open a { color: var(--text); padding: 12px 16px; border-radius: 6px; width: 100%; }
}

/* ============ Buttons ============ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 30px;
  font-size: 14.5px; font-weight: 600;
  border-radius: 999px;
  letter-spacing: 0.01em;
  transition: all 0.25s ease;
  cursor: pointer;
}
body[data-lang="zh"] .btn { letter-spacing: 0; }
.btn-primary { background: var(--gold); color: #fff; }
.btn-primary:hover { background: var(--gold-bright); transform: translateY(-2px); box-shadow: var(--shadow-md); }
.btn-secondary { background: var(--white); color: var(--navy-deep); border: 1px solid var(--cream-deep); }
.btn-secondary:hover { background: var(--cream-warm); transform: translateY(-2px); }
.btn-outline {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.4);
}
.btn-outline:hover { background: rgba(255,255,255,0.1); border-color: #fff; }
.btn-arrow:hover { letter-spacing: 0.03em; }
.btn-large { padding: 16px 36px; font-size: 16px; }
.btn-row { display: flex; gap: 14px; flex-wrap: wrap; }

/* ============ Hero ============ */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex; align-items: center;
  padding: 140px 0 100px;
  color: #fff;
  overflow: hidden;
}
.hero-bg {
  position: absolute; inset: 0;
  background-size: cover; background-position: center;
  z-index: -2;
}
.hero-overlay {
  position: absolute; inset: 0;
  background: rgba(7, 33, 94, 0.55);
  z-index: -1;
}
.hero-content { max-width: 880px; }
.hero h1 { color: #fff; margin-bottom: 24px; font-weight: 700; }
.hero h1 .hl { color: var(--gold); }
.hero p.lead {
  font-size: 1.15rem;
  color: rgba(255,255,255,0.88);
  max-width: 680px;
  margin-bottom: 40px;
  line-height: 1.75;
}
.hero .eyebrow { color: #F0B69B; }

.hero-small {
  min-height: 56vh;
  padding: 160px 0 80px;
}

/* A photo banner under the fixed nav, for heroes whose photo carries its own text */
.page-banner { padding: 96px 0 0; background: var(--cream); }
.page-banner img { display: block; width: 100%; height: auto; }
/* A title over the empty left part of a banner photo; below the photo on a phone */
.page-banner-frame { position: relative; }
.page-banner-text { position: absolute; left: 4.5%; top: 9%; width: 38%; }
.page-banner-text .eyebrow { font-size: max(13px, 1.15vw); margin-bottom: 0.6vw; }
.page-banner-text h1 { font-size: 2.5vw; line-height: 1.15; color: var(--navy-deep); margin: 0; }
.page-banner-text h1 .hl { color: var(--coral); }
.page-banner-home .page-banner-text h1 { font-size: 3.4vw; }
.page-banner-lead { margin-top: 28px; text-align: center; }
.page-banner-lead .lead { font-size: 1.15rem; line-height: 1.6; max-width: 760px; margin: 0 auto; color: var(--text-muted); }
@media (max-width: 720px) {
  .page-banner { padding-top: 78px; }
  .page-banner-text { position: static; width: auto; padding: 32px 24px 0; }
  .page-banner-text .eyebrow { font-size: 14px; margin-bottom: 8px; }
  .page-banner-text h1 { font-size: 30px; }
  .page-banner-home .page-banner-text h1 { font-size: 36px; }
}

/* ============ Cards ============ */
.card {
  background: #fff;
  border-radius: var(--radius-md);
  overflow: hidden;
  border: 1px solid var(--cream-deep);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-md); border-color: transparent; }
.card-img {
  aspect-ratio: 16 / 10;
  background-size: cover; background-position: center;
}
.card-img-tall { aspect-ratio: 4 / 5; }
.card-body { padding: 28px 26px; flex: 1; display: flex; flex-direction: column; }
.card-eyebrow {
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.01em;
  color: var(--navy-soft);
  margin-bottom: 10px;
}
.card h3 { margin-bottom: 10px; font-size: 1.3rem; }
.card p { font-size: 0.96rem; line-height: 1.7; }
.card-link {
  margin-top: 18px;
  font-size: 14px; font-weight: 600;
  color: var(--navy);
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.card-link:hover { color: var(--coral); text-decoration: underline; }

/* Grid */
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 32px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.grid-5 { display: grid; grid-template-columns: repeat(5, 1fr); gap: 20px; }
.grid-5 .card-body { padding: 20px 18px; }
.grid-5 .card h3 { font-size: 1.02rem; }
.grid-5 .card p { font-size: 0.86rem; line-height: 1.6; }
.grid-asym { display: grid; grid-template-columns: 1fr 1.5fr; gap: 60px; align-items: center; }

/* Program card variant — colored */
.program-card {
  position: relative;
  padding: 36px 32px;
  background: #fff;
  border-radius: var(--radius-md);
  border: 1px solid var(--cream-deep);
  transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.program-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--gold-soft); }
.program-card .icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px;
  margin-bottom: 22px;
  color: var(--navy-deep);
}
.program-card .icon-gold { background: var(--gold-soft); }
.program-card .icon-orange { background: var(--orange-soft); }
.program-card .icon-purple { background: var(--purple-soft); }
.program-card .icon-cream { background: var(--cream-deep); }
.program-card .icon-navy { background: var(--navy-deep); color: var(--gold-bright); }
.program-card .num {
  position: absolute; top: 24px; right: 28px;
  font-family: var(--font-serif-en);
  font-size: 32px; font-weight: 400;
  color: var(--cream-deep);
}

/* ============ Stats ============ */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 0;
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.stat {
  padding: 48px 28px;
  text-align: center;
  border-right: 1px solid rgba(255,255,255,0.08);
  color: #fff;
}
.stat:last-child { border-right: none; }
.stat-num {
  font-family: var(--font-serif-en);
  font-size: clamp(2.6rem, 4vw, 3.6rem);
  font-weight: 500;
  color: var(--gold-bright);
  line-height: 1;
  margin-bottom: 10px;
}
.stat-label {
  font-size: 14px;
  letter-spacing: 0.01em;
  color: rgba(255,255,255,0.75);
}
body[data-lang="zh"] .stat-label { font-size: 14px; }

/* ============ Forms ============ */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; }
.form-row { display: flex; flex-direction: column; gap: 8px; }
.form-row label {
  font-size: 13px;
  font-weight: 600;
  color: var(--navy-deep);
  letter-spacing: 0.03em;
}
.form-row input, .form-row select, .form-row textarea {
  font-family: inherit;
  font-size: 15px;
  padding: 12px 16px;
  border: 1px solid var(--cream-deep);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  transition: border-color 0.2s;
}
.form-row input:focus, .form-row select:focus, .form-row textarea:focus {
  outline: none; border-color: var(--gold);
}
.form-row textarea { resize: vertical; min-height: 110px; }
.form-row.full { grid-column: 1 / -1; }
.form-row .hint { font-size: 12px; color: var(--text-light); }
.form-card {
  background: #fff;
  padding: 48px;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
}

/* ============ Donation tiers ============ */
.give-box {
  max-width: 900px;
  margin: 0 auto;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.give-panels { display: flex; }

/* Tab head: the three tab labels joined into one bar, no gaps.
   Each keeps its own pastel family always — the faint tint when inactive,
   the fuller tint when active — so the active tab still reads as "lit up"
   and flows straight into its matching option body below. */
.give-tabs { display: flex; }
.give-tab {
  flex: 1;
  font-family: var(--font-serif-en);
  font-size: 23px; font-weight: 700;
  letter-spacing: -0.01em;
  padding: 24px 18px;
  border: none;
  color: var(--navy-deep);
  cursor: pointer;
  transition: background-color 0.2s, opacity 0.2s;
}
body[data-lang="zh"] .give-tab { font-family: var(--font-serif-zh); letter-spacing: 0; }
.give-tab[data-tab="onetime"] { background: var(--peach-0); }
.give-tab[data-tab="monthly"] { background: var(--sage-0); }
.give-tab[data-tab="sponsor"] { background: var(--lavender-0); }
.give-tab:not(.active) { opacity: 0.6; }
.give-tab:not(.active):hover { opacity: 0.85; }
.give-tab.active[data-tab="onetime"] { background: var(--peach-1); opacity: 1; }
.give-tab.active[data-tab="monthly"] { background: var(--sage-1); opacity: 1; }
.give-tab.active[data-tab="sponsor"] { background: var(--lavender-1); opacity: 1; }

/* Option body: same light family as its active tab label, joined directly
   beneath it. Each group is a two-tier pastel palette — a body tint, and a
   visibly deeper "option" tint for the amount cards sitting on top of it —
   with a deep ink from the group's own family for strong contrast on both tiers. */
.give-panel { padding: 32px 36px 36px; flex: 1; --panel-fg: var(--navy-deep); --panel-fg-dim: #3A4358; }
.give-panel-onetime { background: var(--peach-1); --panel-option: var(--peach-2); --panel-option-hover: #E8BC93; --panel-fg: #2F2018; --panel-fg-dim: #52392B; --card-fg: #241811; --card-fg-dim: #3C2D24; }
.give-panel-monthly { background: var(--sage-1); --panel-option: var(--sage-2); --panel-option-hover: #A9C9A2; --panel-fg: #1A2A1C; --panel-fg-dim: #2C3F2D; --card-fg: #142116; --card-fg-dim: #1E321F; }
.give-panel-sponsor { background: var(--lavender-1); --panel-option: var(--lavender-2); --panel-option-hover: #C3ABDE; --panel-fg: #261E33; --panel-fg-dim: #44375C; --card-fg: #1C1628; --card-fg-dim: #2D253D; }
/* Text on the deeper amount cards gets its own, darker and less saturated
   ink, so it reads as clearly there as on the pale body. */
.give-panel .amount-row { --panel-fg: var(--card-fg); --panel-fg-dim: var(--card-fg-dim); }

.give-panel .give-column-sub { font-size: 16px; color: var(--panel-fg-dim); margin-bottom: 24px; }
.give-column-sub.center { text-align: center; }

.amount-list { display: flex; flex-direction: column; gap: 12px; border: none; padding: 0; margin: 0; }
.amount-row {
  display: flex; align-items: center; gap: 14px;
  width: 100%;
  padding: 14px 16px;
  border: 1px solid rgba(11,30,66,0.08);
  border-radius: var(--radius-md);
  background: var(--panel-option);
  font-family: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.2s, transform 0.2s, box-shadow 0.2s, background-color 0.2s;
}
.amount-row:hover, .amount-row:focus-visible {
  background: var(--panel-option-hover);
  border-color: rgba(11,30,66,0.18);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  outline: none;
}
.amount-row:active { transform: translateY(0); }
.amount-icon {
  flex: none;
  width: 40px; height: 40px;
  border-radius: 11px;
  display: flex; align-items: center; justify-content: center;
  font-size: 16px;
  background: rgba(255,255,255,0.7);
  color: var(--panel-fg);
}
.amount-icon svg { width: 22px; height: 22px; stroke: var(--panel-fg); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.amount-info { flex: 1; min-width: 0; text-align: left; display: block; }
.amount-value { display: block; font-family: var(--font-serif-en); font-size: 1.25rem; font-weight: 600; color: var(--panel-fg); }
.amount-period { font-size: 0.7rem; font-weight: 400; color: var(--panel-fg-dim); margin-left: 2px; }
.amount-desc { display: block; font-size: 14.5px; font-weight: 500; color: var(--panel-fg-dim); margin-top: 2px; line-height: 1.4; }
/* Cancel: the same card and inks as the gift options, marked by red only
   as an accent: the filled heart and a deep wine-red title (large text only). */
.amount-row-cancel { margin-top: 12px; text-decoration: none; }
.amount-row-cancel .amount-value { font-weight: 600; color: #5E1A1C; }
.amount-row-cancel .amount-icon svg { stroke: #D62828; fill: #D62828; }

.sponsor-inner {
  display: flex; align-items: center; justify-content: space-between; gap: 28px;
  flex-wrap: wrap;
}
.sponsor-inner h3 { color: var(--panel-fg); margin: 0 0 8px; }
.sponsor-inner p { color: var(--panel-fg-dim); margin: 0; max-width: 480px; }

/* ============ Timeline / Events ============ */
.event {
  display: grid;
  grid-template-columns: 140px 1fr auto;
  gap: 32px;
  padding: 32px 0;
  border-bottom: 1px solid var(--cream-deep);
  align-items: center;
}
.event:last-child { border-bottom: none; }
.event-date {
  font-family: var(--font-serif-en);
  text-align: center;
  color: var(--navy-deep);
}
.event-date .day { display: block; font-size: 2.4rem; font-weight: 500; line-height: 1; }
.event-date .month {
  display: block;
  font-size: 13px;
  letter-spacing: 0.02em;
  margin-top: 6px;
  color: var(--gold);
  font-family: var(--font-sans);
  font-weight: 700;
}
.event-meta {
  font-size: 13px;
  color: var(--text-light);
  margin-bottom: 6px;
  letter-spacing: 0.03em;
}
.event h3 { font-size: 1.25rem; margin-bottom: 8px; }
.event p { font-size: 0.95rem; }

/* ============ Gallery ============ */
.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-flow: dense;
  gap: 12px;
}
.gallery-item {
  display: block;
  width: 100%; height: 100%;
  aspect-ratio: 1;
  background-size: cover; background-position: center;
  background-color: var(--cream-warm);
  border-radius: var(--radius-sm);
  transition: transform 0.3s, opacity 0.4s;
  cursor: pointer;
  padding: 0; margin: 0;
}
.gallery-item:hover { transform: scale(1.03); }
.gallery-item.fading { opacity: 0; }
.gallery-item.span-2 { grid-column: span 2; aspect-ratio: 2 / 1; }
.gallery-item.span-2-tall { grid-row: span 2; aspect-ratio: 1 / 2; }
.gallery-item.gallery-empty { border: 1px dashed var(--cream-deep); cursor: default; }
.gallery-item.gallery-empty:hover { transform: none; }
/* Gallery with fewer photos than tiles (set by the gallery script): use the 4-tile, 3-column
   layout on desktop too, so no photo has to repeat (tablet/phone already show 4 tiles) */
@media (min-width: 981px) {
  .gallery.gallery-compact { grid-template-columns: repeat(3, 1fr); }
  .gallery.gallery-compact .gallery-item:nth-child(2),
  .gallery.gallery-compact .gallery-item:nth-child(3) { display: none; }
}

/* ============ Team ============ */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
}
.team-card { text-align: center; }
.team-photo {
  aspect-ratio: 1;
  background-size: cover; background-position: center;
  border-radius: 50%;
  margin-bottom: 18px;
  filter: grayscale(0.15);
  transition: filter 0.3s;
}
.team-card:hover .team-photo { filter: grayscale(0); }
.team-card h4 { color: var(--navy-deep); font-size: 1.1rem; margin-bottom: 4px; }
.team-card .role {
  font-size: 13px;
  color: var(--gold);
  font-weight: 600;
  letter-spacing: 0.05em;
}
/* Cards with a "Read Full Story" button: pin the button to the card bottom so the buttons
   line up across a row even when a role wraps onto two lines */
.team-card:has(.youth-bio-toggle) { display: flex; flex-direction: column; }
.team-card .youth-bio-toggle { margin-top: auto; align-self: center; }
.team-card:has(.youth-bio-toggle) .role { margin-bottom: 8px; }

/* ============ Values / Mission cells ============ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2px;
  background: var(--cream-deep);
  border-radius: var(--radius-md);
  overflow: hidden;
}
.value {
  background: #fff;
  padding: 40px 32px;
  text-align: center;
}
.value-icon {
  font-family: var(--font-serif-en);
  font-size: 2.4rem;
  font-weight: 400;
  color: var(--gold);
  margin-bottom: 14px;
  display: block;
}
.value h4 { color: var(--navy-deep); margin-bottom: 6px; font-size: 1.15rem; }
.value p { font-size: 0.92rem; line-height: 1.6; }

/* ============ Mission split ============ */
.mission-split {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  background: var(--navy-deep);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.mission-cell {
  padding: 48px 36px;
  color: #fff;
  border-right: 1px solid rgba(255,255,255,0.08);
}
.mission-cell:last-child { border-right: none; }
.mission-cell h3 { color: var(--gold-bright); font-size: 1.4rem; margin-bottom: 14px; }
.mission-cell p { color: rgba(255,255,255,0.78); font-size: 0.98rem; }

/* ============ Footer ============ */
.site-footer {
  background: var(--navy-deep);
  color: rgba(255,255,255,0.7);
  padding: 48px 0;
}
.footer-simple {
  display: flex; flex-direction: column; align-items: center;
  text-align: center;
}
.footer-simple .footer-desc { margin-left: auto; margin-right: auto; }
.footer-simple .footer-bottom {
  width: 100%;
  flex-direction: column; align-items: center;
  gap: 6px;
  margin-top: 40px;
}
.footer-brand {
  margin-bottom: 18px;
  display: flex; align-items: center; gap: 12px;
}
.footer-brand .brand-logo {
  height: 60px; width: auto;
  background: #fff;
  padding: 10px 16px;
  border-radius: 12px;
}
.footer-desc { font-size: 14px; line-height: 1.75; max-width: 400px; margin-bottom: 24px; }
.footer-socials { display: flex; align-items: center; gap: 12px; }
.footer-socials a {
  width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  border-radius: 50%;
  background: rgba(255,255,255,0.08);
  color: rgba(255,255,255,0.7);
  transition: all 0.2s;
}
.footer-socials a svg { width: 18px; height: 18px; }
.footer-socials a:hover { background: var(--gold); color: var(--navy-deep); }

/* QR card that pops up above a social icon: on hover/focus (desktop) or tap (WeChat, via .open).
   Closed cards are scaled to 0 (after fading) so they never widen the page; --qr-shift is set by
   main.js to keep an open card inside the viewport, and the arrow is shifted back to the icon. */
.social-qr { position: relative; }
.qr-card {
  position: absolute; bottom: calc(100% + 12px); left: 50%;
  transform: translate(-50%, 6px) scale(0); transform-origin: 50% 100%;
  width: 156px; padding: 10px 10px 8px;
  background: #fff; border-radius: 12px;
  box-shadow: 0 8px 28px rgba(11,30,66,0.28);
  text-align: center; font-size: 12px; line-height: 1.4; color: var(--navy-deep);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.18s, visibility 0.18s, transform 0s 0.18s;
  z-index: 20;
}
.qr-card::after {
  content: ""; position: absolute; top: 100%; left: 50%; margin-left: calc(-7px - var(--qr-shift, 0px));
  border: 7px solid transparent; border-top-color: #fff;
}
.qr-card img { display: block; width: 136px; height: 136px; object-fit: contain; margin: 0 auto 6px; }
.qr-card strong { display: block; font-weight: 600; }
/* Social icon with its name underneath */
.footer-socials:has(.social-label) { align-items: flex-start; }
.social-qr.labeled { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.social-label { max-width: 64px; font-size: 11px; line-height: 1.3; text-align: center; color: var(--text-muted); }
.site-footer .social-label { color: rgba(255,255,255,0.6); }
@media (hover: hover) {
  .social-qr:hover .qr-card { opacity: 1; visibility: visible; transform: translate(calc(-50% + var(--qr-shift, 0px)), 0); transition: opacity 0.18s, visibility 0.18s, transform 0.18s; }
}
.social-qr:focus-within .qr-card,
.social-qr.open .qr-card { opacity: 1; visibility: visible; transform: translate(calc(-50% + var(--qr-shift, 0px)), 0); transition: opacity 0.18s, visibility 0.18s, transform 0.18s; pointer-events: auto; }
.footer-bottom {
  padding-top: 28px;
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; align-items: center;
  font-size: 13px; color: rgba(255,255,255,0.5);
}

/* ============ Misc utilities ============ */
.center { text-align: center; }
.center-block { margin-left: auto; margin-right: auto; }
.mt-6 { margin-top: 48px; }
.mb-6 { margin-bottom: 48px; }
.divider {
  width: 60px; height: 2px;
  background: var(--gold);
  margin: 24px 0;
}
.divider.center { margin-left: auto; margin-right: auto; }

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.feature-row.reverse { direction: rtl; }
.feature-row.reverse > * { direction: ltr; }
.feature-img {
  aspect-ratio: 5 / 4;
  background-size: cover; background-position: center;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
}

.cta-banner {
  background: linear-gradient(135deg, var(--navy-deep) 0%, var(--navy-soft) 100%);
  color: #fff;
  padding: 80px 0;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-banner::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%; right: -10%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(225, 121, 79, 0.22) 0%, transparent 60%);
  pointer-events: none;
}

/* Quiet coral glow for a flat-navy section that's still the page's CTA
   moment — keeps one consistent dark tone across adjacent sections
   instead of switching to the cta-banner gradient. */
.glow-coral { position: relative; overflow: hidden; }
.glow-coral::before {
  content: '';
  position: absolute;
  top: -50%; left: -10%; right: -10%; height: 200%;
  background: radial-gradient(ellipse at center, rgba(225, 121, 79, 0.16) 0%, transparent 60%);
  pointer-events: none;
}
.glow-coral > .container { position: relative; }
.cta-banner h2 { color: #fff; margin-bottom: 16px; position: relative; }
.cta-banner p { color: rgba(255,255,255,0.85); max-width: 620px; margin: 0 auto 32px; position: relative; }
.cta-banner .btn-row { justify-content: center; position: relative; }

/* Star decoration */
.star-deco {
  position: absolute;
  pointer-events: none;
  opacity: 0.4;
}

/* ============ Feature strip (4-icon "what we do") ============ */
.feature-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
}
.feature-item {
  text-align: center;
  padding: 8px 32px;
  border-right: 1px solid var(--cream-deep);
}
.feature-item:last-child { border-right: none; }
.feat-icon {
  margin: 0 auto 18px;
  display: flex; align-items: center; justify-content: center;
}
.feat-icon svg { width: 46px; height: 46px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.feature-item h4 { color: var(--navy); font-size: 1.12rem; margin-bottom: 8px; }
.feature-item p { font-size: 0.92rem; line-height: 1.6; }

/* ============ Pillar strip (7 program pillars, bilingual, ref: official program graphic) ============ */
.pillar-strip {
  display: flex; flex-wrap: wrap; justify-content: center;
  row-gap: 52px;
}
.pillar {
  flex: 0 0 25%; max-width: 25%;
  padding: 0 20px; text-align: center;
}
.pillar .feat-icon { margin: 0 auto 16px; }
.pillar .feat-icon svg {
  width: 56px; height: 56px;
  stroke: var(--gold); fill: none;
  stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round;
}
.pillar h4 {
  font-family: var(--font-serif-en);
  color: var(--navy-deep); font-size: 1.08rem; font-weight: 600;
  letter-spacing: 0; text-transform: none;
  margin-bottom: 8px;
}
.pillar p {
  font-size: 0.95rem; color: var(--navy); opacity: 0.85;
  line-height: 1.75; max-width: 250px; margin: 0 auto;
}
@media (max-width: 1024px) { .pillar { flex: 0 0 33.333%; max-width: 33.333%; } }
@media (max-width: 700px)  { .pillar { flex: 0 0 50%; max-width: 50%; padding: 0 10px; } }

/* About section long-copy */
.about-copy p { font-size: 0.98rem; margin-bottom: 14px; }

/* Bio popup (e.g. youth volunteer "Read Full Story") */
.bio-modal-overlay {
  position: fixed; inset: 0;
  background: rgba(11, 30, 66, 0.72);
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  z-index: 200;
}
.bio-modal-overlay[hidden] { display: none; }
.bio-modal {
  position: relative;
  background: var(--cream);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: 100%;
  max-width: 720px;
  max-height: 85vh;
  overflow-y: auto;
  padding: 48px 44px 40px;
}
.bio-modal-close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: var(--cream-warm);
  border: none;
  color: var(--navy-deep);
  font-size: 20px;
  line-height: 1;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer;
  transition: background-color 0.2s;
}
.bio-modal-close:hover { background: var(--cream-deep); }
.bio-modal ul { list-style: disc; }
.bio-modal li { margin-bottom: 4px; }
@media (max-width: 720px) {
  .bio-modal { padding: 40px 24px 28px; max-height: 90vh; }
}
.about-slogan {
  font-family: var(--font-serif-en);
  font-style: italic; font-weight: 600;
  color: var(--navy); font-size: 1.08rem;
  margin-top: 4px;
}
body[data-lang="zh"] .about-slogan { font-style: normal; }

/* ============ Impact stats — light row (gold icon + navy number) ============ */
.impact-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.impact-item { text-align: center; }
.impact-item .feat-icon { margin: 0 auto 14px; }
.impact-item .feat-icon svg { width: 42px; height: 42px; stroke: var(--gold); fill: none; stroke-width: 1.5; }
.impact-num {
  font-family: var(--font-serif-en);
  font-size: clamp(2.3rem, 4vw, 3.1rem);
  font-weight: 700; color: var(--navy); line-height: 1; margin-bottom: 8px;
}
.impact-label { font-size: 14px; letter-spacing: 0.01em; color: var(--text-muted); }
body[data-lang="zh"] .impact-label { font-size: 14px; }

/* ============ Event image cards (date badge overlay) ============ */
.evt-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.evt-card {
  background: #fff; border-radius: var(--radius-md); overflow: hidden;
  border: 1px solid var(--cream-deep); transition: transform 0.3s, box-shadow 0.3s, border-color 0.3s;
}
.evt-card:hover { transform: translateY(-5px); box-shadow: var(--shadow-md); border-color: transparent; }
.evt-photo { position: relative; aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.evt-badge {
  position: absolute; top: 14px; left: 14px;
  background: var(--navy-deep); color: #fff;
  border-radius: 10px; padding: 8px 12px; text-align: center; line-height: 1;
}
.evt-badge .d { display: block; font-family: var(--font-serif-en); font-size: 1.5rem; font-weight: 700; }
.evt-badge .m { display: block; font-size: 11px; letter-spacing: 0.02em; margin-top: 3px; color: var(--gold-bright); font-weight: 700; }
.evt-body { padding: 20px 22px; }
.evt-body h3 { font-size: 1.15rem; margin-bottom: 6px; }
.evt-body .event-meta { margin-bottom: 0; }

/* ============ Story / media cards ============ */
.story-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  transition: box-shadow 0.3s;
}
.story-card:hover { box-shadow: var(--shadow-md); }
.story-card .story-img { aspect-ratio: 4 / 3; background-size: cover; background-position: center; transition: transform 0.4s; }
.story-card:hover .story-img { transform: scale(1.05); }
.story-card .play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 58px; height: 58px; border-radius: 50%;
  background: rgba(255,255,255,0.92);
  display: flex; align-items: center; justify-content: center;
  color: var(--navy); font-size: 20px; padding-left: 4px;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s;
}
.story-card:hover .play { transform: translate(-50%,-50%) scale(1.08); }
.story-card .story-cap {
  position: absolute; left: 0; right: 0; bottom: 0;
  padding: 38px 20px 18px;
  background: linear-gradient(to top, rgba(0,16,56,0.88), transparent);
  color: #fff; font-weight: 600; font-size: 1.05rem;
  transition: opacity 0.25s;
}
/* Video captions: fluid type, pinned to the top-right at 40% width, one line, no background */
.video-featured .story-cap {
  font-size: clamp(1.1rem, 2.2vw, 2.1rem);
  top: 0; bottom: auto; left: auto; right: 0;
  width: 40%;
  padding: 18px 20px 38px;
  background: transparent;
  text-align: right;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  -webkit-text-stroke: 1.5px rgba(0,16,56,0.9);
  paint-order: stroke fill;
  text-shadow: 0 1px 3px rgba(0,0,0,0.4);
}

/* ============ Join — compact inline items (on dark band) ============ */
.join-inline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.join-item { display: flex; align-items: center; gap: 16px; }
.join-item .feat-icon { margin: 0; flex-shrink: 0; }
.join-item .feat-icon svg { width: 34px; height: 34px; stroke: var(--gold); fill: none; stroke-width: 1.6; }
.join-item h3 { color: #fff; font-size: 1.08rem; margin-bottom: 2px; }
.join-item h3 a { color: var(--gold-bright); }
.join-item h3 a:hover { color: #fff; }
.join-item p { color: rgba(255,255,255,0.72); font-size: 0.9rem; margin: 0; }

/* ============ Hero carousel decoration ============ */
.hero-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 3;
  width: 46px; height: 46px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.75); font-size: 24px; cursor: pointer;
  transition: all 0.2s; user-select: none;
}
.hero-arrow:hover { background: rgba(255,255,255,0.12); color: #fff; }
.hero-arrow.left { left: 22px; }
.hero-arrow.right { right: 22px; }
.hero-dots {
  position: absolute; bottom: 40px; left: 0; right: 0; z-index: 3;
  display: flex; gap: 9px; justify-content: center;
}
.hero-dots span { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,0.4); transition: all 0.2s; }
.hero-dots span.on { background: var(--gold); width: 24px; border-radius: 5px; }

/* section "view all" gold link */
.see-all {
  font-size: 14px; font-weight: 600; color: var(--navy);
  letter-spacing: 0; white-space: nowrap;
  text-underline-offset: 3px;
  transition: color 0.2s;
}
.see-all:hover { color: var(--coral); text-decoration: underline; }
.section-navy .see-all { color: var(--gold-bright); }
.section-navy .see-all:hover { color: #fff; }

/* ============ Newsletter card ============ */
.news-card {
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md); overflow: hidden;
  display: grid; grid-template-columns: 1.2fr 1fr; align-items: stretch;
}
.news-content { padding: 44px 48px; }
.news-photo { background-size: cover; background-position: center; min-height: 300px; }
.newsletter { display: flex; gap: 12px; margin-top: 22px; }
.newsletter input {
  flex: 1; font-family: inherit; font-size: 15px;
  padding: 14px 18px; border-radius: 999px;
  border: 1px solid var(--cream-deep); background: #fff; color: var(--text);
}
.newsletter input:focus { outline: none; border-color: var(--gold); }

/* 4-column stat variant */
.stat-grid.cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ============ Responsive ============ */
/* ============ Video gallery (Media page) ============ */
.video-featured {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  background: var(--navy-deep);
  box-shadow: var(--shadow-lg);
}
.video-featured video { display: block; width: 100%; aspect-ratio: 16 / 9; object-fit: contain; }
.video-frame {
  position: relative;
  aspect-ratio: 16 / 10;
  background: var(--navy-deep);
}
.video-frame video { display: block; width: 100%; height: 100%; object-fit: contain; }
.video-play {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%,-50%);
  width: 62px; height: 62px; border-radius: 50%;
  border: none; cursor: pointer;
  background: rgba(255,255,255,0.92);
  color: var(--navy); font-size: 20px; padding-left: 4px;
  display: flex; align-items: center; justify-content: center;
  box-shadow: var(--shadow-md);
  transition: transform 0.3s, background 0.3s, color 0.3s;
}
.video-play:hover { transform: translate(-50%,-50%) scale(1.08); background: var(--gold); color: #fff; }
.video-featured .video-play { width: 86px; height: 86px; font-size: 28px; }
.video-dur {
  position: absolute; right: 12px; bottom: 12px;
  background: rgba(11, 30, 66, 0.78); color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.06em;
  padding: 4px 9px; border-radius: 6px;
  pointer-events: none;
}
.video-featured-cap {
  display: flex; justify-content: space-between; align-items: baseline;
  gap: 24px; margin-top: 22px;
}
.video-featured-cap h3 { font-size: 1.35rem; }
.video-featured-cap p { color: var(--text-muted); font-size: 0.96rem; max-width: 560px; text-align: right; }
@media (max-width: 720px) {
  .video-featured-cap { flex-direction: column; gap: 8px; }
  .video-featured-cap p { text-align: left; }
  .video-play { width: 54px; height: 54px; font-size: 17px; }
  .video-featured .video-play { width: 68px; height: 68px; font-size: 22px; }
}

@media (max-width: 980px) {
  .feature-strip { grid-template-columns: repeat(2, 1fr); gap: 40px 0; }
  .feature-item:nth-child(2) { border-right: none; }
  .impact-row { grid-template-columns: repeat(2, 1fr); gap: 36px 24px; }
  .evt-grid { grid-template-columns: repeat(2, 1fr); }
  .join-inline { grid-template-columns: 1fr; gap: 22px; }
  .news-card { grid-template-columns: 1fr; }
  .news-content { padding: 32px; }
  .news-photo { min-height: 220px; }
  .stat-grid.cols-4 { grid-template-columns: repeat(2, 1fr); }
  section { padding: 70px 0; }
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .grid-5 { grid-template-columns: repeat(3, 1fr); }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .team-grid { grid-template-columns: repeat(3, 1fr); }
  .stat-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .mission-split { grid-template-columns: 1fr; }
  .mission-cell { border-right: none; border-bottom: 1px solid rgba(255,255,255,0.08); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .feature-row { grid-template-columns: 1fr; gap: 40px; }
  .feature-row.reverse { direction: ltr; }
  .grid-asym { grid-template-columns: 1fr !important; gap: 32px; } /* !important: beats the inline 1fr 1fr on the homepage About block */
  /* Program galleries: drop to 4 tiles (tall + normal + wide + normal = 6 cells) so 3 columns tile as an exact 3x2 rectangle */
  .gallery[id^="gallery-program-"] .gallery-item:nth-child(2),
  .gallery[id^="gallery-program-"] .gallery-item:nth-child(3) { display: none; }
}

@media (max-width: 720px) {
  section { padding: 56px 0; }
  .container, .container-wide, .container-narrow { padding: 0 22px; }
  .grid-2, .grid-3, .grid-4, .grid-5, .evt-grid, .team-grid, .tier-grid { grid-template-columns: 1fr; }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .gallery-item.span-2-tall { grid-row: span 1; aspect-ratio: 1; }
  /* Program galleries: keep the tall tile portrait (same 4 visible tiles as tablet) so 2 columns tile as an exact 2x3 rectangle */
  .gallery[id^="gallery-program-"] .gallery-item.span-2-tall { grid-row: span 2; aspect-ratio: 1 / 2; }
  /* Video captions: 40% is too narrow to fit the text on a phone-sized video, so relax the width here only */
  .video-featured .story-cap { width: 80%; }
  .stat-grid { grid-template-columns: 1fr; }
  .values-grid { grid-template-columns: 1fr; }
  .event { grid-template-columns: 100px 1fr; gap: 18px; }
  .event > .btn { grid-column: 1 / -1; justify-self: start; }
  .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 28px; }
  .tier.featured { transform: scale(1); }
  .hero { min-height: 88vh; padding: 110px 0 70px; }
  .footer-bottom { flex-direction: column; gap: 12px; text-align: center; }
  .feature-strip { grid-template-columns: 1fr; gap: 0; }
  .feature-item { border-right: none; border-bottom: 1px solid var(--cream-deep); padding: 28px 8px; }
  .feature-item:last-child { border-bottom: none; }
  .impact-row { grid-template-columns: 1fr; gap: 32px; }
  .stat-grid.cols-4 { grid-template-columns: 1fr; }
  .newsletter { flex-direction: column; }
  .newsletter .btn { justify-content: center; }
  .nav-brand .brand-logo { height: 54px; }
  .site-nav.scrolled .nav-brand .brand-logo { height: 48px; }
  .footer-brand .brand-logo { height: 52px; }
  .give-tab { font-size: 16px; letter-spacing: 0; padding: 17px 8px; }
  .give-panel { padding: 24px 20px 28px; }
  .sponsor-inner { padding: 0; }
}

/* Events page: flyer cards and full-size viewer */
.flyer-grid { display: block; columns: 3; column-gap: 28px; }
.flyer-grid .flyer-card { break-inside: avoid; margin-bottom: 28px; }
.flyer-thumb { display: block; width: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.flyer-bg { display: none; }
.flyer-thumb img { display: block; width: 100%; height: auto; }
@media (max-width: 960px) { .flyer-grid { columns: 2; } }
@media (max-width: 600px) { .flyer-grid { columns: 1; } }
.flyer-card .card-body { padding: 18px 22px 22px; }
.flyer-card .card-eyebrow { margin-bottom: 6px; }
.flyer-card h3 { font-size: 1.1rem; margin-bottom: 6px; }
.flyer-card p { font-size: 0.88rem; line-height: 1.55; color: var(--text-muted); margin: 0; }
.flyer-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(11, 30, 66, 0.88); display: flex; align-items: center; justify-content: center; padding: 24px; cursor: zoom-out; }
.flyer-lightbox[hidden] { display: none; }
.flyer-lightbox img { max-width: 100%; max-height: 100%; object-fit: contain; box-shadow: var(--shadow-lg); }
.flyer-lightbox-close { position: absolute; top: 12px; right: 18px; background: none; border: 0; color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }

/* Team page: partner cards */
.partner-card { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 14px; padding: 32px 24px; background: var(--white); border: 1px solid var(--cream-deep); border-radius: 16px; color: inherit; text-decoration: none; transition: transform 0.2s, box-shadow 0.2s; }
.partner-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.partner-logo { display: flex; align-items: center; justify-content: center; height: 120px; width: 100%; }
.partner-logo img { max-height: 100%; max-width: 220px; object-fit: contain; }
.partner-card h3 { font-size: 1.2rem; margin: 0; }
.partner-card .card-link { margin-top: auto; }
.partner-card.core { border-color: var(--gold-soft); box-shadow: inset 0 3px 0 var(--gold); }
.core-badge { margin: -12px 0 -4px; font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; color: var(--text-light); }
body[data-lang="zh"] .core-badge { text-transform: none; letter-spacing: 0.2em; }
.partner-media { display: block; width: 100%; aspect-ratio: 16 / 9; border-radius: 10px; overflow: hidden; }
.partner-media img { display: block; width: 100%; height: 100%; }
.partner-media-logo { display: flex; align-items: center; justify-content: center; background: var(--cream); padding: 20px; }
.partner-media-logo img { width: auto; max-width: 75%; height: auto; max-height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.partner-photo { padding: 0; border: 0; background: none; cursor: zoom-in; }
.partner-photo img { object-fit: cover; transition: transform 0.4s ease; }
.partner-photo:hover img { transform: scale(1.03); }

/* Nav slogan, shown at every width: tighten the bar where links, slogan and the
   language switch would otherwise collide. */
@media (min-width: 1181px) and (max-width: 1365px) {
  .nav-links a { padding: 8px 9px; }
  .brand-slogan { margin-left: 12px; padding-left: 12px; font-size: 12.5px; max-width: 200px; }
  .nav-right { gap: 12px; }
}
@media (max-width: 600px) {
  .nav-inner { padding: 0 16px; }
  .nav-brand { gap: 0; min-width: 0; flex-shrink: 1; }
  .nav-brand .brand-logo, .site-nav.scrolled .nav-brand .brand-logo { height: 44px; }
  .brand-slogan { margin-left: 10px; padding-left: 10px; font-size: 11px; line-height: 1.35; max-width: 150px; }
  .nav-right { gap: 10px; }
  .lang-toggle button { padding: 5px 10px; }
}
@media (max-width: 400px) {
  .brand-slogan { font-size: 10.5px; max-width: 118px; }
}

/* Wide card: photo left, text right, the full width of the page (news page, In the News) */
.card-wide { flex-direction: row; }
.card-wide .card-img { flex: 0 0 50%; aspect-ratio: 16 / 10; }
.card-wide .card-body { justify-content: center; padding: 36px 40px; }
@media (max-width: 720px) {
  .card-wide { flex-direction: column; }
  .card-wide .card-img { flex: none; }
  .card-wide .card-body { padding: 28px 26px; }
}

/* Small partner logo under a partner photo (team page, Kunyuan Culture) */
.partner-mini-logo { display: block; height: 40px; width: auto; margin: 16px auto 0; }
