/* =========================================
   GONBAD — LEARNING ARCHIVE
========================================= */

.gf-learning-archive {
	direction: rtl;
	padding-block: var(--space-2xl, 32px) var(--space-4xl, 64px);
	background: var(--color-background, #fff);
	color: var(--color-text, #58595b);
	font-family: var(--font-fa, inherit);
	text-align: right;
}

.gf-learning-archive *,
.gf-learning-archive *::before,
.gf-learning-archive *::after {
	box-sizing: border-box;
}

.gf-learning-archive__container {
	width: min(calc(100% - 40px), 1080px);
	margin-inline: auto;
}

.gf-learning-archive__hero {
	margin: 0 0 32px;
	overflow: hidden;
	border-radius: var(--radius-md, 12px);
}

.gf-learning-archive__hero img {
	display: block;
	width: 100%;
	height: auto;
}

.gf-learning-archive__header {
	margin-bottom: 32px;
}

.gf-learning-archive__eyebrow {
	margin: 0 0 8px;
	color: var(--color-orange, #f25c2f);
	font-weight: 700;
}

.gf-learning-archive__header h1 {
	margin: 0 0 16px;
	color: var(--color-primary, #00a29d);
	font-size: var(--fs-h2, 30px);
	line-height: 1.7;
}

.gf-learning-archive__intro,
.gf-learning-archive__intro p {
	line-height: 2;
	text-align: justify;
	text-align-last: right;
}

.gf-learning-archive__filter {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	gap: 12px;
	margin-bottom: 28px;
	padding: 18px;
	border: 1px solid var(--color-border, #e4e7e7);
	border-radius: var(--radius-md, 12px);
}

.gf-learning-archive__filter label {
	font-weight: 700;
}

.gf-learning-archive__filter select {
	flex: 1 1 220px;
	min-width: 0;
	min-height: 44px;
	padding: 8px 12px;
	border: 1px solid var(--color-border, #e4e7e7);
	border-radius: var(--radius-sm, 6px);
	background: #fff;
	color: inherit;
	font: inherit;
}

.gf-learning-archive__filter button,
.gf-learning-card__more {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: auto;
	min-width: 0;
	min-height: 42px;
	padding: 8px 20px;
	border: 1px solid var(--color-orange, #f25c2f);
	border-radius: var(--radius-sm, 6px);
	background: var(--color-orange, #f25c2f);
	color: #fff;
	font: inherit;
	line-height: 1.6;
	text-decoration: none;
	cursor: pointer;
}

.gf-learning-archive__filter button:hover,
.gf-learning-card__more:hover {
	background: transparent;
	color: var(--color-orange, #f25c2f);
}

.gf-learning-archive__grid {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 24px;
}

/* کارت عمودی آموزش */

.gf-learning-card {
	min-width: 0;
	margin: 0;
	overflow: hidden;
	border: 0;
	border-radius: var(--radius-md, 12px);
	background: var(--color-secondary, #002846);
}

.gf-learning-card__link {
	position: relative;
	isolation: isolate;
	display: block;
	width: 100%;
	aspect-ratio: 3 / 4;
	overflow: hidden;
	color: #fff;
	text-decoration: none;
}

/* تصویر عمودی */

.gf-learning-card__photo,
.gf-learning-card__placeholder {
	position: absolute;
	inset: 0;
	display: block;
	width: 100%;
	height: 100%;
}

.gf-learning-card__photo {
	object-fit: cover;
	object-position: center;
	transition: transform .3s ease;
}

.gf-learning-card__placeholder {
	background: var(--color-secondary, #002846);
}

/* گرادینت سرمه‌ای از پایین */

.gf-learning-card__link::after {
	content: "";
	position: absolute;
	inset: 0;
	z-index: 1;
	pointer-events: none;
	background: linear-gradient(
		to top,
		rgba(0, 40, 70, .98) 0%,
		rgba(0, 40, 70, .78) 22%,
		rgba(0, 40, 70, .28) 48%,
		rgba(0, 40, 70, 0) 72%
	);
}

/* عنوان روی تصویر */

.gf-learning-card .gf-learning-card__title {
	position: absolute;
	right: 0;
	bottom: 0;
	left: 0;
	z-index: 2;
	margin: 0;
	padding: 24px 20px;
	color: #fff;
	font-size: var(--fs-h4, 19px);
	font-weight: 700;
	line-height: 1.9;
	text-align: right;
	overflow-wrap: anywhere;
}

.gf-learning-card__link:hover,
.gf-learning-card__link:focus-visible {
	color: #fff;
	text-decoration: none;
}

.gf-learning-card__link:hover .gf-learning-card__photo {
	transform: scale(1.035);
}

.gf-learning-card__link:focus-visible {
	outline: 3px solid var(--color-orange, #f25c2f);
	outline-offset: -3px;
}

@media (prefers-reduced-motion: reduce) {
	.gf-learning-card__photo {
		transition: none;
	}
}
.gf-learning-archive__empty {
	padding: 32px 20px;
	border-radius: var(--radius-md, 12px);
	background: #f4f7f7;
	text-align: center;
}

.gf-learning-archive__pagination {
	margin-top: 36px;
}

.gf-learning-archive__pagination ul {
	display: flex;
	flex-wrap: wrap;
	justify-content: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.gf-learning-archive__pagination .page-numbers:not(ul) {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 42px;
	min-height: 42px;
	padding: 6px 12px;
	border: 1px solid var(--color-border, #e4e7e7);
	border-radius: var(--radius-sm, 6px);
	color: var(--color-secondary, #002846);
	text-decoration: none;
}

.gf-learning-archive__pagination .current,
.gf-learning-archive__pagination a:hover {
	border-color: var(--color-primary, #00a29d);
	background: var(--color-primary, #00a29d);
	color: #fff;
}

@media (max-width: 800px) {
	.gf-learning-archive__grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 16px;
	}
}

@media (max-width: 540px) {
	.gf-learning-archive__container {
		width: calc(100% - 32px);
	}

	.gf-learning-archive__grid {
		grid-template-columns: 1fr;
	}

	.gf-learning-archive__filter {
		align-items: stretch;
	}

	.gf-learning-archive__filter label {
		flex-basis: 100%;
	}

	.gf-learning-archive__filter select {
		flex-basis: 100%;
	}
}
/* English and Russian learning archives */

.gf-learning-archive[dir="ltr"] {
	direction: ltr;
	text-align: left;
}

.gf-learning-archive[dir="ltr"] .gf-learning-archive__header,
.gf-learning-archive[dir="ltr"] .gf-learning-archive__eyebrow,
.gf-learning-archive[dir="ltr"] .gf-learning-archive__header h1,
.gf-learning-archive[dir="ltr"] .gf-learning-card__title,
.gf-learning-archive[dir="ltr"] .gf-learning-archive__empty {
	text-align: left;
}

.gf-learning-archive[dir="ltr"] .gf-learning-archive__intro {
	direction: ltr;
	text-align: justify;
	text-align-last: left;
}