/* News cards and post details: the Latest news block, the blog and archive lists, and single posts. Mobile first. */

.ba-card-grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 20px;
}

.ba-card {
	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	overflow: hidden;
	border-radius: 3px;
	background: #fff;
	box-shadow: 0 0 10px rgba(0, 0, 0, 0.1);
}

.ba-card__media {
	display: block;
	aspect-ratio: 3 / 2;
	overflow: hidden;
}

.ba-card__image {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.ba-card__body {
	flex: 1 1 auto;
	padding: 20px;
}

.ba-card__title {
	margin: 0;
	font-size: 21px;
	font-weight: 500;
	line-height: 1.2;
}

.ba-card__title a {
	color: var(--ba-blue, #069);
	text-decoration: none;
}

.ba-card__title a:hover,
.ba-card__title a:focus-visible {
	text-decoration: underline;
}

/* Home cards: a "read more" link in the bottom right corner. */
.ba-card--home .ba-card__body {
	min-height: 150px;
	padding-bottom: 64px;
}

.ba-card__more {
	position: absolute;
	right: 20px;
	bottom: 20px;
	color: #666;
	font-size: 18px;
	font-weight: 300;
	line-height: 1.5;
	text-decoration: none;
}

.ba-card__more:hover,
.ba-card__more:focus-visible {
	color: var(--ba-blue, #069);
}

/* Archive cards: category badge, short text and the date. */
.ba-card__badge {
	position: absolute;
	top: 20px;
	right: 20px;
	padding: 7px 14px;
	border-radius: 13px;
	background: #69727d;
	color: #fff;
	font-size: 12px;
	line-height: 1;
}

.ba-card__excerpt {
	margin: 20px 0 0;
	color: var(--ba-muted, #767676);
	font-size: 14px;
	line-height: 1.5;
}

.ba-card__footer {
	margin-top: auto;
	padding: 15px 20px;
	border-top: 1px solid #eee;
	color: var(--ba-muted, #767676);
	font-size: 12px;
	line-height: 1.3;
}

@media (min-width: 768px) {
	.ba-card-grid {
		grid-template-columns: repeat(2, 1fr);
	}

	.ba-card-grid--archive {
		gap: 30px;
	}
}

@media (min-width: 1025px) {
	.ba-card-grid {
		grid-template-columns: repeat(3, 1fr);
	}
}

.ba-post-meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px 20px;
	margin: 0;
	color: var(--ba-text-on-bg, #666);
	font-size: 16px;
	line-height: 1.5;
}

.ba-post-meta a {
	color: inherit;
	text-decoration: none;
}

.ba-post-meta a:hover,
.ba-post-meta a:focus-visible {
	color: var(--ba-blue, #069);
	text-decoration: underline;
}
