/* MathPro Tutors V26 — Online tutoring/student-space section
   Purpose: apply the approved magenta/purple reference styling to the existing section only. */
body.mathguru-theme .mpt-space-showcase {
  position: relative !important;
  isolation: isolate !important;
  overflow: hidden !important;
  padding: clamp(76px, 7vw, 112px) 0 !important;
  color: #fff !important;
  background:
    radial-gradient(circle at 15% 18%, rgba(255,67,184,.30), transparent 32%),
    radial-gradient(circle at 88% 82%, rgba(49,0,82,.50), transparent 34%),
    linear-gradient(118deg, #a7008d 0%, #8d006f 34%, #5c005f 70%, #29002f 100%) !important;
}

body.mathguru-theme .mpt-space-showcase::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  pointer-events: none;
  opacity: .48;
  background:
    radial-gradient(circle at 7% 43%, rgba(255,255,255,.04) 0 2px, transparent 2.5px) 0 0 / 20px 20px,
    linear-gradient(135deg, transparent 0 72%, rgba(255,68,178,.07) 72% 73%, transparent 73% 100%);
}

body.mathguru-theme .mpt-space-showcase::after {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -150px;
  bottom: -150px;
  border: 2px solid rgba(244,81,181,.20);
  border-radius: 999px;
  box-shadow: 0 0 0 36px rgba(244,81,181,.05), 0 0 0 74px rgba(244,81,181,.035);
  z-index: -1;
  pointer-events: none;
}

body.mathguru-theme .mpt-space-showcase-grid {
  width: min(100% - 52px, 1240px) !important;
  margin: 0 auto !important;
  display: grid !important;
  grid-template-columns: minmax(420px, .92fr) minmax(460px, 1.08fr) !important;
  gap: clamp(52px, 6.2vw, 96px) !important;
  align-items: center !important;
  position: relative !important;
  z-index: 3 !important;
}

/* Layered, rounded photo treatment from the supplied reference. */
body.mathguru-theme .mpt-space-showcase-art {
  width: min(100%, 560px) !important;
  aspect-ratio: 1.03 / 1 !important;
  margin: 0 !important;
  justify-self: center !important;
  position: relative !important;
  isolation: isolate !important;
}

body.mathguru-theme .mpt-space-art-backdrop {
  position: absolute !important;
  inset: 5% -3% 3% -6% !important;
  z-index: -2 !important;
  border-radius: 24% 18% 22% 16% / 20% 28% 18% 26% !important;
  background: linear-gradient(145deg, rgba(245,45,165,.88), rgba(172,16,142,.72)) !important;
  transform: rotate(-5deg) !important;
  box-shadow: 0 28px 65px rgba(39,0,47,.26) !important;
}

body.mathguru-theme .mpt-space-showcase-art::before {
  content: "";
  position: absolute;
  inset: 1.5% -1% -1.5% 1.5%;
  z-index: -1;
  border: 2px solid rgba(255,255,255,.86);
  border-radius: 31% 15% 25% 23% / 22% 26% 19% 28%;
  transform: rotate(1.8deg);
  pointer-events: none;
}

body.mathguru-theme .mpt-space-showcase-art img {
  position: relative !important;
  z-index: 2 !important;
  display: block !important;
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  object-position: 100% 50% !important;
  border: 5px solid #fff !important;
  border-radius: 30% 14% 25% 24% / 20% 26% 18% 28% !important;
  background: #fff !important;
  box-shadow: 0 26px 58px rgba(31,0,45,.30) !important;
}

body.mathguru-theme .mpt-space-showcase-copy {
  max-width: 650px !important;
  position: relative !important;
  z-index: 4 !important;
}

body.mathguru-theme .mpt-space-kicker {
  display: inline-block !important;
  margin: 0 0 20px !important;
  color: #8ef0d1 !important;
  font-size: clamp(.73rem, .86vw, .9rem) !important;
  line-height: 1.2 !important;
  font-weight: 950 !important;
  letter-spacing: .17em !important;
  text-transform: uppercase !important;
}

body.mathguru-theme .mpt-space-showcase-copy h2 {
  max-width: 660px !important;
  margin: 0 !important;
  color: #fff !important;
  font-size: clamp(2.7rem, 4.35vw, 4.8rem) !important;
  line-height: .99 !important;
  letter-spacing: -.048em !important;
  font-weight: 900 !important;
  text-wrap: balance !important;
}

body.mathguru-theme .mpt-space-showcase-copy h2::after {
  content: ".";
  color: #ff3cae;
}

body.mathguru-theme .mpt-space-accent-line {
  display: block !important;
  width: 98px !important;
  height: 4px !important;
  margin: 26px 0 28px !important;
  border-radius: 999px !important;
  background: #f451b5 !important;
}

body.mathguru-theme .mpt-space-showcase-copy p {
  max-width: 620px !important;
  margin: 0 0 24px !important;
  color: rgba(255,255,255,.92) !important;
  font-size: clamp(.99rem, 1.12vw, 1.12rem) !important;
  line-height: 1.68 !important;
  font-weight: 500 !important;
}

body.mathguru-theme .mpt-space-actions {
  display: flex !important;
  align-items: center !important;
  gap: 18px !important;
  flex-wrap: wrap !important;
  margin-top: 34px !important;
}

body.mathguru-theme .mpt-space-button {
  min-height: 58px !important;
  min-width: 205px !important;
  padding: 0 28px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  border-radius: 7px !important;
  text-decoration: none !important;
  font-size: .98rem !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease !important;
}

