:root {
  --primary: #007bff; /* Deep Blue for water/action */
  --accent: #00cc99; /* Bright Teal/Green for highlight */
  --white: #ffffff;
  --dark-blue: #0f172a; /* Confirmed: DARK BACKGROUND */
  --text-dark: #1a2434;
  --text-light: #94a3b8;
}

/* Base styles for sections */
.pool-section,
.section-intro-problem,
.pool-product-carousel-section,
.content-left-image-right {
  padding: 5rem 5%;
  overflow: hidden;
}

/* Common Header Styles */
.pool-section h2,
.pool-features-v2 h2,
.pool-product-carousel-section h2,
.content-left-image-right h2,
.pool-specs-section-v2 h2 {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-dark);
  text-align: center;
  margin-bottom: 0.5rem;
}
.section-description {
  text-align: center;
  color: #64748b;
  margin-bottom: 3rem;
  font-size: 1.1rem;
}

/* ------------------------------------------- */
/* --- 1. POOL HERO SECTION (Dark Background) --- */
/* ------------------------------------------- */
.pool-hero-section-v2 {
  background-color: var(--dark-blue); /* DARK BACKGROUND */
  color: var(--white);
  padding: 3rem 5% 5rem 5%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4rem;
}
.hero-content-v2 {
  max-width: 50%;
}
.hero-content-v2 h1 {
  font-size: 3.5rem;
  color: var(--white);
  margin-bottom: 1.5rem;
  line-height: 1.1;
  font-weight: 900;
}
.tagline-v2 {
  font-size: 1.3rem;
  margin-bottom: 1rem;
  color: #e2e8f0;
  font-weight: 600;
}
.description-v2 {
  font-size: 1rem;
  color: var(--text-light);
  margin-bottom: 2.5rem;
}
.pool-actions-v2 {
  display: flex;
  gap: 1.5rem;
}
.btn-primary-v2,
.btn-secondary-v2 {
  padding: 15px 30px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: 700;
  transition: all 0.3s;
  font-size: 1rem;
}
.btn-primary-v2 {
  background-color: var(--primary);
  color: var(--white);
  box-shadow: 0 5px 15px rgba(0, 102, 204, 0.4);
  border: 2px solid var(--primary);
}
.btn-primary-v2:hover {
  background-color: var(--accent);
  border-color: var(--accent);
  color: var(--text-dark);
  transform: translateY(-2px);
}
.btn-secondary-v2 {
  background-color: transparent;
  border: 2px solid var(--white);
  color: var(--white);
}
.btn-secondary-v2:hover {
  background-color: var(--white);
  color: var(--text-dark);
  border-color: var(--white);
}
.hero-image-v2 {
  max-width: 100%;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.5);
  overflow: hidden;
  /* Placeholder Styling */
  display: flex;
  align-items: center;
  justify-content: center;
  /* height: 400px; */
  background: linear-gradient(135deg, #00c6ff 0%, #0072ff 100%);
  color: white;
  font-size: 1.5rem;
  font-weight: 700;
  text-align: center;
}
.hero-image-v2 img {
  width: 100%;
  height: auto;
  display: block;
}

/* ------------------------------------------- */
/* --- 2. INTRODUCTION & PROBLEM SOLVING --- */
/* ------------------------------------------- */
.section-intro-problem {
  display: flex;
  align-items: center;
  gap: 4rem;
  padding: 5rem 5%;
  background-color: var(--white);
}
.section-content-wrapper {
  max-width: 50%;
}
.section-content-wrapper h2 {
  text-align: left;
  margin-bottom: 1.5rem;
  color: var(--text-dark);
}
.section-content-wrapper p {
  margin-bottom: 1.5rem;
  font-size: 1.1rem;
}
.section-content-wrapper ul {
  list-style: none;
  padding: 0;
  margin-top: 2rem;
}
.section-content-wrapper ul li {
  background: #e6f7ff;
  padding: 10px 15px;
  margin-bottom: 10px;
  border-left: 5px solid var(--primary);
  font-weight: 600;
}
.intro-image-right {
  max-width: 50%;
  /* Placeholder Styling */
  display: flex;
  align-items: center;
  justify-content: center;
  height: 350px;
  background-color: #f0f4f8;
  border-radius: 12px;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.1);
  color: var(--text-dark);
  font-size: 1rem;
  text-align: center;
}

