/* Mr.T Beef — Đào tạo tay nghề landing
   Pixel-match LadiPage ref with clean flex/grid (no absolute layout system) */

html:has(.mtb-training),
body:has(.mtb-training) {
  margin: 0;
  padding: 0;
  background: #fff;
  overflow-x: hidden;
}

body:has(.mtb-training) {
  font-size: 16px;
  line-height: 1.6;
}

.mtb-training {
  --mtb-wine: #470610;
  --mtb-wine-deep: #42050f;
  --mtb-wine-soft: #6a5256;
  --mtb-red: #b30d28;
  --mtb-red-badge: #b90e0e;
  --mtb-accent: #fd2121;
  --mtb-tick: #f8a26d;
  --mtb-gold: #ff9d06;
  --mtb-muted: #6a5256;
  --mtb-line: rgba(66, 5, 15, 0.2);
  --mtb-card-border: rgba(31, 20, 22, 0.08);
  --mtb-container: 1200px;
  --mtb-gutter: 24px;
  --mtb-font: Roboto, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mtb-display: Inter, Roboto, system-ui, sans-serif;

  font-family: var(--mtb-font);
  font-size: 16px;
  line-height: 1.6;
  color: #1a1a1a;
  background: #fff;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

.mtb-training *,
.mtb-training *::before,
.mtb-training *::after {
  box-sizing: border-box;
}

/* :where() = specificity 0 — không đè margin/padding của class section
   (trước: .mtb-training p {margin:0} thắng .mtb-training__hero-copy {margin-top:...}) */
.mtb-training :where(h1, h2, h3, p, figure, ul, ol) {
  margin: 0;
  padding: 0;
}

.mtb-training ul,
.mtb-training ol {
  list-style: none;
}

.mtb-training a {
  color: inherit;
  text-decoration: none;
}

.mtb-training img {
  display: block;
  max-width: 100%;
  height: auto;
}

.mtb-training button,
.mtb-training input,
.mtb-training select,
.mtb-training textarea {
  font: inherit;
}

.mtb-training__container {
  width: min(var(--mtb-container), calc(100% - var(--mtb-gutter) * 2));
  margin-inline: auto;
}

.mtb-training__skip {
  position: absolute;
  top: 8px;
  left: 8px;
  z-index: 100;
  padding: 10px 14px;
  border-radius: 4px;
  background: #fff;
  color: var(--mtb-wine);
  font-weight: 700;
  transform: translateY(-160%);
}

.mtb-training__skip:focus {
  transform: translateY(0);
}

/* ——— Nav ——— */
.mtb-training__nav {
  position: sticky;
  top: 0;
  z-index: 50;
  height: 70px;
  background: #fff;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mtb-training__nav.is-scrolled {
  border-bottom-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.04);
}

.mtb-training__nav-inner {
  width: min(var(--mtb-container), calc(100% - 48px));
  height: 70px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 60px;
}

.mtb-training__nav-inner a {
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--mtb-wine);
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  white-space: nowrap;
}

.mtb-training__nav-inner a:hover,
.mtb-training__nav-inner a:focus-visible {
  color: var(--mtb-red);
}

/* ——— Shared ——— */
.mtb-training__label {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 43px;
  padding: 8px 22px;
  border: 2px solid #f1f3f4;
  border-radius: 10px;
  background: var(--mtb-red-badge);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.mtb-training__label--center {
  display: flex;
  width: fit-content;
  margin-inline: auto;
  margin-bottom: 18px;
}

.mtb-training h2 {
  font-family: var(--mtb-display);
  font-weight: 700;
  line-height: 1.2;
  color: var(--mtb-wine);
}

.mtb-training__section-head {
  margin-bottom: 28px;
}

.mtb-training__section-head--center {
  text-align: center;
}

.mtb-training__section-head--center .mtb-training__label {
  margin-bottom: 18px;
}

.mtb-training__section-intro {
  margin-top: 12px;
  font-family: var(--mtb-display);
  font-size: 18px;
  line-height: 1.6;
  color: var(--mtb-muted);
}

.mtb-training__accent {
  color: var(--mtb-wine-deep);
}

.mtb-training__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: rgb(179, 13, 40);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.6;
  /* Ref: raised CTA — soft red lift + depth so button sits slightly proud */
  box-shadow:
    rgba(179, 13, 40, 0.22) 0 4px 4px -2px,
    rgba(0, 0, 0, 0.22) 0 10px 22px -6px,
    rgba(179, 13, 40, 0.35) 0 0 0 1px inset;
  transition: opacity 0.2s linear, box-shadow 0.2s linear;
  transform: translateY(-3px);
  transform-origin: center center;
  will-change: transform;
}

