/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --ink:        #1a1a2e;
  --gold:       #c9a84c;
  --gold-light: #e8d5a3;
  --cream:      #f8f5ef;
  --muted:      #6b6b7a;
  --white:      #ffffff;
  --border:     rgba(201, 168, 76, 0.25);
  --shadow:     0 8px 48px rgba(26, 26, 46, 0.08);

  --font-display: 'Cormorant Garamond', 'Noto Serif SC', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;

  --nav-h: 72px;
  --container: 1280px;
  --radius: 3px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background: var(--white);
  color: var(--ink);
  line-height: 1.6;
  overflow-x: hidden;
}

a { text-decoration: none; color: inherit; }
img { display: block; max-width: 100%; }

/* ============================================================
   BILINGUAL HELPERS
   ============================================================ */
.en-only { display: none; }
body.lang-en .zh-only { display: none; }
body.lang-en .en-only { display: inline; }

/* Block-level en-only elements */
body.lang-en p.en-only,
body.lang-en div.en-only,
body.lang-en h1.en-only,
body.lang-en h2.en-only {
  display: block;
}

/* Inline en-only spans inside text */
body.lang-en span.en-only {
  display: inline;
}


/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.75rem 1.75rem;
  font-family: var(--font-body);
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  border-radius: var(--radius);
  border: 1px solid transparent;
  cursor: pointer;
  transition: opacity 0.2s, transform 0.15s;
  white-space: nowrap;
}
.btn:hover { opacity: 0.85; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

/* Dark background, white text */
.btn-dark {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
}

/* Gold outline */
.btn-outline-gold {
  background: transparent;
  color: var(--gold);
  border-color: var(--gold);
}
.btn-outline-gold:hover { background: rgba(201, 168, 76, 0.08); opacity: 1; }

/* Dark button on gold section */
.btn-dark-on-gold {
  background: var(--ink);
  color: var(--white);
  border-color: var(--ink);
  font-size: 0.85rem;
  padding: 0.85rem 2rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
#navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  height: var(--nav-h);
  transition: background 0.3s, box-shadow 0.3s;
}

#navbar.scrolled {
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 1px 0 var(--border);
}

.nav-inner {
  max-width: none;
  margin: 0;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 2.5rem;
  gap: 1.5rem;
}

.nav-logo {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: 0.02em;
  flex-shrink: 0;
  transition: color 0.2s;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.15;
}
.nav-logo:hover { color: var(--gold); }

.logo-dot { color: var(--gold); }

.logo-sub {
  font-size: 0.7em;
  font-weight: 400;
  letter-spacing: 0.06em;
  opacity: 0.5;
}


.nav-links {
  display: flex;
  align-items: center;
  gap: 2.25rem;
}

.nav-link {
  font-size: 0.82rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--muted);
  transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: -3px;
  left: 0;
  width: 0;
  height: 1px;
  background: var(--gold);
  transition: width 0.25s;
}
.nav-link:hover,
.nav-link.active { color: var(--ink); }
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }

.nav-right {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-shrink: 0;
}

/* Language switcher */
.lang-switcher {
  position: relative;
}

.lang-btn {
  display: flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.45rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--ink);
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  cursor: pointer;
  transition: border-color 0.2s;
  white-space: nowrap;
}
.lang-btn:hover { border-color: var(--gold); }

.lang-arrow {
  display: inline-block;
  font-size: 0.7rem;
  transition: transform 0.2s;
  color: var(--gold);
}
.lang-arrow.open { transform: rotate(180deg); }

.lang-dropdown {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 140px;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow);
  overflow: hidden;
  z-index: 200;
}
.lang-dropdown.open { display: block; }

.lang-option {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.6rem 0.9rem;
  font-size: 0.82rem;
  cursor: pointer;
  transition: background 0.15s;
  color: var(--muted);
}
.lang-option:hover { background: var(--cream); color: var(--ink); }
.lang-option.selected { color: var(--gold); font-weight: 500; }

.lang-check {
  opacity: 0;
  font-size: 0.7rem;
  color: var(--gold);
  width: 1em;
}
.lang-option.selected .lang-check { opacity: 1; }

/* Hamburger */
.hamburger {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 30px;
  height: 30px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
}
.hamburger span {
  display: block;
  width: 100%;
  height: 1.5px;
  background: var(--ink);
  transition: transform 0.25s, opacity 0.25s;
}
.hamburger.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.mobile-menu {
  display: none;
  flex-direction: column;
  background: var(--white);
  border-top: 1px solid var(--border);
  padding: 1rem 2rem 1.5rem;
  gap: 0.25rem;
}
.mobile-menu.open { display: flex; }