body.mathguru-theme .mpt-space-button-primary {
  color: #fff !important;
  background: linear-gradient(135deg, #ff57ba, #ed2aa4) !important;
  border: 1px solid rgba(255,255,255,.08) !important;
  box-shadow: 0 15px 30px rgba(35,0,37,.20) !important;
}

body.mathguru-theme .mpt-space-button-secondary {
  color: #2d1177 !important;
  background: #fff !important;
  border: 1px solid rgba(255,255,255,.94) !important;
  box-shadow: 0 15px 30px rgba(35,0,37,.20) !important;
}

body.mathguru-theme .mpt-space-button:hover,
body.mathguru-theme .mpt-space-button:focus-visible {
  transform: translateY(-2px) !important;
  box-shadow: 0 18px 34px rgba(35,0,37,.28) !important;
}

/* Decorative math language. */
body.mathguru-theme .mpt-space-symbol {
  position: absolute !important;
  z-index: 1 !important;
  pointer-events: none !important;
  user-select: none !important;
  font-weight: 900 !important;
  line-height: 1 !important;
}
body.mathguru-theme .mpt-space-symbol-plus-a {
  left: 4.6%; top: 21%; color: rgba(255,79,183,.92); font-size: clamp(2.6rem, 4vw, 4.8rem); transform: rotate(5deg);
}
body.mathguru-theme .mpt-space-symbol-plus-b {
  left: 42.8%; top: 43%; color: rgba(255,79,183,.94); font-size: clamp(2.1rem, 3.2vw, 3.8rem);
}
body.mathguru-theme .mpt-space-symbol-divide {
  left: 4.8%; bottom: 25%; color: rgba(255,79,183,.88); font-size: clamp(2.3rem, 3vw, 3.6rem);
}
body.mathguru-theme .mpt-space-symbol-root {
  left: 8%; bottom: 8%; color: rgba(255,37,157,.52); font-size: clamp(2rem, 3vw, 3.8rem); font-weight: 500 !important;
}
body.mathguru-theme .mpt-space-symbol-formula {
  left: 31%; bottom: 4.5%; color: rgba(200,64,190,.32); font-size: clamp(1.6rem, 2.4vw, 3rem); font-weight: 500 !important; font-style: italic;
}
body.mathguru-theme .mpt-space-symbol-square {
  right: 5%; top: 8%; color: rgba(207,69,199,.42); font-size: clamp(1.5rem, 2.2vw, 2.6rem); font-weight: 500 !important;
}

body.mathguru-theme .mpt-space-dot-grid {
  position: absolute !important;
  z-index: 1 !important;
  width: 118px !important;
  height: 96px !important;
  opacity: .28 !important;
  background-image: radial-gradient(circle, #f451b5 0 3px, transparent 3.5px) !important;
  background-size: 20px 20px !important;
  pointer-events: none !important;
}
body.mathguru-theme .mpt-space-dot-grid-left { left: 2.5%; top: 36%; }
body.mathguru-theme .mpt-space-dot-grid-right { right: 4%; bottom: 10%; }

@media (max-width: 1100px) {
  body.mathguru-theme .mpt-space-showcase-grid {
    width: min(100% - 42px, 1000px) !important;
    grid-template-columns: minmax(350px,.9fr) minmax(420px,1.1fr) !important;
    gap: 46px !important;
  }
  body.mathguru-theme .mpt-space-showcase-copy h2 {
    font-size: clamp(2.55rem, 4.6vw, 4rem) !important;
  }
}

@media (max-width: 900px) {
  body.mathguru-theme .mpt-space-showcase {
    padding: 72px 0 !important;
  }
  body.mathguru-theme .mpt-space-showcase-grid {
    width: min(100% - 36px, 760px) !important;
    grid-template-columns: 1fr !important;
    gap: 54px !important;
  }
  body.mathguru-theme .mpt-space-showcase-art {
    width: min(100%, 570px) !important;
  }
  body.mathguru-theme .mpt-space-showcase-copy {
    max-width: 680px !important;
  }
  body.mathguru-theme .mpt-space-symbol-plus-b {
    left: auto; right: 7%; top: 34%;
  }
}

@media (max-width: 640px) {
  body.mathguru-theme .mpt-space-showcase {
    padding: 58px 0 66px !important;
  }
  body.mathguru-theme .mpt-space-showcase-grid {
    width: min(100% - 26px, 580px) !important;
    gap: 40px !important;
  }
  body.mathguru-theme .mpt-space-showcase-art {
    width: min(94%, 470px) !important;
  }
  body.mathguru-theme .mpt-space-showcase-copy h2 {
    font-size: clamp(2.25rem, 11.2vw, 3.5rem) !important;
  }
  body.mathguru-theme .mpt-space-showcase-copy p {
    font-size: .98rem !important;
    line-height: 1.62 !important;
  }
  body.mathguru-theme .mpt-space-actions {
    display: grid !important;
    grid-template-columns: 1fr !important;
    width: min(100%, 390px) !important;
  }
  body.mathguru-theme .mpt-space-button {
    width: 100% !important;
    min-width: 0 !important;
    min-height: 54px !important;
  }
  body.mathguru-theme .mpt-space-symbol-formula,
  body.mathguru-theme .mpt-space-symbol-root,
  body.mathguru-theme .mpt-space-dot-grid-right,
  body.mathguru-theme .mpt-space-symbol-square {
    display: none !important;
  }
}
