/* ==================================================
   BLOG PAGE FOUNDATION
================================================== */

.ns-blog-page {
	overflow: hidden;
	background: #f7f9fc;
	color: #122b49;
	font-family: "Poppins", sans-serif;
}

.ns-blog-page *,
.ns-blog-page *::before,
.ns-blog-page *::after {
	box-sizing: border-box;
}

.ns-blog-container {
	width: min(1160px, calc(100% - 40px));
	margin-inline: auto;
}

.ns-blog-page h1,
.ns-blog-page h2 {
	font-family: "Montserrat", sans-serif;
}


/* ==================================================
   BLOG HERO
================================================== */

.ns-blog-hero {
	padding: 115px 0 90px;
	background: #082d57;
}

.ns-blog-hero__content {
	max-width: 760px;
}

.ns-blog-eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 10px;
	margin-bottom: 17px;
	color: #e4b019;
	font-family: "Montserrat", sans-serif;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.14em;
	text-transform: uppercase;
}

.ns-blog-eyebrow::before {
	width: 22px;
	height: 2px;
	background: currentColor;
	content: "";
}

.ns-blog-hero h1 {
	max-width: 780px;
	margin: 0 0 22px;
	color: #ffffff;
	font-size: clamp(42px, 5.5vw, 68px);
	font-weight: 750;
	line-height: 1.06;
	letter-spacing: -0.045em;
}

.ns-blog-hero p {
	max-width: 650px;
	margin: 0;
	color: rgba(255, 255, 255, 0.7);
	font-size: 16px;
	line-height: 1.8;
}


/* ==================================================
   BLOG POSTS
================================================== */

.ns-blog-posts {
	padding: 95px 0;
}

.ns-blog-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 26px;
}

.ns-blog-card {
	overflow: hidden;
	background: #ffffff;
	border: 1px solid rgba(18, 43, 73, 0.08);
	border-radius: 20px;
	box-shadow: 0 18px 50px rgba(22, 47, 79, 0.07);
	transition:
		transform 0.3s ease,
		box-shadow 0.3s ease;
}

.ns-blog-card:hover {
	box-shadow: 0 26px 65px rgba(22, 47, 79, 0.12);
	transform: translateY(-5px);
}

.ns-blog-card__image {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 10;
	background: #eaf0f7;
}

.ns-blog-card__image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.ns-blog-card:hover .ns-blog-card__image img {
	transform: scale(1.04);
}

.ns-blog-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	background:
		linear-gradient(
			135deg,
			#0a3767,
			#1263a8
		);
	place-items: center;
}

.ns-blog-card__placeholder span {
	color: rgba(255, 255, 255, 0.75);
	font-family: "Montserrat", sans-serif;
	font-size: 13px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ns-blog-card__content {
	padding: 25px;
}

.ns-blog-card__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px;
	margin-bottom: 14px;
	color: #8a96a6;
	font-size: 10px;
	font-weight: 650;
	text-transform: uppercase;
}

.ns-blog-card__meta-dot {
	width: 4px;
	height: 4px;
	background: #d6a208;
	border-radius: 50%;
}

.ns-blog-card__title {
	margin: 0 0 13px;
	font-size: 20px;
	font-weight: 750;
	line-height: 1.4;
	letter-spacing: -0.025em;
}

.ns-blog-card__title a {
	color: #102b4e;
	text-decoration: none;
}

.ns-blog-card__title a:hover {
	color: #145c9e;
}

.ns-blog-card__excerpt {
	margin: 0 0 20px;
	color: #6c7b8f;
	font-size: 13px;
	line-height: 1.75;
}

.ns-blog-card__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: #104d87;
	font-size: 12px;
	font-weight: 750;
	text-decoration: none;
}

.ns-blog-card__link:hover {
	color: #c58f00;
}


/* ==================================================
   BLOG PAGINATION
================================================== */

.ns-blog-pagination {
	margin-top: 55px;
}

.ns-blog-pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
}

.ns-blog-pagination .page-numbers {
	display: inline-flex;
	min-width: 42px;
	height: 42px;
	align-items: center;
	justify-content: center;
	padding: 0 13px;
	background: #ffffff;
	border: 1px solid rgba(18, 43, 73, 0.1);
	border-radius: 10px;
	color: #173b63;
	font-size: 12px;
	font-weight: 700;
	text-decoration: none;
}

.ns-blog-pagination .page-numbers.current,
.ns-blog-pagination .page-numbers:hover {
	background: #104d87;
	border-color: #104d87;
	color: #ffffff;
}


/* ==================================================
   EMPTY BLOG STATE
================================================== */

.ns-blog-empty {
	max-width: 680px;
	margin-inline: auto;
	padding: 70px 35px;
	background: #ffffff;
	border: 1px solid rgba(18, 43, 73, 0.08);
	border-radius: 22px;
	box-shadow: 0 20px 55px rgba(22, 47, 79, 0.07);
	text-align: center;
}

.ns-blog-empty__label {
	display: block;
	margin-bottom: 14px;
	color: #d19c08;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.12em;
	text-transform: uppercase;
}

.ns-blog-empty h2 {
	margin: 0 0 15px;
	color: #102b4e;
	font-size: 32px;
}

.ns-blog-empty p {
	max-width: 520px;
	margin: 0 auto;
	color: #6c7b8f;
	font-size: 14px;
	line-height: 1.8;
}


/* ==================================================
   BLOG CTA
================================================== */

.ns-blog-cta {
	padding: 0 0 100px;
}

.ns-blog-cta__card {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 40px;
	padding: 50px;
	background: #082d57;
	border-radius: 25px;
	box-shadow: 0 28px 70px rgba(13, 48, 83, 0.2);
}

.ns-blog-cta__card .ns-blog-eyebrow {
	color: #efbd27;
}

.ns-blog-cta h2 {
	max-width: 700px;
	margin: 0;
	color: #ffffff;
	font-size: clamp(28px, 3.5vw, 45px);
	line-height: 1.2;
	letter-spacing: -0.035em;
}

.ns-blog-cta__button {
	display: inline-flex;
	min-height: 52px;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	padding: 0 24px;
	background: #efba19;
	border-radius: 12px;
	color: #102946;
	font-family: "Montserrat", sans-serif;
	font-size: 12px;
	font-weight: 750;
	text-decoration: none;
	transition:
		transform 0.25s ease,
		background 0.25s ease;
}

.ns-blog-cta__button:hover {
	background: #ffd04a;
	color: #102946;
	transform: translateY(-2px);
}


/* ==================================================
   TABLET
================================================== */

@media (max-width: 1024px) {

	.ns-blog-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

}


/* ==================================================
   MOBILE
================================================== */

@media (max-width: 767px) {

	.ns-blog-container {
		width: min(100% - 28px, 1160px);
	}

	.ns-blog-hero {
		padding: 85px 0 75px;
	}

	.ns-blog-hero h1 {
		font-size: clamp(38px, 12vw, 52px);
	}

	.ns-blog-posts {
		padding: 75px 0;
	}

	.ns-blog-grid {
		grid-template-columns: 1fr;
	}

	.ns-blog-cta {
		padding-bottom: 75px;
	}

	.ns-blog-cta__card {
		align-items: flex-start;
		flex-direction: column;
		padding: 36px 24px;
	}

	.ns-blog-cta__button {
		width: 100%;
	}

}