/* Clean Elementor Animated Text Widget CSS */
.clean-animated-text-container {
    line-height: 1.6;
    overflow: visible;
    word-wrap: break-word;
    position: relative;
}

.clean-animated-word {
    display: inline-block;
    opacity: 0;
    transform: translateY(100%);
    transition: all 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    overflow: hidden;
    vertical-align: top;
    position: relative;
    margin: 0 0.15em 0 0;
}

.clean-animated-word::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: inherit;
    transform: translateY(100%);
    z-index: 3;
    transition: transform 0.6s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.clean-animated-word.animate {
    opacity: 1;
    transform: translateY(0);
}

.clean-animated-word.animate::before {
    transform: translateY(-100%);
}

/* Marker Highlight Effect - Clean version */
.clean-animated-word.marker-highlight {
    position: relative;
    z-index: 1;
}

.clean-animated-word.marker-highlight::after {
    content: "";
    position: absolute;
    z-index: -1;
    opacity: 0;
    transform: scaleX(0) rotate(-2deg);
    transform-origin: left center;
    transition: all 0.5s cubic-bezier(0.68, -0.55, 0.265, 1.55);
    box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.clean-animated-word.marker-highlight.animate::after {
    opacity: 0.85;
    transform: scaleX(1) rotate(-2deg);
    transition-delay: 0.4s;
}

/* Text Color Highlight Effect */
.clean-animated-word.text-highlight.animate {
    transition: all 0.3s ease;
    transition-delay: 0.3s;
}

/* Text Gradient Effect */
.clean-animated-word.text-gradient.animate {
    transition: all 0.3s ease;
    transition-delay: 0.3s;
}

/* Combined Effects */
.clean-animated-word.marker-highlight.text-highlight.animate {
    font-weight: bold;
}

/* Responsive Design */
@media (max-width: 768px) {
    .clean-animated-text-container {
        font-size: 0.9em;
    }
}

@media (max-width: 480px) {
    .clean-animated-text-container {
        font-size: 0.8em;
    }
    
    .clean-animated-word {
        margin: 0 0.1em 0 0;
    }
}

/* Elementor Editor Styles */
.elementor-editor-active .clean-animated-word {
    opacity: 1;
    transform: translateY(0);
}

.elementor-editor-active .clean-animated-word::before {
    display: none;
}

.elementor-editor-active .clean-animated-word.marker-highlight::after {
    opacity: 0.85;
    transform: scaleX(1) rotate(-2deg);
}