/* MathPro Tutors - Google Reviews presentation fix V20
   Dedicated file so the review section cannot be stranded behind an older cached homepage stylesheet. */

body.mathguru-theme .pro-google-reviews-section {
  box-sizing: border-box !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
  padding: clamp(72px, 7vw, 112px) 0 !important;
  background: #ffffff !important;
  color: #171522 !important;
  overflow: hidden !important;
}

body.mathguru-theme .pro-google-reviews-section *,
body.mathguru-theme .pro-google-reviews-section *::before,
body.mathguru-theme .pro-google-reviews-section *::after {
  box-sizing: border-box !important;
}

body.mathguru-theme .pro-google-reviews-wrap {
  display: block !important;
  width: min(calc(100% - 48px), 1220px) !important;
  max-width: 1220px !important;
  margin: 0 auto !important;
  padding: 0 !important;
}

body.mathguru-theme .pro-google-reviews-wrap > h2 {
  display: block !important;
  max-width: none !important;
  margin: 0 0 42px !important;
  padding: 0 !important;
  color: #f451b5 !important;
  font-size: clamp(2.45rem, 4.1vw, 4rem) !important;
  line-height: 1.04 !important;
  letter-spacing: -.045em !important;
  font-weight: 900 !important;
  text-align: center !important;
}

body.mathguru-theme .pro-google-summary-bar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 28px !important;
  width: 100% !important;
  min-height: 112px !important;
  margin: 0 0 24px !important;
  padding: 25px 30px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #f1f1f3 !important;
  box-shadow: none !important;
}

body.mathguru-theme .pro-google-summary-copy {
  display: block !important;
  min-width: 0 !important;
}

body.mathguru-theme .pro-google-summary-title {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  margin: 0 !important;
  color: #11131d !important;
  font-size: 1.1rem !important;
  line-height: 1.1 !important;
  font-weight: 850 !important;
}

body.mathguru-theme .mpt-google-wordmark {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1.18rem !important;
  line-height: 1 !important;
  font-weight: 600 !important;
  letter-spacing: -.055em !important;
  white-space: nowrap !important;
}

