/* ==========================================================================
   New Star Company WLL — Blog redesign
   Scope: blog.php (#blog_list) and blog-single.php (#blog_single) only.
   Loaded last in header.php so it overrides the purchased template.
   Brand: red #C92547, blue #0D509F, ink #242527. Font: "Open Sans".
   ========================================================================== */

:root {
	--nb-red: #C92547;
	--nb-red-dark: #a91d3a;
	--nb-blue: #0D509F;
	--nb-blue-dark: #0a3f7d;
	--nb-ink: #242527;
	--nb-body: #55585f;
	--nb-muted: #8b8f98;
	--nb-line: #e7e9ee;
	--nb-bg: #f6f7f9;
	--nb-card: #ffffff;
	--nb-radius: 16px;
	--nb-shadow: 0 1px 2px rgba(20, 28, 46, .04), 0 12px 32px -12px rgba(20, 28, 46, .12);
	--nb-shadow-hover: 0 2px 4px rgba(20, 28, 46, .06), 0 24px 48px -16px rgba(20, 28, 46, .22);
	--nb-measure: 44rem; /* ~704px reading measure */
}

/* --- Shared shell -------------------------------------------------------- */
#blog_list.blog-section,
#blog_single.blog_details_section {
	background: var(--nb-bg) !important;
	padding: 72px 0 96px !important;
	color: var(--nb-body);
	/* clip (not hidden) contains any horizontal bleed WITHOUT creating a
	   scroll container, so the sidebar's position: sticky keeps working. */
	overflow: clip !important;
	overflow-clip-margin: 1px;
}

#blog_list .nb-layout,
#blog_single .nb-layout {
	display: grid;
	grid-template-columns: minmax(0, 1fr) 340px;
	gap: 56px;
	align-items: start;
}

#blog_list .nb-main,
#blog_single .nb-main { min-width: 0; }

@media (max-width: 991px) {
	#blog_list .nb-layout,
	#blog_single .nb-layout { grid-template-columns: 1fr; gap: 48px; }
}

/* Sticky sidebar on desktop; static once the layout stacks */
@media (min-width: 992px) {
	#blog_list .nb-side,
	#blog_single .nb-side {
		position: sticky;
		top: 96px;
		align-self: start;
	}
}
@media (max-width: 575px) {
	#blog_list.blog-section,
	#blog_single.blog_details_section { padding: 44px 0 64px !important; }
}

/* --- Filter summary ----------------------------------------------------- */
#blog_list .nb-filter {
	margin: 0 0 28px;
	font-size: 15px;
	color: var(--nb-body);
	background: var(--nb-card);
	border: 1px solid var(--nb-line);
	border-radius: 12px;
	padding: 14px 18px;
}
#blog_list .nb-filter strong { color: var(--nb-ink); }
#blog_list .nb-filter a { color: var(--nb-red); font-weight: 600; }

/* --- Card grid --------------------------------------------------------- */
#blog_list .nb-grid {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	grid-auto-rows: 1fr;
	gap: 28px;
}
@media (max-width: 600px) {
	#blog_list .nb-grid { grid-template-columns: 1fr; grid-auto-rows: auto; gap: 22px; }
}

#blog_list .nb-card {
	display: flex;
	flex-direction: column;
	height: 100%;
	background: var(--nb-card);
	border: 1px solid var(--nb-line);
	border-radius: var(--nb-radius);
	overflow: hidden;
	box-shadow: var(--nb-shadow);
	transition: transform .45s cubic-bezier(.32, .72, 0, 1), box-shadow .45s cubic-bezier(.32, .72, 0, 1);
}
#blog_list .nb-card:hover {
	transform: translateY(-4px);
	box-shadow: var(--nb-shadow-hover);
}

/* Media area */
#blog_list .nb-card__media {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--nb-bg);
}
#blog_list .nb-card__media img {
	position: absolute;
	inset: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform .6s cubic-bezier(.32, .72, 0, 1);
}
#blog_list .nb-card:hover .nb-card__media img { transform: scale(1.04); }

