/**
 * Pulse horizontal “member” cards: Elementor physician widgets, physician
 * shortcodes, and dietitian/psychologist listing shortcodes (same markup
 * patterns under `.pulse-members-wrap` / `.member-wrap`).
 *
 * Elementor widget root: `.pulsetcm-elementor-physician-card.pulse-members-wrap`
 * Shortcode / allied health: `.pulse-members-wrap` without that class (Style 1
 * physician grid) or with `.pulsetcm-elementor-physician-card--style2` when used.
 */

.pulsetcm-elementor-physician-card.pulse-members-wrap .member-box {
	max-width: 100%;
	box-sizing: border-box;
	padding: 0 !important;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap .pulsetcm-physician-card__outer-link {
	display: block;
	height: 100%;
	text-decoration: none;
	color: inherit;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-photo {
	border-radius: 18px;
	overflow: hidden;
	margin: 0;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-photo.card {
	display: flex;
	flex-direction: row;
	align-items: stretch;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-photo > .pulsetcm-physician-card__media {
	display: block;
	flex-shrink: 0;
	/* Match the wide portrait column from your reference. */
	flex: 0 0 38%;
	max-width: 38%;
	width: auto;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-photo > .pulsetcm-physician-card__media > picture,
.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-photo > .pulsetcm-physician-card__media > img,
.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-photo > .pulsetcm-physician-card__media > video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-photo > .pulsetcm-physician-card__media > picture > img {
	border-radius: 0;
}

/* Extra shell polish similar to the original physician cards. */
.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-photo.card {
	min-height: 220px;
	box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-description {
	flex: 1;
	min-width: 0;
	padding: 1.5rem 1.75rem !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

/* Remove accent border quirks for the widget. */
.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-description .eael-entry-meta {
	border-left: 0 !important;
	padding-left: 0 !important;
	margin-bottom: 0.25rem;
}

/* Style 1: block meta + heading reset (avoids EAEL flex + theme h2 margins / odd wrapped line spacing). */
.pulsetcm-elementor-physician-card.pulse-members-wrap:not(.pulsetcm-elementor-physician-card--style2) .pulse-member-description .eael-entry-meta {
	display: block;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap:not(.pulsetcm-elementor-physician-card--style2) .pulse-member-description .member-name {
	display: block;
	margin: 0;
	margin-block-start: 0;
	margin-block-end: 0;
	line-height: 1.25;
	font-size: 1.15rem;
	font-weight: 700;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap:not(.pulsetcm-elementor-physician-card--style2) .pulse-member-description .member-name .pulsetcm-physician-card__name-text {
	line-height: inherit;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-description .eael-entry-meta a {
	color: #121212;
	font-weight: 700;
	font-style: normal;
	font-size: 1.15rem;
	text-decoration: none;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-description .eael-entry-meta .pulsetcm-physician-card__name-text {
	color: #121212;
	font-weight: 700;
	font-style: normal;
	font-size: 1.15rem;
	text-decoration: none;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-description .member-role {
	font-size: 0.8rem;
	color: #555;
	font-weight: 500;
	line-height: 1.3;
	margin-bottom: 0.4rem;
	font-style: italic;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-description .member-regno {
	font-size: 0.8em;
	font-style: italic;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-description .pulse-physician-card__role-regno {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0;
	width: 100%;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-description .pulse-physician-card__role-regno .member-role {
	margin-bottom: 0;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-description .member-expertise {
	border-top: 1px solid #eaeaea;
	padding-top: 0.8rem;
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: #444;
	line-height: 1.5;
	font-style: italic;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-details {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-end;
	width: 30px;
	height: 30px;
	margin-top: auto;
	background-color: #f3f4f6;
	border-radius: 50%;
	color: #d97f3a;
	transition: background-color 0.2s ease, color 0.2s ease;
	text-decoration: none;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-details:hover {
	background-color: #e5e7eb;
	color: #121212;
}

.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-details i {
	font-size: 1.1rem;
	margin: 0;
	color: #d97f3a;
}

@media only screen and (max-width: 575px) {
	.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-photo.card {
		/* Keep the horizontal look on mobile (photo-left, text-right). */
		flex-direction: row;
	}

	.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-photo > .pulsetcm-physician-card__media {
		/* Use the same portrait column width as desktop. */
		flex: 0 0 38%;
		max-width: 38%;
		width: auto;
		min-height: 0;
	}

	/* Slightly tighten padding on small screens while keeping layout identical. */
	.pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-description {
		padding: 1.1rem 1.25rem !important;
	}
}

/*
 * Equal width/height when multiple widget instances are placed inside a
 * "wrapping container" that uses `display:flex` (Elementor Container).
 *
 * Elementor wraps each widget with `.elementor-widget-<name>`. We target that
 * wrapper so the flex item itself stretches evenly, then force internal blocks
 * to fill the stretched height.
 */
.elementor-widget-pulsetcm-physician-card {
	flex: 1 1 0;
	min-width: 0;
	align-self: stretch;
}

.elementor-widget-pulsetcm-physician-card .elementor-widget-container {
	height: 100%;
}

/* Same full-height behavior as the single-card widget, but for the
 * physician posts (shortcode wrapper) widget. */
/*
 * IMPORTANT:
 * The "stretch to equal height" rules below are ONLY correct for the
 * single-card widget (`pulsetcm-physician-card`) when placed inside an
 * Elementor flex container.
 *
 * Do NOT apply these rules to the listing widget (`pulsetcm-physician-posts`)
 * because multiple cards + wrapping rows would cause each card to stretch to
 * the full grid height (oversized images).
 */
.elementor-widget-pulsetcm-physician-card .pulsetcm-elementor-physician-card.pulse-members-wrap.member-wrap {
	height: 100%;
}

.elementor-widget-pulsetcm-physician-card .pulsetcm-elementor-physician-card.pulse-members-wrap .member-box {
	height: 100%;
}

.elementor-widget-pulsetcm-physician-card .pulsetcm-elementor-physician-card.pulse-members-wrap .mp-holder.d-flex {
	height: 100%;
}

.elementor-widget-pulsetcm-physician-card .pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-photo.card {
	height: 100%;
}

.elementor-widget-pulsetcm-physician-card .pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-photo > .pulsetcm-physician-card__media {
	height: 100%;
}

.elementor-widget-pulsetcm-physician-card .pulsetcm-elementor-physician-card.pulse-members-wrap figure.member-photo.pulse-member-photo.shadow-sm.card {
	height: 100%;
}

.elementor-widget-pulsetcm-physician-card .pulsetcm-elementor-physician-card.pulse-members-wrap .pulse-member-description {
	height: 100%;
}

/* Cancel full-bleed `.member-wrap` margins when the card is inside Elementor. */
@media only screen and (max-width: 767px) {
	.pulsetcm-elementor-physician-card.member-wrap {
		margin-left: 0;
		margin-right: 0;
	}
}

/* Style 2: chip expertise + stacked role/regno + rotated arrow */
.pulsetcm-elementor-physician-card--style2.pulse-members-wrap .pulse-member-photo {
	border-radius: 9px;
}

/*
 * Listing widget parity (Style 2): match Style 1 shortcode paddings
 * (.member-box / .pulse-member-description) defined in the listing section below.
 */
.elementor-widget-pulsetcm-physician-posts .pulsetcm-elementor-physician-card--style2.pulse-members-wrap .member-box {
	padding: 0.5rem 1rem !important;
}

.elementor-widget-pulsetcm-physician-posts .pulsetcm-elementor-physician-card--style2.pulse-members-wrap .pulse-member-description {
	padding: 1rem !important;
}

.pulsetcm-elementor-physician-card--style2.pulse-members-wrap .pulse-member-photo.card {
	/* Keep the same horizontal layout, but allow the narrower card rounding. */
	overflow: hidden;
}

.pulsetcm-elementor-physician-card--style2.pulse-members-wrap .pulse-member-photo > .pulsetcm-physician-card__media {
	/* Remove Style 2 extra inset padding for listing consistency. */
	padding: 0;
	box-sizing: border-box;
}

.pulsetcm-elementor-physician-card--style2.pulse-members-wrap .pulse-member-photo > .pulsetcm-physician-card__media > picture > img,
.pulsetcm-elementor-physician-card--style2.pulse-members-wrap .pulse-member-photo > .pulsetcm-physician-card__media > img {
	border-radius: 0.0.4em 0 0 0.4em;
}

.pulsetcm-elementor-physician-card--style2.pulse-members-wrap .pulse-member-description {
	justify-content: flex-start;
	font-style: normal;
}

.pulsetcm-elementor-physician-card--style2.pulse-members-wrap .pulse-member-description .eael-entry-meta {
	display: flex;
	flex-direction: column;
	align-items: stretch;
	margin-bottom: 0;
	gap: 0;
}

.pulsetcm-elementor-physician-card--style2.pulse-members-wrap .pulse-member-description .pulsetcm-physician-card__style2-actions {
	flex: 0 0 auto;
	width: 100%;
}

.pulsetcm-elementor-physician-card--style2.pulse-members-wrap .pulse-member-description .member-name {
	margin: 0;
	margin-block-start: 0;
	margin-block-end: 0;
	display: block;
	width: 100%;
	line-height: 1.25;
	font-size: 1.15rem;
	font-weight: 700;
}

.pulsetcm-elementor-physician-card--style2.pulse-members-wrap .pulse-member-description .member-name .pulsetcm-physician-card__name-text {
	line-height: inherit;
}

.pulsetcm-elementor-physician-card--style2.pulse-members-wrap .pulse-member-description .member-role {
	display: block;
	margin: 0;
	font-style: normal;
}

.pulsetcm-elementor-physician-card--style2.pulse-members-wrap .pulse-member-description .member-regno {
	display: block;
	margin: 0.4em 0;
	font-style: normal;
}

.pulsetcm-elementor-physician-card--style2.pulse-members-wrap .pulse-member-description .pulse-physician-card__role-regno {
	margin-top: 0.1rem;
}

.pulsetcm-elementor-physician-card--style2.pulse-members-wrap .pulse-member-description .member-expertise {
	border: none;
	padding-top: 0;
	margin-top: auto;
	font-style: normal;
	display: flex;
	flex-direction: row;
	flex-wrap: wrap;
	align-items: flex-start;
	gap: 0.3em;
	line-height: 1.2;
    padding-top: 1.5em;
}

.pulsetcm-elementor-physician-card--style2.pulse-members-wrap .pulse-member-details {
	/* Reference shows a plain rotated arrow “badge” */
	background: none !important;
	transform: rotate(-45deg);
	border-radius: 0;
	width: auto;
	height: auto;
	margin-top: 0;
}

.pulsetcm-elementor-physician-card--style2.pulse-members-wrap .pulse-physician-card__expertise-chip {
	border: 1px solid #c1c1c1;
	padding: 0.2em 0.8em;
	border-radius: 0.4em;
	font-style: normal;
	color: inherit;
}

/* -------------------------------------------------------------------------
 * Shortcodes + allied health: grids under `.pulse-members-wrap` without the
 * Elementor root class (and shared `.member-wrap` / photo / meta patterns).
 * ------------------------------------------------------------------------- */

.member-wrap .mp-holder.d-flex,
.member-wrap .mp-holder.d-flex > figure,
.member-wrap .mp-holder.d-flex > figure > a > picture > source,
.member-wrap .mp-holder.d-flex > figure > a > picture > img,
.member-wrap .mp-holder.d-flex > figure > .pulsetcm-physician-card__media > picture > source,
.member-wrap .mp-holder.d-flex > figure > .pulsetcm-physician-card__media > picture > img {
	width: 100%;
	object-fit: cover;
}

a.pulsetcm-physician-card__outer-link {
	width: 100%;
}

figure.member-photo.pulse-member-photo.shadow-sm.card {
	height: 100%;
}

.pulse-members-wrap .member-description .eael-entry-meta .eael-posted-by a {
	color: #121212;
	font-weight: 600;
}

.pulse-members-wrap .member-description .eael-entry-meta {
	border-left: 3px solid #ffdd00;
	padding-left: 1em;
	margin-bottom: 0.5em;
}

.pulse-members-wrap .member-role {
	word-break: break-word;
}

/* Pulse: member cards — full-width horizontal rows (non-Elementor listings) */
.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .member-box {
	max-width: 100%;
	box-sizing: border-box;
	padding: 0.5rem 1rem !important;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-photo {
	border-radius: 14px;
	overflow: hidden;
	margin: 0;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-photo.card {
	display: flex;
	flex-direction: row;
	align-items: stretch;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-photo > a,
.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-photo > .pulsetcm-physician-card__media {
	display: block;
	width: 130px;
	flex-shrink: 0;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-photo > a > picture,
.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-photo > a > img,
.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-photo > a > video,
.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-photo > .pulsetcm-physician-card__media > picture,
.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-photo > .pulsetcm-physician-card__media > img,
.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-photo > .pulsetcm-physician-card__media > video {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-photo > a > picture > img,
.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-photo > .pulsetcm-physician-card__media > picture > img {
	border-radius: 0;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-description {
	flex: 1;
	min-width: 0;
	padding: 1rem !important;
	display: flex;
	flex-direction: column;
	justify-content: center;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-description .eael-entry-meta {
	border-left: 0 !important;
	padding-left: 0 !important;
	margin-bottom: 0.25rem;
	display: block;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-description .member-name {
	display: block;
	margin: 0;
	margin-block-start: 0;
	margin-block-end: 0;
	line-height: 1.25;
	font-size: 1.15rem;
	font-weight: 700;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-description .member-name .pulsetcm-physician-card__name-text {
	line-height: inherit;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-description .eael-entry-meta a {
	color: #121212;
	font-weight: 700;
	font-style: normal;
	font-size: 1.15rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	text-decoration: none;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-description .eael-entry-meta .pulsetcm-physician-card__name-text {
	color: #121212;
	font-weight: 700;
	font-style: normal;
	font-size: 1.15rem;
	font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	text-decoration: none;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-description .member-role {
	font-size: 0.8rem;
	color: #555;
	font-weight: 500;
	line-height: 1.3;
	margin-bottom: 0.4rem;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-description .member-regno {
	font-size: 0.8em;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-description .pulse-physician-card__role-regno {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	gap: 0.25rem;
	width: 100%;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-description .pulse-physician-card__role-regno .member-role {
	margin-bottom: 0;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-description .member-expertise {
	border-top: 1px solid #eaeaea;
	padding-top: 0.8rem;
	margin-top: 0.5rem;
	font-size: 0.85rem;
	color: #444;
	line-height: 1.5;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-details {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	align-self: flex-end;
	width: 30px;
	height: 30px;
	margin-top: auto;
	background-color: #f3f4f6;
	border-radius: 50%;
	color: #d97f3a;
	transition: background-color 0.2s ease, color 0.2s ease;
	text-decoration: none;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-details:hover {
	background-color: #e5e7eb;
	color: #121212;
}

.pulse-members-wrap:not(.pulsetcm-elementor-physician-card) .pulse-member-details i {
	font-size: 1.1rem;
	margin: 0;
	color: #d97f3a;
}

@media only screen and (min-width: 768px) and (max-width: 1190px) {
	.member-wrap .tablet-grid-50 {
		width: 50%;
	}
}

@media only screen and (max-width: 767px) {
	.member-wrap {
		margin-left: -20px;
		margin-right: -20px;
	}

	.member-box.p1 {
		padding: 0.6em !important;
	}
}