/* ------------------------------------------- */
/* --- 3. PRODUCT CAROUSEL SECTION (SCROLL) --- */
/* ------------------------------------------- */
.pool-product-carousel-section {
  background-color: #f0f4f8;
  padding: 5rem 0;
}
.pool-product-carousel-section h2 {
  text-align: center;
}
.product-carousel-container {
  padding: 0 5%;
  overflow: hidden;
  /* Masking for fade effect at edges */
  -webkit-mask: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
  mask: linear-gradient(
    to right,
    transparent,
    black 5%,
    black 95%,
    transparent
  );
}

/* Auto-Scrolling Keyframes */
@keyframes scroll-left {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  } /* Scrolls one full set of cards */
}

.product-carousel-track {
  display: flex;
  gap: 20px;
  padding-bottom: 20px;
  width: fit-content;
  animation: scroll-left 50s linear infinite; /* Auto-scrolling effect */
}

.product-carousel-track:hover {
  animation-play-state: paused; /* Pause on hover */
}

/* --- kds-STYLE PRODUCT CARD CSS --- */
.product-card-kds {
  width: 300px;
  min-height: 500px;
  background-color: var(--white);
  border-radius: 10px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  overflow: hidden;
  position: relative;
  font-family: Arial, sans-serif;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
}
.product-card-kds:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
}
.product-badge {
  position: absolute;
  top: 15px;
  left: 0;
  background-color: var(--accent);
  color: var(--text-dark);
  padding: 4px 10px 4px 15px;
  font-size: 0.8rem;
  font-weight: 700;
  border-radius: 0 50px 50px 0;
  z-index: 10;
}
.product-image-container {
  height: 200px;
  padding: 20px;
  display: flex;
  justify-content: center;
  overflow: hidden;
  align-items: center;
  background-color: #f7f7f7;
  border-bottom: 1px solid #eeeeee;
  font-size: 0.9rem;
  color: #64748b;
  object-fit: cover;
}
.product-image-container img {
  width: 100%;
  height: 100%;
}
.product-details-content {
  padding: 15px 20px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}
.product-title-kds {
  font-size: 1.1rem;
  font-weight: 600;
  color: #007185;
  margin: 5px 0 10px 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  /* height: 40px; */
}
.product-rating {
  margin-bottom: 10px;
  display: flex;
  align-items: center;
}
.stars {
  color: #ffc300;
  font-size: 0.9rem;
  margin-right: 8px;
}
.review-count {
  font-size: 0.85rem;
  color: #007185;
  cursor: pointer;
}
.product-price-section {
  margin: 10px 0 15px 0;
  line-height: 1.2;
}
.current-price {
  font-size: 1.6rem;
  font-weight: 700;
  color: #cc0c39;
  margin-right: 10px;
}
.product-features-list {
  list-style: none;
  padding: 0;
  margin: 10px 0 20px 0;
  flex-grow: 1;
}
.product-features-list li {
  font-size: 0.85rem;
  color: #444;
  margin-bottom: 5px;
  line-height: 1.4;
}
.product-features-list li i {
  color: var(--accent);
  margin-right: 6px;
}
.product-cta {
  margin-top: auto;
  padding-top: 10px;
  border-top: 1px solid #eee;
}
.add-to-cart-btn {
  width: 100%;
  padding: 10px 0;
  background-color: #ffd814;
  color: #0f1111;
  border: 1px solid #fcd200;
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 700;
  cursor: pointer;
  margin-bottom: 10px;
}
.view-details-link {
  display: block;
  text-align: center;
  font-size: 0.9rem;
  color: #007185;
  text-decoration: none;
}