.mobile-link {
  padding: 0.65rem 0;
  font-size: 0.9rem;
  color: var(--muted);
  border-bottom: 1px solid rgba(201, 168, 76, 0.1);
  transition: color 0.2s;
}
.mobile-link:hover { color: var(--ink); }
.mobile-cta {
  margin-top: 0.75rem;
  background: var(--ink);
  color: var(--white) !important;
  text-align: center;
  border-radius: var(--radius);
  padding: 0.75rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  font-size: 0.8rem;
  text-transform: uppercase;
  border-bottom: none;
}

/* ============================================================
   HERO
   ============================================================ */
#hero {
  padding-top: var(--nav-h);
  min-height: 100vh;
  display: flex;
  align-items: stretch;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  width: 100%;
  min-height: calc(100vh - var(--nav-h));
}

/* Left dark panel */
.hero-left {
  background: var(--ink);
  padding: 5rem 4rem 5rem 5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 1.75rem;
  position: relative;
  overflow: hidden;
}

.hero-deco-psi {
  position: absolute;
  bottom: -0.15em;
  right: -0.05em;
  font-family: var(--font-display);
  font-size: clamp(14rem, 22vw, 22rem);
  line-height: 1;
  color: var(--gold);
  opacity: 0.06;
  pointer-events: none;
  user-select: none;
  z-index: 0;
}

.hero-badge {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  padding: 0.35rem 0.85rem;
  font-size: 0.73rem;
  font-weight: 400;
  letter-spacing: 0.06em;
  color: rgba(201, 168, 76, 0.45);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  width: fit-content;
  text-transform: uppercase;
}
.phi-i {
  color: var(--gold);
  font-weight: 600;
  font-size: 0.85rem;
}

.hero-title-wrap { position: relative; z-index: 1; }

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 4vw, 4rem);
  font-weight: 600;
  line-height: 1.18;
  color: var(--white);
  letter-spacing: -0.01em;
}
.hero-title em {
  font-style: italic;
  color: var(--gold-light);
}
.hero-gold {
  font-style: normal;
  color: var(--gold-light);
}

.hero-sub {
  position: relative;
  z-index: 1;
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.65);
  line-height: 1.7;
  max-width: 38ch;
  font-weight: 300;
}

/* Right white panel */
.hero-right {
  background: var(--white);
  padding: 5rem 5rem 5rem 4rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 2.5rem;
  border-left: 1px solid var(--border);
}

/* Stats 2×2 grid */
.stats-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.stat-card {
  background: var(--cream);
  padding: 1.75rem 1.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.stat-value {
  display: flex;
  align-items: baseline;
  gap: 0.1em;
  font-family: var(--font-display);
  font-size: clamp(2.2rem, 3vw, 2.8rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1;
}

.stat-plus {
  font-size: 0.65em;
  color: var(--gold);
  font-weight: 400;
}

.stat-label {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.03em;
}

/* University badges */
.hero-unis { display: flex; flex-direction: column; gap: 0.85rem; }

.hero-unis-label {
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
}

.badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.badge {
  padding: 0.3rem 0.7rem;
  font-size: 0.72rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: var(--ink);
  border: 1px solid var(--border);
  border-radius: 2px;
  background: transparent;
  transition: border-color 0.2s, color 0.2s;
}
.badge:hover { border-color: var(--gold); color: var(--gold); }

/* ============================================================
   COURSES
   ============================================================ */
#courses {
  background: var(--cream);
  padding: 6rem 0;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 3rem;
}

.section-header {
  margin-bottom: 3.5rem;
}

.section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.5rem;
}

.section-subtitle {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
}

/* Course category block */
.course-category {
  margin-bottom: 2.5rem;
}

.category-header {
  background: var(--ink);
  padding: 1rem 1.5rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  border-radius: var(--radius) var(--radius) 0 0;
}

.cat-icon {
  font-family: var(--font-display);
  font-size: 1.4rem;
  color: var(--gold);
  line-height: 1;
  width: 1.8rem;
  flex-shrink: 0;
}

.cat-names {
  display: flex;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
}

.cat-primary {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--white);
  letter-spacing: 0.02em;
}

