/**
 * Hero — full width, blur panel trái, pagination nâng cấp.
 */
.ntm-section-hero {
	padding: 0;
	width: 100vw;
	max-width: 100vw;
	margin-left: calc(50% - 50vw);
	margin-right: calc(50% - 50vw);
}

.ntm-home .ntm-section-hero {
	overflow: hidden;
}

.ntm-hero {
	position: relative;
	min-height: clamp(460px, 72vh, 680px);
	overflow: hidden;
}

.ntm-hero__slides {
	position: relative;
	min-height: inherit;
}

.ntm-hero__slide {
	position: absolute;
	inset: 0;
	opacity: 0;
	visibility: hidden;
	transition: opacity 0.65s ease, visibility 0.65s ease;
}

.ntm-hero__slide.is-active {
	opacity: 1;
	visibility: visible;
	position: relative;
}

.ntm-hero__bg {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center right;
	transform: scale(1.02);
	transition: transform 8s ease;
}

.ntm-hero__slide.is-active .ntm-hero__bg {
	transform: scale(1);
}

/* Lớp phủ mờ dần nhẹ — không có cạnh cắt / khung box */
.ntm-hero__shade {
	position: absolute;
	inset: 0;
	pointer-events: none;
	z-index: 1;
	background: linear-gradient(
		90deg,
		rgba(255, 255, 255, 0.88) 0%,
		rgba(255, 255, 255, 0.72) 14%,
		rgba(255, 255, 255, 0.48) 28%,
		rgba(255, 255, 255, 0.22) 42%,
		rgba(255, 255, 255, 0.06) 54%,
		rgba(255, 255, 255, 0) 66%
	);
}

/* Blur nhẹ chỉ vùng trái — mask fade để không thấy đường chia */
.ntm-hero__shade::after {
	content: '';
	position: absolute;
	inset: 0;
	backdrop-filter: blur(10px);
	-webkit-backdrop-filter: blur(10px);
	mask-image: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.85) 0%,
		rgba(0, 0, 0, 0.5) 22%,
		rgba(0, 0, 0, 0.15) 40%,
		rgba(0, 0, 0, 0) 58%
	);
	-webkit-mask-image: linear-gradient(
		90deg,
		rgba(0, 0, 0, 0.85) 0%,
		rgba(0, 0, 0, 0.5) 22%,
		rgba(0, 0, 0, 0.15) 40%,
		rgba(0, 0, 0, 0) 58%
	);
}

.ntm-hero__inner {
	position: relative;
	z-index: 2;
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	gap: 32px;
	align-items: center;
	min-height: inherit;
	width: var(--ntm-home-container);
	max-width: 100%;
	margin: 0 auto;
	padding: 56px 16px;
}

.ntm-hero__panel {
	position: relative;
	max-width: 580px;
	padding: 0;
}

.ntm-hero__content {
	position: relative;
}

.ntm-hero__badge {
	display: inline-block;
	padding: 7px 16px;
	border-radius: 999px;
	background: var(--primary-color);
	color: #fff !important;
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	margin-bottom: 18px;
}

.ntm-hero__title {
	margin: 0 0 14px;
	font-size: clamp(1.9rem, 4.2vw, 3rem);
	line-height: 1.12;
	font-weight: 700;
	color: var(--primary-color) !important;
	text-transform: uppercase;
	max-width: 14ch;
}

.ntm-hero__subtitle,
.ntm-hero__desc {
	margin: 0 0 8px;
	color: #3a3a3a;
	font-size: 1rem;
	line-height: 1.55;
}

.ntm-hero__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 28px;
}

.ntm-hero__features {
	background: rgba(255, 255, 255, 0.96);
	border-radius: var(--ntm-home-radius);
	box-shadow: var(--ntm-home-shadow);
	padding: 8px 0;
	min-width: 230px;
	backdrop-filter: blur(6px);
}

.ntm-hero__feature {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 22px;
	border-bottom: 1px solid #edf1f1;
	color: inherit;
	text-decoration: none;
	transition: background 0.2s ease;
}

.ntm-hero__feature:last-child {
	border-bottom: 0;
}

.ntm-hero__feature:hover {
	background: color-mix(in srgb, var(--primary-color) 6%, #fff);
}

.ntm-hero__feature-icon {
	display: inline-flex;
	width: 30px;
	height: 30px;
	color: var(--primary-color);
	flex-shrink: 0;
}

.ntm-hero__feature-icon svg {
	width: 100%;
	height: 100%;
}

.ntm-hero__feature strong {
	display: block;
	color: var(--primary-color) !important;
	font-size: 0.95rem;
}

.ntm-hero__feature span {
	display: block;
	color: var(--ntm-color-muted);
	font-size: 0.82rem;
}

/* Pagination — bullet + progress + số thứ tự */
.ntm-hero__pagination {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-top: 34px;
}

.ntm-hero__bullet {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	border: 0;
	background: transparent;
	cursor: pointer;
	padding: 0;
	color: color-mix(in srgb, var(--primary-color) 45%, #999);
	transition: color 0.25s ease;
}

.ntm-hero__bullet-track {
	display: block;
	width: 42px;
	height: 3px;
	border-radius: 999px;
	background: color-mix(in srgb, var(--primary-color) 18%, #e5eaea);
	overflow: hidden;
}

.ntm-hero__bullet-fill {
	display: block;
	width: 0;
	height: 100%;
	border-radius: inherit;
	background: var(--primary-color);
}

.ntm-hero__bullet.is-active {
	color: var(--primary-color);
}

.ntm-hero__bullet.is-active .ntm-hero__bullet-track {
	width: 56px;
}

.ntm-hero__bullet.is-active .ntm-hero__bullet-fill {
	animation: ntm-hero-progress var(--ntm-hero-autoplay, 6s) linear forwards;
}

.ntm-hero__bullet-num {
	font-size: 0.72rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	opacity: 0.7;
}

.ntm-hero__bullet.is-active .ntm-hero__bullet-num {
	opacity: 1;
}

@keyframes ntm-hero-progress {
	from {
		width: 0;
	}
	to {
		width: 100%;
	}
}

@media (max-width: 992px) {
	.ntm-hero__inner {
		grid-template-columns: 1fr;
		padding-bottom: 40px;
	}

	.ntm-hero__panel {
		max-width: none;
	}

	.ntm-hero__shade {
		background: linear-gradient(
			180deg,
			rgba(255, 255, 255, 0.9) 0%,
			rgba(255, 255, 255, 0.55) 45%,
			rgba(255, 255, 255, 0.1) 70%,
			rgba(255, 255, 255, 0) 100%
		);
	}

	.ntm-hero__shade::after {
		mask-image: linear-gradient(
			180deg,
			rgba(0, 0, 0, 0.7) 0%,
			rgba(0, 0, 0, 0.2) 50%,
			rgba(0, 0, 0, 0) 75%
		);
		-webkit-mask-image: linear-gradient(
			180deg,
			rgba(0, 0, 0, 0.7) 0%,
			rgba(0, 0, 0, 0.2) 50%,
			rgba(0, 0, 0, 0) 75%
		);
	}

	.ntm-hero__features {
		display: none;
	}

	.ntm-hero__bg {
		background-position: center;
	}
}

@media (max-width: 560px) {
	.ntm-hero {
		min-height: 520px;
	}

	.ntm-hero__pagination {
		gap: 10px;
		flex-wrap: wrap;
	}
}
