/* MathPro Tutors content, subjects, legal and footer patch V38. */

body.mathguru-theme .mpt-editorial-page,
body.mathguru-theme .mpt-subject-page {
  color: #17151d;
  background: #fff;
}

body.mathguru-theme .mpt-editorial-hero {
  position: relative;
  overflow: hidden;
  padding: clamp(72px, 9vw, 126px) 0;
  color: #fff;
  background: linear-gradient(120deg, #080b2a 0%, #151344 60%, #32144e 100%);
}

body.mathguru-theme .mpt-editorial-hero::after {
  position: absolute;
  right: -90px;
  bottom: -210px;
  width: 520px;
  height: 520px;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  content: "";
}

body.mathguru-theme .mpt-editorial-hero-inner {
  position: relative;
  z-index: 1;
  width: min(100% - 40px, 980px);
}

body.mathguru-theme .mpt-editorial-kicker {
  display: block;
  margin-bottom: 14px;
  color: #f451b5;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
}

body.mathguru-theme .mpt-editorial-hero h1 {
  max-width: 900px;
  margin: 0;
  color: #fff;
  font-size: clamp(2.8rem, 6.2vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.055em;
}

body.mathguru-theme .mpt-editorial-hero p {
  max-width: 760px;
  margin: 25px 0 0;
  color: rgba(255,255,255,.82);
  font-size: clamp(1rem, 1.8vw, 1.22rem);
  line-height: 1.7;
}

body.mathguru-theme .mpt-editorial-main {
  padding: clamp(54px, 7vw, 92px) 0 clamp(76px, 9vw, 126px);
  background: #fff;
}

body.mathguru-theme .mpt-editorial-article {
  width: min(100% - 40px, 940px);
  color: #30303a;
  font-size: 1rem;
  line-height: 1.82;
}

body.mathguru-theme .mpt-editorial-article > p,
body.mathguru-theme .mpt-editorial-article section > p {
  margin: 0 0 20px;
}

body.mathguru-theme .mpt-editorial-article .mpt-editorial-lead {
  margin-bottom: 26px;
  color: #17151d;
  font-size: clamp(1.15rem, 2vw, 1.36rem);
  line-height: 1.7;
}

body.mathguru-theme .mpt-editorial-article > section {
  margin-top: clamp(50px, 7vw, 78px);
  padding-top: clamp(38px, 5vw, 54px);
  border-top: 1px solid #e8e5eb;
}

body.mathguru-theme .mpt-editorial-article h2 {
  margin: 0 0 20px;
  color: #12111a;
  font-size: clamp(1.75rem, 3.2vw, 2.55rem);
  line-height: 1.15;
  letter-spacing: -.035em;
}

body.mathguru-theme .mpt-editorial-article h3 {
  margin: 34px 0 10px;
  color: #17151d;
  font-size: 1.16rem;
  line-height: 1.35;
}

body.mathguru-theme .mpt-editorial-article a {
  color: #29238f;
  font-weight: 800;
  text-underline-offset: 3px;
}

body.mathguru-theme .mpt-editorial-list {
  display: grid;
  gap: 10px;
  margin: 18px 0 28px;
  padding-left: 24px;
}

body.mathguru-theme .mpt-editorial-list li::marker { color: #f451b5; }

body.mathguru-theme .mpt-editorial-article blockquote {
  margin: 38px 0 0;
  padding: 27px 30px;
  color: #15132f;
  background: #fff5fb;
  border-left: 5px solid #f451b5;
  font-size: 1.18rem;
  line-height: 1.65;
}

body.mathguru-theme .mpt-editorial-highlight-grid,
body.mathguru-theme .mpt-editorial-feature-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-top: clamp(50px, 7vw, 78px);
}

body.mathguru-theme .mpt-editorial-highlight-grid > section,
body.mathguru-theme .mpt-editorial-feature-grid > article {
  margin: 0;
  padding: clamp(26px, 4vw, 40px);
  background: #f8f7fb;
  border: 1px solid #e3dfea;
  border-radius: 0;
}

body.mathguru-theme .mpt-editorial-highlight-grid > section > span {
  display: block;
  margin-bottom: 24px;
  color: #f451b5;
  font-size: .78rem;
  font-weight: 950;
  letter-spacing: .12em;
}

body.mathguru-theme .mpt-editorial-highlight-grid h2,
body.mathguru-theme .mpt-editorial-feature-grid h3 { margin-top: 0; }

body.mathguru-theme .mpt-editorial-highlight-grid p,
body.mathguru-theme .mpt-editorial-feature-grid p { margin-bottom: 0; }

body.mathguru-theme .mpt-editorial-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 34px;
  margin-top: clamp(54px, 8vw, 90px);
  padding: clamp(28px, 4vw, 44px);
  color: #fff;
  background: #090b22;
}

body.mathguru-theme .mpt-editorial-cta h2 {
  margin: 0 0 8px;
  color: #fff;
  font-size: clamp(1.6rem, 3vw, 2.25rem);
}

body.mathguru-theme .mpt-editorial-cta p { margin: 0; color: rgba(255,255,255,.72); }
body.mathguru-theme .mpt-editorial-cta > div:last-child { display: flex; gap: 10px; flex: 0 0 auto; }
body.mathguru-theme .mpt-editorial-cta .button { border-radius: 0 !important; text-decoration: none; white-space: nowrap; }
body.mathguru-theme .mpt-editorial-cta .button-secondary { color: #111 !important; background: #fff !important; border-color: #fff !important; }

body.mathguru-theme .mpt-legal-article > section {
  scroll-margin-top: 130px;
}

body.mathguru-theme .mpt-legal-summary {
  margin: 0 0 56px;
  padding: 26px 30px;
  background: #f8f7fb;
  border: 1px solid #e3dfea;
}

body.mathguru-theme .mpt-legal-summary strong { display: block; color: #15132f; font-size: 1.05rem; }
body.mathguru-theme .mpt-legal-summary ul { display: grid; gap: 8px; margin: 13px 0 0; padding-left: 22px; }
body.mathguru-theme .mpt-contact-lines { display: grid; gap: 5px; margin: 20px 0; }
body.mathguru-theme .mpt-contact-lines p { margin: 0; }

body.mathguru-theme .mpt-legal-notice {
  margin-top: 68px;
  padding: 28px 30px;
  color: #413d47;
  background: #fff8e8;
  border: 1px solid #ead8aa;
}

body.mathguru-theme .mpt-legal-notice strong { display: block; margin-bottom: 8px; color: #211c12; }
body.mathguru-theme .mpt-legal-notice p { margin: 0; }

body.mathguru-theme .mpt-subject-hero {
  padding: clamp(70px, 9vw, 118px) 0;
  color: #17151d;
  background: linear-gradient(120deg, #fff 0%, #fff4fa 54%, #f4f3ff 100%);
  border-bottom: 1px solid #ece7ef;
}

body.mathguru-theme .mpt-subject-hero > .container { width: min(100% - 40px, 980px); text-align: center; }
body.mathguru-theme .mpt-subject-hero h1 { max-width: 900px; margin: 0 auto; color: #17151d; font-size: clamp(2.7rem, 5.7vw, 5rem); line-height: 1; letter-spacing: -.055em; }
body.mathguru-theme .mpt-subject-hero p { max-width: 760px; margin: 24px auto 0; color: #625d69; font-size: 1.08rem; line-height: 1.7; }

body.mathguru-theme .mpt-subject-main { padding: clamp(58px, 8vw, 100px) 0 clamp(78px, 10vw, 130px); }
body.mathguru-theme .mpt-subject-heading { display: flex; align-items: end; justify-content: space-between; gap: 36px; margin-bottom: 34px; }
body.mathguru-theme .mpt-subject-heading span { color: #f451b5; font-size: .76rem; font-weight: 950; letter-spacing: .1em; text-transform: uppercase; }
body.mathguru-theme .mpt-subject-heading h2 { margin: 8px 0 0; color: #17151d; font-size: clamp(2rem, 4vw, 3.25rem); letter-spacing: -.045em; }
body.mathguru-theme .mpt-subject-heading p { max-width: 430px; margin: 0; color: #686270; line-height: 1.65; }

body.mathguru-theme .mpt-subject-card-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
}

body.mathguru-theme .mpt-subject-card {
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 28px;
  background: #fff;
  border: 1px solid #ded9e2;
  border-radius: 0;
  box-shadow: 0 18px 45px rgba(18,15,28,.07);
}

body.mathguru-theme .mpt-subject-card > span {
  min-width: 48px;
  height: 40px;
  display: inline-grid;
  place-items: center;
  padding: 0 10px;
  color: #d82d96;
  border: 1px solid #f451b5;
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .05em;
}

body.mathguru-theme .mpt-subject-card h3 { margin: 27px 0 9px; color: #17151d; font-size: 1.24rem; line-height: 1.25; }
body.mathguru-theme .mpt-subject-card p { margin: 0; color: #6d6772; font-size: .9rem; line-height: 1.6; }

body.mathguru-theme .mpt-subject-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  margin-top: 56px;
  padding: 34px 38px;
  color: #fff;
  background: #090b22;
}

body.mathguru-theme .mpt-subject-cta h2 { margin: 0 0 6px; color: #fff; font-size: 1.8rem; }
body.mathguru-theme .mpt-subject-cta p { max-width: 680px; margin: 0; color: rgba(255,255,255,.72); line-height: 1.65; }
body.mathguru-theme .mpt-subject-cta .button { flex: 0 0 auto; border-radius: 0 !important; }

body.mathguru-theme .mpt-footer-socials { margin-top: 22px; }
body.mathguru-theme .mpt-footer-socials > strong { display: block; margin-bottom: 10px; color: #fff; font-size: .72rem; letter-spacing: .05em; text-transform: uppercase; }
body.mathguru-theme .mpt-footer-socials > div { display: flex; flex-wrap: wrap; gap: 7px; }
body.mathguru-theme .mpt-footer-socials a { padding: 7px 9px; color: #d8d1db !important; border: 1px solid #3b3741; border-radius: 0; font-size: .66rem; line-height: 1; text-decoration: none; }
body.mathguru-theme .mpt-footer-socials a:hover { color: #fff !important; border-color: #f451b5; background: #f451b5; }

@media (max-width: 1050px) {
  body.mathguru-theme .mpt-subject-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  body.mathguru-theme .mpt-editorial-hero-inner,
  body.mathguru-theme .mpt-editorial-article,
  body.mathguru-theme .mpt-subject-hero > .container { width: min(100% - 28px, 940px); }
  body.mathguru-theme .mpt-editorial-highlight-grid,
  body.mathguru-theme .mpt-editorial-feature-grid,
  body.mathguru-theme .mpt-subject-card-grid { grid-template-columns: 1fr; }
  body.mathguru-theme .mpt-editorial-cta,
  body.mathguru-theme .mpt-subject-heading,
  body.mathguru-theme .mpt-subject-cta { align-items: flex-start; flex-direction: column; }
  body.mathguru-theme .mpt-editorial-cta > div:last-child { width: 100%; flex-direction: column; }
  body.mathguru-theme .mpt-editorial-cta .button,
  body.mathguru-theme .mpt-subject-cta .button { width: 100%; text-align: center; }
  body.mathguru-theme .mpt-subject-card { min-height: 0; }
}

@media (min-width: 761px) and (max-width: 1050px) {
  body.mathguru-theme .mpt-subject-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
.mpt-editorial-hero.has-managed-media{position:relative;overflow:hidden;background-size:cover;background-position:center;color:#fff}.mpt-managed-hero-video{position:absolute;inset:0;width:100%;height:100%;object-fit:cover;z-index:0}.mpt-editorial-hero.has-managed-media:after{content:"";position:absolute;inset:0;background:linear-gradient(90deg,rgba(8,8,8,.9),rgba(8,8,8,.3));z-index:1}.mpt-editorial-hero.has-managed-media .mpt-editorial-hero-inner{position:relative;z-index:2}
