/**
 * Frontend CSS for PSC Case Studies Slider
 * Premium scoped styling with protective overrides (!important)
 */

.psc-cs-section {
	font-family: 'Plus Jakarta Sans', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif !important;
	padding: 40px 50px !important;
	border-radius: 28px !important;
	width: 100% !important;
	max-width: 1280px !important;
	margin: 30px auto !important;
	box-sizing: border-box !important;
	color: #0f172a !important;
	overflow: hidden !important;
}

.psc-cs-section * {
	box-sizing: border-box !important;
}

/* Subtitle styling */
.psc-cs-top-subtitle-row {
	margin-bottom: 12px !important;
}

.psc-cs-subtitle {
	display: block !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #475569 !important;
	letter-spacing: -0.2px !important;
}

/* Flex Row: Main Heading on Left + Navigation Controls on Right */
.psc-cs-slide-header-row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	margin-bottom: 28px !important;
	gap: 24px !important;
}

.psc-cs-slide-heading {
	font-size: 32px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	line-height: 1.22 !important;
	margin: 0 !important;
	max-width: 680px !important;
	letter-spacing: -0.5px !important;
}

/* Navigation Controls & Live Counter */
.psc-cs-header-right {
	display: flex !important;
	align-items: center !important;
	gap: 16px !important;
	flex-shrink: 0 !important;
	margin-bottom: 4px !important;
}

.psc-cs-nav-btn {
	width: 48px !important;
	height: 48px !important;
	border-radius: 50% !important;
	border: 1.5px solid #0f172a !important;
	background: transparent !important;
	color: #0f172a !important;
	cursor: pointer !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	transition: all 0.3s cubic-bezier(0.25, 1, 0.5, 1) !important;
	outline: none !important;
	padding: 0 !important;
}

.psc-cs-nav-btn svg {
	width: 18px !important;
	height: 18px !important;
	stroke: currentColor !important;
}

.psc-cs-prev-btn:hover {
	background-color: #0f172a !important;
	color: #ffffff !important;
	transform: translateY(-2px) !important;
}

.psc-cs-next-btn {
	background-color: #0f172a !important;
	color: #ffffff !important;
}

.psc-cs-next-btn:hover {
	background-color: #0066FF !important;
	border-color: #0066FF !important;
	transform: translateY(-2px) !important;
}

.psc-cs-counter {
	font-size: 15px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	letter-spacing: 0.5px !important;
	user-select: none !important;
}

.psc-cs-current-slide {
	text-decoration: underline !important;
	text-underline-offset: 3px !important;
	font-weight: 800 !important;
}

.psc-cs-counter-sep {
	color: #94a3b8 !important;
	margin: 0 3px !important;
}

.psc-cs-total-slides {
	color: #64748b !important;
}

/* Swiper Container */
.psc-cs-swiper-container {
	width: 100% !important;
	overflow: hidden !important;
	padding: 4px 0 10px 0 !important;
}

.psc-cs-slide {
	height: auto !important;
}

/* Card Design */
.psc-cs-card {
	background: #ffffff !important;
	border-radius: 24px !important;
	padding: 28px !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03), 0 1px 3px rgba(0, 0, 0, 0.02) !important;
	display: flex !important;
	gap: 36px !important;
	align-items: center !important;
	border: 1px solid rgba(226, 232, 240, 0.8) !important;
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease !important;
}

.psc-cs-card:hover {
	box-shadow: 0 18px 40px rgba(0, 0, 0, 0.07) !important;
}

/* Card Media (Left Column) */
.psc-cs-card-media {
	flex: 1 !important;
	position: relative !important;
	border-radius: 20px !important;
	overflow: hidden !important;
	height: 380px !important;
	min-width: 320px !important;
}

