/* =========================================================
   Chinese Education — site stylesheet
   Theme: DARK warm near-black with olive-green accent
   Body background #0E0C0A · text #EFEAE2 · accent #65A30D
   ========================================================= */

:root {
  --bg: #0E0C0A;
  --bg-soft: #1A1815;
  --bg-card: #211E1A;
  --bg-line: #2A2620;
  --text: #EFEAE2;
  --text-dim: #C9C1B4;
  --text-faint: #A79E90;
  --accent: #65A30D;
  --accent-bright: #84CC16;
  --accent-dark: #3F6212;
  --accent-deep: #1A1815;
}

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

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

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--text);
  background-color: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent-bright);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--accent);
}

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.eyebrow {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 14px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  font-size: 1rem;
  font-weight: 700;
  border-radius: 8px;
  border: 2px solid transparent;
  cursor: pointer;
  text-align: center;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background-color: var(--accent);
  color: #0E0C0A;
  border-color: var(--accent);
}

.btn-primary:hover {
  background-color: var(--accent-bright);
  border-color: var(--accent-bright);
  color: #0E0C0A;
}

.btn-ghost {
  background-color: transparent;
  color: var(--accent-bright);
  border-color: var(--accent);
}

.btn-ghost:hover {
  background-color: var(--accent);
  color: #0E0C0A;
}

/* ---------- Scroll reveal (JS-safe fallback) ---------- */
.fade-up {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-up.visible {
  opacity: 1;
  transform: none;
}

/* =========================================================
   GLOBE NAVIGATION
   ========================================================= */
.globe-nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background-color: var(--bg);
  border-bottom: 1px solid var(--bg-line);
}

.nav-inner {
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
  height: 76px;
  display: flex;
  align-items: center;
  gap: 28px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: var(--text);
  font-weight: 800;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  white-space: nowrap;
}

.brand:hover {
  color: var(--text);
}

.wordmark {
  color: var(--text);
}

/* CSS-drawn globe */
.globe {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  flex: 0 0 40px;
  border-radius: 50%;
  border: 2px solid var(--accent);
  background: radial-gradient(circle at 32% 28%, var(--accent-bright), var(--accent-dark) 58%, var(--accent-deep));
  overflow: hidden;
}

.globe-lat {
  position: absolute;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--accent-bright);
}

.globe-lat.lat-1 { top: 34%; }
.globe-lat.lat-2 { top: 66%; }

.globe-mer {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 54%;
  transform: translateX(-50%);
  border: 1.5px solid var(--accent-bright);
  border-radius: 50%;
}

.globe-ring {
  position: absolute;
  top: -8px;
  left: 50%;
  width: 30%;
  height: 56px;
  transform: translateX(-50%) rotate(-22deg);
  border: 1.5px solid var(--accent-bright);
  border-radius: 50%;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 26px;
  margin-left: auto;
}

.nav-links a {
  color: var(--text-dim);
  font-weight: 600;
  font-size: 0.98rem;
}

.nav-links a:hover {
  color: var(--accent-bright);
}

.nav-cta {
  background-color: var(--accent);
  color: #0E0C0A;
  font-weight: 800;
  font-size: 0.95rem;
  padding: 11px 20px;
  border-radius: 8px;
  white-space: nowrap;
  transition: background-color 0.2s ease, transform 0.2s ease;
}

.nav-cta:hover {
  background-color: var(--accent-bright);
  color: #0E0C0A;
  transform: translateY(-1px);
}

.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  background: transparent;
  border: 1px solid var(--bg-line);
  border-radius: 8px;
  cursor: pointer;
  margin-left: auto;
}

.nav-toggle .bar {
  width: 22px;
  height: 2px;
  background-color: var(--text);
  transition: transform 0.25s ease, opacity 0.25s ease;
}

.nav-toggle.open .bar:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle.open .bar:nth-child(2) { opacity: 0; }
.nav-toggle.open .bar:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* =========================================================
   HERO — graduation cap
   ========================================================= */
