/* Scoped to .ezhs-scope so this never leaks into (or gets clobbered by) theme CSS */

.ezhs-scope { box-sizing: border-box; }
.ezhs-scope *, .ezhs-scope *::before, .ezhs-scope *::after { box-sizing: inherit; }

/* ---------- Highlights mosaic ---------- */
#ezhs-home-highlights {
	padding: 0;
	max-width: 100vw;
	margin: 0 auto;
}
#ezhs-home-categories  {
    max-width: 100vw !important;
    margin: 30px auto 0;
    padding: 0 20px;
}

.ezhs-highlights-mosaic {
	display: flex;
	gap: 10px;
}
.ezhs-highlights-col {
	display: flex;
	flex-direction: column;
	gap: 10px;  
}
.ezhs-highlights-col.ezhs-left { flex: 0 0 50%; }
.ezhs-highlights-col.ezhs-center { flex: 0 0 25%; justify-content: stretch; }
.ezhs-highlights-col.ezhs-right { flex: 1; }
.ezhs-highlights-col.ezhs-center .ezhs-highlight-card { flex: 1; }

.ezhs-highlight-card {
	border-radius: 8px;
	display: flex;
	justify-content: center;
	flex: 1;
	position: relative;
	overflow: hidden;
	box-shadow: 0 5px 10px rgba(0,0,0,.1), 0 3px 3px rgba(0,0,0,.1);
	transition: box-shadow .6s ease;
	background-color: #eee;
	min-height: 226px;
}
.ezhs-highlight-card:hover { box-shadow: none; }
.ezhs-highlight-card.ezhs-no-image { background: linear-gradient(135deg,#e2e2e2,#cfcfcf); }
.ezhs-highlight-card a { display: block; width: 100%; height: 100%; color: #fff; text-decoration: underline; font-weight: 600; }
.ezhs-highlight-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ezhs-highlight-card .ezhs-overlay {
	position: absolute; left: 0; right: 0; bottom: 0; height: 80%;
	background: linear-gradient(to bottom, rgba(0,0,0,0) 20%, rgba(0,0,0,.8) 100%);
	pointer-events: none;
}
.ezhs-content-text {
	position: absolute; left: 15px; bottom: 5px; z-index: 1; width: 90%; margin: 0;
}
.ezhs-content-text h3 {
	color: #fff; font-size: 20px; line-height: 24px; margin: 0; padding: 5px 0;
	font-family: "Poppins","OpenSans","Open Sans",arial,sans-serif; font-weight: 700;
}
.ezhs-content-text p {
	color: #fff; font-weight: 500; font-size: 14px; line-height: 18px;
	font-family: "Open Sans",Arial,sans-serif; margin: 0 0 5px;
}
.ezhs-content-text .ezhs-link { text-decoration: underline; }

@media (max-width: 768px) {
	.ezhs-highlights-mosaic { flex-direction: column; }
}

/* ---------- Categories slider ---------- */
#ezhs-home-categories {
	max-width: 1200px;
	margin: 30px auto 0;
	padding: 0 20px;
}
.ezhs-slider-wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}
.ezhs-slider-track {
	display: flex;
	gap: 15px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	scroll-behavior: smooth;
	padding: 10px 2px 15px;
	flex: 1;
	-webkit-overflow-scrolling: touch;
}
.ezhs-slider-track::-webkit-scrollbar { height: 6px; }
.ezhs-slider-track::-webkit-scrollbar-thumb { background: #ccc; border-radius: 3px; }

.ezhs-slide-card {
	flex: 0 0 auto;
	width: 220px;
	scroll-snap-align: start;
	text-decoration: none;
	color: inherit;
}
.ezhs-card-inner {
	border-radius: 10px;
	cursor: pointer;
	box-shadow: 0 5px 10px rgba(0,0,0,.1), 0 3px 3px rgba(0,0,0,.1);
	transition: box-shadow .6s ease;
	background-color: #eee;
	padding: 10px;
	height: 100%;
}
.ezhs-card-inner:hover { box-shadow: 0 10px 20px rgba(0,0,0,.05), 0 6px 6px rgba(0,0,0,.05); }
.ezhs-card-inner.ezhs-no-image { background: linear-gradient(135deg,#e2e2e2,#cfcfcf); }
.ezhs-card-inner.ezhs-no-image img { display: none; }
.ezhs-card-inner img {
	width: 100%; height: 165px; object-fit: contain; display: block;
}
.ezhs-card-inner h3 {
	text-align: center; text-transform: uppercase; text-decoration: none;
	font-size: 16px; line-height: 20px; padding-bottom: 5px; margin-top: 10px; color: #222;
}

.ezhs-arrow {
	flex: 0 0 auto;
	width: 40px; height: 40px;
	border-radius: 50%;
	border: 1px solid #ddd;
	background: #fff;
	cursor: pointer;
	font-size: 14px;
	display: flex; align-items: center; justify-content: center;
	box-shadow: 0 2px 6px rgba(0,0,0,.1);
}
.ezhs-arrow:hover { background: #f2f2f2; }

@media (max-width: 600px) {
	.ezhs-slide-card { width: 160px; }
	.ezhs-arrow { width: 32px; height: 32px; }
}
