section[data-module="home-watersolution"] {
  position: relative;
  overflow: visible;
  margin-top: -55px;
  padding-top: 95px;
}

section[data-module="home-watersolution"] .ws-card-arrow {
  z-index: 50;
  pointer-events: auto;
}

/* Hide responsive background SVG by default */
section[data-module="home-watersolution"] .ws-bg-laptop,
section[data-module="home-watersolution"] .ws-bg-mobile {
  display: none;
}

section[data-module="home-watersolution"] .ws-wrapper {
  position: relative;
  min-height: 765px;
  padding: 0 0 120px;
  overflow: visible;
}

section[data-module="home-watersolution"] .ws-inner {
  position: relative;
  z-index: 3;
  max-width: 100vw;
  margin: 0 auto;
  padding: 0 0 0 300px;
  margin-top: -460px;
}

section[data-module="home-watersolution"] .ws-bg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -115px;
  height: 95%;
  z-index: 1;
}

section[data-module="home-watersolution"] .ws-bg svg {
  width: 100%;
  height: 100%;
  display: block;
}

section[data-module="home-watersolution"] .ws-deco {
  position: absolute;
  top: -127px;
  left: 0;
  width: min(22vw, 400px);
  z-index: 2;
  animation: none;
}

section[data-module="home-watersolution"] .ws-deco svg {
  width: 100%;
  height: auto;
  display: block;
  overflow: visible;
}

/* =========================
   Decorative Bubble Reveal
   Start only when section is visible
========================= */
section[data-module="home-watersolution"] .ws-deco-part {
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
  filter: blur(8px);
  will-change: transform, opacity, filter;
}

section[data-module="home-watersolution"].is-visible .ws-deco-part-1 {
  animation:
    wsDecoBubbleIn 1.15s cubic-bezier(0.18, 1, 0.32, 1) forwards,
    wsDecoSoftFloat 4.8s ease-in-out 1.2s infinite;
}

section[data-module="home-watersolution"].is-visible .ws-deco-part-2 {
  animation:
    wsDecoBubbleIn2 1.25s cubic-bezier(0.18, 1, 0.32, 1) 0.18s forwards,
    wsDecoSoftFloat2 5.4s ease-in-out 1.45s infinite;
}

@keyframes wsDecoBubbleIn {
  0% {
    opacity: 0;
    filter: blur(10px);
    transform: scale(0.35) translateY(28px) rotate(-8deg);
  }

  38% {
    opacity: 1;
    filter: blur(3px);
    transform: scale(1.12) translateY(-6px) rotate(3deg);
  }

  62% {
    opacity: 1;
    filter: blur(1px);
    transform: scale(0.94) translateY(3px) rotate(-2deg);
  }

  82% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.03) translateY(-2px) rotate(1deg);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateY(0) rotate(0deg);
  }
}

@keyframes wsDecoBubbleIn2 {
  0% {
    opacity: 0;
    filter: blur(12px);
    transform: scale(0.28) translateY(36px) rotate(10deg);
  }

  35% {
    opacity: 1;
    filter: blur(4px);
    transform: scale(1.1) translateY(-8px) rotate(-4deg);
  }

  60% {
    opacity: 1;
    filter: blur(1px);
    transform: scale(0.92) translateY(4px) rotate(2deg);
  }

  82% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1.04) translateY(-2px) rotate(-1deg);
  }

  100% {
    opacity: 1;
    filter: blur(0);
    transform: scale(1) translateY(0) rotate(0deg);
  }
}

