/* Force text wrap for animated headline on mobile devices without cutting words */
@media screen and (max-width: 767px) {
	.elementor-widget-animated-headline .elementor-headline {
		white-space: normal !important;
		word-break: normal !important; /* Do not break inside words */
		overflow-wrap: anywhere !important; /* Allow break if absolutely necessary, but prefer <wbr> */
		display: block !important;
		max-width: 100% !important;
	}

	.elementor-widget-animated-headline .elementor-headline-plain-text {
		display: inline !important;
		white-space: normal !important;
	}

	/* The animated text part */
	.elementor-widget-animated-headline .elementor-headline-dynamic-wrapper {
		white-space: normal !important;
		display: inline-block !important;
		width: 100% !important;
		text-align: inherit !important;
	}
	
	.elementor-widget-animated-headline .elementor-headline-dynamic-text {
		white-space: normal !important;
		max-width: 100% !important;
		word-break: normal !important;
		overflow-wrap: anywhere !important;
	}
	
	/* Adjust specific animation types if needed */
	.elementor-headline-animation-type-typing .elementor-headline-dynamic-wrapper {
		overflow: hidden !important; 
	}
}
