.split-hero-slider {
    width: 100%;
    /* Base height will be set by Elementor's inline styles */
    position: relative;
    overflow: hidden;
}

/* Add scaling above 1440px */
@media (min-width: 1440px) {
    .split-hero-slider {
        /* Use the pixel value for scaling */
        height: calc(var(--base-height-px, 100) * (100vw / 1440)) !important;
        max-height: 100vh;
    }
}

/* Background Slider Styles */
.background-slider {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Add the gradient overlay */
.background-slider::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(30deg, rgba(0,0,0,0.5) 0%, rgba(0,0,0,0) 100%);
    z-index: 1;
}

.background-slide {
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;
    opacity: 0;
    transition: opacity 1s ease-in-out;
    z-index: 0;
}

.background-slide.active {
    opacity: 1;
}

.background-media {
    width: 100%;
    height: 100%;
    object-fit: cover;
    background-size: cover;
    background-position: center;
}

.elementor-shape-bottom {
  z-index: 1;
}

/* Text Content Styles */
.text-content {
    position: relative;
    z-index: 2;
    height: 100%;
    width: 100%;
	max-width: 2560px;
	margin: 0 auto;
    display: flex;
    align-items: center;
    color: white;
    opacity: 0; /* Hide entire text content initially */
    transition: opacity 0.3s ease-out;
}

.text-content.initialized {
    opacity: 1;
}

.text-group {
    position: absolute;
    opacity: 0;
    transform: translateY(0%) translateX(0px);
    visibility: hidden;
    transition: opacity 0.4s ease-out;
}

@media (max-width: 768px) {
    .text-group {
        bottom: 12vh;
    }
}

@media (min-width: 769px) {
  .text-group {
    transform: translateY(-50%) translateX(55px);
  }
}

.text-group.active {
    opacity: 1;
    visibility: visible;
}

.overflow-hidden {
    overflow: hidden;
}

.hero-line {
    margin: 0rem 0;
    transform: translateY(100%);
    opacity: 0;
}

.text-group.active .hero-line {
    transform: translateY(0);
    opacity: 1;
}

/* Single text item behavior */
.text-content:only-child .text-group {
    opacity: 1;
    visibility: visible;
}

.text-content:only-child .hero-line {
    transform: translateY(0);
    opacity: 1;
    transition: transform 0.8s ease-out, opacity 0.8s ease-out;
}
