/* Shop-style course cards in the student dashboard (matches KN Moodle Courses widget). */

.kn-student-dashboard .knshop-cards {
	display: flex;
	justify-content: flex-start;
	align-items: stretch;
	gap: 50px;
	flex-wrap: wrap;
	margin: 0;
}

.kn-student-dashboard .knshop-card {
	width: 306px;
	background: #fff;
	border-radius: 6px 6px 0 0;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
	overflow: hidden;
	display: flex;
	flex-direction: column;
	align-items: stretch;
	position: relative;
	font-family: 'Lato', 'Lato-local', Arial, sans-serif;
	border: none;
	padding: 0;
	box-sizing: border-box;
	max-width: 100%;
}

.kn-student-dashboard .knshop-card.knshop-card-clickable {
	cursor: pointer;
}

.kn-student-dashboard .knshop-card-image-link.kn-cta-image {
	flex-shrink: 0;
	position: relative;
	width: 100%;
	overflow: visible;
	display: block;
	text-decoration: none;
}

.kn-student-dashboard .knshop-card-image {
	width: 100%;
	aspect-ratio: 4 / 3;
	height: auto;
	background: #b3c7d1;
	position: relative;
	display: block;
	overflow: hidden;
}

.kn-student-dashboard .kn-cta-image .kn-cta-ribbon {
	width: 200px;
	background-color: #db584a;
	color: #fff;
	position: absolute;
	text-align: center;
	top: 20px;
	line-height: 20px;
	font-size: 12px;
	z-index: 10;
}

.kn-student-dashboard .kn-cta-image .kn-cta-ribbon__text {
	display: block;
}

.kn-student-dashboard .kn-cta-image .kn-cta-ribbon--top-left {
	left: -70px;
	transform: rotate(-45deg);
}

.kn-student-dashboard .kn-cta-image .kn-cta-ribbon--top-right {
	right: -70px;
	left: auto;
	transform: rotate(45deg);
}

.kn-student-dashboard .knshop-card-image img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.kn-student-dashboard .knshop-card.knshop-deal-expired {
	opacity: 0.82;
	filter: saturate(0.6) brightness(0.92);
}

.kn-student-dashboard .knshop-label.knshop-label--deal-expired {
	position: absolute;
	left: 0;
	bottom: 0;
	background: rgba(28, 28, 28, 0.85) !important;
	font-size: 12px;
	color: #fff;
	width: 100%;
	height: 35px;
	display: flex;
	align-items: center;
	justify-content: flex-end;
	padding-right: 18px;
	font-weight: 900;
}

.kn-student-dashboard .kn-price-table-ribbon {
	width: 200px;
	height: 35px;
	line-height: 35px;
	background-color: rgba(28, 28, 28, 0.85);
	color: #fff;
	position: absolute;
	text-align: center;
	top: 38px;
	font-size: 20px;
	z-index: 10;
}

.kn-student-dashboard .kn-price-table-ribbon__text {
	display: block;
}

.kn-student-dashboard .kn-price-table-ribbon--top-left {
	left: -42px;
	transform: rotate(-45deg);
}

.kn-student-dashboard .knshop-deal-expired-cover {
	position: absolute;
	inset: 0;
	background: rgba(0, 0, 0, 0.35);
	pointer-events: none;
	z-index: 2;
}

.kn-student-dashboard .knshop-card-content {
	padding: 28px 22px 22px;
	display: flex;
	flex-direction: column;
	gap: 0;
	min-height: 160px;
	flex: 1;
}

.kn-student-dashboard .knshop-title,
.kn-student-dashboard h2.knshop-title {
	margin: 0;
}

.kn-student-dashboard .knshop-title-link,
.kn-student-dashboard span.knshop-title-link {
	display: -webkit-box;
	font-family: 'Lato', 'Lato-local', Arial, sans-serif;
	font-size: 18px;
	font-weight: 700;
	color: #1f2043;
	letter-spacing: normal;
	line-height: 1.35;
	min-height: 4.8em;
	overflow: hidden;
	text-overflow: ellipsis;
	-webkit-box-orient: vertical;
	-webkit-line-clamp: 4;
	line-clamp: 4;
	hyphens: manual;
	word-break: normal;
	overflow-wrap: normal;
	text-transform: none;
	color: inherit;
	text-decoration: none;
}

.kn-student-dashboard .knshop-card-meta {
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 10px;
	margin-top: 10px;
	margin-bottom: 18px;
	min-height: 1.35em;
	flex-shrink: 0;
	font-family: 'Lato', 'Lato-local', Arial, sans-serif;
	font-size: 12px;
	font-weight: 500;
	color: #636366;
	line-height: 1.35;
}

.kn-student-dashboard .knshop-card-available {
	flex: 1;
	min-width: 0;
}

.kn-student-dashboard .knshop-card-price-inline {
	display: none;
}

.kn-student-dashboard .knshop-card-button-row {
	display: flex;
	justify-content: flex-start;
	margin-top: auto;
	width: 100%;
	flex-shrink: 0;
}

.kn-student-dashboard .knshop-btn {
	margin: 0;
	background: #27ad7a !important;
	color: #fff !important;
	border: none !important;
	border-radius: 6px !important;
	padding: 12px 28px 13px 28px !important;
	font-family: 'Lato', 'Lato-local', Arial, sans-serif !important;
	font-size: 19px !important;
	font-weight: 700 !important;
	cursor: pointer !important;
	transition: background 0.2s !important;
	width: auto !important;
	min-width: auto !important;
	height: auto !important;
	display: inline-flex !important;
	align-items: center !important;
	justify-content: center !important;
	letter-spacing: 0.5px !important;
	text-decoration: none !important;
	line-height: 11px !important;
	white-space: nowrap !important;
	overflow: hidden !important;
	text-overflow: ellipsis !important;
	max-width: 100% !important;
	text-transform: uppercase !important;
	box-shadow: none !important;
	box-sizing: border-box !important;
}

.kn-student-dashboard .knshop-btn:hover,
.kn-student-dashboard .knshop-btn:focus {
	background: #1e8e63 !important;
	color: #fff !important;
	text-decoration: none !important;
}

.kn-student-dashboard .knshop-btn.knshop-btn-disabled {
	background: #9e9e9e !important;
	color: #fff !important;
	cursor: not-allowed;
	pointer-events: none;
}

@media (max-width: 768px) {
	.kn-student-dashboard .knshop-cards {
		gap: 20px;
		padding: 0 10px;
	}

	.kn-student-dashboard .knshop-card {
		width: 250px;
	}
}

@media (max-width: 480px) {
	.kn-student-dashboard .knshop-cards {
		gap: 15px;
		padding: 0 16px;
		justify-content: flex-start;
	}

	.kn-student-dashboard .knshop-card {
		width: 100%;
		max-width: 306px;
	}
}
