/* ==========================================================
   Blog banner (blog listing + blog post)
   ========================================================== */
.bf-banner {
	position: relative;
	height: 380px;
	overflow: hidden;
	background: #232121;
}
.bf-banner-img {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
	object-fit: cover;
}
.bf-banner::after {
	content: '';
	position: absolute;
	top: 0;
	right: 0;
	bottom: 0;
	left: 0;
	background: linear-gradient(90deg, rgba(0,0,0,.72) 0%, rgba(0,0,0,.45) 60%, rgba(0,0,0,.25) 100%);
}
.bf-banner-inner {
	position: relative;
	z-index: 1;
	max-width: 1170px;
	height: 100%;
	margin: 0 auto;
	padding: 0 16px;
	display: flex;
	flex-direction: column;
	justify-content: center;
}
.bf-banner-crumbs {
	font-family: Lato, sans-serif;
	font-size: 14px;
	color: #d3d8d8;
	margin: 0 0 14px;
}
.bf-banner-crumbs a { color: #fff; }
.bf-banner-crumbs a:hover { color: #9fd3e2; text-decoration: none; }
.bf-banner-crumbs span { margin: 0 6px; }
.bf-banner-title {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 44px;
	line-height: 1.2;
	font-weight: 700;
	color: #fff;
	margin: 0;
	max-width: 820px;
	text-shadow: 0 2px 8px rgba(0,0,0,.35);
}
.bf-banner-title::after {
	content: '';
	display: block;
	width: 70px;
	height: 4px;
	background: #248ba9;
	margin-top: 18px;
}
@media (max-width: 991px) {
	.bf-banner { height: 320px; }
	.bf-banner-title { font-size: 34px; }
}
@media (max-width: 600px) {
	.bf-banner { height: 260px; }
	.bf-banner-title { font-size: 26px; }
	.bf-banner-title::after { margin-top: 12px; }
}


/* ==========================================================
   Blog listing page
   ========================================================== */
.bfb-list, .bfb-list *, .bfb-list *::before, .bfb-list *::after { box-sizing: border-box; }
.bfb-list {
	--bfb-primary: #2a697b;
	--bfb-primary-dark: #1a5e71;
	--bfb-text: #333;
	--bfb-muted: #6b6b6b;
	--bfb-border: #e3e8ea;
	font-family: Lato, sans-serif;
	color: var(--bfb-text);
	padding: 50px 0 70px;
	overflow-x: clip;
}
.bfb-wrap { max-width: 1170px; margin: 0 auto; padding: 0 16px; }
.bfb-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
	gap: 30px;
}
.bfb-card {
	display: flex;
	flex-direction: column;
	border: 1px solid var(--bfb-border);
	border-radius: 6px;
	overflow: hidden;
	background: #fff;
	transition: box-shadow .2s, transform .2s;
}
.bfb-card:hover { box-shadow: 0 8px 24px rgba(0,0,0,.08); transform: translateY(-3px); }
.bfb-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; }
.bfb-card-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.bfb-card-body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.bfb-card-title {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 22px;
	line-height: 1.3;
	font-weight: 700;
	margin: 0 0 12px;
}
.bfb-card-title a { color: #000; text-decoration: none; }
.bfb-card-title a:hover { color: var(--bfb-primary); }
.bfb-card-excerpt { font-size: 16px; line-height: 1.7; color: var(--bfb-muted); margin: 0 0 18px; flex: 1; }
.bfb-card-more {
	align-self: flex-start;
	background: var(--bfb-primary);
	color: #fff !important;
	padding: 10px 22px;
	border-radius: 4px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background .2s;
}
.bfb-card-more:hover { background: var(--bfb-primary-dark); }
@media (max-width: 600px) {
	.bfb-grid { grid-template-columns: minmax(0, 1fr); gap: 22px; }
	.bfb-card-title { font-size: 20px; }
}


/* ==========================================================
   Blog post page
   ========================================================== */
.bfp-post, .bfp-post *, .bfp-post *::before, .bfp-post *::after { box-sizing: border-box; }
.bfp-post {
	--bfp-primary: #2a697b;
	--bfp-primary-dark: #1a5e71;
	--bfp-accent: #248ba9;
	--bfp-text: #333;
	--bfp-muted: #6b6b6b;
	--bfp-border: #e3e8ea;
	--bfp-soft: #f3f7f8;
	font-family: Lato, sans-serif;
	color: var(--bfp-text);
	padding: 50px 0 60px;
	overflow-x: clip;
}
.bfp-wrap { max-width: 1170px; margin: 0 auto; padding: 0 16px; }
.bfp-layout { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 48px; align-items: start; }

.bfp-content { font-size: 17px; line-height: 1.8; min-width: 0; }
.bfp-content p { margin: 0 0 18px; font-size: 17px; line-height: 1.8; color: var(--bfp-text); }
.bfp-content h2 {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 28px;
	line-height: 1.3;
	font-weight: 700;
	color: var(--bfp-primary-dark);
	margin: 40px 0 14px;
	scroll-margin-top: 24px;
}
.bfp-content h3 {
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 21px;
	line-height: 1.35;
	font-weight: 700;
	color: #000;
	margin: 24px 0 8px;
	scroll-margin-top: 24px;
}
.bfp-content a { color: var(--bfp-accent); text-decoration: underline; }
.bfp-content a:hover { color: var(--bfp-primary-dark); }
.bfp-figure { margin: 28px 0; }
.bfp-figure img { display: block; width: 100%; height: auto; border-radius: 6px; }

.bfp-faq { border-top: 1px solid var(--bfp-border); }
.bfp-faq-item { border-bottom: 1px solid var(--bfp-border); padding: 4px 0 8px; }
.bfp-faq-item p { margin-bottom: 12px; }

.bfp-cta {
	margin: 44px 0 0;
	padding: 30px 28px;
	background: var(--bfp-soft);
	border-left: 5px solid var(--bfp-primary);
	border-radius: 6px;
}
.bfp-cta p { margin: 0 0 18px; font-size: 18px; }
.bfp-cta-btn {
	display: inline-block;
	background: var(--bfp-primary);
	color: #fff !important;
	padding: 12px 28px;
	border-radius: 4px;
	font-weight: 700;
	text-decoration: none !important;
	transition: background .2s;
}
.bfp-cta-btn:hover { background: var(--bfp-primary-dark); }

/* Sidebar */
.bfp-sidebar { position: sticky; top: 24px; display: flex; flex-direction: column; gap: 24px; }
.bfp-box { border: 1px solid var(--bfp-border); border-radius: 6px; background: #fff; }
.bfp-box-head {
	display: flex;
	align-items: center;
	justify-content: space-between;
	width: 100%;
	background: var(--bfp-primary);
	color: #fff;
	border: 0;
	border-radius: 6px 6px 0 0;
	padding: 14px 18px;
	margin: 0;
	font-family: 'Roboto Condensed', sans-serif;
	font-size: 19px;
	font-weight: 700;
	text-align: left;
}
.bfp-toc-toggle { cursor: default; }
.bfp-toc-icon { display: none; transition: transform .2s; }
.bfp-toc-list { list-style: none; margin: 0; padding: 10px 0; max-height: calc(100vh - 140px); overflow-y: auto; }
.bfp-toc-list li a {
	display: block;
	padding: 8px 18px;
	font-size: 15px;
	line-height: 1.45;
	color: var(--bfp-text);
	border-left: 3px solid transparent;
	text-decoration: none;
	transition: color .2s, border-color .2s, background .2s;
}
.bfp-toc-list li.bfp-toc-sub a { padding-left: 34px; font-size: 14px; color: var(--bfp-muted); }
.bfp-toc-list li a:hover { color: var(--bfp-primary); background: var(--bfp-soft); }
.bfp-toc-list li a.bfp-active { color: var(--bfp-primary-dark); border-left-color: var(--bfp-primary); background: var(--bfp-soft); font-weight: 700; }

.bfp-related-list { list-style: none; margin: 0; padding: 8px 18px; }
.bfp-related-list li { border-bottom: 1px solid var(--bfp-border); }
.bfp-related-list li:last-child { border-bottom: 0; }
.bfp-related-list a { display: flex; gap: 12px; align-items: center; padding: 12px 0; color: var(--bfp-text); text-decoration: none; }
.bfp-related-list a:hover { color: var(--bfp-primary); }
.bfp-related-list img { width: 80px; height: 60px; object-fit: cover; border-radius: 4px; flex-shrink: 0; }
.bfp-related-list span { font-size: 15px; line-height: 1.4; font-weight: 700; }
.bfp-related-all { display: block; padding: 0 18px 16px; font-weight: 700; color: var(--bfp-primary); }

@media (max-width: 991px) {
	/* Single column: TOC above the article, related blogs below it */
	.bfp-layout { display: flex; flex-direction: column; align-items: stretch; gap: 32px; }
	.bfp-sidebar { display: contents; }
	.bfp-toc { order: 0; }
	.bfp-content { order: 1; width: 100%; }
	.bfp-related { order: 2; }
	.bfp-toc-toggle { cursor: pointer; }
	.bfp-toc-icon { display: inline-block; }
	.bfp-toc.bfp-open .bfp-toc-icon { transform: rotate(180deg); }
	.bfp-toc-list { display: none; max-height: none; }
	.bfp-toc.bfp-open .bfp-toc-list { display: block; }
	.bfp-toc:not(.bfp-open) .bfp-box-head { border-radius: 6px; }
}
@media (max-width: 600px) {
	.bfp-content h2 { font-size: 24px; }
	.bfp-content h3 { font-size: 19px; }
	.bfp-content, .bfp-content p { font-size: 16px; }
	.bfp-cta { padding: 22px 18px; }
}
