/**
 * Frontend CSS for PSC Team Slider & Grid
 * Premium scoped styling with protective overrides (!important) & Ultra-thin Custom Scrollbars
 */

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

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

/* Header & Mobile Nav Row */
.psc-team-header {
	display: flex !important;
	justify-content: space-between !important;
	align-items: flex-end !important;
	margin-bottom: 28px !important;
	gap: 20px !important;
}

.psc-team-header-left {
	flex: 1 !important;
}

.psc-team-subtitle {
	display: block !important;
	font-size: 15px !important;
	font-weight: 600 !important;
	color: #475569 !important;
	margin-bottom: 6px !important;
}

.psc-team-title {
	font-size: 32px !important;
	font-weight: 800 !important;
	color: #0f172a !important;
	line-height: 1.25 !important;
	margin: 0 !important;
}

.psc-team-mobile-nav-row {
	display: flex !important;
	justify-content: flex-end !important;
	margin-bottom: 20px !important;
}

/* Navigation Controls & Live Counter (Visible on Mobile or Slider Mode) */
.psc-team-header-right {
	display: flex !important;
	align-items: center !important;
	gap: 16px !important;
	flex-shrink: 0 !important;
}

/* On Desktop Grid Mode, hide navigation controls unless slider layout */
@media (min-width: 768px) {
	.psc-team-mobile-nav-row {
		display: none !important;
	}
}

