
body.mehrad-blog-screen,
body.mehrad-article-screen{
	--mb-page-bg:#f8fafc;
	--mb-card-bg:#fff;
	--mb-text:#111827;
	--mb-muted:#64748b;
	--mb-border:#eef2f7;
	--mb-primary:#19b568;
	--mb-input-bg:#fff;
	--mb-placeholder:#f2f6fb;
	background:var(--mb-page-bg)!important;
	color:var(--mb-text);
}
.mehrad-blog-container{width:min(100% - 32px,1560px);margin-inline:auto;padding:34px 0 48px;direction:rtl}
.mehrad-blog-layout{display:grid;grid-template-columns:290px minmax(0,1fr);grid-template-areas:"sidebar posts";gap:28px;direction:ltr;align-items:start}
.mehrad-blog-layout.without-sidebar{grid-template-columns:1fr;grid-template-areas:"posts"}
.mehrad-blog-main{grid-area:posts;direction:rtl;min-width:0}
.mehrad-blog-sidebar{grid-area:sidebar;direction:rtl;min-width:0}
.mehrad-blog-head{display:flex;align-items:center;justify-content:space-between;margin-bottom:22px}
.mehrad-blog-head h1{margin:0;color:var(--mb-text);font-size:28px;font-weight:950;line-height:1.5}
.mehrad-blog-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:22px}
.mehrad-blog-card{min-width:0;overflow:hidden;border:1px solid var(--mb-border);border-radius:22px;background:var(--mb-card-bg);box-shadow:0 12px 32px rgba(15,23,42,.06);transition:transform .3s ease,box-shadow .3s ease,border-color .3s ease}
.mehrad-blog-card:hover{transform:translateY(-5px);border-color:color-mix(in srgb,var(--mb-primary) 24%,var(--mb-border));box-shadow:0 18px 44px rgba(15,23,42,.11)}
.mehrad-blog-thumb{position:relative;display:block;height:220px;overflow:hidden;background:var(--mb-placeholder)}
.mehrad-blog-thumb img{display:block;width:100%!important;height:100%!important;max-width:none!important;object-fit:cover!important;object-position:center!important;border-radius:0!important;transition:transform .35s ease}
.mehrad-blog-card:hover .mehrad-blog-thumb img{transform:scale(1.06)}
.mehrad-blog-thumb__placeholder{display:flex;align-items:center;justify-content:center;width:100%;height:100%;color:var(--mb-primary)}
.mehrad-blog-thumb__svg{width:68px;height:68px;fill:currentColor}
.mehrad-blog-card__body{display:flex;flex-direction:column;min-height:250px;padding:18px}
.mehrad-blog-card h2{display:-webkit-box;overflow:hidden;margin:0 0 10px;color:var(--mb-text);font-size:17px;font-weight:950;line-height:1.8;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.mehrad-blog-card h2 a{color:inherit;text-decoration:none}
.mehrad-blog-card p{display:-webkit-box;overflow:hidden;margin:0 0 14px;color:var(--mb-muted);font-size:14px;font-weight:650;line-height:2;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.mehrad-blog-meta{display:flex;align-items:center;flex-wrap:wrap;gap:14px;margin-top:auto;color:color-mix(in srgb,var(--mb-muted) 75%,transparent);font-size:12px;font-weight:750}
.mehrad-blog-meta span{display:inline-flex;align-items:center;gap:5px}
.mehrad-blog-meta__svg{width:15px;height:15px;fill:currentColor}
.mehrad-blog-readmore{display:inline-flex;align-items:center;justify-content:flex-start;align-self:flex-start;gap:7px;margin-top:16px;color:var(--mb-primary)!important;font-size:13px;font-weight:950;text-decoration:none!important}
.mehrad-blog-readmore__svg{width:15px;height:15px;fill:currentColor;transition:transform .2s ease}
.mehrad-blog-readmore:hover .mehrad-blog-readmore__svg{transform:translateX(-3px)}
.mehrad-blog-sidebar section{margin-bottom:18px;padding:18px;border:1px solid var(--mb-border);border-radius:22px;background:var(--mb-card-bg);box-shadow:0 12px 32px rgba(15,23,42,.04)}
.mehrad-blog-sidebar h3{margin:0 0 14px;color:var(--mb-text);font-size:16px;font-weight:950}
.mehrad-blog-search{display:grid;grid-template-columns:minmax(0,1fr) 44px;gap:8px}
.mehrad-blog-search input[type="search"]{width:100%;height:44px;min-width:0;padding:0 12px;border:1px solid var(--mb-border);border-radius:14px;outline:0;background:var(--mb-input-bg);color:var(--mb-text);box-shadow:none}
.mehrad-blog-search input[type="search"]:focus{border-color:var(--mb-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--mb-primary) 12%,transparent)}
.mehrad-blog-search button{display:grid;place-items:center;width:44px;height:44px;padding:0;border:0;border-radius:14px;background:var(--mb-primary);color:#fff;cursor:pointer}
.mehrad-blog-search__svg{width:19px;height:19px;fill:currentColor}
.mehrad-blog-categories{display:flex;flex-direction:column;gap:10px;margin:0;padding:0;list-style:none}
.mehrad-blog-categories li{display:flex;align-items:center;justify-content:space-between;gap:8px;color:var(--mb-muted);font-weight:750}
.mehrad-blog-categories a{color:var(--mb-muted);text-decoration:none}
.mehrad-blog-categories a:hover{color:var(--mb-primary)}
.mehrad-latest-posts{display:flex;flex-direction:column;gap:12px}
.mehrad-latest-posts a{display:grid;grid-template-columns:58px minmax(0,1fr);gap:10px;align-items:center;color:var(--mb-muted);text-decoration:none;font-size:13px;font-weight:750;line-height:1.7}
.mehrad-latest-posts a:hover{color:var(--mb-primary)}
.mehrad-latest-posts__media{display:grid;place-items:center;width:58px;height:58px;overflow:hidden;border-radius:14px;background:var(--mb-placeholder);color:var(--mb-primary)}
.mehrad-latest-posts img{display:block;width:58px!important;height:58px!important;max-width:none!important;object-fit:cover!important;border-radius:14px!important}
.mehrad-latest-posts__svg{width:25px;height:25px;fill:currentColor}
.mehrad-latest-posts a>span:last-child{display:-webkit-box;overflow:hidden;-webkit-line-clamp:2;-webkit-box-orient:vertical}
.mehrad-blog-banner{display:block;overflow:hidden;margin:28px 0 0;border-radius:22px;background:var(--mb-card-bg)}
.mehrad-blog-banner img{display:block;width:100%!important;height:auto!important;border-radius:22px!important}
.mehrad-blog-pagination{margin-top:28px}
.mehrad-blog-pagination .nav-links{display:flex;align-items:center;justify-content:center;flex-wrap:wrap;gap:8px}
.mehrad-blog-pagination .page-numbers{display:inline-flex;align-items:center;justify-content:center;min-width:42px;height:42px;padding:0 12px;border:1px solid var(--mb-border);border-radius:13px;background:var(--mb-card-bg);color:var(--mb-text);font-size:13px;font-weight:900;text-decoration:none}
.mehrad-blog-pagination .page-numbers.current,.mehrad-blog-pagination .page-numbers:hover{border-color:var(--mb-primary);background:var(--mb-primary);color:#fff}
.mehrad-blog-empty{display:grid;place-items:center;min-height:280px;padding:32px;border:1px solid var(--mb-border);border-radius:24px;background:var(--mb-card-bg);color:var(--mb-muted);text-align:center}
.mehrad-blog-empty h2{margin:12px 0 0;color:var(--mb-text);font-size:20px}
.mehrad-blog-empty__svg{width:60px;height:60px;fill:var(--mb-primary)}
.mehrad-article-container{width:min(100% - 24px,1480px);margin-inline:auto;padding:22px 0 34px;direction:rtl}
.mehrad-article{overflow:hidden;padding:22px 24px;border:1px solid var(--mb-border);border-radius:22px;background:var(--mb-card-bg);box-shadow:0 12px 32px rgba(15,23,42,.05)}
.mehrad-article__title{margin:0;color:var(--mb-text);font-size:clamp(25px,3.2vw,42px);font-weight:950;line-height:1.65;text-align:right}
.mehrad-article__featured{display:block;width:100%;margin:20px auto 24px;padding:0;overflow:hidden;border:0;border-radius:22px;background:transparent;box-shadow:none;line-height:0;text-align:center}
.mehrad-article__featured img{display:block;width:100%!important;max-width:100%!important;height:auto!important;min-height:0!important;margin:0 auto!important;padding:0!important;border:0!important;border-radius:22px!important;background:transparent!important;box-shadow:none!important;object-fit:contain!important;object-position:center!important}
.mehrad-article__content{color:var(--mb-text);font-size:16px;font-weight:550;line-height:2.2}
.mehrad-article__content>*:first-child{margin-top:0}.mehrad-article__content>*:last-child{margin-bottom:0}
.mehrad-article__content h2,.mehrad-article__content h3,.mehrad-article__content h4{color:var(--mb-text);font-weight:950;line-height:1.8}
.mehrad-article__content a{color:var(--mb-primary);text-decoration:none}
.mehrad-article__content img,.mehrad-article__content .wp-block-image img{max-width:100%;height:auto;border-radius:18px}
.mehrad-article__content img.aligncenter{display:block;margin-inline:auto}
.mehrad-article__content blockquote{margin:24px 0;padding:18px 22px;border-inline-start:4px solid var(--mb-primary);border-radius:16px;background:color-mix(in srgb,var(--mb-primary) 7%,var(--mb-card-bg));color:var(--mb-muted)}
.mehrad-comments-area{margin:30px 0 12px}
.mehrad-comments-head{display:flex;align-items:center;justify-content:space-between;gap:16px;margin-bottom:18px}
.mehrad-comments-head h2,.mehrad-comment-form-wrap .comment-reply-title{margin:0;color:var(--mb-text);font-size:22px;font-weight:950}
.mehrad-comments-head span{color:var(--mb-muted);font-size:13px;font-weight:800}
.mehrad-comment-list,.mehrad-comment-list .children{display:flex;flex-direction:column;gap:18px;margin:0;padding:0;list-style:none}
.mehrad-comment-list .children{margin:18px 36px 0 0}
.mehrad-comment-card{display:grid;grid-template-columns:130px minmax(0,1fr);gap:22px;align-items:start;padding:22px;border:1px solid var(--mb-border);border-radius:22px;background:var(--mb-card-bg);box-shadow:0 12px 35px rgba(15,23,42,.04)}
.mehrad-comment-side{display:flex;align-items:center;gap:8px;color:var(--mb-muted);font-weight:800}
.mehrad-comment-like{color:#ef4444;font-size:18px;line-height:1}
.mehrad-comment-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px;margin-bottom:12px}
.mehrad-comment-author{color:var(--mb-text);font-size:17px;font-weight:950}
.mehrad-comment-badge{padding:5px 10px;border-radius:999px;background:color-mix(in srgb,var(--mb-primary) 10%,var(--mb-card-bg));color:var(--mb-primary);font-size:12px;font-weight:950}
.mehrad-comment-badge.admin{background:#eef2ff;color:#3366ff}
.mehrad-comment-content{color:var(--mb-text);font-size:14px;line-height:2}.mehrad-comment-content p{margin:0}
.mehrad-comment-reply a{display:inline-flex;margin-top:12px;color:var(--mb-primary);font-size:13px;font-weight:950;text-decoration:none}
.mehrad-comment-form-wrap{margin-top:24px;padding:22px;border:1px solid var(--mb-border);border-radius:24px;background:var(--mb-card-bg);box-shadow:0 14px 40px rgba(15,23,42,.05)}
.mehrad-comment-form-wrap form{display:grid;grid-template-columns:1fr 1fr;gap:14px 18px}
.mehrad-comment-form-wrap .comment-form-comment{grid-column:1/-1;order:1;margin:0}
.mehrad-comment-form-wrap .comment-form-author,.mehrad-comment-form-wrap .comment-form-email{order:2;margin:0}
.mehrad-comment-form-wrap .comment-form-cookies-consent{grid-column:1/-1;order:3;margin:0;color:var(--mb-muted);font-size:13px}
.mehrad-comment-form-wrap .form-submit{grid-column:1/-1;order:4;margin:0}
.mehrad-comment-form-wrap input[type="text"],.mehrad-comment-form-wrap input[type="email"],.mehrad-comment-form-wrap textarea{width:100%;padding:16px 18px;border:1px solid var(--mb-border);border-radius:16px;outline:0;background:var(--mb-input-bg);color:var(--mb-text);box-shadow:none}
.mehrad-comment-form-wrap input:focus,.mehrad-comment-form-wrap textarea:focus{border-color:var(--mb-primary);box-shadow:0 0 0 3px color-mix(in srgb,var(--mb-primary) 12%,transparent)}
.mehrad-comment-form-wrap textarea{min-height:180px;resize:vertical}
.mehrad-comment-submit{width:100%;height:54px;border:0;border-radius:16px;background:var(--mb-primary);color:#fff;font-weight:950;cursor:pointer}
.mehrad-comment-form-wrap .logged-in-as,.mehrad-comment-form-wrap .comment-notes{grid-column:1/-1;color:var(--mb-muted)}
html.dark .mehrad-blog-card,html.dark .mehrad-blog-sidebar section,html.dark .mehrad-article,html.dark .mehrad-comment-card,html.dark .mehrad-comment-form-wrap,body.dark .mehrad-blog-card,body.dark .mehrad-blog-sidebar section,body.dark .mehrad-article,body.dark .mehrad-comment-card,body.dark .mehrad-comment-form-wrap,[data-theme="dark"] .mehrad-blog-card,[data-theme="dark"] .mehrad-blog-sidebar section,[data-theme="dark"] .mehrad-article,[data-theme="dark"] .mehrad-comment-card,[data-theme="dark"] .mehrad-comment-form-wrap{box-shadow:0 12px 34px rgba(0,0,0,.18)}
@media(max-width:1180px){.mehrad-blog-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:900px){.mehrad-blog-layout{grid-template-columns:1fr;grid-template-areas:"posts" "sidebar"}.mehrad-blog-sidebar{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:16px}.mehrad-blog-sidebar section{margin-bottom:0}.mehrad-blog-sidebar section:last-child{grid-column:1/-1}}
@media(max-width:680px){.mehrad-blog-container,.mehrad-article-container{width:min(100% - 14px,1560px);padding:14px 0 24px}.mehrad-blog-head h1{font-size:23px}.mehrad-blog-grid{grid-template-columns:1fr;gap:16px}.mehrad-blog-card__body{min-height:0}.mehrad-blog-thumb{height:210px}.mehrad-blog-sidebar{grid-template-columns:1fr}.mehrad-blog-sidebar section:last-child{grid-column:auto}.mehrad-article{padding:16px 14px;border-radius:18px}.mehrad-article__title{font-size:25px;line-height:1.75}.mehrad-article__featured{margin:16px auto 20px;border-radius:18px}.mehrad-article__featured img{border-radius:18px!important}.mehrad-article__content{font-size:15px;line-height:2.15}.mehrad-comment-card{grid-template-columns:1fr;gap:12px}.mehrad-comment-list .children{margin-right:16px}.mehrad-comment-form-wrap{padding:18px}.mehrad-comment-form-wrap form{grid-template-columns:1fr}.mehrad-comment-form-wrap .comment-form-author,.mehrad-comment-form-wrap .comment-form-email{grid-column:1/-1}}
@media(prefers-reduced-motion:reduce){.mehrad-blog-card,.mehrad-blog-card *,.mehrad-blog-readmore__svg{transition:none!important}}


/* Mehrad v1.0.99 - wider article with tighter spacing */
@media(max-width:1100px) and (min-width:681px){
	.mehrad-article-container{
		width:min(100% - 20px,1480px);
		padding:18px 0 28px;
	}
	.mehrad-article{
		padding:20px;
	}
}


/* Mehrad v1.0.101 - complete Blog/Article Dark palette */
html.dark body.mehrad-blog-screen,
html.dark body.mehrad-article-screen,
html[data-theme="dark"] body.mehrad-blog-screen,
html[data-theme="dark"] body.mehrad-article-screen,
body.dark.mehrad-blog-screen,
body.dark.mehrad-article-screen,
body[data-theme="dark"].mehrad-blog-screen,
body[data-theme="dark"].mehrad-article-screen{
	--mb-page-bg:#202a3a;
	--mb-card-bg:#29364a;
	--mb-text:#f7f9fc;
	--mb-muted:#c0cad8;
	--mb-border:#46566d;
	--mb-primary:#37d987;
	--mb-input-bg:#243044;
	--mb-placeholder:#344258;
	background:var(--mb-page-bg)!important;
	color:var(--mb-text)!important;
}
html.dark body.mehrad-blog-screen .mehrad-blog-card,
html.dark body.mehrad-blog-screen .mehrad-blog-sidebar section,
html.dark body.mehrad-article-screen .mehrad-article,
html.dark body.mehrad-article-screen .mehrad-comment-card,
html.dark body.mehrad-article-screen .mehrad-comment-form-wrap,
html[data-theme="dark"] body.mehrad-blog-screen .mehrad-blog-card,
html[data-theme="dark"] body.mehrad-blog-screen .mehrad-blog-sidebar section,
html[data-theme="dark"] body.mehrad-article-screen .mehrad-article,
html[data-theme="dark"] body.mehrad-article-screen .mehrad-comment-card,
html[data-theme="dark"] body.mehrad-article-screen .mehrad-comment-form-wrap,
body.dark.mehrad-blog-screen .mehrad-blog-card,
body.dark.mehrad-blog-screen .mehrad-blog-sidebar section,
body.dark.mehrad-article-screen .mehrad-article,
body.dark.mehrad-article-screen .mehrad-comment-card,
body.dark.mehrad-article-screen .mehrad-comment-form-wrap,
body[data-theme="dark"].mehrad-blog-screen .mehrad-blog-card,
body[data-theme="dark"].mehrad-blog-screen .mehrad-blog-sidebar section,
body[data-theme="dark"].mehrad-article-screen .mehrad-article,
body[data-theme="dark"].mehrad-article-screen .mehrad-comment-card,
body[data-theme="dark"].mehrad-article-screen .mehrad-comment-form-wrap{
	background:var(--mb-card-bg)!important;
	border-color:var(--mb-border)!important;
	color:var(--mb-text)!important;
}
html.dark body.mehrad-blog-screen .mehrad-blog-search input,
html.dark body.mehrad-article-screen .mehrad-comment-form-wrap input,
html.dark body.mehrad-article-screen .mehrad-comment-form-wrap textarea,
html[data-theme="dark"] body.mehrad-blog-screen .mehrad-blog-search input,
html[data-theme="dark"] body.mehrad-article-screen .mehrad-comment-form-wrap input,
html[data-theme="dark"] body.mehrad-article-screen .mehrad-comment-form-wrap textarea,
body.dark.mehrad-blog-screen .mehrad-blog-search input,
body.dark.mehrad-article-screen .mehrad-comment-form-wrap input,
body.dark.mehrad-article-screen .mehrad-comment-form-wrap textarea,
body[data-theme="dark"].mehrad-blog-screen .mehrad-blog-search input,
body[data-theme="dark"].mehrad-article-screen .mehrad-comment-form-wrap input,
body[data-theme="dark"].mehrad-article-screen .mehrad-comment-form-wrap textarea{
	background:var(--mb-input-bg)!important;
	border-color:var(--mb-border)!important;
	color:var(--mb-text)!important;
	-webkit-text-fill-color:var(--mb-text)!important;
}
