/* ==========================================================================
   Premium Tutor LMS Course Archive
   ========================================================================== */

   .pixpa-course-archive {
	--archive-primary: #0170ff;
	--archive-primary-dark: #0170ff;
	--archive-primary-soft: #eef2ff;
	--archive-text: #17151f;
	--archive-secondary: #666270;
	--archive-muted: #9995a1;
	--archive-border: #e9e7ed;
	--archive-surface: #fff;
	--archive-surface-soft: #f7f6f9;
	--archive-danger: #e94970;
	--archive-radius: 22px;
	--archive-ease: cubic-bezier(0.22, 1, 0.36, 1);

	width: 100%;
	padding-block: clamp(30px, 4vw, 64px);
	color: var(--archive-text);
	font-family: inherit;
	font-feature-settings: "ss01", "ss02";
	-webkit-font-smoothing: antialiased;
	text-rendering: optimizeLegibility;
	direction: rtl; /* کل بخش RTL */
	text-align: right;
}

.pixpa-course-archive *,
.pixpa-course-archive *::before,
.pixpa-course-archive *::after {
	box-sizing: border-box;
}
.tutor-card.tutor-course-card{
	border-radius: 31px;
    border: none !important;
}
.pixpa-course-archive__container {
	width: min(88% - 32px, 1600px);
	margin-inline: auto;
}

/* Toolbar
   ========================================================================== */

.pixpa-course-toolbar {
	display: grid;
	grid-template-columns: minmax(0, 1fr) auto;
	grid-template-areas: "categories filters";
	align-items: end;
	gap: 24px;
	margin-block-end: 34px;
	direction: rtl; /* RTL برای کل نوار ابزار */
	text-align: right;
}

.pixpa-category-area {
	grid-area: categories;
	min-width: 0;
	direction: rtl;
	text-align: right;
}

.pixpa-course-filters {
	grid-area: filters;
	display: grid;
	grid-template-columns: 182px 170px minmax(240px, 310px);
	align-items: end;
	gap: 10px;
	direction: rtl;
	text-align: right;
}

/* Category heading
   ========================================================================== */

.pixpa-category-heading {
	display: flex;
	align-items: center;
	gap: 11px;
	margin-block-end: 12px;
	direction: rtl;
}

.pixpa-category-heading__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	color: var(--archive-primary);
	background:#eef2ff;
	border: 1px solid rgba(101, 88, 245, 0.11);
	border-radius: 11px;
}

.pixpa-category-heading__icon svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pixpa-category-heading__icon .pixpa-icon-soft {
	fill: rgba(101, 88, 245, 0.14);
	stroke: none;
}

.pixpa-category-heading > div {
	display: flex;
	flex-direction: column;
	gap: 3px;
}

.pixpa-category-heading strong {
	font-size: 13px;
	font-weight: 820;
	line-height: 1.3;
}

.pixpa-category-heading span:last-child {
	color: var(--archive-muted);
	font-size: 9.5px;
	font-weight: 550;
}

/* iOS categories
   ========================================================================== */

.pixpa-category-segments {
	display: flex;
	align-items: center;
	gap: 3px;
	width: max-content;
	max-width: 100%;
	padding: 4px;
	background:#eef2ff61;
	border: 1px solid rgba(27, 24, 35, 0.055);
	border-radius: 15px;
	box-shadow:
		inset 0 1px 2px rgba(20, 18, 28, 0.035),
		0 1px 0 rgba(255, 255, 255, 0.9);
	overflow-x: auto;
	overscroll-behavior-inline: contain;
	scrollbar-width: none;
	-webkit-overflow-scrolling: touch;
	direction: rtl; /* دکمه‌ها از راست به چپ */
}

.pixpa-category-segments::-webkit-scrollbar {
	display: none;
}

.pixpa-category-segment {
	position: relative;
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	gap: 6px;
	min-height: 38px;
	margin: 0;
	padding: 7px 13px;
	color: #6c6875;
	background: transparent;
	border: 0;
	border-radius: 11px;
	box-shadow: none;
	font-family: inherit;
	font-size: 11.5px;
	font-weight: 680;
	line-height: 1;
	white-space: nowrap;
	cursor: pointer;
	appearance: none;
	transition:
		color 220ms ease,
		background-color 220ms ease,
		box-shadow 300ms var(--archive-ease),
		transform 300ms var(--archive-ease);
}

.pixpa-category-segment:hover {
	color: #2e2b35;
	background: rgba(255, 255, 255, 0.65);
}

.pixpa-category-segment:active {
	transform: scale(0.97);
}

