:root {
	--nn-red: #d81926;
	--nn-red-dark: #a9101a;
	--nn-red-soft: #fff0f1;
	--nn-ink: #16191f;
	--nn-muted: #626a76;
	--nn-line: #e6e9ef;
	--nn-card: #ffffff;
	--nn-bg: #f6f8fb;
	--nn-blue: #1976d2;
	--nn-shadow: 0 18px 42px rgba(30, 38, 52, .10);
}

.nn88-light {
	margin: 0;
	min-height: 100vh;
	background:
		linear-gradient(180deg, #ffffff 0%, #f7f9fc 42%, #eef2f7 100%);
	color: var(--nn-ink);
	font-family: Arial, "Helvetica Neue", sans-serif;
	letter-spacing: 0;
}

.nn88-light * {
	box-sizing: border-box;
}

.nn88-light a {
	color: inherit;
	text-decoration: none;
}

.nn88-light img {
	display: block;
	max-width: 100%;
}

.nn88-shell {
	width: min(1180px, calc(100% - 40px));
	margin: 0 auto;
}

.nn88-header {
	position: sticky;
	top: 0;
	z-index: 20;
	background: rgba(255, 255, 255, .92);
	border-bottom: 1px solid rgba(218, 224, 235, .86);
	backdrop-filter: blur(14px);
}

.nn88-nav {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 76px;
	gap: 22px;
}

.nn88-logo {
	flex: 0 0 auto;
	font-size: 38px;
	line-height: 1;
	font-weight: 900;
	color: #2a2d34;
	text-shadow: 0 2px 0 #ffffff;
}

.nn88-logo span {
	color: var(--nn-red);
}

.nn88-menu {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 28px;
	font-size: 15px;
	font-weight: 700;
	color: #303641;
}

.nn88-menu a {
	position: relative;
	padding: 28px 0 25px;
	white-space: nowrap;
}

.nn88-menu a::after {
	position: absolute;
	left: 0;
	right: 0;
	bottom: 18px;
	height: 3px;
	background: var(--nn-red);
	border-radius: 999px;
	content: "";
	opacity: 0;
	transform: scaleX(.35);
	transition: .2s ease;
}

.nn88-menu a:hover,
.nn88-menu a.active {
	color: var(--nn-red);
}

.nn88-menu a:hover::after,
.nn88-menu a.active::after {
	opacity: 1;
	transform: scaleX(1);
}

.nn88-nav-actions {
	display: flex;
	align-items: center;
	gap: 10px;
}

.nn88-search {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 42px;
	height: 42px;
	border: 1px solid var(--nn-line);
	border-radius: 50%;
	background: #fff;
	color: #2c3440;
	box-shadow: 0 8px 20px rgba(20, 30, 45, .06);
}

.nn88-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid transparent;
	border-radius: 10px;
	font-weight: 800;
	font-size: 14px;
	white-space: nowrap;
	transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}

.nn88-btn:hover {
	transform: translateY(-1px);
	box-shadow: 0 12px 26px rgba(216, 25, 38, .18);
}

.nn88-btn-red {
	background: linear-gradient(135deg, #f0444f, var(--nn-red));
	color: #fff !important;
	border-color: var(--nn-red);
}

.nn88-btn-ghost,
.nn88-btn-light {
	background: #fff;
	color: #202633 !important;
	border-color: #cfd6e3;
}

.nn88-btn-large {
	min-height: 54px;
	padding: 0 24px;
	border-radius: 14px;
	font-size: 16px;
}

.nn88-hero {
	padding: 42px 0 28px;
	background:
		radial-gradient(circle at 75% 12%, rgba(216, 25, 38, .12), transparent 30%),
		linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}

.nn88-hero-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.02fr) minmax(420px, .98fr);
	gap: 34px;
	align-items: stretch;
}

.nn88-hero-copy {
	padding: 36px 0 24px;
}

.nn88-eyebrow,
.nn88-section-head p,
.nn88-title-row p {
	margin: 0 0 10px;
	color: var(--nn-red);
	font-size: 13px;
	font-weight: 900;
	text-transform: uppercase;
	letter-spacing: 0;
}

