/* =========================================================
   Paces — Latest News slider  ([paces_latest_news])
   A dependency-free horizontal scroll-snap carousel (same
   mechanism as the Upcoming Events slider). Card design:
   rounded image + category badge, date, title, excerpt and
   a pink "Read Article…" link. Borderless cards.

   Consumes --paces-* tokens from paces-header.css (loaded
   site-wide) with literal fallbacks. Font: Lexend.
   ========================================================= */

.paces-news-slider {
	--paces-slider-ink: #2d2d33;
	--paces-slider-muted: #8a8a90;

	max-width: 1500px;
	margin: 0 auto;
	font-family: var(--paces-font, "Lexend", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif);
}

.paces-news-slider *,
.paces-news-slider *::before,
.paces-news-slider *::after {
	box-sizing: border-box;
}

/* ---- Head: heading + nav arrows ---- */
.paces-news-slider__head {
	display: flex;
	align-items: center;
	gap: 16px;
	margin-bottom: 24px;
}

.paces-news-slider__heading {
	margin: 0;
	color: var(--paces-pink, #e92593);
	font-size: clamp(26px, 3vw, 36px);
	font-weight: 700;
	line-height: 1.15;
}

.paces-news-slider__nav-group {
	display: flex;
	gap: 10px;
	margin-left: auto;
}

.paces-news-slider__nav {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	padding: 0;
	border: 1px solid var(--paces-submenu-line, #f3d7e7);
	border-radius: 50%;
	background: #ffffff;
	color: var(--paces-pink, #e92593);
	cursor: pointer;
	transition: background-color 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.paces-news-slider__nav:hover,
.paces-news-slider__nav:focus-visible {
	background: var(--paces-pink, #e92593);
	border-color: var(--paces-pink, #e92593);
	color: #ffffff;
	outline: none;
}

.paces-news-slider__nav[hidden] {
	display: none;
}

.paces-news-slider__nav[disabled] {
	opacity: 0.35;
	cursor: default;
	background: #ffffff;
	color: var(--paces-pink, #e92593);
}

.paces-news-slider__chevron {
	width: 20px;
	height: 20px;
}

/* ---- Track ---- */
.paces-news-slider__track {
	display: flex;
	gap: 24px;
	overflow-x: auto;
	scroll-behavior: smooth;
	scroll-snap-type: x proximity;
	padding: 4px 2px 16px;
	-webkit-overflow-scrolling: touch;
	scrollbar-width: thin;
}

.paces-news-slider__track::-webkit-scrollbar {
	height: 8px;
}

.paces-news-slider__track::-webkit-scrollbar-thumb {
	background: rgba(0, 0, 0, 0.15);
	border-radius: 8px;
}

/* ---- Slide / card (borderless) ---- */
.paces-news-slide {
	display: flex;
	flex: 0 0 auto;
	flex-direction: column;
	width: min(440px, 85vw);
	scroll-snap-align: start;
}

.paces-news-slide__media {
	position: relative;
	display: block;
	aspect-ratio: 3 / 2;
	margin-bottom: 16px;
	border-radius: 12px;
	background: var(--paces-top-bg, #fde9f4);
	overflow: hidden;
}

.paces-news-slide__media img {
	display: block;
	width: 100%;
	height: 100%;
	object-fit: cover;
	transform-origin: center center;
	transition: transform 0.35s ease;
	will-change: transform;
}

/* Zoom the image when hovering the slide. */
.paces-news-slide:hover .paces-news-slide__media img,
.paces-news-slide:focus-within .paces-news-slide__media img {
	transform: scale(1.08);
}

.paces-news-slide__badge {
	position: absolute;
	top: 14px;
	left: 14px;
	padding: 6px 14px;
	background: #ffffff;
	border-radius: 8px;
	color: var(--paces-blue, #5b62a4);
	font-size: 12px;
	font-weight: 600;
	letter-spacing: 0.6px;
	text-transform: uppercase;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
}

.paces-news-slide__date {
	margin: 0 0 8px;
	color: var(--paces-slider-muted);
	font-size: 14px;
	font-weight: 500;
}

.paces-news-slide__title {
	margin: 0 0 10px;
	font-size: 1.4rem;
	font-weight: 700;
	line-height: 1.25;
}

.paces-news-slide__title a {
	color: var(--paces-slider-ink);
	text-decoration: none;
}

.paces-news-slide__title a:hover,
.paces-news-slide__title a:focus-visible {
	color: var(--paces-pink, #e92593);
}

.paces-news-slide__excerpt {
	margin: 0 0 16px;
	color: #55555a;
	font-size: 0.95rem;
	line-height: 1.6;
}

.paces-news-slide__link {
	align-self: flex-start;
	margin-top: auto;
	color: var(--paces-pink, #e92593);
	font-weight: 600;
	text-decoration: underline;
}

.paces-news-slide__link:hover,
.paces-news-slide__link:focus-visible {
	text-decoration: none;
}

/* ---- "View All News" button ---- */
.paces-news-slider__footer {
	display: flex;
	justify-content: center;
	margin-top: 32px;
}

.paces-news-slider__all {
	display: inline-block;
	padding: 12px 28px;
	border: 2px solid var(--paces-pink, #e92593);
	border-radius: 6px;
	background: var(--paces-pink, #e92593);
	color: #ffffff;
	font-size: 1rem;
	font-weight: 600;
	text-decoration: none;
	transition: background-color 0.15s ease, color 0.15s ease;
}

.paces-news-slider__all:hover,
.paces-news-slider__all:focus-visible {
	background: #ffffff;
	color: var(--paces-pink, #e92593);
}

/* ---- Responsive ---- */
@media (max-width: 600px) {
	/* Touch-scroll only on small screens — hide the arrows. */
	.paces-news-slider__nav-group {
		display: none;
	}

	.paces-news-slide__title {
		font-size: 1.25rem;
	}
}
