/**
 * Content List Slider Styling
 * BEM Structured Styles with Modern, Premium Defaults
 */

/* General Widget Wrapper */
.cls-slider {
	--cls-nav-gap: 15px;
	box-sizing: border-box;
	width: 100%;
	font-family: inherit;
}

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

/* Feature Navigation Section */
.cls-slider__nav-container {
	display: flex;
	align-items: center;
	position: relative;
	width: 100%;
	gap: 10px;
}

/* Navigation Track with Native Scroll Snap */
.cls-slider__nav-track {
	display: flex;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	flex-grow: 1;
	min-width: 0;
	scrollbar-width: none;
	/* Firefox */
	-ms-overflow-style: none;
	/* IE/Edge */
	padding: 10px 5px;
	/* Leave space for card shadows */
}

.cls-slider__nav-track::-webkit-scrollbar {
	display: none;
	/* Safari and Chrome */
}

/* Scroll Arrows */
.cls-slider__arrow {
	background: #ffffff;
	border: 1px solid #e2e8f0;
	border-radius: 50%;
	width: 40px;
	height: 40px;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	color: #4a5568;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
	flex-shrink: 0;
	text-align: center;
	padding: 0 !important;
}

.cls-slider__arrow .dashicons {
	font-size: 20px;
	width: 20px;
	height: 20px;
	line-height: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: transform 0.3s ease;
}

.cls-slider__arrow:hover {
	background: #f8fafc;
	color: #0f172a;
	border-color: #cbd5e1;
	transform: scale(1.05);
}

.cls-slider__arrow:focus {
	outline: none;
	border-color: #3b82f6;
}

/* Feature Navigation Cards */
.cls-slider__card {
	scroll-snap-align: start;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	background-color: #ffffff;
	border: 1px solid #e2e8f0;
	padding: 24px 16px;
	border-radius: 12px;
	cursor: pointer;
	text-align: center;
	transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.02), 0 2px 4px -1px rgba(0, 0, 0, 0.01);
}

.cls-slider__card:hover {
	transform: translateY(-4px);
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
	border-color: #cbd5e1;
}

.cls-slider__card-icon {
	font-size: 28px;
	color: #64748b;
	display: flex;
	align-items: center;
	justify-content: center;
	transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.cls-slider__card-icon svg {
	width: 28px;
	height: 28px;
	fill: currentColor;
}

.cls-slider__card-title {
	font-size: 15px;
	font-weight: 600;
	color: #334155;
	transition: color 0.4s cubic-bezier(0.4, 0, 0.2, 1);
	line-height: 1.4;
	white-space: nowrap;
}

/* Card Active States */
.cls-slider__card.cls-active {
	background-color: #0f172a;
	border-color: #0f172a;
	color: #ffffff;
}

.cls-slider__card.cls-active .cls-slider__card-icon {
	color: #3b82f6;
	/* Premium Accent Blue on Active */
}

.cls-slider__card.cls-active .cls-slider__card-title {
	color: #ffffff;
}

/* Feature Content Panel Section */
.cls-slider__content-container {
	margin-top: 40px;
	width: 100%;
	position: relative;
	background: #f8fafc;
	border-radius: 16px;
	padding: 40px;
	border: 1px solid #e2e8f0;
	min-height: 200px;
}

.cls-slider__panel {
	display: none;
	opacity: 0;
	transition: opacity 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

/* CSS Spacing Rule for Panel Children */
.cls-slider__panel>*+* {
	margin-top: 20px;
}

.cls-slider__panel.cls-active {
	display: block;
}

.cls-slider__panel.cls-fade-in {
	opacity: 1;
}

.cls-slider__heading {
	font-size: 28px !important;
	font-weight: 700;
	color: #0f172a;
	margin: 0;
	line-height: 1.25;
}

.cls-slider__description {
	font-size: 16px;
	line-height: 1.7;
	color: #475569;
	margin: 0;
}

.cls-slider__image-wrapper {
	width: 100%;
	max-width: 800px;
	margin-left: auto;
	margin-right: auto;
	overflow: hidden;
	border-radius: 12px;
	box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05), 0 4px 6px -2px rgba(0, 0, 0, 0.02);
}

.cls-slider__image {
	width: 100%;
	height: auto;
	display: block;
	object-fit: cover;
}

.cls-slider__button-wrapper {
	margin-top: 24px;
}

.cls-slider__button {
	display: inline-block;
	font-size: 15px;
	font-weight: 600;
	text-decoration: none;
	color: #ffffff;
	background-color: #3b82f6;
	padding: 12px 28px;
	border-radius: 8px;
	transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
	box-shadow: 0 4px 6px -1px rgba(59, 130, 246, 0.2), 0 2px 4px -1px rgba(59, 130, 246, 0.1);
}

.cls-slider__button:hover {
	background-color: #2563eb;
	box-shadow: 0 10px 15px -3px rgba(59, 130, 246, 0.3), 0 4px 6px -2px rgba(59, 130, 246, 0.15);
	transform: translateY(-1px);
	color: #ffffff;
}

.cls-slider__button:active {
	transform: translateY(1px);
}

/* Responsiveness Settings */
/* Tablet */
@media (max-width: 1024px) {
	.cls-slider__content-container {
		padding: 16px 8px;
		margin-top: 30px;
	}

	.cls-slider__heading {
		font-size: 24px;
	}
}

/* Mobile */
@media (max-width: 767px) {

	.cls-slider__content-container {
		padding: 16px 8px;
		margin-top: 24px;
	}

	.cls-slider__heading {
		font-size: 20px;
	}

	.cls-slider__arrow {
		width: 36px;
		height: 36px;
	}
}