/* Samaneh Post Studio 1.1.0 */
.sp-empty-widget{padding:28px;border:1px dashed #d9dee7;border-radius:18px;background:#fafbfc;text-align:center;color:#6b7280}
.sp-eyebrow{display:block;font-size:12px;font-weight:800;letter-spacing:.02em;color:#8b735a;margin-bottom:5px}

/* Shared post card */
.sp-post-card{position:relative;min-width:0;overflow:hidden;background:#fff;border:1px solid #eceff2;border-radius:18px;box-sizing:border-box;transition:transform .22s ease,box-shadow .22s ease,border-color .22s ease}
.sp-post-card:hover{transform:translateY(-4px);box-shadow:0 18px 45px rgba(15,23,42,.08);border-color:#e1e5ea}
.sp-post-card-media{position:relative;display:block;width:100%;height:270px;overflow:hidden;background:#f3f4f6;line-height:0}
.sp-post-card-media img{display:block;width:100%;height:100%;object-fit:cover;transition:transform .35s ease}
.sp-post-card:hover .sp-post-card-media img{transform:scale(1.035)}
.sp-post-placeholder{display:block;width:100%;height:100%;background:linear-gradient(135deg,#f4f5f6,#eceff2)}
.sp-post-category{position:absolute;z-index:2;right:12px;bottom:12px;display:inline-flex;align-items:center;min-height:28px;padding:5px 10px;border-radius:999px;background:rgba(17,24,39,.88);color:#fff;font-size:11px;font-weight:800;line-height:1.2;backdrop-filter:blur(8px)}
.sp-post-card-body{display:flex;flex-direction:column;gap:10px;padding:16px;min-width:0}
.sp-post-meta{display:flex;align-items:center;flex-wrap:wrap;gap:5px 12px;color:#8a919d;font-size:11px;line-height:1.5}
.sp-post-meta span{display:inline-flex;align-items:center;gap:5px;white-space:nowrap}
.sp-post-card-title{margin:0;font-size:17px;line-height:1.8;font-weight:850}
.sp-post-card-title a{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;color:#172033;text-decoration:none}
.sp-post-card-excerpt{margin:0;color:#697180;font-size:13px;line-height:2;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden}
.sp-post-card-button{display:inline-flex;align-items:center;gap:7px;align-self:flex-start;margin-top:auto;color:#1f2937;text-decoration:none;font-size:12px;font-weight:800}
.sp-post-card-button span{transition:transform .2s ease}.sp-post-card-button:hover span{transform:translateX(-4px)}

/* Single post */
.sp-single-pro{--sp-section-gap:34px;width:100%;min-width:0;color:#252a33}
.sp-breadcrumb{display:flex;align-items:center;flex-wrap:wrap;gap:7px 9px;width:min(1180px,calc(100% - 32px));margin:18px auto;color:#7b818b;font-size:12px;line-height:1.8}
.sp-breadcrumb a{color:inherit;text-decoration:none}.sp-breadcrumb a:hover{color:#111827}
.sp-single-hero{width:min(1180px,calc(100% - 32px));margin:0 auto var(--sp-section-gap);border-radius:26px;overflow:hidden;background:#f7f5f2}
.sp-single-hero-content{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:14px;padding:48px;min-width:0}
.sp-single-category{display:inline-flex;padding:6px 11px;border-radius:999px;background:#171717;color:#fff;text-decoration:none;font-size:12px;font-weight:800}
.sp-single-title{margin:0;font-size:clamp(30px,5vw,58px);line-height:1.45;font-weight:900;letter-spacing:-.03em;color:#17191d}
.sp-single-lead{max-width:820px;margin:0;color:#666d78;font-size:16px;line-height:2}
.sp-single-meta{display:flex;align-items:center;flex-wrap:wrap;gap:9px 18px;color:#6b7280;font-size:12px}
.sp-single-meta>span{display:inline-flex;align-items:center;gap:7px}.sp-meta-avatar{width:34px;height:34px;border-radius:50%}
.sp-single-hero-overlay{position:relative;display:flex;align-items:flex-end;min-height:560px;background-image:linear-gradient(180deg,rgba(8,10,14,.06),rgba(8,10,14,.82)),var(--sp-hero-image);background-size:cover;background-position:center;color:#fff}
.sp-single-hero-overlay .sp-single-hero-content{position:relative;z-index:1;width:min(920px,100%);padding:54px}
.sp-single-hero-overlay .sp-single-title,.sp-single-hero-overlay .sp-single-lead,.sp-single-hero-overlay .sp-single-meta{color:#fff}
.sp-single-hero-overlay .sp-single-category{background:#fff;color:#171717}
.sp-single-layout-split .sp-single-hero{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);align-items:stretch}
.sp-single-layout-split .sp-single-featured{min-height:420px;order:2}.sp-single-layout-split .sp-single-featured img{display:block;width:100%;height:100%;object-fit:cover}
.sp-single-layout-classic .sp-single-featured{max-height:620px;overflow:hidden}.sp-single-layout-classic .sp-single-featured img{display:block;width:100%;height:auto;max-height:620px;object-fit:cover}
.sp-single-layout-classic .sp-single-hero-content{padding:36px 42px}
.sp-single-content-wrap{width:calc(100% - 32px);max-width:860px;margin:0 auto;display:flex;flex-direction:column;gap:var(--sp-section-gap)}
.sp-single-content{font-size:16px;line-height:2.15;color:#333945;overflow-wrap:anywhere}
.sp-single-content>*:first-child{margin-top:0}.sp-single-content>*:last-child{margin-bottom:0}
.sp-single-content h2,.sp-single-content h3,.sp-single-content h4{scroll-margin-top:110px;color:#171a20;line-height:1.6;margin-top:2em;margin-bottom:.75em}
.sp-single-content h2{font-size:1.75em}.sp-single-content h3{font-size:1.4em}.sp-single-content h4{font-size:1.18em}
.sp-single-content p{margin:0 0 1.35em}.sp-single-content img{max-width:100%;height:auto;border-radius:16px}.sp-single-content blockquote{margin:1.6em 0;padding:18px 22px;border-right:4px solid #8b735a;border-radius:14px;background:#f7f5f2}.sp-single-content table{display:block;max-width:100%;overflow-x:auto;border-collapse:collapse}.sp-single-content td,.sp-single-content th{padding:10px 12px;border:1px solid #e5e7eb}
.sp-toc{padding:17px 19px;border:1px solid #e8ebef;background:#fafbfc;border-radius:18px}
.sp-toc-head{display:flex;align-items:center;justify-content:space-between;gap:12px}.sp-toc-head strong{font-size:14px}.sp-toc-head button{display:grid;place-items:center;width:32px;height:32px;border:0;border-radius:50%;background:#eef1f4;cursor:pointer}
.sp-toc ol{display:grid;gap:7px;margin:13px 0 0;padding:0 20px 0 0}.sp-toc li{color:#707784;font-size:13px;line-height:1.8}.sp-toc li.is-h3{margin-right:14px}.sp-toc li.is-h4{margin-right:28px}.sp-toc a{color:inherit;text-decoration:none}.sp-toc a:hover{color:#111827}.sp-toc.is-collapsed ol{display:none}
.sp-share{display:flex;align-items:center;justify-content:space-between;gap:15px;padding-block:18px;border-top:1px solid #eceff2;border-bottom:1px solid #eceff2}.sp-share-buttons{display:flex;align-items:center;flex-wrap:wrap;gap:8px}.sp-share a,.sp-share button{display:inline-flex;align-items:center;justify-content:center;min-height:38px;padding:7px 12px;border:1px solid #e3e7ec;border-radius:999px;background:#fff;color:#404754;text-decoration:none;font:inherit;font-size:12px;cursor:pointer}
.sp-author-box{display:grid;grid-template-columns:88px minmax(0,1fr);gap:18px;align-items:center;padding:22px;border:1px solid #e8ebef;background:#fff;border-radius:18px}.sp-author-box img{width:88px;height:88px;border-radius:50%;object-fit:cover}.sp-author-box h3{margin:0 0 6px;font-size:19px}.sp-author-box p{margin:0 0 8px;color:#707784;line-height:1.9}.sp-author-box a{font-size:12px;font-weight:800;color:#333;text-decoration:none}
.sp-post-navigation{display:grid;grid-template-columns:1fr 1fr;gap:12px}.sp-post-navigation a{display:flex;flex-direction:column;gap:5px;padding:16px;border:1px solid #e8ebef;border-radius:15px;text-decoration:none;color:#222}.sp-post-navigation a:last-child{text-align:left}.sp-post-navigation small{color:#8a919d}.sp-post-navigation strong{font-size:13px;line-height:1.8}
.sp-related-section,.sp-comments-section{padding:22px;border:1px solid #e8ebef;background:#fff;border-radius:18px}.sp-section-heading{margin-bottom:16px}.sp-section-heading h2{margin:0;font-size:22px}.sp-related-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}.sp-related-card .sp-post-card-media{height:160px}.sp-related-card .sp-post-card-body{padding:12px}.sp-related-card .sp-post-card-title{font-size:14px}
.sp-comment-list{display:grid;gap:12px;margin-bottom:22px}.sp-comment-list .comment{padding:14px;border:1px solid #edf0f3;border-radius:14px}.sp-comment-list .comment-author{display:flex;align-items:center;gap:9px}.sp-comment-list .comment-author img{border-radius:50%}.sp-comment-list .comment-meta{font-size:11px;color:#8a919d}.sp-comment-list .comment-content{line-height:1.9}.sp-comment-form{display:grid;gap:12px}.sp-comment-form input:not([type=submit]),.sp-comment-form textarea{width:100%;box-sizing:border-box;padding:11px 12px;border:1px solid #dfe3e8;border-radius:11px}.sp-comment-form input[type=submit]{min-height:42px;padding:9px 18px;border:0;border-radius:11px;background:#171717;color:#fff;cursor:pointer}

/* Archive */
.sp-archive-pro{width:100%;min-width:0}
.sp-archive-hero{display:flex;align-items:flex-end;justify-content:space-between;gap:22px;padding:32px;margin-bottom:22px;border:1px solid #e8ebef;border-radius:24px;background:linear-gradient(135deg,#faf8f5,#f4f6f8)}
.sp-archive-title{margin:0;font-size:clamp(28px,4vw,46px);line-height:1.5;color:#17191d}.sp-archive-description{max-width:760px;margin-top:8px;color:#6d7480;line-height:2}.sp-archive-description p{margin:0}.sp-archive-count{display:inline-flex;align-items:center;justify-content:center;min-width:95px;padding:9px 13px;border-radius:999px;background:#fff;border:1px solid #e6e9ed;font-size:12px;color:#505763;white-space:nowrap}
.sp-archive-toolbar{display:flex;align-items:center;justify-content:space-between;gap:14px;margin-bottom:20px;min-width:0}.sp-category-chips{display:flex;align-items:center;gap:7px;overflow-x:auto;scrollbar-width:none}.sp-category-chips::-webkit-scrollbar{display:none}.sp-category-chips a{flex:0 0 auto;padding:7px 11px;border:1px solid #e4e8ed;border-radius:999px;color:#535b67;text-decoration:none;font-size:12px;background:#fff}.sp-category-chips a:hover{background:#171717;color:#fff;border-color:#171717}.sp-post-search{display:flex;align-items:stretch;flex:0 0 min(340px,100%)}.sp-post-search input{min-width:0;width:100%;padding:9px 11px;border:1px solid #dfe4e9;border-radius:0 10px 10px 0}.sp-post-search button{padding:8px 13px;border:0;border-radius:10px 0 0 10px;background:#171717;color:#fff;cursor:pointer}
.sp-archive-grid{display:grid;grid-template-columns:repeat(var(--sp-archive-cols,3),minmax(0,1fr));gap:22px;min-width:0}
.sp-archive-layout-list .sp-archive-grid{grid-template-columns:1fr}.sp-archive-layout-list .sp-post-card{display:grid;grid-template-columns:minmax(220px,34%) minmax(0,1fr)}.sp-archive-layout-list .sp-post-card-media{height:100%!important;min-height:230px}.sp-archive-layout-list .sp-post-card-body{justify-content:center;padding:24px}.sp-archive-layout-list .sp-post-card-title{font-size:21px}
.sp-pagination{margin-top:28px}.sp-pagination ul.page-numbers{display:flex;justify-content:center;gap:7px;padding:0;margin:0;list-style:none}.sp-pagination .page-numbers a,.sp-pagination .page-numbers span{display:grid;place-items:center;min-width:40px;height:40px;padding:0 6px;border:1px solid #e1e5e9;border-radius:10px;text-decoration:none;color:#454c57}.sp-pagination .page-numbers .current{background:#171717;color:#fff;border-color:#171717}

/* Carousel */
.sp-post-carousel{--sp-gap:18px;--sp-basis:var(--sp-basis-d,calc(25% - 13.5px));position:relative;width:100%;min-width:0;overflow:hidden}
.sp-carousel-header{display:flex;align-items:flex-end;justify-content:space-between;gap:16px;margin-bottom:17px}.sp-carousel-title{margin:0;font-size:26px;line-height:1.45;color:#17191d}.sp-carousel-actions{display:flex;align-items:center;gap:12px}.sp-carousel-view-all{color:#555d68;text-decoration:none;font-size:12px;font-weight:800;white-space:nowrap}.sp-carousel-arrows{display:flex;direction:ltr;gap:7px}.sp-carousel-arrow{display:grid;place-items:center;width:40px;height:40px;padding:0;border:1px solid #e1e5e9;border-radius:50%;background:#fff;color:#252a33;font-size:22px;line-height:1;cursor:pointer;transition:.2s}.sp-carousel-arrow:hover{background:#171717;color:#fff;border-color:#171717}.sp-carousel-arrow:disabled{opacity:.3;cursor:default}.sp-carousel-viewport{overflow:hidden;min-width:0}.sp-carousel-track{display:flex;gap:var(--sp-gap);overflow-x:auto;overflow-y:hidden;scroll-snap-type:x mandatory;scrollbar-width:none;overscroll-behavior-inline:contain;padding:4px 1px 12px;min-width:0}.sp-carousel-track::-webkit-scrollbar{display:none}.sp-carousel-card{flex:0 0 var(--sp-basis);width:var(--sp-basis);max-width:var(--sp-basis);scroll-snap-align:start}.sp-carousel-card .sp-post-card-media{height:230px}

@media(max-width:1024px){
  .sp-post-carousel{--sp-basis:var(--sp-basis-t,var(--sp-basis-d,calc(33.333333% - 9.333px)))}
  .sp-single-hero-content{padding:38px}.sp-single-layout-split .sp-single-hero{grid-template-columns:1fr 1fr}.sp-related-grid{grid-template-columns:repeat(2,minmax(0,1fr))}
  .sp-archive-toolbar{align-items:stretch;flex-direction:column}.sp-post-search{flex-basis:auto;width:100%}
}
@media(max-width:767px){
  .sp-post-carousel{--sp-basis:var(--sp-basis-m,var(--sp-basis-t,100%))}
  .sp-breadcrumb,.sp-single-hero,.sp-single-content-wrap{width:calc(100% - 20px)}
  .sp-single-hero{border-radius:18px}.sp-single-hero-content{padding:24px 18px}.sp-single-hero-overlay .sp-single-hero-content{padding:28px 20px}.sp-single-title{font-size:30px;line-height:1.55}.sp-single-lead{font-size:14px}.sp-single-meta{gap:7px 12px}.sp-single-layout-split .sp-single-hero{grid-template-columns:1fr}.sp-single-layout-split .sp-single-featured{order:0;min-height:280px}.sp-single-layout-classic .sp-single-hero-content{padding:22px 18px}
  .sp-single-content{font-size:15px}.sp-share{align-items:flex-start;flex-direction:column}.sp-author-box{grid-template-columns:62px minmax(0,1fr);gap:12px;padding:16px}.sp-author-box img{width:62px;height:62px}.sp-post-navigation{grid-template-columns:1fr}.sp-post-navigation a:last-child{text-align:right}.sp-related-section,.sp-comments-section{padding:15px}.sp-related-grid{grid-template-columns:1fr 1fr;gap:10px}.sp-related-card .sp-post-card-media{height:130px}.sp-related-card .sp-post-meta{display:none}
  .sp-archive-hero{align-items:flex-start;flex-direction:column;padding:22px 17px;border-radius:18px}.sp-archive-title{font-size:30px}.sp-archive-toolbar{gap:10px}.sp-archive-layout-list .sp-post-card{grid-template-columns:1fr}.sp-archive-layout-list .sp-post-card-media{min-height:200px}.sp-archive-layout-list .sp-post-card-body{padding:15px}.sp-archive-layout-list .sp-post-card-title{font-size:17px}
  .sp-carousel-header{align-items:flex-start}.sp-carousel-actions{gap:8px}.sp-carousel-view-all{display:none}.sp-carousel-arrow{width:36px;height:36px}.sp-carousel-title{font-size:22px}.sp-post-card-body{padding:13px}.sp-post-card-title{font-size:15px}.sp-post-card-excerpt{font-size:12px;-webkit-line-clamp:2}
}
@media(max-width:480px){.sp-related-grid{grid-template-columns:1fr}.sp-related-card{display:grid;grid-template-columns:115px minmax(0,1fr)}.sp-related-card .sp-post-card-media{height:100%}.sp-category-chips{margin-inline:-2px}}
@media(prefers-reduced-motion:reduce){.sp-post-card,.sp-post-card img,.sp-post-card-button span,.sp-carousel-track{scroll-behavior:auto!important;transition:none!important}}


/* Samaneh Post Studio 1.1.0 — Single Post Pro refresh */
.sp-single-pro{position:relative}
.sp-single-hero{position:relative;isolation:isolate;display:flex;flex-direction:column;width:min(1180px,calc(100% - 32px));margin:0 auto var(--sp-section-gap);border:1px solid #e8ebef;border-radius:26px;overflow:hidden;background:#f7f5f2;box-shadow:0 18px 50px rgba(15,23,42,.06)}
.sp-single-hero-media,.sp-single-featured{position:relative;line-height:0;overflow:hidden;background:linear-gradient(135deg,#f6f3ef,#eef1f4)}
.sp-single-hero-media img,.sp-single-featured img,.sp-single-image-placeholder{display:block;width:100%;height:100%;object-fit:cover;object-position:center center}
.sp-single-image-placeholder{background:linear-gradient(135deg,#f2eee8,#e9edf1)}
.sp-single-layout-overlay .sp-single-hero{min-height:620px;justify-content:flex-end;border:0;background:#0f172a}
.sp-single-layout-overlay .sp-single-hero-media{position:absolute;inset:0;z-index:0}
.sp-single-layout-overlay .sp-single-hero-media img,.sp-single-layout-overlay .sp-single-image-placeholder{width:100%;height:100%}
.sp-single-layout-overlay .sp-single-hero-scrim{position:absolute;inset:0;background:linear-gradient(180deg,rgba(8,12,20,.10),rgba(8,12,20,var(--sp-hero-overlay-opacity,.78)));z-index:1}
.sp-single-layout-overlay .sp-single-hero-content{position:relative;z-index:2;width:min(920px,100%);margin-top:auto;padding:56px;color:#fff}
.sp-single-layout-overlay .sp-single-title,.sp-single-layout-overlay .sp-single-lead,.sp-single-layout-overlay .sp-single-meta{color:#fff}
.sp-single-layout-overlay .sp-single-category{background:#fff;color:#111827}
.sp-single-layout-overlay .sp-single-meta>span{background:rgba(255,255,255,.10);border-color:rgba(255,255,255,.15)}
.sp-single-layout-overlay .sp-meta-avatar{border:2px solid rgba(255,255,255,.25)}
.sp-single-layout-split .sp-single-hero{display:grid;grid-template-columns:minmax(0,.95fr) minmax(0,1.05fr);align-items:stretch}
.sp-single-layout-split .sp-single-hero-content{padding:52px 46px}
.sp-single-layout-split .sp-single-featured{order:2;min-height:620px}
.sp-single-layout-classic .sp-single-featured{height:620px;border-bottom:1px solid #ebeef2}
.sp-single-layout-classic .sp-single-hero-content{padding:38px 42px}
.sp-single-layout-classic .sp-single-title{font-size:clamp(30px,4.6vw,54px)}
.sp-single-hero.no-media{min-height:auto}
.sp-single-hero.no-media .sp-single-hero-content{padding:40px 42px}
.sp-single-hero-content{display:flex;flex-direction:column;align-items:flex-start;justify-content:center;gap:14px;min-width:0}
.sp-single-category{display:inline-flex;align-items:center;min-height:32px;padding:6px 12px;border-radius:999px;background:#171717;color:#fff;text-decoration:none;font-size:12px;font-weight:800;line-height:1.2}
.sp-single-title{margin:0;max-width:100%;font-size:clamp(32px,5vw,58px);line-height:1.42;font-weight:900;letter-spacing:-.03em;color:#17191d}
.sp-single-lead{max-width:780px;margin:0;color:#666d78;font-size:16px;line-height:2}
.sp-single-meta{display:flex;align-items:center;flex-wrap:wrap;gap:10px 12px;color:#6b7280;font-size:12px}
.sp-single-meta>span{display:inline-flex;align-items:center;gap:7px;min-height:36px;padding:6px 12px;border:1px solid #e7eaef;border-radius:999px;background:rgba(255,255,255,.82);backdrop-filter:blur(8px);white-space:nowrap}
.sp-meta-avatar{width:34px;height:34px;border-radius:50%;object-fit:cover}
.sp-single-content-wrap{position:relative}
.sp-toc{position:sticky;top:18px}
.sp-post-navigation a{box-shadow:0 10px 26px rgba(15,23,42,.04)}
.sp-related-section,.sp-comments-section,.sp-author-box,.sp-toc{box-shadow:0 16px 36px rgba(15,23,42,.05)}
@media(max-width:1024px){
  .sp-single-layout-overlay .sp-single-hero{min-height:500px}
  .sp-single-layout-split .sp-single-featured{min-height:500px}
  .sp-single-layout-split .sp-single-hero-content{padding:40px 34px}
  .sp-single-layout-classic .sp-single-featured{height:500px}
}
@media(max-width:767px){
  .sp-single-hero{width:calc(100% - 20px);border-radius:18px}
  .sp-single-layout-overlay .sp-single-hero{min-height:380px}
  .sp-single-layout-overlay .sp-single-hero-content{padding:26px 18px 24px}
  .sp-single-layout-split .sp-single-hero{grid-template-columns:1fr}
  .sp-single-layout-split .sp-single-featured{order:0;min-height:290px}
  .sp-single-layout-split .sp-single-hero-content,.sp-single-layout-classic .sp-single-hero-content,.sp-single-hero.no-media .sp-single-hero-content{padding:22px 18px}
  .sp-single-layout-classic .sp-single-featured{height:280px}
  .sp-single-title{font-size:30px;line-height:1.5}
  .sp-single-meta{gap:8px}.sp-single-meta>span{min-height:32px;padding:5px 10px;font-size:11px}
}
