/* [avive_news_hub] on the News and Blog page. Colours and fonts come from the Elementor kit. */

.avive-news {
	--avive-news-text: var(--e-global-color-text, #2d2926);
	--avive-news-navy: var(--e-global-color-secondary, #041e42);
	--avive-news-teal: var(--e-global-color-primary, #00c7b1);
	--avive-news-muted: rgba(45, 41, 38, 0.75);
	display: flex;
	flex-direction: column;
	gap: 64px;
	width: 100%;
	max-width: 1140px;
	margin: 0 auto;
	font-family: var(--e-global-typography-text-font-family, "BR Firma"), sans-serif;
	color: var(--avive-news-text);
}

.avive-news__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Full-width band holding the "News from <location>" row on location pages. */
.avive-news-band {
	padding: 60px 0;
	background: var(--e-global-color-be77257, #f0f0f0);
}

/* Shared: image, meta line, summary */

.avive-news-media {
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: linear-gradient(135deg, var(--avive-news-navy), var(--avive-news-teal));
}

.avive-news-media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transition: transform 0.4s ease;
}

.avive-news-meta {
	margin: 0;
	font-size: 14px;
	font-weight: 500;
	color: var(--avive-news-muted);
}

.avive-news-summary {
	display: -webkit-box;
	margin: 0;
	overflow: hidden;
	font-size: 16px;
	line-height: 1.5;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
}

/* Featured post */

.avive-news-featured {
	position: relative;
	display: grid;
	grid-template-columns: 7fr 5fr;
	background: #fff;
	transition: box-shadow 0.2s ease;
}

.avive-news-featured .avive-news-media {
	aspect-ratio: auto;
	min-height: 360px;
}

.avive-news-featured__body {
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 14px;
	padding: 40px;
}

.avive-news-featured__label {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--avive-news-navy);
}

.avive-news-featured__title {
	margin: 0;
	font-size: 32px;
	font-weight: 700;
	line-height: 1.25;
}

.avive-news-featured .avive-news-summary {
	-webkit-line-clamp: 4;
}

.avive-news-featured__button {
	align-self: flex-start;
	margin-top: 6px;
	padding: 12px 24px;
	border-radius: 20px;
	background: var(--avive-news-teal);
	font-size: 14px;
	font-weight: 500;
	color: var(--avive-news-navy);
	transition: background-color 0.2s ease, color 0.2s ease;
}

.avive-news-featured:hover .avive-news-featured__button {
	background: var(--avive-news-navy);
	color: var(--e-global-color-be77257, #f0f0f0);
}

/* Category rows */

.avive-news-section__header {
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	justify-content: space-between;
	gap: 8px 24px;
	margin-bottom: 24px;
}

.avive-news .avive-news-section__title {
	margin: 0;
	font-family: var(--e-global-typography-50252f2-font-family, "Gazpacho"), serif;
	font-size: 32px;
	font-weight: 400;
	line-height: 1.1;
	color: var(--avive-news-navy);
}

.avive-news a.avive-news-section__all {
	font-size: 16px;
	font-weight: 500;
	color: var(--avive-news-navy);
	text-decoration: none;
}

.avive-news a.avive-news-section__all:hover,
.avive-news a.avive-news-section__all:focus-visible {
	color: var(--avive-news-navy);
	text-decoration: underline;
	text-underline-offset: 4px;
}

.avive-news-grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

.avive-news-card {
	position: relative;
	display: flex;
	flex-direction: column;
	background: #fff;
	transition: box-shadow 0.2s ease;
}

.avive-news-card__body {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 20px 20px 24px;
}

.avive-news .avive-news-card__title {
	margin: 0;
	font-size: 20px;
	font-weight: 700;
	line-height: 1.35;
}

/* Whole card is clickable through its title link. */
.avive-news .avive-news-card__title a,
.avive-news .avive-news-featured__title a {
	color: var(--avive-news-text);
	text-decoration: none;
}

.avive-news .avive-news-card__title a::after,
.avive-news .avive-news-featured__title a::after {
	content: "";
	position: absolute;
	inset: 0;
}

.avive-news-card:hover,
.avive-news-featured:hover {
	box-shadow: 0 0 20px 5px rgba(0, 0, 0, 0.05);
}

.avive-news-card:hover img,
.avive-news-featured:hover img {
	transform: scale(1.03);
}

.avive-news .avive-news-card__title a:hover,
.avive-news .avive-news-featured__title a:hover {
	color: var(--avive-news-navy);
}

.avive-news-card:focus-within,
.avive-news-featured:focus-within {
	outline: 2px solid var(--avive-news-teal);
	outline-offset: 2px;
}

.avive-news .avive-news-card__title a:focus-visible,
.avive-news .avive-news-featured__title a:focus-visible {
	outline: none;
}

@media (prefers-reduced-motion: reduce) {
	.avive-news-media img {
		transition: none;
	}
}

@media (max-width: 1024px) {
	.avive-news-band {
		padding: 40px 20px;
	}

	.avive-news {
		gap: 48px;
	}

	.avive-news-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.avive-news-featured {
		grid-template-columns: 1fr;
	}

	.avive-news-featured .avive-news-media {
		aspect-ratio: 16 / 9;
		min-height: 0;
	}

	.avive-news-featured__body {
		padding: 24px;
	}

	.avive-news-featured__title {
		font-size: 26px;
	}
}

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

	.avive-news .avive-news-section__title {
		font-size: 28px;
	}
}
