/* ============================================================
   EMS University - Sponsor Logos Grid Module
   Add this to the site stylesheet or paste into CMS custom CSS.
   Uses native CSS nesting per CMS standards. No ID selectors.
   ============================================================ */

.emsu-sponsors-grid {
	margin: 2.5rem 0;
	padding: 2rem 1.5rem;
	background-color: #f5f7fa;
	border-top: 3px solid #2c998a;
	border-radius: 6px;
	text-align: center;

	h3 {
		margin-top: 0;
		margin-bottom: 1.5rem;
		font-size: 1.35rem;
		color: #1a1a2e;
		letter-spacing: 0.025em;
	}
}

.emsu-sponsors-grid__logos {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 1.5rem;
	align-items: center;
	justify-items: center;
	max-width: 920px;
	margin: 0 auto;
}

.emsu-sponsors-grid__item {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 130px;
	padding: 1rem;
	background-color: #ffffff;
	border: 1px solid #e2e6ea;
	border-radius: 6px;
	transition: box-shadow 0.2s ease, transform 0.2s ease;

	&:hover {
		box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
		transform: translateY(-2px);
	}

	img {
		display: block;
		max-width: 100%;
		max-height: 110px;
		width: auto;
		height: auto;
		object-fit: contain;
	}
}

/* ---- Responsive breakpoints ---- */

@media (max-width: 768px) {
	.emsu-sponsors-grid__logos {
		grid-template-columns: repeat(2, 1fr);
		gap: 1.25rem;
	}

	.emsu-sponsors-grid__item {
		min-height: 110px;
	}
}

@media (max-width: 480px) {
	.emsu-sponsors-grid {
		padding: 1.5rem 1rem;
	}

	.emsu-sponsors-grid__logos {
		grid-template-columns: 1fr;
		gap: 1rem;
	}

	.emsu-sponsors-grid__item {
		min-height: 100px;
		padding: 0.75rem;
	}
}