/* News listing + detail — giá trị lấy chính xác từ Figma node 927:2333 (canvas News).
   Scoped .fdmc-news (category) và .fdmc-news-article (single). */

.fdmc-news,
.fdmc-news-article {
	font-family: var(--font-body);
	color: var(--navy);
	background: #fff;
	/* Ghi đè text-align: justify mà style.css đặt trên html/body */
	text-align: left;
}

.fdmc-news *,
.fdmc-news *::before,
.fdmc-news *::after,
.fdmc-news-article *,
.fdmc-news-article *::before,
.fdmc-news-article *::after {
	box-sizing: border-box;
}

.fdmc-news img,
.fdmc-news-article img {
	max-width: 100%;
	display: block;
}

.fdmc-news-arrow {
	flex: none;
	width: 24px;
	height: 24px;
}

.fdmc-news-arrow--prev {
	transform: rotate(180deg);
}

.fdmc-news-arrow--down {
	transform: rotate(90deg);
}

/* ── Hero (931:3306) ─────────────────────────────────────── */
.fdmc-news__hero {
	position: relative;
	height: 720px;
	overflow: hidden;
}

.fdmc-news__hero-track {
	display: flex;
	height: 100%;
	transition: transform 0.45s ease;
}

.fdmc-news__hero-slide {
	position: relative;
	flex: 0 0 100%;
	height: 100%;
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
}

.fdmc-news__hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fdmc-news__hero-panel {
	position: relative;
	background: rgba(255, 255, 255, 0.2);
	padding: 16px 24px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.fdmc-news__hero-tag {
	background: var(--mint);
	color: var(--teal);
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	letter-spacing: 3.2px;
	padding: 8px 16px;
	border-radius: 8px;
	white-space: nowrap;
}

.fdmc-news__hero-title {
	max-width: 800px;
	margin: 0;
	font-size: 36px;
	font-weight: 600;
	line-height: 46px;
	font-family: var(--font-headline);
	letter-spacing: 0;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fdmc-news__hero-title a {
	color: inherit;
	text-decoration: none;
}

.fdmc-news__hero-desc {
	max-width: 600px;
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	color: #fff;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fdmc-news__hero-cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: #fff;
	text-decoration: none;
}

.fdmc-news__hero-nav {
	position: absolute;
	right: 48px;
	bottom: 48px;
	display: flex;
	gap: 16px;
	z-index: 2;
}

.fdmc-news__hero-btn {
	width: 52px;
	height: 52px;
	padding: 10px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	border: 1.5px solid #fff;
	border-radius: 999px;
	background: rgba(255, 255, 255, 0.3);
	color: #fff;
	cursor: pointer;
}

.fdmc-news__hero-btn .fdmc-news-arrow {
	width: 32px;
	height: 32px;
}

.fdmc-news__hero-btn[aria-disabled='true'] {
	border-color: var(--border);
	color: var(--border);
	cursor: default;
}

/* ── Filter / Sort bar (931:2774) ────────────────────────── */
.fdmc-news__filter {
	position: sticky;
	top: 0;
	z-index: 20;
	background: var(--cream);
	padding: 32px 0;
}

.fdmc-news__filter  > .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 24px;
}
.fdmc-news__filter  > .container:after {
	content: none;
}
.fdmc-news__cats {
	display: flex;
	align-items: center;
	gap: 12px;
	flex-wrap: wrap;
}

.fdmc-news__chip {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 12px 20px;
	border: 1px solid transparent;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--teal);
	text-transform: uppercase;
	text-decoration: none;
	white-space: nowrap;
}

.fdmc-news__chip:hover,
.fdmc-news__chip.is-active {
	border-color: var(--teal);
	color: var(--teal);
}

.fdmc-news__sort {
	position: relative;
	flex: none;
}

.fdmc-news__sort-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 12px 20px;
	border: 1px solid var(--teal);
	border-radius: 8px;
	background: transparent;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--teal);
	cursor: pointer;
	white-space: nowrap;
	margin:0 !important;
}

.fdmc-news__sort-menu {
	position: absolute;
	top: calc(100% + 8px);
	right: 0;
	min-width: 100%;
	margin: 0;
	padding: 4px;
	list-style: none;
	background: #fff;
	border: 1px solid var(--teal);
	border-radius: 8px;
	box-shadow: 0 8px 24px rgba(10, 17, 40, 0.08);
	z-index: 5;
}

.fdmc-news__sort-item {
	display: block;
	padding: 8px 16px;
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--teal);
	text-decoration: none;
	white-space: nowrap;
}

.fdmc-news__sort-item:hover,
.fdmc-news__sort-item.is-active {
	background: var(--mint);
	color: var(--teal);
}

/* ── Listing (931:2635) ──────────────────────────────────── */
.fdmc-news__listing {
	padding: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}

