/*
 * Elementor Shop Blog — mirrors the xsmokehub Home page "From the Blog"
 * section (Home.tsx): DM Serif heading + "All articles →", white rounded
 * cards with a 16:10 image (hover zoom), category pill, title, excerpt,
 * date and "Read more →".
 * The Elementor controls override these defaults via generated CSS.
 */

/* ---- Wrapper ---- */
.esb-blog {
	width: 100%;
}

/* ---- Heading ---- */
.esb-heading {
	display: flex;
	align-items: flex-end;
	justify-content: space-between;
	gap: 24px;
	margin-bottom: 48px;
}

.esb-eyebrow {
	display: block;
	margin-bottom: 8px;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 500;
	letter-spacing: 0.2em;
	line-height: 1;
	text-transform: uppercase;
	color: #888888;
}

.esb-title-heading {
	margin: 0;
	font-family: 'DM Serif Display', serif;
	font-size: 36px;
	font-weight: 400;
	line-height: 1.15;
	color: #222222;
}

.esb-view-all {
	flex-shrink: 0;
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	font-weight: 500;
	line-height: 1;
	color: #222222;
	text-decoration: underline;
	text-decoration-offset: 4px;
	transition: opacity 0.2s ease;
}

.esb-view-all:hover {
	opacity: 0.6;
}

/* ---- Grid ---- */
.esb-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr)); /* fallback; Elementor overrides */
	column-gap: 24px;
	row-gap: 24px;
}

/* ---- Card ---- */
.esb-card {
	box-sizing: border-box;
	display: block;
	background-color: #ffffff;
	border: 1px solid #e5e5e5;
	border-radius: 16px;
	overflow: hidden;
	text-decoration: none;
	transition: box-shadow 0.3s ease, border-color 0.3s ease;
}

.esb-card:hover {
	box-shadow: 0 10px 20px rgba(0, 0, 0, 0.05);
	border-color: #dcdcde;
}

/* Image: 16:10, hover zoom */
.esb-image {
	position: relative;
	overflow: hidden;
	background-color: #ededed;
	aspect-ratio: 16 / 10;
}

.esb-image img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.5s ease;
}

.esb-card:hover .esb-image img {
	transform: scale(1.05);
}

/* Body */
.esb-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
}

.esb-category {
	display: inline-block;
	align-self: flex-start;
	margin-bottom: 12px;
	padding: 4px 10px;
	border: 1px solid #e5e5e5;
	border-radius: 999px;
	font-family: 'Jost', sans-serif;
	font-size: 10px;
	font-weight: 500;
	letter-spacing: 0.1em;
	line-height: 1.4;
	text-transform: uppercase;
	color: #888888;
}

.esb-title {
	margin: 0 0 8px;
	font-family: 'Jost', sans-serif;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.35;
	color: #222222;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.esb-excerpt {
	margin: 0 0 16px;
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 400;
	line-height: 1.55;
	color: #888888;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.esb-meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: auto;
}

.esb-date {
	font-family: 'Jost', sans-serif;
	font-size: 11px;
	font-weight: 400;
	line-height: 1;
	color: #888888;
}

.esb-more {
	font-family: 'Jost', sans-serif;
	font-size: 12px;
	font-weight: 500;
	line-height: 1;
	color: #222222;
	white-space: nowrap;
}

/* ---- Responsive: tablet 2 columns, mobile 1 column ---- */
@media (max-width: 1024px) {
	.esb-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
	}
}

@media (max-width: 767px) {
	.esb-grid {
		grid-template-columns: repeat(1, minmax(0, 1fr)) !important;
	}

	.esb-heading {
		flex-direction: column;
		align-items: flex-start;
		gap: 16px;
	}

	.esb-title-heading {
		font-size: 28px;
	}
}
