body.alghaith-course-filter-locked {
	overflow: hidden;
}


.alghaith-course-filter-overlay {
	position: absolute;
	inset: 0;
	background: rgba(10, 16, 28, 0.65);
	backdrop-filter: blur(4px);
	z-index: 1;
	transition: opacity 0.25s ease;
	opacity: 0;
	pointer-events: none;
}

.alghaith-course-filter-modal.is-visible .alghaith-course-filter-overlay {
	opacity: 1;
	pointer-events: auto;
}

.alghaith-course-filter-modal {
	position: fixed;
	inset: 0;
	display: none;
	align-items: center;
	justify-content: center;
	z-index: 999999 !important;
	padding: 24px;
	opacity: 0;
	pointer-events: none;
	transition: opacity 0.3s ease;
}

.alghaith-course-filter-modal.is-visible {
	display: flex;
	opacity: 1;
	pointer-events: all;
}

.alghaith-course-filter-dialog {
	background: #ffffff;
	border-radius: 28px;
	max-width: 640px;
	width: 100%;
	box-shadow: 0 40px 120px rgba(15, 23, 42, 0.25);
	position: relative;
	padding: 40px;
	direction: rtl;
	text-align: right;
	backdrop-filter: none;
	z-index: 1000000;
	pointer-events: all;
}

.alghaith-course-filter-close {
	position: absolute;
	top: 18px;
	left: 18px;
	background: #ffffff;
	border: 1px solid rgba(15, 23, 42, 0.08);
	width: 44px;
	height: 44px;
	border-radius: 14px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	color: #0f172a;
	font-size: 1.2rem;
	box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
	transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.alghaith-course-filter-close:hover,
.alghaith-course-filter-close:focus-visible {
	transform: translateY(-1px);
	box-shadow: 0 14px 35px rgba(15, 23, 42, 0.12);
	border-color: rgba(190, 18, 60, 0.4);
	outline: none;
}

.alghaith-course-filter-header {
	margin-bottom: 24px;
}

.alghaith-course-filter-header h3 {
	margin: 0 0 8px;
	font-size: 1.8rem;
	color: #0f172a;
	font-weight: 800;
}

.alghaith-course-filter-header p {
	margin: 0;
	color: #475569;
	line-height: 1.6;
	font-size: 1rem;
}

.alghaith-course-filter-form {
	display: flex;
	flex-direction: column;
	gap: 18px;
}

.alghaith-course-filter-field label {
	display: block;
	margin-bottom: 8px;
	font-weight: 700;
	color: #0f172a;
}

.alghaith-course-filter-field select {
	width: 100%;
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	padding: 14px 16px;
	font-size: 1rem;
	background: #f8fafc;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.alghaith-course-filter-field select:focus {
	outline: none;
	border-color: #be123c;
	box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.2);
}

.alghaith-course-filter-submit {
	background: linear-gradient(120deg, #f43f5e, #be123c 60%, #831843);
	color: #fff;
	border: none;
	border-radius: 18px;
	padding: 18px 26px;
	font-size: 1.05rem;
	font-weight: 800;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	min-height: 56px;
	letter-spacing: 0.5px;
	transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.alghaith-course-filter-submit::after {
	content: '\2192';
	font-size: 1.25rem;
	transition: transform 0.2s ease;
}

.alghaith-course-filter-submit:hover {
	transform: translateY(-2px);
	box-shadow: 0 25px 45px rgba(190, 18, 60, 0.35);
	filter: brightness(1.05);
}

.alghaith-course-filter-submit:hover::after {
	transform: translateX(4px);
}

.alghaith-course-filter-message {
	border-radius: 14px;
	padding: 12px 14px;
	font-weight: 600;
	font-size: 0.95rem;
	display: none;
}

.alghaith-course-filter-message.is-visible {
	display: block;
}

.alghaith-course-filter-message.is-error {
	background: #fee2e2;
	color: #b91c1c;
}

.alghaith-course-filter-message.is-success {
	background: #ecfccb;
	color: #3f6212;
}

.alghaith-course-empty-state {
	padding: 80px 0 120px;
}

.alghaith-course-empty-card {
	max-width: 580px;
	margin: 0 auto;
	background: #ffffff;
	border-radius: 32px;
	text-align: center;
	padding: 48px 42px;
	box-shadow: 0 30px 80px rgba(15, 23, 42, 0.08);
	border: 1px solid rgba(15, 23, 42, 0.05);
}

.alghaith-course-empty-eyebrow {
	font-weight: 700;
	letter-spacing: 0.15em;
	font-size: 0.9rem;
	text-transform: uppercase;
	color: #be123c;
	margin-bottom: 10px;
}

.alghaith-course-empty-card h3 {
	margin: 0 0 10px;
	font-size: 1.65rem;
	color: #0f172a;
}

.alghaith-course-empty-card p {
	margin: 0 0 24px;
	color: #475569;
	line-height: 1.6;
}

.alghaith-course-empty-cta {
	border: none;
	border-radius: 999px;
	background: #0f172a;
	color: #fff;
	font-weight: 700;
	font-size: 1rem;
	padding: 14px 26px;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}

.alghaith-course-empty-cta:hover {
	transform: translateY(-2px);
	box-shadow: 0 20px 35px rgba(15, 23, 42, 0.25);
	background: #111a31;
}

.alghaith-course-filter-trigger {
	border: 1px solid rgba(190, 18, 60, 0.25);
	background: #fff;
	color: #be123c;
	border-radius: 999px;
	padding: 10px 18px;
	font-weight: 700;
	font-size: 0.95rem;
	cursor: pointer;
	display: inline-flex;
	align-items: center;
	gap: 8px;
	transition: all 0.2s ease;
}

.alghaith-course-filter-trigger .icon {
	width: 18px;
	height: 18px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
}

.alghaith-course-filter-trigger:hover {
	background: #be123c;
	color: #fff;
	box-shadow: 0 10px 25px rgba(190, 18, 60, 0.25);
}

@media (max-width: 640px) {
	.alghaith-course-filter-dialog {
		padding: 28px 20px;
		border-radius: 24px;
	}

	.alghaith-course-filter-header h3 {
		font-size: 1.5rem;
	}
}
