/**
 * Custom Blog Cards for Elementor — Base Styles
 * Note: colors, spacing, borders, typography etc. are controlled
 * dynamically from the Elementor Style tab. This file only holds
 * structural CSS that Elementor controls don't cover.
 */

.cebc-grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	column-gap: 24px;
	row-gap: 24px;
	width: 100%;
}

.cebc-card {
	display: flex;
	flex-direction: column;
	background-color: #ffffff;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.cebc-card.cebc-hover-lift:hover,
.cebc-card[data-hover="yes"]:hover {
	transform: translateY(-6px);
}

.cebc-card-image {
	position: relative;
	overflow: hidden;
	line-height: 0;
}

.cebc-card-image img {
	display: block;
	width: 100%;
	height: 220px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.cebc-card-image img.cebc-zoom {
	will-change: transform;
}

.cebc-card:hover .cebc-card-image img.cebc-zoom {
	transform: scale(1.08);
}

.cebc-card-badge {
	position: absolute;
	top: 12px;
	left: 12px;
	padding: 4px 12px;
	font-size: 12px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.03em;
	border-radius: 4px;
	background-color: #0073e6;
	color: #ffffff;
}

.cebc-card-body {
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.cebc-card-meta {
	font-size: 13px;
	display: flex;
	gap: 12px;
	color: #8a8a8a;
	margin-bottom: 6px;
}

.cebc-card-title {
	margin: 16px 0;
	line-height: 1.35;
}

.cebc-card-title a {
	text-decoration: none;
	color: inherit;
	transition: color 0.2s ease;
}

.cebc-card-excerpt {
	font-size: 15px;
	line-height: 1.6;
	color: #5f5f5f;
	margin-bottom: 16px;
}

.cebc-card-button {
	display: inline-block;
	align-self: flex-start;
	margin-top: auto;
	text-decoration: none;
	font-weight: 600;
	text-align: center;
	background-color: #0073e6;
	color: #ffffff;
	border-radius: 6px;
	padding: 10px 20px;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.cebc-no-posts {
	text-align: center;
	padding: 40px 0;
	color: #8a8a8a;
}

/* Responsive fallback (in case Elementor's own breakpoints aren't customized) */
@media (max-width: 1024px) {
	.cebc-grid {
		grid-template-columns: repeat(2, 1fr);
	}
}

@media (max-width: 600px) {
	.cebc-grid {
		grid-template-columns: repeat(1, 1fr);
	}
}