.pixpa-category-segment.is-active {
	z-index: 1;
	color: #fff;
	background:
		linear-gradient(
			145deg,
			#27242f,
			#17151d
		);
	box-shadow:
		0 5px 13px -5px rgba(24, 21, 31, 0.45),
		inset 0 1px 0 rgba(255, 255, 255, 0.13);
}

.pixpa-category-segment small {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 18px;
	height: 18px;
	padding-inline: 4px;
	color: #8e8996;
	background: rgba(255, 255, 255, 0.85);
	border-radius: 6px;
	font-size: 8.5px;
	font-weight: 750;
	font-variant-numeric: tabular-nums;
	transition:
		color 220ms ease,
		background-color 220ms ease;
}

.pixpa-category-segment.is-active small {
	color: #fff;
	background: rgba(255, 255, 255, 0.15);
}

/* Filter fields
   ========================================================================== */

.pixpa-filter-field {
	display: flex;
	flex-direction: column;
	min-width: 0;
	gap: 7px;
	margin: 0;
}

.pixpa-filter-field__label {
	padding-inline: 4px;
	color: var(--archive-muted);
	font-size: 9px;
	font-weight: 650;
	line-height: 1;
	text-align: right;
}

.pixpa-select-wrap,
.pixpa-search-wrap {
	position: relative;
	display: flex;
	align-items: center;
	height: 46px;
	min-width: 0;
	background: var(--archive-surface);
	border: 1px solid var(--archive-border);
	border-radius: 13px;
	box-shadow:
		0 1px 2px rgba(17, 15, 23, 0.025),
		0 5px 16px rgba(17, 15, 23, 0.025);
	transition:
		border-color 220ms ease,
		box-shadow 300ms ease,
		background-color 220ms ease;
	direction: rtl;
}

.pixpa-select-wrap:hover,
.pixpa-search-wrap:hover {
	border-color: #d9d6df;
}

.pixpa-select-wrap:focus-within,
.pixpa-search-wrap:focus-within {
	border-color: rgba(101, 88, 245, 0.5);
	box-shadow:
		0 0 0 4px rgba(101, 88, 245, 0.09),
		0 8px 20px rgba(22, 18, 40, 0.045);
}

.pixpa-select-wrap__icon,
.pixpa-search-wrap__icon {
	display: inline-flex;
	flex: 0 0 auto;
	align-items: center;
	justify-content: center;
	width: 31px;
	height: 31px;
	margin-inline-start: 7px;
	color: var(--archive-primary);
	background: var(--archive-primary-soft);
	border-radius: 9px;
	pointer-events: none;
}

