@charset "UTF-8";

.homepage-news {
	display: grid;
	grid-template-columns: 1.6fr 1fr;
	gap: var(--wp--preset--spacing--30);
	align-items: stretch;
}

/* ---- Featured story ---- */

.homepage-news__featured {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border-radius: 20px;
	overflow: hidden;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
	text-decoration: none !important;
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.homepage-news__featured:hover {
	transform: translateY(-4px);
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.14);
}

.homepage-news__featured-media {
	overflow: hidden;
}

.homepage-news__featured-media img {
	display: block;
	width: 100%;
	height: 360px;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.homepage-news__featured:hover .homepage-news__featured-media img {
	transform: scale(1.04);
}

.homepage-news__featured-body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: var(--wp--preset--spacing--30);
}

/* `.news-card__badge` is built to sit absolutely over `.news-card__media`
   elsewhere in the theme; here it's placed in the text body instead, so it
   needs to render as a normal inline pill, not escape to some unrelated
   positioned ancestor. */
.homepage-news__featured-body .news-card__badge {
	position: static;
	display: inline-block;
	width: fit-content;
}

.homepage-news__date {
	font-size: 0.85rem;
	color: var(--wp--preset--color--text);
	opacity: 0.65;
}

.homepage-news__featured-title {
	margin: 4px 0 0;
	font-size: clamp(1.3rem, 1rem + 1.4vw, 1.8rem);
	color: var(--wp--preset--color--primary);
}

.homepage-news__featured-excerpt {
	margin: 0;
	color: var(--wp--preset--color--text);
	line-height: 1.7;
}

/* ---- Secondary stories ---- */

.homepage-news__secondary {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--20);
}

.homepage-news__story {
	display: flex;
	gap: 14px;
	flex: 1;
	padding: 10px;
	background: #ffffff;
	border-radius: 16px;
	box-shadow: 0 4px 16px rgba(0, 0, 0, 0.06);
	text-decoration: none !important;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.homepage-news__story:hover {
	transform: translateY(-3px);
	box-shadow: 0 12px 26px rgba(0, 0, 0, 0.1);
}

.homepage-news__story-media {
	flex: 0 0 110px;
	width: 110px;
	height: 96px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--wp--preset--color--line);
}

.homepage-news__story-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.35s ease;
}

.homepage-news__story:hover .homepage-news__story-media img {
	transform: scale(1.06);
}

.homepage-news__story-body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 4px;
	min-width: 0;
}

.homepage-news__story-category {
	font-size: 0.72rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.05em;
	color: var(--wp--preset--color--acorn);
}

.homepage-news__story-date {
	font-size: 0.78rem;
	color: var(--wp--preset--color--text);
	opacity: 0.6;
}

.homepage-news__story-title {
	margin: 2px 0 0;
	font-size: 0.98rem;
	color: var(--wp--preset--color--primary);
	line-height: 1.35;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

@media (max-width: 900px) {
	.homepage-news {
		grid-template-columns: 1fr;
	}

	.homepage-news__featured-media img {
		height: 260px;
	}
}
