/* D-Bot MAR page-specific hero/slider overrides */

/* Scope all overrides to this page only */
body.dbot-mar {
    /* no change */
}

/* Prevent unintended horizontal scroll from 100vw usage */
html, body.dbot-mar {
    overflow-x: hidden !important;
}

/* Full-bleed container with no gutters */
body.dbot-mar .container {
    width: 100vw !important;
    max-width: none !important;
    padding: 0 !important;
    margin: 0 !important;
}

/* Slider wrapper takes full viewport height and width */
body.dbot-mar .wrapper.slider-container {
    width: 100vw !important;
    min-height: 100vh !important;
    height: 100vh !important;
}

/* Slides fill the wrapper */
body.dbot-mar .slides {
    width: 100% !important;
    min-height: 100vh !important;
    height: 100% !important;
    display: block !important;
}

/* Vertically center slide content and remove vertical padding */
body.dbot-mar .slide-content {
    display: grid !important;
    grid-template-columns: 40% 60% !important;
    align-items: center !important;
    justify-content: space-between !important;
    min-height: 100vh !important;
    height: 100vh !important;
    padding: 0 clamp(16px, 8vw, 120px) !important;
    box-sizing: border-box !important;
}

/* Ensure image and text regions center within the grid */
body.dbot-mar .slide-text-content,
body.dbot-mar .slide-text-content-06,
body.dbot-mar .slide-image-content {
    display: flex !important;
    align-items: center !important;
}

body.dbot-mar .slide-text-content,
body.dbot-mar .slide-text-content-06 {
    justify-content: flex-start !important;
}

body.dbot-mar .slide-image-content {
    justify-content: center !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 0 !important;
    overflow: visible !important;
}

/* Scale robot images to fit comfortably within viewport */
body.dbot-mar .slide-robot-image,
body.dbot-mar .slide-robot-image-mar,
body.dbot-mar .slide-image-content img {
    width: auto !important;
    height: auto !important;
    max-width: 85% !important;
    max-height: 50vh !important;
    object-fit: contain !important;
    object-position: center !important;
}

/* === MAR Applications icons: match Dynamic Duo style === */
body.dbot-mar .applications {
  background: #031a40 !important;
  padding: clamp(70px, 9vw, 150px) 0 !important;
  width: 100vw !important;
  position: relative !important;

  margin-left: -50vw !important;
  margin-right: -50vw !important;
}

body.dbot-mar .applications .container-inner {
  width: 100% !important;
  max-width: none !important;
  margin: 0 auto !important;
  padding-left: clamp(18px, 3vw, 36px) !important;
  padding-right: clamp(18px, 3vw, 36px) !important;
}

/* Keep icons positioned as before by constraining the grid itself */
body.dbot-mar #application-section .content {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  column-gap: clamp(40px, 8vw, 120px) !important;
  row-gap: clamp(34px, 6vw, 90px) !important;
  justify-items: center !important;
  align-items: start !important;
  max-width: 1280px !important;
  margin: 0 auto !important;
}
.applications .content .item-6 {

    width: 50%;
}
/* Tablet: 2 per row */
@media (max-width: 1024px) {
  body.dbot-mar #application-section .content {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* Mobile: 1 per row */
@media (max-width: 640px) {
  body.dbot-mar #application-section .content {
    grid-template-columns: 1fr !important;
  }
}

/* 15% smaller icons */
body.dbot-mar #application-section .content .item-6 img {
  width: clamp(128px, 11vw, 162px) !important;
  max-width: 162px !important;
  height: auto !important;
  object-fit: contain !important;
  display: block !important;
  margin: 0 auto !important;
}

/* Typography hierarchy with proper spacing and vertical alignment */
body.dbot-mar #application-section .content .item-6 {
  gap: 18px !important;
  text-align: center !important;
  color: #fff !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
}

body.dbot-mar #application-section .content .item-6 p {
  margin: 0 !important;
  padding: 0 !important;
  line-height: 1.4 !important;
  white-space: nowrap !important;
}

/* Primary label - single line, no wrapping */
body.dbot-mar #application-section .content .item-6 p:first-of-type {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.dbot-mar #application-section .content .item-6 p:first-of-type span {
  font-weight: 800 !important;
  font-size: clamp(1.1rem, 0.8rem + 1.2vw, 1.8rem) !important;
  letter-spacing: 0.01em !important;
  display: inline !important;
  white-space: nowrap !important;
}

