/* ——— سینگل مقاله ——— */

body.yadak14-single-post .page-title,
body.yadak14-single-post .wd-page-title,
body.yadak14-single-post .single-breadcrumbs-wrapper {
	display: none !important;
}

/* فاصله هدر مثل بقیه صفحات یدک۱۴ */
body.yadak14-single-post .whb-header {
	margin-bottom: unset !important;
}

body.yadak14-single-post .website-wrapper,
body.yadak14-single-post .main-page-wrapper,
body.yadak14-single-post .site-content,
body.yadak14-single-post .content-layout-wrapper {
	background: #fff !important;
}

body.yadak14-single-post .main-page-wrapper,
body.yadak14-single-post .site-content,
body.yadak14-single-post .yd-post-content-area {
	padding-top: 0 !important;
	margin-top: 0 !important;
}

body.yadak14-single-post .content-layout-wrapper > .site-content,
body.yadak14-single-post--no-sidebar .site-content,
body.yadak14-single-post .yd-post-content-area {
	flex: 0 0 100% !important;
	max-width: 100% !important;
	width: 100% !important;
}

body.yadak14-single-post .sidebar-container,
body.yadak14-single-post aside.sidebar {
	display: none !important;
}

.yd-post-content-area {
	padding: 0 !important;
}

.yd-post-article {
	margin: 0 !important;
}

.yd-post {
	--yd-post-ink: #0f172a;
	--yd-post-muted: #64748b;
	--yd-post-border: rgba(226, 232, 240, 0.95);
	--yd-post-radius: 20px;
	--yd-post-pad-x: 15px;
	box-sizing: border-box;
	width: 100%;
	max-width: 100%;
	margin: 0;
	padding: 0.75rem var(--yd-post-pad-x) 2rem;
}

/* بردکرامب */
.yd-post > .yd-post-breadcrumb,
body.yadak14-single-post .yd-post > .yd-post-breadcrumb {
	box-sizing: border-box;
	max-width: 100%;
	margin: 0 0 1rem !important;
	padding: 0 !important;
}

body.yadak14-single-post .yd-post-breadcrumb {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	margin: 0;
	padding: 0;
	max-height: 18px;
	overflow: hidden;
}

body.yadak14-single-post .yd-post-breadcrumb__scroll {
	display: block;
	width: 100%;
	max-width: 100%;
	min-width: 0;
	overflow-x: auto;
	overflow-y: hidden;
	-webkit-overflow-scrolling: touch;
	overscroll-behavior-x: contain;
	scrollbar-width: none;
	-ms-overflow-style: none;
}

body.yadak14-single-post .yd-post-breadcrumb__scroll::-webkit-scrollbar {
	display: none;
	width: 0;
	height: 0;
}

body.yadak14-single-post .yd-post-breadcrumb__trail {
	display: inline-flex;
	flex-flow: row nowrap;
	align-items: center;
	width: max-content;
	max-width: none;
	margin: 0;
	padding: 0;
	white-space: nowrap;
	font-size: 11px;
	font-weight: 500;
	line-height: 16px;
	color: var(--yd-post-muted);
}

body.yadak14-single-post .yd-post-breadcrumb__item {
	flex: 0 0 auto;
	display: inline-flex;
	align-items: center;
	white-space: nowrap;
}

body.yadak14-single-post .yd-post-breadcrumb__item a {
	color: inherit;
	text-decoration: none;
	opacity: 0.88;
}

body.yadak14-single-post .yd-post-breadcrumb__item a:hover,
body.yadak14-single-post .yd-post-breadcrumb__item a:focus-visible {
	opacity: 1;
	text-decoration: underline;
}

body.yadak14-single-post .yd-post-breadcrumb__sep {
	flex: 0 0 auto;
	margin: 0 4px;
	opacity: 0.4;
	user-select: none;
}

/* عنوان */
.yd-post__head {
	margin: 0 0 1.25rem;
}

.yd-post__title {
	margin: 0;
	color: var(--yd-post-ink);
	font-size: clamp(1.35rem, 3.8vw, 2rem);
	font-weight: 800;
	line-height: 1.45;
	letter-spacing: -0.02em;
}

