:root{
  --red:#df2027;
  --red-dark:#b9161c;
  --blue:#1677ff;
  --dark:#171717;
  --muted:#6b7280;
  --line:#e5e7eb;
  --bg:#f3f5f8;
  --card:#fff;
  --radius:16px;
  --shadow:0 12px 30px rgba(15,23,42,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{margin:0;background:var(--bg);color:#111827;font-family:"Vazirmatn",Tahoma,Arial,sans-serif;line-height:1.8;direction:rtl;text-align:right}
a{color:inherit;text-decoration:none}img{max-width:100%;display:block}.container{width:min(1420px,calc(100% - 64px));margin-inline:auto}
.topbar{background:#151515;color:#fff;font-size:13px}.topbar-inner{height:40px;display:flex;align-items:center;justify-content:space-between}.topbar-social{display:flex;gap:10px}.topbar-social a{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#2a2a2a;color:#fff;font-size:13px}.topbar-date{display:flex;gap:8px;align-items:center;color:#f3f4f6}.brandbar{background:linear-gradient(135deg,#e51f27,#c7161d);color:#fff;position:relative;overflow:hidden}.brandbar:before{content:"";position:absolute;inset:0;background:radial-gradient(circle at 20% 30%,rgba(255,255,255,.14),transparent 28%),radial-gradient(circle at 80% 35%,rgba(255,255,255,.09),transparent 25%);opacity:.75}.brandbar-inner{position:relative;height:150px;display:flex;align-items:center;justify-content:space-between}.brand{display:flex;flex-direction:column;align-items:flex-start}.brand strong{font-size:64px;line-height:1;font-weight:900;letter-spacing:-2px}.brand span{font-size:18px;margin-top:16px}.brand-actions{display:flex;gap:14px;align-items:center}.header-search-btn,.live-pill{border:1px solid rgba(255,255,255,.45);background:rgba(255,255,255,.08);color:#fff;border-radius:10px;height:46px;display:grid;place-items:center}.header-search-btn{width:48px;font-size:26px;cursor:pointer}.live-pill{padding:0 24px;font-weight:800}.main-nav{background:#fff;box-shadow:0 2px 10px rgba(15,23,42,.08);position:sticky;top:0;z-index:20}.nav-inner{height:58px;display:flex;align-items:center;justify-content:flex-start}.nav-menu{list-style:none;display:flex;margin:0;padding:0;gap:42px;align-items:center}.nav-menu a{font-weight:800;position:relative;padding:18px 0}.nav-menu a.active:after,.nav-menu a:hover:after{content:"";position:absolute;right:0;left:0;bottom:0;height:4px;background:var(--red);border-radius:99px}.mobile-nav-toggle{display:none}
.site-main{padding:28px 0 46px}.home-layout,.inner-layout{display:grid;grid-template-columns:280px minmax(0,1fr);gap:24px;align-items:start}.left-sidebar{display:grid;gap:18px}.widget,.page-card,.card-section{background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow)}.widget{padding:22px}.widget-title,.section-heading h1,.section-heading h2{margin:0;font-weight:900}.widget-title{font-size:20px;border-right:4px solid var(--red);padding-right:12px;margin-bottom:20px}.widget-title.blue{border-right-color:var(--blue)}.social-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:8px}.social-grid a{border:1px solid var(--line);border-radius:12px;padding:12px 6px;text-align:center;background:#fff;transition:.2s}.social-grid a:hover{transform:translateY(-2px);box-shadow:0 8px 18px rgba(15,23,42,.08)}.social-grid span{width:36px;height:36px;margin:0 auto 6px;border-radius:10px;display:grid;place-items:center;background:#2196f3;color:#fff;font-weight:900}.social-grid b{display:block;font-size:12px}.social-grid small{display:block;color:var(--muted);font-size:11px}.categories-widget ul{list-style:none;margin:0;padding:0}.categories-widget li{display:flex;flex-direction:row-reverse;align-items:center;justify-content:space-between;gap:12px;padding:8px 0;border-bottom:1px dashed #edf0f3}.categories-widget span{background:#fee2e2;color:#d71920;border-radius:99px;min-width:28px;height:24px;display:grid;place-items:center;font-weight:900;font-size:12px}.categories-widget a{font-weight:600;font-size:14px}.main-column{min-width:0}.hero-slider{position:relative;height:430px;border-radius:var(--radius);overflow:hidden;background:#111;box-shadow:var(--shadow);border:1px solid var(--line)}.slider-track,.slide,.slide-link{position:absolute;inset:0}.slide{opacity:0;transform:scale(1.02);transition:opacity .45s ease,transform .45s ease}.slide.active{opacity:1;transform:scale(1)}.slide img{width:100%;height:100%;object-fit:cover}.slide-overlay{position:absolute;inset:0;background:linear-gradient(90deg,rgba(0,0,0,.25),rgba(0,0,0,.08),rgba(0,0,0,.78))}.slide-content{position:absolute;right:54px;bottom:52px;max-width:650px;color:#fff;z-index:2}.slide-tag,.card-tag,.detail-category{display:inline-flex;background:var(--red);color:#fff;border-radius:999px;padding:6px 13px;font-size:13px;font-weight:900}.slide-content h1{font-size:42px;line-height:1.35;margin:14px 0 10px}.slide-content p{font-size:17px;color:#f3f4f6}.meta-row{display:flex;gap:16px;align-items:center;color:var(--muted);font-size:13px}.meta-row.light{color:#fff}.slider-arrow{position:absolute;top:50%;transform:translateY(-50%);z-index:4;width:44px;height:44px;border-radius:50%;border:0;background:#fff;color:#111;font-size:34px;cursor:pointer;box-shadow:0 8px 20px rgba(0,0,0,.18)}.slider-arrow.prev{right:18px}.slider-arrow.next{left:18px}.slider-dots{position:absolute;left:0;right:0;bottom:18px;z-index:5;display:flex;justify-content:center;gap:9px}.slider-dots button{width:12px;height:12px;border-radius:50%;border:0;background:#fff;opacity:.9;cursor:pointer}.slider-dots button.active{background:var(--red);width:28px;border-radius:99px}.sample-slide{background:linear-gradient(135deg,#166534,#991b1b)}.sample-slide.blue-gradient{background:linear-gradient(135deg,#0f172a,#1d4ed8)}
.content-section{margin-top:18px;padding:20px}.section-heading{display:flex;align-items:center;justify-content:space-between;margin-bottom:18px;border-right:4px solid var(--red);padding-right:12px}.section-heading.blue{border-right-color:var(--blue)}.section-heading h1,.section-heading h2{font-size:24px}.section-heading a{font-size:13px;color:var(--muted);font-weight:800}.article-grid{display:grid;gap:18px}.article-grid.three{grid-template-columns:repeat(3,1fr)}.article-grid.four{grid-template-columns:repeat(4,1fr)}.article-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden;transition:.2s}.article-card:hover{transform:translateY(-3px);box-shadow:0 12px 28px rgba(15,23,42,.1)}.article-image{height:175px;position:relative;display:block;background:#e5e7eb;overflow:hidden}.article-image img{width:100%;height:100%;object-fit:cover;transition:.3s}.article-card:hover img{transform:scale(1.04)}.card-tag{position:absolute;left:12px;bottom:12px}.article-body{padding:14px}.article-body h3{font-size:18px;line-height:1.6;margin:0 0 8px}.article-body p{font-size:14px;color:#4b5563;margin:0 0 10px}.image-placeholder,.mini-image{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,#e5e7eb,#f9fafb);color:#6b7280;font-weight:900}.image-placeholder.small{height:130px}.mini-card{background:#fff;border:1px solid var(--line);border-radius:14px;overflow:hidden}.mini-card .mini-image{height:130px}.mini-card h3{font-size:15px;margin:12px;line-height:1.6}.breadcrumb-wrap{margin-bottom:24px}.breadcrumb{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:12px;padding:12px 18px;list-style:none;display:flex;gap:10px}.breadcrumb li:after{content:"/";margin-right:10px;color:#9ca3af}.breadcrumb li:last-child:after{display:none}.inner-content,.article-detail,.simple-page,.contact-page{min-width:0}.page-card{padding:26px}.list-stack{display:grid;gap:24px}.list-item{display:grid;grid-template-columns:280px 1fr;gap:22px;border-bottom:1px solid var(--line);padding-bottom:22px}.list-item:last-child{border-bottom:0}.list-thumb{height:170px;border-radius:14px;overflow:hidden;background:#e5e7eb}.list-thumb img{width:100%;height:100%;object-fit:cover}.list-body h2{font-size:24px;margin:0 0 8px}.list-body p{color:#374151;margin:12px 0 0}.detail-header{text-align:center;margin-bottom:24px}.detail-header h1{font-size:36px;line-height:1.5;margin:12px 0}.detail-header .meta-row{justify-content:center}.detail-image{max-height:520px;width:100%;object-fit:cover;border-radius:16px;margin-bottom:24px}.detail-content{font-size:18px;color:#1f2937}.detail-content p{margin:0 0 20px}.detail-content img{border-radius:14px;margin:24px auto}.simple-page h1,.contact-page h1{font-size:32px;margin-top:0}.modern-form{display:grid;gap:16px;margin-top:22px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px}.modern-form label{display:grid;gap:8px;font-weight:800}.modern-form input,.modern-form textarea{border:1px solid var(--line);border-radius:12px;padding:12px 14px;font:inherit;background:#f9fafb}.modern-form button{justify-self:start;border:0;background:var(--red);color:#fff;border-radius:12px;padding:12px 26px;font-weight:900;cursor:pointer}.site-footer{background:#161616;color:#fff;margin-top:40px}.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:32px;padding:38px 0}.footer-grid a{display:block;color:#e5e7eb;margin:6px 0}.footer-socials{display:flex;gap:12px}.footer-bottom{border-top:1px solid rgba(255,255,255,.08);text-align:center;color:#9ca3af;padding:14px}.back-to-top{position:fixed;left:22px;bottom:22px;width:44px;height:44px;border:0;border-radius:12px;background:var(--red);color:#fff;font-size:22px;display:none;cursor:pointer}.back-to-top.show{display:block}.search-overlay{position:fixed;inset:0;background:rgba(0,0,0,.6);z-index:80;display:grid;place-items:center;padding:20px}.search-box{background:#fff;border-radius:18px;padding:28px;width:min(720px,100%);position:relative}.search-close{position:absolute;left:18px;top:14px;border:0;background:none;font-size:30px;cursor:pointer}.search-row{display:flex;gap:10px;margin-top:14px}.search-row input{flex:1;border:1px solid var(--line);border-radius:12px;padding:14px;font:inherit}.search-row button{border:0;background:var(--red);color:#fff;border-radius:12px;padding:0 24px;font-weight:900}
@media(max-width:1100px){.container{width:min(100% - 28px,1100px)}.home-layout,.inner-layout{grid-template-columns:1fr}.left-sidebar{order:2}.hero-slider{height:380px}.article-grid.three,.article-grid.four{grid-template-columns:repeat(2,1fr)}.brand strong{font-size:46px}.nav-menu{gap:20px}}
@media(max-width:760px){.brandbar-inner{height:120px}.brand strong{font-size:34px}.brand span{font-size:14px}.brand-actions{display:none}.mobile-nav-toggle{display:block;border:0;background:#fff;font-size:24px}.nav-inner{justify-content:space-between}.nav-menu{display:none;position:absolute;right:14px;left:14px;top:58px;background:#fff;border-radius:14px;box-shadow:var(--shadow);padding:14px;flex-direction:column;align-items:flex-start;gap:6px}.nav-menu.open{display:flex}.hero-slider{height:330px}.slide-content{right:24px;left:24px;bottom:38px}.slide-content h1{font-size:26px}.article-grid.three,.article-grid.four{grid-template-columns:1fr}.list-item{grid-template-columns:1fr}.form-grid,.footer-grid{grid-template-columns:1fr}.social-grid{grid-template-columns:repeat(2,1fr)}}


/* =========================================================
   RTL header + search overlay fixes
   Patch: logo/title forced to the right, search/actions left,
   sidebar forced to the left, and search overlay closes cleanly.
   ========================================================= */
.topbar-inner{
  direction:ltr;
}
.topbar-social{
  order:1;
}
.topbar-date{
  order:2;
  direction:rtl;
  text-align:right;
}
.brandbar-inner{
  direction:ltr;
}
.brand-actions{
  order:1;
  margin-right:auto;
}
.brand{
  order:2;
  margin-left:auto;
  align-items:flex-end;
  text-align:right;
  direction:rtl;
}
.main-nav,
.nav-inner,
.nav-menu{
  direction:rtl;
}
.nav-inner{
  justify-content:flex-start;
}
.nav-menu{
  flex-direction:row;
}

/* Keep the left widgets truly on the left even with the page in RTL. */
.home-layout,
.inner-layout{
  direction:ltr;
  grid-template-columns:280px minmax(0,1fr);
}
.home-layout > *,
.inner-layout > *{
  direction:rtl;
}

/* Search overlay close behavior: CSS display must not override hidden attr. */
.search-overlay[hidden]{
  display:none !important;
}
.search-overlay{
  direction:rtl;
}
body.search-open{
  overflow:hidden;
}
.search-box{
  text-align:right;
}
.search-close{
  left:18px;
  right:auto;
  line-height:1;
  z-index:2;
}

@media(max-width:1100px){
  .home-layout,
  .inner-layout{
    grid-template-columns:1fr;
  }
  .left-sidebar{
    order:2;
  }
  .main-column,
  .inner-content,
  .article-detail,
  .simple-page,
  .contact-page{
    order:1;
  }
}

@media(max-width:760px){
  .brandbar-inner{
    direction:rtl;
    justify-content:space-between;
  }
  .brand{
    margin-left:0;
    margin-right:0;
  }
  .brand-actions{
    display:flex;
    margin-right:0;
    margin-left:0;
  }
  .live-pill{
    display:none;
  }
  .header-search-btn{
    width:42px;
    height:42px;
  }
}

.slide-button{display:inline-flex;align-items:center;justify-content:center;margin-top:14px;padding:9px 18px;border-radius:999px;background:#dc2626;color:#fff;font-weight:800;box-shadow:0 10px 20px rgba(220,38,38,.25)}

/* Rich article body formatting from panel editor */
.detail-content,
.page-content{
  direction:rtl;
  text-align:right;
  overflow-wrap:anywhere;
  word-break:normal;
}
.detail-content img,
.page-content img,
.content-image img{
  max-width:100% !important;
  height:auto !important;
  border-radius:16px;
  margin:24px auto;
  display:block;
  box-shadow:0 12px 28px rgba(15,23,42,.10);
}
.detail-content figure,
.page-content figure{
  margin:26px 0;
  text-align:center;
}
.detail-content figcaption,
.page-content figcaption{
  color:#6b7280;
  font-size:14px;
  margin-top:8px;
}
.detail-content iframe,
.detail-content video,
.page-content iframe,
.page-content video,
.content-video iframe{
  width:100% !important;
  max-width:900px;
  min-height:420px;
  border:0;
  border-radius:16px;
  margin:24px auto;
  display:block;
  background:#111827;
  box-shadow:0 12px 28px rgba(15,23,42,.10);
}
.detail-content table,
.page-content table{
  width:100%;
  border-collapse:collapse;
  display:block;
  overflow-x:auto;
}
.detail-content blockquote,
.page-content blockquote{
  border-right:5px solid var(--red);
  background:#f9fafb;
  color:#374151;
  padding:16px 20px;
  border-radius:12px;
  margin:24px 0;
}
.detail-hero{
  width:100%;
  max-height:520px;
  object-fit:cover;
  border-radius:16px;
}
@media(max-width:760px){
  .detail-content iframe,
  .detail-content video,
  .page-content iframe,
  .page-content video{min-height:230px;}
}

/* =========================================================
   Option 2 detail page: magazine layout with left sidebar
   ========================================================= */
.article-option-two{
  align-items:start;
  gap:24px;
  margin-top:26px;
}
.detail-left-sidebar{
  display:grid;
  gap:18px;
  min-width:0;
}
.detail-left-sidebar .left-sidebar{
  display:grid;
  gap:18px;
}
.detail-main-column{
  min-width:0;
}
.detail-breadcrumb{
  margin:0 0 18px;
  box-shadow:var(--shadow);
  flex-wrap:wrap;
  align-items:center;
}
.detail-breadcrumb a,
.detail-breadcrumb span{
  font-size:13px;
  color:#6b7280;
  font-weight:800;
}
.modern-reading-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:34px;
  overflow:hidden;
}
.article-head-block{
  text-align:center;
  max-width:900px;
  margin:0 auto 24px;
}
.detail-category-badge{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:999px;
  background:#e8f7ef;
  color:#15803d;
  padding:7px 16px;
  font-size:13px;
  font-weight:900;
  margin-bottom:14px;
}
.article-head-block h1{
  margin:0;
  font-size:36px;
  line-height:1.55;
  color:#111827;
  letter-spacing:-.02em;
}
.detail-subtitle{
  margin:12px auto 0;
  color:#4b5563;
  font-size:17px;
  line-height:2;
  max-width:760px;
}
.detail-meta-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:10px 18px;
  margin-top:16px;
  color:#6b7280;
  font-size:13px;
  font-weight:800;
}
.detail-meta-row span{
  display:inline-flex;
  align-items:center;
  gap:6px;
}
.detail-cover-wrap{
  margin:22px 0 0;
  border-radius:18px;
  overflow:hidden;
  background:#f3f4f6;
  box-shadow:0 18px 42px rgba(15,23,42,.12);
}
.detail-cover-image{
  display:block;
  width:100%;
  aspect-ratio:16/9;
  height:auto;
  object-fit:cover;
}
.detail-inline-share{
  display:flex;
  align-items:center;
  justify-content:center;
  flex-wrap:wrap;
  gap:8px;
  margin:18px 0 24px;
  padding:12px;
  background:#f9fafb;
  border:1px solid var(--line);
  border-radius:14px;
}
.detail-inline-share > span{
  color:#374151;
  font-size:13px;
  font-weight:900;
  margin-left:6px;
}
.share-chip,
.share-btn{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:0;
  border-radius:10px;
  padding:8px 14px;
  color:#fff;
  font:inherit;
  font-size:13px;
  font-weight:900;
  cursor:pointer;
  text-decoration:none;
}
.share-chip.telegram,.share-btn.telegram{background:#38aeea;}
.share-chip.whatsapp,.share-btn.whatsapp{background:#22c55e;}
.share-chip.x,.share-btn.x{background:#111827;}
.share-chip.facebook,.share-btn.facebook{background:#2563eb;}
.share-chip.copy,.share-btn.copy{background:#64748b;}
.share-side-card h3{
  margin:0 0 14px;
  font-size:18px;
  border-right:4px solid var(--red);
  padding-right:10px;
}
.vertical-share-list{
  display:grid;
  gap:9px;
}
.vertical-share-list .share-btn{
  width:100%;
}
.reading-content{
  max-width:900px;
  margin:0 auto;
  font-size:18px;
  line-height:2.25;
  color:#1f2937;
}
.reading-content p{
  margin:0 0 22px;
}
.reading-content h2,
.reading-content h3,
.reading-content h4{
  color:#111827;
  line-height:1.7;
  margin:34px 0 14px;
}
.reading-content ul,
.reading-content ol{
  padding-right:24px;
  margin:0 0 22px;
}
.reading-content a{
  color:#dc2626;
  font-weight:900;
}
.reading-content img,
.reading-content figure img{
  max-width:100% !important;
  width:auto !important;
  height:auto !important;
  max-height:none;
  object-fit:contain;
  display:block;
  margin:24px auto;
  border-radius:16px;
  box-shadow:0 14px 32px rgba(15,23,42,.10);
}
.reading-content figure{
  max-width:100%;
  overflow:hidden;
}
.reading-content iframe,
.reading-content video{
  width:100% !important;
  max-width:900px !important;
  aspect-ratio:16/9;
  height:auto !important;
  min-height:auto !important;
  border-radius:16px;
  overflow:hidden;
}
.post-navigation-modern{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:18px;
}
.post-nav-modern{
  display:grid;
  grid-template-columns:82px 1fr;
  gap:12px;
  align-items:center;
  min-height:94px;
  padding:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  color:#111827;
}
.post-nav-modern img{
  width:82px;
  height:70px;
  border-radius:12px;
  object-fit:cover;
}
.post-nav-modern span{
  color:#6b7280;
  font-size:12px;
  font-weight:900;
}
.post-nav-modern strong{
  display:block;
  margin-top:4px;
  font-size:14px;
  line-height:1.6;
}
.next-post{
  text-align:left;
  direction:rtl;
}
.related-modern-section{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  margin-top:18px;
  padding:20px;
}
.related-modern-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.related-modern-card{
  display:block;
  color:#111827;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  transition:.2s;
}
.related-modern-card:hover{
  transform:translateY(-3px);
  box-shadow:0 12px 26px rgba(15,23,42,.10);
}
.related-modern-card img,
.related-modern-card .image-placeholder{
  width:100%;
  height:115px;
  object-fit:cover;
  border-radius:0;
  box-shadow:none;
  margin:0;
}
.related-modern-card strong{
  display:block;
  padding:10px 10px 2px;
  font-size:14px;
  line-height:1.7;
}
.related-modern-card span{
  display:block;
  padding:0 10px 12px;
  font-size:12px;
  color:#6b7280;
}
.copy-done{
  outline:3px solid rgba(34,197,94,.35);
}
@media(max-width:1100px){
  .detail-left-sidebar{order:2;}
  .detail-main-column{order:1;}
  .related-modern-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:760px){
  .modern-reading-card{padding:20px;}
  .article-head-block h1{font-size:26px;}
  .detail-subtitle{font-size:15px;}
  .reading-content{font-size:16px;line-height:2.15;}
  .post-navigation-modern{grid-template-columns:1fr;}
  .related-modern-grid{grid-template-columns:1fr;}
  .detail-inline-share{justify-content:flex-start;}
}

/* =========================================================
   Final tuning: dynamic pages, tags, compact cover images
   ========================================================= */
.compact-cover{
  max-width:780px;
  margin:22px auto 28px;
}
.compact-cover .detail-cover-image,
.detail-cover-wrap.compact-cover img{
  width:100%;
  max-height:390px;
  object-fit:cover;
  border-radius:18px;
}
.reading-content{direction:rtl;text-align:right;line-height:2.15;font-size:17px;color:#1f2937;overflow-wrap:anywhere;}
.reading-content img{max-width:100%!important;height:auto!important;display:block;margin:22px auto;border-radius:16px;box-shadow:0 10px 26px rgba(15,23,42,.10);}
.reading-content figure{max-width:100%;margin:26px auto;text-align:center;}
.reading-content figure img{margin-bottom:8px;}
.reading-content figcaption{font-size:13px;color:#6b7280;line-height:1.7;}
.reading-content iframe,
.reading-content video{width:100%!important;max-width:900px;min-height:360px;aspect-ratio:16/9;border:0;border-radius:16px;display:block;margin:24px auto;background:#111827;}
.reading-content table{width:100%;border-collapse:collapse;display:block;overflow-x:auto;border:1px solid var(--line);border-radius:12px;}
.reading-content th,.reading-content td{border:1px solid #e5e7eb;padding:10px 12px;white-space:nowrap;}
.tag-chip-row{display:flex;flex-wrap:wrap;align-items:center;gap:10px;margin:28px 0 0;padding-top:20px;border-top:1px solid var(--line);}
.tag-chip-row span{font-weight:900;color:#374151;}
.tag-chip-row a{background:#f3f4f6;border:1px solid #e5e7eb;color:#374151;text-decoration:none;border-radius:999px;padding:7px 12px;font-weight:800;font-size:13px;}
.tag-chip-row a:hover{background:#fee2e2;color:#991b1b;border-color:#fecaca;}
.share-chip.facebook,.share-btn.facebook{background:#1877f2;color:#fff!important;}
.page-modern-section{padding:30px 0 50px;}
.page-breadcrumb{margin-bottom:18px;}
.page-hero-card{background:linear-gradient(135deg,#fff,#f8fafc);border:1px solid var(--line);box-shadow:var(--shadow);border-radius:22px;padding:34px;margin-bottom:24px;text-align:right;}
.page-hero-card h1{font-size:clamp(28px,4vw,46px);margin:8px 0 10px;color:#111827;}
.page-hero-card p{max-width:850px;color:#6b7280;font-size:18px;line-height:1.9;margin:0;}
.about-layout-grid,.support-layout-grid{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:22px;align-items:start;}
.about-main-card,.document-page-card,.support-layout-grid .modern-page-card{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:22px;padding:32px;}
.about-highlight-card,.contact-info-card{background:#0f172a;color:#fff;border-radius:22px;padding:24px;box-shadow:var(--shadow);}
.about-highlight-card h3,.contact-info-card h3{color:#fff;margin:0 0 10px;}
.about-highlight-card p,.contact-info-card p,.about-highlight-card li{color:#dbeafe;line-height:1.9;}
.contact-info-card a{display:inline-flex;margin-top:12px;background:#fff;color:#0f172a;text-decoration:none;border-radius:999px;padding:9px 14px;font-weight:900;}
.about-value-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:16px;margin-top:20px;}
.about-value-grid div{background:#fff;border:1px solid var(--line);box-shadow:var(--shadow);border-radius:18px;padding:20px;display:grid;gap:8px;}
.about-value-grid strong{font-size:20px;color:#b91c1c;}
.about-value-grid span{color:#6b7280;line-height:1.8;}
.document-page-card{max-width:980px;margin:0 auto;}
.muted-text{color:#6b7280;line-height:1.9;}
@media(max-width:960px){.about-layout-grid,.support-layout-grid{grid-template-columns:1fr}.about-value-grid{grid-template-columns:1fr}.compact-cover .detail-cover-image{max-height:280px}.reading-content iframe,.reading-content video{min-height:230px}}

/* =========================================================
   Logo, fallback images, and secure contact page
   ========================================================= */
.brand{
  flex-direction:row-reverse;
  gap:18px;
  align-items:center;
}
.brand-logo{
  width:92px;
  height:92px;
  object-fit:contain;
  border-radius:50%;
  background:rgba(255,255,255,.12);
  padding:6px;
  box-shadow:0 14px 34px rgba(0,0,0,.20);
}
.brand-text{
  display:flex;
  flex-direction:column;
  align-items:flex-end;
  text-align:right;
}
.brand-text small{
  font-size:18px;
  margin-top:14px;
  font-weight:500;
}
.brand > span:not(.brand-text){display:none;}

.image-placeholder.no-image-logo{
  display:grid;
  place-items:center;
  gap:8px;
  background:linear-gradient(135deg,#f8fafc,#eef2f7);
  color:#6b7280;
  font-weight:900;
  min-height:140px;
  text-align:center;
}
.image-placeholder.no-image-logo img{
  width:78px;
  height:78px;
  object-fit:contain;
  border-radius:50%;
  box-shadow:none;
  margin:0 auto;
}
.image-placeholder.no-image-logo.small img,
.related-modern-card .image-placeholder.no-image-logo img{
  width:56px;
  height:56px;
}
.slide-fallback-logo{
  object-fit:contain !important;
  padding:38px;
  background:linear-gradient(135deg,#eef6f0,#f8fafc);
}
.detail-cover-wrap.no-cover{
  max-width:560px;
  margin-inline:auto;
  background:linear-gradient(135deg,#eef6f0,#f8fafc);
  box-shadow:0 12px 28px rgba(15,23,42,.08);
}
.detail-logo-cover{
  object-fit:contain !important;
  aspect-ratio:16/9;
  padding:44px;
}

.contact-modern-section{padding:28px 0 48px;}
.contact-hero-card{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:24px;
  background:linear-gradient(135deg,#fff,#f8fafc);
  border:1px solid var(--line);
  border-radius:22px;
  box-shadow:var(--shadow);
  padding:28px 34px;
  margin-bottom:22px;
}
.contact-hero-card h1{
  margin:8px 0 8px;
  font-size:36px;
  line-height:1.45;
}
.contact-hero-card p{margin:0;color:#4b5563;font-size:16px;}
.contact-hero-card img{
  width:120px;
  height:120px;
  object-fit:contain;
  border-radius:50%;
  background:#f8fafc;
  padding:8px;
  box-shadow:0 12px 28px rgba(15,23,42,.08);
}
.contact-layout-grid{
  display:grid;
  grid-template-columns:minmax(0,1fr) 340px;
  gap:22px;
  align-items:start;
  direction:rtl;
}
.contact-form-card h2{margin-top:0;}
.modern-form label{
  display:grid;
  gap:7px;
  font-weight:900;
  color:#374151;
  margin-bottom:14px;
}
.modern-form input,
.modern-form textarea,
.modern-form select{
  width:100%;
  border:1px solid var(--line);
  border-radius:12px;
  padding:12px 14px;
  font:inherit;
  background:#fff;
  color:#111827;
  outline:none;
  transition:.2s;
}
.modern-form input:focus,
.modern-form textarea:focus{
  border-color:var(--red);
  box-shadow:0 0 0 4px rgba(223,32,39,.10);
}
.form-grid{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
}
.security-row{max-width:360px;}
.hp-field{
  position:absolute !important;
  left:-9999px !important;
  width:1px;
  height:1px;
  overflow:hidden;
}
.primary-submit-btn{
  border:0;
  border-radius:12px;
  background:linear-gradient(135deg,var(--red),var(--red-dark));
  color:#fff;
  padding:12px 28px;
  font:inherit;
  font-weight:900;
  cursor:pointer;
  box-shadow:0 12px 24px rgba(223,32,39,.22);
}
.field-error,
.form-error{
  display:block;
  color:#b91c1c;
  font-size:13px;
  font-weight:800;
}
.form-error{
  background:#fef2f2;
  border:1px solid #fecaca;
  border-radius:12px;
  padding:10px 12px;
  margin-bottom:14px;
}
.modern-contact-side{
  position:sticky;
  top:84px;
}
.contact-mini-links{
  display:grid;
  gap:10px;
  margin-top:18px;
}
.contact-mini-links a{
  display:flex;
  justify-content:space-between;
  padding:11px 14px;
  background:#f9fafb;
  border:1px solid var(--line);
  border-radius:12px;
  font-weight:900;
}
.muted-text{color:#6b7280;}
@media(max-width:900px){
  .contact-layout-grid{grid-template-columns:1fr;}
  .modern-contact-side{position:static;}
  .contact-hero-card{align-items:flex-start;}
  .contact-hero-card img{width:90px;height:90px;}
}
@media(max-width:760px){
  .brand-logo{width:62px;height:62px;}
  .brand-text small{font-size:13px;margin-top:8px;}
  .contact-hero-card{display:block;padding:22px;}
  .contact-hero-card img{margin-top:18px;}
  .contact-hero-card h1{font-size:28px;}
  .form-grid{grid-template-columns:1fr;}
}


/* =========================================================
   Final header alignment patch
   Logo is the first/right-most item in RTL, title text sits after it,
   and search/live actions stay on the left side of the red banner.
   ========================================================= */
.brandbar-inner{
  direction:ltr;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.brand-actions{
  order:1;
  margin-right:auto;
  margin-left:0;
}
.brand{
  order:2;
  margin-left:auto;
  margin-right:0;
  direction:rtl;
  display:flex;
  flex-direction:row;
  align-items:center;
  justify-content:flex-start;
  gap:18px;
  text-align:right;
}
.brand-logo{
  order:1;
  flex:0 0 auto;
}
.brand-text{
  order:2;
  display:flex;
  flex-direction:column;
  align-items:flex-start;
  text-align:right;
}
.brand-text strong,
.brand-text small{
  text-align:right;
}
@media(max-width:760px){
  .brandbar-inner{direction:ltr;}
  .brand{gap:10px;}
  .brand-text{align-items:flex-start;}
}


/* =========================================================
   Mobile sliding menu + pagination polish
   ========================================================= */
.mobile-menu-head{display:none;}
.mobile-nav-backdrop[hidden]{display:none!important;}
.mobile-nav-text{font-size:14px;font-weight:900;margin-inline-start:6px;}
.pagination-wrap{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  align-items:center;
  gap:8px;
  padding:0;
  margin:26px 0 0;
}
.pagination-wrap a,.pagination-wrap span{
  min-width:42px;
  height:42px;
  padding:0 14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border:1px solid var(--line);
  background:#fff;
  border-radius:12px;
  color:#111827;
  font-weight:900;
  box-shadow:0 8px 18px rgba(15,23,42,.05);
}
.pagination-wrap .active span,
.pagination-wrap a:hover{
  background:var(--red);
  border-color:var(--red);
  color:#fff;
}
.paging{width:100%;}
@media(max-width:760px){
  body.mobile-nav-open{overflow:hidden;}
  .main-nav{z-index:60;}
  .nav-inner{height:58px;justify-content:flex-start;}
  .mobile-nav-toggle{
    display:inline-flex!important;
    align-items:center;
    gap:6px;
    border:1px solid var(--line)!important;
    background:#fff!important;
    border-radius:12px;
    padding:8px 12px;
    color:#111827;
    box-shadow:0 8px 18px rgba(15,23,42,.06);
  }
  .mobile-nav-backdrop{
    position:fixed;
    inset:0;
    z-index:88;
    background:rgba(15,23,42,.56);
    backdrop-filter:blur(2px);
  }
  .nav-menu{
    display:flex!important;
    position:fixed!important;
    top:0!important;
    right:0!important;
    left:auto!important;
    bottom:0!important;
    width:min(86vw,360px);
    height:100vh;
    z-index:90;
    padding:0 0 24px!important;
    margin:0!important;
    border-radius:0!important;
    box-shadow:-18px 0 42px rgba(15,23,42,.28)!important;
    background:#fff;
    transform:translateX(105%);
    transition:transform .28s ease;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:0!important;
    overflow-y:auto;
  }
  .nav-menu.open{transform:translateX(0);}
  .mobile-menu-head{
    display:flex;
    align-items:center;
    justify-content:space-between;
    position:sticky;
    top:0;
    z-index:2;
    padding:18px 18px;
    background:linear-gradient(135deg,#e51f27,#b9161c);
    color:#fff;
    font-size:18px;
    font-weight:900;
  }
  .mobile-menu-close{
    width:38px;
    height:38px;
    border:1px solid rgba(255,255,255,.35);
    border-radius:12px;
    background:rgba(255,255,255,.12);
    color:#fff;
    font-size:28px;
    line-height:1;
    cursor:pointer;
  }
  .nav-menu li{width:100%;border-bottom:1px solid #f1f5f9;}
  .nav-menu li.mobile-menu-head{border-bottom:0;}
  .nav-menu a{
    display:flex;
    width:100%;
    padding:15px 20px!important;
    white-space:normal;
    line-height:1.8;
    font-size:16px;
    font-weight:900;
  }
  .nav-menu a:after{display:none!important;}
  .nav-menu a:hover{background:#f9fafb;color:var(--red);}
  .brandbar-inner{height:auto;min-height:110px;padding:18px 0;gap:12px;}
  .brand{gap:8px;}
  .brand-logo{width:58px;height:58px;object-fit:contain;}
  .brand strong{font-size:28px!important;line-height:1.25;}
  .brand small{font-size:13px;line-height:1.7;}
  .brand-text{display:flex;flex-direction:column;align-items:flex-start;}
}

/* =========================================================
   FINAL DESIGN PATCH: desktop menu vs mobile drawer
   ========================================================= */
@media (min-width: 761px){
  .mobile-nav-toggle,
  .mobile-nav-backdrop,
  .mobile-menu-head{display:none!important;}
  .main-nav{display:block!important;}
  .nav-inner{height:58px;justify-content:flex-start!important;}
  .nav-menu{
    display:flex!important;
    position:static!important;
    inset:auto!important;
    width:auto!important;
    height:auto!important;
    transform:none!important;
    flex-direction:row!important;
    align-items:center!important;
    gap:34px!important;
    padding:0!important;
    margin:0!important;
    background:transparent!important;
    box-shadow:none!important;
    border-radius:0!important;
    overflow:visible!important;
  }
  .nav-menu li{width:auto!important;border:0!important;}
  .nav-menu a{display:inline-flex!important;width:auto!important;padding:18px 0!important;white-space:nowrap!important;}
}
@media (max-width: 760px){
  .topbar{display:none;}
  .brandbar-inner{direction:rtl!important;justify-content:space-between!important;}
  .brand-actions{display:flex!important;order:2;margin:0!important;gap:8px;}
  .brand{order:1;margin:0!important;min-width:0;flex:1;justify-content:flex-start!important;}
  .brand-logo{width:56px!important;height:56px!important;}
  .brand-text{min-width:0;}
  .brand-text strong{font-size:26px!important;white-space:normal;}
  .brand-text small{display:none;}
  .main-nav{position:sticky;top:0;z-index:70;background:#fff;box-shadow:0 2px 10px rgba(15,23,42,.10);}
  .nav-inner{height:58px;justify-content:flex-start!important;}
  .mobile-nav-toggle{display:inline-flex!important;align-items:center;gap:8px;}
  .nav-menu{
    display:flex!important;
    position:fixed!important;
    top:0!important;
    right:0!important;
    left:auto!important;
    bottom:0!important;
    width:min(86vw,360px)!important;
    height:100vh!important;
    transform:translateX(105%)!important;
    transition:transform .28s ease!important;
    flex-direction:column!important;
    align-items:stretch!important;
    gap:0!important;
    background:#fff!important;
    border-radius:0!important;
    box-shadow:-18px 0 42px rgba(15,23,42,.28)!important;
    padding:0 0 24px!important;
    margin:0!important;
    z-index:90!important;
    overflow-y:auto!important;
    pointer-events:none;
  }
  .nav-menu.open{transform:translateX(0)!important;pointer-events:auto;}
  .nav-menu li{width:100%!important;border-bottom:1px solid #f1f5f9!important;display:block!important;}
  .nav-menu li.mobile-menu-head{display:flex!important;border-bottom:0!important;}
  .nav-menu a{display:flex!important;width:100%!important;padding:15px 20px!important;line-height:1.8!important;white-space:normal!important;text-align:right!important;}
  .nav-menu a:after{display:none!important;}
}

/* Smaller article/development cover image. Keep it as a block, do not wrap text around it. */
.detail-cover-wrap.compact-cover{
  max-width:760px;
  margin:18px auto 22px;
  background:#f8fafc;
  border:1px solid #eef2f7;
  padding:10px;
}
.compact-cover .detail-cover-image,
.detail-cover-wrap.compact-cover img{
  width:100%;
  max-height:360px!important;
  object-fit:contain!important;
  background:#f8fafc;
  box-shadow:none;
  margin:0 auto!important;
}
.detail-cover-wrap.no-cover{
  max-width:360px;
  background:#fff;
}
.detail-logo-cover{max-height:240px!important;object-fit:contain!important;}

/* Editable predefined page sections */
.page-hero-card{
  display:flex;
  align-items:center;
  gap:22px;
  text-align:right;
}
.page-hero-logo{
  width:96px;
  height:96px;
  object-fit:contain;
  flex:0 0 auto;
}
.page-cta-button,
.about-value-grid a{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  margin-top:14px;
  padding:10px 18px;
  border-radius:12px;
  background:var(--red);
  color:#fff;
  font-weight:900;
}
.page-extra-sections{
  display:grid;
  gap:18px;
  margin-top:22px;
}
.page-section-box{overflow:hidden;}
.page-section-image{
  max-width:100%;
  max-height:340px;
  object-fit:contain;
  display:block;
  margin:0 auto 18px;
  border-radius:16px;
  background:#f8fafc;
}
@media(max-width:760px){
  .page-hero-card{display:block;}
  .page-hero-logo{width:72px;height:72px;margin-bottom:12px;}
  .compact-cover .detail-cover-image,
  .detail-cover-wrap.compact-cover img{max-height:260px!important;}
}

/* =========================================================
   STATIC PAGE CLEANUP PATCH
   - Remove top logo/title hero space from page templates
   - Give extra custom/FAQ sections a controlled background and width
   ========================================================= */
.page-modern-section .page-breadcrumb{
  margin-bottom:18px;
}
.page-modern-section .page-hero-card{
  display:none!important;
}
.page-modern-section .modern-page-card,
.page-modern-section .about-main-card,
.page-modern-section .document-page-card{
  max-width:980px;
  margin-right:auto;
  margin-left:0;
}
.about-layout-grid,
.support-layout-grid{
  align-items:start;
}
.about-value-grid{
  max-width:1180px;
  margin:22px auto 0;
}
.page-extra-sections-wrap{
  margin-top:32px;
  padding:32px 0;
  border-radius:28px;
  background:linear-gradient(180deg,#f8fafc 0%,#eef2f7 100%);
  border:1px solid #e5e7eb;
}
.page-extra-sections{
  width:min(100%,1040px);
  margin:0 auto;
  display:grid;
  gap:20px;
  padding:0 18px;
}
.page-section-box{
  display:grid;
  grid-template-columns:minmax(180px,280px) 1fr;
  gap:24px;
  align-items:center;
  background:#fff;
  border:1px solid #e5e7eb;
  border-radius:24px;
  box-shadow:0 18px 42px rgba(15,23,42,.07);
  padding:24px;
  overflow:hidden;
  text-align:right;
}
.page-section-box:not(:has(.page-section-media)){
  grid-template-columns:1fr;
  max-width:760px;
  margin:0 auto;
}
.page-section-media{
  background:#f8fafc;
  border:1px solid #eef2f7;
  border-radius:20px;
  min-height:160px;
  display:flex;
  align-items:center;
  justify-content:center;
  padding:12px;
}
.page-section-image{
  max-width:100%;
  max-height:230px;
  object-fit:contain;
  display:block;
  margin:0 auto;
  border-radius:16px;
  background:transparent;
}
.page-section-content h2{
  margin:0 0 10px;
  font-size:24px;
  font-weight:900;
  color:#0f172a;
}
.page-section-content .reading-content{
  font-size:16px;
  line-height:2.1;
}
.page-section-content .reading-content p:last-child{margin-bottom:0;}
@media(max-width:900px){
  .page-modern-section .modern-page-card,
  .page-modern-section .about-main-card,
  .page-modern-section .document-page-card{
    max-width:100%;
    margin-left:auto;
  }
  .page-section-box{
    grid-template-columns:1fr;
  }
}
@media(max-width:760px){
  .page-extra-sections-wrap{
    padding:18px 0;
    border-radius:20px;
  }
  .page-extra-sections{
    padding:0 12px;
  }
  .page-section-box{
    padding:18px;
    border-radius:20px;
  }
}

/* =========================================================
   Tuning patch: dates, hidden modules, side widgets, development list
   ========================================================= */
.dual-date{display:flex;align-items:center;gap:8px;direction:rtl;font-weight:700;white-space:nowrap}.dual-date .date-en{direction:ltr;color:#f9fafb}.dual-date .date-fa{color:#fff}.date-sep{opacity:.55}
.popular-widget .popular-list{display:grid;gap:10px}.popular-item{display:grid;grid-template-columns:34px 1fr;gap:10px;align-items:start;padding:10px;border:1px solid #eef2f7;border-radius:14px;background:#fff;transition:.2s}.popular-item:hover{transform:translateY(-2px);box-shadow:0 10px 24px rgba(15,23,42,.08)}.popular-rank{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;background:#fee2e2;color:#dc2626;font-weight:900;font-size:13px}.popular-title{font-size:14px;line-height:1.7;font-weight:800;color:#111827}.popular-meta{grid-column:2;color:#6b7280;font-size:12px}.empty-widget-text{font-size:13px;line-height:1.9;color:#6b7280;background:#f8fafc;border:1px dashed #e5e7eb;border-radius:14px;padding:12px}.advert-widget{overflow:hidden}.advert-box{display:block;border:1px solid #eef2f7;border-radius:18px;overflow:hidden;background:#f8fafc;text-align:center}.advert-box img{display:block;width:100%;height:auto;max-height:280px;object-fit:cover}.advert-box strong{display:block;padding:12px;font-size:14px;color:#111827}.advert-placeholder{min-height:180px;display:grid;place-items:center;background:linear-gradient(135deg,#fef2f2,#eff6ff);color:#64748b;font-weight:900}.advert-demo small{display:block;padding:12px;color:#6b7280;line-height:1.8}.section-about-widget p{font-size:14px;line-height:2;color:#374151;margin:0 0 12px}.muted-small{color:#94a3b8!important;font-size:12px!important}.article-grid.two,.development-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.section-intro{margin:-4px 0 22px;color:#64748b;line-height:2}.development-list-card{padding:26px}.development-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 10px 24px rgba(15,23,42,.05);transition:.2s}.development-card:hover{transform:translateY(-3px);box-shadow:0 16px 36px rgba(15,23,42,.1)}.development-image{display:block;height:240px;background:#eef2f7;overflow:hidden}.development-image img{width:100%;height:100%;object-fit:cover}.development-body{padding:18px;text-align:right}.development-body h2{font-size:20px;line-height:1.7;margin:0 0 10px}.development-body p{font-size:14px;line-height:2;color:#4b5563;margin:12px 0 0}.home-sidebar .categories-widget{display:none!important}.main-nav .nav-menu a[href*="programs"],.main-nav .nav-menu a[href*="gallery"]{display:none!important}
@media(max-width:1100px){.article-grid.two,.development-grid{grid-template-columns:1fr}.development-image{height:220px}}
@media(max-width:760px){.dual-date{font-size:12px;gap:5px}.development-list-card{padding:18px}.development-image{height:210px}.popular-item{grid-template-columns:30px 1fr}.advert-placeholder{min-height:140px}}


/* =========================================================
   Final tuning patch: donation, events, dual dates
   ========================================================= */
.donate-pill{
  border:1px solid rgba(255,255,255,.55);
  background:#fff;
  color:#dc2626!important;
  border-radius:10px;
  min-height:46px;
  padding:0 22px;
  display:grid;
  place-items:center;
  font-weight:900;
  box-shadow:0 10px 24px rgba(0,0,0,.12);
}
.donate-pill:hover{background:#fff5f5;color:#b91c1c!important;}
.meta-row .dual-date-inline,
.article-card .meta-row span:first-child,
.list-body .meta-row span:first-child,
.detail-meta-row span,
.related-modern-card span{
  direction:rtl;
}
.event-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:18px;}
.event-card{background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;box-shadow:0 10px 24px rgba(15,23,42,.05);}
.event-card img{width:100%;height:160px;object-fit:cover;display:block;}
.event-card-body{padding:16px;text-align:right;}
.event-card h3{font-size:19px;line-height:1.7;margin:0 0 8px;}
.event-card p{font-size:14px;line-height:2;color:#4b5563;margin:10px 0 0;}
.sidebar-rich-text{font-size:14px;line-height:2;color:#374151;}
.sidebar-rich-text p{margin:0 0 12px;}
.mobile-donate-link a{color:#dc2626!important;font-weight:900!important;}
@media(max-width:1100px){.event-grid{grid-template-columns:1fr;}.donate-pill{min-height:42px;padding:0 16px}}
@media(max-width:760px){.brand-actions .donate-pill{display:none}.event-card img{height:190px}}

/* =========================================================
   Clean restored inner article/development pages
   Scope: only templates using .clean-inner-detail
   ========================================================= */
.clean-inner-detail.detail-page-layout{
  display:grid !important;
  grid-template-columns:300px minmax(0,1fr) !important;
  gap:24px !important;
  align-items:start !important;
  direction:ltr !important;
  margin-top:26px !important;
}
.clean-inner-detail > *{
  direction:rtl !important;
}
.clean-inner-detail .detail-page-sidebar{
  min-width:0 !important;
  display:block !important;
  order:0 !important;
}
.clean-inner-detail .detail-page-main{
  min-width:0 !important;
  order:0 !important;
}
.detail-side-panel-clean{
  display:grid;
  gap:18px;
}
.clean-side-widget{
  padding:22px !important;
}
.clean-popular-list{
  display:grid;
  gap:12px;
}
.clean-popular-item{
  display:grid;
  grid-template-columns:82px minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding:10px;
  border:1px solid var(--line);
  border-radius:14px;
  background:#fff;
  transition:.2s ease;
}
.clean-popular-item:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(15,23,42,.08);
}
.clean-popular-item img{
  width:82px;
  height:62px;
  object-fit:cover;
  border-radius:11px;
  background:#f3f4f6;
}
.clean-popular-item span{
  font-size:13px;
  font-weight:900;
  line-height:1.7;
  color:#111827;
}
.clean-tag-cloud{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.clean-tag-cloud a{
  display:inline-flex;
  align-items:center;
  border:1px solid var(--line);
  background:#f9fafb;
  border-radius:999px;
  padding:6px 12px;
  font-size:13px;
  font-weight:900;
  color:#374151;
}
.clean-detail-breadcrumb{
  margin:0 0 18px !important;
  flex-wrap:wrap;
  box-shadow:var(--shadow);
}
.clean-detail-breadcrumb a,
.clean-detail-breadcrumb span{
  font-size:13px;
  color:#6b7280;
  font-weight:800;
}
.clean-reading-card{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  padding:28px;
  overflow:hidden;
}
.clean-article-header{
  text-align:center;
  max-width:900px;
  margin:0 auto 20px;
}
.clean-article-header h1{
  margin:0;
  font-size:32px;
  line-height:1.55;
  color:#111827;
  letter-spacing:-.02em;
}
.clean-subtitle{
  max-width:760px;
  margin:10px auto 0;
  color:#4b5563;
  font-size:16px;
  line-height:2;
}
.clean-meta-row{
  display:flex;
  flex-wrap:wrap;
  justify-content:center;
  gap:10px 18px;
  margin-top:14px;
  color:#6b7280;
  font-size:13px;
  font-weight:800;
}
.clean-cover{
  width:min(820px,100%);
  margin:20px auto 24px;
  border-radius:16px;
  overflow:hidden;
  background:#f3f4f6;
  box-shadow:0 14px 32px rgba(15,23,42,.10);
}
.clean-cover img{
  width:100%;
  height:auto;
  max-height:360px;
  object-fit:cover;
}
.clean-content{
  max-width:900px;
  margin:0 auto;
  font-size:17px;
  line-height:2.25;
  color:#1f2937;
}
.clean-content p{
  margin:0 0 22px;
}
.clean-content img,
.clean-content figure img{
  max-width:100% !important;
  width:auto !important;
  height:auto !important;
  display:block !important;
  margin:24px auto !important;
  border-radius:15px;
  box-shadow:0 14px 32px rgba(15,23,42,.10);
}
.clean-content figure{
  max-width:100%;
  margin:24px auto;
  overflow:hidden;
}
.clean-content iframe,
.clean-content video{
  display:block;
  width:100% !important;
  max-width:900px !important;
  aspect-ratio:16/9;
  height:auto !important;
  min-height:auto !important;
  margin:24px auto;
  border-radius:15px;
  overflow:hidden;
}
.clean-content table{
  width:100% !important;
  max-width:100%;
  border-collapse:collapse;
  display:block;
  overflow-x:auto;
}
.clean-share-box{
  max-width:900px;
  margin:26px auto 0;
  padding:14px;
  border:1px solid var(--line);
  border-radius:16px;
  background:#f9fafb;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
  flex-wrap:wrap;
}
.clean-share-box strong{
  color:#374151;
  font-size:14px;
}
.clean-share-actions{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
}
.clean-share-actions .email{background:#475569;}
.clean-post-navigation{
  display:grid;
  grid-template-columns:1fr 1fr;
  gap:14px;
  margin-top:18px;
}
.clean-post-nav-card{
  display:grid;
  grid-template-columns:90px minmax(0,1fr);
  gap:12px;
  align-items:center;
  padding:12px;
  background:#fff;
  border:1px solid var(--line);
  border-radius:16px;
  box-shadow:var(--shadow);
  color:#111827;
}
.clean-post-nav-card img{
  width:90px;
  height:70px;
  object-fit:cover;
  border-radius:12px;
}
.clean-post-nav-card span{
  color:#6b7280;
  font-size:12px;
  font-weight:900;
}
.clean-post-nav-card strong{
  display:block;
  font-size:14px;
  line-height:1.7;
}
.clean-related-section{
  background:#fff;
  border:1px solid var(--line);
  border-radius:18px;
  box-shadow:var(--shadow);
  margin-top:18px;
  padding:20px;
}
.clean-related-grid{
  display:grid;
  grid-template-columns:repeat(4,1fr);
  gap:14px;
}
.clean-related-card{
  display:block;
  border:1px solid var(--line);
  border-radius:14px;
  overflow:hidden;
  background:#fff;
  color:#111827;
  transition:.2s ease;
}
.clean-related-card:hover{
  transform:translateY(-2px);
  box-shadow:0 10px 22px rgba(15,23,42,.08);
}
.clean-related-card img{
  width:100%;
  height:115px;
  object-fit:cover;
}
.clean-related-card strong{
  display:block;
  padding:10px 10px 2px;
  font-size:14px;
  line-height:1.7;
}
.clean-related-card span{
  display:block;
  padding:0 10px 12px;
  font-size:12px;
  color:#6b7280;
}
@media(max-width:1100px){
  .clean-inner-detail.detail-page-layout{
    grid-template-columns:1fr !important;
  }
  .clean-inner-detail .detail-page-main{order:1 !important;}
  .clean-inner-detail .detail-page-sidebar{order:2 !important;}
  .clean-related-grid{grid-template-columns:repeat(2,1fr);}
}
@media(max-width:760px){
  .clean-reading-card{padding:20px;}
  .clean-article-header h1{font-size:25px;}
  .clean-subtitle{font-size:15px;}
  .clean-content{font-size:16px;line-height:2.15;}
  .clean-post-navigation{grid-template-columns:1fr;}
  .clean-related-grid{grid-template-columns:1fr;}
  .clean-share-box{align-items:flex-start;}
  .clean-popular-item{grid-template-columns:76px minmax(0,1fr);}
  .clean-popular-item img{width:76px;height:58px;}
}

/* List pages tuned to match the inner-page structure */
.list-page-with-sidebar {
  align-items: flex-start;
  gap: 26px;
}

.list-page-with-sidebar .left-sidebar,
.list-side-panel {
  width: 292px;
  flex: 0 0 292px;
}

.list-page-with-sidebar .inner-content {
  flex: 1 1 auto;
  min-width: 0;
}

.modern-list-page-card {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.modern-list-page-card .section-intro {
  margin: 0 0 22px;
  color: #475569;
  line-height: 2;
  font-size: 15px;
}

.modern-list-stack {
  display: grid;
  gap: 18px;
}

.modern-list-item {
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 16px;
  padding: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(15, 23, 42, .04);
}

.modern-list-item .list-thumb {
  border-radius: 14px;
  overflow: hidden;
  background: #f8fafc;
}

.modern-list-item .list-thumb img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  display: block;
}

.modern-list-item .list-body h2 {
  margin-top: 0;
  line-height: 1.75;
}

.list-subtitle {
  color: #64748b;
  margin: 4px 0 8px;
  line-height: 1.9;
}

.list-side-panel .widget {
  border-radius: 18px;
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: 0 12px 34px rgba(15, 23, 42, .06);
  overflow: hidden;
}

.side-event-widget {
  background: linear-gradient(135deg, #fff 0%, #fff7f7 100%);
}

.side-event-card {
  display: grid;
  grid-template-columns: 76px 1fr;
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(220, 38, 38, .10);
  background: #fff;
  border-radius: 14px;
  margin-bottom: 12px;
  color: inherit;
  text-decoration: none;
}

.side-event-card:hover {
  border-color: rgba(220, 38, 38, .30);
  transform: translateY(-1px);
}

.side-event-card img {
  width: 76px;
  height: 62px;
  border-radius: 12px;
  object-fit: cover;
}

.side-event-card strong {
  display: block;
  font-size: 13px;
  line-height: 1.8;
  color: #0f172a;
}

.side-event-card small {
  color: #64748b;
  font-size: 11px;
}

.side-event-date {
  width: 76px;
  height: 62px;
  border-radius: 12px;
  background: #dc2626;
  color: #fff;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}

.side-event-date strong {
  font-size: 21px;
  color: #fff;
  line-height: 1;
}

.side-event-date span {
  font-size: 11px;
  margin-top: 4px;
}

.side-widget-link {
  display: block;
  text-align: center;
  padding: 10px 12px;
  background: #f8fafc;
  border-radius: 12px;
  color: #dc2626;
  font-weight: 800;
  text-decoration: none;
}

.list-popular-posts {
  display: grid;
  gap: 12px;
}

.list-popular-post {
  display: grid;
  grid-template-columns: 74px 1fr;
  gap: 12px;
  align-items: center;
  padding: 9px;
  border-radius: 14px;
  border: 1px solid rgba(15, 23, 42, .07);
  color: inherit;
  text-decoration: none;
  background: #fff;
}

.list-popular-post:hover {
  background: #f8fafc;
}

.list-popular-post img {
  width: 74px;
  height: 58px;
  object-fit: cover;
  border-radius: 12px;
}

.list-popular-post span {
  font-size: 13px;
  line-height: 1.8;
  font-weight: 800;
  color: #0f172a;
}

.side-category-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 9px;
}

.side-category-list li {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px dashed rgba(15, 23, 42, .10);
}

.side-category-list li:last-child {
  border-bottom: none;
}

.side-category-list a {
  color: #0f172a;
  text-decoration: none;
  font-weight: 700;
}

.side-category-list span {
  min-width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #fee2e2;
  color: #dc2626;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 900;
}

.side-tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.side-tag-cloud a {
  color: #0f172a;
  background: #f8fafc;
  border: 1px solid rgba(15, 23, 42, .08);
  border-radius: 999px;
  padding: 7px 11px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.event-card-link {
  display: block;
  color: inherit;
  text-decoration: none;
}

.event-card-body h3 a {
  color: inherit;
  text-decoration: none;
}

@media (max-width: 960px) {
  .list-page-with-sidebar {
    display: flex;
    flex-direction: column-reverse;
  }
  .list-page-with-sidebar .left-sidebar,
  .list-side-panel {
    width: 100%;
    flex-basis: auto;
  }
}

@media (max-width: 640px) {
  .modern-list-item {
    display: block;
  }
  .modern-list-item .list-thumb img {
    height: 190px;
  }
  .side-event-card,
  .list-popular-post {
    grid-template-columns: 82px 1fr;
  }
}

/* =========================================================
   Unified popular-post card style for home + list sidebars
   Requested style: image thumbnail + title card, no number-only list
   ========================================================= */
.popular-card-widget{
  padding:24px!important;
}
.popular-card-widget .widget-title{
  margin-bottom:20px!important;
}
.popular-card-list{
  display:grid;
  gap:14px;
}
.popular-card-item{
  position:relative;
  display:grid;
  grid-template-columns:minmax(0,1fr) 92px;
  gap:14px;
  align-items:center;
  min-height:88px;
  padding:12px 14px;
  border:1px solid rgba(15,23,42,.08);
  border-radius:18px;
  background:#fff;
  color:#0f172a;
  text-decoration:none;
  box-shadow:0 4px 14px rgba(15,23,42,.035);
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.popular-card-item:hover{
  transform:translateY(-2px);
  border-color:rgba(220,38,38,.22);
  box-shadow:0 14px 30px rgba(15,23,42,.09);
}
.popular-card-thumb{
  display:block;
  width:92px;
  height:70px;
  border-radius:16px;
  overflow:hidden;
  background:#f1f5f9;
}
.popular-card-thumb img{
  width:100%;
  height:100%;
  display:block;
  object-fit:cover;
}
.popular-card-text{
  display:block;
  font-size:15px;
  line-height:1.9;
  font-weight:900;
  color:#0f172a;
  text-align:right;
}
.popular-card-rank{
  position:absolute;
  top:12px;
  right:12px;
  z-index:2;
  width:27px;
  height:27px;
  border-radius:999px;
  background:#fee2e2;
  color:#dc2626;
  display:grid;
  place-items:center;
  font-size:12px;
  font-weight:900;
  box-shadow:0 4px 12px rgba(220,38,38,.12);
}
.popular-card-rank + .popular-card-text{
  padding-right:36px;
}
.home-sidebar .popular-card-item,
.list-side-panel .popular-card-item,
.article-sidebar .popular-card-item{
  grid-template-columns:minmax(0,1fr) 92px;
}
@media(max-width:1100px){
  .popular-card-item{grid-template-columns:minmax(0,1fr) 84px;}
  .popular-card-thumb{width:84px;height:64px;}
}
@media(max-width:760px){
  .popular-card-widget{padding:18px!important;}
  .popular-card-item{grid-template-columns:minmax(0,1fr) 86px;min-height:82px;}
  .popular-card-thumb{width:86px;height:64px;}
  .popular-card-text{font-size:14px;line-height:1.8;}
}


/* Final popular-card fix: match approved sample, no number badges, image on right, text on left */
.popular-card-item{
  direction:ltr!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 96px!important;
  gap:14px!important;
  align-items:center!important;
  min-height:88px!important;
  padding:12px!important;
  border:1px solid rgba(15,23,42,.08)!important;
  border-radius:18px!important;
  background:#fff!important;
  box-shadow:0 6px 18px rgba(15,23,42,.04)!important;
}
.popular-card-rank{display:none!important;}
.popular-card-rank + .popular-card-text,
.popular-card-text{
  padding:0!important;
  direction:rtl!important;
  text-align:right!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1.85!important;
  color:#0f172a!important;
  display:-webkit-box!important;
  -webkit-line-clamp:3!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
}
.popular-card-thumb{
  width:96px!important;
  height:72px!important;
  border-radius:16px!important;
  overflow:hidden!important;
  background:#f1f5f9!important;
}
.popular-card-thumb img{width:100%!important;height:100%!important;object-fit:cover!important;display:block!important;}
@media(max-width:760px){
  .popular-card-item{grid-template-columns:minmax(0,1fr) 88px!important;gap:12px!important;padding:10px!important;}
  .popular-card-thumb{width:88px!important;height:66px!important;}
  .popular-card-text{font-size:13px!important;line-height:1.8!important;}
}

/* =========================================================
   Sidebar card style for social links and events
   Match the approved popular-post sidebar cards
   ========================================================= */
.social-card-widget,
.event-card-widget{
  padding:24px!important;
}
.social-card-widget .widget-title,
.event-card-widget .widget-title{
  margin-bottom:20px!important;
}
.social-card-list,
.event-card-list{
  display:grid!important;
  gap:12px!important;
}
.social-card-item,
.event-card-item{
  direction:ltr!important;
  display:grid!important;
  grid-template-columns:minmax(0,1fr) 58px!important;
  gap:12px!important;
  align-items:center!important;
  min-height:74px!important;
  padding:10px!important;
  border:1px solid rgba(15,23,42,.08)!important;
  border-radius:18px!important;
  background:#fff!important;
  color:#0f172a!important;
  text-decoration:none!important;
  box-shadow:0 6px 18px rgba(15,23,42,.04)!important;
  transition:transform .18s ease, box-shadow .18s ease, border-color .18s ease!important;
}
.social-card-item:hover,
.event-card-item:hover{
  transform:translateY(-2px)!important;
  border-color:rgba(220,38,38,.22)!important;
  box-shadow:0 14px 30px rgba(15,23,42,.09)!important;
}
.social-card-text,
.event-card-text{
  direction:rtl!important;
  text-align:right!important;
  display:block!important;
  min-width:0!important;
}
.social-card-text b,
.event-card-text b{
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  font-size:14px!important;
  line-height:1.75!important;
  font-weight:900!important;
  color:#0f172a!important;
}
.social-card-text small,
.event-card-text small{
  display:block!important;
  margin-top:3px!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.6!important;
}
.social-card-icon{
  width:52px!important;
  height:52px!important;
  border-radius:16px!important;
  display:grid!important;
  place-items:center!important;
  color:#fff!important;
  font-weight:900!important;
  font-size:18px!important;
  box-shadow:0 8px 18px rgba(15,23,42,.10)!important;
}
.social-card-icon.telegram{background:#229ED9!important;}
.social-card-icon.tv{background:#dc2626!important;font-size:14px!important;}
.social-card-icon.facebook{background:#1877F2!important;}
.social-card-icon.x{background:#111827!important;}
.social-card-icon.instagram{background:linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045)!important;}
.social-card-icon.youtube{background:#ff0000!important;}
.event-card-thumb{
  width:86px!important;
  height:64px!important;
  border-radius:16px!important;
  overflow:hidden!important;
  background:#f1f5f9!important;
  display:grid!important;
  place-items:center!important;
}
.event-card-thumb img{
  width:100%!important;
  height:100%!important;
  object-fit:cover!important;
  display:block!important;
}
.event-date-pill{
  width:100%!important;
  height:100%!important;
  display:grid!important;
  place-items:center!important;
  background:linear-gradient(135deg,#fee2e2,#fff7ed)!important;
  color:#dc2626!important;
  text-align:center!important;
}
.event-date-pill strong{
  display:block!important;
  font-size:18px!important;
  line-height:1!important;
  font-weight:900!important;
}
.event-date-pill em{
  display:block!important;
  font-style:normal!important;
  font-size:11px!important;
  margin-top:3px!important;
  color:#991b1b!important;
}
.event-card-item{
  grid-template-columns:minmax(0,1fr) 86px!important;
  min-height:84px!important;
}
.event-card-widget .side-widget-link{
  margin-top:14px!important;
}
/* Disable older social/event grid/list visuals when these new widgets are active */
.social-card-widget .social-grid,
.event-card-widget .side-event-list{display:none!important;}
@media(max-width:760px){
  .social-card-widget,.event-card-widget{padding:18px!important;}
  .social-card-item{grid-template-columns:minmax(0,1fr) 52px!important;min-height:68px!important;}
  .social-card-icon{width:48px!important;height:48px!important;border-radius:14px!important;}
  .event-card-item{grid-template-columns:minmax(0,1fr) 82px!important;gap:12px!important;}
  .event-card-thumb{width:82px!important;height:62px!important;}
}

/* =========================================================
   Sidebar social + events: approved clean style
   Social = horizontal icon card. Events = date-tile rows.
   ========================================================= */
.social-widget-clean,
.event-widget-clean{
  background:#fff!important;
  border:1px solid rgba(15,23,42,.08)!important;
  border-radius:18px!important;
  box-shadow:0 12px 30px rgba(15,23,42,.06)!important;
  padding:20px!important;
  overflow:hidden!important;
}
.social-widget-clean .widget-title,
.event-widget-clean .widget-title{
  font-size:18px!important;
  margin:0 0 18px!important;
  padding-right:12px!important;
  border-right:4px solid var(--blue,#1d4ed8)!important;
  line-height:1.6!important;
}
.social-icon-row{
  display:flex!important;
  align-items:center!important;
  justify-content:center!important;
  gap:13px!important;
  flex-wrap:wrap!important;
}
.social-icon-btn{
  width:44px!important;
  height:44px!important;
  border-radius:50%!important;
  display:grid!important;
  place-items:center!important;
  color:#fff!important;
  text-decoration:none!important;
  font-size:20px!important;
  font-weight:900!important;
  box-shadow:0 10px 20px rgba(15,23,42,.13)!important;
  transition:transform .18s ease, box-shadow .18s ease!important;
}
.social-icon-btn:hover{
  transform:translateY(-2px)!important;
  box-shadow:0 14px 28px rgba(15,23,42,.18)!important;
}
.social-icon-btn.telegram{background:#2ea8e5!important;}
.social-icon-btn.x{background:#050505!important;}
.social-icon-btn.facebook{background:#1877f2!important;font-family:Arial,sans-serif!important;font-size:24px!important;}
.social-icon-btn.instagram{background:linear-gradient(135deg,#833ab4,#fd1d1d,#fcb045)!important;}
.social-icon-btn.youtube{background:#ff0000!important;font-size:17px!important;}
.event-widget-heading{
  display:flex!important;
  align-items:center!important;
  justify-content:space-between!important;
  gap:12px!important;
  margin-bottom:14px!important;
}
.event-widget-heading .widget-title{
  margin-bottom:0!important;
}
.event-heading-icon{
  width:26px!important;
  height:26px!important;
  border:1px solid #cbd5e1!important;
  border-radius:8px!important;
  color:#64748b!important;
  display:grid!important;
  place-items:center!important;
  font-size:14px!important;
}
.event-clean-list{
  display:grid!important;
  gap:14px!important;
}
.event-clean-row{
  direction:ltr!important;
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr)!important;
  gap:12px!important;
  align-items:center!important;
  padding:0 0 14px!important;
  border-bottom:1px solid rgba(15,23,42,.08)!important;
  text-decoration:none!important;
  color:inherit!important;
}
.event-clean-row:last-child{
  border-bottom:0!important;
  padding-bottom:0!important;
}
.event-clean-date{
  width:48px!important;
  min-height:58px!important;
  border-radius:8px!important;
  overflow:hidden!important;
  display:flex!important;
  flex-direction:column!important;
  align-items:center!important;
  justify-content:center!important;
  box-shadow:0 8px 18px rgba(220,38,38,.12)!important;
  background:#fff!important;
  border:1px solid rgba(220,38,38,.14)!important;
}
.event-clean-date em{
  width:100%!important;
  display:block!important;
  background:#dc2626!important;
  color:#fff!important;
  font-style:normal!important;
  font-size:10px!important;
  font-weight:900!important;
  text-align:center!important;
  padding:4px 2px!important;
  order:-1!important;
}
.event-clean-date strong{
  color:#111827!important;
  font-size:20px!important;
  font-weight:900!important;
  line-height:1.4!important;
}
.event-clean-body{
  direction:rtl!important;
  text-align:right!important;
  min-width:0!important;
}
.event-clean-body b{
  display:-webkit-box!important;
  -webkit-line-clamp:2!important;
  -webkit-box-orient:vertical!important;
  overflow:hidden!important;
  color:#0f172a!important;
  font-size:14px!important;
  font-weight:900!important;
  line-height:1.8!important;
}
.event-clean-body small{
  display:block!important;
  color:#64748b!important;
  font-size:12px!important;
  line-height:1.6!important;
  margin-top:2px!important;
}
.event-all-link{
  margin-top:16px!important;
  display:block!important;
  text-align:center!important;
  padding:12px!important;
  border:1px solid rgba(15,23,42,.08)!important;
  border-radius:12px!important;
  color:#dc2626!important;
  background:#fff!important;
  font-weight:900!important;
  text-decoration:none!important;
}
.event-all-link:hover{
  background:#fef2f2!important;
  border-color:rgba(220,38,38,.20)!important;
}
/* Ensure previous card-style social/event CSS cannot affect the approved widgets. */
.social-widget-clean .social-card-list,
.social-widget-clean .social-card-item,
.event-widget-clean .event-card-list,
.event-widget-clean .event-card-item{display:none!important;}
@media(max-width:760px){
  .social-icon-row{justify-content:flex-start!important;}
  .social-icon-btn{width:42px!important;height:42px!important;}
}

/* Compact previous/next article cards patch */
.clean-post-navigation {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  margin-top: 22px;
}

.clean-post-nav-card {
  min-height: 104px;
  display: grid !important;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid #e5e7eb;
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .06);
  color: #111827;
  text-decoration: none;
  overflow: hidden;
  direction: rtl;
}

.clean-post-nav-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 30px rgba(15, 23, 42, .10);
}

.clean-post-nav-card img {
  width: 92px !important;
  height: 70px !important;
  object-fit: cover;
  border-radius: 14px;
  flex-shrink: 0;
}

.clean-post-nav-text {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
  text-align: right;
}

.clean-post-nav-text span,
.clean-post-nav-card span {
  display: block;
  color: #6b7280;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.3;
}

.clean-post-nav-text strong,
.clean-post-nav-card strong {
  color: #111827;
  font-size: 14px;
  font-weight: 900;
  line-height: 1.75;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  max-height: 3.5em;
}

@media (max-width: 760px) {
  .clean-post-navigation {
    grid-template-columns: 1fr;
  }
  .clean-post-nav-card {
    min-height: 96px;
    grid-template-columns: 82px minmax(0, 1fr);
  }
  .clean-post-nav-card img {
    width: 82px !important;
    height: 62px !important;
  }
}


/* Social icon SVG cleanup patch */
.social-svg-icon{
  width:20px!important;
  height:20px!important;
  display:block!important;
  color:currentColor!important;
}
.topbar-social-link .social-svg-icon,
.topbar-social a .social-svg-icon{
  width:15px!important;
  height:15px!important;
}
.footer-social-link .social-svg-icon{
  width:17px!important;
  height:17px!important;
  display:inline-block!important;
  vertical-align:middle!important;
  margin-left:6px!important;
}
.social-icon-btn.tiktok,
.topbar-social-link.tiktok,
.footer-social-link.tiktok{background:#000!important;color:#fff!important;}
.social-icon-btn.instagram,
.topbar-social-link.instagram{background:linear-gradient(135deg,#405DE6,#833AB4,#E1306C,#FD1D1D,#F77737,#FCAF45)!important;color:#fff!important;}
.social-icon-btn.telegram,
.topbar-social-link.telegram{background:#229ED9!important;color:#fff!important;}
.social-icon-btn.youtube,
.topbar-social-link.youtube{background:#ff0000!important;color:#fff!important;}
.social-icon-btn.facebook,
.topbar-social-link.facebook{background:#1877f2!important;color:#fff!important;}
.social-icon-btn.x,
.topbar-social-link.x{background:#000!important;color:#fff!important;}
.social-icon-btn.linkedin,
.topbar-social-link.linkedin{background:#0a66c2!important;color:#fff!important;}
.social-icon-btn.whatsapp,
.topbar-social-link.whatsapp{background:#25d366!important;color:#fff!important;}
.social-icon-btn.rss,
.topbar-social-link.rss{background:#f97316!important;color:#fff!important;}

/* sticky nav and donation icon patch */
.site-header{
  position: relative;
  z-index: 1000;
}
.main-nav{
  position: -webkit-sticky !important;
  position: sticky !important;
  top: 0 !important;
  z-index: 1002 !important;
  isolation: isolate;
}
.admin-bar .main-nav{
  top: 0 !important;
}
.donate-pill{
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 18px !important;
  border-radius: 999px !important;
  font-weight: 900;
  white-space: nowrap;
}
.donate-pill-icon{
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #fff;
  color: #dc2626;
  font-size: 16px;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(0,0,0,.12);
}
.donate-pill:hover .donate-pill-icon{
  background: #fee2e2;
  color: #b91c1c;
}
.mobile-donate-link a{
  display: flex !important;
  align-items: center;
  gap: 10px;
}
.mobile-donate-icon{
  width: 26px;
  height: 26px;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  background: #fee2e2;
  color: #dc2626;
  flex: 0 0 auto;
}
@media(max-width:760px){
  .main-nav{
    top: 0 !important;
  }
  .donate-pill-icon{
    width: 24px;
    height: 24px;
    font-size: 14px;
  }
}