/* Descriptor line - single line, no wrapping */
body.dbot-mar #application-section .content .item-6 p:last-of-type {
  white-space: nowrap !important;
  overflow: visible !important;
  text-overflow: clip !important;
}

body.dbot-mar #application-section .content .item-6 p:last-of-type span {
  font-weight: 500 !important;
  font-size: clamp(0.95rem, 0.85rem + 0.45vw, 1.25rem) !important;
  opacity: .95 !important;
  white-space: nowrap !important;
}

/* Ensure consistent white text */
body.dbot-mar #application-section .content .item-6 p,
body.dbot-mar #application-section .content .item-6 p span {
  color: #fff !important;
}

/* Icon hover animation: scale up and change to green color */
body.dbot-mar #application-section .content .item-6 img {
  transition: transform .35s ease, filter .35s ease !important;
  filter: brightness(1) !important;
}
body.dbot-mar #application-section .content .item-6:hover img {
  transform: scale(1.06) !important;
  filter: brightness(0) saturate(100%) invert(68%) sepia(57%) saturate(482%) hue-rotate(76deg) brightness(101%) contrast(89%) !important;
}

/* Responsive tweaks */
@media (max-width: 991px) {
    body.dbot-mar .slide-content {
        grid-template-columns: 1fr !important;
        row-gap: 24px !important;
        padding: 0 clamp(16px, 6vw, 40px) !important;
    }

    body.dbot-mar .slide-image-content {
        order: 1 !important;
    }

    body.dbot-mar .slide-text-content,
    body.dbot-mar .slide-text-content-06 {
        order: 2 !important;
        align-items: flex-start !important;
    }

    body.dbot-mar .slide-robot-image,
    body.dbot-mar .slide-robot-image-mar,
    body.dbot-mar .slide-image-content img {
        max-height: 52vh !important;
    }
}

/* Hero header image glow (MAR page) */
.dbot-mar .slide-image-content { overflow: visible !important; }
.dbot-mar .slide-robot-image-mar { position: relative; display: inline-flex; align-items: center; justify-content: center; }

/* Made in Germany flag positioning for MAR */
.dbot-mar .de_flag_mar {
  position: absolute !important;
  bottom: 2rem !important;
  right: 2rem !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  z-index: 10 !important;
}

/* Responsive adjustments for MAR flag */
@media (max-width: 768px) {
  .dbot-mar .de_flag_mar {
    bottom: 1rem !important;
    right: 1rem !important;
    transform: scale(0.85) !important;
  }
}

@media (max-width: 480px) {
  .dbot-mar .de_flag_mar {
    bottom: 0.5rem !important;
    right: 0.5rem !important;
    transform: scale(0.7) !important;
  }
}

.dbot-mar .slide-robot-image-mar::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.9);
  width: clamp(320px, 48vw, 940px); /* responsive circular glow size */
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(0,255,153,0.30) 0%,
    rgba(0,255,153,0.18) 42%,
    rgba(0,255,153,0.08) 70%,
    rgba(0,255,153,0.00) 82%);
  filter: blur(50px);
  opacity: .63;
  pointer-events: none;
  z-index: 0;
  animation: marHeroGlowPulse 7.2s ease-in-out infinite;
}
.dbot-mar .slide-robot-image-mar img { position: relative; z-index: 1; }
@keyframes marHeroGlowPulse {
  0% { transform: translate(-50%, -50%) scale(.84); opacity:.58; }
  50%{ transform: translate(-50%, -50%) scale(1.04); opacity:.70; }
  100%{ transform: translate(-50%, -50%) scale(.84); opacity:.58; }
}
@media (max-width:1100px){
  .dbot-mar .slide-robot-image-mar::before { width: clamp(280px, 70vw, 760px); filter: blur(42px); }
}
@media (max-width:640px){
  .dbot-mar .slide-robot-image-mar::before { width: clamp(240px, 86vw, 560px); filter: blur(34px); opacity:.56; }
}
@media (min-width:1600px){
  .dbot-mar .slide-robot-image-mar::before { transform: translate(-50%, -50%) scale(1.16); }
}

