.khb-brand-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	gap: 16px;
}

.khb-brand {
	position: relative;
	display: block;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	background: #ffffff;
	text-decoration: none;
	min-height: 140px;
	padding: 12px;
	transition: box-shadow 150ms ease, transform 150ms ease;
	background-color: #f5f5f5;
}

.khb-brand:focus,
.khb-brand:hover {
	box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
	transform: translateY(-1px);
}

.khb-brand:focus {
	outline: 2px solid #111827;
	outline-offset: 2px;
}

.khb-brand.has-image .khb-brand-name {
	position: absolute;
	left: 8px;
	right: 8px;
	bottom: 8px;
	background: rgb(135 200 116 / 30%);
	backdrop-filter: blur(2px);
	color: #004c60;
	padding: 6px 8px;
	border-radius: 6px;
	font-size: 14px;
	line-height: 1.2;
	opacity: 0;
	transition: opacity 150ms ease;
	text-align: center;
}

.khb-brand.has-image:hover .khb-brand-name,
.khb-brand.has-image:focus .khb-brand-name {
	opacity: 1;
}

.khb-brand.no-image .khb-brand-name {
	position: absolute;
	top: 50%;
	left: 50%;
	transform: translate(-50%, -50%);
	color: #111827;
	font-weight: 600;
	text-align: center;
}

.khb-brand-logo,
.khb-brand-logo img {
	display: block;
	width: 100%;
	height: 100%;
}

.khb-brand-logo {
	position: absolute;
	top: 0;
	left: 0;
	right: 0;
	bottom: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.khb-brand-logo img {
	object-fit: contain;
	max-width: 100%;
	max-height: 100%;
}

@media (max-width: 1024px) {
	.khb-brand-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.khb-brand-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}




/* MARQUEE SYSTEM */
.khb-brand-grid.khs-brand-marquee {
  overflow: hidden;
  position: relative;
}

.khb-brand-grid.khs-brand-marquee .marquee-wrapper .marquee-content .khb-brand {
	width: 320px !important;
}

.marquee-wrapper {
  display: flex;
  width: max-content;
  animation: marquee 300s linear infinite; /* Speed of the marquee */
}

.marquee-content {
	gap: 16px;
  display: flex;
}

@keyframes marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-50%);
  }
}