/* Post Marquee Styles */
.post-marquee-wrapper {
	overflow: hidden;
	width: 100%;
	position: relative;
	background: transparent;
}

.post-marquee-container {
	display: flex;
	width: 100%;
	overflow: hidden;
	position: relative;
}

.post-marquee-track {
	display: flex;
	align-items: center;
	white-space: nowrap;
	will-change: transform;
	animation: marquee-scroll var(--marquee-speed, 20s) linear infinite;
}

/* Pause all tracks when hovering over the container */
.post-marquee-container:hover .post-marquee-track {
	animation-play-state: paused;
}

.post-marquee-item {
	display: inline-flex;
	align-items: center;
	padding-left: 15px;
	padding-right: 15px;
	flex-shrink: 0;
	border-right: 0 solid transparent;
	position: relative;
	height: 100%;
}

/* Divider pseudo-element for custom height */
.post-marquee-item::after {
	content: '';
	position: absolute;
	right: 0;
	top: 50%;
	transform: translateY(-50%);
	width: 1px;
	height: 50%;
	background: transparent;
	display: none;
}

.post-marquee-item-link {
	text-decoration: none;
	color: inherit;
	display: inline-flex;
	align-items: center;
	transition: all 0.3s ease;
	height: 100%;
}

.post-marquee-item-content {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 4px;
	white-space: normal;
	word-wrap: break-word;
	overflow-wrap: break-word;
	height: 100%;
	justify-content: center;
}

.post-marquee-item-title {
	font-size: 16px;
	font-weight: 600;
	color: #000;
	transition: color 0.3s ease, text-decoration 0.3s ease;
	display: block;
	white-space: normal;
	word-wrap: break-word;
	overflow-wrap: break-word;
	width: 100%;
}

.post-marquee-item-date {
	font-size: 12px;
	color: #666;
	font-weight: 400;
	transition: color 0.3s ease;
	display: block;
	white-space: normal;
	word-wrap: break-word;
	overflow-wrap: break-word;
	width: 100%;
}

.post-marquee-item-custom-content {
	font-size: 14px;
	color: #333;
	white-space: normal;
	word-wrap: break-word;
	overflow-wrap: break-word;
	width: 100%;
	line-height: 1.5;
}

.post-marquee-item-custom-content p {
	margin: 0 0 0.5em 0;
}

.post-marquee-item-custom-content p:last-child {
	margin-bottom: 0;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
	.post-marquee-item-title {
		font-size: 14px;
	}

	.post-marquee-item-date {
		font-size: 11px;
	}

	.post-marquee-item {
		padding-left: 15px;
		padding-right: 15px;
	}
}
