/* ===== Shahan Blog Design v1 — index + single ===== */
:root{--sb-navy:#0B1F4B;--sb-blue:#1E4FA8;--sb-sky:#8FB4FF;--sb-ink:#0d1b2e;--sb-muted:#5A6A8C;--sb-line:#E3EAF5;--sb-bg:#F4F7FC}
/* ---------- shared hero (v2) ---------- */
body.sbd #content.site-content{background:var(--sb-bg)!important}
body.sbd .pix-main-intro{position:relative;min-height:0!important;overflow:hidden;
 background:radial-gradient(900px 420px at 85% -10%,rgba(56,120,255,.45),transparent 60%),radial-gradient(700px 380px at 5% 120%,rgba(37,211,102,.12),transparent 60%),linear-gradient(160deg,#102a63 0%,#0B1F4B 55%,#081638 100%)!important}
body.sbd .pix-main-intro::before{content:"";position:absolute;inset:0;background-image:linear-gradient(rgba(255,255,255,.05) 1px,transparent 1px),linear-gradient(90deg,rgba(255,255,255,.05) 1px,transparent 1px);background-size:40px 40px;-webkit-mask-image:radial-gradient(ellipse at 50% 40%,#000 30%,transparent 75%);mask-image:radial-gradient(ellipse at 50% 40%,#000 30%,transparent 75%);pointer-events:none}
body.sbd .pix-main-intro::after{content:"";position:absolute;left:0;right:0;bottom:0;height:1px;background:linear-gradient(90deg,transparent,rgba(143,180,255,.55),transparent)}
body.sbd .pix-main-intro .pix-intro-img,body.sbd .pix-main-intro .jarallax-container,body.sbd .pix-main-intro .pix-divider{display:none!important}
body.sbd .pix-main-intro .pix-intro-container{padding-top:64px!important;padding-bottom:58px!important}
@media(max-width:640px){body.sbd .pix-main-intro .pix-intro-container{padding-top:40px!important;padding-bottom:36px!important}}
body.sbd .pix-main-intro .intro-content-div{max-width:920px;margin:0 auto!important}
body.sbd .pix-main-intro h1{font-size:clamp(24px,3vw,40px)!important;line-height:1.6!important;font-weight:900!important;margin:0 0 18px!important;letter-spacing:0!important;text-wrap:balance}
body.sbd .pix-main-intro h1,body.sbd .pix-main-intro h1 *{color:#fff!important;-webkit-text-fill-color:#fff!important}
body.sbd .pix-main-intro .breadcrumb{display:inline-flex!important;flex-wrap:wrap;justify-content:center;gap:2px;margin:0!important;padding:7px 16px!important;border-radius:999px;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.16);backdrop-filter:blur(6px);font-size:13px}
body.sbd .pix-main-intro .breadcrumb a,body.sbd .pix-main-intro .breadcrumb-item,body.sbd .pix-main-intro .breadcrumb span{color:#C9D7F2!important}
body.sbd .pix-main-intro .breadcrumb a:hover{color:#fff!important}
body.sbd .pix-main-intro .breadcrumb svg{opacity:.6}
@media(max-width:640px){body.sbd-single .pix-main-intro .breadcrumb .breadcrumb-item:last-child{display:none}body.sbd-index .pix-main-intro nav[aria-label="breadcrumb"]{display:none}}
.sbd-hero-meta{display:flex;flex-wrap:wrap;justify-content:center;gap:8px;margin-top:16px}
.sbd-hero-meta span{display:inline-flex;align-items:center;gap:6px;font-size:13px;font-weight:700;color:#E6EEFF;background:rgba(255,255,255,.08);border:1px solid rgba(255,255,255,.14);border-radius:999px;padding:6px 14px}
.sbd-hero-meta span.wa{background:#25D366;border-color:#25D366;color:#fff}
.sbd-hero-sub{color:#C9D7F2;font-size:16px;line-height:1.9;margin:-6px auto 18px;max-width:640px}

/* ---------- INDEX (blog, category, search) ---------- */
body.sbd-index #content .sidebar{display:none!important}
body.sbd-index #content>.container>.row>.col-md-8{flex:0 0 100%!important;max-width:100%!important}
body.sbd-index #main>.row{display:grid!important;grid-template-columns:repeat(3,minmax(0,1fr));gap:26px;margin:0!important}
body.sbd-index #main>.row>[class*="col-"]{max-width:none!important;flex:none!important;width:auto!important;padding:0!important}
@media(max-width:1100px){body.sbd-index #main>.row{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:640px){body.sbd-index #main>.row{grid-template-columns:1fr;gap:18px}}
body.sbd-index #main article{padding:0!important;height:100%}
body.sbd-index #main article>div,body.sbd-index #main .pix-content-box{height:100%}
body.sbd-index #main .pix-content-box{border-radius:20px!important;border:1px solid var(--sb-line);box-shadow:0 8px 24px rgba(11,31,75,.06)!important;transition:transform .25s ease,box-shadow .25s ease;display:flex!important;flex-direction:column!important;flex-wrap:nowrap!important}
body.sbd-index #main .pix-content-box:hover{transform:translateY(-4px);box-shadow:0 18px 40px rgba(11,31,75,.14)!important}
body.sbd-index #main .pix-content-box>.d-flex{flex:1 1 auto}
body.sbd-index #main .pix-pt-20.pix-px-20{padding:0!important}
body.sbd-index #main .card{border-radius:0!important;aspect-ratio:1200/630;background:linear-gradient(135deg,#0B1F4B,#1E4FA8)}
body.sbd-index #main .card img{border-radius:0!important;height:100%!important;max-height:none!important;object-fit:cover}
body.sbd-index #main .card-img-overlay{display:none!important}
body.sbd-index #main .position-relative.pix-p-20{padding:18px 20px 20px!important;display:flex;flex-direction:column;height:100%}
body.sbd-index #main .pix-post-meta-categories{display:flex;flex-wrap:wrap;gap:6px}
body.sbd-index #main .pix-post-meta-categories .pix-badge-element{margin:0!important}
body.sbd-index #main .pix-post-meta-categories .badge{background:#EAF0FD!important;border-radius:999px!important;padding:5px 11px!important;font-size:11.5px!important}
body.sbd-index #main .pix-post-meta-categories .badge .text-primary{color:var(--sb-blue)!important}
body.sbd-index #main .entry-title{font-size:18px!important;line-height:1.7!important;margin:10px 0 6px!important;padding:0!important;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
body.sbd-index #main .entry-title a{color:var(--sb-navy)!important}
body.sbd-index #main .entry-title a:hover{color:var(--sb-blue)!important}
body.sbd-index #main .text-break.text-body-default{font-size:14px!important;line-height:1.95!important;color:var(--sb-muted)!important;padding-bottom:0!important;margin-bottom:14px;max-height:calc(1.95em * 3);display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}
body.sbd-index #main .text-right.d-flex.w-100{margin-top:auto;padding-top:12px;border-top:1px dashed var(--sb-line);line-height:1.6!important;align-items:center}
body.sbd-index #main .pix-post-meta-date{font-size:12.5px!important}
body.sbd-index #main .btn-link{color:var(--sb-blue)!important;font-size:13px!important}
/* featured first post */
@media(min-width:1101px){
 body.sbd-home.sbd-page1 #main>.row>[class*="col-"]:first-child{grid-column:1/-1}
 body.sbd-home.sbd-page1 #main>.row>[class*="col-"]:first-child .pix-content-box>.d-flex{display:grid!important;grid-template-columns:1.25fr 1fr;align-items:stretch}
 body.sbd-home.sbd-page1 #main>.row>[class*="col-"]:first-child .pix-content-box>.d-flex>.w-100{display:contents}
 body.sbd-home.sbd-page1 #main>.row>[class*="col-"]:first-child .card{height:100%;aspect-ratio:auto}
 body.sbd-home.sbd-page1 #main>.row>[class*="col-"]:first-child .position-relative.pix-p-20{padding:34px 36px!important;justify-content:center}
 body.sbd-home.sbd-page1 #main>.row>[class*="col-"]:first-child .entry-title{font-size:26px!important;-webkit-line-clamp:3}
 body.sbd-home.sbd-page1 #main>.row>[class*="col-"]:first-child .text-break{-webkit-line-clamp:4;font-size:15px!important}
}
/* toolbar (categories + search) */
.sbd-bar{background:#fff;border:1px solid var(--sb-line);border-radius:20px;box-shadow:0 8px 24px rgba(11,31,75,.06);padding:16px;margin:0 0 26px;display:flex;flex-wrap:wrap;gap:12px;align-items:center}
.sbd-bar form{display:flex;flex:1 1 260px;max-width:360px;background:var(--sb-bg);border:1px solid var(--sb-line);border-radius:12px;overflow:hidden}
.sbd-bar input{flex:1;border:0;background:transparent;padding:10px 14px;font:inherit;font-size:14px;min-width:0;outline:0}
.sbd-bar button{border:0;background:var(--sb-navy);color:#fff;padding:0 16px;font:inherit;font-size:13px;font-weight:700;cursor:pointer}
.sbd-pills{display:flex;gap:8px;flex:3 1 400px;overflow-x:auto;scrollbar-width:none;padding-bottom:2px}
.sbd-pills::-webkit-scrollbar{display:none}
.sbd-pills a{white-space:nowrap;font-size:13px;font-weight:700;padding:8px 14px;border-radius:999px;background:var(--sb-bg);color:var(--sb-navy)!important;border:1px solid var(--sb-line);text-decoration:none!important;transition:.2s}
.sbd-pills a:hover,.sbd-pills a.on{background:var(--sb-navy);color:#fff!important;border-color:var(--sb-navy)}
/* pagination */
body.sbd-index .pix-pagination{grid-column:1/-1;margin-top:34px!important;gap:6px}
body.sbd-index .pix-pagination .page-numbers{min-width:42px;height:42px;display:inline-flex!important;align-items:center;justify-content:center;border-radius:12px!important;background:#fff;border:1px solid var(--sb-line);color:var(--sb-navy)!important;font-weight:700;box-shadow:none!important}
body.sbd-index .pix-pagination .page-numbers.current{background:var(--sb-navy)!important;color:#fff!important;border-color:var(--sb-navy)}

/* ---------- SINGLE ---------- */
.sbd-progress{position:fixed;top:0;right:0;height:3px;width:0;background:linear-gradient(270deg,#25D366,#8FB4FF);z-index:999999;transition:width .1s linear}
body.sbd-single #content{padding-top:34px!important}
body.sbd-single .post-thumbnail .card{border-radius:22px!important;box-shadow:0 18px 44px rgba(11,31,75,.14)!important}
body.sbd-single .post-thumbnail .card img{aspect-ratio:1200/630;object-fit:cover}
body.sbd-single .post-thumbnail .card-img-overlay,body.sbd-single .pixfort-likes{display:none!important}
body.sbd-single .entry-header .entry-meta{background:#fff;border:1px solid var(--sb-line);border-radius:14px;padding:10px 14px!important;margin:16px 0 22px!important;flex-wrap:wrap;gap:8px}
body.sbd-single .entry-content{font-size:17px!important;line-height:2.05!important;color:var(--sb-ink)!important}
body.sbd-single .entry-content p{margin-bottom:1.15em}
body.sbd-single #main>article{background:#fff;border:1px solid var(--sb-line);border-radius:24px;padding:22px;box-shadow:0 10px 30px rgba(11,31,75,.05)}
@media(max-width:640px){body.sbd-single #main>article{padding:14px;border-radius:18px}body.sbd-single .entry-content{font-size:16px!important}}
/* headings: clean, no heavy boxes */
body.sbd-single .entry-content h2:not(#ftwp-header-title){background:none!important;box-shadow:none!important;border:0!important;border-right:5px solid var(--sb-blue)!important;border-radius:0!important;padding:2px 16px 2px 0!important;margin:46px 0 16px!important;font-size:clamp(21px,2.3vw,26px)!important;line-height:1.6!important;color:var(--sb-navy)!important;-webkit-text-fill-color:var(--sb-navy)!important}
body.sbd-single .entry-content h2:not(#ftwp-header-title)::before,body.sbd-single .entry-content h2:not(#ftwp-header-title)::after{display:none!important;content:none!important}
body.sbd-single .entry-content h3{background:none!important;border:0!important;box-shadow:none!important;padding:0!important;margin:30px 0 10px!important;font-size:19px!important;color:var(--sb-blue)!important;-webkit-text-fill-color:var(--sb-blue)!important}
body.sbd-single .entry-content h3::before,body.sbd-single .entry-content h3::after{display:none!important}
/* in-post TOC compact */
body.sbd-single #ftwp-container-outer.ftwp-in-post{margin:22px 0 30px!important}
body.sbd-single #ftwp-contents{background:var(--sb-bg)!important;border:1px solid var(--sb-line)!important;border-radius:18px!important;box-shadow:none!important;padding:14px 16px!important}
body.sbd-single #ftwp-header{background:none!important;border:0!important;padding:0 0 8px!important}
body.sbd-single #ftwp-header-title{font-size:17px!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important;color:var(--sb-navy)!important}
body.sbd-single #ftwp-header-title::before,body.sbd-single #ftwp-header-title::after{display:none!important}
body.sbd-single #ftwp-list{counter-reset:sbd;margin:0!important;padding:0!important}
body.sbd-single #ftwp-list .ftwp-item{counter-increment:sbd;list-style:none!important;margin:0!important;padding:0!important;background:none!important;border:0!important;box-shadow:none!important}
body.sbd-single #ftwp-list .ftwp-item::before{display:none!important}
body.sbd-single #ftwp-list .ftwp-anchor{display:flex!important;gap:10px;align-items:flex-start;padding:7px 4px!important;border:0!important;border-bottom:1px solid var(--sb-line)!important;border-radius:0!important;background:none!important;box-shadow:none!important;font-size:14.5px!important;line-height:1.8!important;color:var(--sb-navy)!important}
body.sbd-single #ftwp-list .ftwp-anchor::before{display:none!important}
body.sbd-single #ftwp-list .ftwp-text::before{content:counter(sbd,persian);margin-left:10px;flex:none;width:24px;height:24px;border-radius:8px;background:#fff;border:1px solid var(--sb-line);display:inline-flex;align-items:center;justify-content:center;font-size:12px;font-weight:800;color:var(--sb-blue);vertical-align:middle}
body.sbd-single #ftwp-list .ftwp-anchor:hover{color:var(--sb-blue)!important}
/* tables */
body.sbd-single .entry-content table{border-radius:14px;overflow:hidden}
/* sidebar */
body.sbd-single #secondary .widget{background:#fff;border:1px solid var(--sb-line);border-radius:18px;padding:16px;margin-bottom:18px;box-shadow:0 8px 24px rgba(11,31,75,.05)}
body.sbd-single #secondary .widget-title2{font-size:16px!important;color:var(--sb-navy)!important;margin-bottom:12px!important}
body.sbd-single #secondary .widget_pix_categories a{justify-content:flex-start!important;text-align:right!important;background:var(--sb-bg)!important;box-shadow:none!important;border:1px solid var(--sb-line);border-radius:10px!important;padding:8px 12px!important}
body.sbd-single #secondary .widget_pix_categories a:hover{background:var(--sb-navy)!important;color:#fff!important}
body.sbd-single #secondary .widget_pix_recent_posts li>div{box-shadow:none!important;border-radius:12px!important}
body.sbd-single #secondary .widget_pix_recent_posts .card{background:var(--sb-bg)!important}
body.sbd-single #secondary .widget_pix_recent_posts .card *{color:var(--sb-navy)!important}
body.sbd-single #secondary .widget_pix_recent_posts .pix-opacity-4,body.sbd-single #secondary .widget_pix_recent_posts .pixfort-likes,body.sbd-single #secondary .widget_pix_recent_posts .odometer{display:none!important}
body.sbd-single #secondary .widget_pix_recent_posts h6,body.sbd-single #secondary .widget_pix_recent_posts .h6{font-size:13.5px!important;line-height:1.8!important}
/* post nav + related */
body.sbd-single .post-navigation .card{border-radius:14px!important;border:1px solid var(--sb-line)}
body.sbd-single .pix-related-items article{padding-bottom:0!important}
body.sbd-single .pix-related-items .pix-content-box{border-radius:20px!important;border:1px solid var(--sb-line)}
body.sbd-single .pix-related-items .card-img-overlay{display:none!important}

body.sbd-single #ftwp-list .ftwp-anchor{padding-right:4px!important}
body.sbd-single #ftwp-list .ftwp-anchor .ftwp-text{display:block}
body.sbd-single #secondary .widget_pix_recent_posts .card,body.sbd-single #secondary .widget_pix_recent_posts .card *{opacity:1!important}
body.sbd-single #secondary .widget_pix_recent_posts .card a,body.sbd-single #secondary .widget_pix_recent_posts .card h6{font-weight:700!important}
body.sbd-index #main .card img{width:100%!important;display:block}
