/* Taktaz blog design — archive + single */
:root {
	--tk-brand: #1e73be;
	--tk-brand-dark: #14508a;
	--tk-ink: #1c1c25;
	--tk-muted: #6b7180;
	--tk-line: #e7eaf0;
	--tk-bg: #f5f7fa;
	--tk-radius: 18px;
	--tk-shadow: 0 1px 2px rgba(20, 30, 60, .05), 0 8px 24px rgba(20, 30, 60, .06);
	--tk-shadow-hover: 0 4px 8px rgba(20, 30, 60, .06), 0 18px 40px rgba(30, 115, 190, .16);
}

body.archive, body.blog, body.search, body.single-post { background: var(--tk-bg); }
body.archive .site-main, body.blog .site-main, body.search .site-main { padding-bottom: 60px; }

/* ---------- Page header (rounded only on the homepage) ---------- */
body:not(.home) .page-header, body:not(.home) .wgl-theme-header, body:not(.home) .wgl-site-header { border-radius: 0 !important; }
body.archive .blog_archive-cat { display: none; }

/* ---------- Card grid ---------- */
body:is(.archive, .blog, .search) .blog-posts .container-grid {
	display: grid !important;
	grid-template-columns: repeat(2, minmax(0, 1fr));
	gap: 28px;
	margin: 0 !important;
}
body:is(.archive, .blog, .search) .blog-posts .container-grid:before,
body:is(.archive, .blog, .search) .blog-posts .container-grid:after { display: none !important; content: none !important; }
body:is(.archive, .blog, .search) .blog-posts .container-grid > .item {
	width: auto !important; max-width: none !important; float: none !important;
	padding: 0 !important; margin: 0 !important;
}
body:is(.archive, .blog, .search) .blog-post {
	height: 100%; margin: 0 !important;
}
body:is(.archive, .blog, .search) .blog-post_wrapper {
	height: 100%; display: flex; flex-direction: column;
	background: #fff; border: 1px solid var(--tk-line); border-radius: var(--tk-radius);
	overflow: hidden; box-shadow: var(--tk-shadow);
	transition: transform .35s ease, box-shadow .35s ease;
}
body:is(.archive, .blog, .search) .blog-post_wrapper:hover {
	transform: translateY(-6px); box-shadow: var(--tk-shadow-hover);
}