.pixpa-select-wrap__icon svg,
.pixpa-search-wrap__icon svg {
	width: 16px;
	height: 16px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.55;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pixpa-select-wrap__icon .pixpa-icon-soft {
	fill: rgba(101, 88, 245, 0.16);
	stroke: none;
}

.pixpa-select-wrap select {
	width: 100%;
	height: 100%;
	min-width: 0;
	padding: 0 6px 0 31px;
	color: #35313c;
	background: transparent;
	border: 0;
	outline: 0;
	font-family: inherit;
	font-size: 10.5px;
	font-weight: 650;
	cursor: pointer;
	appearance: none;
	text-align: right;
}

.pixpa-select-wrap__arrow {
	position: absolute;
	inset-inline-end: auto;
	inset-inline-start: 9px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 20px;
	height: 20px;
	color: #96919d;
	pointer-events: none;
}

.pixpa-select-wrap__arrow svg {
	width: 14px;
	height: 14px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

/* Search
   ========================================================================== */

.pixpa-search-wrap input {
	width: 100%;
	height: 100%;
	min-width: 0;
	padding: 0 5px 0 37px;
	color: #302d37;
	background: transparent;
	border: 0;
	outline: 0;
	font-family: inherit;
	font-size: 11px;
	font-weight: 580;
	appearance: none;
	text-align: right;
}

.pixpa-search-wrap input::placeholder {
	color: #aaa6af;
	opacity: 1;
}

.pixpa-search-wrap input::-webkit-search-cancel-button {
	display: none;
}

.pixpa-search-wrap__clear {
	position: absolute;
	inset-inline-start: 8px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 25px;
	height: 25px;
	margin: 0;
	padding: 0;
	color: #8d8894;
	background: #f1f0f3;
	border: 0;
	border-radius: 8px;
	box-shadow: none;
	cursor: pointer;
	appearance: none;
	transition:
		color 200ms ease,
		background-color 200ms ease,
		transform 200ms ease;
}

.pixpa-search-wrap__clear:hover {
	color: #34303b;
	background: #e8e6eb;
}

.pixpa-search-wrap__clear:active {
	transform: scale(0.92);
}

.pixpa-search-wrap__clear[hidden] {
	display: none;
}

.pixpa-search-wrap__clear svg {
	width: 13px;
	height: 13px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
}

/* Results
   ========================================================================== */

.pixpa-course-results {
	position: relative;
	min-height: 360px;
}

.pixpa-course-results.is-loading [data-course-results-content] {
	opacity: 0.36;
	filter: saturate(0.7);
	pointer-events: none;
	transform: translateY(2px);
}

[data-course-results-content] {
	transition:
		opacity 220ms ease,
		filter 220ms ease,
		transform 300ms var(--archive-ease);
}

.pixpa-results__summary {
	display: flex;
	align-items: baseline;
	min-height: 22px;
	gap: 5px;
	margin-block-end: 16px;
	color: var(--archive-muted);
	font-size: 10.5px;
	font-weight: 570;
	direction: rtl;
	text-align: right;
}

.pixpa-results__summary strong {
	color: #393541;
	font-size: 12px;
	font-weight: 800;
	font-variant-numeric: tabular-nums;
}

/* 4 × 3 grid
   ========================================================================== */

.pixpa-course-grid {
	display: grid;
	grid-template-columns: repeat(4, minmax(0, 1fr));
	align-items: stretch;
	gap: clamp(18px, 1.65vw, 26px);
	direction: rtl;
}

.pixpa-course-grid > * {
	min-width: 0;
}

/* Loader
   ========================================================================== */

.pixpa-course-loader {
	position: absolute;
	inset-block-start: 74px;
	inset-inline-start: 50%;
	z-index: 20;
	display: inline-flex;
	align-items: center;
	gap: 9px;
	padding: 10px 14px;
	color: #393541;
	background: rgba(255, 255, 255, 0.94);
	border: 1px solid rgba(27, 24, 35, 0.08);
	border-radius: 12px;
	box-shadow: 0 12px 30px rgba(22, 18, 35, 0.12);
	font-size: 10.5px;
	font-weight: 700;
	white-space: nowrap;
	-webkit-backdrop-filter: blur(12px);
	backdrop-filter: blur(12px);
	transform: translateX(-50%);
}

.pixpa-course-loader[hidden] {
	display: none;
}

.pixpa-course-loader__spinner {
	width: 16px;
	height: 16px;
	border: 2px solid rgba(101, 88, 245, 0.18);
	border-block-start-color: var(--archive-primary);
	border-radius: 50%;
	animation: pixpa-loader-spin 700ms linear infinite;
}

/* Pagination
   ========================================================================== */

.pixpa-pagination {
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	margin-block-start: clamp(34px, 4vw, 54px);
	direction: rtl;
}

.pixpa-pagination__pages {
	display: inline-flex;
	align-items: center;
	gap: 4px;
	padding: 4px;
	background: #f5f4f7;
	border: 1px solid rgba(30, 27, 38, 0.055);
	border-radius: 14px;
}

.pixpa-pagination__page,
.pixpa-pagination__arrow {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 38px;
	height: 38px;
	margin: 0;
	padding: 0;
	color: #625e6a;
	background: transparent;
	border: 0;
	border-radius: 10px;
	box-shadow: none;
	font-size: 11px;
	font-weight: 750;
	font-variant-numeric: tabular-nums;
	line-height: 1;
	text-decoration: none;
	cursor: pointer;
	appearance: none;
	transition:
		color 220ms ease,
		background-color 220ms ease,
		box-shadow 300ms var(--archive-ease),
		transform 260ms var(--archive-ease);
}

.pixpa-pagination__page:hover {
	color: #25222b;
	background: rgba(255, 255, 255, 0.75);
	text-decoration: none;
}

.pixpa-pagination__page.is-current {
	color: #fff;
	background:
		linear-gradient(
			145deg,
			var(--archive-primary),
			var(--archive-primary-dark)
		);
	box-shadow:
		0 6px 14px -5px rgba(80, 68, 223, 0.55),
		inset 0 1px 0 rgba(255, 255, 255, 0.2);
	cursor: default;
}

.pixpa-pagination__arrow {
	color: #46414e;
	background: #fff;
	border: 1px solid var(--archive-border);
	box-shadow: 0 4px 12px rgba(22, 18, 31, 0.045);
}

.pixpa-pagination__arrow:hover {
	color: var(--archive-primary);
	border-color: rgba(101, 88, 245, 0.25);
	box-shadow: 0 7px 17px rgba(35, 29, 66, 0.08);
	text-decoration: none;
	transform: translateY(-1px);
}

.pixpa-pagination__arrow.is-disabled {
	color: #c7c4cb;
	background: #f8f7f9;
	box-shadow: none;
	cursor: not-allowed;
}

.pixpa-pagination__arrow svg {
	width: 15px;
	height: 15px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.8;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pixpa-pagination__ellipsis {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 26px;
	height: 38px;
	color: #aaa6af;
	font-size: 13px;
}

/* Empty state
   ========================================================================== */

.pixpa-course-empty {
	display: flex;
	align-items: center;
	justify-content: center;
	flex-direction: column;
	min-height: 390px;
	padding: 45px 20px;
	text-align: center;
	background:
		radial-gradient(
			circle at 50% 35%,
			rgba(101, 88, 245, 0.055),
			transparent 28%
		),
		#fbfafd;
	border: 1px dashed #dfdce5;
	border-radius: 24px;
	direction: rtl;
}

.pixpa-course-empty__visual {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 76px;
	height: 76px;
	margin-block-end: 19px;
	color: var(--archive-primary);
	background:
		linear-gradient(
			145deg,
			rgba(101, 88, 245, 0.13),
			rgba(139, 92, 246, 0.055)
		);
	border: 1px solid rgba(101, 88, 245, 0.11);
	border-radius: 23px;
	transform: rotate(-3deg);
}

.pixpa-course-empty__visual svg {
	width: 40px;
	height: 40px;
	fill: none;
	stroke: currentColor;
	stroke-width: 1.35;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.pixpa-course-empty__soft {
	fill: rgba(101, 88, 245, 0.14);
	stroke: none;
}

.pixpa-course-empty h2 {
	margin: 0 0 8px;
	color: #26232d;
	font-size: 17px;
	font-weight: 830;
}

.pixpa-course-empty p {
	margin: 0 0 19px;
	color: var(--archive-muted);
	font-size: 11.5px;
	font-weight: 550;
}

.pixpa-course-empty button,
.pixpa-filter-submit {
	min-height: 40px;
	padding: 8px 15px;
	color: #fff;
	background: #24212b;
	border: 0;
	border-radius: 11px;
	box-shadow: 0 7px 16px rgba(22, 19, 29, 0.15);
	font-family: inherit;
	font-size: 10.5px;
	font-weight: 750;
	cursor: pointer;
}

/* Responsive
   ========================================================================== */

@media (max-width: 1360px) {
	.pixpa-course-toolbar {
		grid-template-columns: 1fr;
		grid-template-areas:
			"filters"
			"categories";
		align-items: stretch;
	}

	.pixpa-course-filters {
		grid-template-columns: 180px 170px minmax(230px, 1fr);
	}

	.pixpa-category-segments {
		width: 100%;
	}

	.pixpa-course-grid {
		grid-template-columns: repeat(3, minmax(0, 1fr));
	}
}

@media (max-width: 980px) {
	.pixpa-course-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pixpa-course-filters {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}

	.pixpa-filter-field--search {
		grid-column: 1 / -1;
	}
}

@media (max-width: 620px) {
	.pixpa-course-archive {
		padding-block: 25px 40px;
	}

	.pixpa-course-archive__container {
		width: min(100% - 22px, 1600px);
	}

	.pixpa-course-toolbar {
		gap: 20px;
		margin-block-end: 25px;
	}

	.pixpa-course-filters {
		grid-template-columns: 1fr 1fr;
		gap: 9px;
	}

	.pixpa-filter-field--search {
		grid-column: 1 / -1;
		grid-row: 1;
	}

	.pixpa-select-wrap,
	.pixpa-search-wrap {
		height: 44px;
	}

	.pixpa-category-heading span:last-child {
		display: none;
	}

	.pixpa-course-grid {
		grid-template-columns: 1fr;
		gap: 18px;
	}

	.pixpa-pagination {
		gap: 6px;
	}

	.pixpa-pagination__page,
	.pixpa-pagination__arrow {
		width: 35px;
		height: 35px;
	}

	.pixpa-pagination__pages {
		gap: 2px;
	}
}

/* Accessibility
   ========================================================================== */

.pixpa-category-segment:focus-visible,
.pixpa-pagination a:focus-visible,
.pixpa-course-empty button:focus-visible,
.pixpa-search-wrap__clear:focus-visible {
	outline: 3px solid rgba(101, 88, 245, 0.22);
	outline-offset: 2px;
}

@keyframes pixpa-loader-spin {
	to {
		transform: rotate(360deg);
	}
}

@media (prefers-reduced-motion: reduce) {
	.pixpa-course-archive *,
	.pixpa-course-archive *::before,
	.pixpa-course-archive *::after {
		scroll-behavior: auto !important;
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
	}
}

