/* ---------- SPLIT CAROUSEL BLOCK ---------- */
.split-carousel-block {
  width: 100%;
  margin: 60px 0; 
  position: relative;
  overflow: hidden;
  background: #1C1E21; 
  border-radius: 8px; 
}

.split-slider-track {
  position: relative;
  width: 100%;
  /* Removed min-height from here */
}

.split-slide {
  position: absolute;
  top: 0; left: 0;
  width: 100%; 
  min-height: 500px; /* Moved here so the slide and image always stretch */
  display: flex;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.8s ease, visibility 0.8s ease;
}

.split-slide.active {
  opacity: 1;
  visibility: visible;
  position: relative; 
}

/* Left Half: Image */
.split-slide-img {
  flex: 0 0 50%;
  background-size: cover;
  background-position: center;
}

/* Right Half: Content */
.split-slide-content {
  flex: 0 0 50%;
  display: flex;
  align-items: center;
  padding: 60px 80px;
}

.split-slide-inner {
  max-width: 500px;
}

.split-slide-inner h2 {
  font-family: 'Space Grotesk', sans-serif;
  font-size: clamp(32px, 4vw, 44px);
  font-weight: 300; 
  color: #ffffff;
  line-height: 1.2;
  margin-bottom: 30px;
}

.split-slide-inner p {
  font-size: 16.5px;
  color: rgba(255, 255, 255, 0.75);
  line-height: 1.6;
  margin-bottom: 40px;
}

/* Pill Button */
.btn-outline-pill {
  display: inline-block;
  padding: 14px 32px;
  border: 1px solid rgba(255, 255, 255, 0.6);
  border-radius: 50px;
  color: #ffffff;
  font-size: 15px;
  font-weight: 400;
  text-decoration: none;
  transition: all 0.3s ease;
}

.btn-outline-pill:hover {
  background: #ffffff;
  color: #1C1E21;
}

/* Progress Line at the Bottom */
.split-progress-bar {
  position: absolute;
  bottom: 0; left: 0;
  width: 100%;
  height: 3px;
  background: rgba(255, 255, 255, 0.1);
}

.split-progress-fill {
  height: 100%;
  width: 0%;
  background: #ffffff;
  animation: progressFill 5s linear infinite;
}

@keyframes progressFill {
  0% { width: 0%; }
  100% { width: 100%; }
}

/* Responsive */
@media (max-width: 900px) {
  .split-slide {
    flex-direction: column;
  }
  .split-slide-img {
    height: 300px;
    flex: none;
  }
  .split-slide-content {
    flex: none;
    padding: 40px 30px;
  }
}