.container {
  max-width: 1400px;
  position: relative;
}

/* ---- Hero (inside path wrap) ---- */
.mw-hero {
  width: 100%;
  margin: 0 0 48px;
  padding: 0;
  position: relative;
  z-index: 2;
}

.mw-hero-shell {
  position: relative;
  border-radius: 30px;
  padding: 3px;
  background: var(--mw-border);
  box-shadow: var(--mw-shadow-lg);
  border: 1px solid var(--mw-border);
}

.mw-path-origin {
  position: absolute;
  left: 50%;
  top: 100%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  z-index: 3;
  pointer-events: none;
}

.mw-path-anchor {
  position: absolute;
  left: 50%;
  width: 0;
  height: 0;
  pointer-events: none;
  z-index: 1;
}

.mw-path-anchor--top {
  top: 0;
  transform: translateX(-50%);
}

.mw-path-anchor--bottom,
.mw-path-anchor--team-bottom {
  bottom: 0;
  transform: translateX(-50%);
}

.mw-hero-inner {
  position: relative;
  border-radius: 24px;
  padding: 37px 33px;
  background: var(--mw-panel);
  border: 1.5px solid color-mix(in srgb, var(--mw-accent) 30%, var(--mw-border));
  color: var(--mw-text);
  overflow: hidden;
  animation: mw-hero-in 0.7s ease-out;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: center;
}

.mw-hero-content {
  position: relative;
  z-index: 1;
  min-width: 0;
  display: grid;
  gap: 20px;
  justify-items: start;
}

.mw-hero-media {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.mw-hero-img {
  display: block;
  width: 100%;
  height: 320px;
  object-fit: cover;
  background-color: var(--mw-panel-soft);
  border: 1px solid var(--mw-border);
  border-radius: 18px;
}

.mw-hero-title {
  font-family: var(--mw-font-display);
  font-size: 2.85rem;
  line-height: 1.05;
  margin: 0;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.mw-hero-sub {
  font-size: 1.1rem;
  line-height: 1.55;
  color: var(--mw-sub);
  max-width: 28rem;
  margin: 0;
}

.mw-hero-sub span {
  color: var(--mw-text);
  font-weight: 600;
}

.mw-hero-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--mw-accent);
  color: var(--mw-panel);
  text-decoration: none;
  padding: 14px 28px;
  border-radius: var(--mw-radius-btn);
  font-weight: 700;
  font-size: 1rem;
  margin: 4px 0 0;
  width: auto;
  box-shadow: var(--mw-shadow);
  transition: background 0.2s ease, transform 0.2s ease;
}

.mw-hero-cta:hover {
  background: var(--mw-accent-bright);
  transform: translateY(-1px);
}

.mw-hero-cta:focus-visible {
  outline: 2px solid var(--mw-accent);
  outline-offset: 3px;
}

/* ---- Staggered flow layout (inside path wrap) ---- */
.mw-flow {
  display: flex;
  flex-direction: column;
  gap: 400px;
  padding: 170px 0 16px;
  position: relative;
  z-index: 2;
}

.mw-flow-block {
  width: min(58%, 720px);
  position: relative;
}

.mw-flow-block--right {
  margin-left: auto;
  margin-right: 0;
}

.mw-flow-block--left {
  margin-right: auto;
  margin-left: 0;
}

.mw-flow-block--center {
  margin-inline: auto;
  width: min(58%, 720px);
}

.mw-flow-block--full {
  width: 100%;
}

.mw-flow-block--cta {
  width: 100%;
  max-width: 900px;
  margin-inline: auto;
}

/* ---- Review rows (About + Why with testimonial cards) ---- */
.mw-flow-block.mw-review-row {
  width: 100%;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
}

.mw-review-row {
  width: 100%;
  max-width: 1200px;
  margin-inline: auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 72px;
  align-items: center;
}

.mw-review-row .mw-about-card {
  width: min(100%, 520px);
}

.mw-review-row .mw-review-card {
  width: min(100%, 360px);
  justify-self: center;
}

.mw-review-row--about .mw-about-card {
  justify-self: start;
}

.mw-review-row--about .mw-review-card {
  justify-self: end;
}

.mw-review-row--why .mw-review-card {
  order: -1;
  justify-self: start;
}

.mw-review-row--why .mw-about-card {
  justify-self: center;
}

.mw-review-card {
  position: relative;
  border-radius: 18px;
  padding: 28px 26px 24px;
  background: var(--mw-panel);
  border: 1px solid var(--mw-border);
  box-shadow: var(--mw-shadow);
  display: grid;
  gap: 14px;
  align-content: start;
  opacity: 0;
  transform: translateY(12px);
  animation: mw-card-fade-in 0.6s ease-out forwards;
}

.mw-review-row--about .mw-review-card {
  animation-delay: 0.1s;
}

.mw-review-row--why .mw-review-card {
  animation-delay: 0.18s;
}

.mw-review-quote-icon {
  color: var(--mw-accent);
  font-size: 1.6rem;
  opacity: 0.9;
}