.graduation-hero {
  background:
    radial-gradient(circle at 82% 18%, #3F6212 0%, #1A1815 45%, #0E0C0A 78%);
  padding: 96px 0 90px;
  border-bottom: 1px solid var(--bg-line);
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}

.hero-copy h1 {
  font-size: 3rem;
  line-height: 1.12;
  letter-spacing: -0.01em;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 22px;
}

.hero-sub {
  font-size: 1.15rem;
  color: var(--text-dim);
  max-width: 34rem;
  margin-bottom: 30px;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 34px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 28px;
}

.trust-item {
  display: flex;
  flex-direction: column;
  color: var(--text-faint);
  font-size: 0.9rem;
}

.trust-item strong {
  font-size: 1.5rem;
  color: var(--accent-bright);
  font-weight: 800;
}

/* CSS-drawn graduation cap */
.hero-visual {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 26px;
}

.cap {
  position: relative;
  width: 260px;
  padding-top: 10px;
}

.cap-board {
  position: relative;
  width: 250px;
  height: 58px;
  margin: 0 auto;
  background: linear-gradient(180deg, var(--accent-bright), var(--accent-dark));
  border-radius: 8px;
  box-shadow: 0 24px 50px #0A0806;
}

.cap-board::after {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 14px;
  background-color: var(--accent-bright);
  border-radius: 8px 8px 0 0;
}

.cap-button {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 16px;
  height: 16px;
  background-color: var(--accent-deep);
  border-radius: 50%;
  z-index: 2;
  box-shadow: 0 0 0 3px var(--accent-dark);
}

.cap-tassel {
  position: absolute;
  top: 34px;
  left: 50%;
  width: 2px;
  z-index: 1;
}

.tassel-cord {
  display: block;
  width: 2px;
  height: 96px;
  background-color: var(--accent-bright);
  margin: 0 auto;
}

.tassel-head {
  display: block;
  width: 16px;
  height: 22px;
  background-color: var(--accent);
  border-radius: 4px;
  margin: 0 auto;
  box-shadow: 0 0 0 2px var(--accent-dark);
}

.cap-base {
  width: 128px;
  height: 62px;
  margin: -6px auto 0;
  background: linear-gradient(180deg, var(--accent-dark), var(--accent-deep));
  border-radius: 0 0 60px 60px / 0 0 46px 46px;
  position: relative;
  z-index: 1;
}

.cap-base::after {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 88px;
  height: 20px;
  background-color: var(--accent-bright);
  border-radius: 0 0 40px 40px / 0 0 20px 20px;
}

/* Book spines stack */
.books {
  display: flex;
  align-items: flex-end;
  gap: 10px;
  margin-top: 6px;
}

.book {
  position: relative;
  display: inline-block;
  width: 34px;
  border-radius: 3px 3px 2px 2px;
  box-shadow: 0 10px 20px #0A0806;
}

.book i {
  display: block;
  height: 3px;
  width: 70%;
  margin: 8px auto 0;
  background-color: var(--accent-deep);
  border-radius: 2px;
}

.book.b1 { height: 76px; background: linear-gradient(180deg, var(--accent-bright), var(--accent)); }
.book.b2 { height: 100px; background: linear-gradient(180deg, var(--accent), var(--accent-dark)); }
.book.b3 { height: 62px; background: linear-gradient(180deg, var(--accent-dark), var(--accent-deep)); }

/* =========================================================
   STATEMENT ROW
   ========================================================= */
.statement-row {
  background-color: var(--bg-soft);
  padding: 84px 0;
  border-bottom: 1px solid var(--bg-line);
}

.statement-row .container {
  max-width: 900px;
}

.statement-row h2 {
  font-size: 2.1rem;
  line-height: 1.25;
  font-weight: 800;
  margin-bottom: 20px;
  color: var(--text);
}

.statement-row p {
  font-size: 1.15rem;
  color: var(--text-dim);
}

/* =========================================================
   STAT COLUMNS
   ========================================================= */
.stat-columns {
  background-color: var(--bg);
  padding: 84px 0;
  border-bottom: 1px solid var(--bg-line);
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
}

.stat {
  border-left: 3px solid var(--accent);
  padding: 8px 0 8px 20px;
}

.stat-num {
  display: block;
  font-size: 3rem;
  font-weight: 800;
  line-height: 1.05;
  color: var(--accent-bright);
}

.stat-label {
  display: block;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin: 6px 0;
}

.stat-note {
  font-size: 0.92rem;
  color: var(--text-faint);
}

/* =========================================================
   PROGRAMS (tabbed)
   ========================================================= */
.programs-section {
  background-color: var(--bg-soft);
  padding: 88px 0;
  border-bottom: 1px solid var(--bg-line);
}

.section-head {
  max-width: 720px;
  margin-bottom: 40px;
}

.section-head h2 {
  font-size: 2.2rem;
  line-height: 1.2;
  font-weight: 800;
  margin-bottom: 14px;
  color: var(--text);
}

.section-head p {
  color: var(--text-dim);
  font-size: 1.05rem;
}

.tab-bar {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 10px;
  background-color: var(--bg);
  border: 1px solid var(--bg-line);
  padding: 8px;
  border-radius: 12px;
  margin-bottom: 32px;
}

.tab-btn {
  padding: 11px 20px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-dim);
  background: transparent;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.tab-btn:hover {
  color: var(--text);
}

.tab-btn.active {
  background-color: var(--accent);
  color: #0E0C0A;
}

.tab-panel {
  background-color: var(--bg-card);
  border: 1px solid var(--bg-line);
  border-radius: 14px;
  padding: 34px;
}

.tab-content h3 {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.tab-content p {
  color: var(--text-dim);
  margin-bottom: 18px;
}

.check-list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 24px;
}

.check-list li {
  color: var(--text);
  padding-left: 26px;
  position: relative;
}

.check-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 12px;
  height: 12px;
  background-color: var(--accent);
  border-radius: 3px;
}