@keyframes wsDecoSoftFloat {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  50% {
    transform: translateY(8px) scale(1.015) rotate(1.5deg);
  }

  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

@keyframes wsDecoSoftFloat2 {
  0% {
    transform: translateY(0) scale(1) rotate(0deg);
  }

  50% {
    transform: translateY(-7px) scale(1.018) rotate(-1.5deg);
  }

  100% {
    transform: translateY(0) scale(1) rotate(0deg);
  }
}

section[data-module="home-watersolution"] .ws-heading {
  position: relative;
  z-index: 10;
  margin: 0 0 42px;
  padding-left: 200px;
  padding-top: 20px;
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

section[data-module="home-watersolution"].is-visible .ws-heading {
  opacity: 1;
  transform: translateY(0);
}

section[data-module="home-watersolution"] .ws-heading h2 {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-size: clamp(34px, 4.1vw, 50px);
  font-weight: 700;
  line-height: 1.1;
  color: #156082;
  display: inline-flex;
  align-items: center;
  gap: 14px;
}

section[data-module="home-watersolution"] .ws-heading h2::after {
  content: "";
  display: inline-block;
  width: 16px;
  height: 20px;
  margin-left: 12px;
  background: url('/wp-content/uploads/2026/04/water-after-heading.png') no-repeat center / contain;
  vertical-align: baseline;
}

section[data-module="home-watersolution"] .ws-slider-wrap {
  position: relative;
  z-index: 4;
  padding-left: 200px;
  margin-top: -20px;
}

section[data-module="home-watersolution"] .ws-track {
  display: flex;
  gap: 60px;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-behavior: smooth;
  scroll-snap-type: x mandatory;
  padding: 10px 0 18px;
  scrollbar-width: none;
  margin-right: 20px;
  cursor: grab;
  user-select: none;
  -webkit-user-select: none;
  touch-action: pan-y;
}

section[data-module="home-watersolution"] .ws-track::-webkit-scrollbar {
  display: none;
}

section[data-module="home-watersolution"] .ws-track.is-dragging {
  cursor: grabbing;
  scroll-snap-type: none;
}

section[data-module="home-watersolution"] .ws-card {
  cursor: pointer;
}

section[data-module="home-watersolution"] .ws-card-arrow {
  z-index: 50;
  pointer-events: auto;
}

section[data-module="home-watersolution"] .ws-card {
  position: relative;
  flex: 0 0 470px;
  min-height: 520px;
  border-radius: 28px;
  overflow: hidden;
  scroll-snap-align: start;
  opacity: 0;
  transform: translateY(40px);
  transition:
    transform 0.8s ease,
    opacity 0.8s ease;
  cursor: pointer;
  background: #d9d9d9;
}

section[data-module="home-watersolution"].is-visible .ws-card {
  opacity: 1;
  transform: translateY(0);
}

section[data-module="home-watersolution"].is-visible .ws-card:nth-child(1) {
  transition-delay: 0.1s;
}

section[data-module="home-watersolution"].is-visible .ws-card:nth-child(2) {
  transition-delay: 0.25s;
}

section[data-module="home-watersolution"].is-visible .ws-card:nth-child(3) {
  transition-delay: 0.4s;
}

section[data-module="home-watersolution"].is-visible .ws-card:nth-child(4) {
  transition-delay: 0.55s;
}

section[data-module="home-watersolution"].is-visible .ws-card:nth-child(5) {
  transition-delay: 0.7s;
}

section[data-module="home-watersolution"] .ws-card-media {
  position: absolute;
  inset: 0;
}

section[data-module="home-watersolution"] .ws-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
  user-select: none;
  -webkit-user-drag: none;
  transition: transform 0.7s ease;
}

section[data-module="home-watersolution"] .ws-card:hover .ws-card-media img,
section[data-module="home-watersolution"] .ws-card.is-active .ws-card-media img {
  transform: scale(1.05);
}

section[data-module="home-watersolution"] .ws-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(21,96,130,0) 0%,
      rgba(21,96,130,0.12) 42%,
      rgba(21,96,130,0.82) 76%,
      rgba(21,96,130,0.95) 100%
    );
  opacity: 0.65;
  transition: opacity 0.35s ease;
  z-index: 1;
}

section[data-module="home-watersolution"] .ws-card:hover::before,
section[data-module="home-watersolution"] .ws-card.is-active::before {
  opacity: 1;
}

