/* SECTION1616 — Tại sao Doanh nghiệp tin chọn (match Ladi) */
.mc-why-wrap.elementor-section,
.elementor-section.mc-why-wrap {
  --mc-why-accent: #850e35;
  --mc-why-text: #754060;
  --mc-why-title: #051f4d;
  --mc-why-line: rgb(7, 58, 145);
  --mc-why-bg: rgb(255, 247, 249);
  position: relative;
  margin: 0 !important;
  padding: 0 !important;
  width: 100%;
  background: var(--mc-why-bg) !important;
  /* Clip only at full-bleed section edge so SHAPE1638 can spill past the 1200 stage */
  overflow-x: hidden;
  overflow-y: visible;
  min-height: 901px;
}

.mc-why-wrap > .elementor-container {
  position: relative !important;
  width: min(100%, 1200px) !important;
  max-width: 1200px !important;
  margin: 0 auto !important;
  padding: 0 !important;
  min-height: 901px;
  overflow: visible;
}

.mc-why-wrap > .elementor-container > .elementor-column,
.mc-why-wrap > .elementor-container > .elementor-column > .elementor-widget-wrap {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
  position: relative !important;
  min-height: 901px;
  overflow: visible !important;
}

.mc-why-wrap .elementor-element {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

.mc-why-wrap .elementor-element.mc-why__decor-html {
  position: absolute !important;
  inset: 0;
  z-index: 1;
  width: 100% !important;
  height: 100% !important;
  pointer-events: none;
  overflow: visible !important;
}

.mc-why-wrap .mc-why__decor {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: visible;
}

/* SHAPE1637 — filled donut ring behind title */
.mc-why-wrap .mc-why__ring {
  position: absolute;
  left: -22px;
  top: 0;
  width: 68px;
  height: 68px;
  color: rgba(133, 14, 53, 0.35);
  pointer-events: none;
  z-index: 1;
}

.mc-why-wrap .mc-why__ring svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* SHAPE1639 — striped “fingerprint” arrow near media (hover rotates) */
.mc-why-wrap .mc-why__blob {
  position: absolute;
  left: 722px;
  top: 85px;
  width: 107px;
  height: 57px;
  color: rgba(133, 14, 53, 0.4);
  z-index: 4;
  pointer-events: auto;
  cursor: default;
}

.mc-why-wrap .mc-why__blob-inner {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-27deg);
  transform-origin: center center;
  transition: transform 150ms linear, opacity 150ms linear;
  opacity: 1;
}

.mc-why-wrap .mc-why__blob:hover .mc-why__blob-inner {
  transform: rotate(0deg);
  opacity: 1;
}

.mc-why-wrap .mc-why__blob svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: currentColor;
}

/* SHAPE1638 — keep Ladi size; overflow past 1200 stage, clip only at section edge */
.mc-why-wrap .mc-why__wave {
  position: absolute;
  left: 800px;
  top: 462px;
  width: 504px;
  height: 271px;
  z-index: 3;
  pointer-events: auto;
  cursor: default;
  overflow: visible;
}

.mc-why-wrap .mc-why__wave-inner {
  display: block;
  width: 100%;
  height: 100%;
  transform: rotate(-138deg);
  transform-origin: 50% 50%;
  transition: transform 150ms linear;
}

.mc-why-wrap .mc-why__wave:hover .mc-why__wave-inner {
  transform: rotate(0deg);
}

.mc-why-wrap .mc-why__wave svg {
  display: block;
  width: 100%;
  height: 100%;
  overflow: visible;
  max-width: none;
}

.mc-why-wrap .mc-why__wave svg path {
  fill: rgba(133, 14, 53, 0.12);
}

.mc-why-wrap .mc-why__line {
  position: absolute;
  left: 21px;
  top: 141px;
  width: 0.8px;
  height: 668px;
  background: var(--mc-why-line);
  pointer-events: none;
}

.mc-why-wrap .mc-why__dot {
  position: absolute;
  left: 11px;
  width: 21px;
  height: 21px;
  box-sizing: border-box;
  border: 5.6px solid var(--mc-why-accent);
  border-radius: 1000px;
  background: #fff;
  pointer-events: none;
  z-index: 2;
}

.mc-why-wrap .mc-why__dot--1 { top: 133px; }
.mc-why-wrap .mc-why__dot--2 { top: 308px; }
.mc-why-wrap .mc-why__dot--3 { top: 487px; }
.mc-why-wrap .mc-why__dot--4 { top: 673px; }

.mc-why-wrap .elementor-element.mc-why__title {
  position: absolute !important;
  left: 22px;
  top: 16px;
  z-index: 2;
  width: 672px !important;
  max-width: 672px !important;
}