.fdmc-news__grid {
	width: 100%;
	max-width: var(--wrap);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.fdmc-news__empty {
	grid-column: 1 / -1;
	margin: 0;
	font-size: 16px;
	line-height: 22px;
	color: var(--grey);
}

/* ── Card (931:2637) ─────────────────────────────────────── */
.fdmc-news-card {
	background: #fff;
	border: 1px solid var(--border);
	display: flex;
	flex-direction: column;
	overflow: hidden;
	transition: transform 0.25s ease, border-color 0.25s ease;
}

.fdmc-news-card:hover {
	border-color: #033635;
	transform: translateY(-10px);
}

.fdmc-news-card__media {
	display: block;
	aspect-ratio: 16 / 10;
	background: #f0efec;
	overflow: hidden;
}

.fdmc-news-card__media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.fdmc-news-card:hover .fdmc-news-card__media img {
	transform: scale(1.06);
}

.fdmc-news-card__body {
	padding: 16px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 20px;
}

.fdmc-news-card__head {
	width: 100%;
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 38px;
}

.fdmc-news-card__tag {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	background: var(--mint);
	color: var(--teal);
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	letter-spacing: 3.2px;
	padding: 8px 16px;
	border-radius: 8px;
	white-space: nowrap;
}

.fdmc-news-card__detail {
	width: 100%;
	display: flex;
	flex-direction: column;
	gap: 10px;
}

.fdmc-news-card__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 22px;
	color: var(--navy);
	display: -webkit-box;
	font-family: var(--font-headline);
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fdmc-news-card__title a {
	color: inherit;
	text-decoration: none;
}

.fdmc-news-card__title a:hover {
	color: var(--teal);
}

.fdmc-news-card__desc {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	color: var(--grey);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.fdmc-news-card__cta {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--teal);
	text-decoration: none;
}

/* ── Pagination (931:2894) ───────────────────────────────── */
.fdmc-news__pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	flex-wrap: wrap;
}

.fdmc-news__pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	padding: 8px 16px;
	border: 1px solid #e5e7eb;
	border-radius: 200px;
	font-size: 16px;
	font-weight: 400;
	line-height: 26px;
	color: #121826;
	text-decoration: none;
}

.fdmc-news__pagination .page-numbers.current {
	background: #f9fafb;
}

.fdmc-news__pagination .page-numbers.prev,
.fdmc-news__pagination .page-numbers.next {
	width: 40px;
	height: 40px;
	min-width: 40px;
	padding: 12px;
}

.fdmc-news__pagination .page-numbers.prev .fdmc-news-arrow,
.fdmc-news__pagination .page-numbers.next .fdmc-news-arrow {
	width: 16px;
	height: 16px;
}

