/* Custom Post Slider styles */

.cps-slider {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.cps-track {
	position: relative;
	width: 100%;
	min-height: 520px;
	overflow: hidden;
}

.cps-slide {
	position: absolute;
	inset: 0;
	display: grid;
	grid-template-columns: 1fr 1fr;
	width: 100%;
	min-height: 520px;
	opacity: 0;
	transform: translateX(100%);
	transition: transform 0.6s ease, opacity 0.6s ease;
	will-change: transform;
	pointer-events: none;
	z-index: 1;
}

.cps-slide.is-active {
	opacity: 1;
	transform: translateX(0);
	pointer-events: auto;
	z-index: 2;
}

/* Left: post featured image */
.cps-slide-image {
	background-size: cover;
	background-position: center;
	min-height: 320px;
}

/* Right: gradient content panel */
.cps-slide-content {
	background: linear-gradient(135deg, #7ed957 0%, #12b5a6 55%, #0e93c9 100%);
	display: flex;
	flex-direction: column;
	justify-content: center;
	padding: 60px 70px;
	box-sizing: border-box;
}

.cps-label {
	display: inline-block;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 1.5px;
	color: #0b3d5c;
	margin-bottom: 18px;
}

.cps-title {
	font-size: 42px;
	line-height: 1.15;
	font-weight: 800;
	color: #0b3d5c;
	margin: 0 0 20px 0;
}

.cps-excerpt {
	font-size: 17px;
	line-height: 1.5;
	color: #123;
	margin: 0 0 30px 0;
	max-width: 90%;
}

.cps-button {
	display: inline-block;
	background: #0b3d5c;
	color: #fff;
	font-weight: 700;
	text-decoration: none;
	padding: 14px 28px;
	border-radius: 6px;
	width: fit-content;
	transition: background 0.2s ease;
}

.cps-button:hover {
	background: #082c43;
	color: #fff;
}

/* Arrows */
.cps-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 48px;
	height: 48px;
	min-width: 48px;
	min-height: 48px;
	max-width: 48px;
	max-height: 48px;
	flex-shrink: 0;
	padding: 0;
	margin: 0;
	box-sizing: border-box;
	border: none;
	border-radius: 50%;
	background: rgba(0, 0, 0, 0.35);
	color: #fff;
	font-size: 18px;
	line-height: 1;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	z-index: 10;
	appearance: none;
	-webkit-appearance: none;
	transition: background 0.2s ease;
}

.cps-arrow span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	line-height: 1;
}

.cps-arrow:hover {
	background: rgba(0, 0, 0, 0.55);
}

.cps-arrow:focus {
	outline: 2px solid rgba(255, 255, 255, 0.8);
	outline-offset: 2px;
}

.cps-prev {
	left: 24px;
}

.cps-next {
	right: calc(50% + 24px);
}

/* Responsive */
@media (max-width: 900px) {
	.cps-slide {
		grid-template-columns: 1fr;
	}
	.cps-slide-image {
		min-height: 260px;
	}
	.cps-slide-content {
		padding: 36px 30px;
	}
	.cps-title {
		font-size: 30px;
	}
	.cps-next {
		right: 24px;
	}
}