.mc-why-wrap .mc-why__title .elementor-heading-title {
  margin: 0;
  font-family: "Cormorant Upright", serif;
  font-size: 38px;
  font-weight: 700;
  line-height: 1.2;
  color: var(--mc-why-title);
  text-align: left;
}

.mc-why-wrap .mc-why__title-accent {
  color: var(--mc-why-accent) !important;
}

.mc-why-wrap .mc-why__item.elementor-inner-section {
  position: absolute !important;
  left: 47px;
  z-index: 2;
  width: 690px !important;
  max-width: 690px !important;
  box-sizing: border-box;
}

.mc-why-wrap .mc-why__item--1 { top: 130px; }
.mc-why-wrap .mc-why__item--2 { top: 305px; }
.mc-why-wrap .mc-why__item--3 { top: 484px; }
.mc-why-wrap .mc-why__item--4 { top: 670px; }

.mc-why-wrap .mc-why__item > .elementor-container,
.mc-why-wrap .mc-why__item > .elementor-container > .elementor-column,
.mc-why-wrap .mc-why__item .elementor-widget-wrap {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}

.mc-why-wrap .mc-why__item-title .elementor-heading-title {
  margin: 0 0 14px;
  font-family: Tinos, serif;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.6;
  color: #850e35;
  text-align: left;
}

.mc-why-wrap .mc-why__item-title .mc-why__em {
  color: #ee6983 !important;
}

.mc-why-wrap .mc-why__item-title .mc-why__muted {
  color: #850e35 !important;
}

.mc-why-wrap .mc-why__item-text,
.mc-why-wrap .mc-why__item-text p {
  margin: 0;
  font-family: Tinos, serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--mc-why-text);
  text-align: justify;
}

.mc-why-wrap .mc-why__item-text strong {
  font-weight: 700;
}

/* Media circles — Ladi BOX style (background-image + dashed/solid border) */
.mc-why-wrap .mc-why__media {
  position: absolute;
  z-index: 2;
  box-sizing: border-box;
  pointer-events: none;
}

.mc-why-wrap .mc-why__media--main {
  left: 792px;
  top: 102px;
  width: 395px;
  height: 395px;
  z-index: 2;
}

.mc-why-wrap .mc-why__media--sm {
  left: 772px;
  top: 482px;
  width: 201px;
  height: 201px;
  z-index: 2;
}

.mc-why-wrap .mc-why__media--md {
  left: 958px;
  top: 593px;
  width: 242px;
  height: 242px;
  z-index: 3;
}

.mc-why-wrap .mc-why__box {
  display: block;
  width: 100%;
  height: 100%;
  box-sizing: border-box;
  border-radius: 360px;
  overflow: hidden;
  background-color: transparent;
  background-size: cover;
  background-origin: content-box;
  background-repeat: no-repeat;
  background-attachment: scroll;
}

.mc-why-wrap .mc-why__media--main .mc-why__box,
.mc-why-wrap .mc-why__media--md .mc-why__box {
  border: 2px dashed #fff;
  background-position: center center;
}

.mc-why-wrap .mc-why__media--md .mc-why__box {
  background-position: center top;
}

.mc-why-wrap .mc-why__media--sm .mc-why__box {
  border: 4px solid var(--mc-why-accent);
  background-position: center center;
}

/* Legacy Elementor image widgets (if still present) — hide in favor of bg boxes */
.mc-why-wrap .elementor-element.mc-why__media-main,
.mc-why-wrap .elementor-element.mc-why__media-sm,
.mc-why-wrap .elementor-element.mc-why__media-md {
  display: none !important;
}

