/**
 * Ticker Text Block Styles
 *
 * @package made-to-thrive-2026-base
 * @since 1.0.0
 */

/* Container */
.ticker-text {
	width: 100%;
	position: relative;
	overflow: hidden;
	padding: 1rem 0;
	/* 3px borders on top and bottom using font color */
	border-top: 3px solid currentColor;
	border-bottom: 3px solid currentColor;
}

.ticker-text-container {
	width: 100%;
	overflow: hidden;
	position: relative;
}

/* Ticker Swiper Container */
.ticker-text-swiper {
	width: 100%;
	overflow: hidden;
}

/* Ticker Wrapper - Swiper wrapper */
.ticker-text-wrapper {
	display: flex;
	white-space: nowrap;
	width: fit-content;
}

/* RTL ticker container - ensure proper positioning */
.ticker-text-rtl .ticker-text-container {
	position: relative;
	overflow: hidden;
	display: flex;
	justify-content: flex-end;
}

/* RTL ticker with CSS animation for right-to-left scrolling */
.ticker-text-rtl .ticker-text-wrapper {
	animation: ticker-scroll-rtl 30s linear infinite;
	will-change: transform;
}

/* Pause on hover */
.ticker-text-rtl:hover .ticker-text-wrapper {
	animation-play-state: paused;
}

/* Animation for right-to-left - content moves from right to left */
@keyframes ticker-scroll-rtl {
	0% {
		transform: translateX(0);
	}
	100% {
		transform: translateX(-33.333%);
	}
}

/* Ticker Slide - Individual slide */
.ticker-text-slide {
	width: auto !important;
	display: inline-block;
}

/* Ticker Content - Text content */
.ticker-text-content {
	display: inline-block;
	padding: 0 1rem;
	font-size: 26px;
	line-height: 28px;
	white-space: nowrap;
	text-transform: uppercase;
	font-family: 'Article Century';
	font-weight: 100;
}

/* Responsive Design - Mobile Breakpoint */
@media (max-width: 768px) {
	.ticker-text {
		padding: 0.75rem 0;
	}

	.ticker-text-content {
		padding: 0 1.5rem;
		font-size: clamp(0.875rem, 3vw, 1.25rem);
	}

}

/* Extra Small Devices */
@media (max-width: 500px) {

	.ticker-text-content {
		font-size:16px;
	}
	.ticker-text.has-background {
	    padding: 13px 0 8px!important;
	} 
	.ticker-text-content {
		padding:0 10px;
	}
}

/* High Contrast Mode Support */
@media (prefers-contrast: high) {
	.ticker-text {
		border-top-width: 4px;
		border-bottom-width: 4px;
	}

	.ticker-text-content {
		font-weight: 600;
	}
}

/* Reduced Motion Support - Disable animation */
@media (prefers-reduced-motion: reduce) {
	.ticker-text-wrapper {
		justify-content: center;
	}

	.ticker-text-slide:not(:first-child) {
		display: none;
	}
}

/* Print Styles */
@media print {
	.ticker-text {
		border-top: 1px solid #000000;
		border-bottom: 1px solid #000000;
	}

	.ticker-text-wrapper {
		justify-content: center;
	}

	.ticker-text-slide:not(:first-child) {
		display: none;
	}

	.ticker-text-content {
		padding: 0;
		color: #000000;
	}
}

/* Support for block wrapper color classes */
.ticker-text.has-background {
	padding: 15px 0 8px;
}

.ticker-text.has-text-color .ticker-text-content {
	color: inherit;
}

/* Ensure borders use text color */
.ticker-text.has-text-color {
	border-top-color: currentColor;
	border-bottom-color: currentColor;
}
