/*
Theme Name: Mandarin Begin
Theme URI: https://www.mandarinbegin.cn/
Description: English learning platform presentation built on Uhang GEO One.
Author: Wuhan Chinese Begin Education Technology Co., Ltd.
Template: uhang-enterprise-geo
Version: 1.0.0
Requires at least: 6.7
Requires PHP: 8.0
Text Domain: mandarin-begin
License: GPL-2.0-or-later
*/

:root {
  --mb-ink: #0b1830;
  --mb-copy: #46556c;
  --mb-blue: #1267d6;
  --mb-cyan: #2fb7df;
  --mb-green: #17866f;
  --mb-gold: #f1ae3c;
  --mb-line: #dbe4ee;
  --mb-soft: #f4f8fc;
  --mb-white: #ffffff;
  --mb-shadow: 0 22px 60px rgba(11, 24, 48, .12);
}

html {
  scroll-behavior: smooth;
}

body.mandarin-begin-site {
  background: var(--mb-white);
  color: var(--mb-ink);
  font-family: Inter, "Segoe UI", Arial, sans-serif;
  letter-spacing: 0;
  overflow-x: clip;
}

body.mandarin-begin-site main {
  overflow: clip;
}

body.mandarin-begin-site .wp-site-blocks {
  padding: 0;
}

body.mandarin-begin-site header.wp-block-template-part {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 28px;
  min-height: 78px;
  padding: 12px max(24px, calc((100vw - 1240px) / 2));
  border-bottom: 1px solid rgba(11, 24, 48, .09);
  background: rgba(255, 255, 255, .96);
  box-shadow: 0 8px 24px rgba(11, 24, 48, .04);
  backdrop-filter: blur(14px);
}

body.mandarin-begin-site .uhgeo-header-brand {
  min-width: 0;
  gap: 12px;
}

body.mandarin-begin-site .uhgeo-header-brand .wp-block-site-logo img {
  width: 112px;
  height: 42px;
  object-fit: contain;
}

body.mandarin-begin-site .uhgeo-header-brand .wp-block-site-title {
  display: none;
}

body.mandarin-begin-site .uhgeo-primary-navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
}

body.mandarin-begin-site .uhgeo-primary-navigation a {
  color: #20304a;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

body.mandarin-begin-site .uhgeo-primary-navigation a:hover,
body.mandarin-begin-site .uhgeo-primary-navigation a:focus-visible {
  color: var(--mb-blue);
}

body.mandarin-begin-site .uhgeo-header-cta a {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 10px 18px;
  border-radius: 6px;
  background: var(--mb-ink);
  color: #fff;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.mb-home,
.mb-page {
  margin: 0;
}

.mb-container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

.mb-hero {
  position: relative;
  min-height: 690px;
  display: grid;
  align-items: end;
  background-image: url("assets/lesson-hero.jpg");
  background-position: center;
  background-size: cover;
  isolation: isolate;
}

.mb-hero::before {
  position: absolute;
  inset: 0;
  z-index: -1;
  content: "";
  background: rgba(5, 22, 45, .78);
}

.mb-hero::after {
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 8px;
  content: "";
  background: linear-gradient(90deg, var(--mb-cyan) 0 42%, var(--mb-gold) 42% 58%, var(--mb-green) 58% 100%);
}

.mb-hero-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 128px 0 96px;
}

.mb-eyebrow,
.mb-kicker {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  color: var(--mb-cyan);
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.mb-eyebrow::before,
.mb-kicker::before {
  width: 36px;
  height: 2px;
  content: "";
  background: currentColor;
}

.mb-hero h1 {
  max-width: 800px;
  margin: 0;
  color: #fff;
  font-size: 72px;
  line-height: 1.02;
  letter-spacing: 0;
}

.mb-hero-lead {
  max-width: 690px;
  margin: 24px 0 0;
  color: rgba(255, 255, 255, .88);
  font-size: 20px;
  line-height: 1.7;
}

.mb-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 34px;
}

.mb-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 22px;
  border: 1px solid rgba(255, 255, 255, .55);
  border-radius: 6px;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

.mb-button.primary {
  border-color: var(--mb-gold);
  background: var(--mb-gold);
  color: #1c2430;
}

.mb-button.dark {
  border-color: var(--mb-ink);
  background: var(--mb-ink);
  color: #fff;
}

.mb-button:hover,
.mb-button:focus-visible {
  transform: translateY(-2px);
}

.mb-proof-band {
  background: #fff;
  border-bottom: 1px solid var(--mb-line);
}

.mb-proof-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.mb-proof {
  min-width: 0;
  padding: 30px 24px;
  border-right: 1px solid var(--mb-line);
}

.mb-proof:first-child {
  border-left: 1px solid var(--mb-line);
}

.mb-proof strong {
  display: block;
  color: var(--mb-ink);
  font-size: 30px;
  line-height: 1;
}

.mb-proof span {
  display: block;
  margin-top: 9px;
  color: var(--mb-copy);
  font-size: 14px;
  line-height: 1.5;
}

.mb-section {
  padding: 96px 0;
}

.mb-section.soft {
  background: var(--mb-soft);
}

.mb-section.ink {
  background: var(--mb-ink);
  color: #fff;
}

.mb-section-head {
  display: grid;
  grid-template-columns: minmax(0, .9fr) minmax(320px, .62fr);
  gap: 72px;
  align-items: end;
  margin-bottom: 48px;
}

.mb-section-head.single {
  display: block;
  max-width: 760px;
}

.mb-section-head h2,
.mb-page-hero h1 {
  margin: 0;
  color: var(--mb-ink);
  font-size: 46px;
  line-height: 1.12;
  letter-spacing: 0;
}

.mb-section.ink .mb-section-head h2,
.mb-section.ink .mb-section-head p {
  color: #fff;
}

.mb-section-head p {
  margin: 0;
  color: var(--mb-copy);
  font-size: 17px;
  line-height: 1.75;
}

.mb-feature-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(320px, .7fr);
  gap: 48px;
  align-items: center;
}