/* Section image glow: "Effortless Efficiency with Autonomous Movement" */
.dbot-mar #water-resistance-section .img-area { position: relative !important; overflow: visible !important; }
.dbot-mar #water-resistance-section .img-area::before {
  content: "";
  position: absolute; left: 52%; top: 50%; /* slight nudge right to account for image left padding */
  transform: translate(-50%, -50%) scale(.92);
  width: clamp(300px, 44vw, 860px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(0,255,153,0.28) 0%,
    rgba(0,255,153,0.16) 44%,
    rgba(0,255,153,0.07) 70%,
    rgba(0,255,153,0.00) 82%);
  filter: blur(46px);
  opacity: .58;
  pointer-events: none;
  z-index: 0;
  animation: marSectionGlowPulse 8s ease-in-out infinite;
}
.dbot-mar #water-resistance-section .img-area img { position: relative !important; z-index: 1 !important; }

/* Ensure original image size is preserved in Effortless Efficiency section */
.dbot-mar #water-resistance-section .img-area > img:first-child {
  width: 85% !important; /* matches inline */
  height: auto !important;
  max-width: none !important; /* avoid unintended max-widths */
  display: block !important;
}

/* Effortless Efficiency image: 30% bigger + more right padding (desktop) */
@media (min-width: 1100px){
  .dbot-mar #water-resistance-section .img-area > img:first-child{
    width: 111% !important; /* ~30% larger than 85% */
    max-width: none !important;
    padding-right: 6rem !important; /* requested extra right padding */
    padding-left: 0 !important;
    margin-left: -2% !important; /* subtle recenter */
  }
}
/* Keep moderate enlargement on large tablets but avoid overflow */
@media (min-width:900px) and (max-width:1099.98px){
  .dbot-mar #water-resistance-section .img-area > img:first-child {
    width: 105% !important;
    padding-right: 3rem !important;
    margin-left: -1% !important;
  }
}
/* Under 1100px, keep sane sizing to avoid overflow */
@media (max-width: 1099.98px){
  .dbot-mar #water-resistance-section .img-area > img:first-child{
    width: 95% !important;
    padding-right: 2rem !important;
    padding-left: 0 !important;
  }
}

/* === Layout adjustment: Effortless Efficiency section (#water-resistance-section) === */
.dbot-mar #water-resistance-section {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: flex-start !important;
  justify-content: flex-start !important;
  gap: clamp(24px, 3vw, 60px) !important;
  overflow: hidden !important; /* guard against horizontal scroll */
  min-height: 60vh !important;
  height: 60vh !important; /* requested around 70vh */
}
.dbot-mar #water-resistance-section .text-area-2 {
  flex: 0 0 50vw !important; /* requested ~50% viewport width */
  max-width: 50vw !important;
  width: 50vw !important;
  box-sizing: border-box !important;
  padding-right: clamp(10px, 1.6vw, 26px) !important; /* small breathing room */
}
.dbot-mar #water-resistance-section .img-area {
  flex: 1 1 auto !important;
  width: auto !important;
  max-width: calc(100vw - 50vw - clamp(24px,3vw,60px)) !important; /* remaining space minus gap */
  padding: 0 !important; /* remove inline paddings that shrink image */
  display: flex !important;
  align-items: center !important; /* vertically center the image within 70vh */
  justify-content: center !important;
}
/* Override earlier image sizing rules for this section to allow full natural size within 70vh */
.dbot-mar #water-resistance-section .img-area > img:first-child {
  width: auto !important; /* let height constraint drive scaling */
  max-width: 100% !important; /* never overflow horizontally */
  height: auto !important;
  max-height: 70vh !important; /* fit inside section height */
  padding: 0 !important; /* neutralize inline paddings */
  margin: 0 !important;
  object-fit: contain !important;
}
/* Keep Navitec logo aligned below main image without affecting layout */
.dbot-mar #water-resistance-section .img-area > img + img {
  width: 190px !important;
  max-width: 42% !important;
  margin: 28px 0 0 auto !important;
}
/* Responsive stacking for narrower screens: revert to auto height */
@media (max-width: 1100px) {
  .dbot-mar #water-resistance-section {
    flex-direction: column !important;
    align-items: stretch !important;
    min-height: auto !important;
    height: auto !important;
  }
  .dbot-mar #water-resistance-section .text-area-2,
  .dbot-mar #water-resistance-section .img-area {
    flex: 1 1 auto !important;
    width: 100% !important;
    max-width: 100% !important;
  }
  .dbot-mar #water-resistance-section .text-area-2 {
    padding-left: clamp(20px, 6vw, 60px) !important; /* reduce huge desktop left padding */
    padding-right: clamp(20px, 6vw, 60px) !important;
  }
  .dbot-mar #water-resistance-section .img-area > img:first-child {
    max-height: none !important; /* let image size naturally on mobile */
    width: 92% !important; /* slight inset for aesthetics */
    height: auto !important;
  }
}
@media (max-width: 640px) {
  .dbot-mar #water-resistance-section .text-area-2 h1.bottom-line {
    font-size: clamp(2.2rem, 7.2vw, 3rem) !important;
    line-height: 1.12 !important;
  }
}

