.ms-home-latest-posts,
.ms-home-latest-posts * {
	box-sizing: border-box;
}

.ms-home-latest-posts {
	width: 100%;
	padding: 48px 32px 64px;
	border-top: 1px solid #e7e4df;
	background: #fff;
	color: #171717;
	font-family: "DM Sans", sans-serif;
}

.ms-home-latest-posts__inner {
	width: min(1200px, 100%);
	margin: 0 auto;
}

.ms-home-latest-posts__header {
	margin: 0 0 34px;
}

.ms-home-latest-posts__header h2 {
	margin: 0;
	color: #171717;
	font: 800 clamp(32px, 3.4vw, 42px)/1.12 "Plus Jakarta Sans", sans-serif;
	letter-spacing: -1.4px;
	text-wrap: balance;
}

.ms-home-latest-posts__rule {
	display: block;
	width: 56px;
	height: 4px;
	margin-top: 17px;
	border-radius: 4px;
	background: #ff8927;
}

.ms-home-latest-posts__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	align-items: stretch;
	gap: 28px;
}

.ms-home-post-card {
	display: flex;
	min-width: 0;
	flex-direction: column;
	margin: 0;
	padding: 12px 12px 19px;
	border: 1px solid #efe5da;
	border-radius: 22px;
	background: #fff;
	box-shadow: 0 12px 30px rgba(58, 36, 16, .06);
	transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.ms-home-post-card:hover {
	transform: translateY(-3px);
	border-color: #e9d2bd;
	box-shadow: 0 18px 38px rgba(58, 36, 16, .1);
}

.ms-home-post-card__image {
	position: relative;
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	margin: 0;
	padding: 0;
	border-radius: 14px;
	background: #fff4e8;
	text-decoration: none;
}

.ms-home-post-card__image img {
	display: block;
	width: 100%;
	height: 100%;
	max-width: none;
	margin: 0;
	object-fit: cover;
	transition: transform 300ms ease;
}

.ms-home-post-card:hover .ms-home-post-card__image img {
	transform: scale(1.03);
}

.ms-home-post-card__placeholder {
	display: grid;
	width: 100%;
	height: 100%;
	place-items: center;
	background: linear-gradient(135deg, #fff4e8, #ffdcb8);
	color: #171717;
	font: 800 22px/1.2 "Plus Jakarta Sans", sans-serif;
}

.ms-home-post-card__body {
	display: flex;
	flex: 1;
	flex-direction: column;
	align-items: flex-start;
	padding: 20px 12px 0;
}

.ms-home-post-card__category {
	display: inline-flex;
	max-width: 100%;
	min-height: 26px;
	align-items: center;
	margin: 0 0 16px;
	padding: 4px 11px;
	overflow: hidden;
	border: 1px solid #f2d4bc;
	border-radius: 999px;
	background: #fff4e8;
	color: #a85a1a;
	font: 700 11.5px/1.2 "DM Sans", sans-serif;
	text-overflow: ellipsis;
	text-decoration: none;
	white-space: nowrap;
}

.ms-home-post-card__category:hover,
.ms-home-post-card__category:focus-visible {
	border-color: #edb684;
	color: #8e4513;
}

.ms-home-post-card__body h3 {
	margin: 0;
	color: #171717;
	font: 700 20px/1.28 "Plus Jakarta Sans", sans-serif;
	letter-spacing: -.45px;
}

.ms-home-post-card__body h3 a {
	color: inherit;
	text-decoration: none;
}

.ms-home-post-card__body h3 a:hover,
.ms-home-post-card__body h3 a:focus-visible {
	color: #a85a1a;
}

.ms-home-post-card__excerpt {
	display: -webkit-box;
	margin: 11px 0 17px;
	overflow: hidden;
	color: #5a5a5a;
	font: 400 15px/1.62 "DM Sans", sans-serif;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.ms-home-post-card__meta {
	display: flex;
	width: 100%;
	align-items: center;
	justify-content: space-between;
	gap: 10px;
	margin-top: auto;
	padding-top: 18px;
	color: #5a5a5a;
	font: 500 12.5px/1.2 "DM Sans", sans-serif;
}

.ms-home-post-card__byline {
	display: flex;
	min-width: 0;
	align-items: center;
	gap: 8px;
	white-space: nowrap;
}

.ms-home-post-card__byline img {
	display: block;
	width: 30px;
	height: 30px;
	flex: 0 0 30px;
	margin: 0;
	border: 1px solid #f2d4bc;
	border-radius: 50%;
	object-fit: cover;
}

.ms-home-post-card__dot {
	width: 4px;
	height: 4px;
	flex: 0 0 4px;
	border-radius: 50%;
	background: #c9bbae;
}

.ms-home-post-card__meta time {
	color: #5a5a5a;
	font: inherit;
	white-space: nowrap;
}

.ms-home-post-card__read {
	display: inline-flex;
	flex: none;
	align-items: center;
	gap: 6px;
	color: #bd5714;
	font: 700 13.5px/1.2 "DM Sans", sans-serif;
	text-decoration: none;
	white-space: nowrap;
}

.ms-home-post-card__read:hover,
.ms-home-post-card__read:focus-visible {
	color: #8e4513;
	text-decoration: underline;
}

.ms-home-latest-posts__empty {
	margin: 0;
	padding: 22px;
	border: 1px dashed #ebd5c0;
	border-radius: 14px;
	background: #fff8f1;
	color: #5a5a5a;
	text-align: center;
}

.ms-home-latest-posts a:focus-visible {
	outline: 3px solid #bd5714;
	outline-offset: 3px;
}

@media (max-width: 1050px) {
	.ms-home-latest-posts__grid {
		gap: 18px;
	}

	.ms-home-post-card__meta {
		align-items: flex-start;
		flex-direction: column;
	}
}

@media (max-width: 800px) {
	.ms-home-latest-posts__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.ms-home-post-card__meta {
		align-items: center;
		flex-direction: row;
	}
}

@media (max-width: 600px) {
	.ms-home-latest-posts {
		padding: 42px 20px 50px;
	}

	.ms-home-latest-posts__header {
		margin-bottom: 24px;
	}

	.ms-home-latest-posts__header h2 {
		font-size: 32px;
		letter-spacing: -1px;
	}

	.ms-home-latest-posts__grid {
		grid-template-columns: minmax(0, 1fr);
		gap: 18px;
	}

	.ms-home-post-card {
		padding: 10px 10px 16px;
		border-radius: 18px;
	}

	.ms-home-post-card__image {
		border-radius: 12px;
	}

	.ms-home-post-card__body {
		padding: 17px 10px 0;
	}

	.ms-home-post-card__body h3 {
		font-size: 19px;
	}

	.ms-home-post-card__meta {
		gap: 8px;
		padding-top: 15px;
	}

	.ms-home-post-card__byline {
		gap: 6px;
		font-size: 11.5px;
	}

	.ms-home-post-card__read {
		font-size: 12.5px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.ms-home-post-card,
	.ms-home-post-card__image img {
		transition: none;
	}
}