/* تصویر شاخص */
.yd-post__figure {
	margin: 0 0 1.5rem;
	border-radius: var(--yd-post-radius);
	overflow: hidden;
	border: 1px solid var(--yd-post-border);
	background: #fff;
	box-shadow: 0 18px 48px rgba(15, 17, 22, 0.08);
}

.yd-post__image {
	display: block;
	width: 100%;
	height: auto;
	vertical-align: middle;
}

/* محتوا */
.yd-post__content {
	color: var(--yd-post-ink);
	font-size: 1rem;
	line-height: 1.95;
}

.yd-post__content > :first-child {
	margin-top: 0;
}

.yd-post__content > :last-child {
	margin-bottom: 0;
}

.yd-post__content :is(h2, h3, h4) {
	margin: 1.75rem 0 0.75rem;
	color: var(--yd-post-ink);
	font-weight: 800;
	line-height: 1.4;
}

.yd-post__content h2 {
	font-size: 1.35rem;
}

.yd-post__content h3 {
	font-size: 1.15rem;
}

.yd-post__content p {
	margin: 0 0 1rem;
}

.yd-post__content a {
	color: var(--y14-brand-primary, #dd0508);
	text-decoration: underline;
	text-underline-offset: 2px;
}

.yd-post__content a:hover {
	text-decoration-thickness: 2px;
}

.yd-post__content :is(ul, ol) {
	margin: 0 0 1rem;
	padding-inline-start: 1.25rem;
}

.yd-post__content blockquote {
	margin: 1.25rem 0;
	padding: 1rem 1.1rem;
	border-inline-start: 4px solid var(--y14-brand-primary, #dd0508);
	border-radius: 12px;
	background: rgba(221, 5, 8, 0.05);
	color: #334155;
}

.yd-post__content :is(img, figure) {
	max-width: 100%;
	height: auto;
}

.yd-post__content figure {
	margin: 1.25rem 0;
}

.yd-post__content figcaption {
	margin-top: 0.5rem;
	color: var(--yd-post-muted);
	font-size: 0.875rem;
	text-align: center;
}

/* محصولات مرتبط — همان استایل سکشن صفحه اصلی */
body.yadak14-single-post .yd-post-related {
	--ydh-red: var(--y14-brand-primary, #dd0508);
	--ydh-black: var(--y14-brand-ink, #0b0b0c);
	--ydh-gray-500: #5c616b;
	--ydh-red-soft: rgba(221, 5, 8, 0.1);
	--ydh-radius-lg: 22px;
	--ydh-ease: cubic-bezier(0.22, 0.8, 0.24, 1);
	margin-top: 2rem;
	margin-inline: calc(-1 * var(--yd-post-pad-x));
	padding-block: clamp(1.25rem, 3vw, 2rem);
	padding-inline: var(--yd-post-pad-x);
	width: calc(100% + (2 * var(--yd-post-pad-x)));
	max-width: none;
}

body.yadak14-single-post .yd-post-related .ydh-container {
	width: 100%;
	max-width: 1180px;
	margin-inline: auto;
	padding-inline: 0;
}

body.yadak14-single-post .yd-post-related .ydh-sec-head {
	display: flex;
	flex-wrap: wrap;
	align-items: flex-end;
	justify-content: space-between;
	gap: 1rem 1.25rem;
	margin-bottom: 1.35rem;
}

body.yadak14-single-post .yd-post-related .ydh-sec-head__eyebrow {
	margin: 0 0 0.35rem;
	font-size: 0.78rem;
	font-weight: 800;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: var(--ydh-red);
}

body.yadak14-single-post .yd-post-related .ydh-sec-head__title {
	margin: 0;
	font-size: clamp(1.35rem, 2.8vw, 1.85rem);
	font-weight: 900;
	line-height: 1.2;
	color: var(--ydh-black);
}

body.yadak14-single-post .yd-post-related .ydh-sec-head__title::after {
	content: '';
	display: block;
	width: 3rem;
	height: 4px;
	margin-top: 0.5rem;
	border-radius: 999px;
	background: linear-gradient(90deg, var(--ydh-red), #ff6b6e);
}

body.yadak14-single-post .yd-post-related .ydh-sec-head__sub {
	margin: 0.5rem 0 0;
	max-width: 36rem;
	font-size: 0.95rem;
	color: var(--ydh-gray-500);
}

body.yadak14-single-post .yd-post-related .ydh-sec-head__link {
	display: inline-flex;
	align-items: center;
	gap: 0.35rem;
	padding: 0.55rem 1rem;
	border-radius: 999px;
	font-size: 0.88rem;
	font-weight: 800;
	color: var(--ydh-red);
	text-decoration: none;
	background: var(--ydh-red-soft);
	border: 1px solid rgba(221, 5, 8, 0.15);
	transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

body.yadak14-single-post .yd-post-related .ydh-sec-head__link:hover {
	color: #fff;
	background: linear-gradient(135deg, var(--ydh-red), #ff4d50);
	border-color: transparent;
	box-shadow: 0 12px 28px rgba(221, 5, 8, 0.28);
	transform: translateY(-2px);
}

body.yadak14-single-post .yd-post-related .ydh-sec-head__link svg {
	transition: transform 0.2s ease;
}

body.yadak14-single-post .yd-post-related .ydh-sec-head__link:hover svg {
	transform: translateX(-3px);
}

/* دیدگاه‌ها */
.yd-post__comments {
	margin-top: 2rem;
	padding-top: 1.5rem;
	border-top: 1px solid var(--yd-post-border);
}

body.yadak14-single-post .yd-post__comments .comments-area {
	margin: 0;
	padding: 0;
}

body.yadak14-single-post .yd-post__comments .comment-list {
	margin: 0;
	padding: 0;
	list-style: none;
}

body.yadak14-single-post .yd-post__comments .comment {
	margin: 0 0 1rem;
	padding: 1rem;
	border: 1px solid var(--yd-post-border);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.92);
}

body.yadak14-single-post .yd-post__comments .comment-respond {
	margin-top: 1.25rem;
	padding: 1.25rem;
	border: 1px solid var(--yd-post-border);
	border-radius: 16px;
	background: rgba(255, 255, 255, 0.94);
}

body.yadak14-single-post .yd-post__comments .comment-reply-title {
	margin: 0 0 1rem;
	font-size: 1.05rem;
	font-weight: 800;
}

body.yadak14-single-post .yd-post__comments .comment-form label {
	display: block;
	margin-bottom: 0.35rem;
	font-weight: 600;
}

body.yadak14-single-post .yd-post__comments .comment-form input[type="text"],
body.yadak14-single-post .yd-post__comments .comment-form input[type="email"],
body.yadak14-single-post .yd-post__comments .comment-form input[type="url"],
body.yadak14-single-post .yd-post__comments .comment-form textarea {
	width: 100%;
	margin-bottom: 0.85rem;
	padding: 0.7rem 0.85rem;
	border: 1px solid var(--yd-post-border);
	border-radius: 12px;
	background: #fff;
}

body.yadak14-single-post .yd-post__comments .form-submit input[type="submit"] {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 0.65rem 1.25rem;
	border: 0;
	border-radius: 999px;
	background: var(--y14-brand-primary, #dd0508);
	color: #fff;
	font-weight: 700;
	cursor: pointer;
}

body.yadak14-single-post .yd-post__comments .form-submit input[type="submit"]:hover {
	background: var(--y14-brand-primary-dark, #a80406);
}

@media (min-width: 768px) {
	.yd-post {
		--yd-post-pad-x: clamp(1rem, 3vw, 1.5rem);
		padding-top: 1rem;
		padding-bottom: 3rem;
	}
}

@media (max-width: 767px) {
	body.yadak14-single-post .main-page-wrapper > .container,
	body.yadak14-single-post .main-page-wrapper > .container-fluid {
		padding-left: 0 !important;
		padding-right: 0 !important;
	}

	body.yadak14-single-post .content-layout-wrapper {
		margin-left: 0 !important;
		margin-right: 0 !important;
	}

	body.yadak14-single-post .yd-post__figure {
		border-radius: 14px;
		box-shadow: none;
	}
}
