/* MathCrack Homepage Final Polish */

/* Prevent accidental horizontal overflow */
html,
body {
  overflow-x: hidden;
}

/* Fixed header anchor correction */
#home,
#explore-mathcrack,
#why-mathcrack,
#dsat-system,
#courses,
#professor-summary,
#professor,
#join,
#stats,
#contactMain {
  scroll-margin-top: 95px;
}

/* Consistent section transitions */
.mc-explore-section,
#dsat-system,
#courses,
.mc-prof-summary,
.cta-section,
.stats-section,
.contact-main-section {
  position: relative;
}

/* Explore */
.mc-explore-section {
  padding-top: 46px;
  padding-bottom: 50px;
}

/* Why MathCrack */
#dsat-system {
  padding-top: 56px !important;
  padding-bottom: 60px !important;
}

/* Programs */
#courses {
  padding-top: 58px !important;
  padding-bottom: 62px !important;
}

/* Professor */
.mc-prof-summary {
  padding-top: 28px;
  padding-bottom: 44px;
}

/* CTA */
.cta-section {
  padding-top: 24px !important;
  padding-bottom: 48px !important;
}

/* Stats */
.stats-section {
  padding-top: 55px !important;
  padding-bottom: 58px !important;
}

/* Consistent section headings */
#dsat-system .mc-why-heading h2,
#courses > .container > .section-title h2,
.stats-section .section-title h2,
.contact-main-title {
  letter-spacing: -0.02em;
}

/* Programs card heights */
.mc-program-card {
  height: 100%;
}

/* Professor summary */
.mc-prof-summary-card {
  transition: transform .22s ease, box-shadow .22s ease;
}

.mc-prof-summary-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 17px 38px rgba(16,24,40,.09);
}

/* Contact section alignment */
.contact-main-section {
  padding-top: 54px;
  padding-bottom: 60px;
}

/* Smooth anchor navigation */
html {
  scroll-behavior: smooth;
}

@media (max-width: 767px) {
  #home,
  #explore-mathcrack,
  #dsat-system,
  #courses,
  #professor-summary,
  #professor,
  #join,
  #stats,
  #contactMain {
    scroll-margin-top: 80px;
  }

  .mc-explore-section {
    padding-top: 36px;
    padding-bottom: 40px;
  }

  #dsat-system,
  #courses {
    padding-top: 44px !important;
    padding-bottom: 48px !important;
  }

  .mc-prof-summary {
    padding-bottom: 36px;
  }

  .stats-section,
  .contact-main-section {
    padding-top: 44px !important;
    padding-bottom: 48px !important;
  }
}

/* Explore Quick Access */

.mc-card-live {
  background: linear-gradient(135deg,#7a1f38 0%,#d94665 100%);
}

.mc-card-account {
  background: linear-gradient(135deg,#263648 0%,#536b82 100%);
}

.mc-explore-disabled {
  cursor: default;
  opacity: .78;
}

.mc-explore-disabled:hover {
  transform: none !important;
  box-shadow: 0 14px 35px rgba(16,24,40,.12) !important;
}
