/* Standard expert card, shared by /doctors and the integrative service pages */

.ie-card {
	--ie-card-ink: #0e4d5c;
	--ie-card-btn: #16767d;
	--ie-card-btn-dark: #10636a;
	--ie-card-line: #e6edf0;
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 18px;
	min-width: 0;
	padding: 22px 22px 20px;
	border: 1px solid #e3eaee;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 4px 18px rgba(16, 36, 62, 0.05);
	font-family: Poppins, sans-serif;
	isolation: isolate;
	transition: transform 0.2s ease, border-color 0.2s ease;
}
.ie-card *,
.ie-card *::before,
.ie-card *::after {
	box-sizing: border-box;
}
/* Hover shadow is pre-painted and faded via opacity (compositor-only) instead of animating box-shadow */
.ie-card::before {
	content: "";
	position: absolute;
	inset: -1px;
	z-index: -1;
	border-radius: inherit;
	box-shadow: 0 12px 30px rgba(16, 36, 62, 0.09);
	opacity: 0;
	transition: opacity 0.2s ease;
	pointer-events: none;
}
.ie-card:hover {
	transform: translateY(-2px);
	border-color: #cfe3e2;
}
.ie-card:hover::before {
	opacity: 1;
}
@media (hover: none) {
	.ie-card:hover {
		transform: none;
	}
	.ie-card:hover::before {
		opacity: 0;
	}
}
.ie-card__hit {
	position: absolute;
	inset: 0;
	z-index: 1;
	border-radius: inherit;
}
.ie-card__hit:focus-visible {
	outline: 2px solid var(--ie-teal, #046461);
	outline-offset: 2px;
}

.ie-card__head {
	display: flex;
	gap: 22px;
	align-items: flex-start;
}
.ie-card__photo {
	flex: 0 0 116px;
	width: 116px;
	height: 118px;
	border-radius: 10px;
	overflow: hidden;
	background: var(--ie-teal-soft, #e8f3f2);
	display: flex;
	align-items: center;
	justify-content: center;
}
.ie-card__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	object-position: center top;
	display: block;
}
.ie-card__initial {
	color: var(--ie-teal, #046461);
	font-size: 40px;
	font-weight: 700;
}
.ie-card__intro {
	flex: 1 1 auto;
	min-width: 0;
}
.ie-card__name {
	margin: 2px 0 8px;
	color: var(--ie-card-ink);
	font-size: 23px;
	font-weight: 600;
	line-height: 1.25;
	letter-spacing: -0.01em;
}
.ie-card__role {
	display: inline-block;
	margin: 0 0 14px;
	padding: 5px 13px;
	border-radius: 999px;
	background: #e7f4f3;
	color: #13626a;
	font-size: 13px;
	font-weight: 500;
	line-height: 1.4;
	letter-spacing: 0.01em;
}
.ie-card__meta {
	display: flex;
	flex-direction: column;
	gap: 9px;
	margin: 0;
	padding: 0;
	list-style: none;
}
.ie-card__meta li {
	display: flex;
	align-items: flex-start;
	gap: 12px;
	min-width: 0;
	color: #56687a;
	font-size: 13.5px;
	line-height: 1.5;
}
.ie-card__meta svg {
	flex: 0 0 16px;
	width: 16px;
	height: 16px;
	margin-top: 2px;
	fill: none;
	stroke: var(--ie-card-btn);
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}
.ie-card__meta span {
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ie-card__desc {
	margin: 0;
	padding-top: 18px;
	border-top: 1px solid var(--ie-card-line);
	color: #5b6b79;
	font-size: 13.5px;
	line-height: 1.65;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}

.ie-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 14px;
	margin-top: auto;
	padding-top: 18px;
	border-top: 1px solid var(--ie-card-line);
}
.ie-card__fee {
	display: flex;
	flex-direction: column;
	gap: 2px;
}
.ie-card__fee-label {
	color: #4c5d6c;
	font-size: 12.5px;
	line-height: 1.4;
}
.ie-card__fee-amount {
	color: var(--ie-card-ink);
	font-size: 22px;
	font-weight: 700;
	line-height: 1.2;
}
.ie-card__actions {
	position: relative;
	z-index: 2;
	display: flex;
	gap: 10px;
	margin-left: auto;
}
.ie-btn.ie-card__book {
	gap: 10px;
	min-height: 44px;
	padding: 11px 22px;
	border-radius: 10px;
	border-color: var(--ie-card-btn);
	background: var(--ie-card-btn);
	font-size: 14px;
	font-weight: 500;
	box-shadow: 0 4px 12px rgba(22, 118, 125, 0.2);
}
.ie-btn.ie-card__book:hover {
	border-color: var(--ie-card-btn-dark);
	background: var(--ie-card-btn-dark);
}
.ie-card__book svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
	stroke-linejoin: round;
	transition: transform 0.2s ease;
}
.ie-card__book:hover svg {
	transform: translateX(3px);
}

/* Buttons */
.ie-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 10px 20px;
	border: 1.5px solid transparent;
	border-radius: 12px;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none !important;
	white-space: nowrap;
	cursor: pointer;
	transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}
.ie-btn--primary {
	background: var(--ie-teal, #046461);
	border-color: var(--ie-teal, #046461);
	color: #fff !important;
	box-shadow: 0 6px 16px rgba(4, 100, 97, 0.22);
}
.ie-btn--primary:hover {
	background: var(--ie-teal-dark, #035451);
	border-color: var(--ie-teal-dark, #035451);
}
.ie-btn--outline {
	background: #fff;
	border-color: var(--ie-teal, #046461);
	color: var(--ie-teal, #046461) !important;
}
.ie-btn--outline:hover {
	background: var(--ie-teal-soft, #e8f3f2);
}

@media (max-width: 767px) {
	.ie-card {
		gap: 14px;
		padding: 16px;
		border-radius: 14px;
	}
	.ie-card__head {
		gap: 14px;
	}
	.ie-card__photo {
		flex-basis: 88px;
		width: 88px;
		height: 90px;
		border-radius: 10px;
	}
	.ie-card__name {
		margin-bottom: 6px;
		font-size: 18px;
	}
	.ie-card__role {
		margin-bottom: 10px;
		padding: 4px 11px;
		font-size: 12px;
	}
	.ie-card__meta {
		gap: 7px;
	}
	.ie-card__meta li {
		gap: 9px;
		font-size: 12.5px;
	}
	.ie-card__desc {
		padding-top: 14px;
		font-size: 13px;
	}
	.ie-card__footer {
		padding-top: 14px;
	}
	.ie-card__fee-amount {
		font-size: 20px;
	}
	.ie-btn.ie-card__book {
		min-height: 42px;
		padding: 10px 18px;
	}
}