.cat-secondary {
  font-size: 0.75rem;
  font-weight: 300;
  color: rgba(255, 255, 255, 0.35);
  letter-spacing: 0.04em;
}

/* Course cards 4-column grid */
.course-cards-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 var(--radius) var(--radius);
  overflow: hidden;
}

.course-card {
  background: var(--white);
  padding: 1.5rem 1.25rem;
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
  transition: background 0.2s;
}
.course-card:last-child { border-right: none; }
.course-card:hover { background: var(--cream); }

/* Bilingual course name — CSS-driven prominence swap */
.course-zh {
  font-size: 1rem;
  font-weight: 500;
  color: var(--ink);
  transition: font-size 0.2s, color 0.2s;
}

.course-en {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 300;
  transition: font-size 0.2s, color 0.2s;
}

/* In English mode, swap prominence */
body.lang-en .course-zh {
  font-size: 0.75rem;
  color: var(--muted);
  font-weight: 300;
}
body.lang-en .course-en {
  font-size: 1rem;
  color: var(--ink);
  font-weight: 500;
}

/* ============================================================
   SERVICES
   ============================================================ */
#services {
  background: var(--cream);
  padding: 6rem 0;
}

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  align-items: start;
}

.service-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 4px;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: box-shadow 0.25s, border-color 0.25s, transform 0.2s;
  overflow: hidden;
}
.service-card:hover {
  box-shadow: 0 12px 56px rgba(26, 26, 46, 0.13);
  border-color: var(--gold);
  transform: translateY(-2px);
}

.card-header {
  padding: 1.75rem 1.75rem 1.25rem;
  border-bottom: 1px solid var(--border);
}

.card-name-zh {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  margin-bottom: 0.2rem;
}
.card-name-en {
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

/* English mode: swap card name prominence */
body.lang-en .card-name-zh {
  font-family: var(--font-body);
  font-size: 0.72rem;
  font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin-bottom: 0;
}
body.lang-en .card-name-en {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.2;
  letter-spacing: 0;
  text-transform: none;
  margin-bottom: 0.2rem;
}

.card-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 1rem 1.75rem 0;
}

.card-body {
  padding: 1.25rem 1.75rem 0;
}
.card-tagline {
  font-size: 0.88rem;
  color: var(--ink);
  line-height: 1.65;
  font-weight: 400;
}

.card-timeline {
  padding: 1.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  gap: 0;
  flex: 1;
}

.timeline-item {
  display: flex;
  gap: 0.85rem;
  position: relative;
}

.timeline-item:not(:last-child) .tl-dot-wrap::after {
  content: '';
  position: absolute;
  left: calc(50% - 0.5px);
  top: 1rem;
  width: 1px;
  height: calc(100% - 0.3rem);
  background: rgba(201, 168, 76, 0.25);
}

.tl-dot-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  width: 1.4rem;
  padding-top: 0.28rem;
  position: relative;
}
.tl-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex-shrink: 0;
}

.tl-content {
  padding-bottom: 1.25rem;
  flex: 1;
}
.tl-title {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.4;
  margin-bottom: 0.2rem;
}
.tl-desc {
  font-size: 0.73rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}

.tl-delivery {
  display: inline-flex;
  align-items: center;
  gap: 0.3em;
  margin-top: 0.3rem;
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--gold);
  text-transform: uppercase;
}
.tl-delivery::before {
  content: '↓';
  font-size: 0.6rem;
}

.tl-optional {
  font-size: 0.65rem;
  color: var(--muted);
  font-style: italic;
  margin-top: 0.2rem;
}

.card-footer {
  padding: 0 1.75rem 1.75rem;
  margin-top: auto;
}
.card-footer .btn-outline-gold {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.75rem;
  padding: 0.7rem 1rem;
  justify-content: center;
}

/* ============================================================
   ABOUT
   ============================================================ */
#about {
  background: var(--ink);
  padding: 2rem 0 5rem;
}

.about-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 3rem;
  display: grid;
  grid-template-columns: 1fr 2fr;
  gap: 5rem;
  align-items: start;
}

/* Left: title + avatar */
.about-left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 1.5rem;
  border-right: 1px solid rgba(201, 168, 76, 0.2);
  padding-right: 5rem;
  align-self: stretch;
}

/* 「关于我」— 与 section-title 同款字体 */
.about-section-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 3vw, 2.6rem);
  font-weight: 600;
  color: var(--white);
  line-height: 1.2;
  letter-spacing: -0.01em;
}

