/**
 * Best Slider - Content Carousel Styles
 *
 * Fully responsive, zero-dependency carousel.
 *
 * @package Best_Slider
 * @since   1.0.0
 */

/* ===================================================================
   1. Layout — Split Panel
   =================================================================== */

.best-slider {
	display: flex;
	align-items: stretch;
	width: 100%;
	overflow: hidden;
	font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

/* Left Static Panel */
.best-slider__left {
	display: flex;
	flex-direction: column;
	justify-content: center;
	flex: 0 0 33%;
	width: 33%;
	padding: 40px;
	box-sizing: border-box;
}

.best-slider__left-inner {
	display: flex;
	flex-direction: column;
	justify-content: center;
	height: 100%;
}

/* Heading */
.best-slider__heading {
	font-size: 32px;
	font-weight: 700;
	line-height: 1.25;
	color: #0d1b3e;
	margin: 0 0 16px 0;
	letter-spacing: -0.02em;
}

/* Description */
.best-slider__description {
	font-size: 15px;
	font-weight: 400;
	line-height: 1.65;
	color: #4a5568;
	margin: 0 0 32px 0;
}

/* ===================================================================
   2. Navigation Arrows
   =================================================================== */

.best-slider__nav {
	display: flex;
	gap: 10px;
	padding-top: 12px;
}

.best-slider__nav-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border: none;
	border-radius: 8px;
	background-color: #e8ecf1;
	cursor: pointer;
	transition: background-color 0.25s ease, transform 0.15s ease;
	outline: none;
	padding: 0;
}

.best-slider__nav-btn svg {
	width: 18px;
	height: 18px;
	fill: #0d1b3e;
	transition: fill 0.25s ease;
}

.best-slider__nav-btn:hover {
	background-color: #0d1b3e;
	transform: scale(1.06);
}

.best-slider__nav-btn:hover svg {
	fill: #ffffff;
}

.best-slider__nav-btn:active {
	transform: scale(0.96);
}

.best-slider__nav-btn[disabled] {
	background-color: #edf0f4;
	cursor: not-allowed;
	transform: none;
}

.best-slider__nav-btn[disabled] svg {
	fill: #a0aec0;
}

.best-slider__nav-btn:focus-visible {
	box-shadow: 0 0 0 3px rgba(13, 27, 62, 0.35);
}

/* ===================================================================
   3. Right Panel — Carousel Track
   =================================================================== */

.best-slider__right {
	flex: 1 1 0%;
	overflow: hidden;
	position: relative;
	min-width: 0; /* prevent flex overflow */
}

.best-slider__track {
	display: flex;
	transition-property: transform;
	transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
	will-change: transform;
}

.best-slider__slide {
	flex: 0 0 auto;
	box-sizing: border-box;
}

/* ===================================================================
   4. Card
   =================================================================== */

.best-slider__card {
	background: #ffffff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 1px 3px rgba(0, 0, 0, 0.06), 0 4px 16px rgba(0, 0, 0, 0.04);
	border: 1px solid #e9ecef;
	transition: box-shadow 0.3s ease, transform 0.3s ease;
	height: 100%;
	display: flex;
	flex-direction: column;
}

.best-slider__card:hover {
	box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08), 0 8px 28px rgba(0, 0, 0, 0.06);
	transform: translateY(-2px);
}

/* Card Image */
.best-slider__card-image {
	width: 100%;
	height: 220px;
	overflow: hidden;
	position: relative;
}

.best-slider__card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.best-slider__card:hover .best-slider__card-image img {
	transform: scale(1.04);
}

/* Card Body */
.best-slider__card-body {
	padding: 20px;
	display: flex;
	flex-direction: column;
	flex: 1;
}

/* Logo */
.best-slider__card-logo {
	margin-bottom: 12px;
}

.best-slider__card-logo img {
	height: 32px;
	width: auto;
	display: block;
}

/* Card Description */
.best-slider__card-desc {
	font-size: 14px;
	font-weight: 500;
	line-height: 1.55;
	color: #1a202c;
	margin: 0 0 16px 0;
	flex: 1;
}

/* Card Button / CTA */
.best-slider__card-btn {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	font-size: 14px;
	font-weight: 600;
	color: #0d1b3e;
	text-decoration: none;
	border: none;
	background: none;
	padding: 0;
	cursor: pointer;
	transition: color 0.2s ease, gap 0.2s ease;
	line-height: 1;
	margin-top: auto;
	border-bottom: 1px solid currentColor;
	padding-bottom: 2px;
	width: fit-content;
}

.best-slider__card-btn svg {
	transition: transform 0.2s ease;
}

.best-slider__card-btn:hover {
	color: #1a56db;
	gap: 8px;
}

.best-slider__card-btn:hover svg {
	transform: translateX(2px);
}

/* ===================================================================
   5. Touch / Drag Support Visual Cues
   =================================================================== */

.best-slider__right {
	cursor: grab;
}

.best-slider__right.is-dragging {
	cursor: grabbing;
}

.best-slider__right.is-dragging .best-slider__card {
	pointer-events: none;
}

/* Ensure cards and links remain interactive (hoverable / clickable) */
.best-slider__card,
.best-slider__card a,
.best-slider__card button {
	pointer-events: auto;
}

/* ===================================================================
   6. Responsive
   =================================================================== */

@media (max-width: 1024px) {
	.best-slider__heading {
		font-size: 26px;
	}
}

@media (max-width: 768px) {
	.best-slider {
		flex-direction: column;
	}

	.best-slider__left {
		width: 100% !important;
		flex: 0 0 auto !important;
		padding: 28px 20px 20px;
	}

	.best-slider__description {
		margin-bottom: 20px;
	}

	.best-slider__nav {
		margin-top: 0;
		padding-top: 0;
		margin-bottom: 8px;
	}

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

	.best-slider__right {
		flex: 0 0 auto;
	}
}

@media (max-width: 480px) {
	.best-slider__left {
		padding: 20px 16px 16px;
	}

	.best-slider__heading {
		font-size: 22px;
	}

	.best-slider__card-image {
		height: 180px;
	}
}
