/* News Stories Block */

.news-stories {
	overflow: hidden;
}

.news-stories .kh-block-inner {
	overflow: visible !important;
}

.news-stories-slider {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--lg);
}

.news-stories-slider .news-stories-track .tns-ovh {
	overflow: visible;
}

.news-stories-slider .news-stories-slides {
	display: flex;
}

.news-stories-slider .news-stories-controls {
	display: flex;
	justify-content: flex-end;
	gap: var(--wp--preset--spacing--md);
	margin-inline-start: auto;
	margin-block-end: -3rem;
}

.news-stories-slider .news-stories-btn {
	width: 3rem;
	height: 3rem;
	padding: 0;
	background-color: var(--wp--custom--color--bg--01);
	border: 1px solid var(--wp--custom--color--border--03);
	border-radius: var(--wp--custom--radius--full);
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: var(--wp--custom--color--icon--primary);
	transition: background-color .3s ease, opacity .3s ease, border .3s ease;
}

.news-stories-slider .news-stories-btn svg {
	width: 1.5rem;
}

.news-stories-slider .news-stories-btn:hover:not(:disabled) {
	background-color: var(--wp--custom--color--bg--action-hover-light);
	border-color: var(--wp--custom--color--border--action);
	color: var(--wp--custom--color--icon--action-hover);
}

.news-stories-slider .news-stories-btn:disabled {
	opacity: 0.4;
	cursor: not-allowed;
}

.news-story-card {
	display: block;
	text-decoration: none;
	color: var(--wp--custom--color--text--heading-primary);
}

.news-story-card:hover {
	color: var(--wp--custom--color--text--heading-primary);
}

.news-story-card .news-story-card-image {
	position: relative;
	aspect-ratio: 1;
	border-radius: var(--wp--custom--radius--2-xl);
	overflow: hidden;
	background-color: var(--wp--custom--color--bg--02);
	transition: box-shadow .3s ease;
}

.news-story-card:hover .news-story-card-image {
	box-shadow: var(--wp--custom--shadow--hover);
}

.news-story-card .news-story-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: scale .7s ease;
}

.news-story-card:hover .news-story-card-image img {
	scale: 1.05;
}

.news-story-card .news-story-card-image::after {
	content: '';
	position: absolute;
	inset: 0;
	background: linear-gradient(
		to bottom,
		transparent 0%,
		color-mix(in srgb, var(--wp--preset--color--teal-900) 10%, transparent) 50%,
		color-mix(in srgb, var(--wp--preset--color--teal-900) 25%, transparent) 100%
	);
	pointer-events: none;
}

.news-story-card .news-story-card-image-placeholder {
	width: 100%;
	height: 100%;
	background-color: var(--wp--custom--color--bg--02);
}

.news-story-card .news-story-card-arrow {
	position: absolute;
	bottom: 1.5rem;
	right: 1.5rem;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 2.75rem;
	min-width: 2.75rem;
	aspect-ratio: 1;
	margin-right: -.5rem;
	color: var(--wp--custom--color--icon--action);
	background-color: var(--wp--custom--color--bg--white);
	border-radius: var(--wp--custom--radius--full);
	box-shadow: 0 0 0 0 transparent;
	transition: color .3s ease, background-color .3s ease;
}

.news-story-card .news-story-card-arrow svg {
	width: 1.5rem;
}

.news-story-card:hover .news-story-card-arrow {
	color: var(--wp--custom--color--icon--white);
	background-color: var(--wp--custom--color--bg--action);
	animation: card-arrow-fade-in .3s ease forwards, card-arrow-pulse 1s .3s ease-in-out infinite alternate;
}

.news-story-card .news-story-card-content {
	display: flex;
	flex-direction: column;
	gap: var(--wp--preset--spacing--xs);
	padding-block-start: var(--wp--preset--spacing--sm);
	padding-inline: 1rem 2.5rem;
}

.news-story-card .news-story-card-content > * {
	margin: 0;
}

.news-story-card .news-story-card-category {
	color: var(--wp--custom--color--text--secondary);
}
