/*
 * Danesh Land — Teacher Profile System — استایل صفحه عمومی استاد
 * کدنیم: TEACHER-SINGLE-PAGE (بخش نمایش عمومی)
 * این فایل فقط داخل چایلدتم danesh-land-child قرار دارد.
 */

.tdch-teacher-single {
	direction: rtl;
	text-align: right;
	background: #f7f8fa;
	padding: 32px 0 64px;
}

.tdch-teacher-single__wrap {
	max-width: 960px;
	margin: 0 auto;
	padding: 0 20px;
	display: flex;
	flex-direction: column;
	gap: 24px;
}

/* ---------- هدر ---------- */
.tdch-t-hero {
	display: flex;
	align-items: center;
	gap: 28px;
	background: #fff;
	border-radius: 16px;
	padding: 32px;
	box-shadow: 0 4px 24px rgba(20, 20, 40, .06);
	flex-wrap: wrap;
}

.tdch-t-hero__photo {
	flex-shrink: 0;
	width: 160px;
	height: 160px;
	border-radius: 50%;
	overflow: hidden;
	box-shadow: 0 0 0 6px #f0f3ff;
}

.tdch-t-hero__photo img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tdch-t-hero__info {
	flex: 1;
	min-width: 220px;
}

.tdch-t-hero__name {
	font-size: clamp(22px, 3vw, 32px);
	margin: 0 0 8px;
	font-weight: 700;
	color: #1c1c2e;
}

.tdch-t-hero__role {
	display: inline-block;
	background: #eef1ff;
	color: #3949ab;
	font-size: 15px;
	padding: 6px 16px;
	border-radius: 999px;
	margin: 0 0 14px;
}

.tdch-t-social {
	list-style: none;
	display: flex;
	gap: 10px;
	margin: 0;
	padding: 0;
	flex-wrap: wrap;
}

.tdch-t-social__item a {
	display: flex;
	align-items: center;
	justify-content: center;
	width: 40px;
	height: 40px;
	border-radius: 50%;
	background: #f0f3ff;
	overflow: hidden;
	transition: transform .15s ease, background .15s ease;
}

.tdch-t-social__item a:hover {
	background: #dfe6ff;
	transform: translateY(-2px);
}

.tdch-t-social__item img {
	width: 20px;
	height: 20px;
	object-fit: contain;
}

.tdch-t-social__fallback {
	font-weight: 700;
	color: #3949ab;
}

/* ---------- بخش‌های عمومی ---------- */
.tdch-t-section {
	background: #fff;
	border-radius: 16px;
	padding: 28px 32px;
	box-shadow: 0 4px 24px rgba(20, 20, 40, .05);
}

.tdch-t-section__title {
	font-size: 20px;
	font-weight: 700;
	color: #1c1c2e;
	margin: 0 0 18px;
	position: relative;
	padding-inline-start: 14px;
}

.tdch-t-section__title::before {
	content: "";
	position: absolute;
	inline-size: 5px;
	inset-inline-start: 0;
	top: 3px;
	bottom: 3px;
	border-radius: 3px;
	background: #3949ab;
}

/* ---------- ویدیو ---------- */
.tdch-t-video video {
	width: 100%;
	border-radius: 12px;
	display: block;
	background: #000;
}

/* ---------- Bio ---------- */
.tdch-t-bio {
	background: #eef1ff;
	box-shadow: none;
}

.tdch-t-bio p {
	margin: 0;
	font-size: 16px;
	line-height: 1.9;
	color: #2b2b45;
}

/* ---------- توضیحات کامل ---------- */
.tdch-t-description__content {
	font-size: 15px;
	line-height: 2;
	color: #333;
}

.tdch-t-description__content img {
	max-width: 100%;
	height: auto;
	border-radius: 8px;
}

/* ---------- دستاوردها ---------- */
.tdch-t-achievements__list {
	list-style: none;
	margin: 0;
	padding: 0;
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
	gap: 12px;
}

