.custom-text-container p {
    margin: 0 0 1em 0;
    padding: 0;
	  font-size: 1.8vw !important;
        line-height: 1.2;
}

.custom-text-container p:last-child {
    margin-bottom: 0;
}

/* Bullet points and list layouts */
.custom-text-container ul,
.custom-text-container ol {
    margin: 0 0 1.5em 0;
    padding: 0;
    list-style-position: inside; /* Ensures bullets move with text when aligned */
}

.custom-text-container ul {
    list-style-type: disc;
}

.custom-text-container ol {
    list-style-type: decimal;
}

.custom-text-container li {
    margin-bottom: 0.5em;
    line-height: inherit;
}

.custom-text-container li:last-child {
    margin-bottom: 0;
}

/* Sentence-wise Animation Styles */
.custom-text-container.has-animation .sentence-wrapper {
    display: block;
    overflow: hidden;
    margin-bottom: 0.15em;
}

.custom-text-container.has-animation .sentence-anim {
    display: inline-block;
    transform: translate3d(0, 110%, 0);
    opacity: 0;
    transition: transform 0.8s cubic-bezier(0.15, 0.85, 0.31, 1), opacity 0.8s cubic-bezier(0.15, 0.85, 0.31, 1);
    will-change: transform, opacity;
}

.custom-text-container.has-animation.is-animated .sentence-anim {
    transform: translate3d(0, 0, 0);
    opacity: 1;
}

/* Tablet */
@media (max-width: 1024px) {
    .custom-text-container,
    .custom-text-container p,
    .custom-text-container ul,
    .custom-text-container ol,
    .custom-text-container li,
    .custom-text-container .sentence-anim {
        font-size: 1.7vw !important; 
        line-height: 1.5;
    }

    .custom-text-container ul,
    .custom-text-container ol {
        margin-bottom: 1.25em;
    }

    .custom-text-container li {
        margin-bottom: 0.4em;
    }

    .custom-text-container.has-animation .sentence-wrapper {
        margin-bottom: 0.12em;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .custom-text-container,
    .custom-text-container p,
    .custom-text-container ul,
    .custom-text-container ol,
    .custom-text-container li,
    .custom-text-container .sentence-anim {
        font-size: 4.8vw !important;
        line-height: 1.3;
    }

    .custom-text-container p {
        margin-bottom: 0.8em;
    }

    .custom-text-container ul,
    .custom-text-container ol {
        margin-bottom: 1em;
    }

    .custom-text-container li {
        margin-bottom: 0.35em;
    }

    .custom-text-container.has-animation .sentence-wrapper {
        margin-bottom: 0.1em;
    }

    .custom-text-container.has-animation .sentence-anim {
        transition-duration: 0.7s;
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .custom-text-container,
    .custom-text-container p,
    .custom-text-container ul,
    .custom-text-container ol,
    .custom-text-container li,
    .custom-text-container .sentence-anim {
        font-size: 4.2vw !important;
        line-height: 1.4;
    }

    .custom-text-container p {
        margin-bottom: 0.7em;
    }

    .custom-text-container ul,
    .custom-text-container ol {
        margin-bottom: 0.8em;
    }

    .custom-text-container li {
        margin-bottom: 0.3em;
    }

    .custom-text-container.has-animation .sentence-anim {
        transition-duration: 0.6s;
    }
}
