/* ═══════════════════════════════════════
   SMARTHUB CONNECT — SHARED DESIGN SYSTEM
   ═══════════════════════════════════════ */
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:ital,wght@0,400;0,500;0,600;0,700;1,400&family=Playfair+Display:ital,wght@0,400;0,500;0,600;0,700;1,400&display=swap');

:root {
  --teal-deep:    #148F8A;
  --teal:         #1AB5AD;
  --teal-mid:     #2CC4BC;
  --teal-bright:  #3DD4CC;
  --teal-light:   #7AE2DC;
  --teal-pale:    #E2F7F5;
  --red:          #E04A3C;
  --red-light:    #E8665A;
  --gold:         #D4A94C;
  --gold-light:   #E0BC68;
  --gold-pale:    #FBF4E2;
  --white:        #FFFFFF;
  --off-white:    #F6FAFA;
  --warm-gray:    #EBF2F1;
  --gray-300:     #CDD9D8;
  --gray-500:     #7A8E8D;
  --gray-700:     #4A5E5D;
  --text:         #1A2D2C;
  --text-light:   #5A706E;
  --navy-deep:    var(--teal-deep);
  --navy:         var(--teal);
  --navy-mid:     var(--teal-mid);
  --blue:         var(--teal);
  --blue-light:   var(--teal-bright);
  --blue-pale:    var(--teal-pale);
  --font-display: 'Playfair Display', Georgia, serif;
  --font-body:    'DM Sans', system-ui, sans-serif;
  --section-pad:  clamp(60px, 8vw, 120px);
  --content-max:  1200px;
  --radius:       12px;
  --radius-sm:    8px;
}

/* RESET & BASE */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--text);
  background: var(--white);
  line-height: 1.65;
  font-size: 16px;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
button { font-family: inherit; cursor: pointer; border: none; }

.container {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
}

/* SCROLL REVEAL */
.reveal {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 0.7s cubic-bezier(0.22, 1, 0.36, 1),
              transform 0.7s cubic-bezier(0.22, 1, 0.36, 1);
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-delay-1 { transition-delay: 0.1s; }
.reveal-delay-2 { transition-delay: 0.2s; }
.reveal-delay-3 { transition-delay: 0.3s; }
.reveal-delay-4 { transition-delay: 0.4s; }
.reveal-delay-5 { transition-delay: 0.5s; }

/* ═══════════ NAV ═══════════ */
.nav-contact-bar {
  background: var(--white);
  border-bottom: 1px solid var(--warm-gray);
  padding: 6px 0;
  font-size: 12px;
  color: var(--gray-700);
}
.nav-contact-bar-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex;
  justify-content: flex-end;
  gap: 24px;
}
.nav-contact-bar span { opacity: 0.8; }

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--white);
  box-shadow: 0 1px 0 rgba(0,0,0,0.08);
  transition: box-shadow 0.3s;
}
.nav.scrolled {
  box-shadow: 0 2px 16px rgba(0,0,0,0.10);
}
.nav-contact-bar { transition: all 0.4s; }
.nav.scrolled .nav-contact-bar { display: none; }
.nav-main { padding: 14px 0; }
.nav-inner {
  max-width: var(--content-max);
  margin: 0 auto;
  padding: 0 clamp(20px, 4vw, 40px);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-logo {
  display: flex;
  align-items: center;
  gap: 12px;
}
.nav-logo-img {
  height: 88px;
  width: auto;
  display: block;
  transition: transform 0.3s;
}
.nav-logo:hover .nav-logo-img { transform: scale(1.04); }
.nav-links { display: flex; gap: 36px; align-items: center; list-style: none; }
.nav-links a {
  font-size: 17px; font-weight: 500;
  color: var(--text);
  transition: color 0.3s;
  letter-spacing: 0.2px;
  position: relative;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--gold);
  transition: width 0.3s;
  border-radius: 1px;
}
.nav-links a:hover::after { width: 100%; }
.nav-links a:hover { color: var(--teal-deep); }
.nav-links a.active { color: var(--teal-deep); }
.nav-links a.active::after { width: 100%; }
.nav-right { display: flex; align-items: center; gap: 16px; }
.lang-toggle {
  font-size: 15px; color: var(--gray-700);
  background: var(--warm-gray);
  padding: 8px 16px; border-radius: 20px;
  display: flex; align-items: center; gap: 6px;
  user-select: none;
}
.lang-btn {
  cursor: pointer; transition: color 0.2s; font-weight: 500;
}
.lang-btn:hover { color: var(--teal); }
.lang-btn.active { color: var(--teal); font-weight: 700; }