/* ---- Mentor avatar ---- */
.mentor-avatar-wrapper {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  width: 100%;
}

.mentor-avatar-container {
  position: relative;
  width: 75%;
  max-width: 200px;
  aspect-ratio: 1 / 1;
}

.mentor-avatar {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: cover;
  object-position: 50% 15%;
  border: 2.5px solid #C9AA71;
  display: block;
}

/* Fallback: shown via JS onerror when image fails to load */
.mentor-avatar-fallback {
  display: none;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2.5px solid #C9AA71;
  background: rgba(201, 170, 113, 0.12);
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 600;
  color: #C9AA71;
  letter-spacing: 0;
}

.mentor-subtitle {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  text-align: center;
}
.mentor-sub-role {
  font-size: 0.7rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 400;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.mentor-sub-name {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.9);
  letter-spacing: 0.05em;
  line-height: 1;
}

/* Right bio — three points */
.about-right {
  display: flex;
  flex-direction: column;
  padding-top: 2.6rem;
}

.bio-item {
  display: flex;
  gap: 1.25rem;
  padding: 1.6rem 0;
  border-bottom: 1px solid rgba(201, 168, 76, 0.12);
}
.bio-item:first-child { padding-top: 0; }
.bio-item:last-child  { border-bottom: none; padding-bottom: 0; }

.bio-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 600;
  color: rgba(201, 168, 76, 0.3);
  line-height: 1;
  flex-shrink: 0;
  width: 1.4rem;
  text-align: right;
  padding-top: 0.1rem;
}

.bio-body {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.bio-title {
  font-size: 0.95rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
}

.bio-text {
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.8;
  font-weight: 300;
  max-width: 55ch;
}

/* ============================================================
   UNIVERSITIES
   ============================================================ */
#universities {
  background: var(--white);
  padding: 6rem 0;
}

.unis-table {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}

.uni-row {
  display: grid;
  grid-template-columns: 180px 1fr;
  border-bottom: 1px solid var(--border);
}
.uni-row:last-child { border-bottom: none; }

.uni-region {
  background: var(--cream);
  padding: 1rem 1.25rem;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink);
  border-right: 1px solid var(--border);
  display: flex;
  align-items: center;
  letter-spacing: 0.02em;
}

.uni-list {
  padding: 1rem 1.5rem;
  font-size: 0.85rem;
  color: var(--muted);
  line-height: 1.6;
  display: flex;
  align-items: center;
  font-weight: 300;
}

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(36px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.in-view {
  opacity: 1;
  transform: translateY(0);
}

/* Hero entrance animation (page load, not scroll-triggered) */
@keyframes heroFadeUp {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: translateY(0); }
}

.hero-left > *:not(.hero-deco-psi) {
  animation: heroFadeUp 0.7s ease both;
}
.hero-left > *:nth-child(2) { animation-delay: 0s; }
.hero-left > *:nth-child(3) { animation-delay: 0.15s; }
.hero-left > *:nth-child(4) { animation-delay: 0.3s; }
.hero-left > *:nth-child(5) { animation-delay: 0.45s; }

.hero-right > * {
  animation: heroFadeUp 0.7s ease both;
}
.hero-right > *:nth-child(1) { animation-delay: 0.2s; }
.hero-right > *:nth-child(2) { animation-delay: 0.32s; }
.hero-right > *:nth-child(3) { animation-delay: 0.44s; }
.hero-right > *:nth-child(4) { animation-delay: 0.56s; }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 4rem 3rem 0;
}

.footer-inner {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.6fr 1fr 1.4fr;
  gap: 3rem;
  padding-bottom: 3rem;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}

.footer-logo {
  font-family: var(--font-display);
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.1rem;
  line-height: 1.2;
}
.footer-logo .logo-dot { color: var(--gold); }

.footer-tagline {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  font-size: 0.82rem;
  color: var(--muted);
  line-height: 1.6;
  font-weight: 300;
}
.footer-slogan-en {
  font-size: 0.82rem;
  letter-spacing: 0.04em;
}
.footer-slogan-zh {
  font-family: var(--font-cn);
  font-size: 0.88rem;
  letter-spacing: 0.12em;
  color: rgba(107,107,122,0.75);
}

.footer-col-title {
  font-size: 0.65rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 1rem;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}
.footer-links li {
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 300;
}
.footer-links a {
  color: var(--muted);
  text-decoration: none;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--ink); }

