/* =========================================================
   Latest News Grid
   Scoped to .lng-grid so it won't clash with theme styles.
   Max width 1140px, responsive down to mobile.
   ========================================================= */

.lng-grid,
.lng-grid * {
	box-sizing: border-box;
}

.lng-grid {
	max-width: 1140px;
	margin: 0 auto;
	display: grid;
	grid-template-columns: 1fr 1fr;
	grid-template-rows: 1fr 1fr;
	gap: 16px;
	padding: 0 16px;
}

/* ---------- Card ---------- */

.lng-card {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: flex-end;
	overflow: hidden;
	border-radius: 10px;
	color: #fff;
	text-decoration: none;
	background-color: #1f1f1f;
	background-size: cover;
	background-position: center;
	min-height: 220px;
	transition: transform 0.25s ease, box-shadow 0.25s ease;
	isolation: isolate;
}

.lng-card:hover,
.lng-card:focus-visible {
	transform: translateY(-2px);
	box-shadow: 0 10px 24px rgba(0, 0, 0, 0.18);
	outline: none;
}

.lng-card--large {
	grid-column: 1;
	grid-row: 1 / span 2;
	min-height: 460px;
}

.lng-card--small {
	grid-column: 2;
}

.lng-card--small:nth-of-type(2) {
	grid-row: 1;
}

.lng-card--small:nth-of-type(3) {
	grid-row: 2;
}

/* ---------- Overlay ---------- */

.lng-card__overlay {
	position: absolute;
	inset: 0;
	background: linear-gradient(
		180deg,
		rgba(0, 0, 0, 0) 35%,
		rgba(0, 0, 0, 0.55) 75%,
		rgba(0, 0, 0, 0.8) 100%
	);
	pointer-events: none;
	z-index: 0;
}

/* ---------- Content ---------- */

.lng-card__content {
	position: relative;
	z-index: 1;
	padding: 22px 24px;
	display: flex;
	flex-direction: column;
	gap: 6px;
}

.lng-card__category {
	font-family: inherit;
	font-size: 13px;
	font-weight: 400;
	line-height: 1.3;
	color: rgba(255, 255, 255, 0.92);
	letter-spacing: 0.02em;
}

.lng-card__title {
	font-family: inherit;
	font-size: 17px;
	font-weight: 700;
	line-height: 1.25;
	color: #fff;
	text-transform: uppercase;
	letter-spacing: 0.02em;
	margin: 0;
}

.lng-card--large .lng-card__title {
	font-size: 20px;
}

.lng-card__arrow {
	display: inline-block;
	transition: transform 0.25s ease;
	white-space: nowrap;
}

.lng-card:hover .lng-card__arrow,
.lng-card:focus-visible .lng-card__arrow {
	transform: translateX(4px);
}

/* ---------- Responsive ---------- */

/* Tablet: keep the 2-column layout but shrink slightly. */
@media (max-width: 900px) {
	.lng-card--large {
		min-height: 380px;
	}
	.lng-card--small {
		min-height: 180px;
	}
	.lng-card__title {
		font-size: 15px;
	}
	.lng-card--large .lng-card__title {
		font-size: 17px;
	}
}

/* Mobile: stack all cards in a single column. */
@media (max-width: 640px) {
	.lng-grid {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
		gap: 12px;
	}
	.lng-card--large,
	.lng-card--small {
		grid-column: 1;
		grid-row: auto;
		min-height: 220px;
	}
	.lng-card__content {
		padding: 18px 20px;
	}
	.lng-card__title,
	.lng-card--large .lng-card__title {
		font-size: 15px;
	}
}
