/* LuxMed Solutions Widget v1.0 — white cards with icon, text and product image */

.lms-grid {
	--lms-primary: #1a3e8f;
	--lms-accent: #2eaa4a;
	--lms-text: #5a6a7e;
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 28px;
}

.lms-card {
	display: flex;
	align-items: stretch;
	gap: 14px;
	background: #fff;
	border-radius: 16px;
	padding: 26px 24px;
	overflow: hidden;
	transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.lms-has-shadow-yes .lms-card {
	box-shadow: 0 8px 28px rgba(26, 62, 143, 0.08);
}

.lms-has-shadow-yes .lms-card:hover {
	transform: translateY(-3px);
	box-shadow: 0 14px 36px rgba(26, 62, 143, 0.14);
}

/* ---------- Body (icon + text + link) ---------- */

.lms-card__body {
	display: flex;
	flex-direction: column;
	align-items: flex-start;
	flex: 1 1 55%;
	min-width: 0;
}

.lms-card__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	margin-bottom: 16px;
	color: var(--lms-accent);
	font-size: 42px;
	line-height: 1;
}

.lms-card__icon svg {
	width: 42px;
	height: 42px;
	fill: currentColor;
}

.lms-card__icon img {
	display: block;
	width: 42px;
	height: auto;
	object-fit: contain;
}

.lms-card__title {
	margin: 0 0 10px;
	color: var(--lms-primary);
	font-size: 1.05rem;
	font-weight: 700;
	line-height: 1.3;
}

.lms-card__desc {
	margin: 0 0 18px;
	color: var(--lms-text);
	font-size: 0.85rem;
	line-height: 1.6;
}

.lms-card__link {
	display: inline-flex;
	align-items: center;
	gap: 7px;
	margin-top: auto;
	color: var(--lms-primary);
	font-size: 0.85rem;
	font-weight: 700;
	text-decoration: none;
	transition: gap 0.15s ease, color 0.15s ease;
}

.lms-card__link:hover {
	color: var(--lms-accent);
	gap: 11px;
}

.lms-card__link:focus-visible {
	outline: 3px solid var(--lms-accent);
	outline-offset: 2px;
}

.lms-card__arrow { flex-shrink: 0; }

/* ---------- Product image ---------- */

.lms-card__media {
	flex: 1 1 45%;
	min-width: 0;
	display: flex;
	align-items: center;
	justify-content: center;
}

.lms-card__media img {
	display: block;
	max-width: 100%;
	max-height: 190px;
	height: auto;
	object-fit: contain;
}

/* Image below the text instead of beside it */
.lms-img-pos-bottom .lms-card {
	flex-direction: column;
}

.lms-img-pos-bottom .lms-card__media {
	width: 100%;
	margin-top: 18px;
}

/* ---------- Responsive ---------- */

@media (max-width: 1024px) {
	.lms-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 767px) {
	.lms-grid { grid-template-columns: 1fr; }
	.lms-card { padding: 22px 18px; }
}

@media (prefers-reduced-motion: reduce) {
	.lms-card,
	.lms-card__link { transition: none; }
	.lms-has-shadow-yes .lms-card:hover { transform: none; }
}
