/* Learnova Widget - Course Card base styles */

.lnv-card {
	position: relative;
	overflow: hidden;
	background: #fff;
	border-radius: 16px;
	font-family: inherit;
	width: 100%;
	box-sizing: border-box;
	box-shadow: 0 6px 24px rgba(0,0,0,0.09);
}

.lnv-card--empty {
	padding: 24px;
	text-align: center;
	color: #888;
	border: 1px dashed rgba(0,0,0,0.15);
}

.lnv-card__image-wrap {
	position: relative;
}

.lnv-card__image {
	width: 100%;
	height: 220px;
	background-size: cover;
	background-position: center center;
	background-color: #E8F8F7;
}

.lnv-card__status-badge {
	position: absolute;
	top: 14px;
	right: 14px;
	font-size: 11px;
	font-weight: 800;
	letter-spacing: 0.3px;
	padding: 5px 14px;
	border-radius: 50px;
}

.lnv-card__partner-badge {
	position: absolute;
	top: 14px;
	left: 14px;
	background: #fff;
	color: #006F6C;
	font-size: 12px;
	font-weight: 700;
	padding: 6px 12px;
	border-radius: 50px;
	white-space: nowrap;
}

.lnv-card__body {
	padding: 28px 20px;
	box-sizing: border-box;
}

.lnv-card__categories {
	display: flex;
	flex-wrap: wrap;
	gap: 6px;
	margin-bottom: 8px;
}

.lnv-card__category {
	font-size: 11px;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 0.4px;
	color: #006F6C;
	background: #E8F8F7;
	padding: 3px 9px;
	border-radius: 50px;
	text-decoration: none;
}

.lnv-card__title {
	font-size: 18px;
	font-weight: 800;
	line-height: 1.3;
	margin: 0 0 10px;
	color: #2D2D2D;
}

.lnv-card__instructor {
	margin-bottom: 12px;
}

.lnv-card__instructor-link {
	display: inline-flex;
	align-items: center;
	gap: 8px;
	text-decoration: none;
}

.lnv-card__instructor-avatar {
	width: 28px;
	height: 28px;
	border-radius: 50% !important;
	object-fit: cover !important;
	flex-shrink: 0;
	display: block;
	max-width: 28px;
	max-height: 28px;
}

.lnv-card__instructor-name {
	font-size: 13px;
	font-weight: 600;
	color: #4A4A4A;
	transition: color .15s ease;
}

.lnv-card__instructor-link:hover .lnv-card__instructor-name {
	color: #006F6C;
	text-decoration: underline;
}

.lnv-card__meta {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 16px;
	padding-bottom: 16px;
	border-bottom: 1px solid rgba(0,0,0,0.07);
}

.lnv-card__meta-item {
	font-size: 12px;
	font-weight: 500;
	color: #888;
	display: inline-flex;
	align-items: center;
	gap: 5px;
}

.lnv-card__footer {
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
}

.lnv-card--vertical .lnv-card__footer {
	align-items: flex-start;
}

.lnv-card__rating {
	display: inline-flex;
	align-items: center;
	gap: 3px;
	color: #FFA800;
	font-size: 12px;
}

.lnv-card__rating-value {
	margin-left: 4px;
	color: #4A4A4A;
	font-weight: 600;
}

.lnv-card__cta-primary,
.lnv-card__cta-secondary {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	font-size: 13px;
	font-weight: 700;
	padding: 10px 22px;
	border-radius: 50px;
	text-decoration: none;
	white-space: nowrap;
	border: 1.5px solid transparent;
	transition: background-color .15s ease, color .15s ease, border-color .15s ease;
	box-sizing: border-box;
}

.lnv-cta--outline-teal {
	background: transparent;
	border-color: #006F6C;
	color: #006F6C;
}

.lnv-cta--outline-teal:hover {
	background: #006F6C;
	color: #fff;
}

.lnv-cta--solid-amber {
	background: #FFA800;
	border-color: #FFA800;
	color: #2D2D2D;
}

.lnv-cta--solid-amber:hover {
	opacity: 0.9;
	color: #2D2D2D;
}

.lnv-card__cta-secondary {
	background: transparent;
	color: #006F6C;
	border-color: #006F6C;
}

.lnv-card__cta-secondary:hover {
	opacity: 0.75;
}

.lnv-card--vertical {
	max-width: 100%;
}

.lnv-card--horizontal {
	display: flex;
	align-items: stretch;
	width: 100%;
}

.lnv-card--horizontal .lnv-card__image-wrap {
	flex: 0 0 40%;
	max-width: 40%;
	position: relative;
}

.lnv-card--horizontal .lnv-card__image {
	position: absolute;
	top: 0; left: 0; right: 0; bottom: 0;
	height: 100%;
}

.lnv-card--horizontal .lnv-card__body {
	flex: 1;
	display: flex;
	flex-direction: column;
	min-width: 0;
}

.lnv-card__recommendation {
	display: inline-flex;
	align-items: center;
	gap: 6px;
	font-size: 12px;
	font-weight: 700;
	background: #FFF8EC;
	padding: 5px 12px;
	border-radius: 50px;
	margin-bottom: 12px;
	width: fit-content;
	max-width: 100%;
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
	color: #E89400;
}

.lnv-card__recommendation span {
	white-space: nowrap;
	overflow: hidden;
	text-overflow: ellipsis;
}

.lnv-card__recommendation svg,
.lnv-card__recommendation i {
	flex-shrink: 0;
	width: 14px;
	height: 14px;
	font-size: 14px;
	display: inline-block;
}

.lnv-card__recommendation svg,
.lnv-card__recommendation svg path {
	fill: currentColor;
}

.lnv-card__excerpt {
	font-size: 13px;
	line-height: 1.6;
	color: #4A4A4A;
	margin: 0 0 14px;
}

.lnv-card__points {
	list-style: none;
	margin: 0 0 16px;
	padding: 0;
	display: flex;
	flex-direction: column;
	gap: 8px;
}

.lnv-card__points li {
	font-size: 13px;
	color: #4A4A4A;
	display: flex;
	align-items: flex-start;
	gap: 8px;
}

.lnv-card__points li i {
	color: #22C55E;
	margin-top: 3px;
	font-size: 11px;
}

.lnv-card__footer--horizontal {
	justify-content: flex-start;
	margin-top: auto;
	flex-wrap: wrap;
}

@media (max-width: 1024px) {
	.lnv-card--horizontal {
		flex-direction: column;
	}
	/* !important needed here: at this breakpoint flex-direction flips to
	   column, which makes flex-basis control HEIGHT instead of width.
	   The widget's own "Image Width" responsive control still outputs a
	   flex-basis rule at this breakpoint (meant for width), which would
	   otherwise collapse the image to 0 height. Force correct stacked
	   sizing regardless of that control's value. The actual displayed
	   height is then set by the "Image Height (Tablet & Mobile)" control
	   with its own !important, which safely wins the cascade. */
	.lnv-card--horizontal .lnv-card__image-wrap {
		flex: none !important;
		flex-basis: auto !important;
		width: 100% !important;
		max-width: 100% !important;
		height: 260px; /* fallback only */
	}
}

@media (max-width: 767px) {
	.lnv-card__body {
		padding: 20px 16px;
	}
	.lnv-card__title {
		font-size: 16px;
	}
	.lnv-card__footer {
		flex-wrap: wrap;
	}
	.lnv-card__cta-primary,
	.lnv-card__cta-secondary {
		width: 100%;
	}
}