section[data-module="home-watersolution"] .ws-card-icon {
  position: absolute;
  top: 38px;
  left: 38px;
  z-index: 4;
  width: 150px;
  height: 150px;
  border-radius: 50%;
  background: #f9d067;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

section[data-module="home-watersolution"] .ws-card-icon img {
  width: 80px;
  height: 80px;
  object-fit: contain;
  display: block;
}

section[data-module="home-watersolution"] .ws-card-content {
  position: absolute;
  left: 32px;
  right: 32px;
  bottom: 20px;
  z-index: 2;
  color: #fff;
  transition: bottom 0.35s ease;
}

section[data-module="home-watersolution"] .ws-card-content h3 {
  margin: 0;
  font-family: 'Raleway', sans-serif;
  font-size: clamp(24px, 2vw, 30px);
  font-weight: 600;
  line-height: 1.2;
  color: #fff;
}

section[data-module="home-watersolution"] .ws-card-content p {
  margin: 16px 0 0;
  font-family: 'Open Sans', sans-serif;
  font-size: 15px;
  line-height: 1.45;
  color: rgba(255,255,255,0.96);
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  transform: translateY(10px);
  transition: opacity 0.35s ease, max-height 0.35s ease, transform 0.35s ease;

  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}

section[data-module="home-watersolution"] .ws-card:hover .ws-card-content,
section[data-module="home-watersolution"] .ws-card.is-active .ws-card-content {
  bottom: 25px;
}

section[data-module="home-watersolution"] .ws-card:hover .ws-card-content p,
section[data-module="home-watersolution"] .ws-card.is-active .ws-card-content p {
  opacity: 1;
  max-height: 72px;
  transform: translateY(0);
  width: 90%;
}

section[data-module="home-watersolution"] .ws-card-arrow {
  position: absolute;
  right: 18px;
  bottom: 18px;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  border: 0;
  background: #fff;
  z-index: 3;
  cursor: pointer;
  display: block;
  text-decoration: none;
  transition: transform 0.25s ease, background 0.25s ease;
}

section[data-module="home-watersolution"] .ws-card-arrow::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 16px;
  height: 16px;
  background: url('/wp-content/uploads/2026/04/button-right.png') no-repeat center / contain;
  filter: brightness(0) saturate(100%) invert(24%) sepia(42%) saturate(1108%) hue-rotate(159deg) brightness(88%) contrast(95%);
}

section[data-module="home-watersolution"] .ws-card:hover .ws-card-arrow,
section[data-module="home-watersolution"] .ws-card.is-active .ws-card-arrow {
  background: #f9d067;
  transform: translateX(2px);
}

section[data-module="home-watersolution"] .ws-card:hover .ws-card-arrow::before,
section[data-module="home-watersolution"] .ws-card.is-active .ws-card-arrow::before {
  filter: brightness(0) saturate(100%) invert(24%) sepia(42%) saturate(1108%) hue-rotate(159deg) brightness(88%) contrast(95%);
}

section[data-module="home-watersolution"] .ws-controls {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 20px;
}

section[data-module="home-watersolution"] .ws-nav-btn {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 42px;
  border-radius: 10px;
  border: 1px solid #f9d067;
  background: transparent;
  cursor: pointer;
  transition: all 0.25s ease;
}

section[data-module="home-watersolution"] .ws-nav-btn::before {
  content: "";
  position: absolute;
  inset: 0;
  margin: auto;
  width: 15px;
  height: 15px;
  background: url('/wp-content/uploads/2026/04/button-right.png') no-repeat center / contain;
  filter: brightness(0) saturate(100%) invert(84%) sepia(43%) saturate(810%) hue-rotate(342deg) brightness(103%) contrast(95%);
}

section[data-module="home-watersolution"] .ws-prev::before {
  transform: rotate(180deg);
}

section[data-module="home-watersolution"] .ws-nav-btn:hover:not(.is-disabled) {
  background: #f9d067;
}

section[data-module="home-watersolution"] .ws-nav-btn:hover:not(.is-disabled)::before {
  filter: brightness(0) saturate(100%) invert(24%) sepia(42%) saturate(1108%) hue-rotate(159deg) brightness(88%) contrast(95%);
}

section[data-module="home-watersolution"] .ws-nav-btn.is-disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

section[data-module="home-watersolution"] .ws-progress {
  position: relative;
  flex: 0 0 clamp(260px, 65vw, 1100px);
  width: clamp(260px, 65vw, 1100px);
  max-width: clamp(260px, 65vw, 1100px);
  height: 2px;
  background: rgba(255,255,255,0.75);
  overflow: hidden;
  border-radius: 999px;
}

section[data-module="home-watersolution"] .ws-progress-fill {
  display: block;
  width: 0;
  height: 100%;
  background: #f9d067;
  transition: width 0.3s ease;
}

