.split-hero-section {
  padding: 60px 20px;
  margin: 80px auto;
  background-color: #f4f1ea; 
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  width: 100%;
  box-sizing: border-box;
  overflow: hidden;
}

/* Flexbox controls column allocations */
.split-hero-container {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 60px;
  padding: 0px 24px;
}

/* ==========================================================================
   LEFT SIDE - SEAMLESS DOWN-TO-UP VERTICAL MARQUEE
   ========================================================================== */
.marquee-wrapper {
  flex: 0 0 45%; 
  max-width: 45%;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  height: 540px; 
  overflow: hidden;
  position: relative;
  mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 8%, #000 92%, transparent);
}

.marquee-column {
  display: flex;
  flex-direction: column;
}

.marquee-track {
  display: flex;
  flex-direction: column;
  gap: 12px;
  animation: scrollUpside linear infinite;
}

.track-speed-1 .marquee-track { animation-duration: 25s; }
.track-speed-2 .marquee-track { animation-duration: 18s; }
.track-speed-3 .marquee-track { animation-duration: 28s; }

.marquee-card {
  position: relative;
  border-radius: 12px;
  overflow: hidden;
  background-color: #e2e8f0;
  height: 240px; 
  width: 100%;
}

.marquee-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-button-overlay {
  position: absolute;
  bottom: 12px;
  left: 12px;
  width: 28px;
  height: 28px;
  background: rgba(255, 255, 255, 0.85);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #000;
  z-index: 2;
}

.marquee-badge {
  position: absolute;
  bottom: 12px;
  right: 12px;
  padding: 4px 10px;
  border-radius: 20px;
  color: #fff;
  text-shadow: 0 0 2px #000;
  font-size: 10px;
  font-weight: 500;
  z-index: 2;
  white-space: nowrap; 
}

.marquee-badge.text-black{
  color: #000;
  text-shadow: 0 0 2px #fff;
}

@keyframes scrollUpside {
  0% { transform: translateY(0); }
  100% { transform: translateY(-50%); } 
}

.marquee-column:hover .marquee-track {
  animation-play-state: paused;
}

/* ==========================================================================
   RIGHT SIDE - TYPOGRAPHY & SWIPER CONTAINER
   ========================================================================== */
.content-wrapper {
  flex: 1;
  padding-left: 20px;
  min-width: 0; 
}

.badge-row {
  font-size: 14px;
  font-weight: 600;
  color: #1a1a1a;
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 20px;
}

.check-icon {
  background: #1a1a1a;
  color: #fff;
  border-radius: 50%;
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
}

.stat-counter {
  font-size: 2.5rem;
  font-weight: 800;
  color: #1a1a1a;
  line-height: 1.1;
  margin: 0 0 15px 0;
  letter-spacing: -1px;
}

.stat-subtitle {
  font-size: 1.1rem;
  color: #1a1a1a;
  margin: 0 0 45px 0;
  font-weight: 400;
}

.testimonial-box {
  border-top: 1px solid rgba(0, 0, 0, 0.15);
  padding-top: 30px;
  max-width: 500px; 
}

.partner-header {
  font-size: 14px;
  color: #555;
  margin-bottom: 20px;
}

.review-swiper {
  width: 100%;
  height: auto;
  position: relative;
  overflow: hidden;
}

.review-swiper .swiper-wrapper {
  align-items: flex-start; 
}

.review-swiper .swiper-slide {
  height: auto;
  opacity: 0 !important; 
  visibility: hidden;
  transition: opacity 0.6s ease, visibility 0.6s ease;
}

.review-swiper .swiper-slide-active {
  opacity: 1 !important;
  visibility: visible;
}

.review-swiper blockquote {
  font-size: 1.35rem; 
  line-height: 1.4;
  color: #1a1a1a;
  margin: 0 0 20px 0;
  font-weight: 500;
  letter-spacing: -0.3px;
}

/* ==========================================================================
   RESPONSIVE LAYOUT TRANSLATIONS (UPDATED FOR 500PX MAX-HEIGHT ON MOBILE)
   ========================================================================== */
@media (max-width: 991px) {
  .split-hero-container {
    flex-direction: column-reverse; 
    align-items: flex-start;
    gap: 40px;
    padding: 0 15px;
  }
  .marquee-wrapper {
    flex: 0 0 100%;
    max-width: 100%;
    width: 100%;
    /* Enforces strict height limits on larger tablets */
    max-height: 400px; 
  }
  .content-wrapper {
    padding-left: 0;
  }
  .testimonial-box {
    max-width: 100%; 
  }
}

@media (max-width: 580px) {
  /* Keeps all 3 columns visible side-by-side with strict height limits */
  .marquee-wrapper {
    grid-template-columns: repeat(3, 1fr);
    gap: 8px; 
    height: 500px; /* Locked maximum marquee container view window height */
  }

  .marquee-track {
    gap: 8px; 
  }

  .marquee-card {
    /* Scales height proportionately to look clean in a 500px tall window wrapper */
    height: 155px; 
    border-radius: 8px;
  }

  /* Compact button and badge refinements inside tiny cards */
  .marquee-badge {
    bottom: 8px;
    right: 8px;
    padding: 3px 8px;
    font-size: 8px;
  }

  .play-button-overlay {
    bottom: 8px;
    left: 8px;
    width: 22px;
    height: 22px;
  }

  .play-button-overlay svg {
    width: 12px;
    height: 12px;
  }
  
  .stat-counter {
    font-size: 1.85rem;
  }
}
