/**
 * Elementor Contact Person – איש קשר
 * תמונה מימין, פרטים משמאל | שתי כרטיסים בשורה
 */

.elementor-widget-city_office_contact_person .elementor-widget-container {
	overflow: visible;
}

/* Card: fits 2 per row (use Elementor 2-col section) */
.co-contact-person {
	width: 100%;
	height: 100%;
	display: flex;
}

.co-contact-person__inner {
	display: flex;
	flex-direction: row-reverse; /* RTL: image on right, details on left */
	align-items: stretch;
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 4px 14px rgba(17, 24, 39, 0.08);
	border: 1px solid #e8e8e8;
	transition: box-shadow 0.2s ease, border-color 0.2s ease;
	min-height: 200px;
}

.co-contact-person__inner:hover {
	box-shadow: 0 6px 20px rgba(17, 24, 39, 0.12);
	border-color: #d9e1ee;
}

/* Image – right side, matches site image styling */
.co-contact-person__image-wrap {
	flex-shrink: 0;
	width: 160px;
	min-width: 160px;
	/* aspect-ratio: 1; */
	overflow: hidden;
	background: #f0f2f5;
}

.co-contact-person__image {
	display: block;
	width: 100%;
	height: 100% !important;
	object-fit: cover;
	object-position: center center;
}

/* Details – left side */
.co-contact-person__details {
	flex: 1;
	min-width: 0;
	display: flex;
	flex-direction: column;
	justify-content: center;
	gap: 6px;
	padding: 20px 22px;
	text-align: right;
	direction: rtl;
}

.co-contact-person__name {
	margin: 0;
	font-size: 1.15rem;
	font-weight: 700;
	line-height: 1.3;
	color: #1a202c;
}

.co-contact-person__role {
	margin: 0;
	font-size: 0.9rem;
	font-weight: 600;
	color: var(--maincolor);
	line-height: 1.3;
}

.co-contact-person__desc {
	margin: 4px 0 0;
	font-size: 0.875rem;
	line-height: 1.5;
	color: #4a5568;
}

.co-contact-person__links {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	margin-top: 10px;
}

.co-contact-person__link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	font-size: 1rem;
	color: #374151;
	text-decoration: none;
	transition: color 0.2s ease;
}

.co-contact-person__link:hover {
	color: var(--maincolor);
}

.co-contact-person__link--whatsapp:hover {
	color: #25d366;
}

.co-contact-person__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 1.35em;
	height: 1.35em;
	flex-shrink: 0;
	color: var(--maincolor);
}

.co-contact-person__icon svg {
	width: 100%;
	height: 100%;
}

/* Two cards per row: use Elementor 2-column layout */
.elementor-column:nth-child(1) .co-contact-person,
.elementor-column:nth-child(2) .co-contact-person {
	max-width: 100%;
}

/* Responsive: stack on small screens */
@media screen and (max-width: 950px) {
	.co-contact-person__image-wrap {
		width: 120px;
		min-width: 120px;
	}

	.co-contact-person__details {
		padding: 16px 18px;
	}

	.co-contact-person__name {
		font-size: 1.05rem;
	}

	.co-contact-person__desc {
		font-size: 0.8rem;
	}

	.co-contact-person__links {
		gap: 8px 12px;
		margin-top: 8px;
	}

	.co-contact-person__link {
		font-size: 0.95rem;
	}
}

@media screen and (max-width: 600px) {
	.co-contact-person__inner {
		flex-direction: column;
		min-height: auto;
	}

	.co-contact-person__image-wrap {
		width: 100%;
		min-width: 100%;
		aspect-ratio: auto;
	}

	.co-contact-person__details {
		text-align: right;
	}
}
