/*
 * MathPro Tutors - Math Guru theme structural correction v2
 * Loaded after all legacy/module styles.
 * Purpose: restore complete layout/spacing/component geometry for the public site
 * while retaining the fuchsia/cobalt/charcoal visual language across the app.
 */

body.mathguru-theme {
  --mg-pink: var(--guru-pink, #f451b5);
  --mg-pink-dark: var(--guru-pink-dark, #d93898);
  --mg-pink-soft: #fff0f8;
  --mg-blue: var(--guru-blue, #4d5cff);
  --mg-blue-dark: var(--guru-blue-dark, #343fcf);
  --mg-blue-soft: #eef0ff;
  --mg-ink: var(--guru-ink, #17161d);
  --mg-muted: #69636e;
  --mg-line: #e8e1e8;
  --mg-paper: #ffffff;
  --mg-wash: #fbf7fa;
  --mg-dark: #0d0c12;
  --mg-dark-2: #17151e;
  --mg-shadow: 0 18px 48px rgba(27, 19, 30, .10);
  --mg-shadow-soft: 0 8px 28px rgba(27, 19, 30, .07);
  --mg-radius: 18px;
  --mg-radius-sm: 10px;
  --mg-heading: "Avenir Next", Avenir, "Trebuchet MS", Inter, ui-sans-serif, system-ui, sans-serif;
  --mg-body: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-family: var(--mg-body);
  font-size: 16px;
  line-height: 1.55;
}

body.mathguru-theme *,
body.mathguru-theme *::before,
body.mathguru-theme *::after { box-sizing: border-box; }

body.mathguru-theme main { min-width: 0; }
body.mathguru-theme img { max-width: 100%; height: auto; }
body.mathguru-theme .container {
  width: min(1180px, calc(100% - 48px));
  margin-inline: auto;
}

body.mathguru-theme h1,
body.mathguru-theme h2,
body.mathguru-theme h3,
body.mathguru-theme h4,
body.mathguru-theme .brand strong {
  font-family: var(--mg-heading);
  font-weight: 800;
}

body.mathguru-theme p { line-height: 1.7; }
body.mathguru-theme a { text-decoration-thickness: 1px; }

/* ---------- global controls ---------- */
body.mathguru-theme .button,
body.mathguru-theme button.button,
body.mathguru-theme input[type="submit"].button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  min-height: 48px;
  padding: .78rem 1.2rem;
  border: 1px solid transparent;
  border-radius: 6px;
  font-size: .92rem;
  line-height: 1.1;
  text-decoration: none;
  cursor: pointer;
}
body.mathguru-theme .button-block { width: 100%; }
body.mathguru-theme .button-ghost-light {
  color: #fff !important;
  background: transparent !important;
  border-color: rgba(255,255,255,.48) !important;
}
body.mathguru-theme .button-ghost-light:hover {
  background: rgba(255,255,255,.10) !important;
  border-color: #fff !important;
}

body.mathguru-theme input:not([type="checkbox"]):not([type="radio"]):not([type="hidden"]),
body.mathguru-theme select,
body.mathguru-theme textarea {
  width: 100%;
  min-height: 46px;
  padding: .72rem .82rem;
  border: 1px solid #d9d1da;
  border-radius: 7px;
  background: #fff;
  color: var(--mg-ink);
  font: inherit;
  font-size: .92rem;
  line-height: 1.3;
}
body.mathguru-theme textarea { min-height: 120px; resize: vertical; }
body.mathguru-theme input:focus,
body.mathguru-theme select:focus,
body.mathguru-theme textarea:focus {
  outline: none;
  border-color: var(--mg-blue);
  box-shadow: 0 0 0 3px rgba(77,92,255,.13);
}

/* ---------- announcement/header ---------- */
body.mathguru-theme .guru-announcement-bar {
  min-height: 34px;
  padding: 7px 18px;
  font-size: .72rem;
  line-height: 1.25;
}
body.mathguru-theme .pro-site-header,
body.mathguru-theme .site-header {
  position: sticky;
  top: 0;
  z-index: 80;
}
body.mathguru-theme .pro-header-inner,
body.mathguru-theme .header-inner {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 72px;
  gap: 24px;
}
body.mathguru-theme .pro-brand,
body.mathguru-theme .brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  flex: 0 0 auto;
  text-decoration: none;
}
body.mathguru-theme .pro-brand-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}
body.mathguru-theme .pro-brand-copy strong {
  font-size: .98rem;
  letter-spacing: -.02em;
  line-height: 1.05;
}
body.mathguru-theme .pro-brand-copy small {
  font-size: .62rem;
  line-height: 1.15;
  white-space: nowrap;
}
body.mathguru-theme .brand-mark {
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  font-size: .72rem;
  font-weight: 900;
}
body.mathguru-theme .pro-header-nav,
body.mathguru-theme .header-nav {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 3px;
  min-width: 0;
  margin-left: auto;
}
body.mathguru-theme .pro-header-nav > a,
body.mathguru-theme .header-nav > a {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 8px 9px;
  font-size: .78rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
}
body.mathguru-theme .pro-header-actions,
body.mathguru-theme .mpt-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-left: 5px;
}
body.mathguru-theme .pro-header-actions > a,
body.mathguru-theme .pro-header-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid transparent;
  border-radius: 5px;
  font-size: .75rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}
