/* ============================================================
   FYFX Marquee Text Widget
   ============================================================ */

.fyfx-marquee-wrapper {
	position: relative;
	overflow: hidden;
	width: 100%;
	display: flex;
	align-items: center;
}

/* Fade edge overlays */
.fyfx-marquee-wrapper.fyfx-marquee-fade::before,
.fyfx-marquee-wrapper.fyfx-marquee-fade::after {
	content: '';
	position: absolute;
	top: 0;
	bottom: 0;
	width: 80px;
	z-index: 2;
	pointer-events: none;
}

.fyfx-marquee-wrapper.fyfx-marquee-fade::before {
	left: 0;
	background: linear-gradient(to right, #0a0f2e, transparent);
}

.fyfx-marquee-wrapper.fyfx-marquee-fade::after {
	right: 0;
	background: linear-gradient(to left, #0a0f2e, transparent);
}

/* Scrolling track */
.fyfx-marquee-track {
	display: flex;
	align-items: center;
	gap: 16px;
	white-space: nowrap;
	will-change: transform;
	animation-name: fyfx-marquee-scroll;
	animation-timing-function: linear;
	animation-iteration-count: infinite;
	animation-duration: 30s;
}

.fyfx-marquee-track.fyfx-marquee-pause-hover:hover {
	animation-play-state: paused;
}

@keyframes fyfx-marquee-scroll {
	0%   { transform: translateX(0); }
	100% { transform: translateX(-50%); }
}

/* Individual badge item */
.fyfx-marquee-item {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	flex-shrink: 0;
	background-color: #0d1545;
	border: 1px solid #1e2d6e;
	border-radius: 50px;
	padding: 8px 20px 8px 8px;
	text-decoration: none;
	cursor: default;
}

a.fyfx-marquee-item {
	cursor: pointer;
}

a.fyfx-marquee-item:hover {
	opacity: 0.85;
}

/* Icon circle */
.fyfx-marquee-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 28px;
	height: 28px;
	min-width: 28px;
	border-radius: 50%;
	background-color: #2d4de0;
	flex-shrink: 0;
}

.fyfx-marquee-icon i {
	font-size: 13px;
	color: #ffffff;
	line-height: 1;
}

.fyfx-marquee-icon svg {
	width: 13px;
	height: 13px;
	fill: #ffffff;
}

/* Drag / swipe states */
.fyfx-marquee-wrapper {
	touch-action: pan-y;   /* allow vertical scroll, intercept horizontal in JS */
	cursor: grab;
}

.fyfx-marquee-wrapper.fyfx-marquee-dragging,
.fyfx-marquee-wrapper.fyfx-marquee-dragging * {
	cursor: grabbing !important;
	user-select: none;
}

/* Disable hover-pause while dragging so animation state is clean */
.fyfx-marquee-wrapper.fyfx-marquee-dragging .fyfx-marquee-track.fyfx-marquee-pause-hover {
	animation-play-state: paused;
}

/* Text */
.fyfx-marquee-text {
	color: #ffffff;
	font-size: 15px;
	font-weight: 600;
	line-height: 1;
	white-space: nowrap;
}
