/* Box Tin tức – shortcode [nbd_latest_news] */
.nbd-home-news {
	--nbd-news-navy: #0b2a5b;
	--nbd-news-blue: #167de0;
	--nbd-news-sky: #3fa9f5;
	--nbd-news-text: #365b86;
	--nbd-news-muted: #6f87a5;
	--nbd-news-line: #d9e7f4;
	position: relative;
	clear: both;
	width: 100%;
	margin: 0;
	padding: 24px 0;
	color: var(--nbd-news-text);
	font-family: var(--nbd-body-font, "Be Vietnam Pro", sans-serif);
	font-size: 13px;
	line-height: 1.55;
	isolation: isolate;
}

.nbd-home-news::before {
	position: absolute;
	inset: 0 auto 0 50%;
	z-index: -1;
	width: 100vw;
	max-width: 100vw;
	background:
		radial-gradient(circle at 4% 18%, rgba(63, 169, 245, 0.13) 0 34px, transparent 35px),
		radial-gradient(circle at 96% 82%, rgba(63, 169, 245, 0.1) 0 45px, transparent 46px),
		linear-gradient(135deg, #f9fcff, #eef7ff 52%, #f9fcff);
	transform: translateX(-50%);
	content: "";
}

.nbd-home-news *,
.nbd-home-news *::before,
.nbd-home-news *::after {
	box-sizing: border-box;
}

.nbd-news-shell {
	position: relative;
	margin: 0 auto;
}

.nbd-news-panel {
	padding: clamp(14px, 1.5vw, 22px);
	border: 1px solid rgba(215, 230, 245, 0.9);
	border-radius: 20px;
	background: rgba(255, 255, 255, 0.96);
	box-shadow: 0 14px 36px rgba(11, 42, 91, 0.09);
	overflow: hidden;
}

.nbd-news-header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 16px;
}

.nbd-news-heading {
	display: flex;
	align-items: center;
	gap: 13px;
	min-width: 0;
}

.nbd-news-heading__icon {
	position: relative;
	display: grid;
	flex: 0 0 52px;
	width: 52px;
	height: 52px;
	place-items: center;
	border-radius: 50%;
	background: linear-gradient(145deg, #eef8ff, #dbeeff);
	color: var(--nbd-news-navy);
}

.nbd-news-heading__icon::after {
	position: absolute;
	top: -5px;
	right: -9px;
	width: 16px;
	height: 4px;
	border-radius: 99px;
	background: #ffc400;
	box-shadow: 6px 8px 0 -1px #ffc400;
	transform: rotate(-58deg);
	content: "";
}

.nbd-news-heading__icon svg {
	width: 27px;
	height: 27px;
}

.nbd-news-heading h2,
.nbd-news-heading p {
	margin: 0 !important;
}

.nbd-news-heading h2 {
	color: var(--nbd-news-navy);
	font-family: var(--nbd-heading-font, "Manrope", sans-serif);
	font-size: clamp(26px, 2.4vw, 34px) !important;
	font-weight: 700 !important;
	line-height: 1.12 !important;
	letter-spacing: -0.025em;
	text-transform: uppercase;
}

.nbd-news-heading p {
	margin-top: 4px !important;
	color: #66809f;
	font-size: 13px;
	line-height: 1.5;
}

.nbd-news-actions,
.nbd-news-nav {
	display: flex;
	align-items: center;
}

.nbd-news-actions {
	flex: 0 0 auto;
	gap: 9px;
}

.nbd-news-nav {
	gap: 6px;
}

.nbd-news-nav button {
	display: grid;
	flex: 0 0 36px;
	width: 36px !important;
	min-width: 36px !important;
	max-width: 36px !important;
	height: 36px !important;
	min-height: 36px !important;
	max-height: 36px !important;
	margin: 0 !important;
	padding: 0 !important;
	aspect-ratio: 1 / 1;
	place-items: center;
	border: 1px solid #b8d7f0;
	border-radius: 50% !important;
	background: #fff;
	box-shadow: none;
	color: var(--nbd-news-navy);
	font-size: 21px;
	font-weight: 700;
	line-height: 1;
	cursor: pointer;
	transition: color 180ms ease, background-color 180ms ease, border-color 180ms ease, transform 180ms ease;
}

.nbd-news-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	min-height: 40px;
	margin: 0 !important;
	padding: 9px 17px;
	border-radius: 999px;
	background: linear-gradient(135deg, var(--nbd-news-navy), #2d79d6);
	box-shadow: 0 8px 18px rgba(11, 42, 91, 0.18);
	color: #fff !important;
	font-family: var(--nbd-heading-font, "Manrope", sans-serif);
	font-size: 11px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	white-space: nowrap;
	transition: transform 180ms ease, box-shadow 180ms ease;
}

.nbd-news-all svg {
	width: 16px;
	height: 16px;
}

.nbd-news-viewport {
	width: 100%;
	border-radius: 14px;
	overflow: hidden;
	touch-action: pan-y;
}

.nbd-news-viewport:focus-visible {
	outline: 2px solid var(--nbd-news-sky);
	outline-offset: 3px;
}

.nbd-news-track {
	display: flex;
	align-items: stretch;
	gap: 14px;
	transition: transform 440ms cubic-bezier(0.22, 0.61, 0.36, 1);
	will-change: transform;
}

.nbd-news-card {
	display: flex;
	flex: 0 0 calc((100% - 28px) / 3);
	flex-direction: column;
	min-width: 0;
	border: 1px solid var(--nbd-news-line);
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 8px 20px rgba(11, 42, 91, 0.06);
	overflow: hidden;
	transition: transform 200ms ease, border-color 200ms ease, box-shadow 200ms ease;
}

.nbd-news-card__media {
	position: relative;
	display: block;
	width: 100%;
	aspect-ratio: 16 / 10;
	background: #eaf4fd;
	overflow: hidden;
}

.nbd-news-card__media::after {
	position: absolute;
	inset: auto 0 0;
	height: 34%;
	background: linear-gradient(to top, rgba(11, 42, 91, 0.16), transparent);
	pointer-events: none;
	content: "";
}

.nbd-news-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center;
	transition: transform 320ms ease;
}

