/* ClickTraces – Logo Marquee (ct-logo-marquee)
 * Single-class rules are defaults that Elementor controls override.
 * ".ct-lm .x" rules are structural and protect against theme styles. */

.ct-lm {
	--lm-dur: 28s;
	--lm-gap: 48px;
	--lm-logo-h: 28px;
	--lm-op: 1;
	--lm-op-h: 1;
	box-sizing: border-box;
	width: 100%;
}

.ct-lm * {
	box-sizing: border-box;
}

/* ---------- Header ---------- */

.ct-lm .ct-lm__header {
	text-align: center;
	margin-bottom: 28px;
}

.ct-lm .ct-lm__heading {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: #8a8f98;
	line-height: 1.4;
}

/* ---------- Viewport ---------- */

.ct-lm .ct-lm__viewport {
	position: relative;
	width: 100%;
	overflow: hidden;
	/* Soft fade at both edges so logos appear/disappear gently. */
	-webkit-mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
	mask-image: linear-gradient(to right, transparent 0, #000 8%, #000 92%, transparent 100%);
}

/* ---------- Track (the moving element) ---------- */

.ct-lm .ct-lm__track {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	will-change: transform;
	animation: ct-lm-scroll var(--lm-dur) linear infinite;
}

/* Two equal groups; moving by exactly one group (-50%) loops seamlessly. */
@keyframes ct-lm-scroll {
	from {
		transform: translate3d(0, 0, 0);
	}
	to {
		transform: translate3d(-50%, 0, 0);
	}
}

.ct-lm.ct-lm--rtl .ct-lm__track {
	animation-direction: reverse;
}

.ct-lm.ct-lm--pause .ct-lm__viewport:hover .ct-lm__track {
	animation-play-state: paused;
}

.ct-lm .ct-lm__group {
	display: flex;
	flex-wrap: nowrap;
	align-items: center;
	gap: var(--lm-gap);
	padding-right: var(--lm-gap);
}

/* ---------- Logo ---------- */

.ct-lm .ct-lm__logo {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
}

.ct-lm .ct-lm__logo a {
	display: inline-flex;
	align-items: center;
}

.ct-lm .ct-lm__img {
	display: block;
	height: var(--lm-logo-h);
	width: auto;
	max-width: none;
	object-fit: contain;
	opacity: var(--lm-op);
	transition: opacity 0.3s ease, filter 0.3s ease;
}

.ct-lm.ct-lm--gray .ct-lm__img {
	filter: grayscale(1);
}

.ct-lm .ct-lm__logo:hover .ct-lm__img {
	opacity: var(--lm-op-h);
}

.ct-lm.ct-lm--gray .ct-lm__logo:hover .ct-lm__img {
	filter: grayscale(0);
}

/* ---------- Separator ---------- */

.ct-lm .ct-lm__sep {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
	line-height: 1;
	color: #6d4cff;
}

.ct-lm .ct-lm__sep svg {
	width: 12px;
	height: 12px;
	fill: currentColor;
}

/* ---------- Reduced motion: stop the animation, allow manual scroll ---------- */

@media (prefers-reduced-motion: reduce) {
	.ct-lm .ct-lm__track {
		animation: none;
	}
	.ct-lm .ct-lm__viewport {
		overflow-x: auto;
	}
	.ct-lm .ct-lm__group[aria-hidden="true"] {
		display: none;
	}
}
