/* Homepage blog — magazine layout (brand #153661 / #faa41a) */
.cbm-home-blog {
	--cbm-navy: #153661;
	--cbm-gold: #faa41a;
	--cbm-ink: #12233a;
	--cbm-muted: #5b6b7c;
	--cbm-line: rgba(21, 54, 97, 0.1);
	--cbm-card: #ffffff;
	padding: 72px 0 64px;
	background:
		radial-gradient(1200px 420px at 8% -10%, rgba(250, 164, 26, 0.12), transparent 55%),
		radial-gradient(900px 380px at 92% 0%, rgba(21, 54, 97, 0.08), transparent 50%),
		linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
	overflow: hidden;
}

.cbm-home-blog__head {
	text-align: center;
	max-width: 720px;
	margin: 0 auto 36px;
}

.cbm-home-blog__eyebrow {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	margin: 0 0 12px;
	padding: 6px 14px;
	border-radius: 999px;
	background: rgba(250, 164, 26, 0.16);
	color: var(--cbm-navy);
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.08em;
	text-transform: uppercase;
}

.cbm-home-blog__head h2 {
	margin: 0 0 10px;
	color: var(--cbm-navy) !important;
	font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.4rem);
	font-weight: 800;
	line-height: 1.2;
	letter-spacing: -0.02em;
}

.cbm-home-blog__head h2 span {
	color: var(--cbm-gold);
	display: inline;
}

.cbm-home-blog__sub {
	margin: 0;
	color: var(--cbm-muted);
	font-size: 16px;
	line-height: 1.6;
}

.cbm-home-blog__grid {
	display: grid;
	grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
	gap: 22px;
	align-items: stretch;
}

.cbm-home-blog__featured,
.cbm-home-blog__item {
	background: var(--cbm-card);
	border: 1px solid var(--cbm-line);
	border-radius: 18px;
	box-shadow: 0 14px 36px rgba(18, 35, 58, 0.06);
	overflow: hidden;
	height: 100%;
	transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.cbm-home-blog__featured:hover,
.cbm-home-blog__item:hover {
	transform: translateY(-4px);
	box-shadow: 0 20px 44px rgba(18, 35, 58, 0.1);
	border-color: rgba(250, 164, 26, 0.35);
}

.cbm-home-blog__featured-link,
.cbm-home-blog__item-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	color: inherit;
	text-decoration: none !important;
}

.cbm-home-blog__item-link {
	flex-direction: row;
	align-items: stretch;
	gap: 0;
}

.cbm-home-blog__media {
	position: relative;
	overflow: hidden;
	background: linear-gradient(135deg, #dfe7f2, #f7f9fc);
}

.cbm-home-blog__media--featured {
	aspect-ratio: 16 / 9;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cbm-home-blog__media--thumb {
	flex: 0 0 168px;
	width: 168px;
	aspect-ratio: 16 / 10;
	align-self: stretch;
	min-height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
}

.cbm-home-blog__media img {
	width: 100%;
	height: 100%;
	object-fit: contain;
	object-position: center center;
	display: block;
	transform: none;
	transition: transform 0.45s ease;
}

.cbm-home-blog__featured:hover .cbm-home-blog__media img,
.cbm-home-blog__item:hover .cbm-home-blog__media img {
	transform: scale(1.02);
}

.cbm-home-blog__media-shine {
	position: absolute;
	inset: 0;
	background: linear-gradient(180deg, transparent 55%, rgba(18, 35, 58, 0.18) 100%);
	pointer-events: none;
}

.cbm-home-blog__media-fallback {
	width: 100%;
	height: 100%;
	min-height: 120px;
	background:
		linear-gradient(135deg, rgba(21, 54, 97, 0.12), rgba(250, 164, 26, 0.18));
}

.cbm-home-blog__featured-body {
	display: flex;
	flex-direction: column;
	gap: 10px;
	padding: 22px 24px 24px;
	flex: 1;
}

.cbm-home-blog__item-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 8px;
	padding: 16px 18px;
	min-width: 0;
	flex: 1;
}

.cbm-home-blog__meta {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 8px 12px;
	color: var(--cbm-muted);
	font-size: 13px;
	font-weight: 600;
}

.cbm-home-blog__cat {
	display: inline-flex;
	align-items: center;
	padding: 3px 10px;
	border-radius: 999px;
	background: rgba(250, 164, 26, 0.14);
	color: #9a6508;
	font-size: 12px;
	font-weight: 800;
	letter-spacing: 0.02em;
}

.cbm-home-blog__featured-body h3,
.cbm-home-blog__item-body h3 {
	margin: 0;
	color: var(--cbm-navy) !important;
	font-weight: 800;
	letter-spacing: -0.015em;
	line-height: 1.3;
}

.cbm-home-blog__featured-body h3 {
	font-size: clamp(1.2rem, 1rem + 0.7vw, 1.55rem);
}

.cbm-home-blog__item-body h3 {
	font-size: 16px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cbm-home-blog__excerpt {
	margin: 0;
	color: var(--cbm-muted);
	font-size: 15px;
	line-height: 1.6;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.cbm-home-blog__cta {
	margin-top: auto;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	color: var(--cbm-navy);
	font-size: 14px;
	font-weight: 800;
}

.cbm-home-blog__cta i {
	transition: transform 0.25s ease;
	color: var(--cbm-gold);
}

.cbm-home-blog__featured:hover .cbm-home-blog__cta i {
	transform: translateX(4px);
}

.cbm-home-blog__list {
	display: flex;
	flex-direction: column;
	gap: 14px;
	min-height: 100%;
}

.cbm-home-blog__item {
	flex: 1 1 0;
	min-height: 0;
}

.cbm-home-blog__foot {
	text-align: center;
	margin-top: 28px;
}

.cbm-home-blog__view-all {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	padding: 12px 28px;
	border-radius: 999px;
	background: var(--cbm-navy);
	color: #fff !important;
	font-weight: 800;
	font-size: 14px;
	text-decoration: none !important;
	letter-spacing: 0.02em;
	box-shadow: 0 10px 24px rgba(21, 54, 97, 0.22);
	transition: background 0.25s ease, transform 0.25s ease;
}

.cbm-home-blog__view-all:hover {
	background: var(--cbm-gold);
	color: var(--cbm-navy) !important;
	transform: translateY(-2px);
}

@media (max-width: 991.98px) {
	.cbm-home-blog {
		padding: 56px 0 48px;
	}
	.cbm-home-blog__grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}
	.cbm-home-blog__media--thumb {
		flex-basis: 132px;
		width: 132px;
	}
}

@media (max-width: 575.98px) {
	.cbm-home-blog__item-link {
		flex-direction: column;
	}
	.cbm-home-blog__media--thumb {
		width: 100%;
		flex-basis: auto;
		aspect-ratio: 16 / 9;
		min-height: 0;
	}
	.cbm-home-blog__media--thumb img,
	.cbm-home-blog__media--featured img {
		object-fit: contain;
	}
	.cbm-home-blog__featured-body,
	.cbm-home-blog__item-body {
		padding: 16px;
	}
}
