:root {
	--nbtema-green: #118a19;
	--nbtema-green-dark: #0b6512;
	--nbtema-text: #111827;
	--nbtema-muted: #64748b;
	--nbtema-border: rgba(15, 23, 42, 0.1);
	--nbtema-soft: #f6f8f7;
	--nbtema-card-shadow: 0 14px 32px rgba(15, 23, 42, 0.08);
}

.nbtema-skip-link {
	position: fixed;
	top: 10px;
	left: 10px;
	z-index: 100000;
	transform: translateY(-160%);
	padding: 10px 14px;
	border-radius: 8px;
	background: var(--nbtema-green);
	color: #fff;
	font-weight: 800;
}

.nbtema-skip-link:focus {
	transform: translateY(0);
	color: #fff;
}

.nbtema-editorial-block,
.nbtema-topic-nav,
.nbtema-ad-wrap.newsx-container {
	margin-top: 28px;
	margin-bottom: 28px;
}

.nbtema-section-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 16px;
	border-bottom: 2px solid var(--nbtema-green);
}

.nbtema-section-heading h2 {
	display: inline-flex;
	margin: 0;
	padding: 9px 18px;
	border-radius: 0 8px 0 0;
	background: var(--nbtema-green);
	color: #fff;
	font-size: 16px;
	font-weight: 900;
	line-height: 1.2;
	text-transform: uppercase;
}

.nbtema-section-heading a {
	color: var(--nbtema-green-dark);
	font-size: 12px;
	font-weight: 900;
	text-transform: uppercase;
}

.nbtema-card-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 18px;
}

.nbtema-post-card {
	overflow: hidden;
	border: 1px solid var(--nbtema-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--nbtema-card-shadow);
}

.nbtema-post-card__media {
	display: block;
	overflow: hidden;
	background: #e2e8f0;
}

.nbtema-post-card__media img,
.nbtema-post-card__placeholder {
	display: block;
	width: 100%;
	aspect-ratio: 3 / 2;
	object-fit: cover;
	transition: transform 0.25s ease;
}

.nbtema-post-card:hover .nbtema-post-card__media img {
	transform: scale(1.035);
}

.nbtema-post-card__placeholder {
	background: linear-gradient(135deg, #dbe7dc, #f1f5f9);
}

.nbtema-post-card__body {
	padding: 14px;
}

.nbtema-post-card__cat {
	display: inline-flex;
	margin-bottom: 8px;
	padding: 5px 9px;
	border-radius: 6px;
	background: var(--nbtema-green);
	color: #fff;
	font-size: 11px;
	font-weight: 800;
	line-height: 1;
}

.nbtema-post-card__cat:hover {
	color: #fff;
	background: var(--nbtema-green-dark);
}

.nbtema-post-card__title {
	margin: 0 0 10px;
	font-size: 18px;
	font-weight: 900;
	line-height: 1.25;
	letter-spacing: 0;
}

.nbtema-post-card__title a {
	color: var(--nbtema-text);
}

.nbtema-post-card__title a:hover {
	color: var(--nbtema-green);
}

.nbtema-post-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	color: var(--nbtema-muted);
	font-size: 12px;
	font-weight: 700;
}

.nbtema-editorial-block--split {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 20px;
}

.nbtema-split-panel {
	padding: 18px;
	border: 1px solid var(--nbtema-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--nbtema-card-shadow);
}

.nbtema-ranked-list {
	margin: 0;
	padding: 0;
	list-style: none;
	counter-reset: nbtema-rank;
}

.nbtema-ranked-list li {
	display: grid;
	grid-template-columns: 34px minmax(0, 1fr);
	gap: 10px;
	align-items: start;
	padding: 12px 0;
	border-bottom: 1px solid var(--nbtema-border);
	counter-increment: nbtema-rank;
}

.nbtema-ranked-list li:last-child {
	border-bottom: 0;
}

.nbtema-ranked-list li::before {
	content: counter(nbtema-rank);
	display: inline-grid;
	place-items: center;
	width: 30px;
	height: 30px;
	border-radius: 8px;
	background: var(--nbtema-soft);
	color: var(--nbtema-green);
	font-weight: 900;
}

.nbtema-ranked-list a {
	color: var(--nbtema-text);
	font-size: 15px;
	font-weight: 850;
	line-height: 1.35;
}

.nbtema-ranked-list span {
	grid-column: 2;
	color: var(--nbtema-muted);
	font-size: 12px;
}

.nbtema-topic-nav {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px;
	padding: 14px;
	border: 1px solid var(--nbtema-border);
	border-radius: 8px;
	background: var(--nbtema-soft);
}

