/* SVG Live Ticker – front-end.
   Structure, animation and sensible defaults only. Colours, typography, spacing and backgrounds
   are overridden by the Elementor widget's Style controls (higher specificity). */

.svglt {
	--svglt-slant: 18px;
	--svglt-gap: 1.3em;
	--svglt-dot: #ff4d4f;
	position: relative;
	display: flex;
	align-items: stretch;
	box-sizing: border-box;
	width: 100%;
	min-height: 56px;
	overflow: hidden;
	background: linear-gradient(180deg, #1d5379 0%, #163f5e 100%);
	color: #fff;
	font-family: "Roboto Condensed", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
	font-stretch: condensed;
	font-size: 18px;
	line-height: 1.25;
}

.svglt *,
.svglt *::before,
.svglt *::after {
	box-sizing: border-box;
}

.svglt[hidden] {
	display: none;
}

/* Reset parent-theme link / button styling inside the ticker */
.svglt a,
.svglt a:hover,
.svglt a:focus {
	color: inherit;
	text-decoration: none;
}

.svglt a:focus-visible,
.svglt button:focus-visible {
	outline: 2px solid currentColor;
	outline-offset: 2px;
	box-shadow: none;
}

/* ---------- Label badge (slanted edge + pulsing dot) ---------- */
.svglt-label {
	position: relative;
	z-index: 2;
	display: flex;
	flex: 0 0 auto;
	align-items: center;
	gap: 0.6em;
	padding: 0 calc(var(--svglt-slant) + 1.1em) 0 1.2em;
	background-color: #0b2f4d;
	color: #fff;
	font-weight: 700;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	white-space: nowrap;
	clip-path: polygon(0 0, 100% 0, calc(100% - var(--svglt-slant)) 100%, 0 100%);
}

.svglt-label__dot {
	flex: none;
	width: 0.62em;
	height: 0.62em;
	border-radius: 50%;
	background-color: var(--svglt-dot);
	box-shadow: 0 0 0 0 rgba(255, 77, 79, 0.55);
	box-shadow: 0 0 0 0 color-mix(in srgb, var(--svglt-dot) 60%, transparent);
	animation: svglt-pulse 1.8s ease-out infinite;
}

@keyframes svglt-pulse {
	70%,
	100% {
		box-shadow: 0 0 0 0.7em rgba(255, 77, 79, 0);
		box-shadow: 0 0 0 0.7em color-mix(in srgb, var(--svglt-dot) 0%, transparent);
	}
}

/* ---------- Viewport + track ---------- */
.svglt-viewport {
	position: relative;
	display: flex;
	flex: 1 1 auto;
	align-items: center;
	min-width: 0;
	overflow: hidden;
	direction: ltr;
}

.svglt--fade .svglt-viewport {
	-webkit-mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
	mask-image: linear-gradient(90deg, transparent 0, #000 5%, #000 95%, transparent 100%);
}

.svglt-track {
	display: flex;
	align-items: center;
	width: max-content;
}

.svglt-list {
	display: flex;
	flex: none;
	align-items: center;
	margin: 0;
	padding: 0;
	list-style: none;
}

.svglt-empty {
	margin: 0;
	padding: 0 1.2em;
	opacity: 0.75;
}

/* ---------- Marquee ---------- */
.svglt--marquee .svglt-track.is-running {
	animation: svglt-scroll var(--svglt-duration, 30s) linear infinite;
	will-change: transform;
}

.svglt.is-dir-right .svglt-track.is-running {
	animation-direction: reverse;
}

.svglt.is-paused .svglt-track.is-running,
.svglt--pause-hover:hover .svglt-track.is-running,
.svglt--pause-hover:focus-within .svglt-track.is-running {
	animation-play-state: paused;
}

@keyframes svglt-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(calc(var(--svglt-shift, 50%) * -1), 0, 0);
	}
}

/* ---------- Item ---------- */
.svglt-item {
	display: flex;
	flex: none;
	align-items: center;
	gap: var(--svglt-gap);
	margin: 0;
	padding: 0 var(--svglt-gap) 0 0;
	white-space: nowrap;
}

.svglt-item__body {
	display: inline-flex;
	align-items: center;
	gap: 0.6em;
	border-radius: 999px;
	color: inherit;
}

.svglt-item.is-featured .svglt-item__body {
	padding: 0.28em 0.9em 0.28em 0.7em;
	background-color: rgba(255, 201, 40, 0.14);
}

.svglt-item__star {
	flex: none;
	width: 0.95em;
	height: 0.95em;
	color: #ffc928;
}

.svglt-item__time {
	flex: none;
	padding: 0.12em 0.6em;
	border-radius: 999px;
	background-color: rgba(255, 255, 255, 0.15);
	font-size: 0.78em;
	font-variant-numeric: tabular-nums;
	font-weight: 500;
	letter-spacing: 0.02em;
}

