/* ============================================================
   Courses Page  (.cob-courses-page)
   ============================================================ */
.cob-courses-page {
	direction: rtl;
	font-family: inherit;
}

.cob-courses-grid {
	display: grid;
	grid-template-columns: repeat(var(--cols, 3), 1fr);
	gap: 28px;
	padding: 0 28px 48px;
	max-width: 1280px;
	margin: 0 auto;
	box-sizing: border-box;
}

@media (max-width: 1024px) {
	.cob-courses-grid {
		grid-template-columns: repeat(var(--cols-tablet, 2), 1fr);
		gap: 20px;
		padding: 0 16px 40px;
	}
}
@media (max-width: 600px) {
	.cob-courses-grid {
		grid-template-columns: 1fr;
		gap: 16px;
		padding: 0 12px 32px;
	}
}

.cob-courses-empty {
	text-align: center;
	color: #64748b;
	font-size: 16px;
	padding: 48px 20px;
}

/* ============================================================
   Course Card  (.cob-course-card)
   ============================================================ */
.cob-course-card {
	background: #fff;
	border-radius: 12px;
	overflow: hidden;
	box-shadow: 0 2px 12px rgba(15,23,42,.10);
	display: flex;
	flex-direction: column;
	transition: box-shadow .25s ease, transform .25s ease;
}
.cob-course-card:hover {
	box-shadow: 0 8px 32px rgba(15,23,42,.16);
	transform: translateY(-3px);
}
.cob-course-card__link {
	text-decoration: none;
	color: inherit;
	display: flex;
	flex-direction: column;
	flex: 1;
}
.cob-course-card__img-wrap {
	position: relative;
	width: 100%;
	aspect-ratio: 16 / 9;
	overflow: hidden;
	background: #e2e8f0;
}
.cob-course-card__img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
	transition: transform .35s ease;
}
.cob-course-card:hover .cob-course-card__img {
	transform: scale(1.04);
}
.cob-course-card__badge {
	position: absolute;
	top: 10px;
	font-size: 12px;
	font-weight: 700;
	border-radius: 999px;
	padding: 3px 12px;
	line-height: 1.4;
	white-space: nowrap;
}
.cob-course-card__badge--recommended {
	right: 10px;
	background: #fff;
	color: #E60D64;
	border: 1px solid #E60D64;
}
.cob-course-card__badge--hours {
	left: 10px;
	background: #fff;
	color: #334155;
	border: 1px solid #cbd5e1;
}
.cob-course-card__body {
	padding: 16px 16px 12px;
	flex: 1;
	background: #f8fafc;
}
.cob-course-card__institute {
	font-size: 12px;
	color: #64748b;
	font-weight: 600;
	margin: 0 0 6px;
	text-transform: uppercase;
	letter-spacing: .03em;
}
.cob-course-card__title {
	font-size: 17px;
	font-weight: 800;
	color: #0f172a;
	margin: 0 0 8px;
	line-height: 1.3;
}
.cob-course-card__desc {
	font-size: 14px;
	color: #475569;
	line-height: 1.6;
	margin: 0;
	display: -webkit-box;
	-webkit-line-clamp: 4;
	-webkit-box-orient: vertical;
	overflow: hidden;
}
.cob-course-card__footer {
	padding: 12px 16px;
	border-top: 1px solid #e2e8f0;
	background: #fff;
}
.cob-course-card__cta {
	display: flex;
	align-items: center;
	justify-content: space-between;
	text-decoration: none;
	color: #0f172a;
	font-size: 15px;
	font-weight: 600;
	gap: 6px;
	transition: color .2s ease;
}
.cob-course-card__cta:hover { color: #E60D64; }
.cob-course-card__cta-arrow {
	font-size: 24px;
	line-height: 1;
	color: #E60D64;
	font-weight: 300;
}

/* ============================================================
   Course Filter  (.cob-course-filter-shell)
   ============================================================ */

/* ── Page shell ─────────────────────────────────────────────────────────── */
.cob-course-filter-shell {
	direction: rtl;
	font-family: inherit;
}

/* ── Header banner ─────────────────────────────────────────────────────── */
.cob-courses-header {
	position: relative;
	width: 100%;
	overflow: hidden;
	display: flex;
	align-items: center;
	justify-content: center;
}
.cob-courses-header__img {
	width: 100%;
	max-height: 320px;
	height: 260px;
	object-fit: cover;
	display: block;
	filter: brightness(1.12) saturate(0.95);
}
.cob-courses-header__overlay {
	position: absolute;
	inset: 0;
	background: rgba(255, 255, 255, 0.32);
	display: flex;
	flex-direction: column;
	align-items: center;
	justify-content: center;
	gap: 8px;
	padding: 0 20px;
	box-sizing: border-box;
}
.cob-courses-header__title {
	color: #fff;
	font-size: clamp(26px, 4.5vw, 52px);
	font-weight: 800;
	text-shadow: 0 2px 16px rgba(0,0,0,.55);
	text-align: center;
	margin: 0;
	line-height: 1.2;
	letter-spacing: -.01em;
}
.cob-courses-header__subtitle {
	color: #fff;
	font-size: clamp(15px, 2.2vw, 22px);
	font-weight: 500;
	text-shadow: 0 1px 12px rgba(0,0,0,.45);
	text-align: center;
	margin: 0;
	line-height: 1.35;
	letter-spacing: -.01em;
	max-width: 640px;
}

/* ── Course filter overrides (builds on form.search from job-board.css) ─── */
.cob-course-filter-wrap {
	direction: rtl;
	width: 100%;
	padding: 8px 22px 16px;
	background: #f5f5f5;
	border: none;
	border-radius: 0;
	box-shadow: none;
	box-sizing: border-box;
}
.cob-course-filter-wrap form.search {
	width: 60%;
	max-width: 520px;
	margin-left: auto;
	margin-right: auto;
	background: transparent;
	gap: 2px;
}
.cob-course-filter-wrap .cob-cf-row {
	display: flex;
	flex-direction: column;
	gap: 4px;
}
.cob-course-filter-wrap .text-sm {
	font-size: 13px;
	color: #4a4a4a;
	font-weight: 600;
	padding: 6px 2px 3px;
	display: block;
	text-align: right;
}

/* ── Skills toggle row ─────────────────────────────────────── */
.cob-course-filter-wrap form.search label.cob-toggle-label {
	background: #ffffff;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	height: 40px;
	padding: 8px 12px;
	font-size: 14px;
	font-weight: 600;
	color: #0f172a;
	cursor: pointer;
	box-shadow: none;
}

/* ── Login required modal (skills search, guests only) ─────── */
.cob-cf-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	box-sizing: border-box;
}
.cob-cf-modal[hidden] {
	display: none;
}
.cob-cf-modal__overlay {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.45);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}
.cob-cf-modal__panel {
	position: relative;
	width: 100%;
	max-width: 400px;
	background: #fff;
	border-radius: 12px;
	padding: 28px 24px 24px;
	text-align: center;
	direction: rtl;
	box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
}
.cob-cf-modal__close {
	position: absolute;
	top: 10px;
	left: 12px;
	width: 32px;
	height: 32px;
	border: none;
	background: transparent !important;
	font-size: 24px;
	line-height: 1;
	color: #64748b;
	cursor: pointer;
	border-radius: 6px;
}
.cob-cf-modal__close:hover {
	color: #0f172a;
	scale: 1.1;
}
.cob-cf-modal__title {
	margin: 0 0 10px;
	font-size: 20px;
	font-weight: 800;
	color: #0f172a;
	line-height: 1.3;
}
.cob-cf-modal__text {
	margin: 0 0 20px;
	font-size: 15px;
	font-weight: 500;
	color: #64748b;
	line-height: 1.5;
}
.cob-cf-modal__btn {
	display: inline-block;
	padding: 12px 28px;
	border-radius: 6px;
	background: var(--accent, #E60D64);
	color: #fff !important;
	font-size: 16px;
	font-weight: 700;
	text-decoration: none;
	transition: background 0.2s ease;
}
.cob-cf-modal__btn:hover {
	background: #c40a55;
	color: #fff !important;
}

/* ── Select dropdowns ──────────────────────────────────────── */
.cob-course-filter-wrap form.search select {
	background: #ffffff !important;
	border: 1px solid #e0e0e0 !important;
	height: 40px;
	border-radius: 6px !important;
	padding: 0 12px;
	font-size: 14px;
	color: #222;
	appearance: auto;
	-webkit-appearance: auto;
	box-shadow: none;
}

/* ── Submit button ─────────────────────────────────────────── */
.cob-course-filter-wrap form.search .cob-cf-submit {
	display: block;
	width: 100%;
	margin-top: 8px;
	padding: 12px 14px;
	border: none;
	border-radius: 6px;
	box-shadow: none;
	background: var(--accent, #E60D64);
	color: #fff;
	font-size: 16px;
	font-weight: 700;
	cursor: pointer;
	transition: background .2s ease;
	letter-spacing: .01em;
}
.cob-course-filter-wrap form.search .cob-cf-submit:hover {
	background: #c40a55;
}

/* ── Consulting link ───────────────────────────────────────── */
.cob-course-filter-wrap .cob-cf-consult {
	display: block;
	text-align: center;
	margin-top: 14px;
	font-size: 15px;
	font-weight: 700;
	color: var(--accent, #E60D64);
	text-decoration: none;
	cursor: pointer;
}
.cob-course-filter-wrap .cob-cf-consult:hover {
	text-decoration: underline;
}

.entry-content {
	margin-top: 0 !important;
}

@media (max-width: 768px) {
	.cob-course-filter-wrap {
		width: 100%;
		max-width: none;
		padding: 16px 14px 20px;
	}
	.cob-courses-header__overlay {
		padding-top: 40px !important;
	}
	.cob-course-filter-wrap form.search {
		width: 100% !important;
	}
	.cob-cf-modal__close {
		background: transparent !important;
	}
}
@media (max-width: 600px) {
	.cob-courses-header__img {
		height: 180px;
	}
}