/* ------------------------------------------- */
/* --- 4. KEY FEATURES GRID --- */
/* ------------------------------------------- */
.pool-features-v2 {
  padding: 50px 5%;
  background: linear-gradient(180deg, #f0f4f8 0%, #e0e9ed 100%);
}
.features-grid-v2 {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 2rem;
  margin-top: 3rem;
}
.feature-card-v2 {
  background: var(--white);
  padding: 2rem;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
  border-top: 4px solid var(--primary);
  text-align: center;
  transition: transform 0.3s;
}
.feature-card-v2:hover {
  transform: translateY(-5px);
  box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}
.feature-card-v2 i {
  font-size: 3rem;
  color: var(--accent);
  margin-bottom: 1rem;
}
.feature-card-v2 h3 {
  color: var(--text-dark);
  margin-bottom: 0.5rem;
}

/* ------------------------------------------- */
/* --- 5. CONTENT BLOCKS (Image Left/Right) --- */
/* ------------------------------------------- */
.content-left-image-right {
  display: flex;
  padding: 50px 5%;
  align-items: center;
  gap: 4rem;
  max-width: 1200px;
  margin: 0 auto;
}
.content-left-image-right img {
  width: 100%;
  height: auto;
}
.content-left-image-right .text-content,
.content-left-image-right .image-right {
  flex: 1;
}
.content-left-image-right .text-content h2 {
  text-align: left;
  margin-bottom: 1.5rem;
}
.content-left-image-right .text-content ul {
  list-style: disc;
  padding-left: 20px;
  margin-bottom: 2rem;
}
.content-left-image-right .text-content ul li {
  margin-bottom: 8px;
  font-size: 1.05rem;
}
.content-left-image-right .image-right {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 350px;
  background-color: #e6f7ff;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
  color: var(--primary);
  font-size: 1rem;
  text-align: center;
}
.industries-served-section {
  background-color: var(--white);
}

/* ------------------------------------------- */
/* --- 6. TECHNICAL SPECIFICATIONS TABLE --- */
/* ------------------------------------------- */
.pool-specs-section-v2 {
  background: #f0f4f8;
  padding: 5rem 5% 7rem 5%;
}
.specs-table-container-v2 {
  overflow-x: auto;
  max-width: 100%;
  margin: 3rem auto 0 auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
}
.specs-table-container-v2 table {
  min-width: 1000px; /* Ensures space for all columns */
  border-collapse: collapse;
  background-color: var(--white);
  width: 100%;
}
.specs-table-container-v2 th,
.specs-table-container-v2 td {
  padding: 12px 15px;
  text-align: left;
  border-bottom: 1px solid #e6e6e6;
  font-size: 0.95rem;
}
.specs-table-container-v2 thead th {
  background-color: var(--dark-blue);
  color: var(--accent);
  font-weight: 700;
  letter-spacing: 0.5px;
}
.specs-table-container-v2 tbody tr:nth-child(even) {
  background-color: #f8fcfd;
}
.specs-table-container-v2 tbody tr td:first-child {
  font-weight: 600;
  color: var(--primary);
}

/* ------------------------------------------- */
/* --- 7. FINAL CTA SECTION --- */
/* ------------------------------------------- */
.final-cta-section {
  text-align: center;
  background-color: var(--dark-blue);
  color: var(--white);
  padding: 4rem 5%;
}
.final-cta-section h2 {
  color: var(--accent);
  margin-bottom: 1rem;
}
.final-cta-section p {
  font-size: 1.2rem;
  margin-bottom: 2rem;
}
.cta-large {
  padding: 18px 40px;
  font-size: 1.2rem;
  display: inline-block;
}

/* ------------------------------------------- */
/* --- RESPONSIVENESS --- */
/* ------------------------------------------- */
@media (max-width: 992px) {
  /* Hero Section */
  .pool-hero-section-v2 {
    flex-direction: column;
    text-align: center;
  }
  .hero-content-v2,
  .hero-image-v2 {
    max-width: 100%;
  }
  .hero-content-v2 h1 {
    font-size: 2.5rem;
  }
  .pool-actions-v2 {
    justify-content: center;
    flex-wrap: wrap;
  }

  /* Challenge/Intro Section & Chemical Deep Dive */
  .section-intro-problem,
  .content-left-image-right {
    flex-direction: column;
    gap: 2rem;
  }
  .section-content-wrapper,
  .intro-image-right,
  .content-left-image-right .text-content,
  .content-left-image-right .image-right {
    max-width: 100%;
  }
  .section-content-wrapper h2,
  .content-left-image-right .text-content h2 {
    text-align: center;
  }
}

@media (max-width: 600px) {
  .pool-actions-v2 {
    flex-direction: column;
  }
  .btn-primary-v2,
  .btn-secondary-v2 {
    width: 100%;
    text-align: center;
  }
}
