html,
body {
  min-width: 0;
}

/*
 * UI depth prototype: home "Personalisation Meets Pedagogy" feature grid.
 * Turns the flat icon+text blocks into elevated cards with tinted icon tiles
 * and a hover lift. Scoped to home-only classes.
 */
.mo-personalisation-grid {
  align-items: stretch;
}

.mo-personl-grid-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  height: 100%;
  padding: 30px 26px;
  background: #ffffff;
  border: 1px solid #ece6dd;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.04), 0 10px 30px rgba(31, 41, 55, 0.06);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mo-personl-grid-item:hover {
  transform: translateY(-6px);
  box-shadow: 0 6px 14px rgba(31, 41, 55, 0.08), 0 22px 48px rgba(31, 41, 55, 0.12);
}

.mo-personl-grid-item .mo-directional-image {
  width: 112px;
  height: 112px;
  padding: 18px;
  object-fit: contain;
  border-radius: 22px;
  background: rgba(248, 63, 127, 0.1);
  transition: transform 0.2s ease;
}

.mo-personl-grid-item:hover .mo-directional-image {
  transform: scale(1.06);
}

.mo-personalisation-grid .mo-personl-grid-item:nth-child(2) .mo-directional-image {
  background: rgba(36, 92, 157, 0.1);
}

.mo-personalisation-grid .mo-personl-grid-item:nth-child(3) .mo-directional-image {
  background: rgba(46, 184, 114, 0.12);
}

.mo-personalisation-grid .mo-personl-grid-item:nth-child(4) .mo-directional-image {
  background: rgba(245, 176, 16, 0.16);
}

.mo-header-nav-menu-icon {
  color: currentColor;
  position: relative;
}

.mo-header-nav-menu-icon::before {
  background: currentColor;
  border-radius: 999px;
  box-shadow: 0 -8px 0 currentColor, 0 8px 0 currentColor;
  content: "";
  height: 3px;
  left: 2px;
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%);
}

.mo-header-nav-menu-toggle.w--open .mo-header-nav-menu-icon::before {
  box-shadow: none;
  transform: translateY(-50%) rotate(45deg);
}

.mo-header-nav-menu-toggle.w--open .mo-header-nav-menu-icon::after {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 3px;
  left: 2px;
  position: absolute;
  right: 2px;
  top: 50%;
  transform: translateY(-50%) rotate(-45deg);
}

.mo-header-nav-dd-list.w--open {
  z-index: 20;
}

@media (min-width: 992px) {
  /* This CSS-only :hover/:focus-within reveal and site-runtime.js's
     mouseenter/click .w--open toggle both independently open this dropdown
     — a real click fires mouseenter (opening it) immediately followed by
     the click handler's own toggle (closing it again, since it now sees
     .w--open already present), leaving this rule as the only thing still
     showing it. Values here match brand.css's own
     ".mo-header-navbar .mo-header-nav-dd-list.w--open" (the "unify with the
     language-switcher dropdown" rule) exactly, so it looks identical
     whichever of the two mechanisms ends up being the one showing it,
     instead of falling back to a plain, differently-styled default. */
  .moheader-nav-dropdown:hover > .mo-header-nav-dd-list,
  .moheader-nav-dropdown:focus-within > .mo-header-nav-dd-list {
    display: flex;
    flex-flow: column;
    row-gap: 10px;
    background-color: #fff;
    border: 0.5px solid rgba(50, 47, 44, 0.14);
    border-radius: 12px;
    padding: 6px;
    box-shadow: 0 18px 40px -20px rgba(0, 0, 0, 0.35);
  }
}

@media (max-width: 991px) {
  .mo-header-navbar {
    overflow: visible;
  }

  .mo-header-navbar .mo-header-nav-menu-parent {
    display: none;
  }

  /* The frosted blur reads muddy once the menu panel opens right below it
     (it has nothing meaningful to blur), so the open state swaps it for a
     flat, solid version of the same cream instead. */
  .mo-header-navbar.is-menu-open {
    background-color: #F9F5EE;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }

  .mo-header-navbar.is-menu-open .mo-header-nav-menu-parent {
    display: block;
    left: 0;
    position: absolute;
    right: 0;
    top: 100%;
    z-index: 50;
  }

  /* Scrim behind the open panel: dims the rest of the page (which otherwise
     just sat there, unstyled and scrollable, right under the menu) and
     signals the menu is a modal-style overlay, not an inline panel.
     site-runtime.js locks scroll for the same reason while this is open.
     Lives on <html> (toggled via .mo-menu-open), not on .mo-header-navbar
     itself — that element is position:sticky, which establishes a
     containing block for position:fixed descendants, so a fixed pseudo-
     element placed there is confined to the header's own small box instead
     of the full viewport. .mo-header-navbar's z-index (99) still outranks
     this scrim (40) as a whole stacking context, so the header bar and
     menu panel both keep rendering above it. */
  html.mo-menu-open::after {
    content: '';
    position: fixed;
    inset: 0;
    z-index: 40;
    background: rgba(20, 19, 15, 0.5);
  }

  .mo-header-navbar.is-menu-open .mo-header-nav-menu {
    align-items: stretch;
    flex-direction: column;
    padding-bottom: 24px;
    padding-top: 24px;
  }

  .mo-header-navbar.is-menu-open .moheader-nav-dropdown {
    width: 100%;
  }

  .mo-header-navbar.is-menu-open .mo-header-nav-dd-toggle {
    align-items: center;
    display: flex;
    justify-content: space-between;
    min-height: 44px;
    width: 100%;
  }

  .mo-header-navbar.is-menu-open .mo-header-nav-dd-list {
    margin-top: 8px;
    position: static;
  }
}

/* Home testimonials — elevated quote cards (replaces the old carousel). */
/* Reset the large paragraph padding inherited from the global site CSS. */
.mo-testimonials-overline,
.mo-tcard-quote,
.mo-tcard-name,
.mo-tcard-role {
  padding: 0;
}

.mo-testimonials-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 44px;
}

