/**
 * EB Latest News Widget Styles
 *
 * Blog post grid with image, category badge, date, and title.
 */

.eb-latest-news__header {
	text-align: center;
	margin-bottom: 48px;
}

.eb-latest-news__label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.15em;
	text-transform: uppercase;
	color: #B09360;
	display: block;
	margin-bottom: 12px;
}

.eb-latest-news__heading {
	font-size: clamp(1.75rem, 3vw, 2.5rem);
	font-weight: 600;
	color: #1E1B4B;
	line-height: 1.2;
	margin: 0;
}

.eb-latest-news__grid {
	display: grid;
	grid-template-columns: repeat(var(--cols, 2), 1fr);
	gap: 32px;
}

.eb-latest-news__card {
	background-color: #fff;
	border-radius: 12px;
	overflow: hidden;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	padding: 16px;
}

.eb-latest-news__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.eb-latest-news__image-link {
	display: block;
	overflow: hidden;
	border-radius: 8px;
}

.eb-latest-news__image {
	width: 100%;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.6s ease;
	display: block;
}

.eb-latest-news__card:hover .eb-latest-news__image {
	transform: scale(1.05);
}

.eb-latest-news__meta {
	display: flex;
	align-items: center;
	gap: 12px;
	padding: 16px 0 8px;
	font-size: 13px;
	color: #6B7280;
}

.eb-latest-news__category {
	color: #B09360;
	font-weight: 500;
}

.eb-latest-news__date {
	color: #6B7280;
}

.eb-latest-news__title {
	font-size: 18px;
	font-weight: 600;
	color: #1E1B4B;
	line-height: 1.4;
	margin: 0;
}

.eb-latest-news__title a {
	color: inherit;
	text-decoration: none;
	transition: color 0.3s ease;
}

.eb-latest-news__title a:hover {
	color: #B09360;
}

.eb-latest-news__excerpt {
	font-size: 14px;
	line-height: 1.7;
	color: #4B5563;
	margin-top: 8px;
	margin-bottom: 0;
}

.eb-latest-news__empty {
	text-align: center;
	color: #6B7280;
	font-size: 14px;
}

.eb-latest-news__footer {
	text-align: center;
	margin-top: 40px;
}

.eb-latest-news__view-all {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	padding: 14px 32px;
	background-color: #B09360;
	color: #fff;
	text-decoration: none;
	font-size: 14px;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	border-radius: 6px;
	transition: all 0.3s ease;
}

.eb-latest-news__view-all:hover {
	background-color: #9A7D4E;
	transform: translateY(-2px);
	box-shadow: 0 4px 16px rgba(176, 147, 96, 0.3);
	color: #fff;
}

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

@media (max-width: 768px) {
	.eb-latest-news__grid {
		grid-template-columns: 1fr;
	}

	.eb-latest-news__header {
		margin-bottom: 32px;
	}
}