body.mathguru-theme .pro-header-actions form { margin: 0; }
body.mathguru-theme .pro-nav-toggle,
body.mathguru-theme .mpt-nav-toggle { display: none; }

/* ---------- common public section primitives ---------- */
body.mathguru-theme .pro-section {
  padding: clamp(72px, 8vw, 108px) 0;
}
body.mathguru-theme .pro-soft-section { background: #fff6fb; }
body.mathguru-theme .pro-section-heading {
  max-width: 760px;
  margin: 0 auto 38px;
  text-align: center;
}
body.mathguru-theme .pro-section-heading-left {
  max-width: 720px;
  margin-inline: 0;
  text-align: left;
}
body.mathguru-theme .pro-section-heading h2 {
  margin: .45rem 0 .7rem;
  font-size: clamp(2rem, 3.8vw, 3.25rem);
  line-height: 1.04;
  letter-spacing: -.045em;
}
body.mathguru-theme .pro-section-heading p {
  max-width: 680px;
  margin: 0 auto;
  color: var(--mg-muted);
  font-size: .98rem;
}
body.mathguru-theme .pro-section-heading-left p { margin-inline: 0; }
body.mathguru-theme .pro-heading-with-action {
  max-width: none;
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 28px;
  text-align: left;
}
body.mathguru-theme .pro-heading-with-action > div { max-width: 760px; }
body.mathguru-theme .pro-heading-with-action p { margin-inline: 0; }
body.mathguru-theme .pro-heading-with-action .pro-text-link { flex: 0 0 auto; margin-bottom: .45rem; }
body.mathguru-theme .pro-eyebrow {
  display: inline-block;
  font-size: .7rem;
  line-height: 1.2;
}
body.mathguru-theme .pro-text-link {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .86rem;
  font-weight: 800;
  text-decoration: none;
}
body.mathguru-theme .pro-button-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 24px;
}
body.mathguru-theme .pro-check-list {
  display: grid;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}
body.mathguru-theme .pro-check-list li {
  position: relative;
  padding-left: 25px;
  color: inherit;
  font-size: .9rem;
  line-height: 1.5;
}
body.mathguru-theme .pro-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .02rem;
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--mg-pink);
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 900;
}

/* ---------- homepage hero ---------- */
body.mathguru-theme .pro-home-hero {
  min-height: 670px;
  padding: clamp(76px, 8vw, 112px) 0;
}
body.mathguru-theme .pro-home-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.06fr) minmax(360px, .72fr);
  align-items: center;
  gap: clamp(44px, 6vw, 86px);
}
body.mathguru-theme .pro-home-hero-copy { max-width: 670px; }
body.mathguru-theme .pro-home-hero-copy h1 {
  max-width: 650px;
  margin: 12px 0 20px;
  font-size: clamp(3.3rem, 6.2vw, 5.5rem);
  line-height: .96;
}
body.mathguru-theme .pro-home-hero-copy > p {
  max-width: 620px;
  margin: 0;
  font-size: 1.03rem;
}
body.mathguru-theme .pro-inline-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  margin: 26px 0 0;
  padding: 0;
  list-style: none;
}
body.mathguru-theme .pro-inline-trust li {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: .8rem;
  font-weight: 650;
}
body.mathguru-theme .pro-inline-trust li span {
  width: 18px;
  height: 18px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .62rem;
  font-weight: 900;
}
body.mathguru-theme .pro-find-card {
  width: 100%;
  max-width: 460px;
  justify-self: end;
  padding: 28px;
}
body.mathguru-theme .pro-find-card-heading { margin-bottom: 19px; }
body.mathguru-theme .pro-find-card-heading > span {
  display: block;
  margin-bottom: 5px;
  font-size: .69rem;
  font-weight: 900;
  letter-spacing: .11em;
  text-transform: uppercase;
}
body.mathguru-theme .pro-find-card-heading h2 {
  margin: 0 0 7px;
  font-size: clamp(1.55rem, 2.6vw, 2.1rem);
  line-height: 1.08;
  letter-spacing: -.035em;
}
body.mathguru-theme .pro-find-card-heading p { margin: 0; font-size: .8rem; line-height: 1.55; }
body.mathguru-theme .pro-find-form { display: grid; gap: 12px; }
body.mathguru-theme .pro-find-form label {
  display: grid;
  gap: 5px;
  font-size: .72rem;
  font-weight: 750;
}
body.mathguru-theme .pro-find-card input,
body.mathguru-theme .pro-find-card select { min-height: 43px; font-size: .82rem; }
body.mathguru-theme .pro-find-help {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 18px;
  padding-top: 16px;
  border-top: 1px solid;
}
body.mathguru-theme .pro-find-help > span {
  flex: 0 0 27px;
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 900;
}
body.mathguru-theme .pro-find-help p { display: grid; gap: 1px; margin: 0; font-size: .72rem; line-height: 1.35; }
body.mathguru-theme .pro-find-help a { font-weight: 800; text-decoration: none; }

