/* MathPro Tutors - auto sliding tutor/course match cards v11 */
body.mathguru-theme .mgt-match-section {
  position: relative;
  overflow: hidden;
  padding: clamp(86px, 8vw, 132px) 0;
  background:
    radial-gradient(circle at 10% 15%, rgba(255, 90, 187, .17), transparent 30%),
    radial-gradient(circle at 90% 90%, rgba(151, 243, 216, .22), transparent 28%),
    linear-gradient(135deg, #fff7fc 0%, #f4f2ff 100%);
}
body.mathguru-theme .mgt-match-section::before {
  content: "";
  position: absolute;
  inset: 0;
  opacity: .46;
  pointer-events: none;
  background-image: radial-gradient(circle, rgba(38,32,143,.16) 1.2px, transparent 1.4px);
  background-size: 24px 24px;
  mask-image: linear-gradient(90deg, transparent 0%, #000 18%, #000 82%, transparent 100%);
}
body.mathguru-theme .mgt-match-layout {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(280px, .82fr) minmax(540px, 1.18fr);
  align-items: center;
  gap: clamp(42px, 6vw, 90px);
  width: min(100% - 42px, 1280px);
}
body.mathguru-theme .mgt-match-copy {
  max-width: 520px;
}
body.mathguru-theme .mgt-match-kicker {
  color: #f451b5;
  display: inline-block;
  font-weight: 950;
  letter-spacing: .12em;
  text-transform: uppercase;
  margin-bottom: 16px;
}
body.mathguru-theme .mgt-match-copy h2 {
  color: #171522;
  font-size: clamp(2.6rem, 4.5vw, 5.05rem);
  line-height: .98;
  letter-spacing: -.055em;
  margin: 0 0 22px;
}
body.mathguru-theme .mgt-match-copy p {
  color: #343047;
  font-size: clamp(1.04rem, 1.5vw, 1.26rem);
  line-height: 1.72;
  font-weight: 760;
}
body.mathguru-theme .mgt-match-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 30px;
}
body.mathguru-theme .mgt-match-button {
  display: inline-flex;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 0;
  padding: 0 30px;
  font-weight: 900;
  text-decoration: none;
  border: 2px solid transparent;
  transition: transform .2s ease, background .2s ease, color .2s ease;
}
body.mathguru-theme .mgt-match-button:hover,
body.mathguru-theme .mgt-match-button:focus-visible { transform: translateY(-2px); }
body.mathguru-theme .mgt-match-button-pink { background: #f451b5; color: #fff; }
body.mathguru-theme .mgt-match-button-blue { background: #261f91; color: #fff; }
body.mathguru-theme .mgt-match-stage {
  position: relative;
  min-height: 420px;
  perspective: 1200px;
}
body.mathguru-theme .mgt-match-stage::before,
body.mathguru-theme .mgt-match-stage::after {
  content: "";
  position: absolute;
  left: 42px;
  right: 42px;
  height: 100%;
  border-radius: 28px;
  background: rgba(255,255,255,.72);
  border: 1px solid rgba(38,32,143,.09);
  box-shadow: 0 22px 38px rgba(20, 18, 35, .08);
  transform: translateY(26px) scale(.96);
  z-index: 0;
}
body.mathguru-theme .mgt-match-stage::after {
  transform: translateY(48px) scale(.91);
  opacity: .7;
}
body.mathguru-theme .mgt-match-card {
  position: absolute;
  inset: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(255px, .82fr);
  gap: 0;
  min-height: 390px;
  padding: clamp(22px, 3vw, 42px);
  border-radius: 28px;
  border: 1px solid rgba(20,18,35,.10);
  background: rgba(255,255,255,.94);
  box-shadow: 0 28px 64px rgba(20, 18, 35, .13);
  opacity: 0;
  transform: translateY(72px) scale(.92) rotateX(-8deg);
  transition: transform .78s cubic-bezier(.22,1,.36,1), opacity .55s ease, filter .55s ease;
  pointer-events: none;
  z-index: 1;
  overflow: hidden;
}
body.mathguru-theme .mgt-match-card::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  width: 44%;
  height: 100%;
  background: linear-gradient(135deg, rgba(244,81,181,.09), transparent 62%);
  pointer-events: none;
}
body.mathguru-theme .mgt-match-card.is-active {
  opacity: 1;
  transform: translateY(0) scale(1) rotateX(0);
  pointer-events: auto;
  z-index: 4;
}
body.mathguru-theme .mgt-match-card.is-prev {
  opacity: .22;
  transform: translateY(-44px) scale(.965) rotateX(5deg);
  filter: blur(.2px);
  z-index: 2;
}
body.mathguru-theme .mgt-match-card.is-next {
  opacity: .54;
  transform: translateY(42px) scale(.965) rotateX(-4deg);
  filter: blur(.1px);
  z-index: 3;
}
body.mathguru-theme .mgt-match-card-left,
body.mathguru-theme .mgt-match-fit {
  position: relative;
  z-index: 2;
}
body.mathguru-theme .mgt-match-card-left {
  padding: 8px clamp(22px, 3vw, 36px) 8px 0;
}
body.mathguru-theme .mgt-match-card-top {
  display: grid;
  grid-template-columns: 62px 1fr;
  gap: 18px;
  align-items: start;
  margin-bottom: 28px;
}
body.mathguru-theme .mgt-match-logo {
  width: 58px;
  height: 58px;
  border-radius: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: linear-gradient(135deg, #f451b5, #261f91);
  font-weight: 950;
  box-shadow: 0 12px 26px rgba(244,81,181,.22);
}
body.mathguru-theme .mgt-match-card small {
  display: block;
  color: #f451b5;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .1em;
  margin-bottom: 6px;
}
body.mathguru-theme .mgt-match-card h3 {
  color: #1d2033;
  font-size: clamp(1.45rem, 2.2vw, 2.1rem);
  line-height: 1.08;
  margin: 0 0 8px;
}
body.mathguru-theme .mgt-match-card b {
  color: #596172;
  font-weight: 850;
}
body.mathguru-theme .mgt-match-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 26px;
}
body.mathguru-theme .mgt-match-meta span {
  color: #596172;
  background: #f6f7fb;
  border: 1px solid rgba(38,32,143,.08);
  border-radius: 999px;
  padding: 8px 12px;
  font-weight: 820;
}
body.mathguru-theme .mgt-match-label {
  display: block;
  color: #677083;
  font-weight: 950;
  letter-spacing: .1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
body.mathguru-theme .mgt-match-card-left p {
  color: #3d4557;
  font-weight: 760;
  font-size: 1.05rem;
  line-height: 1.52;
  margin: 0;
}
body.mathguru-theme .mgt-match-fit {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  border-radius: 24px;
  background: #eaf9f2;
  padding: clamp(22px, 3vw, 34px);
  color: #19304a;
}
body.mathguru-theme .mgt-match-fit h4 {
  color: #19304a;
  margin: 0 0 18px;
  font-size: 1.25rem;
}
body.mathguru-theme .mgt-match-fit h4 span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  margin-right: 10px;
  color: #0f8e68;
  border: 2px solid #0f8e68;
  font-size: .86rem;
}
body.mathguru-theme .mgt-match-fit p {
  color: #425265;
  font-weight: 760;
  line-height: 1.5;
  margin: 0 0 18px;
}
body.mathguru-theme .mgt-match-fit ul {
  list-style: none;
  padding: 0;
  margin: 0 0 24px;
  display: grid;
  gap: 12px;
}
body.mathguru-theme .mgt-match-fit li {
  color: #27384d;
  font-weight: 800;
}
body.mathguru-theme .mgt-match-fit li::before {
  content: "✓";
  color: #0f8e68;
  font-weight: 950;
  margin-right: 10px;
}
body.mathguru-theme .mgt-match-score {
  display: flex;
  align-items: center;
  gap: 10px;
  border-top: 1px solid rgba(15,142,104,.18);
  padding-top: 18px;
  margin-top: auto;
}
body.mathguru-theme .mgt-match-score strong {
  color: #19304a;
  font-size: 1.35rem;
}
body.mathguru-theme .mgt-match-score span {
  color: #0d8b66;
  font-weight: 900;
}
body.mathguru-theme .mgt-match-fit a {
  margin-top: 20px;
  color: #261f91;
  font-weight: 900;
  text-decoration: none;
}
body.mathguru-theme .mgt-match-section .mgt-floating-sign {
  position: absolute;
  color: #98f3d8;
  font-weight: 950;
  opacity: .35;
  pointer-events: none;
}
@media (max-width: 1050px) {
  body.mathguru-theme .mgt-match-layout { grid-template-columns: 1fr; }
  body.mathguru-theme .mgt-match-copy { max-width: 820px; }
  body.mathguru-theme .mgt-match-stage { min-height: 430px; }
}
@media (max-width: 760px) {
  body.mathguru-theme .mgt-match-layout { width: min(100% - 26px, 680px); }
  body.mathguru-theme .mgt-match-card {
    position: relative;
    display: none;
    grid-template-columns: 1fr;
    min-height: auto;
  }
  body.mathguru-theme .mgt-match-card.is-active { display: grid; }
  body.mathguru-theme .mgt-match-card-left { padding: 0 0 24px; }
  body.mathguru-theme .mgt-match-stage { min-height: auto; }
  body.mathguru-theme .mgt-match-stage::before,
  body.mathguru-theme .mgt-match-stage::after { display: none; }
  body.mathguru-theme .mgt-match-actions { flex-direction: column; }
  body.mathguru-theme .mgt-match-button { width: 100%; }
}