@media (max-width: 1024px) {
  .mc-why-wrap.elementor-section,
  .elementor-section.mc-why-wrap {
    min-height: 0;
    padding: 28px 16px 40px !important;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .mc-why-wrap > .elementor-container,
  .mc-why-wrap > .elementor-container > .elementor-column,
  .mc-why-wrap > .elementor-container > .elementor-column > .elementor-widget-wrap {
    min-height: 0 !important;
    height: auto !important;
  }

  .mc-why-wrap > .elementor-container {
    width: 100% !important;
    max-width: 100% !important;
    padding: 0 !important;
  }

  /* Ladi mobile: title → timeline items → media cluster */
  .mc-why-wrap > .elementor-container > .elementor-column > .elementor-widget-wrap {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch;
    gap: 0;
  }

  .mc-why-wrap .elementor-element.mc-why__title {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    order: 1;
    margin: 0 0 22px !important;
    padding: 0 !important;
    z-index: 2;
    overflow: visible;
  }

  /* SHAPE1637 — same donut SVG as .mc-why__ring (not a solid blob) */
  .mc-why-wrap .elementor-element.mc-why__title::before {
    content: "";
    position: absolute;
    left: 0;
    top: 0;
    width: 68px;
    height: 68px;
    border-radius: 0;
    background-color: transparent;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 218 218'%3E%3Cpath fill='%23850e35' fill-opacity='0.28' d='M109,0A109,109,0,1,0,218,109,109,109,0,0,0,109,0Zm0,178.66A69.66,69.66,0,1,1,178.66,109,69.66,69.66,0,0,1,109,178.66Z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: center;
    background-size: contain;
    z-index: 0;
    pointer-events: none;
  }

  .mc-why-wrap .mc-why__title .elementor-heading-title {
    position: relative;
    z-index: 1;
    font-size: 26px;
    line-height: 1.4;
    text-align: left;
    padding: 12px 0 0 10px;
  }

  .mc-why-wrap .mc-why__item.elementor-inner-section {
    position: relative !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    height: auto !important;
    order: 2;
    margin: 0 0 22px !important;
    padding: 0 0 0 36px !important;
    box-sizing: border-box;
    z-index: 2;
  }

  /* Timeline dots + connector (Ladi BOX + LINE on mobile) */
  .mc-why-wrap .mc-why__item::before {
    content: "";
    position: absolute;
    left: 0;
    top: 2px;
    width: 21px;
    height: 21px;
    box-sizing: border-box;
    border: 5.6px solid var(--mc-why-accent);
    border-radius: 1000px;
    background: #fff;
    z-index: 2;
    pointer-events: none;
  }

  .mc-why-wrap .mc-why__item:not(.mc-why__item--4)::after {
    content: "";
    position: absolute;
    left: 10px;
    top: 23px;
    bottom: -22px;
    width: 1px;
    background: var(--mc-why-line);
    z-index: 1;
    pointer-events: none;
  }

  .mc-why-wrap .mc-why__item-title .elementor-heading-title {
    margin: 0 0 10px;
    font-size: 16px;
    line-height: 1.45;
  }

  .mc-why-wrap .mc-why__item-text,
  .mc-why-wrap .mc-why__item-text p {
    font-size: 15px;
    line-height: 1.55;
    text-align: left;
  }

  /* Decor last — media collage (Ladi BOX1620/21/22, lightly overlap only) */
  .mc-why-wrap .elementor-element.mc-why__decor-html {
    position: relative !important;
    inset: auto !important;
    left: auto !important;
    top: auto !important;
    width: 100% !important;
    height: auto !important;
    order: 3;
    margin: 8px 0 0 !important;
    z-index: 1;
  }

  /*
   * Ladi mobile (420 canvas):
   * main BOX1621 250×250 @ left 155.88 top 1067.94
   * sm   BOX1620 150×150 @ left 6.75   top 1167.94
   * md   BOX1622 180×180 @ left 77.73  top 1317.94
   * → cluster ~430 tall; circles barely kiss, not stacked.
   */
  .mc-why-wrap .mc-why__decor {
    --mc-why-stage: 420;
    position: relative !important;
    inset: auto !important;
    width: 100%;
    max-width: 420px;
    height: auto;
    aspect-ratio: 420 / 430;
    margin: 0 auto;
    overflow: hidden;
  }

  .mc-why-wrap .mc-why__ring,
  .mc-why-wrap .mc-why__line,
  .mc-why-wrap .mc-why__dot {
    /* ring relocated to title::before on mobile; desktop line/dots → item ::before/::after */
    display: none !important;
  }

  .mc-why-wrap .mc-why__blob {
    display: block;
    left: calc(87.77 / 420 * 100%);
    top: calc(-10.4 / 430 * 100%);
    width: calc(102 / 420 * 100%);
    height: auto;
    aspect-ratio: 102 / 54;
    z-index: 1;
  }

  .mc-why-wrap .mc-why__wave {
    display: block;
    left: calc(57.57 / 420 * 100%);
    top: calc(185 / 430 * 100%);
    width: calc(310 / 420 * 100%);
    height: auto;
    aspect-ratio: 310 / 166;
  }

  .mc-why-wrap .mc-why__media {
    position: absolute !important;
    right: auto !important;
    margin: 0 !important;
    pointer-events: none;
    box-sizing: border-box;
  }

  .mc-why-wrap .mc-why__media--main {
    display: block !important;
    left: calc(155.884 / 420 * 100%) !important;
    top: 0 !important;
    width: calc(250 / 420 * 100%) !important;
    height: auto !important;
    aspect-ratio: 1;
  }

  .mc-why-wrap .mc-why__media--sm {
    display: block !important;
    left: calc(6.75 / 420 * 100%) !important;
    top: calc(100 / 430 * 100%) !important;
    width: calc(150 / 420 * 100%) !important;
    height: auto !important;
    aspect-ratio: 1;
    z-index: 2;
  }

  .mc-why-wrap .mc-why__media--md {
    display: block !important;
    left: calc(77.732 / 420 * 100%) !important;
    top: calc(250 / 430 * 100%) !important;
    width: calc(180 / 420 * 100%) !important;
    height: auto !important;
    aspect-ratio: 1;
    z-index: 4;
  }

  .mc-why-wrap .mc-why__media .mc-why__box {
    width: 100% !important;
    height: 100% !important;
  }
}

/* iPad / tablet: title full + timeline trái / media phải */
@media (min-width: 768px) and (max-width: 1024px) {
  .mc-why-wrap.elementor-section,
  .elementor-section.mc-why-wrap {
    padding: 40px 28px 52px !important;
  }

  .mc-why-wrap > .elementor-container > .elementor-column > .elementor-widget-wrap {
    display: grid !important;
    grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.9fr);
    column-gap: 28px;
    row-gap: 8px;
    align-items: start;
  }

  .mc-why-wrap .elementor-element.mc-why__title {
    grid-column: 1 / -1;
    order: 0;
    margin: 0 0 18px !important;
  }

  .mc-why-wrap .mc-why__title .elementor-heading-title {
    font-size: 30px;
    line-height: 1.3;
    padding: 10px 0 0 8px;
  }

  .mc-why-wrap .elementor-element.mc-why__title::before {
    width: 64px;
    height: 64px;
  }

  .mc-why-wrap .mc-why__item.elementor-inner-section {
    grid-column: 1;
    order: 0;
    margin: 0 0 18px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .mc-why-wrap .mc-why__item--4.elementor-inner-section {
    margin-bottom: 0 !important;
  }

  .mc-why-wrap .mc-why__item-title .elementor-heading-title {
    font-size: 16px;
  }

  .mc-why-wrap .mc-why__item-text,
  .mc-why-wrap .mc-why__item-text p {
    font-size: 14px;
    line-height: 1.55;
  }

  .mc-why-wrap .elementor-element.mc-why__decor-html {
    grid-column: 2;
    grid-row: 2 / 6;
    order: 0;
    align-self: center;
    margin: 0 !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  .mc-why-wrap .mc-why__decor {
    max-width: 100%;
    width: 100%;
    aspect-ratio: 420 / 430;
    margin: 0;
  }

  .mc-why-wrap .mc-why__blob {
    left: calc(87.77 / 420 * 100%);
    top: calc(-10.4 / 430 * 100%);
    width: calc(102 / 420 * 100%);
  }

  .mc-why-wrap .mc-why__wave {
    left: calc(57.57 / 420 * 100%);
    top: calc(185 / 430 * 100%);
    width: calc(310 / 420 * 100%);
  }
}

@media (max-width: 767px) {
  .mc-why-wrap.elementor-section,
  .elementor-section.mc-why-wrap {
    padding: 24px 14px 36px !important;
  }

  .mc-why-wrap .elementor-element.mc-why__title::before {
    width: 60px;
    height: 60px;
  }

  .mc-why-wrap .mc-why__title .elementor-heading-title {
    font-size: 24px;
    line-height: 1.4;
    padding: 10px 0 0 8px;
  }

  .mc-why-wrap .mc-why__item.elementor-inner-section {
    margin-bottom: 20px !important;
    padding-left: 34px !important;
  }

  .mc-why-wrap .mc-why__item-title .elementor-heading-title {
    font-size: 15px;
  }

  .mc-why-wrap .mc-why__item-text,
  .mc-why-wrap .mc-why__item-text p {
    font-size: 14px;
  }
}

@media (max-width: 320px) {
  .mc-why-wrap.elementor-section,
  .elementor-section.mc-why-wrap {
    padding: 20px 12px 32px !important;
  }

  .mc-why-wrap .elementor-element.mc-why__title::before {
    width: 56px;
    height: 56px;
  }

  .mc-why-wrap .mc-why__title .elementor-heading-title {
    font-size: 22px;
    line-height: 1.4;
    padding: 8px 0 0 6px;
  }

  .mc-why-wrap .mc-why__item.elementor-inner-section {
    padding-left: 30px !important;
  }

  .mc-why-wrap .mc-why__item::before {
    width: 18px;
    height: 18px;
    border-width: 4.5px;
  }

  .mc-why-wrap .mc-why__item:not(.mc-why__item--4)::after {
    left: 8.5px;
    top: 20px;
  }
}