.mb-product-stage {
  position: relative;
  min-height: 590px;
  overflow: hidden;
  border-radius: 8px;
  background: #dff4ff;
  box-shadow: var(--mb-shadow);
}

.mb-product-stage img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center bottom;
}

.mb-feature-list {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--mb-line);
}

.mb-feature-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--mb-line);
}

.mb-feature-row b {
  color: var(--mb-blue);
  font-size: 14px;
}

.mb-feature-row h3 {
  margin: 0 0 7px;
  color: var(--mb-ink);
  font-size: 21px;
}

.mb-feature-row p {
  margin: 0;
  color: var(--mb-copy);
  line-height: 1.7;
}

.mb-practice-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.mb-practice-card {
  overflow: hidden;
  border: 1px solid var(--mb-line);
  border-radius: 8px;
  background: #fff;
}

.mb-practice-card img {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: contain;
  background: #dff4ff;
}

.mb-practice-card div {
  padding: 24px;
}

.mb-practice-card h3 {
  margin: 0 0 8px;
  color: var(--mb-ink);
  font-size: 21px;
}

.mb-practice-card p {
  margin: 0;
  color: var(--mb-copy);
  line-height: 1.65;
}

.mb-levels {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .16);
  border-radius: 8px;
  background: rgba(255, 255, 255, .16);
}

.mb-level {
  min-height: 250px;
  padding: 30px;
  background: #11233e;
}

.mb-level .level-code {
  color: var(--mb-gold);
  font-size: 13px;
  font-weight: 900;
}

.mb-level h3 {
  margin: 46px 0 10px;
  color: #fff;
  font-size: 25px;
}

.mb-level p {
  margin: 0;
  color: rgba(255, 255, 255, .72);
  line-height: 1.7;
}

.mb-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 46px;
  align-items: center;
}

.mb-split.reverse .mb-split-media {
  order: 2;
}

.mb-split-media {
  overflow: hidden;
  border-radius: 8px;
  box-shadow: var(--mb-shadow);
}

.mb-split-media img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.mb-split-copy h2,
.mb-split-copy h3 {
  margin: 0 0 18px;
  color: var(--mb-ink);
  font-size: 38px;
  line-height: 1.15;
}

.mb-split-copy p {
  color: var(--mb-copy);
  font-size: 17px;
  line-height: 1.8;
}

.mb-check-list {
  display: grid;
  gap: 12px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}

.mb-check-list li {
  position: relative;
  padding-left: 28px;
  color: #25364f;
  line-height: 1.65;
}

.mb-check-list li::before {
  position: absolute;
  top: 7px;
  left: 0;
  width: 14px;
  height: 14px;
  border: 3px solid var(--mb-green);
  border-radius: 50%;
  content: "";
}

