/* CMC multilingual layout fixes; preserve existing templates and content. */
/* Candidate only: ordinary Elementor text widgets, not 3D/carousel decorations. */
body .elementor-widget-heading:not(.swiper-slide):not(.swiper-slide *) .elementor-heading-title,
body .elementor-widget-text-editor:not(.swiper-slide):not(.swiper-slide *) :is(p,li) {
  min-width: 0;
  overflow-wrap: anywhere !important;
  -webkit-hyphens: auto !important;
  hyphens: auto !important;
  hyphenate-limit-chars: 9 4 4;
}

/* Text-only elements in the Impact hub and Strategy template. */
html body.elementor-page.elementor-page-7743 [data-elementor-id] :is([data-id="3c7473d"],h4.e-heading-base),
html body.elementor-page.elementor-page-8424 [data-elementor-id] :is(h3.e-heading-base,h4.e-heading-base,.e-paragraph-base) {
  min-width: 0;
  overflow-wrap: anywhere !important;
  -webkit-hyphens: auto !important;
  hyphens: auto !important;
  hyphenate-limit-chars: 9 4 4;
}

@media (min-width: 768px) and (max-width: 1440px) {
  body.elementor-page-8424 :is([data-id="2012662"],[data-id="174c800"]) {
    display: grid;
    grid-template-columns: repeat(2, minmax(0,1fr));
    row-gap: 24px;
  }
  body.elementor-page-8424 :is([data-id="2012662"],[data-id="174c800"]) > .e-con {
    width: 100%;
    min-width: 0;
    max-width: none;
    border-inline-start-width: 0;
    border-inline-end-width: 0;
  }
  body.elementor-page-8424 :is([data-id="2012662"],[data-id="174c800"]) > .e-con:nth-child(even) {
    border-inline-start: 1px solid #0399c6;
  }
}

/* The Impact hub heading has a 135px relative offset. Its original full width
   must leave room for that offset, without moving or resizing the actual text. */
@media (min-width: 1025px) {
  body.elementor-page-7743 [data-id="998868d"] {
    width: calc(100% - 135px);
    max-width: calc(100% - 135px);
    min-width: 0;
    overflow-wrap: anywhere;
    -webkit-hyphens: auto;
    hyphens: auto;
  }
}

/* Give long German/Dutch timeline titles room at laptop widths. */
@media (min-width: 1025px) and (max-width: 1440px) {
  body.elementor-page-7124:is(.translatepress-de_DE,.translatepress-nl_NL) [data-id="8dd9d54"] {
    padding-inline-start: 32px;
  }
  body.elementor-page-7124:is(.translatepress-de_DE,.translatepress-nl_NL) [data-id="bf0c51f"] {
    font-size: clamp(28px, 2.4vw, 34px);
    line-height: 1.16;
  }
}

/* Verified Atomic templates: About Us, Ethics/Governance and After Sales.
   The large decorative 1980 on About Us deliberately keeps its own sizing. */
html body.elementor-page:is(.elementor-page-7124,.elementor-page-8396,.elementor-page-6910) [data-elementor-id] .e-heading-base:not(.e-38d7756-5da550f):not([data-id="427611d"] *),
html body.elementor-page:is(.elementor-page-7124,.elementor-page-8396) [data-elementor-id] .e-paragraph-base:not([data-id="427611d"] *) {
  min-width: 0;
  overflow-wrap: anywhere !important;
  -webkit-hyphens: auto !important;
  hyphens: auto !important;
  hyphenate-limit-chars: 9 4 4;
}

/* Preserve the existing footer columns, font and navigation behavior. */
[data-elementor-type="footer"] .elementor-nav-menu .elementor-item {
  overflow-wrap: anywhere !important;
  -webkit-hyphens: auto !important;
  hyphens: auto !important;
  hyphenate-limit-chars: 9 4 4;
}

/* Existing product benefit labels: translated compounds retain their own cell. */
html body [data-elementor-id][data-elementor-id] .e-paragraph-base:is(.e-16ea42e1-3600444,.e-43df08a5-13a90af){
 min-width:0;
 overflow-wrap:anywhere!important;
 -webkit-hyphens:auto!important;
 hyphens:auto!important;
 hyphenate-limit-chars:9 4 4;
}

/* Dutch homepage case-study heading: keep the long compound inside its column. */
html body.translatepress-nl_NL [data-elementor-id][data-elementor-id] h2.e-302afc7-1a13855 {
 min-width:0;
 font-size:clamp(20px,6.5vw,38px)!important;
 line-height:1.15!important;
 overflow-wrap:anywhere!important;
 -webkit-hyphens:auto!important;
 hyphens:auto!important;
 hyphenate-limit-chars:9 4 4;
}