.mtb-training__cta:hover {
  opacity: 0.85;
}

.mtb-training__cta:active {
  transform: translateY(0) scale(0.98);
  transition: transform 0.15s linear;
  animation: none;
}

/* Ref Ladi BUTTON503: animation-name pulse, 3s, infinite + slight float */
.mtb-training__cta--pulse {
  animation: mtb-pulse 3s ease-in-out infinite;
  animation-fill-mode: both;
}

/* Match Ladi @keyframes pulse (scale 1 → 1.1 → 1) + keep float */
@keyframes mtb-pulse {
  0% {
    transform: translateY(-3px) scale(1);
    box-shadow:
      rgba(179, 13, 40, 0.22) 0 4px 4px -2px,
      rgba(0, 0, 0, 0.22) 0 10px 22px -6px,
      rgba(179, 13, 40, 0.35) 0 0 0 1px inset;
  }
  50% {
    transform: translateY(-6px) scale(1.1);
    box-shadow:
      rgba(179, 13, 40, 0.28) 0 8px 10px -2px,
      rgba(0, 0, 0, 0.28) 0 16px 32px -8px,
      rgba(179, 13, 40, 0.4) 0 0 0 1px inset;
  }
  100% {
    opacity: 1;
    transform: translateY(-3px) scale(1);
    box-shadow:
      rgba(179, 13, 40, 0.22) 0 4px 4px -2px,
      rgba(0, 0, 0, 0.22) 0 10px 22px -6px,
      rgba(179, 13, 40, 0.35) 0 0 0 1px inset;
  }
}

/* ——— Hero ———
   Desktop tokens from Playwright measure @1920 vs daotaotaynghe.mrtbeef.vn
   container x=353, section h=608, content left=353
   badge y=112 (top+42) 502×43 | H1 y=193 700×166 46px
   line y=369 | copy y=400 680×151 18px | CTA y=590 260×54 r8
*/
.mtb-training__hero {
  position: relative;
  height: auto;
  min-height: 608px; /* ref desktop SECTION1 */
  color: #fff;
  overflow-x: hidden;
  overflow-y: visible;
  isolation: isolate;
}

.mtb-training__hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -2;
  background-image: var(--mtb-hero-image);
  background-position: center center;
  background-size: cover;
  background-repeat: no-repeat;
  /* Ladi: filter brightness(15%) on section background */
  filter: brightness(0.15);
}

.mtb-training__hero::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  /* Soft left read-side only — keep factory visible on right like ref */
  background: linear-gradient(
    90deg,
    rgba(0, 0, 0, 0.28) 0%,
    rgba(0, 0, 0, 0.12) 42%,
    rgba(0, 0, 0, 0) 72%
  );
  pointer-events: none;
}

.mtb-training__hero-inner {
  position: relative;
  z-index: 1;
  height: auto;
  min-height: 608px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  padding: 42px 0 48px;
  box-sizing: border-box;
}

/* Badge đỏ — chữ đen (ref HEADLINE1), padding trong xíu */
.mtb-training__hero-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: auto;
  max-width: 100%;
  min-width: 0;
  min-height: 43px;
  height: auto;
  margin: 0;
  padding: 10px 22px; /* padding xíu trong box */
  border: 2px solid rgb(241, 243, 244);
  border-radius: 10px;
  background: rgb(185, 14, 14);
  color: #000; /* ref: black on red */
  font-family: var(--mtb-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
}

.mtb-training__hero-body {
  /* Spacing badge → H1 rõ hơn */
  margin-top: 44px;
  max-width: 700px;
}

.mtb-training__hero h1 {
  width: 700px;
  max-width: 100%;
  margin: 0;
  font-family: var(--mtb-display);
  font-size: 46px;
  font-weight: 700;
  line-height: 1.2;
  color: #fff;
}

.mtb-training__hero h1 span {
  color: rgb(253, 33, 33);
}

/* Match the source's subtle headline drop instead of AOS's default 100px distance. */
.mtb-training__hero h1[data-aos="fade-down"]:not(.aos-animate) {
  transform: translate3d(0, -20px, 0);
}

.mtb-training__hero-line {
  width: 60px;
  height: 6px;
  margin: 16px 0 0; /* H1 → line */
  background: rgb(250, 11, 11);
  border-radius: 0;
}