.mo-testimonials-overline {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  color: #f83f7f;
  margin: 0 0 12px;
}

.mo-testimonials-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  align-items: stretch;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
}

.mo-tcard {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 32px 28px;
  background: #ffffff;
  border: 1px solid #ece6dd;
  border-radius: 18px;
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.04), 0 14px 34px rgba(31, 41, 55, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mo-tcard:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.09), 0 26px 54px rgba(31, 41, 55, 0.13);
}

.mo-tcard-qmark {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 64px;
  line-height: 0.6;
  height: 34px;
}

.mo-tcard-quote {
  flex: 1 1 auto;
  margin: 0;
  font-size: 15.5px;
  line-height: 1.72;
  color: #4a443d;
}

.mo-tcard-person {
  display: flex;
  align-items: center;
  gap: 14px;
  padding-top: 20px;
  border-top: 1px solid #f0eadf;
}

.mo-tcard-avatar {
  flex: 0 0 auto;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid;
  padding: 2px;
  background: #ffffff;
}

.mo-tcard-meta {
  min-width: 0;
}

.mo-tcard-name {
  margin: 0;
  font-weight: 700;
  font-size: 15px;
}

.mo-tcard-role {
  margin: 2px 0 0;
  color: #6d6862;
  font-size: 12.5px;
  line-height: 1.4;
}

.mo-tcard--pink .mo-tcard-qmark,
.mo-tcard--pink .mo-tcard-avatar {
  color: #f83f7f;
  border-color: #f83f7f;
}

.mo-tcard--blue .mo-tcard-qmark,
.mo-tcard--blue .mo-tcard-avatar {
  color: #245c9d;
  border-color: #245c9d;
}

.mo-tcard--green .mo-tcard-qmark,
.mo-tcard--green .mo-tcard-avatar {
  color: #2bb673;
  border-color: #2bb673;
}

@media (max-width: 900px) {
  .mo-testimonials-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
  }
}

/* Home "How MeeOpp works" — 5-step journey (replaces the scroll carousel). */
.mo-steps-head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 48px;
}

.mo-steps-overline {
  text-transform: uppercase;
  letter-spacing: 0.14em;
  font-size: 13px;
  font-weight: 700;
  color: #f83f7f;
  margin: 0 0 12px;
  padding: 0;
}

.mo-steps-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 22px;
  align-items: stretch;
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
}

.mo-step {
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #ece6dd;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(31, 41, 55, 0.04), 0 14px 34px rgba(31, 41, 55, 0.07);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.mo-step:hover {
  transform: translateY(-6px);
  box-shadow: 0 8px 18px rgba(31, 41, 55, 0.09), 0 26px 54px rgba(31, 41, 55, 0.13);
}

.mo-step-media {
  position: relative;
  height: 148px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.mo-step-ill {
  height: 88px;
  width: auto;
  max-width: 72%;
  object-fit: contain;
}

.mo-step-num {
  position: absolute;
  top: 12px;
  left: 12px;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #ffffff;
  color: #312f2c;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.18);
}

.mo-step-body {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 22px 22px 26px;
}

.mo-step-title {
  font-size: 21px;
  margin: 0;
}

.mo-step-text {
  margin: 0;
  padding: 0;
  font-size: 13.5px;
  line-height: 1.6;
  color: #4a443d;
}

.mo-step--1 .mo-step-media { background: #f83f7f; }
.mo-step--2 .mo-step-media { background: #245c9d; }
.mo-step--3 .mo-step-media { background: #2bb673; }
.mo-step--4 .mo-step-media { background: #b5174e; }
.mo-step--5 .mo-step-media { background: #3f4a8a; }

@media (max-width: 1080px) {
  .mo-steps-grid {
    grid-template-columns: repeat(3, 1fr);
    max-width: 760px;
  }
}

@media (max-width: 720px) {
  .mo-steps-grid {
    grid-template-columns: repeat(2, 1fr);
    max-width: 520px;
  }
}

@media (max-width: 520px) {
  .mo-steps-grid {
    grid-template-columns: 1fr;
    max-width: 360px;
  }
}
