.hef-sponsors {
	--hef-sponsor-columns: 4;
	--hef-sponsor-gap: 24px;
	--hef-sponsor-speed: 500ms;
	position: relative;
	width: 100%;
}

.hef-sponsors--grid {
	display: grid;
	grid-template-columns: repeat(var(--hef-sponsor-columns), minmax(0, 1fr));
	gap: var(--hef-sponsor-gap);
}

.hef-sponsor-card {
	display: flex;
	flex-direction: column;
	min-width: 0;
	padding: 22px;
	background: #fff;
	border: 1px solid #e9e1d2;
	border-radius: 8px;
	transition: transform .2s ease, box-shadow .2s ease;
}

.hef-sponsor-card:hover {
	transform: translateY(-3px);
}

.hef-sponsor-logo-wrap {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	height: 145px;
	overflow: hidden;
}

.hef-sponsor-logo {
	display: block;
	width: auto;
	max-width: 88%;
	height: auto;
	max-height: 100%;
	object-fit: contain;
}

.hef-sponsor-logo-placeholder {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 88px;
	height: 88px;
	border-radius: 50%;
	background: #fff0c7;
	color: #111;
	font: 800 36px/1 Montserrat, Arial, sans-serif;
}

.hef-sponsor-name {
	margin: 18px 0 0;
	color: #111;
	font: 700 16px/1.35 Montserrat, Arial, sans-serif;
	text-align: center;
}

.hef-sponsors-empty {
	padding: 24px;
	border: 1px dashed #d7cdbd;
	border-radius: 8px;
	color: #666;
	text-align: center;
}

/* Carousel */
.hef-sponsors--carousel {
	padding: 0 52px;
}

.hef-sponsors-carousel-viewport {
	overflow: hidden;
	width: 100%;
}

.hef-sponsors-carousel-track {
	display: flex;
	align-items: stretch;
	gap: var(--hef-sponsor-gap);
	transform: translate3d(0, 0, 0);
	transition: transform var(--hef-sponsor-speed) ease;
	will-change: transform;
}

.hef-sponsors--carousel .hef-sponsor-card {
	flex: 0 0 auto;
}

.hef-sponsors-carousel-arrow {
	position: absolute;
	top: 50%;
	z-index: 3;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #fda909;
	color: #111;
	font-size: 22px;
	line-height: 1;
	cursor: pointer;
	transform: translateY(-50%);
	transition: transform .18s ease, opacity .18s ease, background-color .18s ease;
}

.hef-sponsors-carousel-arrow:hover,
.hef-sponsors-carousel-arrow:focus-visible {
	transform: translateY(-50%) scale(1.06);
}

.hef-sponsors-carousel-arrow:disabled {
	opacity: .35;
	cursor: default;
}

.hef-sponsors-carousel-prev {
	left: 0;
}

.hef-sponsors-carousel-next {
	right: 0;
}

.hef-sponsors-carousel-dots {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	margin-top: 20px;
}

.hef-sponsors-carousel-dot {
	width: 9px;
	height: 9px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #d7cdbd;
	cursor: pointer;
	transition: transform .18s ease, background-color .18s ease;
}

.hef-sponsors-carousel-dot.is-active {
	background: #fda909;
	transform: scale(1.25);
}

.hef-sponsors--carousel.is-static {
	padding-left: 0;
	padding-right: 0;
}

.hef-sponsors--carousel.is-static .hef-sponsors-carousel-arrow,
.hef-sponsors--carousel.is-static .hef-sponsors-carousel-dots {
	display: none;
}

@media (max-width: 1024px) {
	.hef-sponsors-shortcode {
		--hef-sponsor-columns: 3 !important;
	}
}

@media (max-width: 767px) {
	.hef-sponsors-shortcode {
		--hef-sponsor-columns: 2 !important;
		--hef-sponsor-gap: 16px;
	}

	.hef-sponsors--carousel {
		padding-right: 38px;
		padding-left: 38px;
	}

	.hef-sponsors-carousel-arrow {
		width: 32px;
		height: 32px;
		font-size: 18px;
	}

	.hef-sponsor-card {
		padding: 16px;
	}

	.hef-sponsor-logo-wrap {
		height: 115px;
	}

	.hef-sponsor-name {
		font-size: 14px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.hef-sponsors-carousel-track,
	.hef-sponsor-card,
	.hef-sponsors-carousel-arrow,
	.hef-sponsors-carousel-dot {
		transition: none !important;
	}
}
