/**
 * Blog / News: grid index (home.php) + single post (single-post.php).
 */

/* ----- Archive grid ----- */
.fbr-blog__band {
	padding: clamp(1.5rem, 3vw, 2.5rem) 0 3.5rem;
	background:
		radial-gradient(ellipse 70% 50% at 50% 0%, rgba(201, 162, 39, 0.06), transparent 55%),
		#f8fafc;
	border-top: 1px solid #e2e8f0;
}

/* Archive + single: main column + sidebar */
.fbr-blog__layout,
.fbr-single-post__layout {
	display: grid;
	gap: 1.75rem 2rem;
	align-items: start;
}

@media (min-width: 960px) {
	.fbr-blog__layout,
	.fbr-single-post__layout {
		grid-template-columns: minmax(0, 1fr) minmax(260px, 300px);
	}
}

.fbr-blog__main {
	min-width: 0;
}

.fbr-blog__grid {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: 1fr;
	gap: 1.35rem;
}

@media (min-width: 640px) {
	.fbr-blog__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem;
	}
}

@media (min-width: 1024px) {
	.fbr-blog__grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
		gap: 1.65rem;
	}
}

.fbr-blog__cell {
	margin: 0;
	display: flex;
	min-width: 0;
}

.fbr-blog__card {
	margin: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
	border-radius: 1rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	box-shadow:
		0 2px 8px rgba(15, 23, 42, 0.04),
		0 0 0 1px rgba(0, 0, 0, 0.02);
	overflow: hidden;
	transition:
		transform 0.22s cubic-bezier(0.22, 1, 0.36, 1),
		box-shadow 0.22s ease,
		border-color 0.22s ease;
}

.fbr-blog__card:hover {
	transform: translateY(-4px);
	border-color: rgba(201, 162, 39, 0.35);
	box-shadow:
		0 16px 40px rgba(15, 23, 42, 0.1),
		0 0 0 1px rgba(201, 162, 39, 0.12);
}