.nn88-hero-copy h1 {
	margin: 0;
	max-width: 680px;
	color: #141923;
	font-size: clamp(38px, 5vw, 70px);
	line-height: 1.04;
	font-weight: 900;
}

.nn88-lead {
	max-width: 620px;
	margin: 22px 0 0;
	color: #48515f;
	font-size: 19px;
	line-height: 1.72;
}

.nn88-actions {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-top: 28px;
}

.nn88-stats {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 14px;
	margin-top: 26px;
	max-width: 620px;
}

.nn88-stats div {
	padding: 18px;
	border: 1px solid var(--nn-line);
	border-radius: 16px;
	background: rgba(255, 255, 255, .86);
	box-shadow: 0 12px 28px rgba(25, 35, 55, .06);
}

.nn88-stats strong {
	display: block;
	color: var(--nn-red);
	font-size: 25px;
	font-weight: 900;
}

.nn88-stats span {
	display: block;
	margin-top: 4px;
	color: var(--nn-muted);
	font-size: 14px;
}

.nn88-hero-side {
	display: grid;
	grid-template-rows: 1fr auto;
	gap: 16px;
}

.nn88-hero-media {
	margin: 0;
	overflow: hidden;
	min-height: 360px;
	border: 1px solid #e1e6ef;
	border-radius: 26px;
	background: #fff;
	box-shadow: var(--nn-shadow);
}

.nn88-hero-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nn88-mini-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
}

.nn88-mini-grid article,
.nn88-panel,
.nn88-news,
.nn88-steps,
.nn88-guides,
.nn88-trust,
.nn88-article-card,
.nn88-sidebar .nn88-side-card {
	border: 1px solid var(--nn-line);
	border-radius: 22px;
	background: rgba(255, 255, 255, .94);
	box-shadow: var(--nn-shadow);
}

.nn88-mini-grid article {
	display: flex;
	gap: 14px;
	padding: 18px;
}

.nn88-mini-grid span,
.nn88-categories > a i,
.nn88-offer-grid i,
.nn88-guide-grid i,
.nn88-trust-grid i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex: 0 0 auto;
	width: 48px;
	height: 48px;
	border-radius: 15px;
	background: var(--nn-red-soft);
	color: var(--nn-red);
	font-size: 22px;
}

.nn88-mini-grid h3,
.nn88-categories b,
.nn88-offer-grid h3,
.nn88-guide-grid h3,
.nn88-trust-grid h3 {
	margin: 0;
	color: #18202d;
	font-size: 18px;
	font-weight: 900;
}

.nn88-mini-grid p,
.nn88-offer-grid p,
.nn88-guide-grid p,
.nn88-trust-grid p {
	margin: 6px 0 0;
	color: var(--nn-muted);
	font-size: 14px;
	line-height: 1.55;
}

.nn88-duo {
	display: grid;
	grid-template-columns: .74fr 1.26fr;
	gap: 24px;
	padding: 24px 0 12px;
}

.nn88-panel {
	padding: 26px;
}

.nn88-section-head h2,
.nn88-title-row h2 {
	margin: 0;
	color: #161b24;
	font-size: 30px;
	line-height: 1.2;
	font-weight: 900;
}

.nn88-section-head.centered {
	max-width: 760px;
	margin: 0 auto 24px;
	text-align: center;
}

.nn88-section-head.centered span {
	display: block;
	margin-top: 12px;
	color: var(--nn-muted);
	line-height: 1.7;
}

.nn88-categories {
	display: grid;
	gap: 12px;
	align-content: start;
}

.nn88-categories > a {
	display: grid;
	grid-template-columns: 48px minmax(0, 1fr) 18px;
	align-items: center;
	gap: 14px;
	padding: 14px;
	border: 1px solid #edf0f5;
	border-radius: 16px;
	background: #fff;
	transition: border-color .2s ease, transform .2s ease;
}

