/* Karim Home Widgets – clients styles (generated from temp/index.html, scoped to .khw-clients) */

.khw-clients.clients {
	padding: 96px 0 0;
}

.khw-clients .clients-title {
	text-align: center;
	font-size: 14px;
	font-weight: 500;
	text-transform: uppercase;
	letter-spacing: -0.1px;
	color: var(--dark);
}

.khw-clients .marquee {
	margin-top: 52px;
	padding-bottom: 54px;
	border-bottom: 1px solid var(--navy-200);
	overflow: hidden;
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}

.khw-clients .marquee-track {
	display: flex;
	width: max-content;
	animation: khw-marquee 32s linear infinite;
}

.khw-clients .marquee:hover .marquee-track {
	animation-play-state: paused;
}

.khw-clients .marquee-group {
	display: flex;
}

.khw-clients .client-logo {
	display: flex;
	align-items: center;
	flex-shrink: 0;
	padding: 0 48px;
}

.khw-clients .client-logo img {
	width: auto;
	height: 44px;
	max-width: 180px;
	object-fit: contain;
	filter: grayscale(1);
	opacity: .55;
	transition: filter .3s, opacity .3s;
}

.khw-clients .client-logo:hover img {
	filter: none;
	opacity: 1;
}

/* Contact page variant: rule above the title, none under the logos */
.khw-clients.clients--rule-top .container:first-child::before {
	content: "";
	display: block;
	margin-bottom: 64px;
	border-top: 1px solid var(--navy-200);
}

.khw-clients.clients--rule-top .marquee {
	padding-bottom: 72px;
	border-bottom: 0;
}

@media (max-width: 700px) {
	.khw-clients.clients--rule-top .container:first-child::before {
		margin-bottom: 44px;
	}

	.khw-clients.clients--rule-top .marquee {
		padding-bottom: 48px;
	}
}

@keyframes khw-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (max-width: 700px) {
	.khw-clients.clients {
		padding-top: 64px;
	}

	.khw-clients .marquee {
		margin-top: 36px;
		padding-bottom: 40px;
	}

	.khw-clients .client-logo {
		padding: 0 18px;
	}

	.khw-clients .client-logo img {
		height: 34px;
		max-width: 140px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.khw-clients .marquee-track {
		animation: none;
	}
}