.footer-contact-label {
  display: inline-block;
  font-size: 0.65rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: rgba(107,107,122,0.6);
  margin-right: 0.5em;
}

.footer-bottom {
  max-width: var(--container);
  margin: 0 auto;
  padding: 1.25rem 0;
  border-top: 1px solid var(--border);
  font-size: 0.72rem;
  color: rgba(107,107,122,0.5);
  font-weight: 300;
}

/* ============================================================
   RESPONSIVE — Tablet (768–1279px)
   ============================================================ */
@media (max-width: 1279px) {
  .hero-left  { padding: 4rem 3rem 4rem 3rem; }
  .hero-right { padding: 4rem 3rem 4rem 3rem; }

  .about-grid { gap: 3rem; }
  .about-left { padding-right: 3rem; }

  .course-cards-grid { grid-template-columns: repeat(2, 1fr); }
  .course-card:nth-child(2) { border-right: none; }
  .course-card:nth-child(3) { border-top: 1px solid var(--border); }
  .course-card:nth-child(4) { border-top: 1px solid var(--border); border-right: none; }

  .container { padding: 0 2rem; }
  .about-grid { padding: 0 2rem; }
}

@media (min-width: 768px) and (max-width: 900px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .services-grid .service-card:last-child {
    grid-column: 1 / -1;
    max-width: calc(50% - 0.75rem);
    margin: 0 auto;
  }
}

@media (max-width: 1024px) {
  .nav-links { gap: 1.5rem; }

  .stats-grid { }

  .uni-row { grid-template-columns: 150px 1fr; }
}

/* ============================================================
   RESPONSIVE — Mobile (<768px)
   ============================================================ */
@media (max-width: 767px) {
  :root { --nav-h: 60px; }

  /* Nav */
  .nav-links { display: none; }
  .nav-cta   { display: none; }
  .hamburger { display: flex; }
  .lang-btn  { padding: 0.35rem 0.65rem; font-size: 0.72rem; }

  /* Hero stacked */
  .hero-grid { grid-template-columns: 1fr; min-height: auto; }
  .hero-left  {
    padding: 3.5rem 1.75rem;
    min-height: 55vh;
    justify-content: flex-end;
  }
  .hero-right {
    padding: 2.5rem 1.75rem 3rem;
    border-left: none;
    border-top: 1px solid var(--border);
  }

  .hero-title { font-size: 2.2rem; }
  .hero-deco-psi { font-size: 11rem; }

  /* Stats: 2 cols on mobile */
  .stats-grid { }

  /* Courses: single column on mobile */
  .course-cards-grid {
    grid-template-columns: 1fr;
  }
  .course-card { border-right: none !important; border-top: none; }
  .course-card:not(:first-child) {
    border-top: 1px solid var(--border) !important;
  }

  /* About: stacked */
  .about-grid { grid-template-columns: 1fr; gap: 2rem; padding: 0 1.75rem; }
  .about-left { border-right: none; padding-right: 0; border-bottom: 1px solid rgba(201,168,76,0.2); padding-bottom: 2rem; align-items: center; }
  .about-section-title { align-self: flex-start; font-size: 1.75rem; }
  .about-right { padding-top: 0; }
  .bio-text { max-width: 100%; }

  /* Avatar: smaller on mobile */
  .mentor-avatar-container { max-width: 140px; }
  .mentor-avatar-fallback { font-size: 2rem; }

  /* Universities */
  .uni-row { grid-template-columns: 1fr; }
  .uni-region { border-right: none; border-bottom: 1px solid var(--border); }

  /* Container */
  .container { padding: 0 1.75rem; }
  #courses      { padding: 4rem 0; }
  #services     { padding: 4rem 0; }
  #universities { padding: 4rem 0; }
  #about        { padding: 4rem 0; }

  .services-grid {
    grid-template-columns: 1fr !important;
  }
  .services-grid .service-card,
  .services-grid .service-card:last-child {
    grid-column: auto !important;
    max-width: none !important;
    margin: 0 !important;
    width: 100% !important;
  }

  /* Section title */
  .section-title { font-size: 1.75rem; }

  .footer-inner { grid-template-columns: 1fr; gap: 2rem; }

  .contact-headline { font-size: 1.65rem; }
}

@media (max-width: 420px) {
  .hero-title { font-size: 1.9rem; }
  .course-cards-grid { grid-template-columns: 1fr; }
  .course-card { border-right: none !important; }
  .course-card:not(:first-child) { border-top: 1px solid var(--border) !important; }
}
