.agribex-posts {
	padding-top: clamp(5.5rem, 8vw, 7.5rem);
	padding-bottom: clamp(3rem, 6vw, 5.5rem);
	color: var(--agribex-green-darker);
}

.agribex-posts__breadcrumb,
.agribex-posts__breadcrumb a,
.agribex-posts__breadcrumb .agribex-article__breadcrumb-label {
	color: #fff;
}

.agribex-posts__breadcrumb svg path {
	stroke: #fff;
}

.agribex-posts__title {
	margin: 1.35rem 0 0;
	color: #fff;
	font-size: clamp(2rem, 4vw, 2.75rem);
	font-weight: 300;
	line-height: 1.15;
}

.agribex-posts__filters {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 0.65rem;
	margin-top: 1.75rem;
}

.agribex-posts__filter-icon,
.agribex-posts__filter {
	color: #fff;
	text-decoration: none;
}

.agribex-posts__filter-icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 2.25rem;
	height: 2.25rem;
}

.agribex-posts__filter {
	display: inline-flex;
	align-items: center;
	padding: 0.45rem 0.95rem;
	border: 1px solid #fff;
	border-radius: 999px;
	background: transparent;
	font-size: var(--agribex-font-sm);
	font-weight: 400;
	line-height: 1.2;
	white-space: nowrap;
}

.agribex-posts__filter.is-active,
.agribex-posts__filter:hover {
	background: #fff;
	color: var(--agribex-green-darker);
}

.agribex-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.25rem;
	margin-top: 1.75rem;
}

.agribex-posts__card {
	--pe-card-radius: 18px;
	--pe-card-btn: 35px;
	--pe-card-pad: 1.15rem;
	--pe-card-corner-w: 115px;
	--pe-card-corner-h: calc(var(--pe-card-corner-w) * 86 / 113);

	position: relative;
	display: flex;
	flex-direction: column;
	min-width: 0;
	height: 100%;
	padding: var(--pe-card-pad) var(--pe-card-pad) calc(var(--pe-card-btn) + 0.35rem);
	box-sizing: border-box;
	transition: filter 0.35s ease;
}