/* Language visibility */
html[data-lang="zh"] .en-only { display: none !important; }
html:not([data-lang="zh"]) .zh-only { display: none !important; }
.nav-cta {
  font-size: 15px; font-weight: 600;
  color: var(--white); background: var(--red);
  padding: 10px 22px; border-radius: 20px;
  transition: all 0.3s; letter-spacing: 0.3px;
}
.nav-cta:hover { background: var(--red-light); transform: translateY(-1px); }
.nav-hamburger {
  display: none; width: 28px; height: 20px;
  flex-direction: column; justify-content: space-between;
  cursor: pointer;
}
.nav-hamburger span {
  display: block; height: 2px; width: 100%;
  background: var(--navy); border-radius: 2px; transition: all 0.3s;
}

/* Mobile menu */
.mobile-menu {
  display: none;
  position: fixed;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(20,143,138,0.97);
  z-index: 200;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  font-size: 22px; font-weight: 500;
  color: var(--white); padding: 14px 32px;
  border-radius: 12px; transition: background 0.2s;
  width: 280px; text-align: center;
}
.mobile-menu a:hover { background: rgba(255,255,255,0.1); }
.mobile-close {
  position: absolute;
  top: 24px; right: 24px;
  width: 40px; height: 40px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; color: var(--white);
}

@media (max-width: 900px) {
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
}

/* ═══════════ PAGE HERO (interior pages) ═══════════ */
.page-hero {
  background: var(--teal);
  padding: 180px 0 80px;
  position: relative;
  overflow: hidden;
}
.page-hero::before {
  content: '';
  position: absolute; right: -200px; top: -200px;
  width: 600px; height: 600px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.15);
}
.page-hero::after {
  content: '';
  position: absolute; right: -150px; top: -150px;
  width: 500px; height: 500px;
  border-radius: 50%; border: 1px solid rgba(255,255,255,0.08);
}
.page-hero-label {
  font-size: 15px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: #FFD966; margin-bottom: 16px;
}
.page-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(32px, 5vw, 52px);
  font-weight: 600; color: var(--white);
  line-height: 1.2; margin-bottom: 16px;
}
.page-hero p {
  font-size: clamp(16px, 1.8vw, 18px);
  color: rgba(255,255,255,0.75); max-width: 560px; line-height: 1.7;
}
.page-hero-content { position: relative; z-index: 2; }

/* ═══════════ SECTION HEADER ═══════════ */
.section-header {
  text-align: center; max-width: 640px;
  margin: 0 auto 56px;
}
.section-header h2 {
  font-family: var(--font-display);
  font-size: clamp(28px, 3.5vw, 42px);
  font-weight: 600; color: var(--navy);
  margin-bottom: 16px; line-height: 1.2;
}
.section-header p { font-size: 17px; color: var(--text-light); }
.section-label {
  display: inline-block; font-size: 14px; font-weight: 700;
  letter-spacing: 2.5px; text-transform: uppercase;
  color: var(--teal-deep); margin-bottom: 16px;
}

/* ═══════════ BUTTONS ═══════════ */
.btn-primary {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy-deep);
  font-weight: 600; font-size: 15px;
  padding: 14px 32px; border-radius: 30px;
  transition: all 0.3s; letter-spacing: 0.3px;
}
.btn-primary:hover { background: var(--gold-light); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(200,164,104,0.3); }
.btn-teal {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--teal); color: var(--white);
  font-weight: 600; font-size: 15px;
  padding: 14px 32px; border-radius: 30px;
  transition: all 0.3s;
}
.btn-teal:hover { background: var(--teal-mid); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(26,181,173,0.25); }
.btn-outline-teal {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1.5px solid var(--teal);
  color: var(--teal); font-weight: 600; font-size: 15px;
  padding: 13px 28px; border-radius: 30px; transition: all 0.3s;
}
.btn-outline-teal:hover { background: var(--teal); color: var(--white); }
.btn-gold {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--gold); color: var(--navy-deep);
  font-weight: 600; font-size: 15px;
  padding: 14px 32px; border-radius: 30px; transition: all 0.3s;
}
.btn-gold:hover { background: var(--gold-light); transform: translateY(-2px); }
.btn-outline {
  display: inline-flex; align-items: center; gap: 8px;
  background: transparent; border: 1.5px solid rgba(255,255,255,0.25);
  color: var(--white); font-weight: 500; font-size: 15px;
  padding: 13px 28px; border-radius: 30px; transition: all 0.3s;
}
.btn-outline:hover { border-color: rgba(255,255,255,0.5); background: rgba(255,255,255,0.06); }
.btn-arrow { display: inline-flex; transition: transform 0.3s; }
.btn-primary:hover .btn-arrow,
.btn-teal:hover .btn-arrow,
.btn-gold:hover .btn-arrow { transform: translateX(3px); }