/* =========================================================
   ADMISSION PROCESS
   ========================================================= */
.admission-process {
  background-color: var(--bg);
  padding: 88px 0;
  border-bottom: 1px solid var(--bg-line);
}

.steps {
  list-style: none;
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.steps::before {
  content: "";
  position: absolute;
  top: 26px;
  left: 0;
  right: 0;
  height: 2px;
  background-color: var(--bg-line);
}

.step {
  position: relative;
  padding-top: 16px;
}

.step-num {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background-color: var(--accent);
  color: #0E0C0A;
  font-weight: 800;
  font-size: 1rem;
  margin-bottom: 18px;
}

.step-body h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.step-body p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* =========================================================
   COMPARISON TABLE
   ========================================================= */
.compare-section {
  background-color: var(--bg-soft);
  padding: 88px 0;
  border-bottom: 1px solid var(--bg-line);
}

.compare-table {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  border: 1px solid var(--bg-line);
  border-radius: 14px;
  overflow: hidden;
}

.compare-row {
  display: contents;
}

.compare-cell {
  padding: 18px 22px;
  border-bottom: 1px solid var(--bg-line);
  background-color: var(--bg-card);
  color: var(--text-dim);
}

.compare-row:last-child .compare-cell {
  border-bottom: none;
}

.compare-head .compare-cell {
  background-color: var(--accent-dark);
  color: var(--text);
  font-weight: 800;
}

.compare-head .feature-cell {
  background-color: var(--bg);
}

.feature-cell {
  color: var(--text);
  font-weight: 700;
  background-color: var(--bg);
}

/* =========================================================
   HISTORY TIMELINE
   ========================================================= */
.history-timeline {
  background-color: var(--bg);
  padding: 88px 0;
  border-bottom: 1px solid var(--bg-line);
}

.timeline {
  position: relative;
  max-width: 860px;
  margin: 0 auto;
}

.timeline::before {
  content: "";
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  width: 2px;
  transform: translateX(-50%);
  background-color: var(--bg-line);
}

.timeline-item {
  position: relative;
  width: 50%;
  padding: 0 40px 44px 0;
}

.timeline-item:nth-child(even) {
  left: 50%;
  padding: 0 0 44px 40px;
}

.timeline-dot {
  position: absolute;
  top: 6px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-deep);
}

.timeline-item:nth-child(odd) .timeline-dot {
  right: -8px;
}

.timeline-item:nth-child(even) .timeline-dot {
  left: -8px;
}

.timeline-card {
  background-color: var(--bg-card);
  border: 1px solid var(--bg-line);
  border-radius: 12px;
  padding: 22px;
}

.timeline-year {
  display: inline-block;
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--accent-bright);
  margin-bottom: 8px;
}

.timeline-card h3 {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.timeline-card p {
  color: var(--text-dim);
  font-size: 0.95rem;
}

/* =========================================================
   SPLIT CTA
   ========================================================= */
.cta-split {
  background-color: var(--accent-dark);
  padding: 72px 0;
  border-bottom: 1px solid var(--bg-line);
}

.cta-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 40px;
  align-items: center;
}

.cta-left h2 {
  font-size: 2rem;
  line-height: 1.2;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 12px;
}

