/* MVLCO homepage sections (rebuilt from the MVLCO-written Home/Index.cshtml). */

/* ---------- Intro: Upcoming Trainings card + featured banner ---------- */
.mv-home-intro {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(0, 1.9fr);
  align-items: stretch;
  gap: 24px;
  max-width: var(--mvlco-content-max);
  margin: 0 auto;
  padding: 40px var(--mvlco-gutter);
}

/* Upcoming Trainings card: blue header, one training at a time, buttons pinned to the bottom. */
.mv-trainings {
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 470px;
  overflow: hidden;
  border: 1px solid #E3EAF6;
  border-radius: 20px;
  background: var(--mvlco-white);
  box-shadow: 0 18px 40px rgba(8, 30, 80, 0.12);
}

.mv-trainings__header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px 14px 18px;
  background: linear-gradient(120deg, #0B3FB0 0%, #1268F0 60%, #1E86FF 100%);
}
.mv-trainings__header-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.16);
  color: var(--mvlco-white);
  font-size: 17px;
}
.mv-trainings__header h2 {
  flex: 1;
  min-width: 0;
  margin: 0;
  color: var(--mvlco-white);
  font-family: var(--mvlco-font-body);
  font-size: 18px;
  font-weight: 700;
  letter-spacing: 0.01em;
}
.mv-trainings__navs { display: flex; flex-shrink: 0; gap: 8px; }
.mv-trainings__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px; height: 34px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.45);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  color: var(--mvlco-white);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.mv-trainings__nav[hidden] { display: none; }
.mv-trainings__nav:hover { background: var(--mvlco-white); color: #0B47C4; }

.mv-trainings__body { display: flex; flex: 1; flex-direction: column; min-width: 0; padding: 20px 22px 18px; }

.mv-trainings__slide { display: flex; flex: 1; flex-direction: column; min-width: 0; }
.mv-trainings__slide[hidden] { display: none; }

.mv-trainings__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.mv-trainings__badges:empty { display: none; }
.mv-badge { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; font-size: 12px; font-weight: 700; line-height: 1.3; }
.mv-badge--live { background: var(--mvlco-live-red); color: var(--mvlco-white); }
.mv-badge--timer { background: #FFD43B; color: #1A1A1A; }
.mv-badge--mode { background: #EEF4FF; color: #0B47C4; }

.mv-trainings__name {
  display: -webkit-box;
  margin: 0 0 8px;
  overflow: hidden;
  color: #0B2A6F;
  font-size: 21px;
  font-weight: 800;
  line-height: 1.3;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}
.mv-trainings__name a { color: inherit; text-decoration: none; }
.mv-trainings__name a:hover { color: #1268F0; text-decoration: underline; text-underline-offset: 3px; }

.mv-trainings__summary {
  display: -webkit-box;
  margin: 0 0 4px;
  overflow: hidden;
  color: #4A5874;
  font-size: 14px;
  line-height: 1.55;
  overflow-wrap: anywhere;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.mv-trainings__info { display: grid; gap: 12px; margin: 14px 0 0; padding-top: 16px; border-top: 1px solid #E6ECF5; }
.mv-trainings__row { display: flex; align-items: center; gap: 12px; min-width: 0; }
.mv-trainings__row dt {
  display: flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  border-radius: 50%;
  background: #EAF2FF;
  color: #1268F0;
  font-size: 15px;
}
.mv-trainings__row--offer dt { background: #E5F7EE; color: #17955A; }
.mv-trainings__row--fees dt { background: #FFF3D6; color: #C27C00; }
.mv-trainings__row dd { min-width: 0; margin: 0; color: #0B1F4D; font-size: 14px; font-weight: 600; line-height: 1.45; white-space: pre-line; overflow-wrap: anywhere; }

.mv-trainings__cta { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 20px; }
.mv-trainings__register,
.mv-trainings__all {
  display: inline-flex;
  flex: 1 1 auto;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 16px;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 700;
  white-space: nowrap;
  text-decoration: none;
  transition: transform 0.2s, background-color 0.2s, box-shadow 0.2s;
}
.mv-trainings__register { border: 1.5px solid #FFD43B; background: #FFD43B; color: #0B2A6F; box-shadow: 0 8px 18px rgba(255, 196, 0, 0.3); }
.mv-trainings__register:hover { transform: translateY(-1px); background: #FFC107; color: #0B2A6F; }
.mv-trainings__all { border: 1.5px solid #0B47C4; background: var(--mvlco-white); color: #0B47C4; }
.mv-trainings__all:hover { background: #EEF4FF; color: #0B47C4; }

.mv-trainings__dots { display: flex; justify-content: center; gap: 8px; margin-top: 16px; }
.mv-trainings__dot {
  width: 9px; height: 9px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #C3D0E6;
  cursor: pointer;
  transition: width 0.2s, background-color 0.2s;
}
.mv-trainings__dot[aria-current="true"] { width: 24px; background: #FFC107; }
.mv-trainings__dot:focus-visible, .mv-trainings__nav:focus-visible,
.mv-trainings__register:focus-visible, .mv-trainings__all:focus-visible, .mv-trainings__name a:focus-visible { outline: 3px solid #FFC107; outline-offset: 2px; }
.mv-trainings__empty { display: flex; flex: 1; flex-direction: column; align-items: center; justify-content: center; gap: 10px; padding: 20px 0; color: #4A5874; text-align: center; }
.mv-trainings__empty i { color: #1268F0; font-size: 32px; }
.mv-trainings__empty p { margin: 0; font-size: 14px; }

/* Featured banner: navy → electric-blue panel, HTML words beside the artwork's photograph. */
.mv-banners {
  position: relative;
  display: flex;
  flex-direction: column;
  min-width: 0;
  min-height: 470px;
  overflow: hidden;
  border-radius: 22px;
  background:
    radial-gradient(ellipse 55% 75% at 78% 0%, rgba(30, 134, 255, 0.45), transparent 62%),
    linear-gradient(135deg, #031338 0%, #072A6B 45%, #0B47C4 80%, #1677FF 100%);
  box-shadow: 0 22px 46px rgba(4, 22, 64, 0.28);
  color: var(--mvlco-white);
}
.mv-banners__track { display: grid; flex: 1; }
.mv-banners__slide {
  display: grid;
  grid-area: 1 / 1;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 1fr);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.7s ease, visibility 0.7s ease;
}
.mv-banners__slide.is-active { opacity: 1; visibility: visible; }

.mv-banners__content { display: flex; flex-direction: column; justify-content: center; min-width: 0; padding: 34px 18px 84px 40px; }
.mv-banners__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 0;
  color: #FFD43B;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}
.mv-banners__eyebrow::before { content: ""; width: 30px; height: 3px; border-radius: 3px; background: #FFD43B; }
.mv-banners__title {
  margin: 14px 0 22px;
  color: var(--mvlco-white);
  font-size: clamp(26px, 2.5vw, 38px);
  font-weight: 800;
  line-height: 1.16;
  overflow-wrap: anywhere;
}
.mv-banners__accent { color: #5CE1FF; }

.mv-banners__benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; margin: 0 0 26px; padding: 0; list-style: none; }
.mv-banners__benefits li { display: flex; align-items: center; gap: 10px; min-width: 0; color: rgba(255, 255, 255, 0.92); font-size: 13px; font-weight: 600; line-height: 1.35; }
.mv-banners__benefit-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border: 1px solid rgba(92, 225, 255, 0.35);
  border-radius: 11px;
  background: rgba(92, 225, 255, 0.12);
  color: #5CE1FF;
  font-size: 14px;
}

.mv-banners__cta {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  padding: 12px 22px;
  border-radius: 12px;
  background: #FFD43B;
  color: #0B2A6F;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.25);
  transition: transform 0.2s, background-color 0.2s;
}
.mv-banners__cta:hover { transform: translateY(-1px); background: #FFC107; color: #0B2A6F; }

.mv-banners__media { position: relative; min-height: 300px; margin: 18px 18px 18px 0; overflow: hidden; border-radius: 18px; }
.mv-banners__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: right center;     /* the photograph side of the artwork */
  transform: scale(1.05);
  transition: transform 6s ease;
}
.mv-banners__slide.is-active .mv-banners__media img { transform: scale(1); }
.mv-banners__media::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(3, 19, 56, 0.78) 100%); }

.mv-banners__panel {
  position: absolute;
  right: 14px; bottom: 14px; left: 14px;
  z-index: 1;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
}
.mv-banners__heading { margin: 0; color: #FFD43B; font-size: 11px; font-weight: 800; letter-spacing: 0.16em; text-transform: uppercase; }
.mv-banners__panel ul { display: grid; gap: 4px; margin: 6px 0 0; padding: 0; list-style: none; }
.mv-banners__panel li { display: flex; align-items: center; gap: 8px; color: var(--mvlco-white); font-size: 14px; font-weight: 600; }
.mv-banners__panel li i { color: #5CE1FF; }

.mv-banners__controls { position: absolute; bottom: 24px; left: 40px; z-index: 3; display: flex; align-items: center; gap: 14px; }
.mv-banners__arrow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.08);
  color: var(--mvlco-white);
  font-size: 13px;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s;
}
.mv-banners__arrow:hover { background: #FFD43B; color: #0B2A6F; }
.mv-banners__dots { display: flex; gap: 8px; }
.mv-banners__dot {
  width: 8px; height: 8px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.45);
  cursor: pointer;
  transition: width 0.3s ease, background-color 0.3s ease;
}
.mv-banners__dot.is-active { width: 24px; background: #FFD43B; }
.mv-banners__arrow:focus-visible, .mv-banners__dot:focus-visible, .mv-banners__cta:focus-visible { outline: 3px solid #5CE1FF; outline-offset: 2px; }

@media (prefers-reduced-motion: reduce) {
  .mv-banners__slide, .mv-banners__media img { transition: none; }
  .mv-banners__media img { transform: none; }
}

/* Tablet: the two panels stack, each full width. */
@media (max-width: 1023px) {
  .mv-home-intro { grid-template-columns: minmax(0, 1fr); padding: 30px 20px; }
  .mv-trainings, .mv-banners { min-height: 0; }
}

/* Phones: the banner's photograph sits on top of its words. */
@media (max-width: 767px) {
  .mv-home-intro { gap: 20px; padding: 20px 16px; }
  .mv-trainings, .mv-banners { border-radius: 16px; }
  .mv-trainings__header h2 { font-size: 17px; }
  .mv-trainings__body { padding: 18px 16px 16px; }
  .mv-trainings__name { font-size: 19px; }
  .mv-trainings__cta { flex-direction: column; }
  .mv-trainings__register, .mv-trainings__all { padding: 14px; font-size: 15px; }

  .mv-banners__slide { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto 1fr; }
  /* square, so the cover crop stays on the artwork's photograph and never shows its baked-in words */
  .mv-banners__media { order: -1; min-height: 0; aspect-ratio: 1 / 1; margin: 14px 14px 0; border-radius: 14px; }
  .mv-banners__content { justify-content: flex-start; padding: 22px 20px 78px; }
  .mv-banners__title { margin: 12px 0 18px; font-size: 25px; }
  .mv-banners__benefits { gap: 10px 12px; margin-bottom: 22px; }
  .mv-banners__benefits li { font-size: 12.5px; }
  .mv-banners__benefit-icon { width: 32px; height: 32px; font-size: 13px; }
  .mv-banners__controls { bottom: 20px; left: 20px; }
}

@media (max-width: 380px) {
  .mv-banners__benefits { grid-template-columns: minmax(0, 1fr); }
}


/* ---------- Numbers + guide/quiz band: one deep-navy background ---------- */
.mv-home-band {
  position: relative;
  overflow: hidden;
  padding-top: 64px;
  background: var(--mvlco-navy-section);   /* the moving wave on top is .mv-wave (Home/WaveEdge.razor) */
}

/* ---------- Moving layered waves along a section's top edge (Home/WaveEdge.razor) ---------- */
.mv-wave { position: absolute; top: 0; right: 0; left: 0; z-index: 0; height: 112px; overflow: hidden; pointer-events: none; }
.mv-wave__layer {
  position: absolute;
  top: 0; left: 0;
  width: 200%; height: 100%;
  animation: mv-wave-drift 22s linear infinite;
  will-change: transform;
}
/* back layer slow, front layer quicker, the middle one the other way: water rather than a conveyor belt */
.mv-wave__layer:nth-child(1) { animation-duration: 26s; animation-delay: -9s; }
.mv-wave__layer:nth-child(2) { animation-duration: 18s; animation-delay: -4s; animation-direction: reverse; }
.mv-wave__layer:nth-child(3) { animation-duration: 14s; }
@keyframes mv-wave-drift {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}
@media (prefers-reduced-motion: reduce) {
  .mv-wave__layer { animation: none; }
}
.mv-home-band::before {
  content: "";
  position: absolute;
  top: 96px; left: 0;
  width: 220px; height: 220px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.12) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
  -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%);
  mask-image: linear-gradient(135deg, #000, transparent 70%);
  pointer-events: none;
}

/* ---------- Counters ---------- */
.mv-counters { position: relative; padding: 56px var(--mvlco-gutter) 0; color: var(--mvlco-white); }

.mv-counters__grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
  max-width: var(--mvlco-content-max);
  margin: 0 auto;
}

.mv-counters__box {
  position: relative;
  display: flex;
  align-items: center;
  gap: 22px;
  min-width: 0;
  padding: 30px 28px;
  overflow: hidden;
  border: 1px solid rgba(64, 150, 255, 0.55);
  border-radius: 18px;
  background:
    radial-gradient(ellipse 70% 90% at 100% 100%, rgba(30, 134, 255, 0.35), transparent 70%),
    linear-gradient(135deg, rgba(10, 58, 158, 0.85) 0%, rgba(6, 35, 102, 0.9) 100%);
  box-shadow: 0 14px 34px rgba(0, 10, 40, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}
.mv-counters__box:hover { transform: translateY(-4px); border-color: rgba(92, 178, 255, 0.9); box-shadow: 0 18px 40px rgba(0, 10, 40, 0.45), 0 0 26px rgba(22, 119, 255, 0.35); }

.mv-counters__icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 78px; height: 78px;
  border-radius: 50%;
  background: linear-gradient(145deg, #2F86FF 0%, #0B47C4 100%);
  box-shadow: 0 0 0 6px rgba(47, 134, 255, 0.15), 0 10px 22px rgba(0, 20, 70, 0.45);
  color: var(--mvlco-white);
  font-size: 30px;
}
.mv-counters__text { position: relative; z-index: 1; min-width: 0; }
.mv-counters__value { margin: 0; color: #6FD8FF; font-family: var(--mvlco-font-body); font-size: clamp(26px, 2.2vw, 32px); font-weight: 600; line-height: 1.15; letter-spacing: 0.01em; }
.mv-counters__label { margin: 6px 0 0; color: var(--mvlco-white); font-size: 17px; font-weight: 500; }
.mv-counters__label::after { content: ""; display: block; width: 46px; height: 4px; margin-top: 12px; border-radius: 4px; background: #FFC107; }
.mv-counters__decor {
  position: absolute;
  right: 22px; bottom: 16px;
  color: rgba(92, 178, 255, 0.28);
  font-size: 64px;
  line-height: 1;
  pointer-events: none;
}

/* ---------- Guide video + quiz ---------- */
.mv-guide {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 28px;
  max-width: calc(var(--mvlco-content-max) + 2 * var(--mvlco-gutter));
  margin: 0 auto;
  padding: 40px var(--mvlco-gutter) 64px;
}

.mv-guide__card {
  position: relative;
  min-width: 0;
  padding: 30px 32px;
  border-radius: 20px;
  background: var(--mvlco-white);
  box-shadow: 0 18px 42px rgba(0, 12, 48, 0.35), 0 0 0 1px rgba(64, 150, 255, 0.25);
}
.mv-guide__title {
  position: relative;
  margin: 0 0 10px;
  padding-left: 18px;
  color: #0B1F4D;
  font-family: var(--mvlco-font-body);
  font-size: clamp(22px, 2vw, 28px);
  font-weight: 800;
  line-height: 1.25;
}
.mv-guide__title::before { content: ""; position: absolute; top: 0.2em; bottom: 0.2em; left: 0; width: 5px; border-radius: 4px; background: #FFC107; }
.mv-guide__accent { color: #1268F0; }
.mv-guide__lead { margin: 0 0 18px; padding-left: 18px; color: #4A5874; font-size: 15px; line-height: 1.6; }

.mv-video-frame { position: relative; overflow: hidden; border-radius: 14px; aspect-ratio: 16 / 9; background: #000; box-shadow: 0 14px 30px rgba(11, 42, 111, 0.28); }
.mv-video-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mv-guide__watch {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 14px;
  color: #0B2A6F;
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}
.mv-guide__watch i { color: #FF0000; font-size: 20px; }
.mv-guide__watch:hover { color: #1268F0; text-decoration: underline; text-underline-offset: 3px; }

.mv-guide__quiz {
  display: flex;
  overflow: hidden;
  background:
    radial-gradient(ellipse 60% 70% at 100% 100%, rgba(120, 175, 255, 0.45), transparent 70%),
    linear-gradient(140deg, #F4F8FF 0%, #E3EEFF 55%, #CFE2FF 100%);
}
.mv-guide__quiz-body { position: relative; z-index: 1; display: flex; flex: 1; flex-direction: column; min-width: 0; }
.mv-guide__quiz .mv-guide__points { max-width: 64%; }
.mv-guide__quiz .mv-guide__title::before { background: #1268F0; }

.mv-guide__points { display: grid; gap: 12px; margin: 4px 0 24px; padding: 0; list-style: none; }
.mv-guide__points li {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 6px 16px rgba(18, 104, 240, 0.08);
  color: #4A5874;
  font-size: 14px;
  line-height: 1.45;
}
.mv-guide__points strong { display: block; color: #0B1F4D; font-size: 16px; font-weight: 700; }
.mv-guide__point-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  border-radius: 50%;
  background: #E3EEFF;
  color: #1268F0;
  font-size: 18px;
}
.mv-guide__points li:nth-child(2) .mv-guide__point-icon { background: #EFE7FF; color: #7C3AED; }
.mv-guide__points li:nth-child(3) .mv-guide__point-icon { background: #E2F7EC; color: #16A34A; }

.mv-guide__quiz-button {
  display: inline-flex;
  align-items: center;
  align-self: flex-start;
  gap: 10px;
  margin-top: auto;
  padding: 15px 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0B47C4 0%, #1677FF 100%);
  box-shadow: 0 10px 22px rgba(11, 71, 196, 0.35);
  color: var(--mvlco-white);
  font-size: 17px;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mv-guide__quiz-button:hover { color: var(--mvlco-white); transform: translateY(-3px); box-shadow: 0 16px 30px rgba(11, 71, 196, 0.45); }
.mv-guide__quiz-button:focus-visible, .mv-guide__watch:focus-visible { outline: 3px solid #FFC107; outline-offset: 3px; }

.mv-guide__art { position: absolute; right: 12px; top: 58%; width: 32%; transform: translateY(-50%); max-width: 230px; height: auto; pointer-events: none; }

@media (prefers-reduced-motion: reduce) {
  .mv-counters__box, .mv-guide__quiz-button { transition: none; }
}

@media (max-width: 1199px) {
  .mv-counters__grid { gap: 20px; }
  .mv-counters__box { gap: 16px; padding: 24px 20px; }
  .mv-counters__icon { width: 62px; height: 62px; font-size: 24px; }
  .mv-counters__decor { font-size: 48px; }
  .mv-guide__card { padding: 26px 24px; }
}

/* Tablet: figures stack inside their cards; the video and quiz cards stack. */
@media (max-width: 1023px) {
  .mv-counters { padding-top: 44px; }
  .mv-counters__box { flex-direction: column; align-items: flex-start; }
  .mv-counters__decor { top: 22px; bottom: auto; }
  .mv-guide { grid-template-columns: minmax(0, 1fr); padding-top: 32px; }
  .mv-guide__quiz .mv-guide__points { max-width: 66%; }
}

/* Phones: one column throughout; the illustration steps aside for the text. */
@media (max-width: 767px) {
  .mv-home-band { padding-top: 40px; }
  .mv-wave { height: 64px; }
  .mv-counters { padding: 36px 16px 0; }
  .mv-counters__grid { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .mv-counters__box { flex-direction: row; align-items: center; padding: 20px 18px; }
  .mv-counters__icon { width: 56px; height: 56px; font-size: 22px; }
  .mv-counters__value { font-size: 26px; }
  .mv-counters__label { font-size: 15px; }
  .mv-counters__decor { top: auto; bottom: 14px; font-size: 42px; }

  .mv-guide { gap: 20px; padding: 24px 16px 44px; }
  .mv-guide__card { padding: 22px 18px; border-radius: 16px; }
  .mv-guide__title { font-size: 22px; }
  .mv-guide__lead { font-size: 14px; }
  .mv-guide__quiz .mv-guide__points { max-width: none; }
  .mv-guide__art { display: none; }
  .mv-guide__points li { gap: 12px; padding: 12px; }
  .mv-guide__point-icon { width: 40px; height: 40px; font-size: 16px; }
  .mv-guide__points strong { font-size: 15px; }
  .mv-guide__quiz-button { align-self: stretch; justify-content: center; padding: 16px 20px; }
}

/* ---------- Video testimonials (shorts rail + modal) ---------- */
.mv-shorts {
  --mv-shorts-card: 210px;
  position: relative;
  overflow: hidden;
  padding: 64px var(--mvlco-gutter);
  background: var(--mvlco-navy-section);
}
.mv-shorts__inner { max-width: var(--mvlco-content-max); margin: 0 auto; }
.mv-shorts__head { margin-bottom: 40px; text-align: center; }
.mv-shorts__eyebrow { display: block; margin-bottom: 10px; color: var(--mvlco-gold); font-size: 12px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; }
.mv-shorts__head h2 { margin: 0; color: var(--mvlco-white); font-family: var(--mvlco-font-body); font-size: clamp(22px, 2.4vw, 34px); }

.mv-shorts__rail-wrap { position: relative; }
.mv-shorts__rail {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 8px 4px 20px;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}
.mv-shorts__rail::-webkit-scrollbar { display: none; }

.mv-shorts__card {
  position: relative;
  display: block;
  width: var(--mv-shorts-card);
  aspect-ratio: 9 / 16;
  overflow: hidden;
  padding: 0;
  border: 0;
  border-radius: 20px;
  background: #001A38;
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.38);
  scroll-snap-align: center;
  transition: transform var(--mvlco-transition);
}
.mv-shorts__card:hover { transform: translateY(-8px); }
.mv-shorts__card img { width: 100%; height: 100%; object-fit: cover; }

.mv-shorts__play {
  position: absolute;
  top: 46%; left: 50%;
  width: 58px; height: 58px;
  border-radius: 50%;
  background: rgba(255, 204, 0, 0.95);
  transform: translate(-50%, -50%);
}
.mv-shorts__play::after {
  content: "";
  position: absolute;
  top: 50%; left: 54%;
  border-style: solid;
  border-width: 9px 0 9px 15px;
  border-color: transparent transparent transparent #00305F;
  transform: translate(-50%, -50%);
}

.mv-shorts__meta {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding: 16px;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.88), transparent);
  text-align: left;
}
.mv-shorts__title { color: var(--mvlco-white); font-size: 14px; font-weight: 700; line-height: 1.35; }
.mv-shorts__author { color: var(--mvlco-gold); font-size: 12px; font-weight: 600; }

.mv-shorts__nav {
  position: absolute;
  top: 50%;
  z-index: 3;
  width: 44px; height: 44px;
  border: 0;
  border-radius: 50%;
  background: var(--mvlco-gold);
  color: #00305F;
  font-weight: 800;
  transform: translateY(-50%);
}
.mv-shorts__nav--prev { left: -56px; }
.mv-shorts__nav--next { right: -56px; }
.mv-shorts__nav:disabled { opacity: 0; pointer-events: none; }

.mv-shorts__modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 24px;
  background: rgba(0, 8, 20, 0.94);
}
.mv-shorts__modal[hidden] { display: none; }
.mv-shorts__player { position: relative; height: min(76vh, 700px); aspect-ratio: 9 / 16; max-width: 90vw; overflow: hidden; border-radius: 20px; background: #000; }
.mv-shorts__player iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.mv-shorts__caption { margin: 0; color: var(--mvlco-white); text-align: center; }
.mv-shorts__close,
.mv-shorts__step {
  position: absolute;
  width: 46px; height: 46px;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  color: var(--mvlco-white);
  font-size: 20px;
}
.mv-shorts__close { top: 18px; right: 20px; font-size: 28px; }
.mv-shorts__step--prev { left: 20px; top: 50%; }
.mv-shorts__step--next { right: 20px; top: 50%; }

/* ---------- Written testimonials ---------- */
.mv-testimonials {
  position: relative;
  overflow: hidden;
  padding: 28px 0 14px;
  background: var(--mvlco-navy-section);
  color: var(--mvlco-white);
}
.mv-testimonials::before,
.mv-testimonials::after {
  content: "";
  position: absolute;
  width: 260px; height: 220px;
  background-image: radial-gradient(rgba(255, 255, 255, 0.14) 1.2px, transparent 1.4px);
  background-size: 14px 14px;
  pointer-events: none;
}
.mv-testimonials::before { top: 0; left: 0; -webkit-mask-image: linear-gradient(135deg, #000, transparent 70%); mask-image: linear-gradient(135deg, #000, transparent 70%); }
.mv-testimonials::after { right: 0; bottom: 0; -webkit-mask-image: linear-gradient(315deg, #000, transparent 70%); mask-image: linear-gradient(315deg, #000, transparent 70%); }

.mv-testimonials__quote-deco { position: absolute; z-index: 0; color: rgba(30, 134, 255, 0.35); font-size: 72px; line-height: 1; pointer-events: none; }
.mv-testimonials__quote-deco--left { top: 34px; left: 8%; }
.mv-testimonials__quote-deco--right { top: 18px; right: 8%; }

.mv-testimonials__head { position: relative; z-index: 1; max-width: 860px; margin: 0 auto 14px; padding: 0 16px; text-align: center; }
.mv-testimonials__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 8px;
  color: var(--mvlco-white);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.3em;
  text-transform: uppercase;
}
.mv-testimonials__eyebrow::before { content: ""; width: 56px; height: 4px; border-radius: 4px; background: #FFC107; }
.mv-testimonials__heading { margin: 0; color: var(--mvlco-white); font-family: var(--mvlco-font-body); font-size: clamp(26px, 2.5vw, 34px); font-weight: 800; line-height: 1.2; }
.mv-testimonials__accent { color: #29C5FF; }
.mv-testimonials__subtitle { max-width: 840px; margin: 6px auto 0; color: rgba(255, 255, 255, 0.88); font-size: 14.5px; line-height: 1.55; }

.mv-testimonials__stage { position: relative; z-index: 1; max-width: calc(var(--mvlco-content-max) + 160px); margin: 0 auto; padding: 0 66px; }
/* the extra room (offset by negative margins) keeps the card shadows inside the clipped area */
.mv-testimonials__viewport { overflow: hidden; margin: -10px -12px -26px; padding: 10px 12px 26px; }
.mv-testimonials__track { display: flex; align-items: flex-start; margin: 0; padding: 0; list-style: none; transition: transform 0.6s cubic-bezier(0.22, 0.61, 0.36, 1), height 0.35s ease; }
.mv-testimonials__card { display: flex; flex: 0 0 33.333%; min-width: 0; padding: 0 12px; }
.mv-testimonials__inner {
  display: flex;
  flex: 1;
  flex-direction: column;
  min-width: 0;
  margin: 0;
  position: relative;
  padding: 18px 20px 14px;
  border: 2px solid transparent;
  border-radius: 18px;
  background: linear-gradient(180deg, #FFFFFF 0%, #F2F7FF 100%);
  box-shadow: 0 16px 26px -8px rgba(0, 10, 40, 0.45);
  text-align: left;
  transition: border-color 0.4s ease, box-shadow 0.4s ease, background 0.4s ease;
}
.mv-testimonials__card.is-featured .mv-testimonials__inner {
  border-color: #FFC93C;
  background: linear-gradient(180deg, #FFFDF6 0%, #FFF5DA 100%);
  box-shadow: 0 0 0 4px rgba(255, 201, 60, 0.2), 0 18px 28px -8px rgba(0, 10, 40, 0.55);
}
.mv-testimonials__mark {
  float: right;
  margin: -4px -6px 6px 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px; height: 36px;
  border-radius: 50%;
  background: #E3EEFF;
  color: #1268F0;
  font-size: 14px;
}
.mv-testimonials__card.is-featured .mv-testimonials__mark { background: #FFEFC2; color: #E0A100; }
.mv-testimonials__inner blockquote { margin: 0; }
.mv-testimonials__inner p { margin: 0 0 12px; color: #3A4660; font-size: 14px; line-height: 1.6; overflow-wrap: anywhere; }

.mv-testimonials__author { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 10px; border-top: 1px solid #E1E8F4; }
.mv-testimonials__avatar {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 42px; height: 42px;
  border: 3px solid var(--mvlco-white);
  border-radius: 50%;
  background: linear-gradient(145deg, #EAF2FF, #CFE0FF);
  box-shadow: 0 6px 14px rgba(11, 42, 111, 0.18);
  color: #0B47C4;
  font-size: 16px;
}
.mv-testimonials__who { display: flex; flex-direction: column; min-width: 0; }
.mv-testimonials__name { color: #0B2A6F; font-size: 15px; font-weight: 700; line-height: 1.35; overflow-wrap: anywhere; }
.mv-testimonials__stars { display: flex; gap: 3px; margin-top: 3px; color: #FFB800; font-size: 13px; }

.mv-testimonials__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  padding: 0;
  border: 1.5px solid rgba(255, 255, 255, 0.55);
  border-radius: 50%;
  background: rgba(4, 26, 74, 0.6);
  box-shadow: 0 0 18px rgba(41, 197, 255, 0.25);
  color: var(--mvlco-white);
  font-size: 17px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: background-color 0.2s, color 0.2s;
}
.mv-testimonials__arrow:hover { background: #FFC107; color: #0B2A6F; }
.mv-testimonials__arrow--prev { left: 12px; }
.mv-testimonials__arrow--next { right: 12px; }

.mv-testimonials__dots { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; min-height: 20px; margin-top: 6px; padding: 0 16px; }
.mv-testimonials__dot { width: 11px; height: 11px; padding: 0; border: 0; border-radius: 50%; background: rgba(255, 255, 255, 0.38); cursor: pointer; transition: transform 0.3s, background-color 0.3s; }
.mv-testimonials__dot.is-active { background: #FFC107; transform: scale(1.35); }
.mv-testimonials__arrow:focus-visible, .mv-testimonials__dot:focus-visible { outline: 3px solid #FFC107; outline-offset: 3px; }

@media (prefers-reduced-motion: reduce) {
  .mv-testimonials__track, .mv-testimonials__inner { transition: none; }
}

/* Tablet: two cards per view. */
@media (max-width: 1023px) {
  .mv-testimonials__card { flex-basis: 50%; }
  .mv-testimonials__stage { padding: 0 64px; }
  .mv-testimonials__quote-deco { font-size: 80px; }
}

/* Phones: one card per view; the arrows sit either side of the dots. */
@media (max-width: 767px) {
  .mv-testimonials { padding: 34px 0 20px; }
  .mv-testimonials__head { margin-bottom: 16px; }
  .mv-testimonials__eyebrow { gap: 10px; font-size: 12px; }
  .mv-testimonials__eyebrow::before { width: 36px; }
  .mv-testimonials__heading { font-size: 25px; }
  .mv-testimonials__subtitle { font-size: 13.5px; }
  .mv-testimonials__quote-deco { font-size: 44px; }
  .mv-testimonials__quote-deco--left { top: 28px; left: 4%; }
  .mv-testimonials__quote-deco--right { top: 18px; right: 4%; }
  .mv-testimonials__stage { position: static; padding: 0 6px; }
  .mv-testimonials__viewport { margin-right: 0; margin-left: 0; padding-right: 0; padding-left: 0; }
  .mv-testimonials__card { flex-basis: 100%; padding: 0 10px; }
  .mv-testimonials__inner { padding: 18px 18px 14px; }
  .mv-testimonials__inner p { font-size: 14px; line-height: 1.6; }
  .mv-testimonials__arrow { top: auto; bottom: 20px; width: 40px; height: 40px; transform: none; }
  .mv-testimonials__arrow--prev { left: 16px; }
  .mv-testimonials__arrow--next { right: 16px; }
  .mv-testimonials__dots { flex-wrap: nowrap; gap: 5px; min-height: 40px; margin-top: 4px; padding: 0 64px; }
  .mv-testimonials__dot { width: 6px; height: 6px; }
}

/* ---------- Our Clients: logo cards in two rows, a page at a time ---------- */
.mv-clients {
  position: relative;
  overflow: hidden;
  padding: 128px 0 64px;
  background:
    radial-gradient(ellipse 55% 45% at 50% 32%, rgba(255, 255, 255, 0.95), transparent 70%),
    linear-gradient(180deg, #EAF2FF 0%, #F6F9FF 50%, #E4EEFF 100%);
  color: #0B1F4D;
}
/* dotted "global network" texture, faded at the edges */
.mv-clients::before {
  content: "";
  position: absolute;
  top: 70px; left: 6%;
  width: 46%; height: 380px;
  background-image: radial-gradient(rgba(18, 104, 240, 0.16) 1.6px, transparent 1.8px);
  background-size: 13px 13px;
  -webkit-mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 50% 50% at 50% 50%, #000 30%, transparent 75%);
  pointer-events: none;
}
.mv-clients::after {
  content: "";
  position: absolute;
  right: -120px; bottom: -160px;
  width: 520px; height: 520px;
  border: 1px solid rgba(18, 104, 240, 0.12);
  border-radius: 50%;
  box-shadow: 0 0 0 60px rgba(18, 104, 240, 0.03), 0 0 0 120px rgba(18, 104, 240, 0.025);
  pointer-events: none;
}

.mv-clients__head { position: relative; z-index: 1; max-width: 900px; margin: 0 auto 40px; padding: 0 16px; text-align: center; }
.mv-clients__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 12px;
  color: #0B2A6F;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}
.mv-clients__eyebrow::before { content: ""; width: 56px; height: 4px; border-radius: 4px; background: #FFC107; }
.mv-clients__heading { margin: 0; color: #0B2A6F; font-family: var(--mvlco-font-body); font-size: clamp(30px, 3.6vw, 48px); font-weight: 800; line-height: 1.15; }
.mv-clients__accent { color: #1268F0; }
.mv-clients__subtitle { max-width: 780px; margin: 14px auto 0; color: #4A5874; font-size: 16px; line-height: 1.65; }

.mv-clients__stage { position: relative; z-index: 1; max-width: calc(var(--mvlco-content-max) + 160px); margin: 0 auto; padding: 0 76px; }
.mv-clients__viewport { overflow: hidden; margin: -10px -8px -22px; padding: 10px 8px 22px; }
.mv-clients__grid {
  --mv-clients-cols: 8;
  --mv-clients-gap: 18px;
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - (var(--mv-clients-cols) - 1) * var(--mv-clients-gap)) / var(--mv-clients-cols));
  grid-template-rows: repeat(2, 92px);
  gap: var(--mv-clients-gap);
  margin: 0;
  padding: 0;
  list-style: none;
  transition: transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1);
}
.mv-clients__logo {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid #E1EAF7;
  border-radius: 14px;
  background: var(--mvlco-white);
  box-shadow: 0 8px 20px rgba(11, 42, 111, 0.08);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.mv-clients__logo:hover { transform: translateY(-3px); box-shadow: 0 14px 26px rgba(11, 42, 111, 0.14); }
.mv-clients__logo img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; }

.mv-clients__arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 50px; height: 50px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: linear-gradient(145deg, #1E86FF 0%, #0B47C4 100%);
  box-shadow: 0 10px 22px rgba(11, 71, 196, 0.35);
  color: var(--mvlco-white);
  font-size: 17px;
  cursor: pointer;
  transform: translateY(-50%);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.mv-clients__arrow:hover { box-shadow: 0 14px 28px rgba(11, 71, 196, 0.45); transform: translateY(-50%) scale(1.06); }
.mv-clients__arrow--prev { left: 12px; }
.mv-clients__arrow--next { right: 12px; }

.mv-clients__dots { position: relative; z-index: 1; display: flex; align-items: center; justify-content: center; gap: 10px; min-height: 24px; margin-top: 26px; padding: 0 16px; }
.mv-clients__dot { width: 10px; height: 10px; padding: 0; border: 0; border-radius: 999px; background: #C3D3EC; cursor: pointer; transition: width 0.3s, background-color 0.3s; }
.mv-clients__dot.is-active { width: 26px; background: #1268F0; }
.mv-clients__arrow:focus-visible, .mv-clients__dot:focus-visible { outline: 3px solid #FFC107; outline-offset: 3px; }

.mv-clients__highlights {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 1240px;
  margin: 44px auto 0;
  padding: 0 16px;
  list-style: none;
}
.mv-clients__highlights li { display: flex; align-items: center; justify-content: center; gap: 18px; min-width: 0; padding: 6px 20px; }
.mv-clients__highlights li + li { border-left: 1px solid #D3DFF2; }
.mv-clients__highlight-icon {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  width: 66px; height: 66px;
  border-radius: 50%;
  background: #E3EEFF;
  box-shadow: 0 0 0 6px rgba(255, 255, 255, 0.85), 0 10px 22px rgba(18, 104, 240, 0.15);
  color: #1268F0;
  font-size: 24px;
}
.mv-clients__highlights small { display: block; color: #4A5874; font-size: 14px; }
.mv-clients__highlights strong { display: block; color: #1268F0; font-size: 19px; font-weight: 700; line-height: 1.3; }
@media (min-width: 1280px) {
  .mv-clients__highlights strong { white-space: nowrap; }
}

@media (prefers-reduced-motion: reduce) {
  .mv-clients__grid, .mv-clients__logo { transition: none; }
}

@media (max-width: 1279px) {
  .mv-clients__grid { --mv-clients-cols: 6; }
}

/* Tablet: five columns, smaller cards. */
@media (max-width: 1023px) {
  .mv-clients { padding-top: 90px; }
  .mv-clients__stage { padding: 0 64px; }
  .mv-clients__grid { --mv-clients-cols: 5; --mv-clients-gap: 14px; grid-template-rows: repeat(2, 80px); }
  .mv-clients__highlights li { flex-direction: column; gap: 12px; text-align: center; }
  .mv-clients__highlights strong { font-size: 17px; }
}

/* Phones: three columns; the trust highlights stack. */
@media (max-width: 767px) {
  .mv-clients { padding: 88px 0 44px; }
  .mv-clients::before { left: 0; width: 100%; height: 300px; }
  .mv-clients__head { margin-bottom: 28px; }
  .mv-clients__eyebrow { gap: 10px; font-size: 11px; letter-spacing: 0.16em; }
  .mv-clients__eyebrow::before { width: 32px; }
  .mv-clients__heading { font-size: 30px; }
  .mv-clients__subtitle { font-size: 14.5px; }
  .mv-clients__stage { padding: 0 44px; }
  .mv-clients__grid { --mv-clients-cols: 3; --mv-clients-gap: 10px; grid-template-rows: repeat(2, 64px); }
  .mv-clients__logo { padding: 8px; border-radius: 12px; }
  .mv-clients__arrow { width: 36px; height: 36px; font-size: 14px; }
  .mv-clients__arrow--prev { left: 4px; }
  .mv-clients__arrow--next { right: 4px; }
  .mv-clients__dots { gap: 6px; }
  .mv-clients__dot { width: 7px; height: 7px; }
  .mv-clients__dot.is-active { width: 18px; }
  .mv-clients__highlights { grid-template-columns: minmax(0, 1fr); gap: 14px; max-width: 360px; margin-top: 32px; }
  .mv-clients__highlights li { flex-direction: row; justify-content: flex-start; gap: 16px; padding: 0; text-align: left; }
  .mv-clients__highlights li + li { border-left: 0; }
  .mv-clients__highlight-icon { width: 54px; height: 54px; font-size: 20px; }
}

/* ---------- Responsive ---------- */
@media (min-width: 768px) and (max-width: 1023px) {
  .mv-shorts { --mv-shorts-card: 190px; }
}

@media (max-width: 1279px) {
  .mv-shorts__nav--prev { left: 6px; }
  .mv-shorts__nav--next { right: 6px; }
}

@media (max-width: 767px) {

  .mv-shorts { --mv-shorts-card: min(58vw, 230px); padding: 44px 0; }
  .mv-shorts__rail { padding: 6px 16px 16px; }
  .mv-shorts__nav { display: none; }
  .mv-shorts__card { scroll-snap-align: start; }


}


@media (hover: none) {
  .mv-counters__box:hover, .mv-shorts__card:hover { transform: none; }
}

