

.roinvest_hero {
    margin-top: 29px !important;
    box-sizing: border-box;
    width: calc(100% - 70px) !important;
    margin: 0 auto !important;
}
.dynamic-text-wrapper {
    position: relative;
    padding: 80px 0;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.dynamic-text-container {
    position: relative;
    max-width: 680px;
    padding: 0 20px;
    text-align: left;
    display: flex;
    flex-direction: column;
    z-index: 999;
}

.dynamic-text-title {
    font-size: 54px;
    line-height: 1.3;
    margin-bottom: 20px;
    display: flex;
    flex-wrap: wrap;
    font-weight: bold;
    display: inline;
}

.dynamic-word-wrapper {
    position: relative;
    display: inline-flex
;
    min-height: 88px;
    overflow: hidden;
    transition: width 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
    padding: 0 5px;
    min-width: 420px;
    line-height: 111px;
}

.dynamic-text-title .dynamic-word {
    display: inline-block;
    font-style: normal;
    color: #003883;
    width: 100%;
    text-align: center;
    position: absolute;
    left: 0;
    transform-origin: bottom center;
    will-change: transform;
    margin: 0;
    padding: 0;
    text-align: left;
    padding-left: 5px;
}

.dynamic-word .char {
    display: inline-block;
    position: relative;
    will-change: transform;
    transform-style: preserve-3d;
    transform-origin: bottom center;
}

/* Handle spaces better */
.dynamic-word .char:empty,
.dynamic-word .char.space {
    display: inline-block;
    width: 0.25em;
    height: 1em;
    position: relative;
    pointer-events: none;
}

.dynamic-text-description {
    font-size: 20px;
    line-height: 1.6;
    margin-top: 0;
    color: #000;
}

@media (max-width: 768px) {
    .dynamic-text-title {
        font-size: 32px;
        gap: 0.2em;
    }
    
    .dynamic-word-wrapper {
        min-width: 150px;
    }
    
    .dynamic-text-description {
        font-size: 16px;
        padding: 0 15px;
    }
}

@media (max-width: 480px) {
    .dynamic-text-title {
        font-size: 28px;
    }
    
    .dynamic-word-wrapper {
        min-width: 120px;
    }
}


.hero_image {
    width: 100%;
    position: absolute;
    right: 0;
    top: 0;
    background-size: contain;
    height: 110%;
    background-repeat: no-repeat;
    right: -50px;
    background-position: right;
}
