/**
 * GTHL News Slider — layout only.
 * Tokens / heading / empty / media: assets/css/gthl-blocks-global.css
 */

.gthl-news {
	padding: clamp(2.75rem, 5.5vw, 4.5rem) 0;
	background: var(--gthl-color-caption, #f4f4f4);
}

.gthl-above-footer .gthl-news {
	padding-top: 1.25rem;
}

.gthl-above-footer .gthl-news__header {
	margin-bottom: var(--gthl-space-xl);
}

.gthl-news__inner {
	width: 100%;
	max-width: var(--gen-container);
	margin: 0 auto;
}

.gthl-news__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 1rem;
	margin-bottom: var(--gthl-space-lg);
}

.gthl-news__heading {
	margin: 0;
}

.gthl-news__heading-spacer {
	display: block;
	min-height: 1rem;
}

.gthl-news__arrows {
	display: inline-flex;
	align-items: center;
	gap: 0.65rem;
	flex-shrink: 0;
}

.gthl-news__nav {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 5rem;
	height: 5rem;
	padding: 0;
	border: none;
	border-radius: 50%;
	background: rgba(255, 255, 255, 0.7);
	color: var(--gthl-color-nav-icon);
	cursor: pointer;
	box-shadow: none;
	transition: transform 0.2s ease, color 0.2s ease, background 0.2s ease;
}

.gthl-news__nav:hover,
.gthl-news__nav:focus,
.gthl-news__nav:focus-visible,
.gthl-news__nav:active {
	background: rgba(255, 255, 255, 0.7);
	color: var(--gthl-color-navy);
	box-shadow: none;
	outline: none;
}

.gthl-news__nav:hover,
.gthl-news__nav:focus-visible {
	transform: scale(1.05);
}

.gthl-news__nav svg {
	display: block;
}

.gthl-news__viewport {
	width: 100%;
	overflow: hidden;
	padding: var(--gthl-space-md) 0;
}

.gthl-news__track {
	display: grid;
	grid-template-columns: repeat(var(--gthl-news-per-view, 3), minmax(0, 1fr));
	gap: 2.5rem;
	width: 100%;
	align-items: stretch;
}

.gthl-news__card {
	display: none;
	margin: 0;
	min-width: 0;
}

.gthl-news__card.is-visible {
	display: block;
	animation: gthl-news-fade 0.35s ease;
}

@keyframes gthl-news-fade {
	from {
		opacity: 0.2;
	}
	to {
		opacity: 1;
	}
}

.gthl-news__card-link {
	display: flex;
	flex-direction: column;
	height: 100%;
	overflow: hidden;
	border-radius: 10px;
	background: var(--gthl-color-white);
	box-shadow: none;
	text-decoration: none;
	color: inherit;
	transition: box-shadow 0.2s ease;
}

.gthl-news__card-link:hover,
.gthl-news__card-link:focus-visible {
	box-shadow: 0 4px 4px rgba(0, 32, 91, 0.08);
	outline: none;
	text-decoration: none;
}

.gthl-news__body {
	display: flex;
	flex-direction: column;
	gap: 0.55rem;
	padding: 25px 25px 40px 25px;
	background: var(--gthl-color-white);
}

.gthl-news__date {
	font-weight: var(--gthl-font-weight-medium);
	color: var(--gthl-color-navy) !important;
	margin-bottom: 0px !important;
}

/* Card title/date sizes: gthl-blocks-global.css */

@media (max-width: 1024px) {
	.gthl-news__track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 1rem;
	}
}

@media (max-width: 782px) {
	.gthl-news {
		padding: var(--gthl-space-2xl) 0;
	}

	.gthl-news__title {
		font-size: 16px;
    	line-height: 26px;
	}

	.gthl-news__track {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.gthl-news__header {
		margin-bottom: 1rem;
	}

	.gthl-news__nav {
		width: 4rem;
		height: 4rem;
	}

	.gthl-news__body {
		padding: 1rem;
	}
}

@media (max-width: 480px) {
	.gthl-news__inner {
		padding: 0 0.85rem !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.gthl-news__card.is-visible,
	.gthl-news__nav,
	.gthl-news__card-link {
		animation: none;
		transition: none;
	}
}
