/* De Alva — shared post card (homepage Recent Posts + blog index + archives +
   author + attorney feed). One card style everywhere. Loaded globally. */

/* Shared 3-up responsive grid (homepage + blog index + archives) */
.dealva-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

@media (max-width: 900px) {
	.dealva-posts__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 600px) {
	.dealva-posts__grid { grid-template-columns: 1fr; }
}

.dealva-posts__card {
	background-color: var(--white, #ffffff);
	border: 1px solid var(--line, #e2e8f0);
	border-radius: 10px;
	overflow: hidden;
	display: flex;
	flex-direction: column;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.dealva-posts__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 28px rgba(21, 37, 76, 0.12);
}

.dealva-posts__thumb-link {
	display: block;
	overflow: hidden;
}

.dealva-posts__thumb {
	aspect-ratio: 16 / 9;
	overflow: hidden;
}

.dealva-posts__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.dealva-posts__card:hover .dealva-posts__thumb img {
	transform: scale(1.04);
}

.dealva-posts__thumb-fallback {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	background: linear-gradient(120deg, var(--navy, #15254c) 0%, #0f1b39 100%);
	color: #fff;
	font-family: var(--sans);
	font-weight: 900;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	font-size: 0.95rem;
}

.dealva-posts__body {
	padding: 20px 22px 24px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

.dealva-posts__date {
	font-family: var(--sans);
	color: var(--muted, #4a5568);
	font-size: 0.8125rem;
	font-weight: 500;
	letter-spacing: 0.02em;
	text-transform: uppercase;
	display: block;
	margin-bottom: 8px;
}

.dealva-posts__title {
	font-family: var(--sans);
	font-size: 1.0625rem;
	font-weight: 700;
	line-height: 1.35;
	margin: 0 0 10px;
}

.dealva-posts__title a {
	color: var(--navy, #15254c);
	text-decoration: none;
	transition: color 0.15s ease;
}

.dealva-posts__title a:hover {
	color: var(--blue, #1a56db);
}

.dealva-posts__excerpt {
	font-family: var(--sans);
	color: var(--ink, #2d3748);
	font-size: 0.9375rem;
	line-height: 1.65;
	margin: 0 0 16px;
	flex: 1;
}

.dealva-posts__read-more {
	font-family: var(--sans);
	color: var(--blue, #1a56db);
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	align-self: flex-start;
	transition: color 0.15s ease;
}

.dealva-posts__read-more:hover {
	color: var(--red, #c0392b);
}
