/* Bright Addons: Post Grid */
.bafe-posts {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 28px;
}

.bafe-post {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border-radius: 14px;
	background-color: #fff;
	box-shadow: 0 4px 20px rgba(20, 16, 60, 0.07);
	transition: box-shadow 0.25s ease, transform 0.25s ease;
}

.bafe-post:hover {
	transform: translateY(-3px);
}

.bafe-post__thumb {
	display: block;
	overflow: hidden;
	line-height: 0;
}

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

.bafe-post:hover .bafe-post__thumb img {
	transform: scale(1.04);
}

.bafe-post__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	padding: 22px 24px 26px;
}

.bafe-post__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
	color: #7a7a90;
	font-size: 0.8125rem;
}

.bafe-post__title {
	margin: 0 0 10px;
	font-size: 1.25rem;
	line-height: 1.35;
}

.bafe-post__title a {
	color: #1d1b36;
	text-decoration: none;
	transition: color 0.2s ease;
}

.bafe-post__title a:hover,
.bafe-post__title a:focus-visible {
	color: #5b4bff;
}

.bafe-post__excerpt {
	margin: 0 0 16px;
	color: #50506a;
}

.bafe-post__more {
	margin-top: auto;
	align-self: flex-start;
	color: #5b4bff;
	font-weight: 600;
	text-decoration: none;
}

.bafe-post__more:hover,
.bafe-post__more:focus-visible {
	text-decoration: underline;
}

.bafe-post .screen-reader-text {
	position: absolute;
	width: 1px;
	height: 1px;
	margin: -1px;
	padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	border: 0;
	white-space: nowrap;
}

@media (max-width: 1024px) {
	.bafe-posts {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.bafe-posts {
		grid-template-columns: 1fr;
	}
}