/* ---------- proof bar ---------- */
body.mathguru-theme .pro-proof-bar > .container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
}
body.mathguru-theme .pro-proof-bar span {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 7px;
  min-height: 66px;
  padding: 18px 16px;
  border-right: 1px solid;
  font-size: .78rem;
  font-weight: 650;
  text-align: center;
}
body.mathguru-theme .pro-proof-bar span:last-child { border-right: 0; }
body.mathguru-theme .pro-proof-bar b { font-family: var(--mg-heading); font-size: 1.2rem; }

/* ---------- cards/grids ---------- */
body.mathguru-theme .pro-country-grid,
body.mathguru-theme .pro-course-grid,
body.mathguru-theme .pro-tutor-grid,
body.mathguru-theme .pro-plan-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
body.mathguru-theme .pro-country-card,
body.mathguru-theme .pro-course-card,
body.mathguru-theme .pro-tutor-card,
body.mathguru-theme .pro-plan-card,
body.mathguru-theme .pro-country-service-card,
body.mathguru-theme .pro-feature-grid > article,
body.mathguru-theme .pro-process-list > li {
  min-width: 0;
  background: #fff;
  border: 1px solid var(--mg-line);
  border-radius: var(--mg-radius-sm);
  box-shadow: var(--mg-shadow-soft);
}
body.mathguru-theme .pro-country-card,
body.mathguru-theme .pro-course-card,
body.mathguru-theme .pro-tutor-card,
body.mathguru-theme .pro-plan-card { padding: 25px; }

body.mathguru-theme .pro-country-card { display: flex; flex-direction: column; min-height: 270px; }
body.mathguru-theme .pro-country-card header,
body.mathguru-theme .pro-plan-card header,
body.mathguru-theme .pro-tutor-card > header {
  display: flex;
  align-items: center;
  gap: 11px;
}
body.mathguru-theme .pro-country-card header > span,
body.mathguru-theme .pro-country-code,
body.mathguru-theme .pro-plan-card header > span {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .7rem;
  font-weight: 900;
}
body.mathguru-theme .pro-country-card header small,
body.mathguru-theme .pro-plan-card header small {
  color: var(--mg-muted);
  font-size: .7rem;
  font-weight: 700;
}
body.mathguru-theme .pro-country-card h3,
body.mathguru-theme .pro-course-card h3,
body.mathguru-theme .pro-tutor-card h3,
body.mathguru-theme .pro-plan-card h3 {
  margin: 17px 0 8px;
  font-size: 1.35rem;
  line-height: 1.13;
  letter-spacing: -.03em;
}
body.mathguru-theme .pro-country-card p,
body.mathguru-theme .pro-course-card p,
body.mathguru-theme .pro-tutor-card > p {
  margin: 0;
  color: var(--mg-muted);
  font-size: .82rem;
}
body.mathguru-theme .pro-country-card > div {
  display: grid;
  gap: 1px;
  margin-top: auto;
  padding-top: 18px;
}
body.mathguru-theme .pro-country-card > div b { color: var(--mg-pink-dark); font-size: .78rem; }
body.mathguru-theme .pro-country-card > div span { color: var(--mg-muted); font-size: .67rem; }
body.mathguru-theme .pro-country-card > a,
body.mathguru-theme .pro-course-card > a {
  display: inline-flex;
  gap: .4rem;
  margin-top: 16px;
  color: var(--mg-blue);
  font-size: .78rem;
  font-weight: 850;
  text-decoration: none;
}

body.mathguru-theme .pro-course-card { display: flex; flex-direction: column; min-height: 280px; }
body.mathguru-theme .pro-course-card > span {
  align-self: flex-start;
  padding: 5px 8px;
  color: var(--mg-blue-dark);
  background: var(--mg-blue-soft);
  border-radius: 999px;
  font-size: .61rem;
  font-weight: 850;
}
body.mathguru-theme .pro-course-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 7px;
  margin: auto 0 0;
  padding-top: 18px;
}
body.mathguru-theme .pro-course-card dl > div {
  padding: 10px;
  background: #faf8fb;
  border-radius: 7px;
}
body.mathguru-theme .pro-course-card dt { color: var(--mg-muted); font-size: .58rem; font-weight: 800; text-transform: uppercase; }
body.mathguru-theme .pro-course-card dd { margin: 2px 0 0; font-size: .72rem; font-weight: 750; }