.tdch-t-achievements__item {
	display: flex;
	align-items: flex-start;
	gap: 10px;
	background: #f7f8fa;
	border-radius: 10px;
	padding: 12px 14px;
	font-size: 14.5px;
	line-height: 1.7;
	color: #2b2b45;
}

.tdch-t-achievements__icon {
	flex-shrink: 0;
	width: 22px;
	height: 22px;
	border-radius: 50%;
	background: #3949ab;
	color: #fff;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 12px;
}

/* ---------- رزومه (تحصیلی/کاری) ---------- */
.tdch-t-resume__list {
	list-style: none;
	margin: 0;
	padding: 0;
	position: relative;
	border-inline-start: 2px solid #eef1ff;
}

.tdch-t-resume__item {
	position: relative;
	padding: 4px 0 20px 24px;
	padding-inline-end: 24px;
	padding-inline-start: 0;
}

.tdch-t-resume__item:last-child {
	padding-bottom: 0;
}

.tdch-t-resume__dot {
	position: absolute;
	inset-inline-start: -7px;
	top: 6px;
	width: 12px;
	height: 12px;
	border-radius: 50%;
	background: #3949ab;
	box-shadow: 0 0 0 4px #fff;
}

.tdch-t-resume__body {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding-inline-start: 20px;
}

.tdch-t-resume__body strong {
	font-size: 15.5px;
	color: #1c1c2e;
}

.tdch-t-resume__body span {
	font-size: 13.5px;
	color: #777;
}

/* ---------- پادکست ---------- */
.tdch-t-audio audio {
	width: 100%;
}

/* ---------- اسلایدر دوره‌ها ---------- */
.tdch-t-courses__viewport {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tdch-t-courses__track {
	list-style: none;
	margin: 0;
	padding: 4px 2px;
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	flex: 1;
}

.tdch-t-courses__track::-webkit-scrollbar {
	height: 6px;
}
.tdch-t-courses__track::-webkit-scrollbar-thumb {
	background: #dfe6ff;
	border-radius: 3px;
}

.tdch-t-courses__slide {
	flex: 0 0 calc((100% - 3 * 16px) / 4.5);
	scroll-snap-align: start;
	min-width: 160px;
}

.tdch-t-courses__card {
	display: block;
	text-decoration: none;
	color: inherit;
	border-radius: 12px;
	overflow: hidden;
	background: #f7f8fa;
	transition: transform .15s ease, box-shadow .15s ease;
}

.tdch-t-courses__card:hover {
	transform: translateY(-3px);
	box-shadow: 0 8px 20px rgba(20, 20, 40, .12);
}

.tdch-t-courses__thumb {
	display: block;
	aspect-ratio: 4 / 3;
	background: #e5e8f5;
	overflow: hidden;
}

.tdch-t-courses__thumb img {
	width: 100%;
	height: 100%;
	object-fit: cover;
	display: block;
}

.tdch-t-courses__title {
	display: block;
	padding: 10px 12px;
	font-size: 13.5px;
	font-weight: 600;
	color: #1c1c2e;
	line-height: 1.6;
}

.tdch-t-courses__nav {
	flex-shrink: 0;
	width: 36px;
	height: 36px;
	border-radius: 50%;
	border: none;
	background: #eef1ff;
	color: #3949ab;
	font-size: 20px;
	cursor: pointer;
	display: flex;
	align-items: center;
	justify-content: center;
}

.tdch-t-courses__nav:hover {
	background: #dfe6ff;
}

/* ---------- ریسپانسیو ---------- */
@media (max-width: 767px) {
	.tdch-t-hero {
		flex-direction: column;
		text-align: center;
		padding: 24px;
	}
	.tdch-t-hero__info {
		text-align: center;
	}
	.tdch-t-social {
		justify-content: center;
	}
	.tdch-t-section {
		padding: 20px;
	}
	.tdch-t-courses__slide {
		flex: 0 0 calc((100% - 16px) / 2.3);
	}
}

@media (max-width: 480px) {
	.tdch-t-hero__photo {
		width: 120px;
		height: 120px;
	}
	.tdch-t-courses__slide {
		flex: 0 0 70%;
	}
}