.mtb-training__hero-copy {
  width: 680px;
  max-width: 100%;
  margin-top: 28px; /* line → copy — thêm spacing giữa content */
  font-family: var(--mtb-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.55; /* hơi thoáng hơn giữa các đoạn */
  color: #fff;
}

.mtb-training__hero .mtb-training__cta {
  /* gap copy → CTA; bottom room comes from hero-inner padding-bottom */
  margin-top: 40px;
  margin-bottom: 0;
  margin-left: 0;
  flex: none;
  width: 260px;
  min-width: 260px;
  max-width: 260px;
  height: 54px;
  min-height: 54px;
  max-height: 54px;
  padding: 0;
}

/* ——— Opportunity (Section 2)
   @1920 measure vs ref SECTION2:
   h=316 | label box 175×43 top+33 | H2 594×84 35px top+105
   copy 765×58 18px muted top+220
*/
.mtb-training__opportunity {
  min-height: 316px;
  padding: 33px 0 42px;
  background: #fff;
}

.mtb-training__opportunity-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  /* Ref @1920: label→h2 ~30px, h2→copy ~31px */
  gap: 31px;
}

.mtb-training__opportunity .mtb-training__label {
  box-sizing: border-box;
  width: 175px;
  min-height: 43px;
  height: 43px;
  margin: 0;
  padding: 0 12px;
  font-size: 16px;
  line-height: 1.6;
}

.mtb-training__opportunity h2 {
  max-width: 594px;
  margin: 0;
  padding: 0;
  font-size: 35px;
  line-height: 1.2;
  color: rgb(71, 6, 16);
  text-align: center;
}

/* Spacing dưới title = gap 31px (ô đỏ Image #1) — khớp ref */
.mtb-training__opportunity-copy {
  max-width: 765px;
  margin: 0;
  padding: 0;
  font-family: var(--mtb-display);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.6;
  color: rgb(106, 82, 86);
  text-align: center;
}

/* ——— Benefits ——— */
.mtb-training__benefits {
  min-height: 494px;
  padding: 28px 0 40px;
  background: #fff;
}

.mtb-training__benefits-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 520px);
  justify-content: space-between;
  gap: 20px;
  align-items: center;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.mtb-training__benefits-content {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.mtb-training__benefits-content .mtb-training__label {
  margin-bottom: 24px;
}

.mtb-training__benefits h2 {
  max-width: 540px;
  font-size: 35px;
  margin-bottom: 28px;
}

/* Benefits checklist — Image #2 ref: more inner padding than tight box */
.mtb-training__check-list {
  box-sizing: border-box;
  width: 100%;
  max-width: 500px;
  min-width: 0;
  min-height: 213px;
  /* padding vô xíu — khớp ref (content không sát mép) */
  padding: 22px 24px 24px 20px;
  border: 1px solid rgba(66, 5, 15, 0.18);
  border-radius: 8px;
  background: rgba(66, 5, 15, 0.12);
  display: grid;
  gap: 14px;
  align-content: start;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.mtb-training__check-list li {
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  font-size: 16px;
  line-height: 1.6;
  color: rgb(106, 82, 86);
  min-width: 0;
}

/* Material-style filled check circle, wine — matches Ladi icon */
.mtb-training__check-list li::before {
  content: "";
  width: 20px;
  height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%2342050F'%3E%3Cpath d='M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2zm-2 15-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z'/%3E%3C/svg%3E") center / contain no-repeat;
  flex: none;
}

/* Ref IMAGE1515: soft white feather via blurred SVG mask + light edge */
.mtb-training__benefits-media {
  position: relative;
  width: 100%;
  max-width: 520px;
  border: 1px solid rgba(71, 6, 16, 0.12);
  border-radius: 8px;
  overflow: hidden;
  background: #fff;
  /* Exact Ladi soft-blur mask (white fog edges) */
  -webkit-mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' preserveAspectRatio='none' viewBox='0 0 800 800'%3E%3Cdefs%3E%3Cfilter id='b' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='84'/%3E%3C/filter%3E%3C/defs%3E%3Crect x='80' y='80' width='640' height='640' rx='160' fill='white' filter='url(%23b)'/%3E%3C/svg%3E");
  mask-image: url("data:image/svg+xml;utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' width='100%25' height='100%25' preserveAspectRatio='none' viewBox='0 0 800 800'%3E%3Cdefs%3E%3Cfilter id='b' x='-50%25' y='-50%25' width='200%25' height='200%25'%3E%3CfeGaussianBlur stdDeviation='84'/%3E%3C/filter%3E%3C/defs%3E%3Crect x='80' y='80' width='640' height='640' rx='160' fill='white' filter='url(%23b)'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
  mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
  mask-repeat: no-repeat;
  -webkit-mask-position: center;
  mask-position: center;
}

/* Soft white linear veil on edges (ref look: mờ trắng viền) */
.mtb-training__benefits-media::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.55) 0%, rgba(255, 255, 255, 0) 14%, rgba(255, 255, 255, 0) 86%, rgba(255, 255, 255, 0.55) 100%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.4) 0%, rgba(255, 255, 255, 0) 16%, rgba(255, 255, 255, 0) 84%, rgba(255, 255, 255, 0.45) 100%);
  z-index: 1;
}