/* Branded no-cover placeholder — reads as "no photo yet", not a CTA.
   Muted tinted panels, low-contrast pattern, small glyph, AA-legible label. */
#blog_list .nb-ph {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 12px;
	text-align: center;
	padding: 20px;
	color: #4a5261;
	background: linear-gradient(135deg, #eef0f3 0%, #e4e7ec 100%);
}
#blog_list .nb-ph--a { color: #2f4d78; background: linear-gradient(135deg, #eaf1f9 0%, #dde8f4 100%); }
#blog_list .nb-ph--b { color: #8a3048; background: linear-gradient(135deg, #f7ecef 0%, #efdde3 100%); }
#blog_list .nb-ph--c { color: #4a5261; background: linear-gradient(135deg, #eef0f3 0%, #e3e6eb 100%); }
#blog_list .nb-ph::before {
	content: "";
	position: absolute;
	inset: 0;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='48' height='48' viewBox='0 0 48 48'%3E%3Cpath d='M21 6h6v15h15v6H27v15h-6V27H6v-6h15z' fill='%23243447' fill-opacity='0.05'/%3E%3C/svg%3E");
	background-size: 52px 52px;
}
#blog_list .nb-ph__glyph {
	position: relative;
	width: 34px;
	height: 34px;
	display: flex;
	align-items: center;
	justify-content: center;
	border-radius: 50%;
	background: rgba(255, 255, 255, .55);
	border: 1px solid rgba(36, 52, 71, .1);
}
#blog_list .nb-ph__glyph::before {
	content: "";
	width: 14px;
	height: 14px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6v6h6v6h-6v6H9v-6H3V9h6z'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6v6h6v6h-6v6H9v-6H3V9h6z'/%3E%3C/svg%3E") center/contain no-repeat;
}
#blog_list .nb-ph__label {
	position: relative;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	opacity: .85;
}

/* Card body */
#blog_list .nb-card__body {
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 22px 22px 24px;
	flex: 1 1 auto;
}
#blog_list .nb-card__meta {
	display: flex;
	align-items: center;
	gap: 10px;
	flex-wrap: wrap;
	font-size: 12.5px;
	color: var(--nb-muted);
}
#blog_list .nb-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .1em;
	text-transform: uppercase;
	color: var(--nb-blue);
	background: rgba(13, 80, 159, .09);
	border-radius: 999px;
	padding: 5px 11px;
	line-height: 1;
}
#blog_list .nb-tag:hover { color: #fff; background: var(--nb-blue); }
#blog_list .nb-card__meta time { position: relative; padding-left: 12px; }
#blog_list .nb-card__meta time:first-child { padding-left: 0; }
#blog_list .nb-card__meta time:first-child::before { display: none; }
#blog_list .nb-card__meta time::before {
	content: "";
	position: absolute;
	left: 0; top: 50%;
	width: 3px; height: 3px;
	border-radius: 50%;
	background: currentColor;
	transform: translateY(-50%);
}

#blog_list .nb-card__title {
	margin: 2px 0 0;
	font-size: 19px;
	line-height: 1.34;
	font-weight: 700;
	color: var(--nb-ink);
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
	text-wrap: balance;
}
/* Reserve two lines so meta / excerpt / footer align across a row */
@media (min-width: 601px) {
	#blog_list .nb-card__title { min-height: calc(2 * 19px * 1.34); }
}
#blog_list .nb-card__title a { color: inherit; text-decoration: none; }
#blog_list .nb-card__title a:hover { color: var(--nb-red); }

#blog_list .nb-card__excerpt {
	margin: 0;
	font-size: 14.5px;
	line-height: 1.6;
	color: var(--nb-body);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

