/**
 * Danesh Land — Podcast System: Single Page Styles (child-theme only)
 * تاریخ ایجاد: 2026-08-25
 */

.tdch-p-single {
	direction: rtl;
	text-align: right;
	max-width: 960px;
	margin: 0 auto;
	padding: 24px 16px 60px;
	color: #1c1c2e;
}

.tdch-p-section__title {
	font-size: 20px;
	font-weight: 700;
	color: #1c1c2e;
	margin: 0 0 16px;
}

/* ---------- Hero ---------- */
.tdch-p-hero {
	display: flex;
	gap: 24px;
	background: linear-gradient(135deg, #eef1ff 0%, #dfe6ff 100%);
	border-radius: 16px;
	padding: 24px;
	margin-bottom: 24px;
	align-items: center;
}

.tdch-p-hero__media {
	flex: 0 0 220px;
}

.tdch-p-hero__image {
	width: 100%;
	border-radius: 16px;
	box-shadow: 0 8px 24px rgba(20, 20, 40, 0.08);
}

.tdch-p-hero__content {
	flex: 1;
	min-width: 0;
}

.tdch-p-hero__title {
	font-size: 28px;
	font-weight: 800;
	color: #1c1c2e;
	margin: 0 0 12px;
}

.tdch-p-hero__recorder {
	display: flex;
	align-items: center;
	gap: 8px;
	color: #6a6a85;
	margin-bottom: 16px;
}

.tdch-p-hero__recorder-avatar {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.tdch-p-hero__audio {
	width: 100%;
	border-radius: 999px;
}

/* ---------- Generic Section ---------- */
.tdch-p-section {
	background: #fff;
	border-radius: 16px;
	box-shadow: 0 2px 10px rgba(20, 20, 40, 0.05);
	padding: 24px;
	margin-bottom: 24px;
}

.tdch-p-description__content {
	color: #444;
	line-height: 2;
}

/* ---------- Recorder ---------- */
.tdch-p-recorder__box {
	display: flex;
	align-items: center;
	gap: 16px;
}

.tdch-p-recorder__avatar {
	width: 64px;
	height: 64px;
	border-radius: 50%;
	object-fit: cover;
	flex-shrink: 0;
}

.tdch-p-recorder__name {
	display: block;
	font-weight: 700;
	color: #1c1c2e;
	margin-bottom: 6px;
}

.tdch-p-recorder__social {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
}

.tdch-p-recorder__social a {
	background: #eef1ff;
	color: #3949ab;
	border-radius: 999px;
	padding: 6px 14px;
	font-size: 13px;
	text-decoration: none;
	transition: background 0.2s ease;
}

.tdch-p-recorder__social a:hover {
	background: #dfe6ff;
}

/* ---------- Teacher Endorsement ---------- */
.tdch-p-endorse__list {
	display: flex;
	flex-wrap: wrap;
	gap: 14px;
	margin-bottom: 16px;
}

.tdch-p-endorse__item {
	display: flex;
	align-items: center;
	gap: 8px;
	background: #f7f8fa;
	border-radius: 999px;
	padding: 6px 14px 6px 6px;
	text-decoration: none;
	color: #1c1c2e;
	font-size: 14px;
	transition: box-shadow 0.2s ease;
}

.tdch-p-endorse__item:hover {
	box-shadow: 0 2px 8px rgba(20, 20, 40, 0.08);
}

.tdch-p-endorse__item img {
	width: 32px;
	height: 32px;
	border-radius: 50%;
	object-fit: cover;
}

.tdch-p-endorse__link {
	display: inline-block;
	background: #3949ab;
	color: #fff;
	border-radius: 10px;
	padding: 10px 20px;
	text-decoration: none;
	font-weight: 600;
	transition: background 0.2s ease;
}

.tdch-p-endorse__link:hover {
	background: #2f3c8e;
	color: #fff;
}

/* ---------- FAQ ---------- */
.tdch-p-faq__list {
	display: flex;
	flex-direction: column;
	gap: 12px;
}

.tdch-p-faq__item {
	border: 1px solid #e3e6f0;
	border-radius: 12px;
	padding: 16px;
}

.tdch-p-faq__item--extra {
	max-height: 0;
	opacity: 0;
	overflow: hidden;
	padding-top: 0;
	padding-bottom: 0;
	margin: 0;
	border-width: 0;
	transition: max-height 0.35s ease, opacity 0.35s ease, padding 0.35s ease;
}

.tdch-p-faq__list.is-expanded .tdch-p-faq__item--extra {
	opacity: 1;
	padding-top: 16px;
	padding-bottom: 16px;
	margin-bottom: 0;
	border-width: 1px;
}

.tdch-p-faq__question {
	font-size: 16px;
	font-weight: 700;
	color: #1c1c2e;
	margin: 0 0 8px;
}

.tdch-p-faq__answer {
	color: #444;
	line-height: 1.9;
}

.tdch-p-faq__toggle {
	display: block;
	margin: 18px auto 0;
	background: #eef1ff;
	color: #3949ab;
	border: none;
	border-radius: 999px;
	padding: 10px 24px;
	font-weight: 600;
	cursor: pointer;
	transition: background 0.2s ease;
}

.tdch-p-faq__toggle:hover {
	background: #dfe6ff;
}

/* ---------- Related Courses Slider ---------- */
.tdch-p-courses__wrap {
	position: relative;
	display: flex;
	align-items: center;
	gap: 8px;
}

.tdch-p-courses__track {
	display: flex;
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x proximity;
	scroll-behavior: smooth;
	padding: 4px;
	flex: 1;
}

.tdch-p-courses__track::-webkit-scrollbar {
	height: 6px;
}

.tdch-p-courses__track::-webkit-scrollbar-thumb {
	background: #dfe6ff;
	border-radius: 999px;
}

.tdch-p-courses__card {
	flex: 0 0 200px;
	scroll-snap-align: start;
	background: #f7f8fa;
	border-radius: 12px;
	overflow: hidden;
	text-decoration: none;
	color: #1c1c2e;
	display: block;
	transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.tdch-p-courses__card:hover {
	box-shadow: 0 6px 18px rgba(20, 20, 40, 0.1);
	transform: translateY(-2px);
}

.tdch-p-courses__card img {
	width: 100%;
	height: 120px;
	object-fit: cover;
	display: block;
}

.tdch-p-courses__card-title {
	display: block;
	padding: 10px 12px;
	font-size: 14px;
	font-weight: 600;
}

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

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

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	.tdch-p-hero {
		flex-direction: column;
		text-align: center;
	}

	.tdch-p-hero__media {
		flex: 0 0 auto;
		width: 100%;
		max-width: 260px;
	}

	.tdch-p-hero__recorder {
		justify-content: center;
	}

	.tdch-p-recorder__box {
		flex-direction: column;
		text-align: center;
	}

	.tdch-p-recorder__social {
		justify-content: center;
	}

	.tdch-p-endorse__list {
		justify-content: center;
	}
}

@media (max-width: 480px) {
	.tdch-p-single {
		padding: 16px 10px 40px;
	}

	.tdch-p-section {
		padding: 16px;
	}

	.tdch-p-hero {
		padding: 16px;
	}

	.tdch-p-hero__title {
		font-size: 22px;
	}

	.tdch-p-courses__card {
		flex-basis: 160px;
	}
}