.mtb-training__benefits-media img {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 470 / 437;
  object-fit: cover;
  object-position: top;
  position: relative;
  z-index: 0;
}

/* ——— Reasons ——— */
.mtb-training__reasons {
  min-height: 477px;
  padding: 36px 0 56px;
  background: #fff;
}

/* Ref @1920: H2→sub gap 12px (SUBHEADING2002 y128 after H2 bottom 116) */
.mtb-training__reasons .mtb-training__section-head {
  margin-bottom: 0;
}

.mtb-training__reasons .mtb-training__section-head--center .mtb-training__label {
  margin-bottom: 14px;
}

.mtb-training__reasons h2 {
  max-width: 900px;
  margin: 0 auto;
  padding: 0;
  font-size: 40px;
  line-height: 1.2;
  color: rgb(71, 6, 16);
}

.mtb-training__reasons .mtb-training__section-intro {
  margin-top: 12px; /* không dính title — khớp ref 12px */
  margin-bottom: 0;
  font-size: 18px;
  line-height: 1.6;
  color: rgb(106, 82, 86);
}

.mtb-training__reason-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px; /* ref: 384 cards, gap ~24 (408-384) */
  margin-top: 24px; /* ref: sub→cards ~24px (was 36 + head mb 28 = quá dày) */
}

/* Ref cards 384×252; absolute pTop ~156–160 for ALL cards → lock title band */
.mtb-training__card {
  box-sizing: border-box;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-height: 252px;
  height: 252px;
  padding: 24px 24px 20px;
  border: 1px solid var(--mtb-card-border);
  border-radius: 8px;
  background: #fff;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mtb-training__card:hover {
  border-color: rgba(0, 0, 0, 0.06);
  box-shadow: 0 8px 24px rgba(66, 5, 15, 0.06);
}

