/* [Ahmad Safdarzadeh] سایدبار و صفحه بندی آرشیوها: دوره ها، بلاگ، اخبار. هم طراز با کارت های نیم رخ درمانگران */
body {
	--a-brand: #662D91;
	--a-brand-dark: #4f2174;
	--a-soft: #f8f0fc;
	--a-border: #e4dcec;
	--a-text: #2b2b33;
	--a-muted: #6b6b7a;
}

/* ---------- ویجت های سایدبار ----------
   کارت سفید خود قالب دست نخورده می ماند؛ فقط تیتر و لیست داخلش با کلاس های خود وردپرس (cat-item, recentcomments) طراحی می شود
   تا به ساختار ویجت (ویجت وردپرس المنتور یا سایدبار معمولی) وابسته نباشد. */
body :is(.elementor-widget-wp-widget-categories, .elementor-widget-wp-widget-recent-comments, .elementor-widget-wp-widget-woocommerce-product-categories, .widget_categories, .widget_recent_comments, .widget_product_categories) :is(h1, h2, h3, h4, h5, h6, .widgettitle, .widget-title) {
	position: relative; margin: 0 0 14px !important; padding: 0 14px 12px 0 !important; font-size: 16px !important; font-weight: 700 !important; line-height: 1.6 !important;
	color: var(--a-brand) !important; text-align: start !important; border: 0; border-bottom: 1px solid var(--a-border); background: none;
}
body :is(.elementor-widget-wp-widget-categories, .elementor-widget-wp-widget-recent-comments, .elementor-widget-wp-widget-woocommerce-product-categories, .widget_categories, .widget_recent_comments, .widget_product_categories) :is(h1, h2, h3, h4, h5, h6, .widgettitle, .widget-title)::before {
	content: ""; position: absolute; inset-inline-start: 0; top: 5px; width: 4px; height: 18px; border-radius: 4px; background: var(--a-brand);
}
/* لیست */
body ul:has(> li.cat-item), body ul:has(> li.recentcomments), body ul.product-categories, body ul#recentcomments {
	margin: 0 !important; padding: 0 !important; list-style: none !important;
}
body li.cat-item, body li.recentcomments {
	display: block; margin: 0 0 6px !important; padding: 9px 12px !important; list-style: none !important;
	border: 1px solid transparent; border-radius: 10px; background: var(--a-soft); color: var(--a-muted);
	font-size: 14px; line-height: 1.9; text-align: start !important; text-justify: auto; word-spacing: normal !important; transition: border-color .15s, background .15s;
}
body li.cat-item::before, body li.recentcomments::before { content: none !important; }
body li.cat-item::marker, body li.recentcomments::marker { content: none; font-size: 0; }
body li.cat-item:last-child, body li.recentcomments:last-child { margin-bottom: 0 !important; }
body li.cat-item:hover, body li.recentcomments:hover { border-color: var(--a-brand); background: #fff; }
body li.cat-item a, body li.cat-item a:visited, body li.recentcomments a, body li.recentcomments a:visited {
	color: var(--a-text) !important; text-decoration: none !important; font-weight: 600; transition: color .15s;
}
body li.cat-item a:hover, body li.recentcomments a:hover { color: var(--a-brand) !important; }
/* زیر دسته ها */
body li.cat-item > ul.children { margin-top: 8px !important; padding-inline-start: 12px !important; }
/* نام نویسنده ی دیدگاه */
body li.recentcomments .comment-author-link, body li.recentcomments .comment-author-link a { color: var(--a-brand) !important; font-weight: 700; }
/* تعداد در دسته های ووکامرس */
body li.cat-item .count {
	display: inline-flex; align-items: center; justify-content: center; min-width: 26px; padding: 0 8px; margin-inline-start: 6px;
	border-radius: 999px; background: #fff; border: 1px solid var(--a-border); color: var(--a-brand); font-size: 12px; font-weight: 700;
}

/* ---------- صفحه بندی (هم شکل دکمه های نیم رخ درمانگران): ووکامرس، وردپرس، ویجت پست های المنتور، WP-PageNavi ---------- */
body :is(.woocommerce-pagination, .navigation.pagination, .pagination, .nav-links, .page-links, .elementor-pagination, .wp-pagenavi) {
	margin: 28px 0 0; text-align: center; border: 0; background: none;
}
body :is(.elementor-pagination, .navigation.pagination .nav-links, .pagination, .wp-pagenavi) {
	display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 0;
}
body :is(.woocommerce-pagination, .navigation.pagination, .pagination, .nav-links) ul.page-numbers {
	display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 0; margin: 0; padding: 0; list-style: none; border: 0; background: none;
}
body :is(.woocommerce-pagination, .navigation.pagination, .pagination, .nav-links) ul.page-numbers li {
	margin: 0; padding: 0; border: 0; background: none; float: none; display: inline-block; overflow: visible;
}
body :is(a.page-numbers, span.page-numbers, .wp-pagenavi a, .wp-pagenavi span, .page-links > a, .page-links > .post-page-numbers) {
	display: inline-flex !important; align-items: center; justify-content: center; box-sizing: border-box; min-width: 40px; min-height: 40px; margin: 3px !important; padding: 6px 12px !important;
	border: 1px solid var(--a-border) !important; border-radius: 10px !important; background: #fff !important; color: var(--a-text) !important; text-decoration: none !important; font-size: 15px; line-height: 1.4; float: none; box-shadow: none !important;
}
body :is(a.page-numbers, span.page-numbers, .wp-pagenavi a, .wp-pagenavi span, .page-links > a, .page-links > .post-page-numbers):is(.current, :hover, :focus) {
	background: var(--a-brand) !important; border-color: var(--a-brand) !important; color: #fff !important;
}
body :is(a.page-numbers, span.page-numbers).dots { border-color: transparent !important; background: none !important; color: var(--a-muted) !important; }
body :is(.woocommerce-pagination, .navigation.pagination, .pagination, .nav-links) .screen-reader-text { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
