/* ==========================================================================
   Homepage news / case studies
   Block: .home-news
   ========================================================================== */

.home-news {
	padding-bottom: var(--space-11);
}

.home-news__header {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: var(--space-4);
	margin-bottom: var(--space-6);
}

.home-news__grid {
	display: grid;
	gap: var(--space-5);
}

.home-news__card {
	position: relative;
	min-height: 16rem;
	overflow: hidden;
	border-radius: 1rem; /* 16px */
	color: var(--color-on-dark);
}

.home-news__card > img {
	width: 100%;
	height: 100%;
	min-height: 16rem;
	object-fit: cover;
}

.home-news__overlay {
	position: absolute;
	inset: 0;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	padding: var(--space-5);
	background:
		linear-gradient(180deg, rgb(0 0 0 / 0.05) 30%, rgb(0 10 22 / 0.78) 100%),
		rgb(0 0 0 / 0.2);
}

.home-news__label {
	position: absolute;
	top: var(--space-5);
	left: var(--space-5);
	display: flex;
	align-items: center;
	gap: 0.6rem;
	margin: 0;
	font-family: var(--font-display);
	font-size: 1rem;
	font-weight: var(--font-weight-semibold);
	line-height: 1.6925;
}

.home-news__label img {
	display: block;
	width: 1.75rem;
	height: auto;
	min-height: 0;
	object-fit: contain;
}

.home-news__badge {
	display: inline-flex;
	align-items: center;
	width: fit-content;
	height: 2.1875rem; /* 35px */
	margin-bottom: var(--space-3);
	padding: 0 0.75rem;
	border-radius: 0.625rem; /* 10px */
	background: var(--color-primary);
	font-size: var(--font-size-xs);
	font-weight: var(--font-weight-bold);
}

.home-news__title {
	margin: 0 0 var(--space-2);
	font-family: var(--font-display);
	font-size: 1.5rem; /* 24px */
	font-weight: var(--font-weight-semibold);
	line-height: 1;
}

.home-news__title a {
	color: inherit;
	text-decoration: none;
}

.home-news__copy {
	margin: 0 0 var(--space-3);
	color: rgb(255 255 255 / 0.82);
	font-size: var(--font-size-sm);
}

.home-news__link {
	color: var(--color-primary);
	font-size: 0.8125rem; /* 13px */
	font-weight: var(--font-weight-bold);
	letter-spacing: 2.34px;
	text-decoration: none;
	text-transform: uppercase;
}

.home-news__link::after {
	content: " →";
}

@media (min-width: 64rem) {
	.home-news__grid {
		grid-template-columns: 1.2fr 0.8fr;
		grid-template-rows: 17.5rem 17.5rem; /* 280px */
		gap: 1.125rem; /* 18px — 280 + 18 + 280 = 578 */
	}

	.home-news__card--featured {
		grid-row: 1 / span 2;
		height: 36.125rem; /* 578px */
		min-height: 36.125rem;
	}

	.home-news__card--featured .home-news__title {
		font-size: 2rem; /* 32px */
		line-height: 1.125; /* 36px */
	}

	.home-news__card:not(.home-news__card--featured) {
		height: 17.5rem; /* 280px */
		min-height: 17.5rem;
	}
}
