.cr-split-hero {
    --cr-hero-height: 500px;
    --cr-hero-border-radius: 20px;
    --cr-hero-overlay-color: #000000;
    --cr-hero-overlay-opacity: 0.9;
    --cr-hero-blur: 20px;
    --cr-hero-padding: 50px;
    
    /* Typography defaults */
    --cr-hero-h3-color: #808080;
    --cr-hero-h1-color: #FFFFFF;
    --cr-hero-text-color: #808080;

    /* Animation defaults */
    --cr-hero-fade-duration: 1s;
    --cr-hero-zoom-scale: 1.1;
    --cr-hero-zoom-duration: 10s;

    position: relative;
    width: 100%;
    height: var(--cr-hero-height);
    border-radius: var(--cr-hero-border-radius);
    overflow: hidden;
    display: flex;
    flex-direction: row;
    isolation: isolate;
}

.cr-split-hero__left {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: flex-start;
    padding: var(--cr-hero-padding);
    z-index: 2;
}

.cr-split-hero__right {
    flex: 0 0 50%;
    width: 50%;
    max-width: 50%;
    position: relative;
    overflow: hidden;
    z-index: 1;
}

/* Mirrored Slideshow in Left Column */
.cr-split-hero__mirror {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
    transform: scaleX(-1); /* Mirror effect */
    filter: blur(var(--cr-hero-blur));
    pointer-events: none;
}

.cr-split-hero__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: var(--cr-hero-overlay-color);
    opacity: var(--cr-hero-overlay-opacity);
    z-index: -1;
    pointer-events: none;
}

/* Slideshow Items */
.cr-split-hero__slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity var(--cr-hero-fade-duration) ease-in-out;
    will-change: opacity, transform;
}

.cr-split-hero__slide.is-active {
    opacity: 1;
    z-index: 1;
}

/* Ken Burns Effect */
.cr-split-hero--ken-burns .cr-split-hero__slide {
    transform: scale(1);
    transition: opacity var(--cr-hero-fade-duration) ease-in-out, transform var(--cr-hero-zoom-duration) linear;
}

.cr-split-hero--ken-burns .cr-split-hero__slide.is-active {
    transform: scale(var(--cr-hero-zoom-scale));
}

/* Content Styling */
.cr-split-hero__content {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 600px; /* Reasonable limit for readability */
}

.cr-split-hero__h3 {
    color: var(--cr-hero-h3-color);
    margin: 0 0 10px 0;
    /* Typography controlled by Elementor */
}

.cr-split-hero__h1 {
    color: var(--cr-hero-h1-color);
    margin: 0 0 20px 0;
    /* Typography controlled by Elementor */
}

.cr-split-hero__desc {
    color: var(--cr-hero-text-color);
    margin: 0 0 30px 0;
    /* Typography controlled by Elementor */
}

/* Override hover effect from shared component */
.cr-split-hero .cr-inner-btn:hover {
    transform: none;
}

/* Responsive - Mobile */
@media (max-width: 767px) {
    .cr-split-hero {
        flex-direction: column-reverse; /* Text bottom, Image top */
        height: auto !important; /* Allow auto height for stacking */
        min-height: auto !important;
    }

    .cr-split-hero__left {
        width: 100%;
        max-width: 100%;
        height: auto;
        flex: 1 1 auto; /* Natural height based on content */
    }

    .cr-split-hero__right {
        width: 100%;
        max-width: 100%;
        height: var(--cr-hero-height) !important; /* Use main height control for slideshow on mobile */
        flex: 0 0 auto;
    }
    
    .cr-split-hero__mirror {
        display: block; /* Show mirror on mobile */
    }
}
