/* ==========================================================================
   Modern Post Slider
   ========================================================================== */

.rps-slider {
	position: relative;
	background: #eeeeee;
	border-radius: 12px;
	overflow: hidden;
	max-width: 100%;
	box-sizing: border-box;
	padding: 0 60px; /* room for arrows */
}

.rps-slider * {
	box-sizing: border-box;
}

.rps-slider-viewport {
	overflow: hidden;
	width: 100%;
}

.rps-slider-track {
	display: flex;
	width: 100%;
	transition: transform 0.5s ease-in-out;
	will-change: transform;
}

.rps-slider-track.rps-no-transition {
	transition: none !important;
}

.rps-slide {
	flex: 0 0 100%;
	max-width: 100%;
	height: 250px;
	box-sizing: border-box;
	display: flex;
	align-items: stretch;
	gap: 28px;
	padding: 20px 12px;
	overflow: hidden;
}

.rps-slide-image {
	flex: 0 0 260px;
	max-width: 260px;
	height: 100%;
	display: flex;
	align-items: center;
	justify-content: center;
	background: #e2e2e2;
	border-radius: 8px;
	overflow: hidden;
}

.rps-slide-image a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
	line-height: 0;
}

.rps-slide-image img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
	transition: transform 0.35s ease;
}

.rps-slide-image a:hover img,
.rps-slide-image a:focus img {
	transform: scale(1.06);
}

.rps-slide-content {
	flex: 1 1 auto;
	min-width: 0;
	height: 100%;
	display: flex;
	flex-direction: column;
	justify-content: center;
	overflow: hidden;
}

.rps-slide-title {
	margin: 0 0 8px;
	font-size: 20px;
	line-height: 1.3;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.rps-slide-title a {
	text-decoration: none;
	font-weight: 700;
}

.rps-slide-excerpt {
	margin: 0 0 14px;
	font-size: 14px;
	line-height: 1.5;
	color: #333333;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

/* Specificity note: the theme's `a:link, a:visited { color: #1e86cc !important; }`
   rule has higher specificity than a single class selector even though both
   use !important (element + pseudo-class beats one class). Scoping the
   selector under .rps-slide-content bumps our specificity above it so the
   white text actually sticks. */
.rps-slide-content .rps-read-more {
	display: inline-block;
	align-self: flex-start;
	width: fit-content;
	background-color: #1e86cc !important;
	color: #ffffff !important;
	border: 1px solid #1e86cc !important;
	padding: 7px 20px;
	border-radius: 6px;
	font-size: 14px;
	font-weight: 600;
	text-decoration: none !important;
	box-sizing: border-box;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.rps-slide-content .rps-read-more:hover,
.rps-slide-content .rps-read-more:focus {
	background-color: transparent !important;
	color: #1e86cc !important;
}

/* Arrows
   ========================================================================== */

.rps-arrow {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	border: none;
	border-radius: 8px;
	background: rgba(60, 60, 60, 0.55);
	color: #ffffff;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	transition: background 0.2s ease;
	z-index: 2;
	padding: 0;
}

.rps-arrow:hover,
.rps-arrow:focus {
	background: rgba(40, 40, 40, 0.85);
	outline: none;
}

.rps-arrow-prev {
	left: 10px;
}

.rps-arrow-next {
	right: 10px;
}

/* Indicators (rectangles / dashes instead of dots)
   ========================================================================== */

.rps-indicators {
	display: flex;
	justify-content: center;
	align-items: center;
	gap: 8px;
	padding: 0 0 18px;
}

.rps-indicator {
	width: 26px;
	height: 4px;
	border-radius: 3px;
	background: #c7c7c7;
	border: none;
	padding: 0;
	cursor: pointer;
	transition: background 0.2s ease, width 0.2s ease;
}

.rps-indicator:hover {
	background: #a9a9a9;
}

.rps-indicator.is-active {
	background: #1e86cc;
	width: 34px;
}

/* Responsive
   ========================================================================== */

@media (max-width: 700px) {
	.rps-slider {
		padding: 0 44px;
	}

	.rps-arrow {
		width: 34px;
		height: 34px;
	}

	.rps-slide {
		height: auto;
		flex-direction: column;
		align-items: stretch;
		gap: 16px;
		padding: 20px 4px;
		text-align: center;
		overflow: visible;
	}

	.rps-slide-image {
		height: 160px;
		flex: 0 0 auto;
		max-width: 100%;
	}

	.rps-slide-content {
		height: auto;
	}

	.rps-slide-content .rps-read-more {
		align-self: center;
	}

	.rps-slide-title {
		font-size: 19px;
	}
}

@media (max-width: 420px) {
	.rps-slider {
		padding: 0 34px;
		border-radius: 8px;
	}

	.rps-arrow {
		width: 28px;
		height: 28px;
	}
}
