.wooslider-container {
	display: flex;
	width: 100%;
	height: 600px;
	margin: 0 auto;
	box-sizing: border-box;
	overflow: hidden;
	background-color: #ffffff; /* Default background */
}

/* Left Section */
.wooslider-left {
	flex: 0 0 40%;
	display: flex;
	align-items: center;
	padding: 50px 40px 50px 8%; /* 8% left padding, 40px right padding */
	box-sizing: border-box;
}

.wooslider-content-wrapper {
	max-width: 600px;
}

.wooslider-title {
	font-size: 3rem;
	line-height: 1.2;
	font-weight: 700;
	margin-bottom: 20px;
	color: #000;
	font-family: 'Inter', sans-serif;
	text-shadow: 2px 5px 15px rgba(0, 0, 0, 0.15), 0px 2px 5px rgba(0, 0, 0, 0.1);
}

.wooslider-subtitle {
	font-size: 1.2rem;
	line-height: 1.5;
	margin-bottom: 30px;
	color: #333;
	font-family: 'Inter', sans-serif;
	text-shadow: 1px 3px 8px rgba(0, 0, 0, 0.1);
}

.wooslider-btn {
	display: inline-block;
	padding: 15px 30px;
	background-color: #9b51e0;
	color: #fff;
	text-decoration: none;
	border-radius: 5px;
	font-size: 1rem;
	font-weight: 600;
	align-self: flex-start;
	transition: background-color 0.3s;
	
	/* Glossy and Glowing properties */
	position: relative;
	overflow: hidden;
	animation: woosliderGlowPulse 2s infinite alternate; /* Continuous glow */
	font-family: 'Inter', sans-serif;
}

/* Continuous Pulsing Glow */
@keyframes woosliderGlowPulse {
	0% {
		box-shadow: 0 0 5px rgba(255, 255, 255, 0.2);
	}
	100% {
		box-shadow: 0 0 20px rgba(255, 255, 255, 0.6), 0 0 35px rgba(255, 255, 255, 0.4);
	}
}

/* Glossy sweeping shine effect */
.wooslider-btn::after {
	content: '';
	position: absolute;
	top: 0;
	left: -100%;
	width: 50%;
	height: 100%;
	background: linear-gradient(to right, rgba(255,255,255,0) 0%, rgba(255,255,255,0.5) 50%, rgba(255,255,255,0) 100%);
	transform: skewX(-25deg);
	animation: woosliderGlossSweep 6s infinite; /* Increased duration to slow down */
}

@keyframes woosliderGlossSweep {
	0% {
		left: -100%;
	}
	40% { /* Sweep takes a larger portion of the total time (slower sweep) */
		left: 200%;
	}
	100% {
		left: 200%;
	}
}

.wooslider-btn:hover {
	background-color: #8a40c9;
	transform: translateY(-2px);
	color: #fff;
}

/* Right Section */
.wooslider-right {
	flex: 0 0 60%;
	display: flex;
	align-items: center;
	justify-content: center;
	position: relative;
	box-sizing: border-box;
	padding: 20px;
	height: 100%;
}

/* Custom Slider Styles */
.wooslider-custom-slider {
	width: 100%;
	max-width: 710px; /* Constrains width to pull arrows closer to the books, but with comfortable breathing room */
	margin: 0 auto;
	height: 100%;
	padding: 10px 30px 20px 30px; /* Adjusted vertical padding for shadow/hover while fitting even gaps */
	box-sizing: border-box;
	overflow: hidden;
	position: relative;
}

.wooslider-slider-track {
	display: flex;
	width: 100%;
	height: 100%;
	transition: transform 0.8s cubic-bezier(0.16, 1, 0.3, 1); /* Premium smooth deceleration */
}