/* Quality assurance: ensure no unintended horizontal scrollbar */
html, body.dbot-mar { overflow-x: hidden !important; }

/* Add-Ons section: left image glow (preserve image size) */
.dbot-mar #product-section .img-area { position: relative !important; overflow: visible !important; }
.dbot-mar #product-section .img-area::before {
  content: "";
  position: absolute; left: 50%; top: 50%;
  transform: translate(-50%, -50%) scale(.92);
  width: clamp(300px, 44vw, 880px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(0,255,153,0.28) 0%,
    rgba(0,255,153,0.16) 44%,
    rgba(0,255,153,0.07) 70%,
    rgba(0,255,153,0.00) 82%);
  filter: blur(46px);
  opacity: .60;
  pointer-events: none;
  z-index: 0;
  animation: marAddonsGlowPulse 8s ease-in-out infinite;
}
.dbot-mar #product-section .img-area img { position: relative !important; z-index: 1 !important; }
.dbot-mar #product-section .img-area > img:first-child {
  width: 80% !important; /* matches inline */
  height: auto !important;
  max-width: none !important;
  display: block !important;
}
@keyframes marAddonsGlowPulse {
  0%   { transform: translate(-50%, -50%) scale(.86); opacity:.56; }
  50%  { transform: translate(-50%, -50%) scale(1.03); opacity:.68; }
  100% { transform: translate(-50%, -50%) scale(.86); opacity:.56; }
}
@media (max-width:1100px){
  .dbot-mar #product-section .img-area::before { width: clamp(260px, 70vw, 720px); filter: blur(38px); }
}
@media (max-width:640px){
  .dbot-mar #product-section .img-area::before { width: clamp(240px, 92vw, 540px); filter: blur(30px); opacity:.54; }
}
@media (min-width:1600px){
  .dbot-mar #product-section .img-area::before { transform: translate(-50%, -50%) scale(1.16); }
}

/* Instant 2-in-1 Flexibility: right image glow (preserve image size) */
.dbot-mar #instant-flexibility-section .img-area { position: relative !important; overflow: visible !important; }
.dbot-mar #instant-flexibility-section .img-area::before {
  content: "";
  position: absolute; left: 52%; top: 50%; /* nudge right for image padding-left */
  transform: translate(-50%, -50%) scale(.92);
  width: clamp(300px, 44vw, 820px);
  aspect-ratio: 1 / 1;
  border-radius: 50%;
  background: radial-gradient(circle at center,
    rgba(0,255,153,0.28) 0%,
    rgba(0,255,153,0.16) 44%,
    rgba(0,255,153,0.07) 70%,
    rgba(0,255,153,0.00) 82%);
  filter: blur(46px);
  opacity: .58;
  pointer-events: none;
  z-index: 0;
  animation: marInstantGlowPulse 8s ease-in-out infinite;
}
.dbot-mar #instant-flexibility-section .img-area img { position: relative !important; z-index: 1 !important; }
.dbot-mar #instant-flexibility-section .img-area > img:first-child {
  width: 68% !important; /* matches inline */
  height: auto !important;
  max-width: none !important;
  display: block !important;
}
@keyframes marInstantGlowPulse {
  0%   { transform: translate(-50%, -50%) scale(.86); opacity:.54; }
  50%  { transform: translate(-50%, -50%) scale(1.03); opacity:.66; }
  100% { transform: translate(-50%, -50%) scale(.86); opacity:.54; }
}
@media (max-width:1100px){
  .dbot-mar #instant-flexibility-section .img-area::before { width: clamp(260px, 70vw, 700px); filter: blur(38px); }
}
@media (max-width:640px){
  .dbot-mar #instant-flexibility-section .img-area::before { width: clamp(240px, 90vw, 520px); filter: blur(30px); opacity:.52; left:50%; }
}
@media (min-width:1600px){
  .dbot-mar #instant-flexibility-section .img-area::before { transform: translate(-50%, -50%) scale(1.16); }
}

