.rstcg-grid {
	display: grid;
	gap: 24px;
	grid-template-columns: repeat(3, 1fr);
	margin: 0 0 24px;
}
.rstcg-columns-2 { grid-template-columns: repeat(2, 1fr); }
.rstcg-columns-3 { grid-template-columns: repeat(3, 1fr); }
.rstcg-columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
	.rstcg-columns-3,
	.rstcg-columns-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
	.rstcg-grid { grid-template-columns: 1fr !important; }
}

.rstcg-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 10px rgba(0,0,0,0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	display: flex;
	flex-direction: column;
}
.rstcg-card:hover {
	transform: translateY(-4px);
	box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}
.rstcg-card-thumb {
	display: block;
	aspect-ratio: 16 / 10;
	overflow: hidden;
	background: #f2f2f2;
}
.rstcg-card-thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}
.rstcg-card-thumb-placeholder {
	width: 100%;
	height: 100%;
	background: linear-gradient(135deg, #eee, #ddd);
}
.rstcg-card-body {
	padding: 18px 20px 22px;
	display: flex;
	flex-direction: column;
	gap: 10px;
	flex: 1;
}
.rstcg-card-title {
	font-size: 18px;
	line-height: 1.4;
	margin: 0;
}
.rstcg-card-title a {
	color: #1a1a1a;
	text-decoration: none;
}
.rstcg-card-title a:hover {
	color: #d6006c;
}
.rstcg-card-price {
	font-weight: 600;
	color: #d6006c;
	font-size: 15px;
}
.rstcg-free {
	color: #16a34a;
}
.rstcg-card-btn {
	margin-top: auto;
	display: inline-block;
	text-align: center;
	padding: 10px 16px;
	background: #d6006c;
	color: #fff !important;
	border-radius: 8px;
	font-weight: 600;
	text-decoration: none;
	font-size: 14px;
	transition: background 0.2s ease;
}
.rstcg-card-btn:hover {
	background: #b3005a;
}
.rstcg-pagination {
	display: flex;
	gap: 8px;
	justify-content: center;
	margin: 20px 0;
}
.rstcg-pagination a,
.rstcg-pagination span {
	padding: 8px 12px;
	border-radius: 6px;
	border: 1px solid #ddd;
	color: #333;
	text-decoration: none;
}
.rstcg-pagination .current {
	background: #d6006c;
	color: #fff;
	border-color: #d6006c;
}

/* Course single page banner */
.rstcg-course-banner {
	width: 100%;
	min-height: 280px;
	background-size: cover;
	background-position: center;
	background-repeat: no-repeat;
	display: flex;
	align-items: center;
	justify-content: center;
	text-align: center;
	margin: 0 0 32px;
}
.rstcg-course-banner-inner {
	padding: 40px 20px;
	max-width: 900px;
}
.rstcg-course-banner-title {
	color: #fff;
	font-size: 36px;
	line-height: 1.3;
	margin: 0 0 12px;
	font-weight: 700;
}
.rstcg-course-banner-cats {
	color: #f2f2f2;
	font-size: 15px;
}
.rstcg-course-banner-cats a {
	color: #fff;
	text-decoration: underline;
}
@media (max-width: 600px) {
	.rstcg-course-banner { min-height: 200px; }
	.rstcg-course-banner-title { font-size: 26px; }
}