#blog_list .nb-card__foot {
	margin-top: auto;
	padding-top: 14px;
	border-top: 1px solid var(--nb-line);
	display: flex;
	align-items: center;
	gap: 10px;
	font-size: 12.5px;
	color: var(--nb-muted);
}
#blog_list .nb-card__foot .nb-dot { width: 3px; height: 3px; border-radius: 50%; background: currentColor; }
#blog_list .nb-card__foot strong { color: var(--nb-ink); font-weight: 600; }

/* --- Empty state ------------------------------------------------------- */
#blog_list .nb-empty {
	background: var(--nb-card);
	border: 1px solid var(--nb-line);
	border-radius: var(--nb-radius);
	padding: 48px 24px;
	text-align: center;
	color: var(--nb-body);
	font-size: 15px;
}

/* --- Pagination ------------------------------------------------------- */
#blog_list .nb-pager {
	display: flex;
	justify-content: center;
	gap: 8px;
	margin-top: 44px;
}
#blog_list .nb-pager a {
	min-width: 44px;
	height: 44px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 0 12px;
	border-radius: 10px;
	border: 1px solid var(--nb-line);
	background: var(--nb-card);
	color: var(--nb-ink);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	transition: all .3s cubic-bezier(.32, .72, 0, 1);
}
#blog_list .nb-pager a:hover { border-color: var(--nb-blue); color: var(--nb-blue); }
#blog_list .nb-pager a.is-active {
	background: var(--nb-blue);
	border-color: var(--nb-blue);
	color: #fff;
}

/* ======================================================================
   Sidebar (shared)
   ====================================================================== */
#blog_list .single-sidebar,
#blog_single .single-sidebar { display: flex; flex-direction: column; gap: 22px; }

#blog_list .single-sidebar .site-widget,
#blog_single .single-sidebar .site-widget {
	background: var(--nb-card);
	border: 1px solid var(--nb-line);
	border-radius: var(--nb-radius);
	padding: 24px 22px !important;
	margin: 0 !important;
	box-shadow: var(--nb-shadow);
}

#blog_list .single-sidebar .widget-title,
#blog_single .single-sidebar .widget-title {
	position: relative;
	margin: 0 0 18px !important;
	padding: 0 0 12px !important;
	font-size: 15px;
	font-weight: 700;
	letter-spacing: .04em;
	text-transform: uppercase;
	color: var(--nb-ink);
	border-bottom: 1px solid var(--nb-line);
}
#blog_list .single-sidebar .widget-title::after,
#blog_single .single-sidebar .widget-title::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: -1px;
	width: 34px;
	height: 2px;
	background: var(--nb-red);
}

/* Search */
#blog_list .single-sidebar .form-item,
#blog_single .single-sidebar .form-item { position: relative; }
#blog_list .single-sidebar .form-item input,
#blog_single .single-sidebar .form-item input {
	width: 100%;
	height: 48px;
	padding: 0 48px 0 16px !important;
	border: 1px solid var(--nb-line) !important;
	border-radius: 10px !important;
	background: #fbfbfc !important;
	font-size: 14px;
	color: var(--nb-ink);
	transition: border-color .3s ease, box-shadow .3s ease;
}
#blog_list .single-sidebar .form-item input:focus,
#blog_single .single-sidebar .form-item input:focus {
	outline: none;
	border-color: var(--nb-blue) !important;
	box-shadow: 0 0 0 3px rgba(13, 80, 159, .12);
	background: #fff !important;
}
#blog_list .single-sidebar .form-item-btn,
#blog_single .single-sidebar .form-item-btn {
	position: absolute;
	right: 6px; top: 50%;
	transform: translateY(-50%);
	width: 38px; height: 38px;
	border: 0;
	border-radius: 8px;
	background: var(--nb-red);
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background .3s ease;
}
#blog_list .single-sidebar .form-item-btn:hover,
#blog_single .single-sidebar .form-item-btn:hover { background: var(--nb-red-dark); }