/* media: uncropped image inside a stable 4:5 frame */
body:is(.archive, .blog, .search) .blog-post_media { position: relative; margin: 0 !important; overflow: hidden; background: #e9eef5; }
body:is(.archive, .blog, .search) .blog-post_media .blog-post_media_part { display: block; padding-bottom: 0 !important; border-radius: 0 !important; height: auto !important; }
body:is(.archive, .blog, .search) .blog-post_feature-link { display: block; position: static !important; }
body:is(.archive, .blog, .search) .blog-post_media img { border-radius: 0 !important; }
body:is(.archive, .blog, .search) .blog-post_media img {
	display: block; width: 100% !important; height: auto !important;
	aspect-ratio: 4 / 5; object-fit: cover; object-position: center top;
	transition: transform .6s ease;
}
body:is(.archive, .blog, .search) .blog-post_wrapper:hover .blog-post_media img { transform: scale(1.04); }
body:is(.archive, .blog, .search) .blog-post_media:after {
	content: ""; position: absolute; inset: auto 0 0 0; height: 35%;
	background: linear-gradient(to top, rgba(10,20,40,.28), transparent); pointer-events: none;
}

/* category chip */
body:is(.archive, .blog, .search) .post_meta-categories {
	position: absolute !important; top: 16px !important; right: 16px !important; left: auto !important;
	bottom: auto !important; z-index: 3; margin: 0 !important;
}
body:is(.archive, .blog, .search) .post_meta-categories a {
	display: inline-flex; align-items: center; padding: 6px 14px !important;
	font-size: 12px; font-weight: 700; line-height: 1.6; border-radius: 999px;
	background: rgba(255,255,255,.92) !important; color: var(--tk-brand-dark) !important;
	box-shadow: none !important; backdrop-filter: blur(6px);
}
body:is(.archive, .blog, .search) .post_meta-categories a span { display: none; }

/* content */
body:is(.archive, .blog, .search) .blog-post_content {
	display: flex; flex-direction: column; flex: 1;
	padding: 22px 24px 20px !important; margin: 0 !important; background: transparent !important;
	border: 0 !important; text-align: right;
}
body:is(.archive, .blog, .search) .post_meta-wrap { order: -1; margin: 0 0 10px !important; }
body:is(.archive, .blog, .search) .post_meta-wrap .post_date,
body:is(.archive, .blog, .search) .post_meta-wrap .meta-wrapper * {
	font-size: 13px; color: var(--tk-muted) !important;
}
body:is(.archive, .blog, .search) .blog-post_title {
	font-size: 18px !important; line-height: 1.85 !important; font-weight: 800; margin: 0 0 10px !important;
}
body:is(.archive, .blog, .search) .blog-post_title a {
	color: var(--tk-ink); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical;
	overflow: hidden; transition: color .2s;
}
body:is(.archive, .blog, .search) .blog-post_title a:hover { color: var(--tk-brand); }
body:is(.archive, .blog, .search) .blog-post_text { margin: 0 0 18px; }
body:is(.archive, .blog, .search) .blog-post_text p {
	margin: 0; font-size: 14px; line-height: 2; color: var(--tk-muted);
	display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden;
}

/* footer row */
body:is(.archive, .blog, .search) .blog-post_meta-wrap {
	margin-top: auto; padding-top: 16px; border-top: 1px solid var(--tk-line);
	display: flex; align-items: center; justify-content: space-between;
}
body:is(.archive, .blog, .search) .meta-info-wrap { display: none; }
body:is(.archive, .blog, .search) .read-more-wrap { margin: 0; }
body:is(.archive, .blog, .search) .button-read-more {
	display: inline-flex; align-items: center; gap: 8px; flex-direction: row-reverse;
	font-size: 14px; font-weight: 700; color: var(--tk-brand) !important;
	background: none !important; border: 0 !important; padding: 0 !important; box-shadow: none !important;
}
body:is(.archive, .blog, .search) .button-read-more span {
	float: none !important; margin: 0 !important; font-size: 12px; transition: transform .25s;
	transform: scaleX(-1);
}
body:is(.archive, .blog, .search) .button-read-more:hover span { transform: scaleX(-1) translateX(6px); }

/* ---------- Sidebar ---------- */
body:is(.archive, .blog, .search, .single-post) .sidebar .widget {
	background: #fff; border: 1px solid var(--tk-line); border-radius: var(--tk-radius);
	padding: 24px !important; margin-bottom: 24px !important; box-shadow: var(--tk-shadow);
}
body:is(.archive, .blog, .search, .single-post) .sidebar .widget-title { margin-bottom: 18px; }
body:is(.archive, .blog, .search, .single-post) .sidebar .widget-title_wrapper {
	font-size: 16px; font-weight: 800; color: var(--tk-ink);
	padding-right: 12px; border-right: 4px solid var(--tk-brand); line-height: 1.4; display: inline-block;
}
.sidebar .search-form input.search-field { border-radius: 12px; background: var(--tk-bg); border: 1px solid var(--tk-line); }
.sidebar .widget_categories ul li a { display: flex; justify-content: space-between; padding: 6px 0; }
.sidebar .widget img { border-radius: 10px; border: 0 !important; }

/* ---------- Pagination ---------- */
.wgl-pagination { margin-top: 40px; }
.wgl-pagination .page-numbers {
	min-width: 44px; height: 44px; line-height: 44px; border-radius: 12px !important;
	background: #fff; border: 1px solid var(--tk-line); color: var(--tk-ink); box-shadow: none;
	transition: all .2s;
}
.wgl-pagination .page-numbers:hover, .wgl-pagination .page-numbers.current {
	background: var(--tk-brand) !important; border-color: var(--tk-brand); color: #fff !important;
}

/* ---------- Typography (minimal, one family) ---------- */
body.archive, body.blog, body.search, body.single-post,
body:is(.archive, .blog, .search, .single-post) :is(h1, h2, h3, h4, h5, h6, p, a, li, span, input, button) { font-family: iranyekan, iransans, tahoma, sans-serif; }
body:is(.archive, .blog, .search) .blog-post_title { font-size: 17px !important; font-weight: 700 !important; line-height: 1.9 !important; }
body:is(.archive, .blog, .search) .blog-post_text p { font-size: 13.5px; line-height: 2.05; }

/* ---------- Responsive ---------- */
@media (max-width: 767px) {
	body:is(.archive, .blog, .search) .blog-posts .container-grid { grid-template-columns: 1fr; gap: 20px; }
}

/* ---------- Neutralise theme offsets (translate, margins, negative category margins) ---------- */
body:is(.archive, .blog, .search) .blog-post .blog-post_wrapper { margin: 0 !important; transform: none; padding: 0 !important; }
body:is(.archive, .blog, .search) .blog-post .blog-post_wrapper:hover { transform: translateY(-6px); }
body:is(.archive, .blog, .search) .blog-post_media .post_meta-categories,
body:is(.archive, .blog, .search) .blog-post_wrapper .post_meta-categories { margin: 0 !important; left: auto !important; right: 16px !important; top: 16px !important; padding: 0 !important; }
body:is(.archive, .blog, .search) .post_meta-categories span { line-height: 1 !important; }
body:is(.archive, .blog, .search) .blog-post .blog-post_content { padding: 22px 24px 20px !important; }
body:is(.archive, .blog, .search) .blog-post_text,
body:is(.archive, .blog, .search) .blog-post_text p { text-align: right; }

/* ---------- Site header: rounded only on the homepage ---------- */
body:not(.home) header.wgl-theme-header :is(.wgl-site-header, .container-wrapper, .elementor, .elementor-section.customheader, .elementor-section.customheader > .elementor-background-overlay, .elementor-section.customheader > .elementor-container),
body:not(.home) .wgl-theme-header .elementor-top-section { border-radius: 0 !important; }

/* ---------- Titles: beat theme's 36px link size ---------- */
body:is(.archive, .blog, .search) .blog-posts .blog-post_title > a,
body:is(.archive, .blog, .search) .blog-posts .blog-post_title a {
	font-size: 17px !important; line-height: 1.9 !important; font-weight: 700 !important; color: var(--tk-ink) !important;
	background: none !important; text-decoration: none !important;
}
body:is(.archive, .blog, .search) .blog-posts .blog-post_title a:hover { color: var(--tk-brand) !important; }

/* ---------- Sidebar: clean, aligned widgets ---------- */
body:is(.archive, .blog, .search, .single-post) .sidebar .widget { margin-left: 0 !important; margin-right: 0 !important; }
body:is(.archive, .blog, .search, .single-post) .sidebar .widget .widget-title { text-align: right !important; padding-bottom: 0 !important; margin: 0 0 16px !important; text-transform: none !important; overflow: visible; }
body:is(.archive, .blog, .search, .single-post) .sidebar .widget .widget-title:after { display: none !important; }
body:is(.archive, .blog, .search, .single-post) .sidebar .widget-title_wrapper { font-size: 15px !important; font-weight: 700; padding-right: 12px !important; }
body:is(.archive, .blog, .search, .single-post) .sidebar .widget_search .search-form { margin: 0 !important; }
body:is(.archive, .blog, .search, .single-post) .sidebar .widget_categories ul { margin: 0; padding: 0; list-style: none; }
body:is(.archive, .blog, .search, .single-post) .sidebar .widget_categories ul li { padding: 0 !important; margin: 0 !important; border-bottom: 1px solid var(--tk-line); }
body:is(.archive, .blog, .search, .single-post) .sidebar .widget_categories ul li:last-child { border-bottom: 0; }
body:is(.archive, .blog, .search, .single-post) .sidebar .widget_categories ul li:before { display: none !important; }
body:is(.archive, .blog, .search, .single-post) .sidebar .widget_categories ul li a {
	display: flex; flex-direction: row; align-items: center; justify-content: space-between;
	font-size: 14px; font-weight: 500; color: var(--tk-ink); padding: 11px 0;
}
body:is(.archive, .blog, .search, .single-post) .sidebar .widget_categories .post_count {
	min-width: 26px; height: 26px; line-height: 26px; font-size: 12px; font-weight: 500;
	margin: 0 !important; border-radius: 8px; background: var(--tk-bg); color: var(--tk-muted);
}

/* =====================================================================
   SINGLE POST
   ===================================================================== */
body.single-post { --tk-col: 100%; background: #fff; }

/* ---- header: light, compact, aligned with the text column ---- */
body.single-post .post_featured_bg {
	margin-top: 0 !important; background: var(--tk-bg) !important; border-bottom: 1px solid var(--tk-line);
}
body.single-post .post_featured_bg .blog-post-single-item {
	height: auto !important; padding: 44px 0 34px !important; color: var(--tk-ink) !important;
}
body.single-post .post_featured_bg .blog-post_bg_media { display: none !important; }
body.single-post .post_featured_bg :is(.single_meta, .item_wrapper, .blog-post_content, .wgl-container, .row) { height: auto !important; }
body.single-post .post_featured_bg .content-container {
	display: block !important; height: auto !important; width: 100% !important; max-width: var(--tk-col);
	margin: 0 auto !important; padding: 0 15px !important; float: none !important;
	opacity: 1 !important; transform: none !important; text-align: right !important;
}
body.single-post .post_featured_bg .post_meta-categories { position: static !important; display: block; margin: 0 0 12px !important; padding: 0 !important; }
body.single-post .post_featured_bg .post_meta-categories > span { line-height: 1 !important; }
body.single-post .post_featured_bg .post_meta-categories a {
	display: inline-block; padding: 5px 14px !important; border-radius: 999px; font-size: 12px !important; font-weight: 600; line-height: 1.6;
	background: rgba(30,115,190,.1) !important; color: var(--tk-brand) !important; box-shadow: none !important;
}
body.single-post .post_featured_bg .post_meta-categories a span { display: none !important; }
body.single-post .post_featured_bg h1.blog-post_title {
	display: block !important; margin: 0 0 16px !important; font-size: 27px !important; line-height: 1.75 !important;
	font-weight: 800 !important; color: var(--tk-ink) !important;
}
body.single-post .post_featured_bg h1.blog-post_title span { font-size: inherit !important; line-height: inherit !important; font-weight: inherit !important; color: inherit !important; }

/* meta row (theme makes this 200% wide with -50% margin — reset it) */
body.single-post .post_featured_bg .post_meta-wrap {
	width: auto !important; margin: 0 !important; padding: 0 !important;
	display: flex !important; flex-wrap: wrap; align-items: center; gap: 4px 0;
	font-size: 13px !important; font-weight: 400 !important; color: var(--tk-muted) !important;
}
body.single-post .post_featured_bg .post_meta-wrap > div,
body.single-post .post_featured_bg .post_meta-wrap .meta-wrapper > span { display: inline-flex; align-items: center; margin: 0 !important; padding: 0 !important; float: none !important; }
body.single-post .post_featured_bg .post_meta-wrap .meta-wrapper { display: inline-flex; margin: 0 !important; }
body.single-post .post_featured_bg .post_meta-wrap .meta-wrapper > span:before,
body.single-post .post_featured_bg .post_meta-wrap .meta-wrapper a:before { display: none !important; }
body.single-post .post_featured_bg .post_meta-wrap .meta-wrapper > span + span:before,
body.single-post .post_featured_bg .post_meta-wrap > div + div:before {
	content: "" !important; display: inline-block !important; position: static !important;
	width: 4px; height: 4px; border-radius: 50%; background: #c3c8d2 !important; margin: 0 12px; opacity: 1 !important;
}
body.single-post .post_featured_bg .post_meta-wrap :is(span, a, div, i) { font-size: 13px !important; font-weight: 400 !important; color: var(--tk-muted) !important; }
body.single-post .post_featured_bg .post_meta-wrap a:hover { color: var(--tk-brand) !important; }
body.single-post .post_featured_bg .post_meta-wrap .blog-post_likes-wrap { display: none !important; }
body.single-post .post_featured_bg .wgl-views:before { opacity: .6 !important; margin-left: 5px; }
body.single-post .post_featured_bg .post_comments-icon { margin-left: 5px; }

/* ---- reading column ---- */
body.single-post .single_type-3 { margin: 0 !important; }
body.single-post .single_type-3:not(.sidebar_right):not(.sidebar_left) #main-content { float: none; width: 100%; max-width: var(--tk-col); margin: 0 auto; padding-top: 32px; }
body.single-post .single_type-3:is(.sidebar_right, .sidebar_left) #main-content,
body.single-post .single_type-3:is(.sidebar_right, .sidebar_left) .sidebar-container { padding-top: 32px; }
@media (max-width: 767px) {
	body.single-post .single_type-3 .sidebar-container { display: none !important; }
}
body.single-post article.blog-post-single-item { margin: 0 !important; }
body.single-post article.blog-post-single-item .blog-post_content {
	padding: 0 !important; margin: 0 !important; font-size: 16px; line-height: 2.05; color: #33384a; text-align: justify;
}
body.single-post article.blog-post-single-item .blog-post_content :is(p, li) {
	font-size: 16px; line-height: 2.05; text-align: justify; text-justify: inter-word; margin: 0 0 1em;
}
body.single-post article.blog-post-single-item .blog-post_content :is(h2, h3, h4) {
	text-align: right; color: var(--tk-ink); font-weight: 700; line-height: 1.7; margin: 1.6em 0 .55em;
}
body.single-post article.blog-post-single-item .blog-post_content h2 { font-size: 20px; padding-right: 12px; border-right: 3px solid var(--tk-brand); }
body.single-post article.blog-post-single-item .blog-post_content h3 { font-size: 17.5px; }
body.single-post article.blog-post-single-item .blog-post_content h4 { font-size: 16px; }
body.single-post article.blog-post-single-item .blog-post_content strong { color: var(--tk-ink); font-weight: 700; }
body.single-post article.blog-post-single-item .blog-post_content a { color: var(--tk-brand); text-decoration: none; border-bottom: 1px dashed rgba(30,115,190,.45); }
body.single-post article.blog-post-single-item .blog-post_content a:hover { border-bottom-style: solid; }
body.single-post article.blog-post-single-item .blog-post_content :is(ul, ol) { padding-right: 1.3em; margin: 0 0 1em; }
body.single-post article.blog-post-single-item .blog-post_content img { max-width: 100%; height: auto; border-radius: 12px; }
body.single-post article.blog-post-single-item .blog-post_content blockquote {
	margin: 1.4em 0; padding: 14px 20px; background: var(--tk-bg); border: 0; border-right: 3px solid var(--tk-brand); border-radius: 10px;
}

/* slides at end of article: 3-up */
body.single-post .taktazmag-carousel-images { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin: 1.6em 0 0; }
body.single-post .taktazmag-carousel-images p { margin: 0 !important; }
body.single-post .taktazmag-carousel-images img { display: block; width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 12px !important; border: 1px solid var(--tk-line); }

/* tags + share: one row */
body.single-post .single_post_info {
	display: flex !important; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px;
	float: none !important; width: 100%; margin: 28px 0 0 !important; padding: 18px 0 0 !important; border-top: 1px solid var(--tk-line);
}
body.single-post .single_post_info .tagcloud-wrapper { margin: 0 !important; }
body.single-post .single_post_info .tagcloud { display: flex; flex-wrap: wrap; gap: 6px; }
body.single-post .single_post_info .tagcloud a {
	margin: 0 !important; padding: 3px 12px !important; border-radius: 999px; font-size: 12px !important; line-height: 1.9 !important;
	background: var(--tk-bg) !important; border: 1px solid var(--tk-line) !important; color: var(--tk-muted) !important; box-shadow: none !important;
}
body.single-post .single_post_info .tagcloud a:hover { color: var(--tk-brand) !important; border-color: var(--tk-brand) !important; }
body.single-post .single_info-share_social-wpapper, body.single-post .share_social-wpapper { margin: 0 !important; display: flex; gap: 6px; }
body.single-post .share_social-wpapper .share_link {
	display: inline-flex !important; align-items: center; justify-content: center; width: 36px; height: 36px; margin: 0 !important; padding: 0 !important;
	border-radius: 50%; background: var(--tk-bg) !important; border: 1px solid var(--tk-line) !important; color: var(--tk-muted) !important; box-shadow: none !important;
}
body.single-post .share_social-wpapper .share_link span { position: static !important; margin: 0 !important; padding: 0 !important; background: none !important; color: inherit !important; font-size: 14px; line-height: 1; width: auto; height: auto; }
body.single-post .share_social-wpapper .share_link .share_text { display: none !important; }
body.single-post .share_social-wpapper .share_link:hover { background: var(--tk-brand) !important; border-color: var(--tk-brand) !important; color: #fff !important; }
body.single-post .post_info-divider { display: none !important; }

/* prev / next */
body.single-post .zircona-post-navigation { margin: 28px 0 0 !important; padding: 0 !important; border: 0 !important; display: flex; gap: 12px; }
body.single-post .zircona-post-navigation:before, body.single-post .zircona-post-navigation:after { display: none !important; }
body.single-post .zircona-post-navigation > div { float: none !important; flex: 1; width: auto !important; margin: 0 !important; padding: 0 !important; }
body.single-post .zircona-post-navigation .info_wrapper a {
	display: flex; align-items: center; gap: 14px; padding: 12px; background: var(--tk-bg); border: 1px solid var(--tk-line); border-radius: 14px; transition: border-color .2s;
}
body.single-post .zircona-post-navigation .info_wrapper a:hover { border-color: var(--tk-brand); }
body.single-post .zircona-post-navigation :is(.image_prev, .image_next) {
	position: static !important; flex: 0 0 56px; width: 56px !important; height: 56px !important; margin: 0 !important; border-radius: 10px; overflow: hidden; background: none !important;
}
body.single-post .zircona-post-navigation :is(.image_prev, .image_next):before,
body.single-post .zircona-post-navigation :is(.image_prev, .image_next):after { display: none !important; }
body.single-post .zircona-post-navigation img { width: 56px; height: 56px; object-fit: cover; border-radius: 10px; }
body.single-post .zircona-post-navigation :is(.prev-link-info_wrapper, .next-link-info_wrapper) { background: none !important; padding: 0 !important; }
body.single-post .zircona-post-navigation :is(.prev_title, .next_title) { font-size: 14px !important; font-weight: 600 !important; line-height: 1.8 !important; margin: 0 !important; color: var(--tk-ink) !important; text-align: right !important; }
body.single-post .zircona-post-navigation :is(.meta-wrapper, .date_post) { font-size: 12px !important; color: var(--tk-muted) !important; text-align: right !important; }

/* related posts */
body.single-post .related_posts { margin: 40px 0 0 !important; padding: 32px 0 0 !important; border-top: 1px solid var(--tk-line); }
body.single-post .related_posts .zircona_module_title { text-align: right; margin: 0 0 18px !important; }
body.single-post .related_posts .zircona_module_title h4 { font-size: 18px !important; font-weight: 700; margin: 0; padding-right: 12px; border-right: 3px solid var(--tk-brand); line-height: 1.5; }
body.single-post .related_posts .zircona_module_title h4:after, body.single-post .related_posts .zircona_module_title:after { display: none !important; }
body.single-post .related_posts .blog-post { margin: 0 !important; }
body.single-post .related_posts .blog-post .blog-post_wrapper {
	margin: 0 6px !important; transform: none !important; padding: 0 !important; background: #fff !important;
	border: 1px solid var(--tk-line); border-radius: 14px; overflow: hidden;
}
body.single-post .related_posts .blog-post_media { margin: 0 !important; position: relative; }
body.single-post .related_posts .blog-post_media .blog-post_media_part { padding-bottom: 0 !important; border-radius: 0 !important; height: auto !important; }
body.single-post .related_posts .blog-post_feature-link { position: static !important; display: block; }
body.single-post .related_posts .blog-post_media img { display: block; width: 100% !important; height: auto !important; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 0 !important; }
body.single-post .related_posts .post_meta-categories { display: none !important; }
body.single-post .related_posts .blog-post_content { padding: 12px 14px 14px !important; text-align: right; }
body.single-post .related_posts .post_meta-wrap { margin: 0 0 4px !important; }
body.single-post .related_posts .post_meta-wrap * { font-size: 12px !important; color: var(--tk-muted) !important; }
body.single-post .related_posts .post_author { display: none !important; }
body.single-post .related_posts .blog-post_title { margin: 0 !important; }
body.single-post .related_posts .blog-post_title a {
	font-size: 14px !important; line-height: 1.85 !important; font-weight: 600 !important; color: var(--tk-ink) !important; background: none !important;
	display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}
body.single-post .related_posts .read-more-wrap { display: none !important; }

/* comments */
body.single-post #comments { margin: 40px 0 0 !important; padding: 32px 0 0 !important; border-top: 1px solid var(--tk-line); }
body.single-post #comments .comment-reply-title { font-size: 18px !important; font-weight: 700; margin: 0 0 4px !important; text-align: right; }
body.single-post #comments .comment-notes { font-size: 12.5px; color: var(--tk-muted); margin-bottom: 14px; }
body.single-post #comments .comment-form > div { padding-bottom: 12px !important; margin: 0 !important; }
body.single-post #comments label:after { display: none !important; }
body.single-post #comments :is(.form_field, textarea) {
	width: 100%; padding: 11px 14px !important; border: 1px solid var(--tk-line) !important; border-radius: 10px !important;
	background: var(--tk-bg) !important; font-size: 14px !important; box-shadow: none !important; margin: 0 !important;
}
body.single-post #comments textarea { min-height: 130px; }
body.single-post #comments :is(.form_field, textarea):focus { border-color: var(--tk-brand) !important; background: #fff !important; outline: 0; }
body.single-post #comments .form-submit :is(input, button)[type=submit] {
	border-radius: 10px !important; padding: 11px 28px !important; background: var(--tk-brand) !important; color: #fff !important;
	border: 0 !important; font-weight: 600; font-size: 14px !important; box-shadow: none !important;
}

@media (max-width: 767px) {
	body.single-post .post_featured_bg .blog-post-single-item { padding: 28px 0 22px !important; }
	body.single-post .post_featured_bg h1.blog-post_title { font-size: 21px !important; }
	body.single-post .single_type-3 #main-content { padding-top: 22px; }
	body.single-post article.blog-post-single-item .blog-post_content :is(p, li) { font-size: 15px; line-height: 2; }
	body.single-post article.blog-post-single-item .blog-post_content h2 { font-size: 18px; }
	body.single-post .taktazmag-carousel-images { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; }
	body.single-post .taktazmag-carousel-images p { flex: 0 0 72%; scroll-snap-align: center; }
	body.single-post .zircona-post-navigation { flex-direction: column; }
}

/* ---------- Post navigation: two equal slots ---------- */
body.single-post .zircona-post-navigation { display: grid !important; grid-template-columns: 1fr 1fr; gap: 14px; }
body.single-post .zircona-post-navigation > div { float: none !important; width: auto !important; min-width: 0; }
body.single-post .zircona-post-navigation .info_wrapper { height: 100%; }
body.single-post .zircona-post-navigation .info_wrapper > a {
	height: 100%; flex-direction: row !important; justify-content: flex-start !important; text-align: right !important;
	padding: 14px !important; background: var(--tk-bg); border: 1px solid var(--tk-line); border-radius: 14px; transition: border-color .2s, background .2s;
}
body.single-post .zircona-post-navigation .next-link_wrapper .info_wrapper > a { flex-direction: row-reverse !important; justify-content: flex-end !important; }
body.single-post .zircona-post-navigation .info_wrapper > a:hover { border-color: var(--tk-brand); background: #fff; }
body.single-post .zircona-post-navigation :is(.prev-link-info_wrapper, .next-link-info_wrapper, .tk-nav-all_info) { flex: 1; min-width: 0; margin: 0 !important; padding: 0 !important; }
body.single-post .zircona-post-navigation :is(.prev-link-info_wrapper, .next-link-info_wrapper, .tk-nav-all_info):before {
	display: block; font-size: 11.5px; font-weight: 600; color: var(--tk-brand); margin-bottom: 2px;
}
body.single-post .zircona-post-navigation .prev-link-info_wrapper:before { content: "مطلب قبلی"; }
body.single-post .zircona-post-navigation .next-link-info_wrapper:before { content: "مطلب بعدی"; }
body.single-post .zircona-post-navigation .tk-nav-all_info:before { content: "بلاگ"; }
body.single-post .zircona-post-navigation :is(.prev_title, .next_title) {
	max-width: none !important; display: -webkit-box !important; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
	font-size: 14px !important; line-height: 1.8 !important;
}
body.single-post .zircona-post-navigation .tk-nav-all_icon {
	flex: 0 0 56px; width: 56px; height: 56px; border-radius: 10px; display: flex; align-items: center; justify-content: center;
	background: rgba(30,115,190,.1); color: var(--tk-brand); font-size: 16px;
}
body.single-post .zircona-post-navigation .tk-nav-all_icon i { transform: scaleX(-1); }
body.single-post .zircona-post-navigation .tk-nav-all_icon i:before { margin: 0 !important; font-size: 16px; }

/* ---------- Related posts: fixed image frame, equal-height cards ---------- */
body.single-post .related_posts .slick-track { display: flex !important; }
body.single-post .related_posts .slick-slide { height: auto !important; float: none !important; }
body.single-post .related_posts .slick-slide > div, body.single-post .related_posts .item,
body.single-post .related_posts .blog-post { height: 100%; }
body.single-post .related_posts .blog-post .blog-post_wrapper { height: 100%; display: flex; flex-direction: column; transform: none !important; transition: border-color .2s, box-shadow .2s; }
body.single-post .related_posts .blog-post .blog-post_wrapper:hover { border-color: var(--tk-brand); box-shadow: var(--tk-shadow); }
body.single-post .related_posts .blog-post_media, body.single-post .related_posts .blog-post_media * { transform: none !important; }
body.single-post .related_posts .blog-post_media .blog-post_media_part {
	position: relative !important; aspect-ratio: 16 / 10; overflow: hidden; padding: 0 !important; margin: 0 !important; height: auto !important;
}
body.single-post .related_posts .blog-post_media .blog-post_feature-link { position: absolute !important; inset: 0; margin: 0 !important; }
body.single-post .related_posts .blog-post_media img {
	position: absolute !important; inset: 0; width: 100% !important; height: 100% !important; aspect-ratio: auto;
	object-fit: cover; object-position: center; margin: 0 !important;
}
body.single-post .related_posts .blog-post_media:after, body.single-post .related_posts .blog-post_media:before { display: none !important; }
body.single-post .related_posts .blog-post_content { flex: 1; padding: 14px 16px 16px !important; margin: 0 !important; top: 0 !important; }
body.single-post .related_posts .post_meta-wrap { margin: 0 0 6px !important; padding: 0 !important; }
body.single-post .related_posts .blog-post_title { margin: 0 !important; }

@media (max-width: 767px) {
	body.single-post .zircona-post-navigation { grid-template-columns: 1fr; }
}

/* ---------- Pagination: centered ---------- */
body:is(.archive, .blog, .search) .wgl-pagination { display: flex !important; justify-content: center; flex-wrap: wrap; gap: 8px; margin: 40px 0 0 !important; padding: 0 !important; text-align: center !important; float: none !important; }
body:is(.archive, .blog, .search) .wgl-pagination .page { margin: 0 !important; float: none !important; display: block; }
body:is(.archive, .blog, .search) .wgl-pagination .page-numbers {
	display: flex !important; align-items: center; justify-content: center; min-width: 42px; height: 42px; line-height: 1 !important;
	padding: 0 10px !important; margin: 0 !important; font-size: 14px; font-weight: 600; border-radius: 12px !important;
}
body:is(.archive, .blog, .search) .wgl-pagination .page-numbers.current { box-shadow: 0 6px 16px rgba(30,115,190,.28); }
body:is(.archive, .blog, .search) .wgl-pagination .page-numbers i { font-size: 11px; }

/* ---------- Tag cloud: pills ---------- */
.sidebar .widget_tag_cloud .tagcloud { display: flex; flex-wrap: wrap; gap: 8px; }
.sidebar .widget_tag_cloud .tagcloud a {
	display: inline-flex; align-items: center; margin: 0 !important; padding: 5px 12px !important;
	font-size: 12.5px !important; font-weight: 500; line-height: 1.7 !important; border-radius: 999px;
	background: var(--tk-bg) !important; border: 1px solid var(--tk-line) !important; color: #4a5060 !important;
	box-shadow: none !important; transition: all .2s;
}
.sidebar .widget_tag_cloud .tagcloud a:before { content: "#"; margin-left: 3px; color: var(--tk-brand); opacity: .7; font-weight: 700; }
.sidebar .widget_tag_cloud .tagcloud a:hover { background: var(--tk-brand) !important; border-color: var(--tk-brand) !important; color: #fff !important; }
.sidebar .widget_tag_cloud .tagcloud a:hover:before { color: #fff; }

/* ---------- Archive (Jalali) + categories list rows ---------- */
.sidebar .widget_wp_parsidate_archive ul { margin: 0; padding: 0; list-style: none; }
.sidebar .widget_wp_parsidate_archive ul li { margin: 0 !important; padding: 0 !important; border-bottom: 1px solid var(--tk-line); }
.sidebar .widget_wp_parsidate_archive ul li:last-child { border-bottom: 0; }
.sidebar .widget_wp_parsidate_archive ul li:before { display: none !important; }
.sidebar .widget_wp_parsidate_archive ul li a {
	display: flex; align-items: center; justify-content: space-between; padding: 11px 0;
	font-size: 14px; font-weight: 500; color: var(--tk-ink);
}
.sidebar :is(.widget_wp_parsidate_archive, .widget_categories) ul li a:hover { color: var(--tk-brand); }
.sidebar .widget_wp_parsidate_archive .post_count {
	min-width: 26px; height: 26px; line-height: 26px; padding: 0 6px; font-size: 12px; font-weight: 500;
	text-align: center; border-radius: 8px; background: var(--tk-bg); color: var(--tk-muted);
}

/* ---------- Tag cloud: aligned 2-column grid ---------- */
.sidebar .widget_tag_cloud .tagcloud { display: grid !important; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.sidebar .widget_tag_cloud .tagcloud a {
	display: flex !important; align-items: center; justify-content: flex-start; min-width: 0; height: 34px;
	padding: 0 10px !important; border-radius: 9px; font-size: 12.5px !important; line-height: 1 !important;
	text-transform: none !important; letter-spacing: 0 !important; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.sidebar .widget_tag_cloud .tagcloud a:before { flex: 0 0 auto; margin-left: 4px; font-size: 12px; }

/* ---------- Single post header: featured image on the left of the title ---------- */
body.single-post .post_featured_bg .content-container:has(.tk-hero-thumb) {
	display: grid !important; grid-template-columns: minmax(0, 1fr) auto; column-gap: 48px; align-items: center;
}
body.single-post .post_featured_bg .content-container:has(.tk-hero-thumb) > :not(.tk-hero-thumb) { grid-column: 1; }
body.single-post .post_featured_bg .content-container:has(.tk-hero-thumb) > .post_meta-categories { align-self: end; }
body.single-post .post_featured_bg .content-container:has(.tk-hero-thumb) > .blog-post_title-meta { align-self: start; }
body.single-post .tk-hero-thumb {
	grid-column: 2; grid-row: 1 / span 2; position: relative; width: 220px; margin: 6px 0 6px 14px;
}
body.single-post .tk-hero-thumb:before { /* tilted accent card behind the image */
	content: ""; position: absolute; inset: 0; border-radius: 18px; transform: rotate(-6deg) translate(-10px, 6px);
	background: linear-gradient(135deg, #1e73be, #5ab0f0); opacity: .9;
}
body.single-post .tk-hero-thumb img {
	position: relative; display: block; width: 100%; aspect-ratio: 4 / 5; height: auto; object-fit: cover; object-position: center top;
	border-radius: 18px; border: 4px solid #fff; box-shadow: 0 18px 40px rgba(16, 24, 40, .18); transition: transform .5s cubic-bezier(.2,.7,.2,1);
}
body.single-post .tk-hero-thumb:hover img { transform: rotate(2deg) translateY(-4px); }
body.single-post .post_featured_bg .blog-post-single-item { padding: 36px 0 32px !important; }

@media (max-width: 767px) {
	body.single-post .post_featured_bg .content-container:has(.tk-hero-thumb) { grid-template-columns: 1fr; }
	body.single-post .tk-hero-thumb { grid-column: 1; grid-row: auto; width: 100%; margin: 0 0 22px; order: -1; }
	body.single-post .tk-hero-thumb:before { transform: rotate(-2deg) translate(-4px, 4px); }
	body.single-post .tk-hero-thumb img { aspect-ratio: 16 / 10; }
}

/* Single post: no outer padding on #main */
body.single-post #main.site-main { padding: 0 !important; }

/* ---------- Sidebar: latest portfolio grid ---------- */
.sidebar .tk-portfolio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sidebar .tk-portfolio_item { position: relative; display: block; aspect-ratio: 1; border-radius: 12px; overflow: hidden; background: var(--tk-bg); }
.sidebar .tk-portfolio_item img { display: block; width: 100% !important; height: 100% !important; object-fit: cover; border-radius: 0 !important; transition: transform .5s ease; }
.sidebar .tk-portfolio_name {
	position: absolute; inset: 0; display: flex; align-items: flex-end; padding: 6px; font-size: 10.5px; font-weight: 600; line-height: 1.6; color: #fff;
	background: linear-gradient(to top, rgba(10, 20, 40, .85), rgba(10, 20, 40, 0) 70%); opacity: 0; transition: opacity .3s;
}
.sidebar .tk-portfolio_item:hover img { transform: scale(1.08); }
.sidebar .tk-portfolio_item:hover .tk-portfolio_name { opacity: 1; }
.sidebar .tk-portfolio_all {
	display: flex; justify-content: center; margin-top: 12px; padding: 9px; border-radius: 10px; font-size: 13px; font-weight: 600;
	background: var(--tk-bg); color: var(--tk-brand) !important; transition: background .2s, color .2s;
}
.sidebar .tk-portfolio_all:hover { background: var(--tk-brand); color: #fff !important; }

/* comment form: flatten the theme's 3D submit wrapper so only our button style shows */
body.single-post #comments :is(.shift-3d-wrapper, .wgl-button.shift-3d) { display: inline-block !important; padding: 0 !important; margin: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important; transform: none !important; height: auto !important; }
body.single-post #comments .shift-3d-wrapper:before, body.single-post #comments .shift-3d-wrapper:after, body.single-post #comments .wgl-button.shift-3d:before, body.single-post #comments .wgl-button.shift-3d:after { display: none !important; content: none !important; }
body.single-post #comments .wgl-button.shift-3d, body.single-post #comments .wgl-button.shift-3d:hover { box-shadow: none !important; background: none !important; }
