/* MedLab CTA Cards Widget */

.medlab-cta-cards {
	display: grid;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 24px;
	width: 100%;
}

.medlab-cta-card {
	position: relative;
	display: flex;
	align-items: stretch;
	min-height: 200px;
	overflow: hidden;
	border-radius: 16px;
	--medlab-cta-accent: #f58220;
}

.medlab-cta-card__media {
	position: absolute;
	inset: 0;
	background-color: #e8eaed;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
}

.medlab-cta-card__media::after {
	content: "";
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.05);
}

.medlab-cta-card__panel {
	position: relative;
	z-index: 2;
	display: flex;
	align-items: center;
	width: 62%;
	margin: 18px;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 8px 28px rgba(0, 0, 0, 0.08);
	padding: 28px 28px 28px 36px;
}

.medlab-cta-card--image-left {
	justify-content: flex-end;
}

.medlab-cta-card--image-right {
	justify-content: flex-start;
}

.medlab-cta-card--image-left .medlab-cta-card__panel {
	margin-inline-start: auto;
	margin-inline-end: 18px;
}

.medlab-cta-card--image-right .medlab-cta-card__panel {
	margin-inline-start: 18px;
	margin-inline-end: auto;
}

.medlab-cta-card__tab {
	position: absolute;
	top: 50%;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	background: var(--medlab-cta-accent);
	color: #fff;
	border-radius: 10px;
	transform: translateY(-50%);
	box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
	font-size: 18px;
}

.medlab-cta-card__tab svg {
	width: 1em;
	height: 1em;
}

.medlab-cta-card--image-left .medlab-cta-card__tab {
	inset-inline-start: -26px;
}

.medlab-cta-card--image-right .medlab-cta-card__tab {
	inset-inline-end: -26px;
}

.medlab-cta-card__content {
	flex: 1;
	min-width: 0;
}

.medlab-cta-card__title {
	margin: 0 0 6px;
	font-size: 1.35rem;
	font-weight: 700;
	line-height: 1.4;
	color: #1a1a1a;
}

.medlab-cta-card__subtitle {
	margin: 0 0 18px;
	font-size: 0.9rem;
	color: #9aa0a6;
	line-height: 1.5;
}

.medlab-cta-card__actions {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.medlab-cta-card__btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 11px 18px;
	border: none;
	border-radius: 10px;
	font-size: 0.92rem;
	font-weight: 600;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.25s ease, color 0.25s ease, transform 0.15s ease, box-shadow 0.25s ease;
}

.medlab-cta-card__btn svg {
	width: 1em;
	height: 1em;
}

.medlab-cta-card__btn--primary {
	background: #f58220;
	color: #fff;
}

.medlab-cta-card__btn--primary.medlab-cta-card__btn--accent {
	background: var(--medlab-cta-accent);
}

.medlab-cta-card__btn--primary:hover {
	filter: brightness(0.92);
	transform: translateY(-1px);
}

.medlab-cta-card__btn--secondary {
	background: #f1f3f4;
	color: #3c4043;
}

.medlab-cta-card__btn--secondary:hover {
	background: #e8eaed;
}

@media (max-width: 1024px) {
	.medlab-cta-cards {
		grid-template-columns: 1fr;
	}
}

@media (max-width: 767px) {
	.medlab-cta-card {
		min-height: auto;
		flex-direction: column;
	}

	.medlab-cta-card__media {
		position: relative;
		height: 160px;
	}

	.medlab-cta-card__panel {
		width: auto;
		margin: -28px 16px 16px;
		padding: 24px 20px 20px 44px;
	}

	.medlab-cta-card--image-left .medlab-cta-card__tab,
	.medlab-cta-card--image-right .medlab-cta-card__tab {
		left: 16px;
		right: auto;
		top: -26px;
		transform: none;
	}

	.medlab-cta-card__actions {
		flex-direction: column;
	}

	.medlab-cta-card__btn {
		width: 100%;
	}
}