/* Categories list */
#blog_list .single-sidebar .footer-menu ul,
#blog_single .single-sidebar .footer-menu ul { margin: 0; padding: 0; list-style: none; }
#blog_list .single-sidebar .footer-menu li,
#blog_single .single-sidebar .footer-menu li { margin: 0; }
#blog_list .single-sidebar .footer-menu li + li,
#blog_single .single-sidebar .footer-menu li + li { border-top: 1px solid var(--nb-line); }
#blog_list .single-sidebar .footer-menu a,
#blog_single .single-sidebar .footer-menu a {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	padding: 12px 10px 12px 12px;
	min-height: 44px;
	margin: 0 -12px;
	border-radius: 10px;
	font-size: 14.5px;
	color: var(--nb-body);
	text-decoration: none;
	transition: color .25s ease, background-color .25s ease;
}
#blog_list .single-sidebar .footer-menu a:hover,
#blog_single .single-sidebar .footer-menu a:hover { color: var(--nb-blue); background: rgba(13, 80, 159, .06); }
#blog_list .single-sidebar .footer-menu .post_counter,
#blog_single .single-sidebar .footer-menu .post_counter {
	font-size: 12px;
	color: var(--nb-muted);
	background: var(--nb-bg);
	border-radius: 999px;
	padding: 2px 9px;
}

/* Recent posts */
#blog_list .single-sidebar .latest-blog-widget .blog-img-content,
#blog_single .single-sidebar .latest-blog-widget .blog-img-content {
	display: grid;
	grid-template-columns: 72px 1fr;
	gap: 14px;
	align-items: center;
	padding: 14px 0;
}
#blog_list .single-sidebar .latest-blog-widget .blog-img-content + .blog-img-content,
#blog_single .single-sidebar .latest-blog-widget .blog-img-content + .blog-img-content { border-top: 1px solid var(--nb-line); }
#blog_list .single-sidebar .latest-blog-widget .blog-img,
#blog_single .single-sidebar .latest-blog-widget .blog-img {
	width: 72px; height: 62px;
	border-radius: 10px;
	overflow: hidden;
}
#blog_list .single-sidebar .latest-blog-widget .blog-img img,
#blog_single .single-sidebar .latest-blog-widget .blog-img img {
	width: 100%; height: 100%; object-fit: cover;
}
#blog_list .single-sidebar .latest-blog-widget .blog-meta,
#blog_single .single-sidebar .latest-blog-widget .blog-meta {
	display: block;
	font-size: 11.5px;
	color: var(--nb-muted);
	margin-bottom: 4px;
}
#blog_list .single-sidebar .latest-blog-widget .blog-text h3,
#blog_single .single-sidebar .latest-blog-widget .blog-text h3 {
	margin: 0;
	font-size: 13.5px;
	line-height: 1.4;
	font-weight: 600;
}
#blog_list .single-sidebar .latest-blog-widget .blog-text h3 a,
#blog_single .single-sidebar .latest-blog-widget .blog-text h3 a {
	color: var(--nb-ink);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
#blog_list .single-sidebar .latest-blog-widget .blog-text h3 a:hover,
#blog_single .single-sidebar .latest-blog-widget .blog-text h3 a:hover { color: var(--nb-red); }

@media (max-width: 991px) {
	#blog_list .single-sidebar,
	#blog_single .single-sidebar {
		display: grid;
		grid-template-columns: repeat(2, 1fr);
		gap: 22px;
	}
	#blog_list .single-sidebar .site-widget:first-child,
	#blog_single .single-sidebar .site-widget:first-child { grid-column: 1 / -1; }
}
@media (max-width: 640px) {
	#blog_list .single-sidebar,
	#blog_single .single-sidebar { grid-template-columns: 1fr; }
}

/* ======================================================================
   Single article
   ====================================================================== */