.wooslider-slide-page {
	flex: 0 0 100%;
	width: 100%;
	height: 100%;
	display: grid;
	grid-template-columns: max-content max-content max-content;
	grid-template-rows: max-content max-content;
	justify-content: center;
	align-content: center;
	gap: 30px; /* Increased to 30px gap vertically and horizontally */
	opacity: 0.1;
	transform: scale(0.85);
	transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
	pointer-events: none; /* Prevent interacting with inactive slides */
}

.wooslider-slide-page.active-page {
	opacity: 1;
	transform: scale(1);
	pointer-events: auto;
}

.wooslider-slide-item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

/* 3D Book Styling - Premium 2.5D Effect */
.wooslider-book-link {
	display: block;
	text-decoration: none;
	width: 160px; /* Increased size for 3x2 grid */
	height: 230px; /* Increased size for 3x2 grid */
	margin: 0 auto;
	position: relative;
}

.wooslider-book-item {
	width: 100%;
	height: 100%;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	position: relative;
	border-radius: 2px 6px 6px 2px; /* Slightly rounded right corners */
	background-color: #ccc;
	
	/* The magic: Stacked box shadows to create spine depth, page edges, and drop shadow */
	box-shadow: 
		/* Inner spine curve/hinge */
		inset 4px 0 10px rgba(0, 0, 0, 0.15),
		inset 5px 0 2px rgba(255, 255, 255, 0.1),
		/* Right edge inner highlight */
		inset -1px 0 2px rgba(255, 255, 255, 0.3),
		/* Simulated page thickness on the right edge */
		1px 0 0 #fff,
		2px 0 0 #f0f0f0,
		3px 0 0 #e0e0e0,
		4px 0 0 #d0d0d0,
		/* Main drop shadow */
		8px 5px 15px rgba(0,0,0,0.25);
		
	transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Spine crease overlay for extra realism */
.wooslider-book-item::before {
	content: '';
	position: absolute;
	top: 0;
	left: 3px;
	width: 1px;
	height: 100%;
	background: rgba(255,255,255,0.4);
	z-index: 2;
}

/* Hover interaction - lifts up */
.wooslider-book-link:hover .wooslider-book-item {
	transform: translateY(-5px);
	box-shadow: 
		inset 4px 0 10px rgba(0, 0, 0, 0.15),
		inset 5px 0 2px rgba(255, 255, 255, 0.1),
		inset -1px 0 2px rgba(255, 255, 255, 0.3),
		1px 0 0 #fff,
		2px 0 0 #f0f0f0,
		3px 0 0 #e0e0e0,
		4px 0 0 #d0d0d0,
		12px 10px 25px rgba(0,0,0,0.3); /* Softer, larger shadow on lift */
}

/* Hide old buggy 3D elements */
.wooslider-book-spine,
.wooslider-book-shadow {
	display: none;
}

/* Custom Navigation */
.wooslider-nav-btn {
	position: absolute;
	top: 50%;
	transform: translateY(-50%);
	width: 40px;
	height: 40px;
	background: #fff;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	cursor: pointer;
	box-shadow: 0 2px 5px rgba(0,0,0,0.2);
	z-index: 10;
	font-size: 18px;
	color: #333;
	user-select: none;
	transition: background 0.3s;
}
.wooslider-nav-btn:hover {
	background: #f0f0f0;
}
.wooslider-nav-prev {
	left: 5px;
}
.wooslider-nav-next {
	right: 5px;
}
.wooslider-nav-btn.disabled {
	opacity: 0.5;
	cursor: not-allowed;
}

/* Mobile View: Hide Right Section */
@media (max-width: 767px) {
	.wooslider-container {
		height: auto;
		min-height: 400px;
	}
	.wooslider-left {
		flex: 0 0 100%;
		padding: 50px 20px;
		text-align: center;
		justify-content: center;
	}
	.wooslider-content-wrapper {
		margin: 0 auto;
	}
	.wooslider-right {
		display: none;
	}
	.wooslider-title {
		font-size: 2.5rem;
	}
}