/* Laptop */
@media (max-width: 1440px) {
  section[data-module="home-watersolution"] {
    margin-top: -40px;
    padding-top: 80px;
  }

  section[data-module="home-watersolution"] .ws-wrapper {
    min-height: 720px;
    padding: 0 0 100px;
  }

  section[data-module="home-watersolution"] .ws-controls {
    margin-bottom: 80px;
  }

  section[data-module="home-watersolution"] .ws-inner {
    padding: 0 0 0 220px;
    margin-top: -320px;
  }

  section[data-module="home-watersolution"] .ws-deco {
    width: min(20vw, 260px);
  }

  section[data-module="home-watersolution"] .ws-heading {
    padding-left: 160px;
    margin-bottom: 34px;
    padding-top: 10px;
  }

  section[data-module="home-watersolution"] .ws-slider-wrap {
    padding-left: 160px;
  }

  section[data-module="home-watersolution"] .ws-card {
    flex: 0 0 420px;
    min-height: 470px;
  }

  section[data-module="home-watersolution"] .ws-track {
    gap: 40px;
  }

  section[data-module="home-watersolution"] .ws-progress {
    flex: 0 0 clamp(260px, 55vw, 850px);
    width: clamp(260px, 55vw, 850px);
    max-width: clamp(260px, 55vw, 850px);
  }

  section[data-module="home-watersolution"] .ws-bg {
    bottom: -90px;
  }
}

/* Laptop custom */
@media (max-width: 1600px) and (min-width: 1200px) {
  section[data-module="home-watersolution"] {
    margin-top: 201px;
    padding-top: 80px;
  }

  section[data-module="home-watersolution"] .ws-wrapper {
    min-height: 720px;
    padding: 0 0 100px;
  }

  section[data-module="home-watersolution"] .ws-bg-desktop {
    display: none;
  }

  section[data-module="home-watersolution"] .ws-bg-laptop {
    display: block;
  }

  section[data-module="home-watersolution"] .ws-bg-mobile {
    display: none;
  }

  section[data-module="home-watersolution"] .ws-bg {
    bottom: -174px;
    height: 120%;
  }

  section[data-module="home-watersolution"] .ws-controls {
    margin-bottom: 80px;
  }

  section[data-module="home-watersolution"] .ws-inner {
    padding: 0 0 0 220px;
    margin-top: -320px;
  }

  section[data-module="home-watersolution"] .ws-deco {
    width: min(20vw, 260px);
  }

  section[data-module="home-watersolution"] .ws-heading {
    padding-left: 160px;
    margin-bottom: 34px;
    padding-top: 10px;
  }

  section[data-module="home-watersolution"] .ws-slider-wrap {
    padding-left: 160px;
  }

  section[data-module="home-watersolution"] .ws-card {
    flex: 0 0 420px;
    min-height: 470px;
  }

  section[data-module="home-watersolution"] .ws-track {
    gap: 40px;
  }

  section[data-module="home-watersolution"] .ws-progress {
    flex: 0 0 clamp(260px, 55vw, 850px);
    width: clamp(260px, 55vw, 850px);
    max-width: clamp(260px, 55vw, 850px);
  }
}

@media (max-width: 1380px) {
  section[data-module="home-watersolution"] {
    margin-top: 213px;
  }
}

@media (max-width: 1360px) {
  section[data-module="home-watersolution"] {
    margin-top: -30px;
  }
}

@media (max-width: 1199px) and (min-width: 992px) {
  section[data-module="home-watersolution"] .ws-bg-desktop {
    display: none;
  }

  section[data-module="home-watersolution"] .ws-bg-laptop {
    display: block;
  }

  section[data-module="home-watersolution"] .ws-bg-mobile {
    display: none;
  }
}

