/* All Staff Scroll — 4x2 desktop, 1x2 mobile RTL auto scroll */
.wlsm-all-staff-scroll {
	font-family: 'Inter', sans-serif;
	line-height: 1.5;
	color: #333;
	background: #f8fafc;
	padding: 28px 0;
	margin-left: 0;
	margin-right: 0;
	overflow: hidden;
	width: 100%;
	-webkit-overflow-scrolling: touch;
}

.wlsm-all-staff-scroll *,
.wlsm-all-staff-scroll *::before,
.wlsm-all-staff-scroll *::after {
	box-sizing: border-box;
}

.wlsm-all-staff-scroll .wlsm-as-container {
	max-width: 100%;
	margin: 0;
	padding: 0;
	width: 100%;
}

.wlsm-all-staff-scroll .wlsm-as-empty {
	text-align: center;
	color: #7f8c8d;
	padding: 2rem;
	margin: 0;
}

.wlsm-all-staff-scroll .wlsm-as-marquee {
	display: flex;
	flex-direction: column;
	gap: 1.25rem;
	overflow: hidden;
	width: 100%;
}

.wlsm-all-staff-scroll .wlsm-as-row {
	overflow: hidden;
	width: 100%;
	margin: 0;
}

.wlsm-all-staff-scroll .wlsm-as-track {
	display: flex;
	flex-wrap: nowrap;
	width: max-content;
	gap: 1.25rem;
	will-change: transform;
	animation: wlsm-as-scroll-rtl 40s linear infinite;
	-webkit-animation: wlsm-as-scroll-rtl 40s linear infinite;
}

.wlsm-all-staff-scroll .wlsm-as-row:nth-child(2) .wlsm-as-track {
	animation-duration: 45s;
	-webkit-animation-duration: 45s;
}

.wlsm-all-staff-scroll .wlsm-as-marquee:hover .wlsm-as-track {
	animation-play-state: paused;
	-webkit-animation-play-state: paused;
}

@keyframes wlsm-as-scroll-rtl {
	0% {
		transform: translate3d(0, 0, 0);
	}
	100% {
		transform: translate3d(-50%, 0, 0);
	}
}

@-webkit-keyframes wlsm-as-scroll-rtl {
	0% {
		-webkit-transform: translate3d(0, 0, 0);
	}
	100% {
		-webkit-transform: translate3d(-50%, 0, 0);
	}
}

.wlsm-all-staff-scroll .wlsm-as-card {
	flex: 0 0 auto;
	background: #fff;
	border-radius: 16px;
	padding: 1.25rem 1rem 1.35rem;
	text-align: center;
	box-shadow: 0 8px 24px rgba(0, 0, 0, 0.08);
	border: 1px solid rgba(102, 126, 234, 0.12);
	transition: box-shadow 0.3s ease;
}

.wlsm-all-staff-scroll .wlsm-as-card:hover {
	box-shadow: 0 14px 32px rgba(102, 126, 234, 0.18);
}

.wlsm-all-staff-scroll .wlsm-as-photo {
	width: 100%;
	aspect-ratio: 1 / 1;
	max-width: 180px;
	margin: 0 auto 1rem;
	border-radius: 16px;
	overflow: hidden;
	background: linear-gradient(135deg, #667eea, #764ba2);
	display: flex;
	align-items: center;
	justify-content: center;
	color: #fff;
	font-size: 2.8rem;
}

.wlsm-all-staff-scroll .wlsm-as-photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	border-radius: 16px;
	transition: transform 0.45s ease;
	transform: scale(1);
}

.wlsm-all-staff-scroll .wlsm-as-card:hover .wlsm-as-photo img,
.wlsm-all-staff-scroll .wlsm-as-photo:hover img {
	transform: scale(1.12);
}

.wlsm-all-staff-scroll .wlsm-as-card:hover .wlsm-as-photo i,
.wlsm-all-staff-scroll .wlsm-as-photo:hover i {
	transform: scale(1.12);
	transition: transform 0.45s ease;
}

.wlsm-all-staff-scroll .wlsm-as-name {
	font-size: 1.15rem;
	font-weight: 700;
	color: #2c3e50;
	margin: 0 0 0.35rem;
	line-height: 1.3;
}

.wlsm-all-staff-scroll .wlsm-as-designation {
	font-size: 0.95rem;
	font-weight: 600;
	color: #667eea;
	margin: 0;
	line-height: 1.35;
}

@media (max-width: 768px) {
	.wlsm-all-staff-scroll .wlsm-as-container {
		padding: 0 12px;
	}

	.wlsm-all-staff-scroll .wlsm-as-marquee {
		gap: 1rem;
	}

	.wlsm-all-staff-scroll .wlsm-as-track {
		gap: 1rem;
		animation-duration: 28s;
		-webkit-animation-duration: 28s;
	}

	.wlsm-all-staff-scroll .wlsm-as-row:nth-child(2) .wlsm-as-track {
		animation-duration: 32s;
		-webkit-animation-duration: 32s;
	}

	.wlsm-all-staff-scroll .wlsm-as-name {
		font-size: 1.05rem;
	}

	.wlsm-all-staff-scroll .wlsm-as-photo {
		max-width: 160px;
	}

	/* Mobile: never pause the auto-scroll on hover/tap (touch "hover" sticks and freezes the marquee) */
	.wlsm-all-staff-scroll .wlsm-as-marquee:hover .wlsm-as-track {
		animation-play-state: running !important;
		-webkit-animation-play-state: running !important;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wlsm-all-staff-scroll .wlsm-as-track {
		animation-duration: 80s;
		-webkit-animation-duration: 80s;
	}
}