/* AOS owns opacity/transform while revealing; restore the card's hover transition afterward. */
.mtb-training__card.aos-animate:hover {
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.mtb-training__card-icon {
  flex: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px;
  height: 52px;
  margin: 0 0 8px; /* icon top~24 with pad 24 → title band starts ~84 like ref */
  border-radius: 26px;
  background: rgba(66, 5, 15, 0.15);
  color: var(--mtb-wine-deep);
}

/* Lock 2-line title height so body copy starts on same row across cards */
.mtb-training__card h3 {
  flex: none;
  box-sizing: border-box;
  width: 100%;
  max-width: 336px;
  min-height: 52px; /* 20px × 1.3 × 2 lines — matches tallest title */
  margin: 0;
  font-family: var(--mtb-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: rgb(71, 6, 16);
}

.mtb-training__card p {
  flex: none;
  width: 100%;
  max-width: 336px;
  margin: 20px 0 0; /* ref: pTop~156 after titleTop 84 + titleH 52 */
  font-size: 16px;
  line-height: 1.6;
  color: rgb(106, 82, 86);
}

/* ——— Gallery ——— */
.mtb-training__gallery {
  padding: 40px 0 48px;
  background: #fff;
}

.mtb-training__gallery h2 {
  font-size: 40px;
}

.mtb-training__gallery-widget {
  margin-top: 28px;
}

.mtb-training__gallery-stage {
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: #111;
}

.mtb-training__gallery-viewport {
  position: relative;
  /* View area ~791px on 1200 width like Ladi gallery height minus thumbs */
  aspect-ratio: 1200 / 791;
  max-height: 791px;
  background: #1a1a1a;
}

.mtb-training__gallery-viewport figure {
  position: absolute;
  inset: 0;
  opacity: 0;
  transition: opacity 0.45s ease;
  pointer-events: none;
}

.mtb-training__gallery-viewport figure.is-active {
  opacity: 1;
  pointer-events: auto;
  z-index: 1;
}

.mtb-training__gallery-viewport img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ref: black chevron only, no white circle */
.mtb-training__gallery-arrow {
  position: absolute;
  top: 50%;
  z-index: 2;
  transform: translateY(-50%);
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #000;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  opacity: 1;
  padding: 0;
  box-shadow: none;
}

.mtb-training__gallery-arrow svg {
  width: 28px;
  height: 28px;
  fill: #000;
  filter: drop-shadow(0 0 2px rgba(255, 255, 255, 0.35));
}

.mtb-training__gallery-arrow:hover {
  opacity: 0.75;
}

.mtb-training__gallery-arrow:focus-visible {
  outline: 2px solid #f1c77f;
  outline-offset: 2px;
}

.mtb-training__gallery-arrow--prev {
  left: 8px;
}

.mtb-training__gallery-arrow--next {
  right: 8px;
}

/* 9 thumbs fit container — no horizontal overflow/scroll */
.mtb-training__gallery-thumbs {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 12px;
  width: 100%;
  max-width: 100%;
  overflow: hidden; /* no x-scroll */
  padding: 0;
  box-sizing: border-box;
}

.mtb-training__gallery-thumbs button {
  flex: 1 1 0;
  min-width: 0; /* allow shrink equally */
  width: auto;
  height: 100px;
  aspect-ratio: 128 / 100;
  border: 2px solid transparent;
  border-radius: 2px;
  padding: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  filter: brightness(0.85);
  cursor: pointer;
  transition: filter 0.2s ease, border-color 0.2s ease;
}

.mtb-training__gallery-thumbs button:hover,
.mtb-training__gallery-thumbs button.is-active {
  filter: none;
  border-color: var(--mtb-wine);
}

/* ——— Roadmap ———
   Ref @1920: section h418, H2→steps gap ~94px
   Title full-width ABOVE steps cluster (not beside badges)
*/
.mtb-training__roadmap {
  min-height: 418px;
  padding: 56px 0 64px;
  background: #fff;
}

.mtb-training__roadmap > .mtb-training__container {
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.mtb-training__roadmap .mtb-training__section-head {
  display: block;
  width: 100%;
  flex: none;
  /* Title cách xa cụm 01–04 — ref ~94px */
  margin: 0 0 94px;
  padding: 0;
  position: relative;
  z-index: 1;
}

.mtb-training__roadmap h2 {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  font-size: 40px;
  line-height: 1.2;
  color: rgb(71, 6, 16);
  text-align: center;
}

.mtb-training__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 20px;
  flex: none;
  width: 100%;
  margin: 0;
  padding: 0;
  list-style: none;
}

/* No horizontal line behind badges */
.mtb-training__steps::before {
  content: none !important;
  display: none !important;
}

.mtb-training__steps li {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 10px;
}

.mtb-training__step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 36px;
  border-radius: 8px;
  background: var(--mtb-wine-deep);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  line-height: 1;
}

.mtb-training__steps h3 {
  margin-top: 6px;
  font-family: var(--mtb-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--mtb-wine);
}

.mtb-training__steps p {
  max-width: 285px;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mtb-muted);
}

/* ——— Criteria ———
   Ref: dual panel 1200×553, no floating card shadow, no item borders
   Tick 20×20 radius 8, bg #f8a26d, check centered
*/
.mtb-training__criteria {
  padding: 24px 0 48px;
  background: #fff;
}

.mtb-training__criteria-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  margin-top: 16px;
  border-radius: 8px;
  overflow: hidden;
  /* No elevated white “card” chrome */
  box-shadow: none;
  border: 0;
}

.mtb-training__panel {
  padding: 32px 32px 28px;
  min-height: 553px;
  box-shadow: none;
  border: 0;
}

.mtb-training__panel--light {
  background: #fff;
  color: #000;
}

.mtb-training__panel--dark {
  background: #000;
  color: #f5ebec;
}