/* Mobile */
@media (max-width: 767px) {
  section[data-module="home-watersolution"] {
    margin-top: 0;
    padding-top: 40px;
    overflow: hidden;
  }

  section[data-module="home-watersolution"] .ws-wrapper {
    min-height: auto;
    padding: 0 0 90px;
    overflow: hidden;
  }

  section[data-module="home-watersolution"] .ws-bg-desktop,
  section[data-module="home-watersolution"] .ws-bg-laptop {
    display: none;
  }

  section[data-module="home-watersolution"] .ws-bg-mobile {
    display: block;
  }

  section[data-module="home-watersolution"] .ws-bg {
    bottom: 0;
    height: 70%;
  }

  section[data-module="home-watersolution"] .ws-inner {
    padding: 0 16px;
    margin-top: -30px;
  }

  section[data-module="home-watersolution"] .ws-deco {
    position: relative;
    top: auto;
    left: auto;
    right: -20px;
    width: 120px;
    display: block;
    margin: 0 16px 16px auto;
  }

  section[data-module="home-watersolution"] .ws-heading {
    padding-left: 0;
    padding-top: 0;
    margin-bottom: 20px;
  }

  section[data-module="home-watersolution"] .ws-heading h2 {
    font-size: clamp(28px, 8vw, 38px);
    line-height: 1.15;
  }

  section[data-module="home-watersolution"] .ws-heading h2::after {
    width: 12px;
    height: 16px;
    margin-left: 8px;
  }

  section[data-module="home-watersolution"] .ws-slider-wrap {
    padding-left: 0;
    margin-top: 0;
  }

  section[data-module="home-watersolution"] .ws-track {
    gap: 18px;
    padding: 8px 0 14px;
  }

  section[data-module="home-watersolution"] .ws-card {
    flex: 0 0 84%;
    min-height: 380px;
    border-radius: 24px;
  }

  section[data-module="home-watersolution"] .ws-card-icon {
    top: 22px;
    left: 22px;
    width: 64px;
    height: 64px;
  }

  section[data-module="home-watersolution"] .ws-card-icon img {
    width: 38px;
    height: 38px;
  }

  section[data-module="home-watersolution"] .ws-card-content {
    left: 20px;
    right: 35px;
    bottom: 20px;
  }

  section[data-module="home-watersolution"] .ws-card-content h3 {
    font-size: 24px;
    transform: none !important;
  }

  section[data-module="home-watersolution"] .ws-card-content p {
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;

    font-size: 13px;
    line-height: 1.45;
    width: 100%;
    max-width: 100%;
    margin-top: 10px;

    opacity: 1;
    max-height: none;
    overflow: hidden;
    transform: none;
  }

  section[data-module="home-watersolution"] .ws-card.is-active .ws-card-content p {
    width: 100%;
  }

  section[data-module="home-watersolution"] .ws-card::before {
    opacity: 1;
  }

  section[data-module="home-watersolution"] .ws-card:hover .ws-card-media img,
  section[data-module="home-watersolution"] .ws-card.is-active .ws-card-media img {
    transform: none;
  }

  section[data-module="home-watersolution"] .ws-controls {
    gap: 12px;
    margin-top: 14px;
  }

  section[data-module="home-watersolution"] .ws-progress {
    flex: 0 0 clamp(150px, 42vw, 260px);
    width: clamp(150px, 42vw, 260px);
    max-width: clamp(150px, 42vw, 260px);
  }
}

/* Small mobile */
@media (max-width: 480px) {
  section[data-module="home-watersolution"] {
    padding-top: 105px;
  }

  section[data-module="home-watersolution"] .ws-track {
    gap: 18px;
    padding-top: 10px;
    padding-right: 0;
    margin-right: 0;
  }

  section[data-module="home-watersolution"] .ws-wrapper {
    padding: 0;
  }

  section[data-module="home-watersolution"] .ws-bg {
    bottom: 0;
    height: 76%;
  }

  section[data-module="home-watersolution"] .ws-inner {
    padding: 0 14px 0 34px;
    margin-top: -97px;
    padding-right: 0;
  }

  section[data-module="home-watersolution"] .ws-deco {
    right: -45px;
    width: 115px;
    margin: 0 16px 14px auto;
  }

  section[data-module="home-watersolution"] .ws-card {
    flex: 0 0 70%;
    min-height: 360px;
  }

  section[data-module="home-watersolution"] .ws-card-content h3 {
    font-size: 22px;
  }

  section[data-module="home-watersolution"] .ws-card-content p {
    -webkit-line-clamp: 3;
  }

  section[data-module="home-watersolution"] .ws-card-arrow,
  section[data-module="home-watersolution"] .ws-nav-btn {
    width: 40px;
    height: 40px;
  }

  section[data-module="home-watersolution"] .ws-progress {
    flex: 0 0 250px;
    width: 200px;
    max-width: 250px;
  }
}