#blog_single .nb-article {
	background: var(--nb-card);
	border: 1px solid var(--nb-line);
	border-radius: var(--nb-radius);
	box-shadow: var(--nb-shadow);
	padding: 40px 44px 44px;
}
@media (max-width: 767px) { #blog_single .nb-article { padding: 28px 20px 32px; } }

#blog_single .nb-article__head {
	margin-bottom: 32px;
	padding-bottom: 24px;
	border-bottom: 1px solid var(--nb-line);
}
#blog_single .nb-tag {
	display: inline-block;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	color: #fff;
	background: var(--nb-red);
	border-radius: 999px;
	padding: 6px 13px;
	margin-bottom: 16px;
}
#blog_single .nb-article__title {
	margin: 0 0 16px;
	font-size: clamp(26px, 3.4vw, 38px);
	line-height: 1.22;
	font-weight: 800;
	color: var(--nb-ink);
	text-wrap: balance;
}
#blog_single .nb-article__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 10px 22px;
	font-size: 14px;
	color: var(--nb-body);
}
#blog_single .nb-article__meta span { display: inline-flex; align-items: center; gap: 8px; }
#blog_single .nb-article__meta i { color: var(--nb-blue); font-size: 13px; }
#blog_single .nb-article__meta strong { color: var(--nb-ink); font-weight: 700; }

#blog_single .nb-article__cover {
	margin: 32px 0 34px;
	border-radius: 14px;
	overflow: hidden;
}
#blog_single .nb-article__head + .nb-article__body { margin-top: 4px; }
#blog_single .nb-article__cover img { width: 100%; display: block; }

/* ---- Body typography ---- */
#blog_single .nb-article__body {
	max-width: var(--nb-measure);
	font-size: 17px;
	line-height: 1.75;
	color: #3f4249;
}
#blog_single .nb-article__body > *:first-child { margin-top: 0; }
#blog_single .nb-article__body p { margin: 0 0 1.35em; }
#blog_single .nb-article__body h2 {
	margin: 1.9em 0 .6em;
	font-size: 25px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--nb-ink);
}
#blog_single .nb-article__body h3 {
	margin: 1.6em 0 .5em;
	font-size: 20px;
	line-height: 1.35;
	font-weight: 700;
	color: var(--nb-ink);
}
#blog_single .nb-article__body h4 {
	margin: 1.4em 0 .5em;
	font-size: 17px;
	font-weight: 700;
	color: var(--nb-ink);
}
#blog_single .nb-article__body a {
	color: var(--nb-blue);
	text-decoration: underline;
	text-underline-offset: 2px;
	text-decoration-thickness: 1px;
}
#blog_single .nb-article__body a:hover { color: var(--nb-red); }
#blog_single .nb-article__body ul,
#blog_single .nb-article__body ol { margin: 0 0 1.35em; padding-left: 1.3em; }
#blog_single .nb-article__body li { margin: .4em 0; padding-left: .2em; }
#blog_single .nb-article__body ul li::marker { color: var(--nb-red); }
#blog_single .nb-article__body ol li::marker { color: var(--nb-blue); font-weight: 700; }
#blog_single .nb-article__body blockquote {
	margin: 1.8em 0;
	padding: 6px 0 6px 24px;
	border-left: 3px solid var(--nb-red);
	font-size: 19px;
	line-height: 1.6;
	font-style: italic;
	color: var(--nb-ink);
}
#blog_single .nb-article__body img {
	max-width: 100%;
	height: auto;
	border-radius: 12px;
	margin: 1.6em 0;
}
#blog_single .nb-article__body figure { margin: 1.6em 0; }
#blog_single .nb-article__body figcaption { font-size: 13px; color: var(--nb-muted); margin-top: 8px; }
#blog_single .nb-article__body hr { border: 0; border-top: 1px solid var(--nb-line); margin: 2.4em 0; }
#blog_single .nb-article__body table {
	width: 100%;
	border-collapse: collapse;
	margin: 1.6em 0;
	font-size: 15px;
	display: block;
	overflow-x: auto;
}
#blog_single .nb-article__body th,
#blog_single .nb-article__body td {
	border: 1px solid var(--nb-line);
	padding: 10px 14px;
	text-align: left;
}
#blog_single .nb-article__body th { background: var(--nb-bg); color: var(--nb-ink); font-weight: 700; }

