/**
 * FCNews — editorial layout (Flatsome child).
 */

:root {
	/* Băng Breaking: tin chạy ngang lặp vô hạn (tự động) — chỉnh tốc độ tại đây */
	--fcnews-ticker-duration: 55s;
	--fcnews-ticker-duration-reduced: 120s;
	--fcnews-ink: #121212;
	--fcnews-muted: #5c5c5c;
	--fcnews-line: #e6e6e6;
	--fcnews-accent: #b41c1c;
	--fcnews-radius: 6px;
}

.fcnews-layout .fcnews-front,
.fcnews-layout .fcnews-archive,
.fcnews-layout .fcnews-single {
	color: var(--fcnews-ink);
}

/* Front page sections */
.fcnews-front__section {
	margin-bottom: 0.25rem;
}

/* Sticky sidebar (desktop) */
@media (min-width: 850px) {
	.fcnews-sidebar-sticky .fcnews-sidebar-area,
	.fcnews-sidebar-sticky .fcnews-sidebar-widget-area {
		position: sticky;
		top: calc(var(--flatsome-scroll-padding-top, 0px) + 1rem);
		align-self: flex-start;
	}
}

/* Breaking ticker — one horizontal row (Flatsome-safe) */
.fcnews-ticker {
	display: flex;
	flex-direction: row;
	flex-wrap: nowrap;
	align-items: center;
	gap: 1rem;
	overflow: hidden;
	min-height: 40px;
	max-height: 3.25rem;
}

.fcnews-ticker__label {
	flex: 0 0 auto;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	font-size: 0.75rem;
	padding: 0.15rem 0.5rem;
	border: 1px solid rgba(255, 255, 255, 0.35);
	border-radius: 2px;
	align-self: center;
}

.fcnews-ticker__viewport {
	flex: 1 1 auto;
	min-width: 0;
	overflow: hidden;
	line-height: 1.35;
	mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent);
}

.fcnews-ticker__track {
	display: inline-flex !important;
	flex-direction: row !important;
	flex-wrap: nowrap !important;
	align-items: center;
	align-content: center;
	width: max-content;
	max-width: none;
	white-space: nowrap;
	will-change: transform;
	animation: fcnews-ticker-marquee var(--fcnews-ticker-duration, 55s) linear infinite;
}

.fcnews-ticker__item {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	max-width: none;
	white-space: nowrap;
}

.fcnews-ticker__item a {
	display: inline;
	white-space: nowrap;
	color: inherit;
	text-decoration: none;
	border-bottom: 1px solid transparent;
}

.fcnews-ticker:hover .fcnews-ticker__track {
	animation-play-state: paused;
}

.fcnews-ticker__item a:hover,
.fcnews-ticker__item a:focus {
	border-bottom-color: currentColor;
}

.fcnews-ticker__dot {
	flex: 0 0 auto;
	white-space: nowrap;
	opacity: 0.45;
	padding: 0 0.35rem;
}

@keyframes fcnews-ticker-marquee {
	0% {
		transform: translate3d(0, 0, 0);
	}
	100% {
		transform: translate3d(-50%, 0, 0);
	}
}

/* Breadcrumbs */
.fcnews-breadcrumbs {
	font-size: 0.8rem;
	margin: 0 0 1rem;
	color: var(--fcnews-muted);
}

.fcnews-breadcrumbs__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.35rem 0.5rem;
}

.fcnews-breadcrumbs__item a {
	color: inherit;
	text-decoration: none;
}

.fcnews-breadcrumbs__item a:hover,
.fcnews-breadcrumbs__item a:focus {
	text-decoration: underline;
}

.fcnews-breadcrumbs__item + .fcnews-breadcrumbs__item::before {
	content: "/";
	margin-right: 0.5rem;
	opacity: 0.45;
}

/* Archive hero */
.fcnews-archive-hero {
	padding: 1.5rem 0 1rem;
	border-bottom: 1px solid var(--fcnews-line);
	margin-bottom: 1.5rem;
}

.fcnews-archive-hero__title {
	font-size: clamp(1.75rem, 4vw, 2.5rem);
	line-height: 1.15;
	margin: 0 0 0.5rem;
	letter-spacing: -0.02em;
}

.fcnews-archive-hero__desc {
	max-width: 52rem;
	color: var(--fcnews-muted);
	font-size: 1rem;
	line-height: 1.6;
}

/* Archive cards */
.fcnews-post-list {
	display: grid;
	gap: 1.25rem;
}

.fcnews-archive-card__inner {
	display: grid;
	grid-template-columns: minmax(0, 140px) minmax(0, 1fr);
	gap: 1rem;
	align-items: start;
	padding-bottom: 1.25rem;
	border-bottom: 1px solid var(--fcnews-line);
}

@media (max-width: 550px) {
	.fcnews-archive-card__inner {
		grid-template-columns: 1fr;
	}
}

.fcnews-archive-card__media {
	display: block;
	border-radius: var(--fcnews-radius);
	overflow: hidden;
	background: #f3f3f3;
}

