/* מטפלת מצטיינת — כרטיסי מצטיינות
   Note: image widget has class mt-exc-photo; cards targeted via :has() */

/* Card row = container that has photo widget + heading */
.e-con.e-child:has(> .elementor-element.mt-exc-photo):has(.elementor-widget-heading),
.mt-exc-card {
	overflow: hidden !important;
	padding: 0 !important;
	--padding-top: 0px !important;
	--padding-right: 0px !important;
	--padding-bottom: 0px !important;
	--padding-left: 0px !important;
	border-style: solid !important;
	border-width: 2px !important;
	border-color: #537D33 !important; /* site green */
}

/* Photo column = direct parent container of the photo widget */
.e-con.e-child:has(> .elementor-element.mt-exc-photo),
.mt-exc-photo-col {
	padding: 0 !important;
	margin: 0 !important;
	align-self: stretch !important;
	--padding-top: 0px !important;
	--padding-right: 0px !important;
	--padding-bottom: 0px !important;
	--padding-left: 0px !important;
}

.elementor-element.mt-exc-photo,
.elementor-element.mt-exc-photo > .elementor-widget-container,
.e-con.e-child:has(> .elementor-element.mt-exc-photo) .elementor-widget-image,
.e-con.e-child:has(> .elementor-element.mt-exc-photo) .elementor-widget-container,
.e-con.e-child:has(> .elementor-element.mt-exc-photo) .elementor-image,
.e-con.e-child:has(> .elementor-element.mt-exc-photo) a {
	margin: 0 !important;
	padding: 0 !important;
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	line-height: 0 !important;
	box-shadow: none !important;
	height: 100%;
}

.elementor-element.mt-exc-photo img,
.e-con.e-child:has(> .elementor-element.mt-exc-photo) img {
	display: block !important;
	width: 100% !important;
	max-width: none !important;
	height: 100% !important;
	min-height: 180px;
	object-fit: cover !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	box-shadow: none !important;
}

@media (max-width: 767px) {
	.e-con.e-child:has(> .elementor-element.mt-exc-photo) {
		width: 100% !important;
	}
	.elementor-element.mt-exc-photo img {
		height: auto !important;
		min-height: 200px;
	}
}