/* Italian Bagging hero: keep the long translated title inside its text region. */
html body.translatepress-it_IT [data-elementor-id][data-elementor-id] h1.e-b36b21f-316ae11 {
  min-width: 0;
  overflow-wrap: anywhere !important;
  -webkit-hyphens: auto !important;
  hyphens: auto !important;
}
@media (max-width:767px) {
  html body.translatepress-it_IT [data-elementor-id][data-elementor-id] h1.e-b36b21f-316ae11 {
    font-size: clamp(24px,8vw,42px) !important;
    line-height: 1.05 !important;
  }
}
@media (min-width:1025px) {
  html body.translatepress-it_IT [data-elementor-id][data-elementor-id] h1.e-b36b21f-316ae11 {
    font-size: clamp(48px,5vw,96px) !important;
    line-height: 1.05 !important;
  }
}

/* Responsive content corrections 0.6.34 */
/* Preserve About Us's inset panel while giving its translated introduction real columns. */
html body [data-elementor-id="7124"] [data-id="e6b0824"] {
  width: 100%;
  min-width: 0;
  height: auto !important;
}
@media (min-width:1025px) {
  html body [data-elementor-id="7124"] [data-id="62b8f40"] {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
    gap: clamp(32px, 4vw, 64px);
    align-items: start;
    height: auto !important;
  }
  html body.elementor-page.elementor-page-7124 [data-elementor-id="7124"] [data-id="62b8f40"] .e-heading-base:is([data-id="d4bcf22"], [data-id="c92eb65"]) {
    font-size: clamp(40px, 3.6vw, 64px) !important;
    line-height: 1.08 !important;
    max-width: 100%;
    -webkit-hyphens: none !important;
    hyphens: none !important;
  }
  html body [data-elementor-id="7124"] [data-id="19ea4e4"] {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0;
    margin: 0;
    font-size: clamp(20px, 1.65vw, 26px) !important;
    line-height: 1.35 !important;
  }
}

/* Separate the two translated introductory texts without changing the Impact cards. */
@media (min-width:1025px) {
  html body [data-elementor-id="7743"] [data-id="c0accef"] {
    display: grid;
    grid-template-columns: minmax(0, 1.6fr) minmax(0, 1fr);
    column-gap: clamp(32px, 4vw, 64px);
    align-items: start;
  }
  html body [data-elementor-id="7743"] [data-id="998868d"] {
    position: relative !important;
    inset: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0;
    margin-block-start: -140px;
    font-size: clamp(42px, 4vw, 72px) !important;
    line-height: 1.12 !important;
  }
  html body [data-elementor-id="7743"] [data-id="60aec58"] {
    position: static !important;
    inset: auto !important;
    width: 100% !important;
    min-width: 0;
    margin: 0 !important;
    font-size: clamp(20px, 1.65vw, 26px) !important;
    line-height: 1.35 !important;
  }
  html body [data-elementor-id="7743"] [data-id="b30bc48"] {
    grid-column: 1 / -1;
  }
}

/* After Sales: let the existing spare-parts cards contain their translated copy. */
html body [data-elementor-id="6910"] [data-id="27e166d"] {
  align-items: stretch;
}
html body [data-elementor-id="6910"] [data-id="27e166d"] > :is([data-id="fc1b6da"], [data-id="fe1983f"]) {
  height: auto;
  min-height: 500px;
  max-height: none;
  min-width: 0;
  align-self: stretch;
}
html body [data-elementor-id="6910"] [data-id="fc1b6da"] {
  padding-block-end: 60px;
}
html body [data-elementor-id="6910"] [data-id="fc1b6da"] > h2 {
  line-height: 1.12 !important;
  margin-block-end: 32px;
}
html body [data-elementor-id="6910"] [data-id="fc1b6da"] > p {
  line-height: 1.35 !important;
  min-width: 0;
  max-width: 100%;
}
html body [data-elementor-id="6910"] [data-id="64f3b90"] > h3 {
  line-height: 1.15 !important;
}
@media (max-width: 767px) {
  html body [data-elementor-id="6910"] [data-id="27e166d"] > :is([data-id="fc1b6da"], [data-id="fe1983f"]) {
    min-height: 0;
  }
  html body [data-elementor-id="6910"] [data-id="fc1b6da"] {
    padding-block-end: 32px;
  }
}

/* Boxing Solutions: two existing CartonWrap benefit cards only.
   Retain card size and font size; give long translated words slightly more room. */
body.elementor-page-7586 #cartonwrap :is([data-id="f7c9e9f"],[data-id="59da9cf"]) {
  min-width: 0;
  padding-inline: 8px !important;
}
body.elementor-page-7586 #cartonwrap :is(h2[data-id="a7bc39b"],h2[data-id="d2f99f1"]) {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: anywhere;
  hyphens: auto;
  line-height: 1.3 !important;
}