body.mathguru-theme .pro-tutor-card { display: flex; flex-direction: column; }
body.mathguru-theme .pro-tutor-card > header { justify-content: space-between; }
body.mathguru-theme .pro-tutor-avatar {
  flex: 0 0 58px;
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-family: var(--mg-heading);
  font-size: 1.25rem;
  font-weight: 900;
}
body.mathguru-theme .pro-tutor-card > header > b {
  padding: 5px 8px;
  color: #0b6648;
  background: #e4f8ef;
  border-radius: 999px;
  font-size: .6rem;
  font-weight: 850;
}
body.mathguru-theme .pro-tutor-card h3 { margin-top: 15px; }
body.mathguru-theme .pro-tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 15px 0;
}
body.mathguru-theme .pro-tag-list span {
  padding: 5px 8px;
  border-radius: 999px;
  font-size: .61rem;
  font-weight: 760;
}
body.mathguru-theme .pro-tutor-card dl {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin: 0 0 18px;
}
body.mathguru-theme .pro-tutor-card dl > div { padding: 10px; background: #faf8fb; border-radius: 7px; }
body.mathguru-theme .pro-tutor-card dt { color: var(--mg-muted); font-size: .58rem; font-weight: 800; text-transform: uppercase; }
body.mathguru-theme .pro-tutor-card dd { margin: 2px 0 0; font-size: .7rem; font-weight: 800; }
body.mathguru-theme .pro-tutor-card .button { margin-top: auto; }

body.mathguru-theme .pro-plan-card { position: relative; display: flex; flex-direction: column; }
body.mathguru-theme .pro-plan-card header > div { min-width: 0; }
body.mathguru-theme .pro-plan-card h3 { margin: 0 0 2px; }
body.mathguru-theme .pro-plan-price {
  display: flex;
  align-items: baseline;
  gap: 7px;
  margin: 22px 0 8px;
  padding: 18px 0;
  border-top: 1px solid var(--mg-line);
  border-bottom: 1px solid var(--mg-line);
}
body.mathguru-theme .pro-plan-price strong {
  font-family: var(--mg-heading);
  font-size: 1.5rem;
  letter-spacing: -.03em;
}
body.mathguru-theme .pro-plan-price span { color: var(--mg-muted); font-size: .68rem; }
body.mathguru-theme .pro-plan-card .pro-check-list { margin: 6px 0 22px; }
body.mathguru-theme .pro-plan-card .button { margin-top: auto; }
body.mathguru-theme .pro-plan-badge {
  position: absolute;
  top: -10px;
  right: 16px;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: .59rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
body.mathguru-theme .pro-section-action { display: flex; justify-content: center; margin-top: 28px; }

/* ---------- empty states ---------- */
body.mathguru-theme .pro-empty-state {
  display: grid;
  grid-template-columns: auto minmax(0,1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 24px;
  background: #fff;
  border: 1px dashed #d9ced9;
  border-radius: 10px;
}
body.mathguru-theme .pro-empty-state > span {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--mg-pink);
  border-radius: 50%;
  font-family: var(--mg-heading);
  font-size: .8rem;
  font-weight: 900;
}
body.mathguru-theme .pro-empty-state h3 { margin: 0 0 3px; font-size: 1rem; }
body.mathguru-theme .pro-empty-state p { margin: 0; color: var(--mg-muted); font-size: .76rem; }

/* ---------- roadmap ---------- */
body.mathguru-theme .pro-roadmap-section { background: var(--mg-dark-2); }
body.mathguru-theme .pro-roadmap-grid {
  display: grid;
  grid-template-columns: minmax(0,.92fr) minmax(420px,1.08fr);
  align-items: center;
  gap: clamp(45px, 7vw, 90px);
}
body.mathguru-theme .pro-roadmap-copy h2 {
  max-width: 610px;
  margin: .5rem 0 .9rem;
  color: #fff;
  font-size: clamp(2.25rem, 4.6vw, 3.9rem);
  line-height: 1.01;
}
body.mathguru-theme .pro-roadmap-copy > p { max-width: 610px; margin: 0; color: #cfc8d0; }
body.mathguru-theme .pro-roadmap-copy .pro-check-list { color: #e7e1e8; }
body.mathguru-theme .pro-roadmap-copy .pro-check-list li::before { background: var(--mg-blue); }
body.mathguru-theme .pro-roadmap-preview {
  overflow: hidden;
  background: #fff;
  border: 1px solid rgba(255,255,255,.15);
  border-radius: 12px;
  box-shadow: 0 30px 80px rgba(0,0,0,.26);
}
body.mathguru-theme .pro-roadmap-preview > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  background: #fbf8fb;
  border-bottom: 1px solid var(--mg-line);
}
body.mathguru-theme .pro-roadmap-preview > header > div { display: grid; gap: 2px; }
body.mathguru-theme .pro-roadmap-preview > header span { color: var(--mg-muted); font-size: .6rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
body.mathguru-theme .pro-roadmap-preview > header strong { font-size: .88rem; }
body.mathguru-theme .pro-roadmap-preview > header > b { padding: 5px 8px; color: #0b6648; background: #dff7ed; border-radius: 999px; font-size: .59rem; }
body.mathguru-theme .pro-roadmap-preview ol { display: grid; margin: 0; padding: 8px 22px 18px; list-style: none; }
body.mathguru-theme .pro-roadmap-preview li {
  position: relative;
  display: grid;
  grid-template-columns: 34px minmax(0,1fr);
  gap: 13px;
  padding: 15px 0;
}
body.mathguru-theme .pro-roadmap-preview li:not(:last-child)::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 49px;
  bottom: -2px;
  width: 2px;
  background: #e7e1e7;
}
body.mathguru-theme .pro-roadmap-preview li > span {
  z-index: 1;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #fff;
  background: #a9a3ac;
  border-radius: 50%;
  font-size: .72rem;
  font-weight: 900;
}
body.mathguru-theme .pro-roadmap-preview li > div { min-width: 0; }
body.mathguru-theme .pro-roadmap-preview li small { display: block; color: var(--mg-muted); font-size: .58rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; }
body.mathguru-theme .pro-roadmap-preview li strong { display: block; margin: 2px 0; font-size: .82rem; }
body.mathguru-theme .pro-roadmap-preview li p { margin: 0; color: var(--mg-muted); font-size: .7rem; line-height: 1.45; }

/* ---------- reviews + contact ---------- */
body.mathguru-theme .pro-review-section { padding: clamp(76px, 8vw, 104px) 0; }
body.mathguru-theme .pro-review-layout {
  display: grid;
  grid-template-columns: minmax(0,1.2fr) minmax(320px,.62fr);
  align-items: center;
  gap: clamp(38px, 7vw, 90px);
}
body.mathguru-theme .pro-review-layout h2 {
  max-width: 700px;
  margin: .5rem 0 .9rem;
  font-size: clamp(2.25rem, 4.5vw, 3.8rem);
  line-height: 1.02;
}
body.mathguru-theme .pro-review-layout > div > p { max-width: 680px; margin: 0; }
body.mathguru-theme .pro-review-layout aside { padding: 28px; }
body.mathguru-theme .pro-review-layout aside > span {
  display: block;
  height: 42px;
  font-family: Georgia, serif;
  font-size: 3.8rem;
  line-height: .9;
  color: #ff9bd8;
}
body.mathguru-theme .pro-review-layout aside h3 { margin: 10px 0 7px; font-size: 1.2rem; }
body.mathguru-theme .pro-review-layout aside p { margin: 0; font-size: .82rem; }
body.mathguru-theme .pro-review-layout aside small { display: block; margin-top: 16px; color: #c7c9ff; font-size: .66rem; }

body.mathguru-theme .pro-contact-layout {
  display: grid;
  grid-template-columns: minmax(0,1.15fr) minmax(340px,.62fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}
body.mathguru-theme .pro-contact-layout h2 {
  max-width: 680px;
  margin: .45rem 0 .8rem;
  font-size: clamp(2.2rem, 4.3vw, 3.6rem);
  line-height: 1.03;
}
body.mathguru-theme .pro-contact-layout > div > p { max-width: 650px; margin: 0; color: var(--mg-muted); }
body.mathguru-theme .pro-contact-details {
  display: grid;
  margin: 0;
  padding: 25px;
  background: #fff;
  border: 1px solid var(--mg-line);
  border-radius: 10px;
  box-shadow: var(--mg-shadow-soft);
}
body.mathguru-theme .pro-contact-details > div { padding: 13px 0; border-bottom: 1px solid var(--mg-line); }
body.mathguru-theme .pro-contact-details > div:last-child { border-bottom: 0; }
body.mathguru-theme .pro-contact-details dt { color: var(--mg-muted); font-size: .6rem; font-weight: 850; text-transform: uppercase; letter-spacing: .07em; }
body.mathguru-theme .pro-contact-details dd { margin: 3px 0 0; font-size: .82rem; font-weight: 750; overflow-wrap: anywhere; }
body.mathguru-theme .pro-contact-details a { color: var(--mg-blue); }

/* ---------- services / generic pro pages ---------- */
body.mathguru-theme .pro-page-hero {
  padding: clamp(72px, 8vw, 108px) 0;
}
body.mathguru-theme .pro-page-hero-grid {
  display: grid;
  grid-template-columns: minmax(0,1.12fr) minmax(330px,.55fr);
  align-items: center;
  gap: clamp(40px, 7vw, 90px);
}
body.mathguru-theme .pro-page-hero h1 {
  max-width: 760px;
  margin: .5rem 0 .9rem;
  font-size: clamp(2.8rem, 5.5vw, 4.7rem);
  line-height: .99;
}
body.mathguru-theme .pro-page-hero p { max-width: 720px; margin: 0; font-size: 1rem; }
body.mathguru-theme .pro-hero-summary { padding: 25px; }
body.mathguru-theme .pro-hero-summary > span { display: block; font-size: .67rem; font-weight: 900; text-transform: uppercase; letter-spacing: .09em; }
body.mathguru-theme .pro-hero-summary .pro-check-list { margin-top: 16px; }

body.mathguru-theme .pro-country-service-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
body.mathguru-theme .pro-country-service-card { padding: 26px; }
body.mathguru-theme .pro-country-service-card > header { display: flex; align-items: center; gap: 12px; }
body.mathguru-theme .pro-country-service-card h2 { margin: 1px 0 0; font-size: 1.45rem; }
body.mathguru-theme .pro-country-service-card header small { color: var(--mg-muted); font-size: .63rem; }
body.mathguru-theme .pro-country-service-card > p { color: var(--mg-muted); font-size: .8rem; }
body.mathguru-theme .pro-country-service-card > h3 { margin: 22px 0 8px; font-size: .9rem; }
body.mathguru-theme .pro-course-link-list { display: grid; margin: 0 0 18px; padding: 0; list-style: none; }
body.mathguru-theme .pro-course-link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  color: var(--mg-ink);
  border-bottom: 1px solid var(--mg-line);
  font-size: .74rem;
  font-weight: 720;
  text-decoration: none;
}
body.mathguru-theme .pro-course-link-list a b { color: var(--mg-pink); }
body.mathguru-theme .pro-inline-empty { margin: 12px 0 18px; padding: 12px; color: var(--mg-muted); background: #faf7fa; border-radius: 7px; font-size: .72rem; }

body.mathguru-theme .pro-feature-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 18px;
}
body.mathguru-theme .pro-feature-grid-four { grid-template-columns: repeat(4,minmax(0,1fr)); }
body.mathguru-theme .pro-feature-grid > article { padding: 24px; }
body.mathguru-theme .pro-feature-mark {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  border-radius: 50%;
  font-size: .65rem;
  font-weight: 900;
}
body.mathguru-theme .pro-feature-grid h3 { margin: 0 0 8px; font-size: 1.05rem; }
body.mathguru-theme .pro-feature-grid p { margin: 0; color: var(--mg-muted); font-size: .77rem; }

body.mathguru-theme .pro-process-layout {
  display: grid;
  grid-template-columns: minmax(0,.72fr) minmax(480px,1.1fr);
  align-items: start;
  gap: clamp(45px, 7vw, 90px);
}
body.mathguru-theme .pro-process-list { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
body.mathguru-theme .pro-process-list > li { display: grid; grid-template-columns: 38px 1fr; gap: 13px; padding: 18px; box-shadow: none; }
body.mathguru-theme .pro-process-list > li > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--mg-blue);
  border-radius: 50%;
  font-weight: 900;
}
body.mathguru-theme .pro-process-list h3 { margin: 0 0 4px; font-size: .95rem; }
body.mathguru-theme .pro-process-list p { margin: 0; color: var(--mg-muted); font-size: .74rem; }
body.mathguru-theme .pro-cta-band { padding: 55px 0; }
body.mathguru-theme .pro-cta-band > .container { display: flex; align-items: center; justify-content: space-between; gap: 30px; }
body.mathguru-theme .pro-cta-band h2 { max-width: 780px; margin: .4rem 0 .45rem; font-size: clamp(2rem,3.7vw,3rem); line-height: 1.03; }
body.mathguru-theme .pro-cta-band p { margin: 0; }

/* ---------- legacy public page polish ---------- */
body.mathguru-theme .mp-page-hero { padding: clamp(70px,7vw,100px) 0; }
body.mathguru-theme .mp-page-hero h1 { font-family: var(--mg-heading); font-size: clamp(2.6rem,5.2vw,4.4rem); line-height: 1; }
body.mathguru-theme .mp-directory-section,
body.mathguru-theme .mp-content-section,
body.mathguru-theme .mp-profile-section { padding: 78px 0 96px; }
body.mathguru-theme .mp-content-grid,
body.mathguru-theme .mp-profile-grid { gap: clamp(28px,5vw,64px); }
body.mathguru-theme .mp-profile-main .card,
body.mathguru-theme .mp-profile-aside,
body.mathguru-theme .mp-contact-grid article,
body.mathguru-theme .mp-faq-page aside { border-radius: 10px; box-shadow: var(--mg-shadow-soft); }

/* ---------- footer ---------- */
body.mathguru-theme .pro-site-footer,
body.mathguru-theme .site-footer { padding: 62px 0 0; }
body.mathguru-theme .pro-footer-grid {
  display: grid;
  grid-template-columns: minmax(260px,1.55fr) repeat(4,minmax(110px,.62fr));
  gap: 34px;
  align-items: start;
}
body.mathguru-theme .pro-footer-brand > p { max-width: 360px; margin: 18px 0; color: #aaa4ad; font-size: .76rem; }
body.mathguru-theme .pro-footer-contact { display: grid; gap: 5px; }
body.mathguru-theme .pro-footer-contact a { font-size: .72rem; text-decoration: none; }
body.mathguru-theme .pro-footer-grid nav { display: grid; align-content: start; gap: 8px; }
body.mathguru-theme .pro-footer-grid nav strong { margin-bottom: 4px; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }
body.mathguru-theme .pro-footer-grid nav a { font-size: .72rem; text-decoration: none; }
body.mathguru-theme .pro-footer-bottom {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 48px;
  padding: 20px 0 24px;
  border-top: 1px solid;
  font-size: .65rem;
}
body.mathguru-theme .pro-whatsapp-float {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 70;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 7px 12px 7px 7px;
  text-decoration: none;
  font-size: .73rem;
}
body.mathguru-theme .pro-whatsapp-float span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-size: .58rem;
  font-weight: 900;
}

/* ---------- cookie bar ---------- */
body.mathguru-theme .cookie-banner {
  position: fixed;
  left: 50%;
  bottom: 14px;
  z-index: 100;
  width: min(760px, calc(100% - 28px));
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 16px;
}
body.mathguru-theme .cookie-banner > div:first-child { min-width: 0; }
body.mathguru-theme .cookie-banner strong { font-size: .76rem; }
body.mathguru-theme .cookie-banner p { margin: 2px 0 0; color: var(--mg-muted); font-size: .65rem; line-height: 1.45; }
body.mathguru-theme .cookie-actions { display: flex; gap: 7px; flex: 0 0 auto; }
body.mathguru-theme .cookie-actions form { margin: 0; }
body.mathguru-theme .cookie-actions .button { min-height: 38px; padding: 8px 10px; font-size: .65rem; }

/* ---------- application/portal consistency safeguards ---------- */
body.mathguru-theme.mp-portal-dashboard,
body.mathguru-theme .ui-app-shell,
body.mathguru-theme [class*="student-shell"],
body.mathguru-theme [class*="teacher-shell"],
body.mathguru-theme [class*="admin-shell"] { min-height: 100vh; }
body.mathguru-theme .ui-main,
body.mathguru-theme .student-main,
body.mathguru-theme .teacher-main,
body.mathguru-theme .admin-main { min-width: 0; }
body.mathguru-theme .ui-card,
body.mathguru-theme .ui-panel,
body.mathguru-theme .student-card,
body.mathguru-theme .teacher-card,
body.mathguru-theme .admin-panel,
body.mathguru-theme .card { overflow-wrap: anywhere; }
body.mathguru-theme table { width: 100%; border-collapse: separate; border-spacing: 0; }
body.mathguru-theme th,
body.mathguru-theme td { padding: .72rem .8rem; vertical-align: middle; }
body.mathguru-theme thead th { font-size: .68rem; line-height: 1.3; }
body.mathguru-theme tbody td,
body.mathguru-theme tbody th { font-size: .75rem; line-height: 1.45; }
body.mathguru-theme .table-scroll,
body.mathguru-theme .responsive-table { max-width: 100%; overflow-x: auto; }

/* ---------- responsive ---------- */
@media (max-width: 1120px) {
  body.mathguru-theme .pro-header-inner { gap: 14px; }
  body.mathguru-theme .pro-header-nav > a { padding-inline: 7px; font-size: .73rem; }
  body.mathguru-theme .pro-header-actions > a,
  body.mathguru-theme .pro-header-actions button { padding-inline: 9px; }
  body.mathguru-theme .pro-home-hero-grid { grid-template-columns: minmax(0,1fr) minmax(330px,.72fr); gap: 38px; }
  body.mathguru-theme .pro-country-service-grid { grid-template-columns: 1fr 1fr; }
  body.mathguru-theme .pro-feature-grid-four { grid-template-columns: 1fr 1fr; }
  body.mathguru-theme .pro-footer-grid { grid-template-columns: 1.35fr repeat(2,1fr); }
  body.mathguru-theme .pro-footer-grid nav:nth-of-type(3),
  body.mathguru-theme .pro-footer-grid nav:nth-of-type(4) { margin-top: 8px; }
}

@media (max-width: 1040px) {
  body.mathguru-theme .pro-nav-toggle,
  body.mathguru-theme .mpt-nav-toggle {
    display: grid;
    place-items: center;
    gap: 4px;
    width: 42px;
    height: 42px;
    margin-left: auto;
    padding: 9px;
    border: 1px solid rgba(255,255,255,.18);
    border-radius: 6px;
    background: transparent;
  }
  body.mathguru-theme .pro-nav-toggle span,
  body.mathguru-theme .mpt-nav-toggle span { width: 20px; height: 2px; display: block; }
  body.mathguru-theme .pro-header-nav,
  body.mathguru-theme .header-nav,
  body.mathguru-theme .mpt-header-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: calc(100% + 1px);
    display: none;
    align-items: stretch;
    flex-direction: column;
    gap: 2px;
    margin: 0;
    padding: 12px;
    box-shadow: 0 22px 45px rgba(2,8,31,.28);
  }
  body.mathguru-theme .pro-header-nav.is-open,
  body.mathguru-theme .header-nav.is-open,
  body.mathguru-theme .mpt-header-nav.is-open { display: flex; }
  body.mathguru-theme .pro-header-nav > a,
  body.mathguru-theme .header-nav > a { width: 100%; padding: 11px 12px; }
  body.mathguru-theme .pro-header-actions,
  body.mathguru-theme .mpt-header-actions { display: grid; grid-template-columns: 1fr 1fr; width: 100%; margin: 7px 0 0; }
  body.mathguru-theme .pro-header-actions > a,
  body.mathguru-theme .pro-header-actions form,
  body.mathguru-theme .pro-header-actions button { width: 100%; }
  body.mathguru-theme .pro-home-hero-grid,
  body.mathguru-theme .pro-page-hero-grid,
  body.mathguru-theme .pro-roadmap-grid,
  body.mathguru-theme .pro-review-layout,
  body.mathguru-theme .pro-contact-layout,
  body.mathguru-theme .pro-process-layout { grid-template-columns: 1fr; }
  body.mathguru-theme .pro-find-card { max-width: 660px; justify-self: start; }
  body.mathguru-theme .pro-roadmap-preview { max-width: 760px; }
  body.mathguru-theme .pro-country-grid,
  body.mathguru-theme .pro-course-grid,
  body.mathguru-theme .pro-tutor-grid,
  body.mathguru-theme .pro-plan-grid { grid-template-columns: 1fr 1fr; }
  body.mathguru-theme .pro-review-layout aside,
  body.mathguru-theme .pro-contact-details { max-width: 650px; }
}

@media (max-width: 760px) {
  body.mathguru-theme .container { width: min(100% - 28px,1180px); }
  body.mathguru-theme .guru-announcement-bar { flex-wrap: wrap; gap: 3px 7px; min-height: 38px; }
  body.mathguru-theme .pro-header-inner { min-height: 64px; }
  body.mathguru-theme .pro-brand-copy small { display: none; }
  body.mathguru-theme .brand-mark { flex-basis: 38px; width: 38px; height: 38px; }
  body.mathguru-theme .pro-home-hero { min-height: 0; padding: 64px 0 70px; }
  body.mathguru-theme .pro-home-hero-copy h1 { font-size: clamp(2.8rem,13vw,4.5rem); }
  body.mathguru-theme .pro-home-hero-copy > p { font-size: .95rem; }
  body.mathguru-theme .pro-find-card { padding: 22px; }
  body.mathguru-theme .pro-proof-bar > .container { grid-template-columns: 1fr 1fr; }
  body.mathguru-theme .pro-proof-bar span:nth-child(2) { border-right: 0; }
  body.mathguru-theme .pro-proof-bar span:nth-child(-n+2) { border-bottom: 1px solid rgba(255,255,255,.22); }
  body.mathguru-theme .pro-section { padding: 66px 0; }
  body.mathguru-theme .pro-section-heading { margin-bottom: 30px; }
  body.mathguru-theme .pro-heading-with-action { display: block; }
  body.mathguru-theme .pro-heading-with-action .pro-text-link { margin-top: 14px; }
  body.mathguru-theme .pro-country-grid,
  body.mathguru-theme .pro-course-grid,
  body.mathguru-theme .pro-tutor-grid,
  body.mathguru-theme .pro-plan-grid,
  body.mathguru-theme .pro-country-service-grid,
  body.mathguru-theme .pro-feature-grid,
  body.mathguru-theme .pro-feature-grid-four { grid-template-columns: 1fr; }
  body.mathguru-theme .pro-country-card,
  body.mathguru-theme .pro-course-card { min-height: 0; }
  body.mathguru-theme .pro-roadmap-grid { gap: 34px; }
  body.mathguru-theme .pro-roadmap-preview > header { padding: 18px; }
  body.mathguru-theme .pro-roadmap-preview ol { padding-inline: 18px; }
  body.mathguru-theme .pro-cta-band > .container { align-items: flex-start; flex-direction: column; }
  body.mathguru-theme .pro-footer-grid { grid-template-columns: 1fr 1fr; }
  body.mathguru-theme .pro-footer-brand { grid-column: 1/-1; }
  body.mathguru-theme .pro-footer-bottom { display: grid; }
  body.mathguru-theme .cookie-banner { align-items: stretch; flex-direction: column; }
  body.mathguru-theme .cookie-actions { width: 100%; }
  body.mathguru-theme .cookie-actions form { flex: 1; }
  body.mathguru-theme .cookie-actions .button { width: 100%; }
}

@media (max-width: 520px) {
  body.mathguru-theme .pro-header-actions,
  body.mathguru-theme .mpt-header-actions { grid-template-columns: 1fr; }
  body.mathguru-theme .pro-button-row { display: grid; }
  body.mathguru-theme .pro-button-row .button { width: 100%; }
  body.mathguru-theme .pro-inline-trust { display: grid; }
  body.mathguru-theme .pro-proof-bar > .container { grid-template-columns: 1fr; }
  body.mathguru-theme .pro-proof-bar span { border-right: 0; border-bottom: 1px solid rgba(255,255,255,.22); }
  body.mathguru-theme .pro-proof-bar span:last-child { border-bottom: 0; }
  body.mathguru-theme .pro-course-card dl,
  body.mathguru-theme .pro-tutor-card dl { grid-template-columns: 1fr; }
  body.mathguru-theme .pro-empty-state { grid-template-columns: 1fr; }
  body.mathguru-theme .pro-empty-state > span { width: 42px; height: 42px; }
  body.mathguru-theme .pro-footer-grid { grid-template-columns: 1fr; }
  body.mathguru-theme .pro-footer-brand { grid-column: auto; }
  body.mathguru-theme .pro-whatsapp-float { right: 10px; bottom: 10px; }
}
