/**
 * «آموزش» hub page (ADR-046). RTL first.
 * Language cards stay visible even with no books yet; those are dimmed and labelled «به‌زودی».
 */

.kf-learn {
	display: flex;
	flex-direction: column;
	gap: 28px;
}

.kf-learn__banner {
	border-radius: 16px;
	overflow: hidden;
	line-height: 0;
}

.kf-learn__banner-img {
	width: 100%;
	height: auto;
	display: block;
}

.kf-learn__section h2 {
	margin: 0 0 6px;
	font-size: 1.35rem;
}

.kf-learn__section h2 a {
	color: inherit;
	text-decoration: none;
}

.kf-learn__lead {
	margin: 0 0 16px;
	color: var(--kf-learn-muted, #555);
	line-height: 1.9;
}

.kf-learn__grid {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
	gap: 14px;
}

.kf-learn__card {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 6px;
	padding: 18px 12px 14px;
	border: 1px solid var(--kf-learn-border, #e6e6ea);
	border-radius: 14px;
	background: var(--kf-learn-bg, #fff);
	color: inherit;
	text-align: center;
	text-decoration: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.kf-learn__card:hover,
.kf-learn__card:focus-visible {
	border-color: var(--kf-learn-accent, #123a6b);
	box-shadow: 0 6px 18px rgba(18, 58, 107, 0.12);
	transform: translateY(-2px);
}

.kf-learn__card--soon {
	opacity: 0.72;
}

.kf-learn__badge {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 44px;
	height: 44px;
	border-radius: 50%;
	background: var(--kf-learn-accent, #123a6b);
	color: #fff;
	font-weight: 700;
	font-size: 0.95rem;
	letter-spacing: 0.5px;
	direction: ltr;
}

.kf-learn__name {
	font-weight: 600;
}

.kf-learn__count {
	font-size: 0.85rem;
	color: var(--kf-learn-muted, #555);
}

.kf-learn__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 8px 18px;
}

.kf-learn__list li {
	padding: 8px 0;
	border-bottom: 1px dashed var(--kf-learn-border, #e6e6ea);
}

@media (max-width: 480px) {
	.kf-learn__grid {
		grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
	}
}

/* ADR-047: link back up the learning tree. */
.kf-learn__up {
	margin: 0 0 8px;
	font-size: 14px;
}

.kf-learn__up a {
	color: #475569;
	text-decoration: none;
}

.kf-learn__up a:hover {
	color: #0b1d3a;
}

/* ADR-047: the titles on a language page. */
.kf-learn__books {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
	gap: 18px;
}

.kf-learn__book {
	display: flex;
	flex-direction: column;
	gap: 8px;
	padding: 12px;
	border: 1px solid #e2e8f0;
	border-radius: 14px;
	background: #fff;
	color: inherit;
	text-decoration: none;
	transition: box-shadow 0.15s ease, transform 0.15s ease;
}

.kf-learn__book:hover {
	transform: translateY(-2px);
	box-shadow: 0 8px 20px rgba(11, 29, 58, 0.12);
}

.kf-learn__book img {
	width: 100%;
	height: auto;
	border-radius: 10px;
	display: block;
}

.kf-learn__book-title {
	font-weight: 700;
	line-height: 1.5;
	color: #0b1d3a;
}

.kf-learn__book-price {
	color: #475569;
	font-size: 14px;
}

.kf-learn__cover--empty {
	display: flex;
	align-items: center;
	justify-content: center;
	aspect-ratio: 1 / 1;
	border-radius: 10px;
	background: linear-gradient(140deg, #0b1d3a, #14345f);
	color: #ff9f1c;
	font-weight: 700;
	font-size: 15px;
}