/* Tags + share (restyle template blocks) */
#blog_single .post-tags {
	max-width: var(--nb-measure);
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin: 32px 0 0;
	padding-top: 24px;
	border-top: 1px solid var(--nb-line);
}
#blog_single .post-tag {
	font-size: 12.5px;
	color: var(--nb-body);
	background: var(--nb-bg);
	border: 1px solid var(--nb-line);
	border-radius: 999px;
	padding: 6px 12px;
}
#blog_single .post-tag i { color: var(--nb-red); margin-right: 5px; }

#blog_single .post-share {
	max-width: var(--nb-measure);
	margin: 24px 0 0;
	padding: 20px;
	background: var(--nb-bg);
	border: 1px solid var(--nb-line);
	border-radius: 14px;
}
#blog_single .post-share-label {
	display: block;
	font-size: 13px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: .06em;
	color: var(--nb-ink);
	margin-bottom: 12px;
}
#blog_single .post-share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
#blog_single .post-share-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 10px 16px;
	min-height: 44px;
	font-size: 13px;
	font-weight: 600;
	border-radius: 999px;
	border: 1px solid var(--nb-line);
	background: #fff;
	color: var(--nb-ink);
	cursor: pointer;
	transition: border-color .3s cubic-bezier(.32, .72, 0, 1), color .3s cubic-bezier(.32, .72, 0, 1), transform .3s cubic-bezier(.32, .72, 0, 1);
}
#blog_single .post-share-btn:hover {
	border-color: var(--nb-blue);
	color: var(--nb-blue);
	transform: translateY(-1px);
}
#blog_single .post-share-short {
	display: block;
	margin-top: 12px;
	font-size: 12px;
	color: var(--nb-muted);
}
#blog_single .post-share-short code { color: var(--nb-blue); background: #fff; padding: 2px 6px; border-radius: 6px; }

/* Related posts */
#blog_single .related_postview {
	margin-top: 40px !important;
	padding-top: 8px;
}
#blog_single .related_postview .widget-title {
	margin: 0 0 22px;
	font-size: 20px;
	font-weight: 800;
	color: var(--nb-ink);
	text-transform: none;
	letter-spacing: 0;
}
#blog_single .related_postview .row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin: 0; }
#blog_single .related_postview .row > [class*="col-"] { width: 100%; max-width: 100%; flex: none; padding: 0; }
@media (max-width: 900px) { #blog_single .related_postview .row { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575px) { #blog_single .related_postview .row { grid-template-columns: 1fr; } }

/* One related post: horizontal media/text card so it still reads as intentional */
#blog_single .related_postview .row:has(> [class*="col-"]:only-child) { grid-template-columns: 1fr; }
#blog_single .related_postview .row:has(> [class*="col-"]:only-child) .blog-img-content {
	display: grid;
	grid-template-columns: 42% 1fr;
}
#blog_single .related_postview .row:has(> [class*="col-"]:only-child) .blog-img { aspect-ratio: auto; height: 100%; min-height: 150px; }
#blog_single .related_postview .row:has(> [class*="col-"]:only-child) .blog-text { align-self: center; }
@media (max-width: 575px) {
	#blog_single .related_postview .row:has(> [class*="col-"]:only-child) .blog-img-content { grid-template-columns: 1fr; }
	#blog_single .related_postview .row:has(> [class*="col-"]:only-child) .blog-img { aspect-ratio: 16 / 9; min-height: 0; }
}
#blog_single .related_postview .row:has(> [class*="col-"]:only-child) .blog-text h3 { font-size: 17px; }

