/**
 * Angie Marquee Widget Styles
 */

.angie-marquee-wrapper {
	position: relative;
	overflow: hidden;
	width: 100%;
	display: flex;
	/* Fix for flickering in some browsers */
	transform: translate3d(0, 0, 0); 
}

.angie-marquee-link {
	text-decoration: none;
	color: inherit;
	display: block;
	width: 100%;
}

.angie-marquee-inner {
	display: flex;
	flex: 0 0 auto;
	width: max-content; /* Ensure container is wide enough */
	white-space: nowrap; /* Prevent line breaks */
	will-change: transform;
	/* Animation is applied via JS/Inline styles for speed control */
	animation-name: angie-marquee-scroll;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
}

.angie-marquee-content {
	display: flex;
	align-items: center;
	flex-shrink: 0;
}

/* Items */
.angie-marquee-item {
	display: inline-block;
}

/* Stroke effect */
.angie-stroke-text {
	/* Standard WebKit implementation (Chrome, Safari, Edge, Opera) */
	-webkit-text-fill-color: transparent;
	/* Fallbacks handled by widget controls */
}

/* Animation Keyframes */
@keyframes angie-marquee-scroll {
	from {
		transform: translateX(0);
	}
	to {
		transform: translateX(-25%); /* Moves 1/4 because we duplicate content 4 times */
	}
}

/* Reverse Animation for Right Direction */
.angie-marquee-wrapper[data-direction="right"] .angie-marquee-inner {
	animation-direction: reverse;
}

/* Pause on Hover */
.angie-marquee-wrapper.pause-on-hover:hover .angie-marquee-inner {
	animation-play-state: paused;
}

/* Editor preview fix */
.elementor-editor-active .angie-marquee-wrapper {
	/* Ensure visibility in editor */
}
