/* Minay Home Blocks — Referanslar */

:root {
	--mhb-navy: #0c2d4f;
	--mhb-navy-dark: #071a2e;
	--mhb-gold: #c9a227;
	--mhb-muted: #5a6a7e;
	--mhb-border: #e2e8f0;
}

/* ── References band (Proline-style marquee) ── */
.mhb-refs {
	max-width: 100%;
	margin: 0 auto;
	padding: 64px 0 56px;
	box-sizing: border-box;
	background: #f3f6fa;
	overflow: hidden;
}

.mhb-refs--marquee {
	border-top: 1px solid var(--mhb-border);
	border-bottom: 1px solid var(--mhb-border);
}

.mhb-refs--grid {
	border-top: 1px solid var(--mhb-border);
	border-bottom: 1px solid var(--mhb-border);
	overflow: visible;
}

/* Tam sayfa referanslar — Proline tarzı logo grid */
.mhb-refs--page {
	background: #fff;
	padding: 24px 0 56px;
	border: none;
	overflow: visible;
}

.mhb-refs--page .mhb-refs__head {
	margin-bottom: 28px;
}

.mhb-refs__grid--page {
	max-width: 1200px;
	gap: 14px;
	grid-template-columns: repeat(var(--mhb-refs-cols, 6), minmax(0, 1fr));
}

.mhb-refs--page .mhb-refs__logo {
	min-width: 0;
	max-width: none;
	width: 100%;
	min-height: 92px;
	padding: 14px 12px;
	border-radius: 8px;
	border: 1px solid #e5e7eb;
	box-shadow: none;
	display: flex;
	align-items: center;
	justify-content: center;
}

.mhb-refs--page .mhb-refs__logo:hover {
	transform: none;
	border-color: #cbd5e1;
	box-shadow: 0 2px 10px rgba(15, 23, 42, 0.06);
}

.mhb-refs--page .mhb-refs__img {
	display: block;
	width: auto;
	max-width: 92%;
	height: 54px;
	max-height: 54px;
	margin: 0 auto;
	object-fit: contain;
	object-position: center;
}

.mhb-refs--page .mhb-refs__logo:hover .mhb-refs__img {
	transform: scale(1.04);
}

.mhb-refs__grid {
	max-width: 1280px;
	margin: 0 auto;
	padding: 0 24px;
	display: grid;
	grid-template-columns: repeat(var(--mhb-refs-cols, 4), minmax(0, 1fr));
	gap: 20px;
}

.mhb-refs--grid .mhb-refs__logo {
	min-width: 0;
	max-width: none;
	width: 100%;
}

.mhb-refs__head {
	text-align: center;
	margin-bottom: 36px;
	padding: 0 24px;
}

.mhb-refs__title {
	margin: 0 0 10px;
	font-size: clamp(1.6rem, 3vw, 2.2rem);
	font-weight: 800;
	letter-spacing: -0.02em;
	color: var(--mhb-navy-dark);
}

.mhb-refs__title::after {
	content: '';
	display: block;
	width: 48px;
	height: 3px;
	background: var(--mhb-gold);
	margin: 12px auto 0;
	border-radius: 2px;
}

.mhb-refs__subtitle {
	margin: 14px auto 0;
	max-width: 520px;
	font-size: 1rem;
	color: var(--mhb-muted);
	line-height: 1.5;
}

.mhb-refs__viewport {
	position: relative;
	overflow: hidden;
	width: 100%;
	mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	-webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
	margin-bottom: 16px;
}

.mhb-refs__viewport--reverse {
	margin-bottom: 0;
}

.mhb-refs__marquee {
	display: flex;
	width: max-content;
	will-change: transform;
	animation: mhb-marquee-left var(--mhb-marquee-speed, 35s) linear infinite;
}

.mhb-refs__marquee--reverse {
	animation-name: mhb-marquee-right;
}

.mhb-refs__viewport:hover .mhb-refs__marquee {
	animation-play-state: paused;
}

.mhb-refs__group {
	display: flex;
	align-items: stretch;
	gap: 20px;
	padding-right: 20px;
	flex-shrink: 0;
}

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

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

.mhb-refs__logo {
	flex: 0 0 auto;
	min-width: 148px;
	max-width: 180px;
	padding: 20px 18px 16px;
	background: #fff;
	border: 1px solid var(--mhb-border);
	border-radius: 12px;
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 10px;
	box-shadow: 0 4px 16px rgba(7, 26, 46, 0.04);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.mhb-refs__logo:hover {
	transform: translateY(-3px);
	box-shadow: 0 10px 28px rgba(7, 26, 46, 0.1);
	border-color: rgba(201, 162, 39, 0.35);
}

.mhb-refs__abbr {
	width: 52px;
	height: 52px;
	border-radius: 10px;
	background: linear-gradient(145deg, #f0f4f8, #e2eaf3);
	color: var(--mhb-navy);
	font-weight: 800;
	font-size: 0.8rem;
	display: flex;
	align-items: center;
	justify-content: center;
	letter-spacing: 0.03em;
}

.mhb-refs__img {
	max-width: 120px;
	max-height: 48px;
	width: auto;
	height: auto;
	object-fit: contain;
	opacity: 1;
	transition: transform 0.2s ease, opacity 0.2s ease;
}

.mhb-refs__logo:hover .mhb-refs__img {
	opacity: 1;
	transform: scale(1.05);
}

.mhb-refs__logo--has-img .mhb-refs__name {
	display: none;
}

.mhb-refs__name {
	font-size: 0.78rem;
	font-weight: 600;
	color: var(--mhb-navy-dark);
	text-align: center;
	line-height: 1.3;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	max-width: 100%;
}

.mhb-refs__note {
	margin: 20px 0 0;
	text-align: center;
	font-size: 0.75rem;
	color: #94a3b8;
	font-style: italic;
	padding: 0 24px;
}

@media (prefers-reduced-motion: reduce) {
	.mhb-refs__marquee {
		animation: none;
		flex-wrap: wrap;
		justify-content: center;
		width: 100%;
		max-width: 1280px;
		margin: 0 auto;
	}

	.mhb-refs__viewport--reverse {
		display: none;
	}

	.mhb-refs__group[aria-hidden="true"] {
		display: none;
	}
}

@media (max-width: 1024px) {
	.mhb-refs__grid--page {
		--mhb-refs-cols: 4;
	}
}

@media (max-width: 768px) {
	.mhb-refs__grid--page {
		--mhb-refs-cols: 3;
	}
}

@media (max-width: 640px) {
	.mhb-refs {
		padding: 48px 0 40px;
	}

	.mhb-refs__logo {
		min-width: 120px;
		padding: 14px 12px;
	}

	.mhb-refs__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 14px;
		padding: 0 16px;
	}
}

.mhb-about-page__refs {
	margin-top: 0;
}