#blog_single .related_postview .blog-img-content {
	background: var(--nb-card);
	border: 1px solid var(--nb-line);
	border-radius: 14px;
	overflow: hidden;
	box-shadow: var(--nb-shadow);
	transition: transform .45s cubic-bezier(.32, .72, 0, 1), box-shadow .45s cubic-bezier(.32, .72, 0, 1);
}
#blog_single .related_postview .blog-img-content:hover {
	transform: translateY(-3px);
	box-shadow: var(--nb-shadow-hover);
}
#blog_single .related_postview .blog-img { aspect-ratio: 16 / 9; overflow: hidden; }
#blog_single .related_postview .blog-img img { width: 100%; height: 100%; object-fit: cover; }
#blog_single .related_postview .blog-text { padding: 16px 18px 20px; }
#blog_single .related_postview .blog-text .blog-meta {
	display: block;
	font-size: 12px;
	color: var(--nb-muted);
	margin-bottom: 6px;
}
#blog_single .related_postview .blog-text .blog-meta i { color: var(--nb-blue); margin-right: 5px; }
#blog_single .related_postview .blog-text h3 { margin: 0; font-size: 16px; line-height: 1.4; font-weight: 700; }
#blog_single .related_postview .blog-text h3 a {
	color: var(--nb-ink);
	text-decoration: none;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
#blog_single .related_postview .blog-text h3 a:hover { color: var(--nb-red); }

/* Related-card no-cover placeholder (reuses the muted panel language) */
#blog_single .related_postview .blog-img .nb-ph {
	position: absolute;
	inset: 0;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	color: #4a5261;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: .12em;
	text-transform: uppercase;
	background: linear-gradient(135deg, #eef0f3 0%, #e3e6eb 100%);
}
#blog_single .related_postview .blog-img { position: relative; }
#blog_single .related_postview .blog-img .nb-ph::before {
	content: "";
	width: 16px; height: 16px;
	background: currentColor;
	-webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6v6h6v6h-6v6H9v-6H3V9h6z'/%3E%3C/svg%3E") center/contain no-repeat;
	        mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M9 3h6v6h6v6h-6v6H9v-6H3V9h6z'/%3E%3C/svg%3E") center/contain no-repeat;
}

/* ======================================================================
   Focus-visible — keyboard affordance across all interactive blog UI
   ====================================================================== */
#blog_list .nb-card__title a:focus-visible,
#blog_list .nb-tag:focus-visible,
#blog_list .nb-pager a:focus-visible,
#blog_list .single-sidebar a:focus-visible,
#blog_list .single-sidebar .form-item-btn:focus-visible,
#blog_single .single-sidebar a:focus-visible,
#blog_single .single-sidebar .form-item-btn:focus-visible,
#blog_single .nb-article__body a:focus-visible,
#blog_single .post-share-btn:focus-visible,
#blog_single .related_postview .blog-text h3 a:focus-visible {
	/* !important + explicit longhands to beat the template's global
	   a:focus-visible { outline: ... !important } rule */
	outline-width: 3px !important;
	outline-style: solid !important;
	outline-color: #0D509F !important;
	outline-offset: 2px !important;
	border-radius: 4px !important;
}
/* Card media clips overflow, so inset the ring */
#blog_list .nb-card__media:focus-visible {
	outline-width: 3px !important;
	outline-style: solid !important;
	outline-color: #0D509F !important;
	outline-offset: -3px !important;
}
#blog_list .nb-card:has(.nb-card__media:focus-visible) { border-color: var(--nb-blue); }

@media (prefers-reduced-motion: reduce) {
	#blog_list *, #blog_single * {
		transition-duration: .01ms !important;
		animation-duration: .01ms !important;
	}
}

/* Kill leftover template chrome that could leak in */
#blog_list .blog-img-text::after,
#blog_list .blog-date { display: none !important; }
