/**
 * Homepage partners + sponsored listings.
 */

.myh-partners {
	background: #f3f4f6;
	font-family: var(--myh-font, "Gotham Book", sans-serif);
	padding: 3rem 0 3.5rem;
}

.myh-partners__inner {
	max-width: 1320px;
}

.myh-partners__block + .myh-partners__block {
	margin-top: 2.75rem;
}

.myh-partners__heading {
	position: relative;
	display: inline-block;
	margin: 0 0 1.5rem;
	padding-bottom: 0.55rem;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.25;
	color: var(--myh-text, #1a1a1a);
}

.myh-partners__heading::after {
	content: "";
	position: absolute;
	left: 0;
	bottom: 0;
	width: 2.75rem;
	height: 3px;
	background: var(--myh-primary, #0096e1);
	border-radius: 2px;
}

/* From our partners — 3 col × 2 rows */
.myh-partners__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.35rem 1.75rem;
}

.myh-partners__link {
	display: flex;
	align-items: flex-start;
	gap: 0.9rem;
	text-decoration: none !important;
	color: inherit;
	min-width: 0;
}

.myh-partners__thumb {
	flex: 0 0 118px;
	width: 118px;
	height: 78px;
	overflow: hidden;
	background: #dde1e6;
	border-radius: 2px;
}

.myh-partners__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.3s ease;
}

.myh-partners__link:hover .myh-partners__thumb img {
	transform: scale(1.05);
}

.myh-partners__title {
	flex: 1 1 auto;
	font-size: 0.95rem;
	font-weight: 700;
	line-height: 1.4;
	color: var(--myh-text, #1a1a1a);
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
	transition: color 0.2s ease;
}

.myh-partners__link:hover .myh-partners__title {
	color: var(--myh-primary, #0096e1);
}

/* Sponsored listings — 3 col cards */
.myh-sponsored__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 1.75rem 1.5rem;
}

.myh-sponsored__link {
	display: block;
	text-decoration: none !important;
	color: inherit;
}

.myh-sponsored__media {
	position: relative;
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #dde1e6;
	margin-bottom: 0.85rem;
}

.myh-sponsored__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease;
}

.myh-sponsored__link:hover .myh-sponsored__img {
	transform: scale(1.04);
}

.myh-sponsored__logo {
	position: absolute;
	left: 0;
	bottom: 0;
	z-index: 1;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 78px;
	height: 54px;
	padding: 0.35rem;
	background: #fff;
	box-shadow: 0 1px 4px rgba(0, 0, 0, 0.12);
}

.myh-sponsored__logo img {
	max-width: 100%;
	max-height: 100%;
	width: auto;
	height: auto;
	object-fit: contain;
	display: block;
}

.myh-sponsored__name {
	display: block;
	font-size: 1.05rem;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	line-height: 1.25;
	color: var(--myh-text, #1a1a1a);
	margin-bottom: 0.35rem;
	transition: color 0.2s ease;
}

.myh-sponsored__link:hover .myh-sponsored__name {
	color: var(--myh-primary, #0096e1);
}

.myh-sponsored__meta {
	display: block;
	font-size: 0.84rem;
	line-height: 1.45;
	color: var(--myh-muted, #666);
}

@media (max-width: 991.98px) {
	.myh-partners__grid,
	.myh-sponsored__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 575.98px) {
	.myh-partners {
		padding: 2.25rem 0 2.75rem;
	}

	.myh-partners__grid,
	.myh-sponsored__grid {
		grid-template-columns: 1fr;
		gap: 1.15rem;
	}

	.myh-partners__thumb {
		flex-basis: 100px;
		width: 100px;
		height: 68px;
	}
}