.fcnews-archive-card__img {
	width: 100%;
	height: auto;
	display: block;
	aspect-ratio: 4 / 3;
	object-fit: cover;
}

.fcnews-archive-card__meta {
	margin: 0 0 0.35rem;
	color: var(--fcnews-muted);
}

.fcnews-archive-card__title {
	font-size: 1.25rem;
	line-height: 1.25;
	margin: 0 0 0.5rem;
	letter-spacing: -0.01em;
}

.fcnews-archive-card__title a {
	color: inherit;
	text-decoration: none;
}

.fcnews-archive-card__title a:hover,
.fcnews-archive-card__title a:focus {
	color: var(--fcnews-accent);
}

.fcnews-archive-card__excerpt {
	font-size: 0.95rem;
	line-height: 1.55;
	color: var(--fcnews-muted);
	margin: 0;
}

/* Sidebar widgets (Flatsome + FCNews) */
.fcnews-sidebar-area .widget,
.fcnews-sidebar-widget-area .widget {
	margin-bottom: 1.25rem;
}

.fcnews-widget-list {
	list-style: none;
	margin: 0;
	padding: 0;
}

.fcnews-widget-list--numbered {
	padding-left: 1rem;
}

.fcnews-widget-list__item {
	margin-bottom: 0.5rem;
	line-height: 1.4;
}

.fcnews-widget-list__meta {
	color: var(--fcnews-muted);
	font-size: 0.8rem;
}

.fcnews-widget-empty {
	font-size: 0.9rem;
	color: var(--fcnews-muted);
	margin: 0;
}

.fcnews-newsletter-form {
	display: flex;
	flex-direction: column;
	gap: 0.5rem;
}

.fcnews-newsletter-form input[type="email"] {
	width: 100%;
}

.fcnews-ad-slot__placeholder {
	min-height: 250px;
	display: flex;
	align-items: center;
	justify-content: center;
	background: repeating-linear-gradient(
		-45deg,
		#f0f0f0,
		#f0f0f0 10px,
		#e8e8e8 10px,
		#e8e8e8 20px
	);
	border-radius: var(--fcnews-radius);
	color: var(--fcnews-muted);
	font-size: 0.85rem;
	text-transform: uppercase;
	letter-spacing: 0.08em;
}

/* Single article */
.fcnews-article__featured {
	margin: 0 0 1.25rem;
	border-radius: var(--fcnews-radius);
	overflow: hidden;
	background: #eee;
}

.fcnews-article__featured-img {
	width: 100%;
	height: auto;
	display: block;
}

.fcnews-article__title {
	font-size: clamp(1.85rem, 4vw, 2.75rem);
	line-height: 1.12;
	margin: 0 0 0.75rem;
	letter-spacing: -0.02em;
}

.fcnews-article__meta {
	font-size: 0.95rem;
	color: var(--fcnews-muted);
	margin-bottom: 1rem;
}

.fcnews-article__cat {
	color: inherit;
	text-decoration: none;
}

.fcnews-article__content {
	font-size: 1.08rem;
	line-height: 1.75;
	max-width: 42rem;
}

.fcnews-article__content > p:first-child {
	margin-top: 0;
}

.fcnews-related-inline {
	margin: 2rem 0;
	padding: 1rem 0 0;
	border-top: 1px solid var(--fcnews-line);
}

.fcnews-related-inline__title {
	font-size: 1rem;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	margin: 0 0 0.75rem;
}

.fcnews-related-inline__list {
	margin: 0;
	padding-left: 1.1rem;
}

.fcnews-author-box {
	display: flex;
	gap: 1rem;
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--fcnews-line);
}

.fcnews-author-box__avatar img {
	border-radius: 50%;
}

.fcnews-author-box__name {
	font-size: 1.1rem;
	margin: 0 0 0.35rem;
}

.fcnews-author-box__bio {
	margin: 0;
	color: var(--fcnews-muted);
	font-size: 0.95rem;
	line-height: 1.55;
}

.fcnews-related-grid {
	margin-top: 2.5rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--fcnews-line);
}

.fcnews-related-grid__title {
	font-size: 1.25rem;
	margin: 0 0 1rem;
}

.fcnews-related-grid__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1rem;
}

@media (max-width: 850px) {
	.fcnews-related-grid__grid {
		grid-template-columns: 1fr;
	}
}

/* Footer block strip */
.fcnews-footer-blocks {
	border-top: 1px solid var(--fcnews-line);
}

/* Giảm chuyển động: vẫn tự chạy nhưng chậm (không tắt hẳn — tránh mất hiệu ứng băng tin) */
@media (prefers-reduced-motion: reduce) {
	.fcnews-ticker__track {
		animation-duration: var(--fcnews-ticker-duration-reduced, 120s);
		animation-timing-function: linear;
		animation-iteration-count: infinite;
		white-space: nowrap !important;
		flex-wrap: nowrap !important;
	}
}