.nbtema-topic-nav strong {
	margin-right: 4px;
	color: var(--nbtema-text);
	font-weight: 900;
}

.nbtema-topic-nav a {
	padding: 7px 10px;
	border-radius: 999px;
	background: #fff;
	color: var(--nbtema-green-dark);
	font-size: 13px;
	font-weight: 800;
	box-shadow: 0 1px 0 rgba(15, 23, 42, 0.06);
}

.nbtema-ad-wrap {
	clear: both;
}

.nbtema-ad-slot {
	display: grid;
	place-items: center;
	min-height: 90px;
	padding: 14px;
	border: 1px dashed rgba(17, 138, 25, 0.35);
	border-radius: 8px;
	background: #fbfff9;
	text-align: center;
}

.nbtema-ad-wrap--article {
	margin: 24px 0;
}

.nbtema-ad-wrap--sidebar {
	position: sticky;
	top: 18px;
	margin-top: 18px;
}

.nbtema-ad-wrap--mobile-sticky {
	display: none;
}

.nbtema-single-meta-extras,
.nbtema-article-trust {
	display: flex;
	flex-wrap: wrap;
	gap: 8px 12px;
	align-items: center;
}

.nbtema-single-meta-extras {
	margin-top: 8px;
	color: var(--nbtema-muted);
	font-size: 13px;
	font-weight: 800;
}

.nbtema-single-meta-extras span,
.nbtema-article-trust span {
	display: inline-flex;
	align-items: center;
	min-height: 28px;
	padding: 5px 9px;
	border-radius: 999px;
	background: var(--nbtema-soft);
}

.nbtema-article-trust {
	margin-top: 28px;
	padding: 16px;
	border: 1px solid var(--nbtema-border);
	border-radius: 8px;
	background: #fff;
	box-shadow: var(--nbtema-card-shadow);
}

.nbtema-article-trust strong {
	margin-right: 4px;
	color: var(--nbtema-green-dark);
	font-weight: 900;
}

.newsx-post-content {
	font-size: clamp(17px, 1.4vw, 19px);
	line-height: 1.75;
}

.newsx-post-content p {
	margin-bottom: 1.15em;
}

.newsx-post-content a {
	text-decoration-thickness: 0.08em;
	text-underline-offset: 0.18em;
}

.nbtema-table-wrap {
	max-width: 100%;
	overflow-x: auto;
	margin: 22px 0;
}

.nbtema-table-wrap table {
	min-width: 620px;
}

.newsx-single-post-header h1 {
	letter-spacing: 0;
}

.newsx-grid-media,
.newsx-post-image,
.newsx-single-post-media,
.newsx-featured-image {
	overflow: hidden;
	border-radius: 8px;
}

@media screen and (max-width: 1024px) {
	.nbtema-card-grid,
	.nbtema-editorial-block--split {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.newsx-header-section,
	.newsx-header-section .newsx-container,
	.newsx-builder-grid-row {
		max-width: 100%;
	}
}

@media screen and (max-width: 768px) {
	.nbtema-editorial-block,
	.nbtema-topic-nav,
	.nbtema-ad-wrap.newsx-container {
		margin-top: 20px;
		margin-bottom: 20px;
	}

	.nbtema-card-grid,
	.nbtema-editorial-block--split {
		grid-template-columns: 1fr;
		gap: 14px;
	}

	.nbtema-section-heading {
		align-items: stretch;
	}

	.nbtema-section-heading h2 {
		font-size: 14px;
	}

	.nbtema-post-card__title {
		font-size: 17px;
	}

	.newsx-single-post-header h1 {
		font-size: clamp(28px, 8vw, 38px);
		line-height: 1.12;
	}

	.newsx-post-content {
		font-size: 17px;
		line-height: 1.7;
	}

	.newsx-row-inner,
	.newsx-single-inner {
		gap: 18px;
	}

	.nbtema-ad-wrap--mobile-sticky {
		position: fixed;
		right: 10px;
		bottom: 10px;
		left: 10px;
		z-index: 9990;
		display: block;
	}

	.nbtema-ad-wrap--mobile-sticky .nbtema-ad-slot {
		min-height: 54px;
		padding: 8px;
		box-shadow: 0 12px 30px rgba(15, 23, 42, 0.22);
	}

	body.nbtema-has-mobile-sticky-ad {
		padding-bottom: 76px;
	}
}

@media screen and (max-width: 520px) {
	.nbtema-topic-nav {
		align-items: flex-start;
		flex-direction: column;
	}

	.nbtema-topic-nav a {
		width: 100%;
	}

	.nbtema-article-trust,
	.nbtema-single-meta-extras {
		align-items: flex-start;
		flex-direction: column;
	}
}
