:root {
  --navy: #1a2744;
  --navy-2: #0f1a32;
  --gold: #ffbc3b;
  --blue: #1e56d9;
  --green: #1f9b68;
  --ink: #172033;
  --muted: #657084;
  --line: #e3e8f0;
  --gray: #f5f6fa;
  --white: #ffffff;
  --shadow: 0 16px 44px rgba(26, 39, 68, 0.12);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--ink);
  background: var(--white);
  font-family: "Noto Sans SC", "Microsoft YaHei", Arial, sans-serif;
  line-height: 1.6;
}

img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

a {
  color: inherit;
  text-decoration: none;
}

.topbar {
  display: flex;
  justify-content: flex-end;
  gap: 28px;
  padding: 10px clamp(20px, 5vw, 72px);
  color: #d8dfed;
  background: var(--navy-2);
  font-size: 14px;
}

.topbar a {
  color: var(--gold);
  font-weight: 800;
}

.navbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  padding: 18px clamp(20px, 5vw, 72px);
  background: var(--navy);
  color: var(--white);
}

.brand {
  display: flex;
  align-items: center;
  min-width: 180px;
  gap: 12px;
}

.brand-mark {
  display: grid;
  width: 44px;
  height: 44px;
  place-items: center;
  color: var(--navy);
  background: var(--gold);
  border-radius: 8px;
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: #c9d3e8;
  font-size: 12px;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 24px;
  font-size: 15px;
  font-weight: 700;
}

.site-nav a:hover {
  color: var(--gold);
}

.menu-toggle {
  display: none;
  width: 42px;
  height: 42px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  background: transparent;
  border-radius: 8px;
}

.menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--white);
}

.tf-hero {
  position: relative;
  min-height: 720px;
  display: grid;
  align-items: center;
  padding: 120px clamp(20px, 5vw, 72px);
  color: var(--white);
  background:
    linear-gradient(90deg, rgba(15, 26, 50, 0.86), rgba(15, 26, 50, 0.48)),
    url("https://images.unsplash.com/photo-1588072432836-e10032774350?auto=format&fit=crop&w=1800&q=80") center/cover;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 760px;
}

.eyebrow {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 800;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 22px;
  font-size: clamp(42px, 6vw, 74px);
  line-height: 1.08;
}

h2 {
  margin-bottom: 14px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.18;
}

h3 {
  font-size: 22px;
  line-height: 1.3;
}

.hero-content p {
  max-width: 650px;
  color: #e5ebf5;
  font-size: 18px;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 4px;
  font-weight: 800;
  cursor: pointer;
}

.button.primary {
  color: var(--navy);
  background: var(--gold);
}

.button.secondary {
  color: var(--white);
  background: var(--blue);
}

.button.ghost {
  color: var(--white);
  border-color: rgba(255, 255, 255, 0.7);
}

.feature-band {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  max-width: 1180px;
  margin: -82px auto 0;
  padding: 0 clamp(20px, 5vw, 24px);
}

.feature-band a {
  padding: 34px;
  color: var(--white);
  background: var(--navy);
  border-right: 1px solid rgba(255, 255, 255, 0.12);
}

.feature-band a:nth-child(2) {
  background: #22365e;
}

.feature-band a:nth-child(3) {
  background: var(--gold);
  color: var(--navy);
}

.feature-band span {
  display: block;
  margin-bottom: 12px;
  font-weight: 800;
}

.feature-band strong {
  display: block;
  font-size: 24px;
}

.feature-band p {
  margin: 8px 0 0;
}

.section {
  padding: clamp(72px, 9vw, 112px) clamp(20px, 5vw, 72px);
}

.gray {
  background: var(--gray);
}

.about-section,
.contact-section {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(360px, 1.05fr);
  gap: clamp(30px, 6vw, 72px);
  align-items: center;
}

.about-copy p,
.contact-copy p,
.course-card p,
.event-grid p,
.teacher-grid p,
.blog-card p {
  color: var(--muted);
}

.about-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 18px;
}

.about-stats div {
  padding: 28px;
  background: var(--gray);
  border-left: 5px solid var(--gold);
}

.about-stats strong {
  display: block;
  color: var(--navy);
  font-size: 38px;
}

.about-stats span {
  color: var(--muted);
}

.tf-section-title {
  display: flex;
  align-items: center;
  gap: 18px;
  margin-bottom: 36px;
}

.tf-section-title h2 {
  margin: 0;
  white-space: nowrap;
}

.tf-section-title span {
  flex: 1;
  border-top: 2px solid var(--gold);
}

.tf-section-title a {
  color: var(--blue);
  font-weight: 800;
  white-space: nowrap;
}

