/* =========================================================
   Custom Blog Grid Widget — Styles
   ========================================================= */

.cbg-wrapper {
	width: 100%;
}

/* ---------- Header row ---------- */
.cbg-header {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 40px;
}

.cbg-header-text {
	max-width: 640px;
}

.cbg-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 34px;
	font-weight: 500;
	color: #1c1c1c;
	margin: 0 0 10px 0;
}

.cbg-description {
	font-size: 15px;
	line-height: 1.6;
	color: #5c5750;
	margin: 0;
}

/* ---------- Grid ---------- */
.cbg-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 32px;
	row-gap: 48px;
}

/* ---------- Card ---------- */
.cbg-card {
	display: flex;
	flex-direction: column;
}

.cbg-card-image {
	width: 100%;
	margin-bottom: 20px;
}

.cbg-card-image img {
	width: 100%;
	height: 280px;
	object-fit: cover;
	object-position: center;
	border-radius: 4px;
	display: block;
}

.cbg-meta {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.4px;
	color: #8a8580;
	display: flex;
	align-items: center;
	gap: 8px;
	margin-bottom: 12px;
}

.cbg-post-title {
	font-family: 'Playfair Display', Georgia, serif;
	font-size: 20px;
	font-weight: 500;
	line-height: 1.3;
	color: #1c1c1c;
	margin: 0 0 12px 0;
}

.cbg-excerpt {
	font-size: 14px;
	line-height: 1.6;
	color: #5c5750;
	margin: 0 0 20px 0;
	flex-grow: 1;
}

.cbg-card-divider {
	width: 100%;
	height: 1px;
	background-color: rgba(0, 0, 0, 0.12);
	margin-bottom: 20px;
}

/* ---------- Buttons (header + card) ---------- */
.cbg-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	width: fit-content;
	background-color: #0f1f33;
	color: #ffffff;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
	padding: 12px 20px;
	border-radius: 6px;
	white-space: nowrap;
	transition: background-color 0.25s ease;
}

.cbg-btn:hover {
	background-color: #1c3a5e;
	color: #ffffff;
}

.cbg-btn-icon {
	display: inline-flex;
	font-size: 12px;
}

.cbg-btn-icon svg,
.cbg-btn-icon i {
	width: 1em;
	height: 1em;
}

/* =========================================================
   Responsive
   ========================================================= */
@media (max-width: 1024px) {
	.cbg-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 767px) {
	.cbg-header {
		flex-direction: column;
		align-items: flex-start;
	}
	.cbg-grid {
		grid-template-columns: 1fr;
		row-gap: 40px;
	}
	.cbg-title {
		font-size: 28px;
	}
}
