
.course-skills-btn-wrapper {
	display: flex;
	justify-content: flex-end;
}
.course-skills-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	flex-shrink: 0;
	font-size: 18px;
	text-align: center;
	padding: 6px 20px;
	border-radius: 15px;
	background-color: var(--accent);
	color: #ffffff;
	text-decoration: none;
	cursor: pointer;
	transition: opacity 0.2s;
	margin-left: 10px;
}
.course-skills-btn::after {
	content: "";
	display: inline-block;
	width: 8px;
	height: 8px;
	border-left: 2px solid #ffffff;
	border-bottom: 2px solid #ffffff;
	transform: rotate(45deg);
	margin-right: 6px;
}
.course-skills-btn:visited,
.course-skills-btn:active {
	color: #ffffff;
}
.course-skills-btn:hover {
	opacity: 0.85;
	color: #ffffff;
}
.course-skills-popup-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0,0,0,0.5);
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	direction: rtl;
}
.course-skills-popup {
	background: #f5f5f5;
	border-radius: 16px;
	padding: 30px;
	max-width: 900px;
	width: 95%;
	max-height: 85vh;
	overflow-y: auto;
	position: relative;
	box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.course-skills-popup-close {
	position: absolute;
	top: 12px;
	left: 16px;
	background: none;
	border: none;
	font-size: 24px;
	cursor: pointer;
	color: #999;
	line-height: 1;
}
.course-skills-popup-close:hover {
	color: #333;
}
.course-skills-popup-title {
	margin: 0 0 20px 0;
	font-size: 24px;
	font-weight: 700;
	text-align: center;
}
.cbs-empty {
	text-align: center;
	color: #888;
	font-size: 16px;
	padding: 24px 0;
	margin: 0;
}

/* --- Group --- */
.cbs-group {
	margin-bottom: 28px;
}
.cbs-group:last-child {
	margin-bottom: 0;
}
.cbs-group-title {
	font-size: 20px;
	font-weight: 700;
	margin: 0 0 4px 0;
	text-align: center;
	color: var(--accent, #e91e8c);
}
.cbs-group-skills {
	font-size: 13px;
	color: #777;
	text-align: center;
	margin: 0 0 14px 0;
}

/* --- Card grid --- */
.cbs-cards {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
	gap: 14px;
}

/* --- Individual card --- */
.cbs-card {
	background: #fff;
	border-radius: 14px;
	padding: 20px 16px 16px;
	display: flex;
	flex-direction: column;
	align-items: center;
	text-align: center;
	gap: 6px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.06);
	transition: box-shadow 0.2s;
}
.cbs-card:hover {
	box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}
.cbs-card-icon {
	width: 56px;
	height: 56px;
	margin-bottom: 4px;
}
.cbs-card-icon svg {
	width: 100%;
	height: 100%;
}
.cbs-card-type {
	font-size: 16px;
	font-weight: 700;
}
.cbs-card-provider {
	font-size: 13px;
	color: #555;
	font-weight: 500;
}
.cbs-card-price {
	display: inline-block;
	font-size: 13px;
	font-weight: 600;
	padding: 2px 14px;
	border-radius: 12px;
	margin: 4px 0;
}
.cbs-card-price--free {
	background: #e8f5e9;
	color: #2e7d32;
}
.cbs-card-price--paid {
	background: #fff3e0;
	color: #e65100;
}
.cbs-card-hours {
	font-size: 12px;
	font-weight: 600;
	color: #444;
}
.cbs-card-desc {
	font-size: 12px;
	color: #777;
	line-height: 1.5;
	margin: 2px 0 4px;
}
.cbs-card-btn {
	display: inline-block;
	margin-top: auto;
	padding: 8px 28px;
	background: #f9a825;
	color: #fff;
	font-size: 15px;
	font-weight: 700;
	border-radius: 8px;
	text-decoration: none;
	transition: background 0.2s;
}
.cbs-card-btn:hover {
	background: #f57f17;
	color: #fff;
}
.cbs-card-btn:visited {
	color: #fff;
}

@media (max-width: 600px) {
	.course-skills-btn-wrapper {
		display: none !important;
	}
	.course-skills-popup {
		max-width: 100%;
		width: 100%;
		border-radius: 12px 12px 0 0;
		max-height: 90vh;
		padding: 20px 14px;
	}
	.cbs-cards {
		grid-template-columns: repeat(2, 1fr);
		gap: 10px;
	}
	.cbs-card-icon {
		width: 40px;
		height: 40px;
	}
}