.mb-pathway-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mb-pathway {
  min-height: 250px;
  padding: 30px;
  border-top: 4px solid var(--mb-cyan);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 40px rgba(11, 24, 48, .07);
}

.mb-pathway:nth-child(2) {
  border-top-color: var(--mb-gold);
}

.mb-pathway:nth-child(3) {
  border-top-color: var(--mb-green);
}

.mb-pathway span {
  color: var(--mb-blue);
  font-size: 13px;
  font-weight: 900;
}

.mb-pathway h3 {
  margin: 26px 0 12px;
  color: var(--mb-ink);
  font-size: 24px;
}

.mb-pathway p {
  margin: 0;
  color: var(--mb-copy);
  line-height: 1.75;
}

.mb-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 40px;
  align-items: center;
  padding: 46px;
  border-radius: 8px;
  background: #e7f6fb;
  border: 1px solid #bae4f1;
}

.mb-cta h2 {
  margin: 0 0 10px;
  color: var(--mb-ink);
  font-size: 34px;
}

.mb-cta p {
  margin: 0;
  color: var(--mb-copy);
  line-height: 1.7;
}

.mb-page-hero {
  padding: 112px 0 72px;
  background: var(--mb-soft);
  border-bottom: 1px solid var(--mb-line);
}

.mb-page-hero p {
  max-width: 760px;
  margin: 18px 0 0;
  color: var(--mb-copy);
  font-size: 18px;
  line-height: 1.75;
}

.mb-rich-text {
  max-width: 820px;
  margin-inline: auto;
}

.mb-rich-text h2 {
  margin: 56px 0 18px;
  color: var(--mb-ink);
  font-size: 32px;
}

.mb-rich-text p,
.mb-rich-text li {
  color: var(--mb-copy);
  font-size: 17px;
  line-height: 1.85;
}

.mb-insights-section {
  padding: 96px 0;
  background: #fff;
}

.mb-insights-head {
  display: flex;
  justify-content: space-between;
  gap: 30px;
  align-items: end;
  margin-bottom: 38px;
}

.mb-insights-head h2 {
  margin: 0;
  color: var(--mb-ink);
  font-size: 42px;
}

.mb-insights-head p {
  max-width: 650px;
  margin: 10px 0 0;
  color: var(--mb-copy);
  line-height: 1.7;
}

.mb-insights-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.mb-article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--mb-line);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
}

.mb-article-cover {
  display: grid;
  place-items: end start;
  aspect-ratio: 16 / 9;
  padding: 20px;
  background: #dff4ff;
  color: var(--mb-blue);
  font-weight: 900;
}

.mb-article-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 24px;
}

.mb-article-card time {
  color: #708098;
  font-size: 13px;
}

.mb-article-card h3 {
  margin: 12px 0;
  font-size: 21px;
  line-height: 1.3;
}

.mb-article-card h3 a {
  color: var(--mb-ink);
  text-decoration: none;
}

.mb-article-card p {
  margin: 0 0 20px;
  color: var(--mb-copy);
  line-height: 1.7;
}

.mb-article-link {
  margin-top: auto;
  color: var(--mb-blue);
  font-weight: 800;
  text-decoration: none;
}

.mb-empty {
  grid-column: 1 / -1;
  padding: 28px;
  border: 1px dashed #a9c7db;
  border-radius: 8px;
  color: var(--mb-copy);
}

.mb-article-shell {
  width: min(860px, calc(100% - 48px));
  margin: 80px auto 110px;
}

.mb-article-shell .wp-block-post-title {
  color: var(--mb-ink);
  font-size: 48px;
  line-height: 1.12;
}

.mb-article-shell .wp-block-post-date {
  margin-bottom: 34px;
  color: #708098;
}

.mb-article-shell .wp-block-post-content {
  color: var(--mb-copy);
  font-size: 18px;
  line-height: 1.85;
}

.mb-back-link {
  margin-top: 42px;
}

.mb-back-link a {
  color: var(--mb-blue);
  font-weight: 800;
  text-decoration: none;
}

body.mandarin-begin-site footer.wp-block-template-part {
  margin: 0;
  background: #07152a;
  color: #fff;
}

.mb-footer-inner {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
  padding: 72px 0 30px;
}

