/* Hero banner — desktop + mobile full background image (live combustionmart.in style) */
#cm-hero-swiper.cm-live-hero,
#swiper-5.cm-live-hero,
.cm-live-hero {
  position: relative !important;
  width: 100% !important;
  max-width: 100% !important;
  height: 520px !important;
  max-height: 520px !important;
  overflow: hidden !important;
  margin: 0 !important;
  padding: 0 !important;
  box-sizing: border-box !important;
  background: #f4f6f9;
}

#cm-hero-swiper .swiper-wrapper,
#swiper-5.cm-live-hero .swiper-wrapper,
.cm-live-hero .swiper-wrapper {
  display: flex !important;
  flex-direction: row !important;
  height: 100% !important;
  max-height: 520px !important;
  padding: 0 !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

#cm-hero-swiper .swiper-slide,
#cm-hero-swiper .cm-hero-slide,
#swiper-5.cm-live-hero .cm-hero-slide,
.cm-live-hero .cm-hero-slide {
  width: 100% !important;
  max-width: 100% !important;
  height: 520px !important;
  max-height: 520px !important;
  flex-shrink: 0 !important;
  box-sizing: border-box !important;
  background-color: #f4f6f9;
  background-image: var(--cm-hero-bg) !important;
  background-position: center center !important;
  background-repeat: no-repeat !important;
  background-size: cover !important;
  margin: 0 !important;
  position: relative;
}

.cm-live-hero .cm-hero-inner {
  height: 100%;
  width: 100%;
  max-width: 1140px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  padding: 40px 24px;
  box-sizing: border-box;
  position: relative;
  z-index: 2;
}

.cm-live-hero .cm-hero-content {
  max-width: 520px;
  width: 100%;
  text-align: left;
  box-sizing: border-box;
}

/* Extra <img> only as fallback — desktop uses CSS background */
.cm-live-hero .cm-hero-visual {
  display: none !important;
}

.cm-live-hero .cm-hero-heading {
  font-size: 35px;
  font-weight: 700;
  line-height: 1.15;
  color: #111;
  margin: 0 0 18px;
  word-break: break-word;
}

.cm-live-hero .cm-hero-desc {
  font-size: 17px;
  line-height: 1.4;
  color: #333;
  margin: 0 0 22px;
  font-weight: 400;
  word-break: break-word;
}

.cm-live-hero .cm-hero-btn {
  display: inline-block;
  padding: 8px 22px;
  font-size: 13px;
  font-weight: 600;
  color: #111;
  background: transparent;
  border: 2px solid #111;
  text-decoration: none;
}

.cm-live-hero .cm-hero-btn:hover {
  background: #111;
  color: #fff;
}

.cm-live-hero .swiper-pagination {
  bottom: 14px !important;
  position: absolute !important;
  z-index: 5;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
}

.cm-live-hero .swiper-pagination-bullet {
  background: #000;
  opacity: 0.25;
}

.cm-live-hero .swiper-pagination-bullet-active {
  opacity: 1;
}

.cm-live-hero + .cm-clients,
.cm-clients {
  margin-top: 0 !important;
  margin-bottom: 0 !important;
  padding-top: 14px !important;
  padding-bottom: 14px !important;
}

@media (max-width: 1024px) {
  #cm-hero-swiper.cm-live-hero,
  #swiper-5.cm-live-hero,
  .cm-live-hero,
  .cm-live-hero .swiper-wrapper,
  .cm-live-hero .cm-hero-slide {
    height: 420px !important;
    max-height: 420px !important;
  }

  .cm-live-hero .cm-hero-heading {
    font-size: 28px;
  }

  .cm-live-hero .cm-hero-desc {
    font-size: 15px;
  }
}

/*
 * Mobile — same as live site SS:
 * full background banner image (product on right), text overlay on left.
 * No split grid, no white card, no separate cropped img.
 */
@media (max-width: 767px) {
  #cm-hero-swiper.cm-live-hero,
  #swiper-5.cm-live-hero,
  .cm-live-hero,
  .cm-live-hero .swiper-wrapper,
  .cm-live-hero .cm-hero-slide {
    height: 320px !important;
    min-height: 320px !important;
    max-height: 320px !important;
  }

  .cm-live-hero .cm-hero-slide {
    background-image: var(--cm-hero-bg) !important;
    /* Show product side like live Elementor mobile */
    background-position: right center !important;
    background-size: cover !important;
    background-repeat: no-repeat !important;
  }

  .cm-live-hero .cm-hero-inner {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    height: 100% !important;
    min-height: 0 !important;
    padding: 24px 16px 40px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin: 0 !important;
    grid-template-columns: none !important;
    gap: 0 !important;
  }

  .cm-live-hero .cm-hero-content {
    max-width: 58% !important;
    width: 58% !important;
    padding: 0 !important;
    background: transparent !important;
    border-radius: 0 !important;
    box-shadow: none !important;
  }

  .cm-live-hero .cm-hero-visual {
    display: none !important;
  }

  .cm-live-hero .cm-hero-heading {
    font-size: 20px !important;
    line-height: 1.25 !important;
    margin: 0 0 10px !important;
  }

  .cm-live-hero .cm-hero-desc {
    font-size: 13px !important;
    line-height: 1.4 !important;
    margin: 0 0 14px !important;
  }

  .cm-live-hero .cm-hero-btn {
    padding: 7px 14px !important;
    font-size: 12px !important;
    border-width: 1.5px;
  }

  .cm-live-hero .swiper-pagination {
    bottom: 10px !important;
  }
}

@media (max-width: 420px) {
  #cm-hero-swiper.cm-live-hero,
  #swiper-5.cm-live-hero,
  .cm-live-hero,
  .cm-live-hero .swiper-wrapper,
  .cm-live-hero .cm-hero-slide {
    height: 300px !important;
    min-height: 300px !important;
    max-height: 300px !important;
  }

  .cm-live-hero .cm-hero-slide {
    background-position: 85% center !important;
  }

  .cm-live-hero .cm-hero-content {
    max-width: 55% !important;
    width: 55% !important;
  }

  .cm-live-hero .cm-hero-heading {
    font-size: 18px !important;
  }

  .cm-live-hero .cm-hero-desc {
    font-size: 12px !important;
  }

  .cm-live-hero .cm-hero-inner {
    padding: 20px 14px 36px !important;
  }
}
