/* =========================================================
   LSTC LATEST HEALTH RESOURCES
   ========================================================= */

.lstc-latest-posts {
	width: 100%;
	max-width: 1290px;
	margin: 0 auto;
}

.lstc-latest-posts-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.75rem;
}


/* =========================================================
   POST CARD
   ========================================================= */

.lstc-latest-post-card {
	display: flex;
	flex-direction: column;
	overflow: hidden;
	border: 1px solid #D9DEDB;
	border-top: 5px solid #044221;
	border-radius: 12px;
	background: #FFFFFF;
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.04);
	transition:
		transform 0.2s ease,
		box-shadow 0.2s ease,
		border-color 0.2s ease;
}

.lstc-latest-post-card:hover {
	transform: translateY(-3px);
	border-color: #628D62;
	box-shadow: 0 8px 20px rgba(0, 0, 0, 0.07);
}


/* =========================================================
   FEATURED IMAGE
   ========================================================= */

.lstc-latest-post-image-link {
	display: block;
	width: 100%;
	height: 220px;
	overflow: hidden;
	background: #F3F5F4;
}

.lstc-latest-post-image {
	display: block;
	width: 100% !important;
	height: 100% !important;
	max-width: none !important;
	margin: 0 !important;
	object-fit: cover;
	object-position: center;
	transition: transform 0.25s ease;
}

.lstc-latest-post-card:hover .lstc-latest-post-image {
	transform: scale(1.025);
}

.lstc-latest-post-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	padding: 1rem;
	background: #F3F5F4;
	color: #044221;
	font-weight: 700;
	text-align: center;
}


/* =========================================================
   CARD CONTENT
   ========================================================= */

.lstc-latest-post-content {
	display: flex;
	flex: 1 1 auto;
	flex-direction: column;
	align-items: flex-start;
	padding: 1.35rem;
}

.lstc-latest-post-category {
	margin: 0 0 0.5rem;
	font-size: 0.8rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.06em;
	color: #628D62;
}

.lstc-latest-post-title {
	margin: 0 0 0.75rem;
	font-size: 1.3rem;
	line-height: 1.3;
}

.lstc-latest-post-title a {
	color: #171717;
	text-decoration: none;
}

.lstc-latest-post-title a:hover,
.lstc-latest-post-title a:focus {
	color: #044221;
}

.lstc-latest-post-excerpt {
	margin-bottom: 1.25rem;
	color: #333333;
	line-height: 1.6;
}

.lstc-latest-post-excerpt p {
	margin: 0;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.lstc-latest-post-button {
	display: inline-block;
	margin-top: auto;
	padding: 0.8rem 1.15rem;
	border-radius: 8px;
	background: #FFD11A;
	color: #171717;
	font-weight: 700;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

.lstc-latest-post-button:hover,
.lstc-latest-post-button:focus {
	background: #E6B900;
	color: #171717;
	transform: translateY(-1px);
}


/* =========================================================
   VIEW ALL BUTTON
   ========================================================= */

.lstc-latest-posts-footer {
	margin-top: 2rem;
	text-align: center;
}

.lstc-view-all-posts {
	display: inline-block;
	padding: 0.9rem 1.4rem;
	border-radius: 8px;
	background: #044221;
	color: #FFFFFF;
	font-weight: 700;
	text-decoration: none;
	transition:
		background-color 0.2s ease,
		transform 0.2s ease;
}

.lstc-view-all-posts:hover,
.lstc-view-all-posts:focus {
	background: #628D62;
	color: #FFFFFF;
	transform: translateY(-1px);
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 900px) {

	.lstc-latest-posts-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1.5rem;
	}

	.lstc-latest-post-card:last-child {
		grid-column: 1 / -1;
		max-width: 520px;
		width: 100%;
		justify-self: center;
	}

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 600px) {

	.lstc-latest-posts-grid {
		grid-template-columns: 1fr;
		gap: 1.25rem;
	}

	.lstc-latest-post-card:last-child {
		grid-column: auto;
		max-width: none;
	}

	.lstc-latest-post-image-link {
		height: 230px;
	}

	.lstc-latest-post-content {
		padding: 1.15rem;
	}

	.lstc-latest-post-title {
		font-size: 1.2rem;
	}

}