.mw-review-text {
  font-family: var(--mw-font-display);
  color: var(--mw-text);
  font-size: 1.25rem;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: -0.01em;
  margin: 0;
}

.mw-review-stars {
  color: var(--mw-star);
  letter-spacing: 2px;
  font-size: 0.85rem;
}

.mw-review-by {
  color: var(--mw-sub);
  font-size: 0.9rem;
  font-weight: 600;
}

/* ---- Team preview carousel ---- */
.mw-team-preview {
  text-align: center;
}

.mw-team-shell {
  position: relative;
  background: var(--mw-panel);
  border-radius: 18px;
  border: 1px solid var(--mw-border);
  box-shadow: var(--mw-shadow);
  padding: 22px 18px 24px;
  display: grid;
  gap: 16px;
}

.mw-team-title {
  font-family: var(--mw-font-display);
  font-size: 1.5rem;
  font-weight: 800;
  margin: 0;
}

.mw-team-preview .gallery-container {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
  padding: 24px 0 30px;
  margin: 0;
}

.mw-team-preview .gallery {
  display: flex;
  width: max-content;
  animation: scroll 32s linear infinite;
}

.mw-team-preview .gallery-container:hover .gallery {
  animation-play-state: paused;
}

.mw-team-preview .tutor-card {
  flex: 0 0 auto;
  width: 260px;
  margin: 0 14px;
  background: var(--mw-panel);
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--mw-border);
  box-shadow: var(--mw-shadow);
  transition: transform 0.3s ease, border-color 0.2s ease;
}

.mw-team-preview .tutor-card:hover {
  transform: translateY(-10px);
  border-color: color-mix(in srgb, var(--mw-accent) 45%, var(--mw-border));
}

.mw-team-preview .tutor-image {
  height: 220px;
  width: 100%;
  background: var(--mw-panel-soft);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}

.mw-team-preview .tutor-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.mw-team-preview .tutor-info {
  padding: 14px 16px 18px;
  text-align: left;
}

.mw-team-preview .tutor-name {
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 4px;
}

.mw-team-preview .tutor-year {
  color: var(--mw-accent);
  font-weight: 600;
  margin-bottom: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9rem;
}

.mw-team-preview .tutor-bio {
  color: var(--mw-sub);
  font-size: 0.86rem;
  line-height: 1.5;
}

.mw-team-tagline {
  margin: 0;
  width: 100%;
  color: var(--mw-sub);
  font-size: 0.95rem;
  line-height: 1.6;
}

@keyframes scroll {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ---- About cards ---- */
.mw-about-card {
  background: var(--mw-panel);
  border-radius: 18px;
  border: 1px solid var(--mw-border);
  box-shadow: var(--mw-shadow);
  padding: 32px;
  display: grid;
  gap: 20px;
  position: relative;
  overflow: visible;
  opacity: 0;
  transform: translateY(14px);
  animation: mw-card-fade-in 0.6s ease-out forwards;
}

.mw-flow-block:nth-child(2) .mw-about-card { animation-delay: 0s; }
.mw-flow-block:nth-child(3) .mw-about-card { animation-delay: 0.07s; }
.mw-flow-block:nth-child(4) .mw-about-card { animation-delay: 0.14s; }

@keyframes mw-card-fade-in {
  to { opacity: 1; transform: translateY(0); }
}

.mw-about-card-title {
  font-family: var(--mw-font-display);
  font-size: 1.9rem;
  line-height: 1.15;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0;
  max-width: 18ch;
  text-wrap: balance;
}

.mw-about-card-body {
  font-size: 1rem;
  color: var(--mw-sub);
  line-height: 1.7;
  margin: 0;
  overflow-wrap: anywhere;
}

.mw-em { color: var(--mw-accent); font-weight: 600; }

.mw-about-lead {
  font-size: 1.4rem;
  line-height: 1.4;
  font-weight: 600;
  color: var(--mw-text);
  margin: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

/* Four-step method: the sequence is the structure */
.mw-step-list,
.mw-reason-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.mw-step,
.mw-reason {
  padding: 20px 0;
  border-top: 1px solid var(--mw-border);
}

.mw-step:last-child,
.mw-reason:last-child {
  padding-bottom: 0;
}

.mw-step {
  display: grid;
  grid-template-columns: 2.5rem 1fr;
  gap: 16px;
}

.mw-step-num {
  font-size: 1.5rem;
  font-weight: 800;
  line-height: 1.2;
  color: var(--mw-accent);
  font-variant-numeric: tabular-nums;
}

.mw-step-label,
.mw-reason-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 1.1rem;
  font-weight: 700;
  line-height: 1.3;
  color: var(--mw-text);
  margin-bottom: 6px;
}

.mw-reason-label i {
  color: var(--mw-accent);
  font-size: 1rem;
}

.mw-step-text,
.mw-reason-text {
  font-size: 1rem;
  line-height: 1.7;
  color: var(--mw-sub);
  margin: 0;
  overflow-wrap: anywhere;
}

/* ---- Pricing CTA ---- */
.mw-pricing-cta {
  margin: 0;
  padding: 0;
}

.mw-pricing-shell {
  position: relative;
  border-radius: 26px;
  padding: 2px;
  background: var(--mw-border);
  border: 1px solid var(--mw-border);
  box-shadow: var(--mw-shadow-lg);
}

.mw-pricing-inner {
  background: var(--mw-panel);
  border-radius: 24px;
  padding: 28px 32px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 14px;
}

.mw-path-end {
  position: absolute;
  left: 50%;
  bottom: 0;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  pointer-events: none;
}

.mw-pricing-title {
  font-family: var(--mw-font-display);
  font-size: 1.6rem;
  font-weight: 800;
}

.mw-pricing-sub {
  font-size: 0.95rem;
  color: var(--mw-sub);
  max-width: 520px;
}

.mw-pricing-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 28px;
  border-radius: var(--mw-radius-btn);
  text-decoration: none;
  text-transform: uppercase;
  font-weight: 800;
  background: var(--mw-accent);
  color: var(--mw-panel);
  box-shadow: var(--mw-shadow);
  transition: transform 0.16s ease, background 0.2s ease;
  width: 100%;
  max-width: 480px;
  text-align: center;
  box-sizing: border-box;
  margin-top: 8px;
}

