/* ACE-Clients Modern Frontend Grid */
.ace-clients-groups {
	display: flex;
	flex-direction: column;
	gap: 2.5rem;
	width: 100%;
}

.ace-clients-group-title {
	margin: 0 0 1.25rem;
	font-size: 0.9rem;
	font-weight: 700;
	letter-spacing: 0.05em;
	text-transform: uppercase;
	text-align: center;
	color: var(--wp--preset--color--muted, #475569);
}

.ace-clients-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 1.25rem;
	width: 100%;
}

.ace-clients-cols-2 {
	grid-template-columns: repeat(2, minmax(0, 1fr));
}

.ace-clients-cols-3 {
	grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ace-clients-cols-4 {
	grid-template-columns: repeat(4, minmax(0, 1fr));
}

.ace-clients-cols-5 {
	grid-template-columns: repeat(5, minmax(0, 1fr));
}

.ace-clients-cols-6 {
	grid-template-columns: repeat(6, minmax(0, 1fr));
}

.ace-client-item {
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: flex-start;
	gap: 0.75rem;
	padding: 0.75rem 0.5rem;
	background: transparent;
	border: none;
	border-radius: 0;
	text-align: center;
	text-decoration: none;
	color: var(--wp--preset--color--contrast, #0f172a);
	box-shadow: none;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.ace-client-item:hover {
	transform: translateY(-2px);
	opacity: 0.9;
}

.ace-client-media {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 56px;
}

.ace-client-logo {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 100%;
}

.ace-client-logo img {
	max-height: 52px;
	max-width: 160px;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.ace-client-monogram {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 48px;
	height: 48px;
	border-radius: 12px;
	background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%);
	color: var(--wp--preset--color--primary, #2563eb);
	font-size: 1rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	border: 1px solid #bfdbfe;
}

.ace-client-body {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 0.55rem;
	width: 100%;
}

.ace-client-name {
	display: inline-flex;
	align-items: center;
	gap: 0.3rem;
	font-size: 0.95rem;
	font-weight: 700;
	letter-spacing: -0.01em;
	line-height: 1.35;
	color: var(--wp--preset--color--contrast, #0f172a);
}

.ace-client-ext {
	font-size: 0.8rem;
	color: var(--wp--preset--color--primary, #2563eb);
	opacity: 0.75;
}

.ace-client-meta-wrap {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: center;
	gap: 0.4rem;
}

.ace-client-pill {
	display: inline-block;
	padding: 0.2rem 0.65rem;
	border-radius: 9999px;
	background: var(--wp--preset--color--primary-soft, #eff6ff);
	color: var(--wp--preset--color--primary, #2563eb);
	font-size: 0.72rem;
	font-weight: 600;
	line-height: 1.4;
}

.ace-client-location {
	font-size: 0.75rem;
	color: var(--wp--preset--color--muted, #64748b);
}

@media (max-width: 1024px) {
	.ace-clients-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 520px) {
	.ace-clients-grid {
		grid-template-columns: 1fr;
	}

	.ace-client-item {
		padding: 1.4rem 1.25rem;
	}
}