.course-grid,
.teacher-grid,
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.course-card,
.teacher-grid a,
.blog-card,
.contact-form {
  overflow: hidden;
  background: var(--white);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}

.course-card img,
.teacher-grid img,
.blog-card img {
  height: 230px;
}

.course-card div,
.teacher-grid div,
.blog-card div {
  padding: 24px;
}

.course-card small,
.blog-card small {
  display: block;
  margin-bottom: 10px;
  color: var(--gold);
  font-weight: 800;
}

.course-card ul {
  padding-left: 20px;
  margin-bottom: 0;
  color: #344057;
}

.cta-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 64px clamp(20px, 5vw, 72px);
  color: var(--white);
  background: var(--navy);
}

.cta-section p {
  max-width: 760px;
  color: #dce4f3;
}

.assessment-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 10px;
}

.assessment-list span {
  padding: 10px 12px;
  color: var(--navy);
  background: var(--gold);
  border-radius: 4px;
  font-weight: 800;
}

.success-story {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 1fr);
  align-items: stretch;
  background: var(--gray);
}

.story-media {
  min-height: 520px;
}

.story-copy {
  padding: clamp(54px, 8vw, 96px) clamp(20px, 5vw, 72px);
  background: var(--white);
}

.story-copy blockquote {
  margin: 28px 0 0;
  padding-left: 20px;
  border-left: 5px solid var(--gold);
  color: var(--navy);
  font-size: 18px;
  font-weight: 700;
}

.story-copy cite {
  display: block;
  margin-top: 12px;
  color: var(--muted);
  font-style: normal;
  font-size: 14px;
}

.event-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 26px;
}

.event-grid a {
  padding: 28px;
  background: var(--white);
  border-left: 5px solid var(--gold);
  box-shadow: var(--shadow);
}

.event-grid time {
  color: var(--blue);
  font-weight: 800;
}

.news-tools {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 28px;
}

.news-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.tab {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--navy);
  border-radius: 4px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
}

.tab.active,
.tab:hover {
  background: var(--gold);
  border-color: var(--gold);
}

.news-search {
  width: min(320px, 100%);
  padding: 11px 14px;
  border: 1px solid var(--line);
  font: inherit;
}

.blog-card.hidden {
  display: none;
}

.contact-info {
  display: grid;
  gap: 10px;
  margin-top: 28px;
}

.contact-info span {
  padding: 14px 16px;
  color: var(--navy);
  background: var(--gray);
  border-left: 4px solid var(--gold);
  font-weight: 700;
}

.contact-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  padding: 30px;
}

.contact-form label {
  display: grid;
  gap: 8px;
  color: var(--navy);
  font-weight: 800;
}

.contact-form .full-field,
.contact-form button,
.form-note {
  grid-column: 1 / -1;
}

input,
select,
textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid var(--line);
  font: inherit;
}

textarea {
  resize: vertical;
}

.form-note {
  min-height: 24px;
  margin: 0;
  color: var(--green);
  font-weight: 800;
}

.footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 38px clamp(20px, 5vw, 72px);
  color: #dce4f3;
  background: var(--navy-2);
}

.footer p {
  margin: 0;
}

@media (max-width: 1040px) {
  .site-nav {
    gap: 14px;
    font-size: 14px;
  }

  .feature-band,
  .course-grid,
  .teacher-grid,
  .blog-grid,
  .event-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cta-section,
  .about-section,
  .contact-section,
  .success-story {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .topbar {
    display: none;
  }

  .menu-toggle {
    display: block;
  }

  .site-nav {
    position: absolute;
    top: 80px;
    left: 20px;
    right: 20px;
    display: none;
    flex-direction: column;
    align-items: stretch;
    padding: 18px;
    background: var(--navy);
    box-shadow: var(--shadow);
  }

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

  .tf-hero {
    min-height: 620px;
  }

  .feature-band {
    margin-top: 0;
    padding: 0;
  }

  .news-tools {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .navbar,
  .section,
  .cta-section,
  .story-copy,
  .footer {
    padding-inline: 16px;
  }

  .tf-hero {
    min-height: 560px;
    padding-inline: 16px;
  }

  h1 {
    font-size: 38px;
  }

  .hero-actions,
  .button {
    width: 100%;
  }

  .feature-band,
  .course-grid,
  .teacher-grid,
  .blog-grid,
  .event-grid,
  .about-stats,
  .assessment-list,
  .contact-form {
    grid-template-columns: 1fr;
  }

  .tf-section-title {
    align-items: flex-start;
    flex-direction: column;
  }

  .tf-section-title span {
    width: 100%;
  }

  .footer {
    display: block;
  }
}
