:root {
  --navy: #182651;
  --navy-deep: #111a3d;
  --indigo: #2a2467;
  --red: #c94145;
  --red-dark: #a92f34;
  --ink: #1f2937;
  --muted: #647084;
  --line: #dce1e8;
  --paper: #ffffff;
  --soft: #f5f7fa;
  --cream: #f7f1e8;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: Arial, "Segoe UI", sans-serif; line-height: 1.65; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
.hidden { display: none !important; }
.loading-note { color: var(--muted); text-align: center; padding: 18px; }
.notice { padding: 12px 14px; border-radius: 8px; font-size: .86rem; }
.notice.success { color: #14532d; background: #dcfce7; }
.notice.error { color: #7f1d1d; background: #fee2e2; }

.site-width { width: min(100%, 1384px); margin: 0 auto; padding-inline: clamp(22px, 5vw, 76px); }
.announcement { background: var(--navy-deep); color: white; font-size: .88rem; }
.announcement-inner { min-height: 38px; display: flex; align-items: center; justify-content: center; gap: 18px; }
.announcement a { color: #ffb7b8; font-weight: 700; }
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line); backdrop-filter: blur(12px); }
.header-inner { min-height: 86px; display: flex; align-items: center; gap: 28px; }
.brand { display: flex; align-items: center; gap: 13px; min-width: 250px; }
.brand img { width: 62px; height: 62px; object-fit: contain; }
.brand strong, .brand small { display: block; }
.brand strong { color: var(--navy); font-size: 1.05rem; letter-spacing: .01em; }
.brand small { color: var(--muted); font-size: .74rem; margin-top: 1px; letter-spacing: .04em; }
.desktop-nav { display: flex; align-items: center; justify-content: center; gap: clamp(18px, 2.2vw, 32px); flex: 1; font-size: .94rem; font-weight: 650; }
.desktop-nav a { padding: 10px 0; border-bottom: 2px solid transparent; }
.desktop-nav a:hover, .desktop-nav a:focus-visible { color: var(--red); border-color: var(--red); }
.primary-button, .secondary-button { display: inline-flex; min-height: 48px; align-items: center; justify-content: center; border-radius: 999px; padding: 11px 21px; font-weight: 750; border: 1px solid transparent; cursor: pointer; transition: .2s ease; }
.primary-button { background: var(--red); color: white; box-shadow: 0 10px 25px rgba(201,65,69,.2); }
.primary-button:hover, .primary-button:focus-visible { background: var(--red-dark); transform: translateY(-1px); }
.secondary-button { background: white; color: var(--navy); border-color: var(--line); }
.mobile-nav { display: none; position: relative; }
.mobile-nav summary { cursor: pointer; font-weight: 750; color: var(--navy); list-style: none; padding: 10px; }
.mobile-nav summary::-webkit-details-marker { display: none; }
.mobile-nav nav { position: absolute; right: 0; top: 48px; width: 220px; background: white; border: 1px solid var(--line); box-shadow: 0 15px 40px rgba(17,26,61,.14); padding: 10px; border-radius: 16px; }
.mobile-nav nav a { display: block; padding: 11px 12px; border-bottom: 1px solid var(--line); }
.mobile-nav nav a:last-child { border: 0; }

.hero { overflow: hidden; background: linear-gradient(145deg, #fff 0%, #f5f6fb 57%, #efebf5 100%); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(390px, .92fr); gap: clamp(42px, 6vw, 88px); align-items: center; padding-top: clamp(58px, 8vw, 112px); padding-bottom: clamp(66px, 9vw, 126px); }
.eyebrow, .section-kicker { margin: 0 0 13px; color: var(--red); font-size: .78rem; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; }
.hero h1 { margin: 0; max-width: 760px; color: var(--navy-deep); font-family: Arial, "Segoe UI", sans-serif; font-size: clamp(3rem, 4.8vw, 5rem); font-weight: 700; line-height: 1.08; letter-spacing: -.035em; overflow-wrap: normal; word-break: normal; }
.hero h1 em { display: block; margin-top: .1em; color: var(--red); font-family: inherit; font-size: .72em; font-style: normal; font-weight: 700; line-height: 1.15; letter-spacing: -.025em; white-space: nowrap; }
.hero-lead { max-width: 680px; margin: 28px 0; color: #4c5668; font-size: clamp(1.03rem, 1.4vw, 1.2rem); }
.hero-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 22px; }
.text-link { font-weight: 750; color: var(--navy); }
.text-link:hover { color: var(--red); }
.trust-points { margin-top: 28px; display: flex; flex-wrap: wrap; gap: 10px 20px; color: var(--muted); font-size: .88rem; }
.hero-visual { position: relative; }
.hero-visual > img { width: 100%; aspect-ratio: 1.25; object-fit: cover; border-radius: 150px 18px 18px 18px; box-shadow: 24px 28px 0 var(--navy); }
.hero-badge { position: absolute; left: -38px; bottom: -34px; width: 230px; padding: 20px; background: white; border-left: 5px solid var(--red); box-shadow: 0 16px 40px rgba(17,26,61,.17); }
.hero-badge strong { display: block; color: var(--red); font-family: Arial, "Segoe UI", sans-serif; font-size: 2.15rem; line-height: 1; }
.hero-badge span { display: block; margin-top: 5px; color: var(--muted); font-size: .78rem; line-height: 1.45; }

.metrics { border-bottom: 1px solid var(--line); }
.metrics-grid { display: grid; grid-template-columns: repeat(4, 1fr); padding-top: 26px; padding-bottom: 26px; }
.metrics-grid > div { padding: 4px 25px; border-right: 1px solid var(--line); }
.metrics-grid > div:first-child { padding-left: 0; }
.metrics-grid > div:last-child { border: 0; }
.metrics-grid strong, .metrics-grid span { display: block; }
.metrics-grid strong { color: var(--navy); font-size: 1.35rem; }
.metrics-grid span { margin-top: 3px; color: var(--muted); font-size: .82rem; }
.metric-note { margin: -8px 20px 15px; text-align: center; color: var(--muted); font-size: .72rem; }

.section { padding-top: clamp(70px, 9vw, 128px); padding-bottom: clamp(70px, 9vw, 128px); }
.section-tint { background: var(--soft); }
.about-grid { display: grid; grid-template-columns: minmax(260px, .8fr) minmax(0, 1.2fr); gap: clamp(50px, 8vw, 120px); }
.section h2 { margin: 0; color: var(--navy); font-family: Arial, "Segoe UI", sans-serif; font-size: clamp(2.25rem, 4vw, 4rem); line-height: 1.12; font-weight: 700; letter-spacing: -.025em; }
.about-copy { color: #4d586b; font-size: 1.03rem; }
.about-copy > p:first-child { margin-top: 0; }
.legal-list { margin: 30px 0 0; border-top: 1px solid var(--line); }
.legal-list > div { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.legal-list dt { color: var(--muted); font-size: .82rem; }
.legal-list dd { margin: 0; color: var(--navy); font-weight: 650; }
.section-heading { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(250px, .6fr); gap: 44px; align-items: end; margin-bottom: 45px; }
.section-heading > p { margin: 0; color: var(--muted); }
.gallery-heading h2 { font-size: clamp(2rem, 3.4vw, 3.25rem); white-space: nowrap; }

.course-group { padding: 36px 0; border-top: 1px solid var(--line); }
.course-group-title { display: grid; grid-template-columns: 46px 1fr; gap: 18px; margin-bottom: 28px; }
.course-group-title > span { display: grid; place-items: center; width: 42px; height: 42px; background: var(--navy); color: white; border-radius: 50%; font-weight: 800; }
.course-group-title h3, .course-group-title p { margin: 0; }
.course-group-title h3 { color: var(--navy); font-size: 1.35rem; }
.course-group-title p { color: var(--muted); font-size: .9rem; }
.course-grid { display: grid; gap: 14px; }
.hsk-grid { grid-template-columns: repeat(5, 1fr); }
.course-card { min-height: 255px; display: flex; flex-direction: column; padding: 24px; background: white; border: 1px solid var(--line); transition: .2s ease; }
.course-card:hover { border-color: var(--red); transform: translateY(-3px); box-shadow: 0 16px 35px rgba(17,26,61,.08); }
.course-card > span { color: var(--red); font-size: .78rem; font-weight: 850; letter-spacing: .12em; }
.course-card h4 { margin: 12px 0 8px; color: var(--navy); font-size: 1.05rem; }
.course-card p { margin: 0; color: var(--muted); font-size: .88rem; }
.course-card a { margin-top: auto; color: var(--navy); font-size: .85rem; font-weight: 750; }
.two-column-programs { display: grid; grid-template-columns: .85fr 1.15fr; gap: 50px; }
.compact-list { border-top: 1px solid var(--line); }
.compact-list article { display: grid; grid-template-columns: 150px 1fr; gap: 18px; padding: 15px 0; border-bottom: 1px solid var(--line); }
.compact-list strong { color: var(--navy); }
.compact-list p { margin: 0; color: var(--muted); font-size: .88rem; }

.schedule-wrap { overflow-x: auto; border-top: 3px solid var(--navy); }
.schedule-wrap table { width: 100%; min-width: 850px; border-collapse: collapse; }
.schedule-wrap th, .schedule-wrap td { padding: 17px 15px; text-align: left; border-bottom: 1px solid var(--line); }
.schedule-wrap th { color: var(--muted); font-size: .76rem; letter-spacing: .08em; text-transform: uppercase; }
.schedule-wrap td:first-child { color: var(--navy); font-weight: 750; }
.schedule-wrap .status { color: var(--red); font-size: .82rem; font-weight: 750; }
.schedule-wrap td:last-child { text-align: right; }
.schedule-wrap td:last-child a { color: var(--navy); font-weight: 750; }

.faculty-section { background: var(--navy); color: white; }
.faculty-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(50px, 8vw, 110px); align-items: center; }
.faculty-section h2 { color: white; }
.faculty-section p { color: #c8cfe0; }
.section-kicker.light { color: #ff999b; }
.faculty-points { display: grid; grid-template-columns: repeat(2, 1fr); }
.faculty-points article { min-height: 150px; padding: 28px; border: 1px solid rgba(255,255,255,.18); }
.faculty-points strong, .faculty-points span { display: block; }
.faculty-points strong { color: #ff8e90; font-size: 1.08rem; }
.faculty-points span { margin-top: 8px; color: #d6dbea; font-size: .85rem; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.gallery figure { position: relative; margin: 0; overflow: hidden; background: var(--soft); min-height: 270px; }
.gallery .gallery-large { grid-column: span 2; min-height: 450px; }
.gallery img { width: 100%; height: 100%; object-fit: cover; position: absolute; inset: 0; transition: transform .45s ease; }
.gallery figure:hover img { transform: scale(1.025); }
.gallery figcaption { position: absolute; left: 18px; bottom: 18px; padding: 7px 11px; background: rgba(17,26,61,.88); color: white; font-size: .78rem; }
.article-grid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.article-card { min-height: 300px; display: flex; flex-direction: column; padding: 30px; border-right: 1px solid var(--line); }
.article-card:last-child { border: 0; }
.article-card > span { color: var(--red); font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.article-card h3 { margin: 20px 0 12px; color: var(--navy); font-family: Arial, "Segoe UI", sans-serif; font-size: 1.45rem; line-height: 1.25; }
.article-card p { margin: 0; color: var(--muted); font-size: .92rem; }
.article-card a { margin-top: auto; padding-top: 25px; color: var(--navy); font-weight: 750; font-size: .87rem; }
.article-card .article-source { display: block; margin-top: 10px; color: var(--red); }

.contact-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(360px, .7fr); gap: clamp(55px, 9vw, 130px); align-items: start; }
.contact-copy > p { color: var(--muted); }
.contact-copy h2 { font-size: clamp(2rem, 2.7vw, 2.5rem); line-height: 1.15; white-space: nowrap; }
address { margin-top: 34px; font-style: normal; border-top: 1px solid var(--line); }
address > div { display: grid; grid-template-columns: 90px 1fr; gap: 15px; padding: 15px 0; border-bottom: 1px solid var(--line); }
address span { color: var(--muted); font-size: .83rem; }
address strong, address a { color: var(--navy); font-weight: 700; }
.contact-form { margin-top: 28px; padding: clamp(26px, 4vw, 42px); background: var(--soft); border-top: 5px solid var(--red); }
.contact-form h3 { margin: 0; color: var(--navy); font-size: 1.5rem; }
.contact-form > p { margin: 8px 0 22px; color: var(--muted); font-size: .9rem; }
.form-grid { display: grid; gap: 14px; }
.form-grid label { color: var(--navy); font-size: .82rem; font-weight: 700; }
.form-grid input, .form-grid select, .form-grid textarea { display: block; width: 100%; margin-top: 6px; padding: 12px 13px; color: var(--ink); background: white; border: 1px solid var(--line); border-radius: 7px; outline: none; }
.form-grid input:focus, .form-grid select:focus, .form-grid textarea:focus { border-color: var(--navy); box-shadow: 0 0 0 3px rgba(24,38,81,.1); }
.submit-button { width: 100%; margin-top: 17px; border: 0; }
.contact-form small { display: block; margin-top: 12px; color: var(--muted); }
.submit-button:disabled { opacity: .55; cursor: wait; transform: none; }
.contact-complete { min-height: 390px; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; }
.complete-mark { display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; background: var(--navy); color: white; font-size: 1.5rem; }
.complete-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.reset-button { margin-top: 18px; border: 0; background: none; color: var(--navy); text-decoration: underline; cursor: pointer; }

footer { padding: 55px 0 18px; background: var(--navy-deep); color: #cbd1e0; }
.footer-grid { display: grid; grid-template-columns: 1.4fr .6fr 1fr; gap: 40px; }
.footer-grid > div { display: flex; flex-direction: column; gap: 7px; }
.footer-grid strong { color: white; }
.footer-grid a, .footer-grid span { font-size: .84rem; }
.footer-brand { flex-direction: row !important; align-items: center; }
.footer-brand img { width: 75px; height: 75px; object-fit: contain; }
.footer-brand span { display: block; color: #aeb7cc; }
.footer-bottom { display: flex; justify-content: space-between; gap: 18px; margin-top: 40px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); color: #8f99b2; font-size: .75rem; }

.chatbot { position: fixed; right: clamp(14px, 2vw, 28px); bottom: clamp(14px, 2vw, 28px); z-index: 50; }
.chat-toggle { min-width: 58px; min-height: 58px; display: flex; align-items: center; justify-content: center; gap: 8px; padding: 0 18px; border: 0; border-radius: 999px; background: var(--red); color: white; box-shadow: 0 14px 35px rgba(17,26,61,.3); cursor: pointer; font-weight: 800; }
.chat-toggle > span { font-size: .78rem; }
.chat-window { position: absolute; right: 0; bottom: 70px; width: min(360px, calc(100vw - 28px)); max-height: min(610px, calc(100vh - 110px)); overflow: auto; background: white; border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 22px 60px rgba(17,26,61,.25); }
.chat-head { padding: 17px 18px; background: var(--navy); color: white; border-radius: 17px 17px 0 0; }
.chat-head strong, .chat-head span { display: block; }
.chat-head span { color: #c9d0e0; font-size: .75rem; }
.chat-body { padding: 16px; }
.bot-message { padding: 12px 14px; background: var(--soft); border-radius: 4px 14px 14px 14px; color: var(--ink); font-size: .85rem; }
.faq-options { display: grid; gap: 7px; }
.faq-options button { padding: 10px 12px; text-align: left; border: 1px solid var(--line); border-radius: 9px; background: white; color: var(--navy); cursor: pointer; font-size: .8rem; }
.faq-options button:hover { border-color: var(--red); }
.bot-message.answer strong, .bot-message.answer a { display: block; }
.bot-message.answer strong { color: var(--red); }
.bot-message.answer a { margin-top: 8px; color: var(--navy); font-weight: 750; }

@media (max-width: 1120px) {
  .desktop-nav { display: none; }
  .header-cta { margin-left: auto; }
  .mobile-nav { display: block; }
  .hsk-grid { grid-template-columns: repeat(3, 1fr); }
  .hero-grid { grid-template-columns: 1fr 420px; gap: 45px; }
}

@media (max-width: 860px) {
  .hero-grid, .about-grid, .faculty-grid, .contact-grid, .two-column-programs { grid-template-columns: 1fr; }
  .contact-copy h2 { white-space: normal; }
  .contact-form { margin-top: 0; }
  .hero-copy { order: 1; }
  .hero-visual { order: 2; margin: 8px 28px 20px; }
  .hero-visual > img { border-radius: 90px 16px 16px 16px; }
  .metrics-grid { grid-template-columns: repeat(2, 1fr); }
  .metrics-grid > div:nth-child(2) { border: 0; }
  .metrics-grid > div:nth-child(n+3) { margin-top: 18px; }
  .section-heading { grid-template-columns: 1fr; gap: 16px; }
  .gallery-heading h2 { white-space: normal; }
  .hsk-grid { grid-template-columns: repeat(2, 1fr); }
  .article-grid { grid-template-columns: 1fr; }
  .article-card { min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .gallery .gallery-large { min-height: 360px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
}

@media (max-width: 560px) {
  .site-width { padding-inline: 17px; }
  .announcement-inner { justify-content: flex-start; font-size: .74rem; }
  .announcement a { margin-left: auto; }
  .header-inner { min-height: 72px; gap: 10px; }
  .brand { min-width: 0; gap: 8px; }
  .brand img { width: 48px; height: 48px; }
  .brand strong { font-size: .89rem; }
  .brand small, .header-cta { display: none; }
  .hero-grid { padding-top: 50px; padding-bottom: 76px; }
  .hero h1 { font-size: clamp(2.55rem, 11vw, 3.4rem); }
  .hero h1 em { font-size: .8em; white-space: normal; }
  .hero-visual { margin-inline: 0; }
  .hero-badge { left: 12px; right: 12px; bottom: -30px; width: auto; }
  .trust-points { display: grid; }
  .metrics-grid { grid-template-columns: 1fr; }
  .metrics-grid > div, .metrics-grid > div:first-child { padding: 12px 0; border: 0; border-bottom: 1px solid var(--line); margin: 0 !important; }
  .legal-list > div { grid-template-columns: 1fr; gap: 3px; }
  .hsk-grid, .faculty-points { grid-template-columns: 1fr; }
  .course-card { min-height: 210px; }
  .compact-list article { grid-template-columns: 1fr; gap: 4px; }
  .gallery { grid-template-columns: 1fr; }
  .gallery .gallery-large { grid-column: auto; min-height: 280px; }
  .gallery figure { min-height: 250px; }
  .footer-grid, .footer-bottom { grid-template-columns: 1fr; display: grid; }
  .footer-brand { grid-column: auto; }
  .chat-toggle { min-width: 54px; padding: 0 15px; }
  .chat-toggle > span { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; }
}