/* ═══════════ IMAGE PLACEHOLDER ═══════════ */
.img-placeholder {
  width: 100%; height: 100%;
  background: var(--blue-pale);
  display: flex; align-items: center; justify-content: center;
  flex-direction: column; gap: 8px;
  font-family: 'SF Mono', 'Fira Code', monospace;
  font-size: 13px; color: var(--blue); opacity: 0.6;
  background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(43,90,140,0.04) 10px, rgba(43,90,140,0.04) 11px);
}

/* ═══════════ FORM ELEMENTS ═══════════ */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block; font-size: 13px; font-weight: 600;
  color: var(--gray-700); margin-bottom: 8px; letter-spacing: 0.3px;
}
.form-input, .form-textarea {
  width: 100%; padding: 14px 20px;
  border: 1.5px solid var(--gray-300);
  border-radius: var(--radius-sm);
  font-family: var(--font-body); font-size: 15px;
  background: var(--white); color: var(--text);
  outline: none; transition: border-color 0.3s;
  appearance: none;
  -webkit-appearance: none;
}
.form-input:focus, .form-textarea:focus { border-color: var(--teal); }
.form-input::placeholder, .form-textarea::placeholder { color: var(--gray-500); }
.form-textarea { resize: vertical; min-height: 120px; line-height: 1.6; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
@media (max-width: 600px) { .form-row { grid-template-columns: 1fr; } }

/* Checkbox items */
.check-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--text-light); cursor: pointer;
  margin-bottom: 12px;
}
.check-box {
  width: 20px; height: 20px; flex-shrink: 0;
  border: 1.5px solid var(--gray-300); border-radius: 4px;
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.check-item:hover .check-box { border-color: var(--teal); }

/* ═══════════ TRUST BAR ═══════════ */
.trust-bar { padding: 40px 0; border-bottom: 1px solid var(--warm-gray); }
.trust-inner {
  display: flex; align-items: center; justify-content: center;
  gap: clamp(24px, 5vw, 64px); flex-wrap: wrap;
}
.trust-item {
  display: flex; align-items: center; gap: 12px;
  font-size: 14px; color: var(--gray-500); font-weight: 500;
}
.trust-icon { width: 20px; height: 20px; opacity: 0.5; }

/* ═══════════ FOOTER ═══════════ */
.footer {
  background: var(--navy-deep);
  padding: 64px 0 32px;
  color: rgba(255,255,255,0.6);
  font-size: 14px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 48px; margin-bottom: 48px;
}
.footer-brand h3 {
  font-family: var(--font-display); font-size: 20px;
  color: var(--white); margin-bottom: 12px;
}
.footer-brand p { line-height: 1.7; margin-bottom: 20px; }
.footer-brand address { font-style: normal; font-size: 13px; line-height: 1.8; }
.footer-col h4 {
  font-size: 13px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 1.5px;
  color: var(--teal-bright); margin-bottom: 20px;
}
.footer-col a {
  display: block; padding: 4px 0;
  color: rgba(255,255,255,0.6);
  transition: color 0.3s; font-size: 14px;
}
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.08);
  padding-top: 24px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 16px; font-size: 13px;
}
.footer-social { display: flex; gap: 12px; }
.footer-social a {
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(255,255,255,0.06);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.3s;
}
.footer-social a:hover { background: var(--teal); }
.footer-social svg { width: 16px; height: 16px; color: rgba(255,255,255,0.6); }
.footer-social a:hover svg { color: var(--white); }

@media (max-width: 900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 500px) {
  .footer-grid { grid-template-columns: 1fr; }
}

