/* News archive and single-post presentation. */

.nb-news-page,
.nb-single-news {
	min-height: 70vh;
	background: #f5f6f8;
}

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

.nb-news-hero {
	padding: 54px 0 42px;
	background: #081c34;
	color: #fff;
}

.nb-news-title {
	margin: 0;
	color: #fff;
	font-size: clamp(34px, 5vw, 54px);
	line-height: 1.1;
}

.nb-news-description {
	max-width: 680px;
	margin: 14px 0 0;
	color: rgba(255, 255, 255, .78);
	font-size: 17px;
	line-height: 1.7;
}

.nb-news-content {
	padding: 56px 0 72px;
}

.nb-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.nb-news-card {
	overflow: hidden;
	margin: 0;
	border: 1px solid #e5e8ec;
	border-radius: 16px;
	background: #fff;
	box-shadow: 0 8px 24px rgba(8, 28, 52, .06);
	transition: transform .2s ease, box-shadow .2s ease;
}

.nb-news-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 14px 34px rgba(8, 28, 52, .12);
}

.nb-news-card__image {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #dfe4ea;
}

.nb-news-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .35s ease;
}

.nb-news-card:hover .nb-news-card__image img {
	transform: scale(1.04);
}

.nb-news-card__placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #081c34, #12345a);
	color: #d5ad4d;
	font-size: 30px;
	font-weight: 800;
	letter-spacing: 2px;
}

.nb-news-card__body {
	padding: 24px;
}

.nb-news-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 7px;
	margin-bottom: 12px;
	color: #78828d;
	font-size: 13px;
}

.nb-news-card__meta a {
	color: #a77d18;
	text-decoration: none;
}

.nb-news-card__title {
	margin: 0 0 13px;
	font-size: 21px;
	line-height: 1.35;
}

.nb-news-card__title a {
	color: #081c34;
	text-decoration: none;
}

.nb-news-card__title a:hover {
	color: #a77d18;
}

.nb-news-card__excerpt {
	margin-bottom: 20px;
	color: #606b76;
	font-size: 15px;
	line-height: 1.7;
}

.nb-news-card__more {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	color: #081c34;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
}

.nb-news-card__more:hover {
	color: #a77d18;
}

.nb-pagination {
	margin-top: 46px;
}

.nb-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.nb-pagination .page-numbers {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	height: 42px;
	padding: 0 14px;
	border: 1px solid #dfe3e8;
	border-radius: 8px;
	background: #fff;
	color: #081c34;
	text-decoration: none;
}

.nb-pagination .page-numbers.current,
.nb-pagination .page-numbers:hover {
	border-color: #081c34;
	background: #081c34;
	color: #fff;
}

.nb-news-empty {
	padding: 60px 30px;
	border-radius: 16px;
	background: #fff;
	text-align: center;
}

.nb-news-empty h2 {
	margin-top: 0;
	color: #081c34;
}

.nb-single-container {
	width: min(900px, calc(100% - 40px));
	margin: 0 auto;
}

.nb-single-header {
	padding: 48px 0 42px;
	background: #081c34;
	color: #fff;
}

.nb-single-category {
	display: inline-flex;
	margin-bottom: 15px;
	padding: 6px 11px;
	border-radius: 999px;
	background: #d5ad4d;
	color: #081c34;
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
	text-decoration: none;
	text-transform: uppercase;
}

.nb-single-title {
	max-width: 900px;
	margin: 0;
	color: #fff;
	font-size: clamp(32px, 5vw, 52px);
	line-height: 1.2;
}

.nb-single-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 9px;
	margin-top: 20px;
	color: rgba(255, 255, 255, .72);
	font-size: 14px;
}

.nb-single-body {
	padding-top: 46px;
	padding-bottom: 62px;
}

.nb-single-featured {
	overflow: hidden;
	margin: 0 0 38px;
	border-radius: 18px;
	background: #e2e6ea;
	box-shadow: 0 12px 35px rgba(8, 28, 52, .1);
}

.nb-single-featured img {
	display: block;
	width: 100%;
	height: auto;
}

.nb-single-content {
	padding: 38px 44px;
	border-radius: 18px;
	background: #fff;
	box-shadow: 0 8px 26px rgba(8, 28, 52, .06);
	color: #29343f;
	font-size: 17px;
	line-height: 1.85;
}

.nb-single-content > :first-child {
	margin-top: 0;
}

.nb-single-content > :last-child {
	margin-bottom: 0;
}

.nb-single-content h2,
.nb-single-content h3,
.nb-single-content h4 {
	color: #081c34;
	line-height: 1.35;
}

.nb-single-content h2 {
	margin-top: 42px;
	font-size: 29px;
}

.nb-single-content h3 {
	margin-top: 34px;
	font-size: 23px;
}

.nb-single-content img {
	max-width: 100%;
	height: auto;
	border-radius: 10px;
}

.nb-single-content a {
	color: #9a7112;
}

.nb-single-content blockquote {
	margin: 30px 0;
	padding: 18px 22px;
	border-left: 4px solid #d5ad4d;
	background: #f6f2e7;
	color: #38434d;
}

.nb-single-tags {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-top: 26px;
}

.nb-single-tags a {
	padding: 7px 11px;
	border-radius: 7px;
	background: #e8ebef;
	color: #081c34;
	font-size: 13px;
	text-decoration: none;
}

.nb-related-news {
	padding: 58px 0 72px;
	background: #fff;
}

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

.nb-related-heading {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 20px;
	margin-bottom: 28px;
}

.nb-related-heading h2 {
	margin: 0;
	color: #081c34;
	font-size: 30px;
}

.nb-related-heading > a {
	color: #9a7112;
	font-weight: 700;
	text-decoration: none;
}

.nb-related-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.nb-related-card {
	overflow: hidden;
	margin: 0;
	border: 1px solid #e5e8ec;
	border-radius: 14px;
	background: #fff;
}

.nb-related-card__image {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #e2e6ea;
}

.nb-related-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.nb-related-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: #081c34;
	color: #d5ad4d;
	font-weight: 800;
}

.nb-related-card__body {
	padding: 19px;
}

.nb-related-card__body time {
	color: #7b858f;
	font-size: 13px;
}

.nb-related-card__body h3 {
	margin: 9px 0 0;
	font-size: 18px;
	line-height: 1.4;
}

.nb-related-card__body h3 a {
	color: #081c34;
	text-decoration: none;
}

@media (max-width: 920px) {
	.nb-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 760px) {
	.nb-single-container,
	.nb-related-container {
		width: min(100% - 28px, 1180px);
	}

	.nb-single-header {
		padding: 36px 0 32px;
	}

	.nb-single-body {
		padding-top: 28px;
		padding-bottom: 42px;
	}

	.nb-single-featured {
		margin-bottom: 24px;
		border-radius: 12px;
	}

	.nb-single-content {
		padding: 24px 20px;
		border-radius: 12px;
		font-size: 16px;
		line-height: 1.75;
	}

	.nb-single-content h2 {
		font-size: 25px;
	}

	.nb-related-news {
		padding: 42px 0 52px;
	}

	.nb-related-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.nb-related-heading h2 {
		font-size: 25px;
	}
}

@media (max-width: 640px) {
	.nb-news-container {
		width: min(100% - 28px, 1180px);
	}

	.nb-news-hero {
		padding: 38px 0 32px;
	}

	.nb-news-content {
		padding: 34px 0 52px;
	}

	.nb-news-grid {
		grid-template-columns: 1fr;
		gap: 20px;
	}

	.nb-news-card__body {
		padding: 20px;
	}

	.nb-news-card__title {
		font-size: 19px;
	}
}