.svglt-item__cat {
	flex: none;
	padding: 0.1em 0.55em;
	border: 1px solid currentColor;
	border-radius: 4px;
	color: #7fd6d8;
	font-size: 0.7em;
	font-weight: 600;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.svglt-item__title {
	font-weight: 700;
}

.svglt-item__desc {
	opacity: 0.8;
	font-size: 0.92em;
	font-weight: 400;
}

.svglt a.svglt-item__body:hover .svglt-item__title,
.svglt a.svglt-item__body:focus .svglt-item__title {
	text-decoration: underline;
	text-underline-offset: 0.18em;
}

/* ---------- Separators ---------- */
.svglt-sep {
	display: inline-block;
	flex: none;
	color: rgba(255, 255, 255, 0.55);
	font-size: 1em;
	line-height: 1;
}

.svglt-sep--stars svg {
	display: block;
	width: 2.7em;
	height: 0.75em;
}

.svglt-sep--dot {
	width: 0.4em;
	height: 0.4em;
	border-radius: 50%;
	background-color: currentColor;
}

.svglt-sep--diamond {
	width: 0.45em;
	height: 0.45em;
	background-color: currentColor;
	transform: rotate(45deg);
}

.svglt-sep--pipe {
	width: 1px;
	height: 1.2em;
	background-color: currentColor;
}

/* ---------- Pause / play button ---------- */
.svglt .svglt-toggle {
	position: relative;
	z-index: 2;
	display: grid;
	flex: 0 0 auto;
	place-items: center;
	align-self: center;
	width: 30px;
	height: 30px;
	margin: 0 12px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background-color: rgba(255, 255, 255, 0.16);
	color: #fff;
	cursor: pointer;
	transition: background-color 0.2s ease;
}

.svglt .svglt-toggle:hover,
.svglt .svglt-toggle:focus {
	background-color: rgba(255, 255, 255, 0.3);
	color: #fff;
}

.svglt-toggle__play,
.svglt.is-paused .svglt-toggle__pause {
	display: none;
}

.svglt.is-paused .svglt-toggle__play {
	display: block;
}

/* ---------- Rotator (one item at a time) ---------- */
.svglt--rotator .svglt-track {
	width: 100%;
}

.svglt--rotator .svglt-list {
	display: grid;
	grid-template-columns: minmax(0, 1fr);
	width: 100%;
}

.svglt--rotator .svglt-item {
	grid-area: 1 / 1;
	min-width: 0;
	padding: 0.5em 1.2em;
	opacity: 0;
	visibility: hidden;
	transform: translateY(0.5em);
	transition: opacity 0.45s ease, transform 0.45s ease, visibility 0s linear 0.45s;
}

.svglt--rotator .svglt-item.is-active {
	opacity: 1;
	visibility: visible;
	transform: none;
	transition-delay: 0s;
}

.svglt--rotator .svglt-item__body {
	max-width: 100%;
	min-width: 0;
}

.svglt--rotator .svglt-item__title,
.svglt--rotator .svglt-item__desc {
	min-width: 0;
	overflow: hidden;
	text-overflow: ellipsis;
}

.svglt--rotator .svglt-sep {
	display: none;
}

/* ---------- Reduced motion / no JS: static, scrollable list ---------- */
.svglt.is-static .svglt-viewport {
	overflow-x: auto;
	scrollbar-width: thin;
	-webkit-mask-image: none;
	mask-image: none;
}

.svglt.is-static .svglt-track {
	animation: none;
	transform: none;
}

.svglt.is-static .svglt-list[data-clone],
.svglt.is-static .svglt-item[data-fill],
.svglt.is-static .svglt-toggle {
	display: none;
}

.svglt.is-static.svglt--rotator .svglt-list {
	display: flex;
	width: max-content;
}

.svglt.is-static.svglt--rotator .svglt-item {
	grid-area: auto;
	padding: 0 var(--svglt-gap) 0 0;
	opacity: 1;
	visibility: visible;
	transform: none;
	transition: none;
}

@media (prefers-reduced-motion: reduce) {
	.svglt-label__dot {
		animation: none;
	}
}

/* ---------- Small screens ---------- */
@media (max-width: 767px) {
	.svglt {
		font-size: 16px;
	}

	.svglt-label {
		padding-inline-start: 0.9em;
	}

	/* Rotator: chips on one line, the headline wraps underneath instead of being cut off */
	.svglt--rotator .svglt-item {
		white-space: normal;
	}

	.svglt--rotator .svglt-item__body {
		flex-wrap: wrap;
		row-gap: 0.3em;
	}

	.svglt--rotator .svglt-item__title {
		flex: 1 1 100%;
		overflow: visible;
		text-overflow: clip;
	}

	.svglt--rotator .svglt-item__desc {
		display: none;
	}
}