.psc-cs-card-img {
	width: 100% !important;
	height: 100% !important;
	background-size: cover !important;
	background-position: center !important;
	background-repeat: no-repeat !important;
	transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.psc-cs-card:hover .psc-cs-card-img {
	transform: scale(1.05) !important;
}

.psc-cs-btn-wrapper {
	position: absolute !important;
	top: 50% !important;
	left: 50% !important;
	transform: translate(-50%, -50%) !important;
	z-index: 5 !important;
}

.psc-cs-details-btn {
	width: 135px !important;
	height: 135px !important;
	background-color: #0066FF !important;
	color: #ffffff !important;
	border-radius: 24px !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-align: center !important;
	text-decoration: none !important;
	font-weight: 700 !important;
	font-size: 15px !important;
	line-height: 1.25 !important;
	padding: 16px !important;
	box-shadow: 0 12px 28px rgba(0, 102, 255, 0.35) !important;
	transition: transform 0.35s cubic-bezier(0.25, 1, 0.5, 1), background-color 0.3s ease !important;
}

.psc-cs-details-btn:hover {
	transform: scale(1.08) !important;
	background-color: #0052cc !important;
}

/* Card Content (Right Column) */
.psc-cs-card-content {
	flex: 1.2 !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: center !important;
	padding-right: 12px !important;
}

.psc-cs-badge-wrapper {
	margin-bottom: 16px !important;
}

.psc-cs-badge {
	background-color: #e0f2fe !important;
	color: #0284c7 !important;
	padding: 6px 16px !important;
	border-radius: 30px !important;
	font-size: 12px !important;
	font-weight: 700 !important;
	letter-spacing: 0.6px !important;
	text-transform: uppercase !important;
	display: inline-block !important;
}

.psc-cs-card-title {
	font-size: 28px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	margin: 0 0 16px 0 !important;
	line-height: 1.3 !important;
	letter-spacing: -0.3px !important;
}

.psc-cs-card-title a {
	color: #0f172a !important;
	text-decoration: none !important;
	transition: color 0.25s ease !important;
}

.psc-cs-card-title a:hover {
	color: #0066FF !important;
}

.psc-cs-card-excerpt {
	font-size: 15px !important;
	color: #64748b !important;
	line-height: 1.65 !important;
	margin: 0 0 28px 0 !important;
}

/* Author Row Footer */
.psc-cs-author-row {
	display: flex !important;
	justify-content: space-between !important;
	align-items: center !important;
	margin-top: auto !important;
	padding-top: 18px !important;
	border-top: 1px solid #f1f5f9 !important;
}

.psc-cs-author-left {
	display: flex !important;
	align-items: center !important;
	gap: 12px !important;
}

.psc-cs-avatar {
	width: 44px !important;
	height: 44px !important;
	border-radius: 50% !important;
	object-fit: cover !important;
	border: 1.5px solid #e2e8f0 !important;
}

.psc-cs-author-info {
	display: flex !important;
	flex-direction: column !important;
	gap: 2px !important;
}

.psc-cs-author-name {
	font-size: 14px !important;
	font-weight: 700 !important;
	color: #0f172a !important;
	line-height: 1.2 !important;
}

.psc-cs-author-badge {
	font-size: 12px !important;
	color: #64748b !important;
	display: inline-flex !important;
	align-items: center !important;
	gap: 4px !important;
}

.psc-cs-check-icon {
	flex-shrink: 0 !important;
}

.psc-cs-author-right {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #64748b !important;
}

/* Empty Alert */
.psc-cs-empty-alert {
	background: #1e293b !important;
	color: #f8fafc !important;
	padding: 24px !important;
	border-radius: 12px !important;
	text-align: center !important;
	max-width: 800px !important;
	margin: 20px auto !important;
}

/* Responsiveness */
@media (max-width: 960px) {
	.psc-cs-section {
		padding: 30px 24px !important;
		border-radius: 20px !important;
	}

	.psc-cs-slide-header-row {
		gap: 16px !important;
		margin-bottom: 20px !important;
	}

	.psc-cs-slide-heading {
		font-size: 24px !important;
	}

	.psc-cs-card {
		flex-direction: column !important;
		gap: 20px !important;
		padding: 20px !important;
	}

	.psc-cs-card-media {
		width: 100% !important;
		min-width: 100% !important;
		height: 280px !important;
	}

	.psc-cs-card-content {
		width: 100% !important;
		padding-right: 0 !important;
	}

	.psc-cs-card-title {
		font-size: 22px !important;
	}
}

@media (max-width: 640px) {
	.psc-cs-slide-header-row {
		flex-direction: column !important;
		align-items: flex-start !important;
		gap: 16px !important;
	}

	.psc-cs-header-right {
		align-self: flex-end !important;
		margin-bottom: 0 !important;
	}

	.psc-cs-slide-heading {
		font-size: 20px !important;
	}

	.psc-cs-details-btn {
		width: 110px !important;
		height: 110px !important;
		font-size: 14px !important;
		border-radius: 20px !important;
	}
}