.mb-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr .8fr .8fr;
  gap: 52px;
}

.mb-footer-grid > * {
  min-width: 0;
}

.mb-footer-brand .wp-block-site-logo img {
  width: 134px;
  height: 54px;
  object-fit: contain;
  padding: 6px 10px;
  border-radius: 6px;
  background: #fff;
}

.mb-footer-brand .wp-block-site-title {
  margin-top: 18px;
  color: #fff;
  font-size: 21px;
  font-weight: 800;
}

.mb-footer-brand .wp-block-site-tagline {
  max-width: 420px;
  color: rgba(255, 255, 255, .68);
  line-height: 1.7;
}

.mb-footer-column h2 {
  margin: 0 0 20px;
  color: #fff;
  font-size: 15px;
}

.mb-footer-column nav,
.mb-footer-column .mb-footer-links {
  display: grid;
  justify-content: start;
  gap: 12px;
}

body.mandarin-begin-site .mb-footer-column .uhgeo-primary-navigation {
  display: grid;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 0;
  overflow: visible;
  gap: 12px;
}

body.mandarin-begin-site .mb-footer-column .uhgeo-primary-navigation a {
  white-space: normal;
}

.mb-footer-column a {
  color: rgba(255, 255, 255, .72);
  font-size: 14px;
  text-decoration: none;
}

.mb-footer-column a:hover {
  color: #fff;
}

.mb-footer-legal {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .13);
  color: rgba(255, 255, 255, .58);
  font-size: 13px;
}

.mb-footer-legal p {
  margin: 0;
}

.mb-footer-legal a {
  color: rgba(255, 255, 255, .72);
  text-decoration: none;
}

@media (max-width: 1080px) {
  body.mandarin-begin-site header.wp-block-template-part {
    grid-template-columns: 1fr auto;
  }

  body.mandarin-begin-site .uhgeo-primary-navigation {
    grid-column: 1 / -1;
    order: 3;
    justify-content: flex-start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .mb-hero h1 {
    font-size: 56px;
  }

  .mb-levels,
  .mb-proof-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mb-feature-layout {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 800px) {
  body.mandarin-begin-site header.wp-block-template-part {
    gap: 14px;
    min-height: 70px;
    padding-inline: 20px;
  }

  body.mandarin-begin-site .uhgeo-header-cta {
    display: none;
  }

  body.mandarin-begin-site .uhgeo-primary-navigation {
    gap: 18px;
    width: 100%;
    max-width: calc(100vw - 40px);
    min-width: 0;
  }

  .mb-container,
  .mb-hero-inner,
  .mb-footer-inner,
  .mb-article-shell {
    width: min(100% - 34px, 1180px);
  }

  .mb-hero {
    min-height: 620px;
    background-position: 62% center;
  }

  .mb-hero-inner {
    padding: 110px 0 72px;
  }

  .mb-hero h1 {
    font-size: 44px;
  }

  .mb-hero-lead {
    font-size: 18px;
  }

  .mb-section {
    padding: 72px 0;
  }

  .mb-section-head,
  .mb-feature-layout,
  .mb-split {
    grid-template-columns: 1fr;
    gap: 34px;
  }

  .mb-section-head h2,
  .mb-page-hero h1 {
    font-size: 38px;
  }

  .mb-product-stage {
    min-height: 520px;
  }

  .mb-practice-grid,
  .mb-pathway-grid,
  .mb-insights-grid,
  .mb-footer-grid {
    grid-template-columns: 1fr;
  }

  .mb-split.reverse .mb-split-media {
    order: 0;
  }

  .mb-cta {
    grid-template-columns: 1fr;
    padding: 32px;
  }

  .mb-footer-legal,
  .mb-insights-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 520px) {
  .mb-hero {
    min-height: 560px;
  }

  .mb-hero h1 {
    font-size: 36px;
  }

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

  .mb-proof-grid,
  .mb-levels {
    grid-template-columns: 1fr;
  }

  .mb-proof {
    border-left: 1px solid var(--mb-line);
  }

  .mb-product-stage {
    min-height: 430px;
  }

  .mb-section-head h2,
  .mb-page-hero h1,
  .mb-split-copy h2,
  .mb-split-copy h3,
  .mb-insights-head h2 {
    font-size: 32px;
  }

  .mb-article-shell .wp-block-post-title {
    font-size: 36px;
  }
}