.psc-team-nav-btn {
	width: 44px !important;
	height: 44px !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-team-nav-btn svg {
	width: 18px !important;
	height: 18px !important;
	stroke: currentColor !important;
}

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

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

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

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

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

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

.psc-team-total-slides {
	color: #94a3b8 !important;
}

/* Swiper Container & Desktop Grid Layout */
.psc-team-swiper-container {
	width: 100% !important;
	overflow: hidden !important;
	padding: 6px 0 20px 0 !important;
}

@media (min-width: 768px) {
	.psc-team-section:not(.psc-team-slider-mode) .psc-team-swiper-container {
		overflow: visible !important;
	}

	.psc-team-section:not(.psc-team-slider-mode) .psc-team-grid-wrapper {
		display: grid !important;
		grid-template-columns: repeat(4, 1fr) !important;
		gap: 24px !important;
		transform: none !important;
		width: 100% !important;
		box-sizing: border-box !important;
	}

	.psc-team-section:not(.psc-team-slider-mode) .psc-team-slide {
		width: 100% !important;
		max-width: 100% !important;
		margin: 0 !important;
	}
}

@media (min-width: 768px) and (max-width: 1024px) {
	.psc-team-section:not(.psc-team-slider-mode) .psc-team-grid-wrapper {
		grid-template-columns: repeat(2, 1fr) !important;
		gap: 20px !important;
	}
}

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

/* Team Card Design */
.psc-team-card {
	position: relative !important;
	height: 390px !important;
	width: 100% !important;
	border-radius: 20px !important;
	overflow: hidden !important;
	background-color: #f1f5f9 !important;
	box-shadow: 0 10px 30px rgba(0, 0, 0, 0.04) !important;
	border: 1px solid rgba(226, 232, 240, 0.9) !important;
	transition: transform 0.4s cubic-bezier(0.25, 1, 0.5, 1), box-shadow 0.4s ease !important;
}

.psc-team-card:hover {
	transform: translateY(-4px) !important;
	box-shadow: 0 16px 36px rgba(0, 102, 255, 0.15) !important;
}

/* Card Portrait Background Image */
.psc-team-card-bg {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background-size: cover !important;
	background-position: center top !important;
	background-repeat: no-repeat !important;
	z-index: 1 !important;
	transition: transform 0.7s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

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

.psc-team-card-gradient {
	position: absolute !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 50% !important;
	background: linear-gradient(180deg, rgba(255, 255, 255, 0) 0%, rgba(224, 242, 254, 0.95) 100%) !important;
	z-index: 2 !important;
	pointer-events: none !important;
}

/* Normal State Info (Bottom Name & Title) */
.psc-team-card-normal {
	position: absolute !important;
	bottom: 0 !important;
	left: 0 !important;
	width: 100% !important;
	padding: 22px 20px !important;
	z-index: 3 !important;
	transition: opacity 0.35s ease, transform 0.35s ease !important;
}

.psc-team-name {
	font-size: 18px !important;
	font-weight: 700 !important;
	color: #0066FF !important;
	margin: 0 0 3px 0 !important;
	line-height: 1.25 !important;
	letter-spacing: -0.2px !important;
}

.psc-team-job {
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #334155 !important;
	display: block !important;
}

/* Hover Overlay (Full Card Blue Background) */
.psc-team-card-hover {
	position: absolute !important;
	top: 0 !important;
	left: 0 !important;
	width: 100% !important;
	height: 100% !important;
	background: #0066FF !important;
	color: #ffffff !important;
	padding: 24px !important;
	z-index: 10 !important;
	display: flex !important;
	flex-direction: column !important;
	justify-content: space-between !important;
	opacity: 0 !important;
	pointer-events: none !important;
	transform: translateY(8px) !important;
	transition: opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1), transform 0.4s cubic-bezier(0.25, 1, 0.5, 1) !important;
}

.psc-team-card:hover .psc-team-card-hover {
	opacity: 1 !important;
	pointer-events: auto !important;
	transform: translateY(0) !important;
}

.psc-team-hover-top {
	display: flex !important;
	justify-content: space-between !important;
	align-items: flex-start !important;
	gap: 12px !important;
}

.psc-team-hover-identity {
	flex: 1 !important;
}

.psc-team-hover-name {
	font-size: 20px !important;
	font-weight: 800 !important;
	color: #ffffff !important;
	margin: 0 0 4px 0 !important;
	line-height: 1.2 !important;
	letter-spacing: -0.2px !important;
}

.psc-team-hover-job {
	font-size: 13px !important;
	font-weight: 500 !important;
	color: rgba(255, 255, 255, 0.85) !important;
	display: block !important;
}

/* Social Media Icons */
.psc-team-hover-socials {
	display: flex !important;
	flex-direction: column !important;
	gap: 8px !important;
}

.psc-team-hover-socials a {
	width: 32px !important;
	height: 32px !important;
	border-radius: 50% !important;
	background: rgba(255, 255, 255, 0.22) !important;
	color: #ffffff !important;
	display: flex !important;
	align-items: center !important;
	justify-content: center !important;
	text-decoration: none !important;
	font-size: 13px !important;
	transition: background 0.3s ease, color 0.3s ease, transform 0.25s ease !important;
}

.psc-team-hover-socials a:hover {
	background-color: #ffffff !important;
	color: #0066FF !important;
	transform: scale(1.1) !important;
}

/* Scrollable Bio Description with Custom Ultra-Thin Scrollbar */
.psc-team-hover-bio-container {
	margin-top: 16px !important;
	overflow-y: auto !important;
	max-height: 230px !important;
	padding-right: 6px !important;
}

.psc-team-hover-bio-text {
	font-size: 13.5px !important;
	color: rgba(255, 255, 255, 0.95) !important;
	line-height: 1.6 !important;
	margin: 0 !important;
}

/* ULTRA-THIN ELEGANT SCROLLBAR */
/* WebKit browsers (Chrome, Safari, Edge) */
.psc-custom-scrollbar::-webkit-scrollbar {
	width: 3px !important;
}

.psc-custom-scrollbar::-webkit-scrollbar-track {
	background: transparent !important;
}

.psc-custom-scrollbar::-webkit-scrollbar-thumb {
	background: rgba(255, 255, 255, 0.4) !important;
	border-radius: 3px !important;
}

.psc-custom-scrollbar::-webkit-scrollbar-thumb:hover {
	background: rgba(255, 255, 255, 0.7) !important;
}

/* Firefox */
.psc-custom-scrollbar {
	scrollbar-width: thin !important;
	scrollbar-color: rgba(255, 255, 255, 0.4) transparent !important;
}

/* Empty Alert */
.psc-team-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: 640px) {
	.psc-team-card {
		height: 360px !important;
	}

	.psc-team-hover-name {
		font-size: 18px !important;
	}

	.psc-team-hover-bio-container {
		max-height: 200px !important;
	}
}
