/* Home recommended articles */

.plx-home-articles-wrap {
	position: relative;
}

/* Module chrome title is rendered by Joomla before the layout.
   The Figma/home layout renders its own centered header. */
.plx-home-articles-wrap>.module-title,
.moduletable.plx-home-articles-wrap>.module-title {
	display: none;
}

.plx-home-articles {
	max-width: min(100% - 2rem, 980px);
	margin-inline: auto;
	background: var(--color-white);
}

.plx-home-articles__header {
	max-width: 44rem;
	margin: 0 auto clamp(2.25rem, 4vw, 3.5rem);
	text-align: center;
}

.plx-home-articles__title {
	margin: 0 0 0.75rem;
	color: var(--color-primary);
	font-family: var(--font-heading);
	font-size: clamp(1.75rem, 3vw, 2.35rem);
	font-weight: 500;
	line-height: 1.15;
	letter-spacing: -0.02em;
}

.plx-home-articles__intro {
	max-width: 39rem;
	margin: 0 auto;
	color: var(--color-text);
	font-size: clamp(1.25rem, 1.35vw, 1.3rem);
	line-height: 1.45;
}

.plx-home-articles__footer {
	margin-top: clamp(1.5rem, 3.5vw, 2rem);
	text-align: center;
}

.plx-home-articles__all {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--color-text-strong);
	font-size: 1rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.plx-home-articles__all:hover,
.plx-home-articles__all:focus {
	color: var(--color-primary);
	text-decoration: none;
}

.plx-home-articles__list {
	display: grid;
	grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
	grid-template-rows: repeat(2, minmax(0, 1fr));
	gap: clamp(1rem, 1.7vw, 1.5rem);
}

.plx-home-articles__item {
	min-width: 0;
}

.plx-home-articles__item--lead {
	grid-row: span 2;
}

.plx-home-article-card {
	position: relative;
	display: flex;
	flex-direction: column;
	height: 100%;
	min-width: 0;
	border: 1px solid rgba(var(--color-black-rgb), 0.055);
	border-radius: var(--bs-border-radius-xl) var(--bs-border-radius-xl) 0 0;
	background: var(--color-white);
	box-shadow: none;
	overflow: hidden;
}

.plx-home-article-card__media {
	display: block;
	position: relative;
	min-height: 0;
	background: var(--color-surface-soft);
	overflow: hidden;
}

.plx-home-article-card__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.2s ease;
}

.plx-home-article-card:hover .plx-home-article-card__media img,
.plx-home-article-card:focus-within .plx-home-article-card__media img {
	transform: scale(1.025);
}

.plx-home-article-card--lead .plx-home-article-card__media {
	aspect-ratio: 16 / 9;
}

.plx-home-article-card--compact {
	display: grid;
	grid-template-rows: minmax(0, 9.25rem) 1fr;
}

.plx-home-article-card--compact .plx-home-article-card__media {
	height: 9.25rem;
}

.plx-home-article-card__topic {
	position: absolute;
	top: 1.35rem;
	left: 1.35rem;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 2.25rem;
	padding: 0.45rem 1.35rem;
	border-radius: var(--bs-border-radius-pill);
	background: var(--color-primary);
	color: var(--color-white);
	font-size: 0.78rem;
	font-weight: 600;
	line-height: 1.1;
	white-space: nowrap;
}

.plx-home-article-card--compact .plx-home-article-card__topic {
	top: 1rem;
	left: 1rem;
	min-height: 2rem;
	padding: 0.4rem 1rem;
	font-size: 0.72rem;
}

.plx-home-article-card__body {
	display: flex;
	flex-direction: column;
	flex: 1 1 auto;
	padding: clamp(1rem, 1.6vw, 1.45rem);
	background: var(--color-surface-soft);
}

.plx-home-article-card--compact .plx-home-article-card__body {
	padding: 0.9rem 1.1rem 1rem;
}

.plx-home-article-card__meta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 0.75rem;
	margin-bottom: 1.1rem;
	color: var(--color-text-muted);
	font-size: 0.82rem;
	line-height: 1.2;
}

.plx-home-article-card--compact .plx-home-article-card__meta {
	margin-bottom: 0.75rem;
	font-size: 0.72rem;
}

.plx-home-article-card__date {
	margin-left: auto;
	white-space: nowrap;
}

.plx-home-article-card__title {
	margin: 0;
	color: var(--color-text-strong);
	font-family: var(--font-heading);
	font-size: clamp(1.35rem, 1.75vw, 1.75rem);
	font-weight: 700;
	line-height: 1.16;
}

.plx-home-article-card--compact .plx-home-article-card__title {
	font-size: clamp(0.95rem, 1.05vw, 1.1rem);
	line-height: 1.25;
}

.plx-home-article-card__title-link {
	display: -webkit-box;
	overflow: hidden;
	color: inherit;
	text-decoration: none;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 3;
}

.plx-home-article-card--compact .plx-home-article-card__title-link {
	-webkit-line-clamp: 2;
}

.plx-home-article-card__title-link:hover,
.plx-home-article-card__title-link:focus {
	color: var(--color-primary);
	text-decoration: none;
}

.plx-home-article-card__intro {
	display: -webkit-box;
	overflow: hidden;
	margin-top: 0.85rem;
	color: var(--color-text-muted);
	font-size: 0.95rem;
	line-height: 1.45;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 2;
}

.plx-home-article-card--compact .plx-home-article-card__intro {
	display: none;
}

.plx-home-article-card__footer {
	margin-top: auto;
	padding-top: 1.25rem;
}

.plx-home-article-card--compact .plx-home-article-card__footer {
	padding-top: 0.85rem;
}

.plx-home-article-card__readmore {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	color: var(--color-primary);
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
}

.plx-home-article-card--compact .plx-home-article-card__readmore {
	font-size: 0.78rem;
}

.plx-home-article-card__readmore:hover,
.plx-home-article-card__readmore:focus {
	color: var(--color-primary-dark);
	text-decoration: none;
}

@media (max-width: 991.98px) {
	.plx-home-articles__list {
		grid-template-columns: 1fr;
		grid-template-rows: auto;
	}

	.plx-home-articles__item--lead {
		grid-row: auto;
	}

	.plx-home-article-card--compact {
		display: flex;
	}

	.plx-home-article-card--compact .plx-home-article-card__media {
		height: auto;
		aspect-ratio: 16 / 8;
	}
}

@media (max-width: 575.98px) {

	.plx-home-articles-wrap>.module-title,
	.moduletable.plx-home-articles-wrap>.module-title {
		text-align: left;
	}

	.plx-home-articles__header {
		text-align: left;
	}

	.plx-home-articles__intro {
		margin-inline: 0;
	}

	.plx-home-articles__footer {
		text-align: left;
	}

	.plx-home-article-card__topic {
		top: 0.9rem;
		left: 0.9rem;
	}

	.plx-home-article-card__body {
		padding: 1rem;
	}
}