.fbr-blog__media-link {
	display: block;
	position: relative;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: var(--fbr-fx-navy-mid, #0f2744);
}

.fbr-blog__thumb {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.fbr-blog__card:hover .fbr-blog__thumb {
	transform: scale(1.05);
}

.fbr-blog__thumb--placeholder {
	background:
		linear-gradient(135deg, #0f2744 0%, #064e3b 45%, #0c1929 100%);
	background-image:
		linear-gradient(90deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px),
		linear-gradient(180deg, rgba(255, 255, 255, 0.03) 1px, transparent 1px),
		linear-gradient(135deg, #0f2744 0%, #064e3b 45%, #0c1929 100%);
	background-size:
		24px 100%,
		100% 24px,
		auto;
}

@media (prefers-reduced-motion: reduce) {
	.fbr-blog__card:hover {
		transform: none;
	}

	.fbr-blog__card:hover .fbr-blog__thumb {
		transform: none;
	}
}

.fbr-blog__card-body {
	padding: 1.15rem 1.2rem 1.35rem;
	display: flex;
	flex-direction: column;
	flex: 1;
	gap: 0.45rem;
	min-width: 0;
}

.fbr-blog__date {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
}

.fbr-blog__title {
	margin: 0;
	font-size: clamp(1.02rem, 1.9vw, 1.15rem);
	font-weight: 800;
	line-height: 1.3;
	letter-spacing: -0.02em;
	color: var(--fbr-fx-ink, #0f172a);
}

.fbr-blog__title a {
	color: inherit;
	text-decoration: none;
}

.fbr-blog__title a:hover {
	color: var(--fbr-fx-navy-mid, #0f2744);
	text-decoration: underline;
	text-decoration-color: rgba(201, 162, 39, 0.65);
}

.fbr-blog__excerpt {
	margin: 0;
	font-size: 0.875rem;
	line-height: 1.6;
	color: #475569;
	flex: 1;
}

.fbr-blog__excerpt p {
	margin: 0;
}

.fbr-blog__readmore {
	display: inline-flex;
	align-items: center;
	gap: 0.25rem;
	margin-top: 0.35rem;
	font-size: 0.8125rem;
	font-weight: 700;
	color: var(--fbr-fx-navy-mid, #0f2744);
	text-decoration: none;
}

.fbr-blog__readmore:hover {
	color: var(--fbr-fx-gold, #c9a227);
	text-decoration: underline;
}

.fbr-blog__pagination {
	margin-top: 2.25rem;
	padding-top: 1.75rem;
	border-top: 1px solid #e2e8f0;
}

.fbr-blog__pagination .nav-links {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.5rem 1rem;
}

.fbr-blog__pagination a,
.fbr-blog__pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 2.5rem;
	min-height: 2.5rem;
	padding: 0 0.65rem;
	font-size: 0.875rem;
	font-weight: 600;
	border-radius: 0.5rem;
	text-decoration: none;
}

.fbr-blog__pagination a {
	background: #fff;
	color: var(--fbr-fx-navy-mid, #0f2744);
	border: 1px solid #e2e8f0;
}

.fbr-blog__pagination a:hover {
	border-color: rgba(201, 162, 39, 0.45);
	background: #fffbeb;
}

.fbr-blog__pagination span.current {
	background: var(--fbr-fx-navy-mid, #0f2744);
	color: #f8fafc;
	border: 1px solid transparent;
}

.fbr-blog__pagination span.dots {
	border: none;
	background: transparent;
	color: #94a3b8;
	min-width: auto;
}

.fbr-blog__empty {
	padding: 2rem 1.25rem;
	border-radius: 0.65rem;
	background: #fff;
	border: 1px dashed #cbd5e1;
	text-align: center;
}

.fbr-blog__empty-text {
	margin: 0;
	font-size: 1rem;
	line-height: 1.6;
	color: #64748b;
}

/* ----- Single post (news layout: compact image + sidebar) ----- */
.fbr-single-post__hero .fbr-home__hero-inner {
	justify-content: flex-start;
}

.fbr-single-post__hero-inner {
	max-width: 52rem;
	text-align: left;
}

.fbr-single-post__breadcrumb {
	margin: 0 0 0.65rem;
	font-size: 0.8125rem;
	font-weight: 600;
}

.fbr-single-post__breadcrumb-link {
	color: var(--fbr-fx-gold-bright, #e3bc3c);
	text-decoration: none;
}

.fbr-single-post__breadcrumb-link:hover {
	text-decoration: underline;
}

.fbr-single-post__cats {
	list-style: none;
	margin: 0 0 0.75rem;
	padding: 0;
	display: flex;
	flex-wrap: wrap;
	gap: 0.4rem;
}

.fbr-single-post__cats li {
	margin: 0;
}

.fbr-single-post__cat {
	display: inline-block;
	padding: 0.25rem 0.65rem;
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	text-decoration: none;
	color: var(--fbr-fx-navy, #0a1628);
	background: linear-gradient(135deg, var(--fbr-fx-gold-bright, #e3bc3c) 0%, var(--fbr-fx-gold, #c9a227) 100%);
	border-radius: 999px;
	border: 1px solid rgba(255, 255, 255, 0.35);
}

.fbr-single-post__cat:hover {
	filter: brightness(1.05);
}

.fbr-single-post__title {
	margin: 0 0 0.65rem;
	font-size: clamp(1.65rem, 4vw, 2.35rem);
	font-weight: 800;
	line-height: 1.15;
	letter-spacing: -0.03em;
	color: #f8fafc;
	text-shadow: 0 2px 24px rgba(0, 0, 0, 0.25);
}

.fbr-single-post__meta {
	margin: 0;
	font-size: 0.9375rem;
	color: rgba(248, 250, 252, 0.85);
}

.fbr-single-post__body {
	padding: clamp(1.5rem, 3vw, 2.25rem) 0 3.5rem;
	background: #f8fafc;
}

.fbr-single-post__main {
	min-width: 0;
}

.fbr-single-post__article {
	margin: 0;
	padding: clamp(1.15rem, 2vw, 1.5rem) clamp(1.1rem, 2vw, 1.35rem);
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 0.75rem;
	box-shadow: 0 2px 14px rgba(15, 23, 42, 0.05);
}

.fbr-single-post__article::after {
	content: "";
	display: table;
	clear: both;
}

/* Compact “news wire” thumbnail: floats right on wide viewports */
.fbr-single-post__figure {
	float: right;
	width: min(40%, 260px);
	margin: 0 0 0.75rem 1.15rem;
	border-radius: 0.5rem;
	overflow: hidden;
	border: 1px solid #e2e8f0;
	box-shadow: 0 4px 16px rgba(15, 23, 42, 0.08);
	background: #f1f5f9;
}

.fbr-single-post__figure-link {
	display: block;
	line-height: 0;
}

.fbr-single-post__figure-link:hover .fbr-single-post__thumb {
	opacity: 0.92;
}

.fbr-single-post__thumb {
	display: block;
	width: 100%;
	height: auto;
	transition: opacity 0.2s ease;
}

@media (max-width: 639px) {
	.fbr-single-post__figure {
		float: none;
		width: 100%;
		max-width: 280px;
		margin: 0 auto 1.15rem;
	}
}

.fbr-single-post__sidebar {
	min-width: 0;
}

.fbr-single-post__sidebar-inner {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
}

@media (min-width: 960px) {
	.fbr-single-post__sidebar-inner {
		position: sticky;
		top: 1rem;
	}
}

.fbr-sidebar__block {
	margin: 0;
	padding: 1.05rem 1.1rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 0.65rem;
	box-shadow: 0 2px 12px rgba(15, 23, 42, 0.04);
}

.fbr-sidebar__heading {
	margin: 0 0 0.65rem;
	font-size: 0.75rem;
	font-weight: 800;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--fbr-fx-navy-mid, #0f2744);
}

.fbr-sidebar__hint {
	margin: -0.35rem 0 0.65rem;
	font-size: 0.6875rem;
	line-height: 1.45;
	color: #94a3b8;
}

.fbr-sidebar__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 0.65rem;
}

.fbr-sidebar__item {
	margin: 0;
}

.fbr-sidebar__item-link {
	display: flex;
	align-items: flex-start;
	gap: 0.65rem;
	text-decoration: none;
	color: inherit;
	padding: 0.4rem 0.25rem;
	border-bottom: 1px solid #f1f5f9;
	transition: background 0.15s ease;
	border-radius: 0.35rem;
	margin: 0 -0.25rem;
}

.fbr-sidebar__item:last-child .fbr-sidebar__item-link {
	border-bottom: none;
}

.fbr-sidebar__item-link:hover {
	background: #f8fafc;
}

.fbr-sidebar__item-media {
	flex-shrink: 0;
	width: 4rem;
	height: 4rem;
	border-radius: 0.4rem;
	overflow: hidden;
	background: var(--fbr-fx-navy-mid, #0f2744);
	border: 1px solid #e2e8f0;
}

.fbr-sidebar__thumb-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.fbr-sidebar__thumb-placeholder {
	display: block;
	width: 100%;
	height: 100%;
	min-height: 4rem;
	background: linear-gradient(135deg, #0f2744 0%, #064e3b 100%);
}

.fbr-sidebar__item-text {
	min-width: 0;
	flex: 1;
	display: flex;
	flex-direction: column;
	gap: 0.2rem;
}

.fbr-sidebar__item-title {
	font-size: 0.8125rem;
	font-weight: 700;
	line-height: 1.35;
	color: var(--fbr-fx-ink, #0f172a);
}

.fbr-sidebar__item-link:hover .fbr-sidebar__item-title {
	color: var(--fbr-fx-navy-mid, #0f2744);
	text-decoration: underline;
	text-decoration-color: rgba(201, 162, 39, 0.5);
}

.fbr-sidebar__item-date,
.fbr-sidebar__item-meta {
	font-size: 0.6875rem;
	color: #64748b;
}

.fbr-sidebar__empty {
	margin: 0;
	font-size: 0.8125rem;
	color: #94a3b8;
}

.fbr-single-post__content {
	font-size: 1.0625rem;
	line-height: 1.75;
	color: #334155;
}

.fbr-single-post__content > *:first-child {
	margin-top: 0;
}

.fbr-single-post__content > *:last-child {
	margin-bottom: 0;
}

.fbr-single-post__content p {
	margin: 0 0 1.1rem;
}

.fbr-single-post__content h2,
.fbr-single-post__content h3 {
	margin: 1.75rem 0 0.65rem;
	font-weight: 800;
	line-height: 1.3;
	color: var(--fbr-fx-ink, #0f172a);
	letter-spacing: -0.02em;
}

.fbr-single-post__content h2 {
	font-size: 1.35rem;
	padding-bottom: 0.35rem;
	border-bottom: 2px solid rgba(201, 162, 39, 0.35);
}

.fbr-single-post__content h3 {
	font-size: 1.15rem;
}

.fbr-single-post__content a {
	color: #4f46e5;
	font-weight: 500;
	text-decoration: underline;
	text-underline-offset: 2px;
}

.fbr-single-post__content a:hover {
	color: #4338ca;
}

.fbr-single-post__content ul,
.fbr-single-post__content ol {
	margin: 0 0 1.1rem;
	padding-left: 1.35rem;
}

.fbr-single-post__content li {
	margin-bottom: 0.35rem;
}

.fbr-single-post__content blockquote {
	margin: 1.35rem 0;
	padding: 1rem 1.25rem;
	border-left: 4px solid var(--fbr-fx-gold, #c9a227);
	background: #fff;
	border-radius: 0 0.5rem 0.5rem 0;
	color: #475569;
	font-style: italic;
}

.fbr-single-post__content strong {
	color: var(--fbr-fx-ink, #0f172a);
}

.fbr-single-post__footer {
	margin-top: 2.5rem;
	padding-top: 1.75rem;
	border-top: 1px solid #e2e8f0;
	display: flex;
	flex-direction: column;
	gap: 1.5rem;
}

.fbr-single-post__footer .post-navigation {
	display: grid;
	grid-template-columns: 1fr;
	gap: 0.75rem;
	width: 100%;
}

@media (min-width: 560px) {
	.fbr-single-post__footer .post-navigation {
		grid-template-columns: 1fr 1fr;
	}
}

.fbr-single-post__footer .post-navigation .nav-previous,
.fbr-single-post__footer .post-navigation .nav-next {
	margin: 0;
}

.fbr-single-post__footer .post-navigation a {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	padding: 1rem 1.15rem;
	border-radius: 0.65rem;
	background: #fff;
	border: 1px solid #e2e8f0;
	text-decoration: none;
	color: inherit;
	transition:
		border-color 0.2s ease,
		box-shadow 0.2s ease;
}

.fbr-single-post__footer .post-navigation a:hover {
	border-color: rgba(201, 162, 39, 0.4);
	box-shadow: 0 6px 20px rgba(15, 23, 42, 0.06);
}

.fbr-single-post__footer .post-navigation .nav-next a {
	align-items: flex-end;
	text-align: right;
}

.fbr-single-post__nav-label {
	font-size: 0.6875rem;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: #64748b;
}

.fbr-single-post__nav-title {
	font-size: 0.9375rem;
	font-weight: 700;
	color: var(--fbr-fx-navy-mid, #0f2744);
	line-height: 1.35;
}

.fbr-single-post__back {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	align-self: flex-start;
	padding: 0.6rem 1.1rem;
	font-size: 0.875rem;
	font-weight: 700;
	color: var(--fbr-fx-navy-mid, #0f2744);
	background: linear-gradient(180deg, var(--fbr-fx-gold-bright, #e3bc3c) 0%, var(--fbr-fx-gold, #c9a227) 100%);
	border-radius: 999px;
	text-decoration: none;
	border: 1px solid rgba(255, 255, 255, 0.25);
	box-shadow: none;
}

.fbr-single-post__back:hover {
	filter: brightness(1.06);
}