/* ═══════════ ORG CHART ═══════════ */
.org-chart {
  --org-primary: var(--teal-deep);
  --org-line: var(--teal);
  min-width: 960px;
  padding: 8px 0 24px;
}
.org-box {
  background: var(--org-primary);
  color: #fff;
  border-radius: 6px;
  text-align: center;
  font-weight: 600;
  line-height: 1.3;
  white-space: nowrap;
}
.org-box--lg { padding: 12px 28px; font-size: 15px; }
.org-box--md { padding: 10px 18px; font-size: 13px; }
.org-box--sm { padding: 8px 12px; font-size: 11px; }
.org-box--leaf { font-weight: 500; font-size: 10px; padding: 6px 10px; }
.org-box--advisor {
  border: 2px dashed var(--org-line);
  background: #fff;
  color: var(--org-primary);
}
.org-chart__level { display: flex; justify-content: center; }
.org-chart__level--president { align-items: center; gap: 24px; }
.org-chart__advisor-link { display: flex; align-items: center; gap: 0; }
.org-chart__advisor-line { width: 48px; height: 0; border-top: 2px dashed var(--org-line); }
.org-chart__connector { width: 2px; height: 24px; background: var(--org-line); margin: 0 auto; }
.org-chart__connector--tall { height: 32px; }
.org-chart__connector--short { height: 16px; }
.org-chart__branches {
  display: flex; justify-content: center; align-items: flex-start;
  gap: 20px; position: relative; padding-top: 2px;
}
.org-chart__branches::before {
  content: ''; position: absolute; top: 0; left: 12%; right: 12%;
  height: 2px; background: var(--org-line);
}
.org-chart__branch {
  display: flex; flex-direction: column; align-items: center;
  flex: 0 0 auto; position: relative; padding-top: 24px;
}
.org-chart__branch::before {
  content: ''; position: absolute; top: 0; left: 50%;
  transform: translateX(-50%); width: 2px; height: 24px;
  background: var(--org-line);
}
.org-chart__branch--faculty { flex: 1 1 auto; max-width: 520px; }
.org-chart__branch--single { align-self: flex-start; }
.org-chart__children {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 8px; max-width: 180px;
}
.org-chart__children--compact { max-width: 140px; }
.org-column { display: flex; flex-direction: column; align-items: center; flex: 1; min-width: 0; }
.org-column__line { width: 2px; height: 16px; background: var(--org-line); }
.org-column__items {
  display: flex; flex-direction: column; align-items: stretch;
  gap: 6px; width: 100%;
}
.org-column__items .org-box { white-space: normal; font-size: 9px; padding: 5px 6px; }
.org-faculty { width: 100%; }
.org-faculty__columns { display: flex; gap: 6px; width: 100%; }
.org-faculty__bracket {
  width: calc(100% - 16px); height: 12px; margin: 8px auto 0;
  border: 2px solid var(--org-line); border-top: none;
  border-radius: 0 0 8px 8px;
}
.org-faculty__support {
  display: flex; justify-content: center; gap: 8px;
  margin-top: 8px; flex-wrap: wrap;
}
.org-membership-elite { display: flex; flex-direction: column; align-items: center; }
.org-chart-scroll {
  overflow-x: auto; -webkit-overflow-scrolling: touch;
  margin: 0 -40px; padding: 0 40px 16px;
}
.org-chart-scroll::-webkit-scrollbar { height: 6px; }
.org-chart-scroll::-webkit-scrollbar-thumb {
  background: rgba(20, 143, 138, 0.25); border-radius: 3px;
}
.org-section { padding: var(--section-pad) 0; background: var(--white); }

/* ═══════════ CARD HOVER PATTERN ═══════════ */
.card-hover {
  transition: all 0.3s;
  border: 1px solid transparent;
}
.card-hover:hover {
  border-color: var(--teal);
  transform: translateY(-4px);
  box-shadow: 0 8px 32px rgba(26,181,173,0.10);
}

.services-bg-wrapper {
  position: relative;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  z-index: 1;
}
.services-bg-wrapper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; width: 100%; height: 100%;
  background: linear-gradient(rgba(10, 25, 47, 0.9), rgba(15, 32, 67, 0.95));
  z-index: -1;
}

.service-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(8px);
  border-radius: 16px;
  padding: 28px;
  margin-bottom: 20px;
  transition: all 0.3s ease;
}
.service-card:hover {
  transform: translateY(-5px);
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(0, 242, 254, 0.3);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.5);
}
.service-card h3, .service-card h4, .service-card p {
  color: #ffffff;
}
.service-card p {
  color: #cbd5e1;
  opacity: 0.9;
}