.nbd-news-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	align-content: center;
	gap: 8px;
	background: linear-gradient(135deg, #dceeff, #f5faff);
	color: var(--nbd-news-navy);
}

.nbd-news-card__placeholder svg {
	width: 42px;
	height: 42px;
}

.nbd-news-card__body {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	padding: 12px 13px 10px;
}

.nbd-news-card__label {
	display: inline-flex;
	align-self: flex-start;
	align-items: center;
	gap: 5px;
	max-width: 100%;
	margin-bottom: 9px;
	padding: 5px 9px;
	border-radius: 999px;
	background: #edf6ff;
	color: #2f72bb;
	font-size: 9px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0.02em;
	text-transform: uppercase;
}

.nbd-news-card__label svg {
	flex: 0 0 13px;
	width: 13px;
	height: 13px;
}

.nbd-news-card h3 {
	display: -webkit-box;
	min-height: 50px;
	margin: 0 !important;
	color: var(--nbd-news-navy);
	font-family: var(--nbd-heading-font, "Manrope", sans-serif);
	font-size: 17px !important;
	font-weight: 700 !important;
	line-height: 1.45 !important;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.nbd-news-card h3 a {
	color: inherit !important;
	text-decoration: none !important;
}

.nbd-news-card__body > p {
	display: -webkit-box;
	min-height: 61px;
	margin: 8px 0 0 !important;
	color: #6a7f99;
	font-size: 12.5px;
	line-height: 1.62;
	overflow: hidden;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.nbd-news-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	min-height: 47px;
	margin: 0 13px;
	padding: 9px 0;
	border-top: 1px solid #e2ebf4;
	color: #66809d;
	font-size: 9px;
}

.nbd-news-card__meta > span {
	display: inline-flex;
	align-items: center;
	gap: 5px;
	white-space: nowrap;
}

.nbd-news-card__meta svg {
	width: 14px;
	height: 14px;
	color: #246fbc;
}

.nbd-news-card__meta > a {
	display: grid;
	flex: 0 0 29px;
	width: 29px;
	height: 29px;
	margin-left: auto;
	place-items: center;
	border-radius: 50%;
	background: #edf6ff;
	color: var(--nbd-news-navy) !important;
}

.nbd-news-card__meta > a svg {
	width: 13px;
	height: 13px;
}

@media (hover: hover) and (pointer: fine) {
	.nbd-news-card:hover {
		border-color: rgba(63, 169, 245, 0.5);
		box-shadow: 0 14px 28px rgba(11, 42, 91, 0.12);
		transform: translateY(-4px);
	}

	.nbd-news-card:hover .nbd-news-card__media img {
		transform: scale(1.035);
	}

	.nbd-news-nav button:hover {
		border-color: var(--nbd-news-blue);
		background: var(--nbd-news-blue);
		color: #fff;
		transform: translateY(-1px);
	}

	.nbd-news-all:hover {
		box-shadow: 0 11px 24px rgba(11, 42, 91, 0.24);
		transform: translateY(-2px);
	}
}

@media (max-width: 900px) {
	.nbd-news-card {
		flex-basis: calc((100% - 14px) / 2);
	}
}

@media (max-width: 620px) {
	.nbd-home-news {
		padding: 16px 0;
	}

	.nbd-news-panel {
		padding: 10px;
		border-radius: 15px;
	}

	.nbd-news-header {
		align-items: flex-start;
		flex-direction: column;
		gap: 11px;
		margin-bottom: 12px;
	}

	.nbd-news-heading {
		gap: 10px;
	}

	.nbd-news-heading__icon {
		flex-basis: 42px;
		width: 42px;
		height: 42px;
	}

	.nbd-news-heading__icon svg {
		width: 23px;
		height: 23px;
	}

	.nbd-news-heading h2 {
		font-size: 24px !important;
	}

	.nbd-news-heading p {
		font-size: 11px;
	}

	.nbd-news-actions {
		width: 100%;
		justify-content: space-between;
	}

	.nbd-news-nav button {
		flex-basis: 34px;
		width: 34px !important;
		min-width: 34px !important;
		max-width: 34px !important;
		height: 34px !important;
		min-height: 34px !important;
		max-height: 34px !important;
	}

	.nbd-news-all {
		min-height: 36px;
		padding: 8px 14px;
		font-size: 10px;
	}

	.nbd-news-track {
		gap: 10px;
	}

	.nbd-news-card {
		flex-basis: 100%;
	}

	.nbd-news-card__body {
		padding: 11px;
	}

	.nbd-news-card h3 {
		min-height: 46px;
		font-size: 16px !important;
	}

	.nbd-news-card__body > p {
		min-height: 58px;
		font-size: 12px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.nbd-home-news *,
	.nbd-home-news *::before,
	.nbd-home-news *::after {
		transition: none !important;
	}
}