/* MAR Applications: ensure only the Applications section is affected */
.dbot-mar #application-section .content { display: grid !important; grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: clamp(8px, 1.2vw, 16px) !important; align-items: start !important; justify-items: center !important; }
@media (max-width: 1024px) { .dbot-mar #application-section .content { grid-template-columns: repeat(2, minmax(0, 1fr)) !important; } }
@media (max-width: 640px) { .dbot-mar #application-section .content { grid-template-columns: 1fr !important; } }
.dbot-mar #application-section .content .item-6 { display: flex !important; flex-direction: column !important; align-items: center !important; text-align: center !important; gap: 6px !important; }
.dbot-mar #application-section .content .item-6 img { width: clamp(120px, 14vw, 180px) !important; height: auto !important; object-fit: contain !important; display: block !important; max-width: 100% !important; }

/* Hard reset: ensure Applications icon sizing does not affect Effortless Efficiency section */
.dbot-mar #effortless-efficiency { all: unset; display:block; position:relative; width:100%; }
.dbot-mar #effortless-efficiency .container-inner { all: unset; display:grid; grid-template-columns:1fr 1fr; align-items:center; gap:clamp(20px,4vw,60px); min-height:70vh; height:70vh; padding:0; }
.dbot-mar #effortless-efficiency .efficiency-text { all: unset; max-width:50vw; color:#fff; font:inherit; }
.dbot-mar #effortless-efficiency .efficiency-text .bottom-line { margin:0 0 16px; line-height:1.06; font:inherit; font-weight:700; }
.dbot-mar #effortless-efficiency .efficiency-media { all: unset; position:relative; display:flex; align-items:center; justify-content:center; }
.dbot-mar #effortless-efficiency .efficiency-media .media-wrap { position:relative; display:inline-flex; align-items:flex-end; justify-content:center; }
.dbot-mar #effortless-efficiency .efficiency-media .media-wrap img.main { display:block; width:auto; max-width:100%; height:auto; max-height:min(62vh,780px); object-fit:contain; }
.dbot-mar #effortless-efficiency .efficiency-media .media-wrap img.logo { position:absolute; right:clamp(8px,1.2vw,16px); bottom:clamp(8px,1.2vw,16px); width:190px; max-width:42%; height:auto; filter:brightness(1.05); }
.dbot-mar #effortless-efficiency .efficiency-media .media-wrap::before { content:""; position:absolute; left:50%; top:50%; transform:translate(-50%,-50%) scale(.92); width:clamp(300px,44vw,860px); aspect-ratio:1/1; border-radius:50%; background:radial-gradient(circle at center, rgba(0,255,153,0.28) 0%, rgba(0,255,153,0.16) 44%, rgba(0,255,153,0.07) 70%, rgba(0,255,153,0.00) 82%); filter:blur(46px); opacity:.58; pointer-events:none; z-index:0; animation:marSectionGlowPulse 8s ease-in-out infinite !important; }
/* Effortless Efficiency: enforce correct stacking order (glow behind image, logo above) */
.dbot-mar #effortless-efficiency .efficiency-media .media-wrap { position: relative !important; z-index: 0 !important; }
.dbot-mar #effortless-efficiency .efficiency-media .media-wrap img.main { position: relative !important; z-index: 1 !important; }
.dbot-mar #effortless-efficiency .efficiency-media .media-wrap img.logo { position: absolute !important; z-index: 2 !important; }
.dbot-mar #effortless-efficiency .efficiency-media .media-wrap::before { z-index: 0 !important; pointer-events: none !important; }
@media (max-width:1100px){ .dbot-mar #effortless-efficiency .container-inner { grid-template-columns:1fr; min-height:auto; height:auto; } .dbot-mar #effortless-efficiency .efficiency-text { max-width:100%; } .dbot-mar #effortless-efficiency .efficiency-media .media-wrap img.main { max-height:none; width:92%; } }