.nn88-categories > a:hover {
	border-color: rgba(216, 25, 38, .35);
	transform: translateY(-1px);
}

.nn88-categories small {
	display: block;
	margin-top: 4px;
	color: var(--nn-muted);
	line-height: 1.4;
}

.nn88-categories em {
	color: var(--nn-red);
}

.nn88-offer-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 16px;
	margin-top: 18px;
}

.nn88-offer-grid article,
.nn88-guide-grid article,
.nn88-trust-grid article {
	padding: 24px;
	border: 1px solid #edf0f5;
	border-radius: 18px;
	background:
		linear-gradient(180deg, #ffffff 0%, #fbfcfe 100%);
}

.nn88-offer-grid h3,
.nn88-guide-grid h3,
.nn88-trust-grid h3 {
	margin-top: 18px;
}

.nn88-offer-grid a,
.nn88-guide-grid a,
.nn88-read {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin-top: 14px;
	color: var(--nn-red);
	font-weight: 900;
}

.nn88-news,
.nn88-steps,
.nn88-guides,
.nn88-trust {
	margin-top: 24px;
	padding: 28px;
}

.nn88-title-row {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 18px;
	margin-bottom: 22px;
}

.nn88-title-row > a {
	display: inline-flex;
	align-items: center;
	min-height: 42px;
	padding: 0 18px;
	border: 1px solid #ccd4e1;
	border-radius: 12px;
	background: #fff;
	color: #1f2632;
	font-weight: 800;
}

.nn88-news-grid {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(360px, .95fr);
	grid-template-rows: repeat(3, minmax(128px, auto));
	gap: 16px;
}

.nn88-news-grid:empty::before {
	display: flex;
	align-items: center;
	justify-content: center;
	min-height: 240px;
	grid-column: 1 / -1;
	border: 1px dashed #cbd3df;
	border-radius: 18px;
	background: #fafbfe;
	color: var(--nn-muted);
	font-weight: 700;
	text-align: center;
	content: "Khu vực bài viết NN88 sẽ tự động hiển thị sau khi bạn cập nhật và tạo bài trong hệ thống.";
}

.nn88-news-card {
	display: grid;
	grid-template-columns: 170px minmax(0, 1fr);
	overflow: hidden;
	border: 1px solid #edf0f5;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 14px 30px rgba(25, 35, 55, .06);
}

.nn88-news-card:first-child {
	grid-row: 1 / span 3;
	grid-template-columns: 1fr;
}

.nn88-news-media {
	min-height: 150px;
	background: linear-gradient(135deg, #f3f6fb, #fff0f1);
}

.nn88-news-card:first-child .nn88-news-media {
	min-height: 320px;
}

.nn88-news-media img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nn88-news-body {
	padding: 18px;
}

.nn88-news-body time,
.nn88-news-body span {
	display: inline-flex;
	margin: 0 8px 10px 0;
	color: var(--nn-red);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.nn88-news-body h3 {
	margin: 0;
	color: #171d28;
	font-size: 20px;
	line-height: 1.28;
	font-weight: 900;
}

.nn88-news-card:first-child h3 {
	font-size: 28px;
}

.nn88-news-body p {
	margin: 10px 0 0;
	color: var(--nn-muted);
	font-size: 14px;
	line-height: 1.62;
}

.nn88-page-list {
	margin-top: 18px;
}

.nn88-page-list li {
	list-style: none;
}

.nn88-steps {
	position: relative;
	overflow: hidden;
}

.nn88-step-grid {
	position: relative;
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 18px;
}

.nn88-step-grid::before {
	position: absolute;
	left: 10%;
	right: 10%;
	top: 35px;
	height: 2px;
	background: linear-gradient(90deg, transparent, rgba(216, 25, 38, .45), transparent);
	content: "";
}

.nn88-step-grid article {
	position: relative;
	z-index: 1;
	text-align: center;
}

.nn88-step-grid b {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 70px;
	height: 70px;
	border: 8px solid #fff;
	border-radius: 50%;
	background: var(--nn-red);
	color: #fff;
	font-size: 24px;
	box-shadow: 0 8px 22px rgba(216, 25, 38, .25);
}

.nn88-step-grid i {
	display: block;
	margin-top: 18px;
	color: var(--nn-red);
	font-size: 30px;
}

.nn88-step-grid h3 {
	margin: 12px 0 0;
	font-weight: 900;
}

.nn88-step-grid p {
	margin: 8px auto 0;
	max-width: 210px;
	color: var(--nn-muted);
	line-height: 1.55;
}

.nn88-guide-grid,
.nn88-trust-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px;
}

.nn88-trust-grid {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.nn88-footer {
	margin-top: 42px;
	padding: 34px 0 18px;
	background: #eef2f7;
	border-top: 1px solid #dce2ec;
}

.nn88-footer-grid {
	display: grid;
	grid-template-columns: 1.25fr .8fr .8fr 1fr;
	gap: 28px;
}

.footer-logo {
	display: inline-flex;
	margin-bottom: 14px;
}

.nn88-footer p {
	margin: 0;
	color: var(--nn-muted);
	line-height: 1.7;
}

.nn88-footer h3 {
	margin: 4px 0 14px;
	font-size: 17px;
	font-weight: 900;
}

.nn88-footer a {
	display: block;
	margin: 8px 0;
	color: #46505f;
}

.nn88-social {
	display: flex;
	gap: 10px;
	margin-top: 18px;
}

.nn88-social i {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	background: #fff;
	color: var(--nn-red);
	box-shadow: 0 8px 18px rgba(25, 35, 55, .08);
}

.nn88-pay {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 10px;
}

.nn88-pay span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 38px;
	border: 1px solid #d6deea;
	border-radius: 10px;
	background: #fff;
	color: #333b48;
	font-weight: 900;
}

.nn88-footer-bottom {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-top: 26px;
	padding-top: 18px;
	border-top: 1px solid #d9e0eb;
	color: #697383;
	font-size: 14px;
}

.nn88-footer-bottom span:last-child {
	padding: 8px 14px;
	border: 1px solid #cbd4e2;
	border-radius: 999px;
	background: #fff;
}

.nn88-article-hero {
	padding: 44px 0 54px;
	background:
		radial-gradient(circle at 88% 10%, rgba(216, 25, 38, .12), transparent 28%),
		linear-gradient(135deg, #ffffff 0%, #f4f7fb 100%);
	border-bottom: 1px solid #e5ebf4;
}

.nn88-breadcrumb {
	margin-bottom: 20px;
	color: var(--nn-muted);
	font-size: 14px;
}

.nn88-breadcrumb a {
	color: var(--nn-red);
}

.nn88-article-hero h1 {
	max-width: 900px;
	margin: 0;
	color: #151b25;
	font-size: clamp(34px, 4.6vw, 58px);
	line-height: 1.12;
	font-weight: 900;
}

.nn88-article-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
	margin-top: 20px;
	color: #566170;
}

.nn88-article-meta span {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 9px 12px;
	border: 1px solid #dce3ee;
	border-radius: 999px;
	background: #fff;
}

.nn88-article-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 330px;
	gap: 24px;
	margin-top: 28px;
}

.nn88-article-card {
	padding: 30px;
}

.nn88-article-title h2 {
	margin: 0;
	font-size: 28px;
	font-weight: 900;
}

.nn88-article-title p,
.nn88-updated {
	margin: 10px 0 0;
	color: var(--nn-muted);
}

.nn88-article-content {
	margin-top: 24px;
	color: #242b37;
	font-size: 17px;
	line-height: 1.82;
}

.nn88-article-content img {
	height: auto;
	border-radius: 16px;
	margin: 18px 0;
}

.nn88-article-content h2,
.nn88-article-content h3 {
	margin-top: 28px;
	font-weight: 900;
}

.nn88-pagebreak {
	margin-top: 22px;
}

.nn88-prev-next {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 14px;
	margin-top: 24px;
	padding-top: 20px;
	border-top: 1px solid var(--nn-line);
}

.nn88-prev-next > div {
	padding: 14px;
	border: 1px solid #e5e9f1;
	border-radius: 14px;
	background: #fbfcfe;
}

.nn88-sidebar {
	display: grid;
	gap: 18px;
	align-content: start;
}

.nn88-side-card {
	padding: 22px;
}

.nn88-side-card h3 {
	margin: 0 0 12px;
	font-weight: 900;
}

.nn88-side-card p {
	color: var(--nn-muted);
	line-height: 1.65;
}

.nn88-side-card > a,
.nn88-related a {
	display: flex;
	align-items: center;
	gap: 10px;
	padding: 11px 0;
	border-bottom: 1px solid #edf0f5;
	color: #2c3440;
	font-weight: 800;
}

.nn88-side-card > a:last-child,
.nn88-related a:last-child {
	border-bottom: 0;
}

.nn88-side-card > a i {
	color: var(--nn-red);
}

@media (max-width: 1080px) {
	.nn88-menu {
		gap: 16px;
		font-size: 14px;
	}

	.nn88-hero-grid,
	.nn88-duo,
	.nn88-article-layout {
		grid-template-columns: 1fr;
	}

	.nn88-hero-copy {
		padding-top: 18px;
	}

	.nn88-hero-media {
		min-height: 320px;
	}
}

@media (max-width: 820px) {
	.nn88-shell {
		width: min(100% - 28px, 1180px);
	}

	.nn88-nav {
		flex-wrap: wrap;
		padding: 14px 0;
	}

	.nn88-logo {
		font-size: 34px;
	}

	.nn88-menu {
		order: 3;
		width: 100%;
		justify-content: flex-start;
		flex-wrap: wrap;
		gap: 6px 16px;
		padding-bottom: 2px;
	}

	.nn88-menu a {
		padding: 10px 0 14px;
	}

	.nn88-menu a::after {
		bottom: 5px;
	}

	.nn88-nav-actions {
		margin-left: auto;
	}

	.nn88-search,
	.nn88-btn-ghost {
		display: none;
	}

	.nn88-hero {
		padding-top: 26px;
	}

	.nn88-hero-copy h1 {
		font-size: 38px;
	}

	.nn88-lead {
		font-size: 16px;
	}

	.nn88-stats,
	.nn88-mini-grid,
	.nn88-offer-grid,
	.nn88-guide-grid,
	.nn88-trust-grid,
	.nn88-step-grid,
	.nn88-footer-grid,
	.nn88-news-grid {
		grid-template-columns: 1fr;
	}

	.nn88-news-grid {
		grid-template-rows: auto;
	}

	.nn88-news-card,
	.nn88-news-card:first-child {
		grid-template-columns: 1fr;
		grid-row: auto;
	}

	.nn88-news-card:first-child .nn88-news-media,
	.nn88-news-media {
		min-height: 220px;
	}

	.nn88-step-grid::before {
		display: none;
	}

	.nn88-title-row {
		align-items: flex-start;
		flex-direction: column;
	}

	.nn88-footer-bottom,
	.nn88-prev-next {
		flex-direction: column;
		display: flex;
		align-items: flex-start;
	}
}

@media (max-width: 520px) {
	.nn88-shell {
		width: min(100% - 22px, 1180px);
	}

	.nn88-hero-copy h1,
	.nn88-article-hero h1 {
		font-size: 32px;
	}

	.nn88-btn-large {
		width: 100%;
	}

	.nn88-actions {
		width: 100%;
	}

	.nn88-hero-media {
		min-height: 240px;
		border-radius: 18px;
	}

	.nn88-panel,
	.nn88-news,
	.nn88-steps,
	.nn88-guides,
	.nn88-trust,
	.nn88-article-card,
	.nn88-sidebar .nn88-side-card {
		padding: 18px;
		border-radius: 18px;
	}

	.nn88-section-head h2,
	.nn88-title-row h2 {
		font-size: 24px;
	}

	.nn88-news-card:first-child h3 {
		font-size: 22px;
	}
}
