.gsap-text-box {
    position: relative;
    width: 100%;
    background: transparent !important;
    overflow: visible;
}

/* --- STICKY WRAPPER CENTERED v2.9.2 --- */
.gsap-text-wrapper {
    position: sticky;
    /* FIX: Vertical Centering in Viewport */
    top: 50%;
    left: 0;
    transform: translateY(-50%);

    width: 100%;
    /* Default height if not set by Elementor */
    height: 100vh;

    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    background: transparent;
    z-index: 10;
    margin: 0;
    border: none;
    outline: none;
}

/* Ensure integrated canvas stays behind text and covers the whole wrapper */
.gsap-text-wrapper canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    z-index: -1 !important;
}

.gsap-text-container {
    width: 100%;
    max-width: 100%;
    text-align: center;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    visibility: hidden;
    padding: 0 5%;
    box-sizing: border-box;
    pointer-events: auto;
}

.gsap-text-line {
    margin: 0;
    display: block;
    width: 100%;
    /* Prevent character-based line breaks */
    word-break: normal !important;
    overflow-wrap: break-word !important;
    white-space: normal !important;
    /* Ensure text visibility */
    text-shadow: 0 0 10px rgba(0, 0, 0, 0.5);
}

/* Word-wrap protection (DRC compatible) */
.gsap-text-line .word {
    display: inline-block !important;
    white-space: nowrap !important;
    word-break: keep-all !important;
}

/* Character display fix */
.gsap-text-line .char {
    display: inline-block !important;
    white-space: pre;
}

/* Typewriter specific cursor */
.gsap-typewriter-cursor::after {
    content: "|";
    animation: gsap-blink 0.8s infinite;
}

@keyframes gsap-blink {

    0%,
    100% {
        opacity: 1;
    }

    50% {
        opacity: 0;
    }
}