.cta-left p {
  color: var(--text-dim);
}

.cta-right {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  justify-content: flex-end;
}

/* =========================================================
   CONTACT
   ========================================================= */
.contact-section {
  background-color: var(--bg);
  padding: 88px 0;
  border-bottom: 1px solid var(--bg-line);
}

.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: start;
}

.contact-info h2 {
  font-size: 2.1rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 14px;
}

.contact-info > p {
  color: var(--text-dim);
  margin-bottom: 24px;
}

.contact-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-list li {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.contact-label {
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
}

.contact-list a,
.contact-list span {
  color: var(--text-dim);
}

.contact-form {
  background-color: var(--bg-card);
  border: 1px solid var(--bg-line);
  border-radius: 14px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.field label {
  font-weight: 700;
  color: var(--text);
  font-size: 0.9rem;
}

.field input,
.field textarea {
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid var(--bg-line);
  background-color: var(--bg);
  color: var(--text);
  font-size: 1rem;
  font-family: inherit;
  resize: vertical;
}

.field input:focus,
.field textarea:focus {
  outline: none;
  border-color: var(--accent);
}

/* =========================================================
   NEWSLETTER + FOOTER
   ========================================================= */
.newsletter-band {
  background-color: var(--bg-soft);
  border-bottom: 1px solid var(--bg-line);
  padding: 56px 0;
}

.newsletter-inner {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 28px;
  align-items: center;
}

.newsletter-copy h2 {
  font-size: 1.6rem;
  font-weight: 800;
  color: var(--text);
  margin-bottom: 8px;
}

.newsletter-copy p {
  color: var(--text-dim);
}

.newsletter-form {
  display: flex;
  gap: 10px;
}

.newsletter-form input {
  flex: 1;
  min-width: 0;
  padding: 13px 16px;
  border-radius: 8px;
  border: 1px solid var(--bg-line);
  background-color: var(--bg);
  color: var(--text);
  font-size: 1rem;
}

.newsletter-form input:focus {
  outline: none;
  border-color: var(--accent);
}

.form-note {
  grid-column: 1 / -1;
  color: var(--accent-bright);
  font-weight: 600;
  min-height: 1.4em;
}

.site-footer {
  background-color: var(--bg);
  padding-top: 60px;
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1.3fr;
  gap: 36px;
  padding-bottom: 48px;
}

.footer-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-col h3 {
  font-size: 0.9rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-bright);
  margin-bottom: 6px;
}

.footer-col a,
.footer-col span {
  color: var(--text-dim);
  font-size: 0.95rem;
}

.footer-col a:hover {
  color: var(--accent-bright);
}

.footer-about p {
  color: var(--text-dim);
  font-size: 0.95rem;
  margin-top: 8px;
}

.footer-bottom {
  border-top: 1px solid var(--bg-line);
  padding-top: 22px;
  padding-bottom: 26px;
}

.footer-bottom p {
  color: var(--text-faint);
  font-size: 0.88rem;
}

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 960px) {
  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }

  .hero-copy h1 {
    font-size: 2.4rem;
  }

  .stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps::before {
    display: none;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }

  .cta-grid {
    grid-template-columns: 1fr;
  }

  .contact-grid {
    grid-template-columns: 1fr;
  }

  .cta-right {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .nav-inner {
    flex-wrap: wrap;
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
  }

  .nav-toggle {
    display: flex;
  }

  .nav-links {
    display: none;
    flex-basis: 100%;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    margin-left: 0;
    padding: 10px 0 4px;
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links a {
    padding: 12px 4px;
    border-top: 1px solid var(--bg-line);
  }

  .nav-cta {
    display: none;
  }

  .check-list {
    grid-template-columns: 1fr;
  }

  .compare-table {
    grid-template-columns: 1fr;
  }

  .compare-head {
    display: none;
  }

  .compare-cell {
    border-bottom: 1px solid var(--bg-line);
  }

  .newsletter-inner {
    grid-template-columns: 1fr;
  }

  .newsletter-form {
    flex-direction: column;
  }

  .timeline::before {
    left: 10px;
  }

  .timeline-item,
  .timeline-item:nth-child(even) {
    width: 100%;
    left: 0;
    padding: 0 0 36px 40px;
  }

  .timeline-item:nth-child(odd) .timeline-dot,
  .timeline-item:nth-child(even) .timeline-dot {
    left: 2px;
    right: auto;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
}