.mw-pricing-btn:hover {
  background: var(--mw-accent-bright);
  transform: translateY(-2px);
}

.mw-pricing-btn:focus-visible {
  outline: 2px solid var(--mw-accent);
  outline-offset: 3px;
}

.footer {
  margin-top: 24px;
}

/* ---- Decorative path + line animation ---- */
.mw-deco-wrap {
  position: relative;
  padding: 40px 0 32px;
}

.mw-deco-path {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  pointer-events: none;
  overflow: visible;
}

.mw-deco-line {
  fill: none;
  stroke-width: 2.4;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 2px rgba(47, 127, 196, 0.35));
}

.mw-deco-line-mobile { display: none; }

.mw-deco-segment-glow {
  fill: none;
  stroke-width: 2.8;
  stroke-linecap: round;
  filter: drop-shadow(0 1px 3px rgba(47, 127, 196, 0.4));
  opacity: 0.85;
}

.mw-deco-segment-glow-mobile { display: none; }

@media (max-width: 900px) {
  .mw-flow-block,
  .mw-flow-block--center {
    width: 100%;
  }

  .mw-flow-block--right,
  .mw-flow-block--left,
  .mw-flow-block--center {
    margin-left: 0;
    margin-right: 0;
  }

  .mw-review-row {
    grid-template-columns: 1fr;
    gap: 24px;
    max-width: 100%;
  }

  .mw-review-row .mw-about-card,
  .mw-review-row .mw-review-card {
    width: 100%;
    justify-self: stretch;
  }

  .mw-review-row--why .mw-review-card {
    order: 0;
  }

  .mw-about-card {
    padding: 24px 20px;
    gap: 16px;
  }

  .mw-about-card-title {
    font-size: 1.5rem;
    max-width: none;
  }

  .mw-about-lead {
    font-size: 1.1rem;
  }

  .mw-hero-inner {
    padding: 24px 20px;
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .mw-hero-media {
    order: -1;
  }

  .mw-hero-img {
    height: 220px;
  }

  .mw-hero-title {
    font-size: 2rem;
  }

  .mw-pricing-title {
    font-size: 1.5rem;
  }

  .mw-deco-line-desktop { display: none; }
  .mw-deco-line-mobile { display: block; }

  .mw-deco-segment-glow-desktop { display: none; }
  .mw-deco-segment-glow-mobile { display: block; }

  .mw-flow {
    gap: 220px;
    padding-top: 110px;
  }
}

@media (max-width: 600px) {
  .container {
    padding: 0 16px;
  }

  .mw-flow {
    gap: 160px;
    padding-top: 88px;
  }

  .mw-hero-title {
    font-size: 1.9rem;
  }

  .mw-hero-sub {
    font-size: 1rem;
  }

  .mw-hero-cta {
    width: 100%;
    font-size: 1rem;
    padding: 12px 20px;
  }

  .mw-team-preview .tutor-card {
    width: 230px;
    margin: 0 10px;
  }

  .mw-pricing-btn {
    white-space: normal;
    text-align: center;
  }
}

@keyframes mw-hero-in {
  from { opacity: 0; transform: translateY(16px) scale(0.99); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (prefers-reduced-motion: reduce) {
  .mw-hero-inner,
  .mw-about-card,
  .mw-review-card {
    animation: none !important;
    opacity: 1 !important;
    transform: none !important;
  }

  .mw-team-preview .gallery {
    animation: none;
  }

  .mw-hero-cta:hover,
  .mw-pricing-btn:hover,
  .mw-team-preview .tutor-card:hover {
    transform: none;
  }
}