.agribex-posts__card::before {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 0;
	border-radius: var(--pe-card-radius);
	background: #fff;
	pointer-events: none;
	transition: background-color 0.35s ease;
	-webkit-mask-image:
		linear-gradient(#000, #000),
		linear-gradient(#000, #000),
		url("../assets/images/pe-card-corner.png");
	-webkit-mask-size:
		calc(100% - var(--pe-card-corner-w) + 1px) 100%,
		100% calc(100% - var(--pe-card-corner-h) + 1px),
		var(--pe-card-corner-w) var(--pe-card-corner-h);
	-webkit-mask-position: 0 0, 0 0, 100% 100%;
	-webkit-mask-repeat: no-repeat;
	mask-image:
		linear-gradient(#000, #000),
		linear-gradient(#000, #000),
		url("../assets/images/pe-card-corner.png");
	mask-size:
		calc(100% - var(--pe-card-corner-w) + 1px) 100%,
		100% calc(100% - var(--pe-card-corner-h) + 1px),
		var(--pe-card-corner-w) var(--pe-card-corner-h);
	mask-position: 0 0, 0 0, 100% 100%;
	mask-repeat: no-repeat;
}

.agribex-posts__media,
.agribex-posts__heading,
.agribex-posts__date,
.agribex-posts__excerpt {
	position: relative;
	z-index: 1;
}

.agribex-posts__media {
	display: block;
	margin-bottom: 1rem;
	border-radius: 0.75rem;
	overflow: hidden;
}

.agribex-posts__media img {
	display: block;
	width: 100%;
	height: auto;
	aspect-ratio: 16 / 10;
	object-fit: cover;
	transition: transform 0.45s ease;
}

.agribex-posts__heading {
	margin: 0;
	color: var(--agribex-green-darker);
	font-size: 1.15rem;
	font-weight: 600;
	line-height: 1.3;
	transition: color 0.35s ease;
}

.agribex-posts__heading a {
	color: inherit;
	text-decoration: none;
}

.agribex-posts__date {
	display: inline-block;
	align-self: flex-start;
	margin-top: 0.85rem;
	padding: 0.4rem 0.5rem;
	border-radius: var(--agribex-radius-sm);
	background: var(--agribex-gray);
	color: var(--agribex-green-darker);
	font-size: 0.75rem;
	line-height: 1.3;
	transition: background-color 0.35s ease, color 0.35s ease;
}

.agribex-posts__excerpt {
	display: -webkit-box;
	margin: 0.9rem 0 0;
	overflow: hidden;
	color: var(--agribex-green-darker);
	font-size: 0.9375rem;
	font-weight: 300;
	line-height: 1.45;
	transition: color 0.35s ease;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.agribex-posts .pe-card__cta {
	position: absolute;
	left: var(--pe-card-pad);
	right: 0;
	bottom: 0;
	z-index: 2;
	display: flex;
	align-items: center;
	justify-content: space-between;
	height: var(--pe-card-btn);
	color: var(--agribex-green-darker);
	text-decoration: none;
}

.agribex-posts .pe-card__more {
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	color: var(--agribex-green-darker);
	transition: color 0.35s ease;
}

.agribex-posts .pe-card__btn {
	display: inline-flex;
	flex-shrink: 0;
	align-items: center;
	justify-content: center;
	width: var(--pe-card-btn);
	height: var(--pe-card-btn);
	border-radius: 50%;
	background: var(--agribex-green-light);
	color: #fff;
	transition: background 0.2s ease, transform 0.2s ease;
}

.agribex-posts .pe-card__cta:hover .pe-card__btn,
.agribex-posts .pe-card__cta:focus .pe-card__btn {
	background: #8ab44a;
	transform: scale(1.06);
}

.agribex-posts .pe-card__btn svg {
	display: block;
	width: 11px;
	height: 11px;
}

.agribex-posts__card:hover,
.agribex-posts__card:focus-within {
	filter: drop-shadow(0 0.7rem 1.15rem rgba(0, 0, 0, 0.2));
}

.agribex-posts__card:hover::before,
.agribex-posts__card:focus-within::before {
	background: var(--agribex-green-dark);
}

.agribex-posts__card:hover .agribex-posts__heading,
.agribex-posts__card:hover .agribex-posts__heading a,
.agribex-posts__card:hover .agribex-posts__excerpt,
.agribex-posts__card:hover .agribex-posts__date,
.agribex-posts__card:hover .pe-card__cta,
.agribex-posts__card:hover .pe-card__more,
.agribex-posts__card:focus-within .agribex-posts__heading,
.agribex-posts__card:focus-within .agribex-posts__heading a,
.agribex-posts__card:focus-within .agribex-posts__excerpt,
.agribex-posts__card:focus-within .agribex-posts__date,
.agribex-posts__card:focus-within .pe-card__cta,
.agribex-posts__card:focus-within .pe-card__more {
	color: #fff;
}

.agribex-posts__card:hover .agribex-posts__date,
.agribex-posts__card:focus-within .agribex-posts__date {
	background: rgba(255, 255, 255, 0.16);
}

.agribex-posts__card:hover .agribex-posts__media img,
.agribex-posts__card:focus-within .agribex-posts__media img {
	transform: scale(1.06);
}

.agribex-posts__empty {
	margin: 2rem 0 0;
	color: var(--agribex-green-darker);
	font-weight: 300;
}

@media (max-width: 64rem) {
	.agribex-posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 40rem) {
	.agribex-posts__grid {
		grid-template-columns: 1fr;
	}

	.agribex-posts__card {
		--pe-card-pad: 1rem;
	}
}
