.rcesd-posts {
	direction: rtl;
	font-family: "Yekan Bakh", Tahoma, sans-serif;
	color: #1c1c1c;
}

.rcesd-posts__head {
	display: flex;
	align-items: flex-start;
	justify-content: space-between;
	gap: 16px;
	margin-bottom: 18px;
}

.rcesd-posts__heading {
	min-width: 0;
}

.rcesd-posts__title {
	position: relative;
	margin: 0 0 6px;
	padding-inline-start: 18px;
	font-size: 24px;
	font-weight: 800;
	line-height: 1.45;
}

.rcesd-posts__title::before {
	content: "";
	position: absolute;
	top: 8px;
	inset-inline-start: 0;
	width: 6px;
	height: 22px;
	border-radius: 999px;
	background: #1f9d4a;
}

.rcesd-posts__subtitle {
	margin: 0;
	color: #8a938c;
	font-size: 14px;
	font-weight: 500;
}

.rcesd-posts__all {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	flex: none;
	margin-top: 6px;
	color: #1f9d4a;
	font-size: 14px;
	font-weight: 700;
	text-decoration: none;
	white-space: nowrap;
}

.rcesd-posts__all:hover {
	color: #157a38;
}

.rcesd-posts__grid {
	display: grid;
	grid-template-columns: 1fr 1fr 1.18fr;
	grid-template-rows: auto auto;
	align-items: stretch;
	gap: 16px;
}

.rcesd-posts__card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	background: #fff;
	border-radius: 22px;
	overflow: hidden;
	box-shadow: 0 10px 28px rgba(16, 40, 24, 0.06);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.rcesd-posts__card:hover {
	transform: translateY(-2px);
	box-shadow: 0 14px 32px rgba(16, 40, 24, 0.1);
}

.rcesd-posts__card--featured {
	grid-column: 3;
	grid-row: 1 / span 2;
}

.rcesd-posts__media {
	position: relative;
	display: block;
	flex: 1 1 auto;
	min-height: 140px;
	overflow: hidden;
}

.rcesd-posts__card--featured .rcesd-posts__media {
	flex: 1 1 auto;
	min-height: 220px;
}

.rcesd-posts__img {
	position: absolute;
	inset: 0;
	display: block;
	width: 100% !important;
	height: 100% !important;
	object-fit: cover;
}

.rcesd-posts__img--empty {
	background: linear-gradient(135deg, #d7eadc, #c5ddd0);
}

.rcesd-posts__badge {
	position: absolute;
	top: 12px;
	right: 12px;
	padding: 5px 12px;
	border-radius: 999px;
	color: #fff;
	font-size: 12px;
	font-weight: 700;
	line-height: 1.4;
	background: #1f9d4a;
}

.rcesd-posts__badge.is-teal {
	background: #0ea5a4;
}

.rcesd-posts__badge.is-cyan {
	background: #38bdf8;
}

.rcesd-posts__badge.is-lime {
	background: #22c55e;
}

.rcesd-posts__body {
	display: flex;
	flex-direction: column;
	flex: 0 0 auto;
	gap: 8px;
	padding: 12px 14px 12px;
}

.rcesd-posts__card--featured .rcesd-posts__body {
	padding: 14px 18px 14px;
	gap: 8px;
}

.rcesd-posts__name {
	margin: 0;
	font-size: 14px;
	font-weight: 800;
	line-height: 1.5;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rcesd-posts__card--featured .rcesd-posts__name {
	font-size: 18px;
	line-height: 1.45;
}

.rcesd-posts__name a {
	color: inherit;
	text-decoration: none;
}

.rcesd-posts__card:hover .rcesd-posts__name a {
	color: #1f9d4a;
}

.rcesd-posts__excerpt {
	margin: 0;
	color: #6b7280;
	font-size: 13px;
	line-height: 1.65;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rcesd-posts__foot {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: 0;
}

.rcesd-posts__date {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	color: #9aa39c;
	font-size: 13px;
}

.rcesd-posts__go {
	width: 34px;
	height: 34px;
	border-radius: 50%;
	background: #f3f4f3;
	color: #6b7280;
	display: grid;
	place-items: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.rcesd-posts__card:hover .rcesd-posts__go {
	background: #1f9d4a;
	color: #fff;
	transform: translateX(-3px);
}

.rcesd-posts__empty {
	margin: 16px 0;
	color: #6b7280;
}

@media (max-width: 980px) {
	.rcesd-posts__grid {
		grid-template-columns: 1fr 1fr;
	}

	.rcesd-posts__card--featured {
		grid-column: 1 / span 2;
		grid-row: auto;
	}

	.rcesd-posts__card--featured .rcesd-posts__media {
		min-height: 180px;
		flex: none;
		height: 200px;
	}
}

@media (max-width: 640px) {
	.rcesd-posts__head {
		flex-direction: column;
	}

	.rcesd-posts__grid {
		grid-template-columns: 1fr;
	}

	.rcesd-posts__card--featured {
		grid-column: auto;
	}

	.rcesd-posts__title {
		font-size: 20px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.rcesd-posts__card,
	.rcesd-posts__go {
		transition: none;
	}
}
