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: 720px;
	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;
	overflow: visible;
}

.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 {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	border: 0 !important;
}

/* Custom dropdown — full Arabic labels, no ellipsis clipping */
.alghaith-dd {
	position: relative;
	width: 100%;
}

.alghaith-dd__toggle {
	width: 100%;
	border-radius: 16px;
	border: 1px solid #e2e8f0;
	padding: 14px 16px;
	font-size: 1rem;
	background: #f8fafc;
	color: #0f172a;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	text-align: right;
	direction: rtl;
	transition: border-color 0.2s ease, box-shadow 0.2s ease;
	min-height: 54px;
}

.alghaith-dd__toggle:hover,
.alghaith-dd.is-open .alghaith-dd__toggle,
.alghaith-dd__toggle:focus-visible {
	outline: none;
	border-color: #be123c;
	box-shadow: 0 0 0 3px rgba(190, 18, 60, 0.2);
}

.alghaith-dd__toggle[disabled] {
	opacity: 0.55;
	cursor: not-allowed;
}

.alghaith-dd__label {
	flex: 1;
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
	line-height: 1.45;
	word-break: break-word;
}

.alghaith-dd__label.is-placeholder {
	color: #94a3b8;
}

.alghaith-dd__chevron {
	flex-shrink: 0;
	width: 10px;
	height: 10px;
	border-right: 2px solid #64748b;
	border-bottom: 2px solid #64748b;
	transform: rotate(45deg);
	transition: transform 0.2s ease;
	margin-top: -4px;
}

.alghaith-dd.is-open .alghaith-dd__chevron {
	transform: rotate(-135deg);
	margin-top: 4px;
}

.alghaith-dd__menu {
	display: none;
	position: absolute;
	inset-inline: 0;
	top: calc(100% + 8px);
	background: #fff;
	border: 1px solid #e2e8f0;
	border-radius: 16px;
	box-shadow: 0 24px 60px rgba(15, 23, 42, 0.18);
	max-height: 280px;
	overflow-y: auto;
	z-index: 20;
	padding: 8px;
}

.alghaith-dd.is-open .alghaith-dd__menu {
	display: block;
}

.alghaith-dd__option {
	display: block;
	width: 100%;
	border: 0;
	background: transparent;
	text-align: right;
	direction: rtl;
	padding: 12px 14px;
	border-radius: 12px;
	cursor: pointer;
	font-size: 1rem;
	line-height: 1.5;
	color: #0f172a;
	white-space: normal;
	overflow: visible;
	text-overflow: unset;
	word-break: break-word;
}

.alghaith-dd__option:hover,
.alghaith-dd__option:focus-visible {
	background: #fff1f2;
	outline: none;
}

.alghaith-dd__option.is-selected {
	background: #be123c;
	color: #fff;
	font-weight: 700;
}

.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: '\2190';
	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;
	}
}
