.crru-cc-grid {
	display: grid;
	grid-template-columns: repeat(var(--crru-cc-cols, 4), 1fr);
	gap: 20px;
	max-width: 1400px;
	margin: 0 auto;
	padding: 16px;
	box-sizing: border-box;
}
.crru-cc-grid * { box-sizing: border-box; }

@media (max-width: 1100px) { .crru-cc-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 640px)  { .crru-cc-grid { grid-template-columns: 1fr; } }

.crru-cc-card {
	display: flex;
	flex-direction: column;
	background: #ffffff;
	border: 1px solid #e3e6ec;
	border-radius: 10px;
	overflow: hidden;
	text-decoration: none;
	color: inherit;
	box-shadow: 0 2px 10px rgba(20, 30, 60, 0.06);
	transition: box-shadow 0.2s ease, transform 0.2s ease;
	font-family: -apple-system, "Segoe UI", "Sarabun", Tahoma, sans-serif;
}
.crru-cc-card.crru-cc-course:hover {
	box-shadow: 0 10px 24px rgba(20, 30, 60, 0.14);
	transform: translateY(-2px);
}

/* --- image + hover zoom effect --- */
.crru-cc-img-wrap {
	display: block;
	overflow: hidden;
	aspect-ratio: 16 / 9;
	background: #eef1f6;
	cursor: pointer;
}
.crru-cc-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform 0.35s ease, filter 0.35s ease;
}
.crru-cc-card.crru-cc-course:hover .crru-cc-img {
	transform: scale(1.08);
	filter: brightness(0.94);
}
.crru-cc-img-placeholder { display: block; width: 100%; height: 100%; }

.crru-cc-body { display: flex; flex-direction: column; padding: 16px; flex: 1; }
.crru-cc-provider { display: flex; align-items: center; gap: 8px; font-size: 13px; color: #555; margin-bottom: 8px; }
.crru-cc-provider-logo { width: 22px; height: 22px; border-radius: 4px; object-fit: contain; }
.crru-cc-title {
	font-weight: 700;
	font-size: 16px;
	line-height: 1.35;
	color: #1c2b48;
	margin-bottom: 6px;
	display: -webkit-box;
	-webkit-line-clamp: 2;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.crru-cc-desc {
	font-size: 13px;
	color: #6b7280;
	line-height: 1.55;
	margin-bottom: 10px;
	display: -webkit-box;
	-webkit-line-clamp: 3;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.crru-cc-spacer { flex: 1; }
.crru-cc-meta { font-size: 12.5px; color: #374151; margin-bottom: 10px; }
.crru-cc-rating { color: #111827; font-weight: 600; }

.crru-cc-footer { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.crru-cc-badge {
	font-size: 11.5px;
	font-weight: 600;
	padding: 3px 9px;
	border-radius: 20px;
	background: #eef2ff;
	color: #3730a3;
}
.crru-cc-btn {
	font-size: 13px;
	font-weight: 600;
	padding: 6px 14px;
	border: 1px solid #1c2b48;
	border-radius: 6px;
	color: #1c2b48;
	margin-left: auto;
	transition: background 0.2s ease, color 0.2s ease;
}
.crru-cc-card.crru-cc-course:hover .crru-cc-btn { background: #1c2b48; color: #fff; }

/* --- promo card --- */
.crru-cc-promo { position: relative; padding: 28px 24px; color: #fff; justify-content: flex-start; }
.crru-cc-promo-title { font-size: 22px; font-weight: 800; line-height: 1.3; margin-bottom: 14px; }
.crru-cc-promo-sub { font-size: 13.5px; opacity: 0.9; margin-bottom: 16px; }
.crru-cc-promo-btn {
	display: inline-block;
	align-self: flex-start;
	background: #fff;
	color: #1c2b48 !important;
	font-weight: 700;
	font-size: 13.5px;
	padding: 10px 18px;
	border-radius: 6px;
	text-decoration: none;
	margin-bottom: 20px;
	transition: transform 0.2s ease;
}
.crru-cc-promo:hover .crru-cc-promo-btn { transform: translateY(-2px); }

.crru-cc-promo-img-wrap { position: relative; margin-top: auto; cursor: pointer; }
.crru-cc-promo-img {
	width: 100%;
	border-radius: 8px;
	display: block;
	transition: transform 0.35s ease;
}
.crru-cc-promo-img-wrap:hover .crru-cc-promo-img { transform: scale(1.05); }

.crru-cc-promo-badge {
	position: absolute;
	top: -14px;
	left: 16px;
	width: 54px;
	height: 54px;
	border-radius: 50%;
	background: #e2424f;
	color: #fff;
	font-weight: 800;
	font-size: 12px;
	line-height: 1.2;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.2);
}
.crru-cc-promo-ribbon {
	position: absolute;
	bottom: 10px;
	right: -6px;
	background: #ffd23f;
	color: #7a4b00;
	font-size: 11px;
	font-weight: 700;
	padding: 4px 10px;
	border-radius: 14px;
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}