body.mathguru-theme .mpt-google-wordmark .g1 { color: #4285f4 !important; }
body.mathguru-theme .mpt-google-wordmark .g2 { color: #ea4335 !important; }
body.mathguru-theme .mpt-google-wordmark .g3 { color: #fbbc05 !important; }
body.mathguru-theme .mpt-google-wordmark .g4 { color: #34a853 !important; }

body.mathguru-theme .pro-google-summary-rating {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 9px !important;
  margin: 10px 0 0 !important;
}

body.mathguru-theme .pro-google-summary-rating strong {
  color: #11131d !important;
  font-size: 1.08rem !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

body.mathguru-theme .pro-google-summary-rating small {
  color: #687083 !important;
  font-size: .92rem !important;
  line-height: 1 !important;
}

body.mathguru-theme .pro-google-stars {
  display: inline-block !important;
  color: #fbbc05 !important;
  font-family: Arial, Helvetica, sans-serif !important;
  font-size: 1.55rem !important;
  line-height: 1 !important;
  letter-spacing: .015em !important;
  white-space: nowrap !important;
}

body.mathguru-theme .pro-google-review-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 178px !important;
  min-height: 48px !important;
  margin: 0 !important;
  padding: 0 20px !important;
  border: 0 !important;
  border-radius: 5px !important;
  background: #f451b5 !important;
  color: #ffffff !important;
  box-shadow: none !important;
  font-size: .93rem !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  text-decoration: none !important;
  white-space: nowrap !important;
}
body.mathguru-theme .pro-google-review-cta:hover,
body.mathguru-theme .pro-google-review-cta:focus-visible {
  background: #df369f !important;
  color: #fff !important;
}

body.mathguru-theme .pro-google-review-grid {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  align-items: stretch !important;
  gap: 20px !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 0 !important;
}

body.mathguru-theme .pro-google-review-card {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  min-height: 310px !important;
  margin: 0 !important;
  padding: 26px 26px 22px !important;
  border: 0 !important;
  border-radius: 24px !important;
  background: #f1f1f3 !important;
  color: #171522 !important;
  box-shadow: none !important;
  overflow: hidden !important;
}

body.mathguru-theme .pro-google-review-card-head {
  display: flex !important;
  align-items: center !important;
  gap: 13px !important;
  min-width: 0 !important;
  margin: 0 0 17px !important;
  padding: 0 !important;
}

body.mathguru-theme .pro-google-review-avatar {
  display: grid !important;
  place-items: center !important;
  flex: 0 0 48px !important;
  width: 48px !important;
  height: 48px !important;
  margin: 0 !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: linear-gradient(145deg, #b578ff 0%, #7751d8 100%) !important;
  color: #ffffff !important;
  font-size: .88rem !important;
  line-height: 1 !important;
  font-weight: 850 !important;
  box-shadow: 0 8px 18px rgba(102,76,190,.18) !important;
}
body.mathguru-theme .pro-google-review-card:nth-child(1) .pro-google-review-avatar {
  background: linear-gradient(145deg, #ff8d70 0%, #f451b5 100%) !important;
}
body.mathguru-theme .pro-google-review-card:nth-child(3) .pro-google-review-avatar {
  background: linear-gradient(145deg, #62c7f5 0%, #4a68dc 100%) !important;
}
body.mathguru-theme .pro-google-review-card:nth-child(4) .pro-google-review-avatar {
  background: linear-gradient(145deg, #1a9d7f 0%, #00695c 100%) !important;
}

body.mathguru-theme .pro-google-review-card h3 {
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #171522 !important;
  font-size: 1.02rem !important;
  line-height: 1.22 !important;
  font-weight: 900 !important;
  overflow-wrap: anywhere !important;
}

body.mathguru-theme .pro-google-card-stars {
  display: block !important;
  margin: 0 0 11px !important;
  color: #fbbc05 !important;
  font-size: 1.27rem !important;
}

body.mathguru-theme .pro-google-review-card p {
  display: -webkit-box !important;
  margin: 0 0 7px !important;
  padding: 0 !important;
  color: #262935 !important;
  font-size: .98rem !important;
  line-height: 1.46 !important;
  font-weight: 500 !important;
  -webkit-line-clamp: 4 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
}

body.mathguru-theme .pro-google-readmore {
  display: inline-block !important;
  width: max-content !important;
  margin: 0 !important;
  padding: 0 !important;
  color: #777d8d !important;
  font-size: .96rem !important;
  line-height: 1.35 !important;
  font-weight: 600 !important;
  text-decoration: none !important;
}
body.mathguru-theme .pro-google-readmore:hover,
body.mathguru-theme .pro-google-readmore:focus-visible {
  color: #251f8f !important;
  text-decoration: underline !important;
}

body.mathguru-theme .pro-google-card-brand {
  display: block !important;
  margin-top: auto !important;
  padding: 20px 0 0 !important;
}
body.mathguru-theme .pro-google-card-brand .mpt-google-wordmark {
  font-size: 1.08rem !important;
}

/* Preserve the previously requested removal of the cookie badge/banner. */
body.mathguru-theme .cookie-banner,
body.mathguru-theme .cookie-consent,
body.mathguru-theme .cookie-consent-banner,
body.mathguru-theme .cookie-notice,
body.mathguru-theme #cookie-banner,
body.mathguru-theme #cookie-consent,
body.mathguru-theme [data-cookie-banner],
body.mathguru-theme [data-cookie-consent],
body.mathguru-theme [aria-label="Cookie preferences"],
body.mathguru-theme [aria-label="Cookie choices"] {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

@media (max-width: 1100px) {
  body.mathguru-theme .pro-google-review-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (max-width: 760px) {
  body.mathguru-theme .pro-google-reviews-section {
    padding: 60px 0 !important;
  }
  body.mathguru-theme .pro-google-reviews-wrap {
    width: min(calc(100% - 28px), 1220px) !important;
  }
  body.mathguru-theme .pro-google-reviews-wrap > h2 {
    margin-bottom: 28px !important;
    font-size: clamp(2rem, 10vw, 3rem) !important;
  }
  body.mathguru-theme .pro-google-summary-bar {
    flex-direction: column !important;
    align-items: flex-start !important;
    min-height: 0 !important;
    padding: 22px 20px !important;
  }
  body.mathguru-theme .pro-google-review-cta {
    width: 100% !important;
  }
  body.mathguru-theme .pro-google-review-grid {
    grid-template-columns: 1fr !important;
    gap: 16px !important;
  }
  body.mathguru-theme .pro-google-review-card {
    min-height: 0 !important;
    padding: 22px 20px !important;
    border-radius: 18px !important;
  }
}