.mtb-training__panel-kicker {
  font-family: var(--mtb-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: var(--mtb-accent);
  margin: 0 0 8px;
}

.mtb-training__panel-kicker--light {
  color: #f5ebec;
}

.mtb-training__panel--light h2 {
  font-size: 20px;
  line-height: 1.3;
  color: #000;
  margin: 0 0 10px;
}

.mtb-training__panel--dark h3 {
  font-family: var(--mtb-display);
  font-size: 20px;
  font-weight: 700;
  line-height: 1.3;
  color: #fff;
  margin: 0 0 16px;
}

.mtb-training__panel-note {
  font-size: 12px;
  line-height: 1.6;
  color: #000;
  margin: 0 0 14px;
}

.mtb-training__req-list {
  display: grid;
  gap: 10px; /* tighter than 12; no border lines between items */
  margin: 0;
  padding: 0;
  list-style: none;
}

.mtb-training__req-list li {
  display: grid;
  grid-template-columns: 20px 1fr;
  column-gap: 12px;
  align-items: start;
  margin: 0;
  padding: 0; /* no padding-bottom borders */
  border: 0;
  border-bottom: 0;
  background: transparent;
  box-shadow: none;
}

.mtb-training__req-list--dark li {
  border-bottom: 0;
}

.mtb-training__req-list li:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

/* Orange square 20×20 r8 — check centered via flex + SVG */
.mtb-training__tick {
  box-sizing: border-box;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  margin: 2px 0 0; /* align with first line of strong */
  padding: 0;
  border: 0;
  border-radius: 8px; /* ref BOX tick radius 8 */
  background: rgb(248, 162, 109);
  color: #fff;
  font-size: 0; /* hide raw ✓ glyph if any */
  line-height: 0;
  flex: none;
  overflow: hidden;
}

.mtb-training__tick::before {
  content: "";
  display: block;
  width: 12px;
  height: 12px;
  background: center / contain no-repeat
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23fff'%3E%3Cpath d='M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4z'/%3E%3C/svg%3E");
}

.mtb-training__req-list strong {
  display: block;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.35;
  color: #000;
}

.mtb-training__req-list li > div span {
  display: block;
  margin-top: 2px;
  font-size: 14px;
  line-height: 1.5;
  color: #333;
  font-weight: 400;
}

.mtb-training__req-list--dark strong {
  color: #f5ebec;
}

.mtb-training__req-list--dark li > div span {
  color: #c4abaf;
  font-size: 14px;
}

/* ——— Contact ——— same wine-deep as footer for continuous end */
.mtb-training__contact {
  padding: 0;
  background: rgb(66, 5, 15);
  color: #fff;
}

.mtb-training__contact-shell {
  width: min(var(--mtb-container), 100%);
  margin: 0 auto;
  min-height: 560px;
  padding: 48px 24px 40px;
  background: rgb(66, 5, 15);
  border: 0;
  /* light rule before footer (ref LINE2 family) */
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
}

.mtb-training__contact h2 {
  max-width: 700px;
  margin: 0 auto 28px;
  color: #fff;
  font-size: 28px;
  text-align: center;
}

/* Ref form: single column — every input/select full width one row */
.mtb-training__form {
  width: min(400px, 100%);
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
}

.mtb-training__field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  width: 100%;
}

.mtb-training__field--wide,
.mtb-training__submit,
.mtb-training__form-status {
  width: 100%;
}

/* Placeholder-driven like ref — labels for a11y only */
.mtb-training__field label {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.mtb-training__field input,
.mtb-training__field select,
.mtb-training__field textarea {
  box-sizing: border-box;
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(21, 24, 30, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #1c1c1c;
  padding: 12px 14px;
  font-size: 16px;
  outline: none;
}

.mtb-training__field select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23666' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  padding-right: 36px;
}

.mtb-training__field textarea {
  min-height: 88px;
  resize: vertical;
}

.mtb-training__field input:focus,
.mtb-training__field select:focus,
.mtb-training__field textarea:focus {
  border-color: #e4b870;
  box-shadow: 0 0 0 3px rgba(228, 184, 112, 0.28);
}

.mtb-training__submit {
  width: 100%;
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  background: rgb(179, 13, 40);
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: rgba(179, 13, 40, 0.2) 0 4px 4px -2px;
}

.mtb-training__submit:hover {
  opacity: 0.9;
}

.mtb-training__submit:active {
  transform: translateY(1px);
}

.mtb-training__submit:disabled {
  opacity: 0.55;
  cursor: wait;
}

.mtb-training__form-status {
  min-height: 0;
  margin: 0;
  color: #fff;
  font-weight: 700;
  text-align: center;
  font-size: 14px;
}

.mtb-training__form-status:empty {
  display: none;
}

.mtb-training__form.is-success .mtb-training__field,
.mtb-training__form.is-success .mtb-training__submit {
  display: none;
}

.mtb-training__form.is-success .mtb-training__form-status {
  display: block;
  padding: 20px;
  border: 1px solid rgba(248, 162, 109, 0.7);
  border-radius: 8px;
  background: rgba(248, 162, 109, 0.12);
  color: #fff;
  font-size: 16px;
  line-height: 1.6;
}

.mtb-training__form-frame {
  position: absolute;
  width: 1px;
  height: 1px;
  border: 0;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  overflow: hidden;
}

/* ——— Footer ———
   Ref BOX19 bg #42050f on section; LINE2 1px rgba(255,255,255,0.1) near bottom
   User: nâu đỏ chủ đạo (not gray #2a2a2a) + gạch chân nhẹ
*/
.mtb-training__footer {
  min-height: 194px;
  padding: 40px 0 32px;
  background: rgb(66, 5, 15) !important; /* --mtb-wine-deep — force over gray */
  color: #fff;
}

.mtb-training__footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}