/* ── CTA banner (962:4571) ───────────────────────────────── */
.fdmc-news__cta {
	background: var(--teal);
	padding: 60px 0;

}
.fdmc-news__cta > .container {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
}
.fdmc-news__cta > .container::after{
	content: none;
}
.fdmc-news__cta-text {
	max-width: 700px;
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.fdmc-news__cta-eyebrow {
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	letter-spacing: 3.2px;
	color: var(--gold);
}

.fdmc-news__cta-title {
	margin: 0;
	font-size: 40px;
	font-weight: 600;
	line-height: 52px;
	letter-spacing: 1.6px;
	text-transform: uppercase;
	font-family: var(--font-headline);
	color: #fff;
}

.fdmc-news__cta-title span {
	color: var(--gold);
}

.fdmc-news__cta-desc {
	margin: 0;
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	color: #fff;
}

.fdmc-news__cta-btn {
	flex: none;
	width: 280px;
	padding: 12px 20px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 4px;
	border: 1px solid var(--gold);
	border-radius: 8px;
	font-size: 16px;
	font-weight: 500;
	line-height: 24px;
	color: var(--gold);
	text-decoration: none;
}

/* ── Detail: layout (931:3565) ───────────────────────────── */
.fdmc-news-article__layout {
	max-width: 1440px;
	margin: 0 auto;
	padding: 60px 112px 60px 80px;
	display: grid;
	grid-template-columns: minmax(0, 845fr) minmax(0, 379fr);
	gap: 24px;
	align-items: start;
}

.fdmc-news-article__main {
	min-width: 0;
}

.fdmc-news-article__hero {
	position: relative;
	aspect-ratio: 845 / 526;
	padding: 24px;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
}

.fdmc-news-article__hero-img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fdmc-news-article__hero-panel {
	position: relative;
	background: rgba(255, 255, 255, 0.2);
	padding: 16px 24px;
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 16px;
}

.fdmc-news-article__tag {
	background: var(--mint);
	color: var(--teal);
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	letter-spacing: 3.2px;
	padding: 8px 16px;
	border-radius: 8px;
	white-space: nowrap;
}

.fdmc-news-article__title {
	margin: 0;
	font-size: 36px;
	font-weight: 600;
	line-height: 46px;
	font-family: var(--font-headline);
	color: #fff;
}
/* ── Detail: nội dung bài (931:3572) — mọi khối cách nhau 24 ── */
.fdmc-news-article__content {
	margin-top: 24px;
	padding: 0 24px;
	font-size: 16px;
	font-weight: 400;
	line-height: 22px;
	color: var(--navy);
}

.fdmc-news-article__content > * {
	margin: 0 0 24px;
}

.fdmc-news-article__content > *:last-child {
	margin-bottom: 0;
}

.fdmc-news-article__content h2 {
	font-size: 24px;
	font-weight: 600;
	line-height: 32px;
	color: var(--teal);
}

.fdmc-news-article__content h3,
.fdmc-news-article__content h4 {
	font-size: 18px;
	font-weight: 600;
	line-height: 22px;
	color: var(--teal);
}

.fdmc-news-article__content img {
	width: 100%;
	height: auto;
	aspect-ratio: 797 / 498;
	object-fit: cover;
}

.fdmc-news-article__content figure,
.fdmc-news-article__content p:has(> img) {
	margin: 0 0 24px;
}

.fdmc-news-article__content ul,
.fdmc-news-article__content ol {
	padding-left: 20px;
}

.fdmc-news-article__content a {
	color: var(--teal);
}

/* ── Detail: sidebar Related Articles (931:3900) ─────────── */
.fdmc-news-article__aside {
	position: sticky;
	top: 24px;
}

.fdmc-news-aside {
	background: var(--cream);
	border: 1px solid var(--border);
	border-radius: 24px 0 24px 0;
	padding: 24px;
	display: flex;
	flex-direction: column;
	gap: 16px;
	overflow: hidden;
}

.fdmc-news-aside__title {
	margin: 0;
	font-size: 18px;
	font-weight: 600;
	line-height: 22px;
	font-family: var(--font-headline);
	color: var(--teal);
}
.fdmc-news-aside__list {
	display: flex;
	flex-direction: column;
	gap: 16px;
}

.fdmc-news-aside__item {
	display: flex;
	align-items: flex-start;
	gap: 16px;
	text-decoration: none;
}

.fdmc-news-aside__thumb {
	flex: none;
	width: 100px;
	height: 62px;
	background: #f0efec;
	overflow: hidden;
}

.fdmc-news-aside__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.fdmc-news-aside__text {
	flex: 1 1 auto;
	min-width: 0;
	font-size: 14px;
	font-weight: 400;
	line-height: 20px;
	color: var(--teal);
}

/* ── Detail: Related articles (939:4135) ─────────────────── */
.fdmc-news-article__related {
	background: var(--cream);
	padding: 80px;
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 40px;
}

.fdmc-news-article__related-title {
	margin: 0;
	font-size: 24px;
	font-weight: 600;
	line-height: 32px;
	color: var(--teal);
	font-family: var(--font-headline);
	text-align: center;
}

.fdmc-news-article__related-grid {
	width: 100%;
	max-width: var(--wrap);
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 1280px) {
	.fdmc-news__cta {
		padding-left: 40px;
		padding-right: 40px;
	}

	.fdmc-news__listing,
	.fdmc-news-article__related {
		padding: 60px 40px;
	}

	.fdmc-news-article__layout {
		padding: 40px;
	}
}

@media (max-width: 1024px) {
	.fdmc-news__hero {
		height: 560px;
	}

	.fdmc-news__hero-title {
		font-size: 28px;
		line-height: 36px;
	}

	.fdmc-news__grid,
	.fdmc-news-article__related-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.fdmc-news-article__layout {
		grid-template-columns: minmax(0, 1fr);
	}

	.fdmc-news-article__aside {
		position: static;
	}

	.fdmc-news__cta {
		flex-direction: column;
		align-items: flex-start;
	}

	.fdmc-news__cta-title {
		font-size: 32px;
		line-height: 42px;
	}
}

@media (max-width: 767px) {
	.fdmc-news__hero {
		height: 480px;
	}

	.fdmc-news__hero-nav {
		right: 24px;
		bottom: 24px;
	}

	.fdmc-news__filter {
		padding: 20px 0;
	}

	.fdmc-news__filter > .container {
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
	}

	.fdmc-news__cats {
		flex-wrap: nowrap;
		overflow-x: auto;
		scrollbar-width: none;
	}

	.fdmc-news__sort-btn {
		width: 100%;
		justify-content: space-between;
	}

	.fdmc-news__cats::-webkit-scrollbar {
		display: none;
	}

	.fdmc-news__listing,
	.fdmc-news-article__related {
		padding: 40px 20px;
		gap: 24px;
	}

	.fdmc-news__grid,
	.fdmc-news-article__related-grid {
		grid-template-columns: minmax(0, 1fr);
	}

	.fdmc-news__cta {
		padding: 40px 20px;
	}

	.fdmc-news__cta-btn {
		width: 100%;
	}

	.fdmc-news-article__layout {
		padding: 24px 20px;
	}

	.fdmc-news-article__hero {
		padding: 16px;
	}

	.fdmc-news-article__hero-panel {
		padding: 12px 16px;
		gap: 12px;
	}

	.fdmc-news-article__title {
		font-size: 24px;
		line-height: 32px;
	}

	.fdmc-news-article__content {
		padding: 0;
	}
}
