/* Post card - grid item used on archive/blog listing pages */

.post-card-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
	gap: 32px;
}

.post-card {
	--post-card-accent: #1c3a5e;
	--post-card-badge: #2f6fed;
	display: flex;
	flex-direction: column;
	background: #fff;
	border-radius: 14px;
	overflow: hidden;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.08);
}

.post-card__media {
	position: relative;
	display: block;
	line-height: 0;
}

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

.post-card__image--placeholder {
	background: #e5e5e5;
}

.post-card__badge {
    position: absolute;
    top: 16px;
    left: 16px;
    background: #f7941c;
    color: #fff;
    font-size: 0.8rem;
    text-transform: uppercase;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 6px;
}

.post-card__date {
	position: absolute;
	left: 10px;
	bottom: -30px;
	width: 64px;
	padding: 4px 0 25px;
	display: flex;
	flex-direction: column;
	align-items: center;
	background: var(--post-card-accent);
	color: #fff;
	clip-path: polygon(0 0, 100% 0, 100% 78%, 50% 100%, 0 78%);
}

.post-card__date-day {
	font-size: 1.6rem;
	font-weight: 700;
	line-height: 1.5;
}

.post-card__date-month {
	font-size: 0.8rem;
	text-transform: capitalize;
}

.post-card__body {
	padding: 44px 24px 28px;
	display: flex;
	flex-direction: column;
	flex-grow: 1;
}

.post-card__title {
	margin: 0 0 12px;
	font-size: 1.25rem;
	line-height: 1.4;
}

.post-card__title a {
	color: #17171a;
	text-decoration: none;
}

.post-card__title a:hover {
	text-decoration: underline;
}

.post-card__excerpt {
	color: #6b6b6b;
	font-size: 0.95rem;
	line-height: 1.6;
	margin-bottom: 24px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.post-card__excerpt p {
	margin: 0;
}

.post-card__button {
	align-self: flex-start;
	margin-top: auto;
	padding: 14px 32px;
	background: var(--post-card-accent);
	color: #fff;
	text-decoration: none;
	text-transform: uppercase;
	font-size: 0.8rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	border-radius: 999px;
	transition: opacity 0.2s ease;
}

.post-card__button:hover {
	opacity: 0.85;
	color: #fff;
}

@media (max-width: 480px) {
	.post-card-grid {
		grid-template-columns: 1fr;
	}
}