.mtb-training__footer h2 {
  margin: 0;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.4;
}

.mtb-training__footer-contacts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 28px 40px;
}

.mtb-training__footer-contacts a {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: rgb(255, 157, 6); /* ref gold contact */
  font-size: 14px;
  line-height: 1.4;
}

.mtb-training__footer-contacts a:hover {
  text-decoration: underline;
}

.mtb-training__footer-contacts svg {
  flex: none;
  color: #fff;
  fill: #fff;
}

/* Ref LINE2 — light rule under contacts */
.mtb-training__footer-rule {
  width: min(960px, 90%);
  height: 0;
  margin: 8px auto 0;
  border: 0;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

/* ——— FABs ——— */
.mtb-training__fabs {
  position: fixed;
  right: 20px;
  bottom: 40px;
  z-index: 60;
  /* Ref: phone bottom:120, messenger bottom:40 → phone above msg */
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.mtb-training__fab {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: transparent;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease;
}

.mtb-training__fab:hover {
  transform: scale(1.06);
}

.mtb-training__fab img {
  width: 62px;
  height: 62px;
}

/* ——— Focus ——— */
.mtb-training a:focus-visible,
.mtb-training button:focus-visible,
.mtb-training input:focus-visible,
.mtb-training select:focus-visible,
.mtb-training textarea:focus-visible {
  outline: 3px solid #f1c77f;
  outline-offset: 3px;
}

/* ——— Narrow desktop (ref still desktop layout @1024) ——— */
@media (max-width: 1024px) and (min-width: 768px) {
  .mtb-training__nav-inner {
    gap: 28px;
  }

  .mtb-training__container {
    width: min(var(--mtb-container), calc(100% - 32px));
  }

  .mtb-training__hero h1 {
    width: auto;
    max-width: 100%;
    font-size: 40px;
  }

  .mtb-training__hero-copy {
    width: auto;
    max-width: 100%;
  }

  .mtb-training__benefits-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
    gap: 20px;
  }

  .mtb-training__reason-grid {
    gap: 16px;
  }

  .mtb-training__card {
    height: auto;
    min-height: 244px;
  }

  .mtb-training__panel {
    min-height: 0;
  }
}

/* ——— Mobile only (ref Ladi max-width: 767px) ——— */
@media (max-width: 767px) {
  .mtb-training {
    --mtb-gutter: 14px;
    overflow-x: hidden;
  }

  .mtb-training__container {
    width: min(var(--mtb-container), calc(100% - var(--mtb-gutter) * 2));
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
  }

  /* Nav mobile: 1 hàng, spacing gọn */
  .mtb-training__nav {
    display: block;
    height: 44px;
  }

  .mtb-training__nav-inner {
    display: flex;
    flex-wrap: nowrap;
    height: 44px;
    width: 100%;
    max-width: 100%;
    margin: 0;
    gap: 2px;
    justify-content: space-between;
    align-items: center;
    padding: 0 6px;
    box-sizing: border-box;
  }

  .mtb-training__nav-inner a {
    flex: 1 1 0;
    min-width: 0;
    min-height: 44px;
    padding: 0 1px;
    font-size: 12px;
    font-weight: 700;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .mtb-training__hero {
    height: auto;
    min-height: 549px; /* ref SECTION1 mobile */
  }

  .mtb-training__hero-inner {
    height: auto;
    min-height: 549px;
    padding: 31px 0 36px;
  }

  .mtb-training__hero-badge {
    width: auto;
    max-width: 100%;
    height: auto;
    min-height: 43px;
    font-size: 13px;
    padding: 8px 14px;
    white-space: normal;
    line-height: 1.35;
  }

  .mtb-training__hero-body {
    margin-top: 28px;
    max-width: 100%;
  }

  .mtb-training__hero h1 {
    width: auto;
    font-size: 32px;
  }

  .mtb-training__hero-line {
    width: 146px;
    margin-top: 14px;
  }

  .mtb-training__hero-copy {
    width: auto;
    margin-top: 18px;
    font-size: 16px;
  }

  /* Ref BUTTON503 mobile: 260×48 */
  .mtb-training__hero .mtb-training__cta,
  .mtb-training__cta {
    width: 260px;
    min-width: 260px;
    max-width: 100%;
    height: 48px;
    min-height: 48px;
    max-height: 48px;
    padding: 0;
    margin-top: 28px;
  }

  .mtb-training__benefits-grid {
    grid-template-columns: minmax(0, 1fr);
    justify-content: stretch;
    gap: 28px;
    width: 100%;
    min-width: 0;
  }

  .mtb-training__benefits-content,
  .mtb-training__benefits-media {
    width: 100%;
    max-width: 100%;
    min-width: 0;
  }

  .mtb-training__benefits-media {
    margin-inline: auto;
  }

  .mtb-training__benefits-media img {
    width: 100%;
    height: auto;
    max-width: 100%;
    aspect-ratio: 470 / 438;
  }

  .mtb-training__benefits h2 {
    width: 100%;
    max-width: 100%;
  }

  .mtb-training__opportunity {
    min-height: 0;
    padding: 36px 0 40px; /* ~358 total with content */
  }

  .mtb-training__opportunity h2,
  .mtb-training__benefits h2 {
    font-size: 28px;
    text-align: left;
  }

  .mtb-training__opportunity-inner {
    align-items: flex-start;
    text-align: left;
    gap: 20px;
  }

  .mtb-training__opportunity-copy {
    text-align: left;
    font-size: 18px;
  }

  .mtb-training__benefits {
    padding: 28px 0 48px;
  }

  .mtb-training__check-list {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box;
    padding: 16px 14px !important;
  }

  .mtb-training__check-list li {
    grid-template-columns: 20px minmax(0, 1fr) !important;
    min-width: 0 !important;
    gap: 10px;
  }

  .mtb-training__reasons {
    padding: 40px 0 52px;
  }

  .mtb-training__reason-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin-inline: auto;
    gap: 20px;
  }

  .mtb-training__card {
    height: auto;
    min-height: 0;
  }

  .mtb-training__reasons h2,
  .mtb-training__gallery h2,
  .mtb-training__roadmap h2 {
    font-size: 28px;
  }

  .mtb-training__gallery {
    padding: 32px 0 40px;
  }

  .mtb-training__gallery-viewport {
    aspect-ratio: 420 / 280;
    max-height: none;
  }

  /* Ref: thumbs hàng ngang scroll (Ladi gallery-control ~128px items) */
  .mtb-training__gallery-thumbs {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    overflow-x: auto !important;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 4px;
    max-width: 100%;
  }

  .mtb-training__gallery-thumbs button {
    flex: 0 0 96px !important;
    min-width: 96px !important;
    width: 96px !important;
    height: 64px;
    aspect-ratio: auto;
  }

  .mtb-training__gallery-arrow {
    opacity: 1;
    background: transparent;
    color: #000;
  }

  .mtb-training__roadmap {
    padding: 40px 0 52px;
  }

  .mtb-training__roadmap .mtb-training__section-head {
    margin-bottom: 40px;
  }

  .mtb-training__steps {
    grid-template-columns: 1fr;
    gap: 28px;
    margin-top: 0;
  }

  .mtb-training__steps::before {
    content: none !important;
    display: none !important;
  }

  /* Ref ẩn criteria trên mobile */
  .mtb-training__criteria {
    display: none !important;
  }

  .mtb-training__contact-shell {
    border: 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    min-height: 0;
    padding: 40px 18px 36px;
    background: rgb(66, 5, 15);
  }

  .mtb-training__contact {
    background: rgb(66, 5, 15);
  }

  .mtb-training__contact h2 {
    font-size: 24px;
  }

  .mtb-training__form {
    width: min(330px, 100%);
    display: flex;
    flex-direction: column;
  }

  .mtb-training__footer {
    background: rgb(66, 5, 15) !important;
    min-height: 217px;
    padding: 32px 16px;
  }

  .mtb-training__footer-rule {
    width: min(380px, 90%);
  }

  .mtb-training__footer-contacts {
    flex-direction: column;
    gap: 14px;
  }

  .mtb-training__fabs {
    right: 14px;
    bottom: 24px;
    gap: 14px;
  }

  .mtb-training__fab,
  .mtb-training__fab img {
    width: 56px;
    height: 56px;
  }
}
