/* Eddirasa CMS - Legacy Sahifa article compatibility */
.article-content.legacy-sahifa-wrap,
.ed-sahifa-content{
  font-size:var(--article-content-size,20px);
  line-height:var(--line-height,1.9);
  color:#2f3742;
}
html[data-theme="dark"] .article-content.legacy-sahifa-wrap,
html[data-theme="dark"] .ed-sahifa-content{color:#e8eef5}
.ed-sahifa-content:after,.ed-sahifa-clear{content:"";display:block;clear:both}
.ed-sahifa-content p{margin:0 0 1.15rem}
.ed-sahifa-content h1,.ed-sahifa-content h2,.ed-sahifa-content h3,.ed-sahifa-content h4{font-family:var(--headings-font,inherit);font-weight:800;line-height:1.5;margin:1.4rem 0 .85rem;color:#1f2937}
html[data-theme="dark"] .ed-sahifa-content h1,html[data-theme="dark"] .ed-sahifa-content h2,html[data-theme="dark"] .ed-sahifa-content h3,html[data-theme="dark"] .ed-sahifa-content h4{color:#fff}
.ed-sahifa-content a{color:var(--brand,#008b57);font-weight:700;text-decoration:none}.ed-sahifa-content a:hover{text-decoration:underline}
.ed-sahifa-content img,.ed-wp-image{max-width:100%;height:auto;border-radius:10px}.ed-sahifa-content .aligncenter{display:block;margin:1rem auto}.ed-sahifa-content .alignright{float:right;margin:.35rem 0 1rem 1rem}.ed-sahifa-content .alignleft{float:left;margin:.35rem 1rem 1rem 0}
.ed-sahifa-content table{width:100%;border-collapse:collapse;margin:1.2rem 0;background:#fff;border:1px solid #d9e2ec;border-radius:12px;overflow:hidden;display:block;max-width:100%;overflow-x:auto}.ed-sahifa-content th,.ed-sahifa-content td{border:1px solid #d9e2ec;padding:.75rem .9rem;vertical-align:middle}.ed-sahifa-content th{background:#f3f7fb;font-weight:800;color:#1f2937}.ed-sahifa-content tr:nth-child(even) td{background:#fbfdff}
html[data-theme="dark"] .ed-sahifa-content table{background:#151a22;border-color:#2b3542}html[data-theme="dark"] .ed-sahifa-content th,html[data-theme="dark"] .ed-sahifa-content td{border-color:#2b3542}html[data-theme="dark"] .ed-sahifa-content th{background:#1d2530;color:#fff}html[data-theme="dark"] .ed-sahifa-content tr:nth-child(even) td{background:#181f29}
.ed-sahifa-content blockquote{position:relative;margin:1.3rem 0;padding:1rem 1.25rem;border-right:5px solid var(--brand,#008b57);background:#f7faf9;border-radius:12px;color:#334155}html[data-theme="dark"] .ed-sahifa-content blockquote{background:#16201d;color:#e8eef5}
.ed-sahifa-box{margin:1.1rem 0;padding:1rem 1.15rem;border-radius:12px;border:1px solid #dbe6f0;background:#f8fbff;box-shadow:0 8px 24px rgba(15,23,42,.05)}.ed-sahifa-box-title{display:block;margin-bottom:.45rem;font-weight:900}.ed-sahifa-box-content>:last-child{margin-bottom:0}.ed-sahifa-box-info{border-color:#bfdbfe;background:#eff6ff}.ed-sahifa-box-success,.ed-sahifa-box-download{border-color:#bbf7d0;background:#f0fdf4}.ed-sahifa-box-warning,.ed-sahifa-box-note{border-color:#fde68a;background:#fffbeb}.ed-sahifa-box-error{border-color:#fecaca;background:#fef2f2}html[data-theme="dark"] .ed-sahifa-box{background:#151c25;border-color:#2a3645}html[data-theme="dark"] .ed-sahifa-box-info{background:#102033}html[data-theme="dark"] .ed-sahifa-box-success,html[data-theme="dark"] .ed-sahifa-box-download{background:#10281b}html[data-theme="dark"] .ed-sahifa-box-warning,html[data-theme="dark"] .ed-sahifa-box-note{background:#2b210d}html[data-theme="dark"] .ed-sahifa-box-error{background:#2b1113}
.ed-sahifa-button{display:inline-flex;align-items:center;justify-content:center;gap:.45rem;margin:.35rem .15rem;padding:.72rem 1.25rem;border-radius:12px;background:var(--brand,#008b57);color:#fff!important;font-weight:900;box-shadow:0 8px 18px rgba(0,139,87,.22);text-decoration:none!important}.ed-sahifa-button-small{padding:.45rem .85rem;font-size:.9em}.ed-sahifa-button-large{padding:.95rem 1.55rem;font-size:1.08em}.ed-sahifa-button-red{background:#dc2626}.ed-sahifa-button-blue{background:#2563eb}.ed-sahifa-button-orange{background:#f97316}.ed-sahifa-button-gray,.ed-sahifa-button-grey{background:#64748b}.ed-sahifa-button-black{background:#111827}
.ed-sahifa-list ul{list-style:none;padding-right:0;margin:1rem 0}.ed-sahifa-list li{position:relative;padding:.42rem 2rem .42rem 0}.ed-sahifa-list li:before{position:absolute;right:0;top:.45rem;font-family:"bootstrap-icons";font-weight:400;color:var(--brand,#008b57)}.ed-sahifa-list-check li:before{content:"\F633"}.ed-sahifa-list-star li:before{content:"\F586"}.ed-sahifa-list-arrow li:before{content:"\F285"}
.ed-sahifa-highlight{border-radius:5px;padding:.05rem .35rem}.ed-sahifa-highlight-yellow{background:#fef08a}.ed-sahifa-highlight-red{background:#fecaca}.ed-sahifa-highlight-green{background:#bbf7d0}.ed-sahifa-highlight-blue{background:#bfdbfe}.ed-sahifa-dropcap{float:right;font-size:3.2em;line-height:1;margin:.15rem 0 .2rem .55rem;font-weight:900;color:var(--brand,#008b57)}
.ed-sahifa-divider{clear:both;height:1px;background:#e5edf4;margin:1.5rem 0}.ed-sahifa-divider-dashed{border-top:1px dashed #cbd5e1;background:none}.ed-sahifa-divider-dotted{border-top:1px dotted #cbd5e1;background:none}.ed-sahifa-toggle{margin:1rem 0;border:1px solid #dbe6f0;border-radius:12px;overflow:hidden;background:#fff}.ed-sahifa-toggle summary{cursor:pointer;font-weight:900;padding:.85rem 1rem;background:#f8fafc}.ed-sahifa-toggle>div{padding:1rem}html[data-theme="dark"] .ed-sahifa-toggle{background:#151a22;border-color:#2b3542}html[data-theme="dark"] .ed-sahifa-toggle summary{background:#1d2530}
.ed-sahifa-embed{position:relative;width:100%;padding-top:56.25%;margin:1rem 0;border-radius:14px;overflow:hidden;background:#eef2f7}.ed-sahifa-embed iframe{position:absolute;inset:0;width:100%;height:100%;border:0}.ed-sahifa-full-img{margin-left:calc(50% - 50vw);margin-right:calc(50% - 50vw);text-align:center}.ed-sahifa-full-img img{border-radius:0}
.ed-sahifa-column{float:right;margin-left:3%;margin-bottom:1rem}.ed-sahifa-column-last{margin-left:0}.ed-sahifa-column-1-2{width:48.5%}.ed-sahifa-column-1-3{width:31.333%}.ed-sahifa-column-2-3{width:65.666%}.ed-sahifa-column-1-4{width:22.75%}.ed-sahifa-column-3-4{width:74.25%}.ed-sahifa-column-1-5{width:17.6%}.ed-sahifa-column-2-5{width:38.2%}.ed-sahifa-column-3-5{width:58.8%}.ed-sahifa-column-4-5{width:79.4%}.ed-sahifa-column-1-6{width:14.16%}.ed-sahifa-column-5-6{width:82.83%}
@media(max-width:768px){.ed-sahifa-content{font-size:17px;line-height:1.85}.ed-sahifa-content .alignright,.ed-sahifa-content .alignleft{float:none;display:block;margin:1rem auto}.ed-sahifa-column{float:none;width:100%!important;margin-left:0}.ed-sahifa-button{width:100%;margin:.35rem 0}.ed-sahifa-content th,.ed-sahifa-content td{padding:.65rem .7rem;white-space:nowrap}.ed-sahifa-box{padding:.9rem}.ed-sahifa-full-img{margin-left:0;margin-right:0}}

/* v128 - صور المقالات القديمة: صورة مصغرة + رابط الأصل + عارض Liquid Glass + احترام أسطر ووردبريس */
.ed-sahifa-content .ed-legacy-image-figure{
  margin:1.25rem auto 1.55rem;
  text-align:center;
  max-width:min(760px, 92%);
}
.ed-sahifa-content .ed-legacy-image-link{
  display:inline-block;
  position:relative;
  max-width:100%;
  border-radius:16px;
  overflow:hidden;
  cursor:zoom-in;
  box-shadow:0 12px 34px rgba(15,23,42,.12);
  background:#f6f8fb;
}
.ed-sahifa-content .ed-legacy-image-link:after{
  content:"\F62C";
  font-family:"bootstrap-icons";
  position:absolute;
  left:.7rem;
  bottom:.7rem;
  width:2.15rem;
  height:2.15rem;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(15,23,42,.68);
  color:#fff;
  font-size:1rem;
  opacity:0;
  transform:translateY(6px);
  transition:.2s ease;
  pointer-events:none;
}
.ed-sahifa-content .ed-legacy-image-link:hover:after{opacity:1;transform:translateY(0)}
.ed-sahifa-content img.ed-legacy-zoomable-image,
.ed-sahifa-content .ed-legacy-image-figure img{
  display:block;
  width:auto;
  max-width:100%;
  max-height:560px;
  object-fit:contain;
  margin:0 auto;
  border-radius:16px;
}
.ed-sahifa-content .ed-legacy-image-caption{
  margin:.55rem auto 0;
  max-width:92%;
  color:#64748b;
  font-size:.86em;
  line-height:1.65;
}
html[data-theme="dark"] .ed-sahifa-content .ed-legacy-image-link{background:#121923;box-shadow:0 12px 34px rgba(0,0,0,.32)}
html[data-theme="dark"] .ed-sahifa-content .ed-legacy-image-caption{color:#a8b3c2}
.ed-image-viewer{
  position:fixed;
  inset:0;
  z-index:9999;
  display:none;
  align-items:center;
  justify-content:center;
  padding:clamp(12px,3vw,34px);
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.38), rgba(255,255,255,0) 28%),
    radial-gradient(circle at 80% 78%, rgba(0,139,87,.20), rgba(0,139,87,0) 32%),
    linear-gradient(135deg, rgba(248,250,252,.34), rgba(226,232,240,.16));
  backdrop-filter:blur(24px) saturate(180%);
  -webkit-backdrop-filter:blur(24px) saturate(180%);
}
.ed-image-viewer.is-open{display:flex}
.ed-image-viewer-inner{
  position:relative;
  max-width:min(1180px,96vw);
  max-height:94vh;
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:.65rem;
}
.ed-image-viewer-img{
  max-width:100%;
  max-height:calc(94vh - 72px);
  width:auto;
  height:auto;
  border-radius:18px;
  box-shadow:0 28px 80px rgba(15,23,42,.28);
  background:rgba(255,255,255,.72);
}
.ed-image-viewer-caption{
  color:#0f172a;
  font-size:.95rem;
  line-height:1.7;
  text-align:center;
  max-width:min(860px,92vw);
  text-shadow:0 1px 0 rgba(255,255,255,.35);
  padding:.35rem .75rem;
  border-radius:999px;
  background:rgba(255,255,255,.36);
  backdrop-filter:blur(14px);
  -webkit-backdrop-filter:blur(14px);
}
.ed-image-viewer-close{
  position:absolute;
  top:-.7rem;
  left:-.7rem;
  width:2.65rem;
  height:2.65rem;
  border:0;
  border-radius:999px;
  display:grid;
  place-items:center;
  background:rgba(255,255,255,.62);
  color:#111827;
  backdrop-filter:blur(16px) saturate(170%);
  -webkit-backdrop-filter:blur(16px) saturate(170%);
  font-size:1.35rem;
  box-shadow:0 10px 24px rgba(0,0,0,.25);
  cursor:pointer;
}
.ed-image-viewer-close:hover{transform:scale(1.04)}
body.ed-image-viewer-open{overflow:hidden}
@media(min-width:992px){
  .ed-sahifa-content .ed-legacy-image-figure{max-width:min(720px,82%)}
  .ed-sahifa-content img.ed-legacy-zoomable-image,
  .ed-sahifa-content .ed-legacy-image-figure img{max-height:520px}
}
@media(max-width:768px){
  .ed-sahifa-content .ed-legacy-image-figure{max-width:100%;margin:1rem auto 1.25rem}
  .ed-sahifa-content img.ed-legacy-zoomable-image,
  .ed-sahifa-content .ed-legacy-image-figure img{max-height:none;border-radius:13px}
  .ed-image-viewer{padding:10px}
  .ed-image-viewer-img{border-radius:13px;max-height:calc(96vh - 86px)}
  .ed-image-viewer-close{top:.45rem;left:.45rem;width:2.4rem;height:2.4rem}
}


html[data-theme="dark"] .ed-image-viewer{
  background:
    radial-gradient(circle at 22% 18%, rgba(255,255,255,.14), rgba(255,255,255,0) 30%),
    radial-gradient(circle at 78% 78%, rgba(0,139,87,.18), rgba(0,139,87,0) 34%),
    linear-gradient(135deg, rgba(15,23,42,.62), rgba(2,6,23,.44));
}
html[data-theme="dark"] .ed-image-viewer-caption{color:#f8fafc;background:rgba(15,23,42,.34);text-shadow:0 1px 2px rgba(0,0,0,.35)}
html[data-theme="dark"] .ed-image-viewer-close{background:rgba(15,23,42,.55);color:#fff}
.ed-sahifa-content p br{display:block;content:"";margin:.28rem 0}


/* v129 - Restore WordPress paragraph spacing more reliably */
.ed-sahifa-content p,
.article-content.legacy-sahifa-wrap p{
  margin-top:0;
  margin-bottom:1.15rem !important;
}
.ed-sahifa-content p:empty,
.article-content.legacy-sahifa-wrap p:empty{
  min-height:1rem;
}
.ed-sahifa-content h1 + p,
.ed-sahifa-content h2 + p,
.ed-sahifa-content h3 + p,
.ed-sahifa-content h4 + p{
  margin-top:.25rem;
}
.ed-sahifa-content br{
  display:block;
  content:"";
  margin:.42rem 0;
}
.ed-sahifa-content p + p,
.article-content.legacy-sahifa-wrap p + p{
  margin-top:.15rem;
}


/* v130 - Fix stray RTL > from wpautop separator and restore Sahifa-like lists inside article content */
.article-content.legacy-sahifa-wrap ul,
.ed-sahifa-content ul{
  list-style:disc outside !important;
  padding-right:1.65rem !important;
  padding-left:0 !important;
  margin:1rem 0 1.2rem !important;
}
.article-content.legacy-sahifa-wrap ol,
.ed-sahifa-content ol{
  list-style:decimal outside !important;
  padding-right:1.65rem !important;
  padding-left:0 !important;
  margin:1rem 0 1.2rem !important;
}
.article-content.legacy-sahifa-wrap li,
.ed-sahifa-content li{
  position:static !important;
  padding:.28rem 0 !important;
  margin:0 0 .35rem !important;
  line-height:1.9;
}
.article-content.legacy-sahifa-wrap li::before,
.article-content.legacy-sahifa-wrap li::after,
.ed-sahifa-content li::before,
.ed-sahifa-content li::after{
  content:none !important;
  display:none !important;
}
/* keep icon-list shortcodes working */
.ed-sahifa-content .ed-sahifa-list ul{
  list-style:none !important;
  padding-right:0 !important;
}
.ed-sahifa-content .ed-sahifa-list li{
  position:relative !important;
  padding:.42rem 2rem .42rem 0 !important;
}
.ed-sahifa-content .ed-sahifa-list li::before{
  display:block !important;
  position:absolute !important;
  right:0;
  top:.45rem;
  font-family:"bootstrap-icons";
  font-weight:400;
  color:var(--brand,#008b57);
}
.ed-sahifa-content .ed-sahifa-list-check li::before{content:"\F633" !important}
.ed-sahifa-content .ed-sahifa-list-star li::before{content:"\F586" !important}
.ed-sahifa-content .ed-sahifa-list-arrow li::before{content:"\F285" !important}


/* v133 - WordPress Gallery + stubborn legacy line breaks */
.article-content.legacy-sahifa-wrap,
.ed-sahifa-content{
  overflow-wrap:break-word;
}
/* fallback for imported plain articleBody records where HTML paragraphs were stripped */
.ed-sahifa-content.ed-sahifa-content-preline{
  white-space:pre-line;
}
.ed-sahifa-content .gallery{
  clear:both;
  display:grid;
  gap:1rem;
  margin:1.25rem auto 1.65rem;
  padding:1rem;
  background:rgba(248,250,252,.86);
  border:1px solid rgba(203,213,225,.8);
  border-radius:18px;
}
.ed-sahifa-content .gallery.gallery-columns-1{grid-template-columns:1fr}
.ed-sahifa-content .gallery.gallery-columns-2{grid-template-columns:repeat(2,minmax(0,1fr))}
.ed-sahifa-content .gallery.gallery-columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}
.ed-sahifa-content .gallery.gallery-columns-4{grid-template-columns:repeat(4,minmax(0,1fr))}
.ed-sahifa-content .gallery-item{
  margin:0 !important;
  text-align:center;
  float:none !important;
  width:auto !important;
}
.ed-sahifa-content .gallery-icon a{
  display:block;
  position:relative;
  overflow:hidden;
  border-radius:14px;
  background:#fff;
  box-shadow:0 10px 24px rgba(15,23,42,.10);
  cursor:zoom-in;
}
.ed-sahifa-content .gallery-icon a:after{
  content:"\F62C";
  font-family:"bootstrap-icons";
  position:absolute;
  left:.55rem;
  bottom:.55rem;
  width:2rem;
  height:2rem;
  display:grid;
  place-items:center;
  border-radius:999px;
  background:rgba(15,23,42,.68);
  color:#fff;
  font-size:.95rem;
  opacity:0;
  transform:translateY(6px);
  transition:.2s ease;
  pointer-events:none;
}
.ed-sahifa-content .gallery-icon a:hover:after{opacity:1;transform:translateY(0)}
.ed-sahifa-content .gallery img{
  display:block;
  width:100% !important;
  height:auto !important;
  aspect-ratio:1/1;
  object-fit:cover;
  border:0 !important;
  border-radius:14px;
  margin:0 !important;
}
.ed-sahifa-content .gallery-caption,
.ed-sahifa-content .wp-caption-text{
  display:block;
  margin:.55rem auto 0;
  color:#64748b;
  font-size:.84em;
  line-height:1.55;
}
html[data-theme="dark"] .ed-sahifa-content .gallery{
  background:rgba(15,23,42,.55);
  border-color:rgba(51,65,85,.9);
}
html[data-theme="dark"] .ed-sahifa-content .gallery-icon a{background:#111827;box-shadow:0 10px 24px rgba(0,0,0,.32)}
html[data-theme="dark"] .ed-sahifa-content .gallery-caption,
html[data-theme="dark"] .ed-sahifa-content .wp-caption-text{color:#a8b3c2}
@media(max-width:768px){
  .ed-sahifa-content .gallery,
  .ed-sahifa-content .gallery.gallery-columns-2,
  .ed-sahifa-content .gallery.gallery-columns-3,
  .ed-sahifa-content .gallery.gallery-columns-4{grid-template-columns:repeat(2,minmax(0,1fr));gap:.75rem;padding:.75rem;border-radius:15px}
}
@media(max-width:420px){
  .ed-sahifa-content .gallery,
  .ed-sahifa-content .gallery.gallery-columns-2,
  .ed-sahifa-content .gallery.gallery-columns-3,
  .ed-sahifa-content .gallery.gallery-columns-4{grid-template-columns:1fr}
}

/* v134 - Balanced WordPress spacing: no forced empty line after every raw line/list item */
.ed-sahifa-content.ed-sahifa-content-preline{
  white-space:normal !important;
}
.ed-sahifa-content p,
.article-content.legacy-sahifa-wrap p{
  margin-top:0 !important;
  margin-bottom:.95rem !important;
}
.ed-sahifa-content br{
  display:block;
  content:"";
  margin:0 !important;
  line-height:1.9;
}
.ed-sahifa-content p br{
  margin:0 !important;
}
.article-content.legacy-sahifa-wrap li,
.ed-sahifa-content li{
  padding:.14rem 0 !important;
  margin:0 !important;
  line-height:1.85;
}
.article-content.legacy-sahifa-wrap ul,
.ed-sahifa-content ul,
.article-content.legacy-sahifa-wrap ol,
.ed-sahifa-content ol{
  margin:.8rem 0 1rem !important;
}
.ed-sahifa-content .gallery + p,
.ed-sahifa-content p + .gallery{
  margin-top:1rem !important;
}

/* v135 - WordPress [caption] shortcode + tighter wpautop fallback */
.ed-sahifa-content .ed-legacy-wp-caption{
  display:block;
  margin:1.15rem auto 1.45rem;
  max-width:min(760px, 92%) !important;
  text-align:center;
}
.ed-sahifa-content .ed-legacy-wp-caption.aligncenter{margin-right:auto;margin-left:auto}
.ed-sahifa-content .ed-legacy-wp-caption.alignright{float:right;margin:.35rem 0 1rem 1.2rem;max-width:min(48%,420px)!important}
.ed-sahifa-content .ed-legacy-wp-caption.alignleft{float:left;margin:.35rem 1.2rem 1rem 0;max-width:min(48%,420px)!important}
.ed-sahifa-content .ed-legacy-wp-caption .ed-legacy-image-link{max-width:100%}
@media(max-width:768px){
  .ed-sahifa-content .ed-legacy-wp-caption,
  .ed-sahifa-content .ed-legacy-wp-caption.alignright,
  .ed-sahifa-content .ed-legacy-wp-caption.alignleft{float:none;max-width:100%!important;margin:1rem auto 1.25rem}
}

/* v138 - Restore classic Sahifa boxes, enhance buttons only */
.ed-sahifa-content .ed-sahifa-button,
.article-content.legacy-sahifa-wrap .ed-sahifa-button,
.ed-sahifa-content a.shortc-button,
.article-content.legacy-sahifa-wrap a.shortc-button{
  --ed-btn:#008b57;
  position:relative;
  isolation:isolate;
  display:inline-flex!important;
  align-items:center;
  justify-content:center;
  gap:.62rem;
  max-width:100%;
  margin:.5rem .15rem .5rem .25rem!important;
  padding:.78rem 1.18rem!important;
  min-height:44px;
  height:auto!important;
  border:0!important;
  border-radius:999px!important;
  color:#fff!important;
  text-decoration:none!important;
  font-weight:800!important;
  font-size:14px!important;
  line-height:1.35!important;
  background:radial-gradient(circle at 18% 10%, rgba(255,255,255,.30), transparent 30%), linear-gradient(135deg, color-mix(in srgb, var(--ed-btn) 82%, #ffffff 18%), var(--ed-btn))!important;
  box-shadow:0 14px 30px color-mix(in srgb, var(--ed-btn) 28%, transparent), inset 0 1px 0 rgba(255,255,255,.30)!important;
  transform:translateY(0);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
  overflow:hidden;
  vertical-align:middle;
  opacity:1!important;
}
.ed-sahifa-content .ed-sahifa-button:hover,
.article-content.legacy-sahifa-wrap .ed-sahifa-button:hover,
.ed-sahifa-content a.shortc-button:hover,
.article-content.legacy-sahifa-wrap a.shortc-button:hover{
  transform:translateY(-2px);
  filter:saturate(1.05);
  box-shadow:0 18px 38px color-mix(in srgb, var(--ed-btn) 34%, transparent), inset 0 1px 0 rgba(255,255,255,.32)!important;
}
.ed-sahifa-content .ed-sahifa-button:active,
.article-content.legacy-sahifa-wrap .ed-sahifa-button:active,
.ed-sahifa-content a.shortc-button:active,
.article-content.legacy-sahifa-wrap a.shortc-button:active{top:auto!important;transform:translateY(0)}
.ed-sahifa-content .ed-sahifa-button-icon,
.article-content.legacy-sahifa-wrap .ed-sahifa-button-icon,
.ed-sahifa-content a.shortc-button > i,
.article-content.legacy-sahifa-wrap a.shortc-button > i{
  flex:0 0 2rem;
  width:2rem;
  height:2rem;
  display:grid!important;
  place-items:center;
  border-radius:999px;
  margin:0!important;
  background:rgba(255,255,255,.20);
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.24);
  font-size:1.05rem;
  line-height:1;
}
.ed-sahifa-content .ed-sahifa-button-text,
.article-content.legacy-sahifa-wrap .ed-sahifa-button-text{position:relative;z-index:1;min-width:0}
.ed-sahifa-content .ed-sahifa-button-shine,
.article-content.legacy-sahifa-wrap .ed-sahifa-button-shine{
  position:absolute;
  inset:-42% auto -42% -35%;
  width:30%;
  background:linear-gradient(90deg, transparent, rgba(255,255,255,.42), transparent);
  transform:skewX(-18deg);
  opacity:.65;
  transition:left .45s ease;
  pointer-events:none;
}
.ed-sahifa-content .ed-sahifa-button:hover .ed-sahifa-button-shine,
.article-content.legacy-sahifa-wrap .ed-sahifa-button:hover .ed-sahifa-button-shine{left:110%}
.ed-sahifa-button-red,.ed-sahifa-content a.shortc-button.red,.article-content.legacy-sahifa-wrap a.shortc-button.red{--ed-btn:#dc2626!important}
.ed-sahifa-button-blue,.ed-sahifa-content a.shortc-button.blue,.article-content.legacy-sahifa-wrap a.shortc-button.blue{--ed-btn:#2563eb!important}
.ed-sahifa-button-orange,.ed-sahifa-content a.shortc-button.orange,.article-content.legacy-sahifa-wrap a.shortc-button.orange{--ed-btn:#f97316!important}
.ed-sahifa-button-pink,.ed-sahifa-content a.shortc-button.pink,.article-content.legacy-sahifa-wrap a.shortc-button.pink{--ed-btn:#db2777!important}
.ed-sahifa-button-purple,.ed-sahifa-content a.shortc-button.purple,.article-content.legacy-sahifa-wrap a.shortc-button.purple{--ed-btn:#7c3aed!important}
.ed-sahifa-button-gray,.ed-sahifa-button-grey,.ed-sahifa-content a.shortc-button.gray,.ed-sahifa-content a.shortc-button.grey,.article-content.legacy-sahifa-wrap a.shortc-button.gray,.article-content.legacy-sahifa-wrap a.shortc-button.grey{--ed-btn:#64748b!important}
.ed-sahifa-button-black,.ed-sahifa-content a.shortc-button.black,.article-content.legacy-sahifa-wrap a.shortc-button.black{--ed-btn:#111827!important}
.ed-sahifa-button-green,.ed-sahifa-content a.shortc-button.green,.article-content.legacy-sahifa-wrap a.shortc-button.green{--ed-btn:#008b57!important}
.ed-sahifa-content a.shortc-button.white,.article-content.legacy-sahifa-wrap a.shortc-button.white{--ed-btn:#e5e7eb!important;color:#1f2937!important}
.ed-sahifa-button-small,.ed-sahifa-content a.shortc-button.small,.article-content.legacy-sahifa-wrap a.shortc-button.small{padding:.55rem .95rem!important;font-size:.92em!important;min-height:38px!important}
.ed-sahifa-button-small .ed-sahifa-button-icon,.ed-sahifa-content a.shortc-button.small > i,.article-content.legacy-sahifa-wrap a.shortc-button.small > i{width:1.75rem;height:1.75rem;flex-basis:1.75rem}
.ed-sahifa-button-large,.ed-sahifa-content a.shortc-button.medium,.article-content.legacy-sahifa-wrap a.shortc-button.medium{padding:.9rem 1.45rem!important;font-size:1.02em!important;min-height:52px!important}
.ed-sahifa-content a.shortc-button.big,.article-content.legacy-sahifa-wrap a.shortc-button.big{padding:1rem 1.65rem!important;font-size:1.12em!important;min-height:60px!important}
html[data-theme="dark"] .ed-sahifa-content .ed-sahifa-button,
html[data-theme="dark"] .article-content.legacy-sahifa-wrap .ed-sahifa-button,
html[data-theme="dark"] .ed-sahifa-content a.shortc-button,
html[data-theme="dark"] .article-content.legacy-sahifa-wrap a.shortc-button{box-shadow:0 16px 36px rgba(0,0,0,.32), inset 0 1px 0 rgba(255,255,255,.22)!important}
@media(max-width:768px){
  .ed-sahifa-content .ed-sahifa-button,.article-content.legacy-sahifa-wrap .ed-sahifa-button,.ed-sahifa-content a.shortc-button,.article-content.legacy-sahifa-wrap a.shortc-button{width:auto!important;max-width:100%;white-space:normal}
}

/* v139 - Professional legacy Bootstrap buttons inside imported Sahifa article content only */
.ed-sahifa-content a.btn,
.article-content.legacy-sahifa-wrap a.btn{
  --ed-btn-accent: var(--brand,#008b57);
  --ed-btn-accent-2: #00a86b;
  position:relative;
  display:inline-flex !important;
  align-items:center;
  justify-content:center;
  gap:.65rem;
  min-height:46px;
  margin:.55rem .15rem;
  padding:.78rem 1.25rem .78rem 1.45rem !important;
  border:0 !important;
  border-radius:14px !important;
  background:linear-gradient(135deg,var(--ed-btn-accent),var(--ed-btn-accent-2)) !important;
  color:#fff !important;
  font-weight:800 !important;
  line-height:1.35;
  text-decoration:none !important;
  box-shadow:0 12px 28px rgba(0,139,87,.20), inset 0 1px 0 rgba(255,255,255,.22);
  overflow:hidden;
  isolation:isolate;
  transform:translateZ(0);
  transition:transform .18s ease, box-shadow .18s ease, filter .18s ease;
}
.ed-sahifa-content a.btn::before,
.article-content.legacy-sahifa-wrap a.btn::before{
  content:"↧";
  width:30px;
  height:30px;
  flex:0 0 30px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  border-radius:50%;
  background:rgba(255,255,255,.20);
  color:#fff;
  font-size:18px;
  font-weight:900;
  box-shadow:inset 0 0 0 1px rgba(255,255,255,.22);
}
.ed-sahifa-content a.btn::after,
.article-content.legacy-sahifa-wrap a.btn::after{
  content:"";
  position:absolute;
  inset:0;
  z-index:-1;
  background:linear-gradient(120deg,transparent 0%,rgba(255,255,255,.22) 40%,transparent 70%);
  transform:translateX(120%);
  transition:transform .45s ease;
}
.ed-sahifa-content a.btn:hover,
.article-content.legacy-sahifa-wrap a.btn:hover{
  transform:translateY(-2px);
  filter:saturate(1.05);
  box-shadow:0 16px 34px rgba(0,139,87,.27), inset 0 1px 0 rgba(255,255,255,.24);
}
.ed-sahifa-content a.btn:hover::after,
.article-content.legacy-sahifa-wrap a.btn:hover::after{transform:translateX(-120%)}
.ed-sahifa-content a.btn:active,
.article-content.legacy-sahifa-wrap a.btn:active{transform:translateY(0)}
.ed-sahifa-content a.btn[download]::before,
.article-content.legacy-sahifa-wrap a.btn[download]::before,
.ed-sahifa-content a.btn[href$=".pdf" i]::before,
.article-content.legacy-sahifa-wrap a.btn[href$=".pdf" i]::before,
.ed-sahifa-content a.btn[href*=".pdf?" i]::before,
.article-content.legacy-sahifa-wrap a.btn[href*=".pdf?" i]::before{content:"↓"}
.ed-sahifa-content a.btn[href$=".pdf" i],
.article-content.legacy-sahifa-wrap a.btn[href$=".pdf" i],
.ed-sahifa-content a.btn[href*=".pdf?" i],
.article-content.legacy-sahifa-wrap a.btn[href*=".pdf?" i]{--ed-btn-accent:#dc2626;--ed-btn-accent-2:#f97316}
.ed-sahifa-content a.btn-danger,
.article-content.legacy-sahifa-wrap a.btn-danger{--ed-btn-accent:#dc2626;--ed-btn-accent-2:#f43f5e}
.ed-sahifa-content a.btn-primary,
.article-content.legacy-sahifa-wrap a.btn-primary{--ed-btn-accent:#2563eb;--ed-btn-accent-2:#06b6d4}
.ed-sahifa-content a.btn-success,
.article-content.legacy-sahifa-wrap a.btn-success{--ed-btn-accent:#059669;--ed-btn-accent-2:#22c55e}
.ed-sahifa-content a.btn-warning,
.article-content.legacy-sahifa-wrap a.btn-warning{--ed-btn-accent:#f59e0b;--ed-btn-accent-2:#f97316;color:#fff !important}
.ed-sahifa-content a.btn-info,
.article-content.legacy-sahifa-wrap a.btn-info{--ed-btn-accent:#0891b2;--ed-btn-accent-2:#38bdf8;color:#fff !important}
.ed-sahifa-content a.btn-secondary,
.ed-sahifa-content a.btn-dark,
.article-content.legacy-sahifa-wrap a.btn-secondary,
.article-content.legacy-sahifa-wrap a.btn-dark{--ed-btn-accent:#334155;--ed-btn-accent-2:#64748b}
html[data-theme="dark"] .ed-sahifa-content a.btn,
html[data-theme="dark"] .article-content.legacy-sahifa-wrap a.btn{
  box-shadow:0 12px 30px rgba(0,0,0,.35), inset 0 1px 0 rgba(255,255,255,.14);
}
@media(max-width:575.98px){
  .ed-sahifa-content a.btn,
  .article-content.legacy-sahifa-wrap a.btn{
    width:100%;
    margin:.45rem 0;
    min-height:48px;
  }
}

/* Sahifa legacy video imported from post meta */
.ed-sahifa-content .ed-legacy-video,
.legacy-sahifa-wrap .ed-legacy-video{
  position:relative;
  width:100%;
  max-width:860px;
  margin:0 auto 1.25rem;
  background:#0f172a;
  border-radius:14px;
  overflow:hidden;
  box-shadow:0 14px 35px rgba(15,23,42,.14);
}
.ed-sahifa-content .ed-legacy-video::before,
.legacy-sahifa-wrap .ed-legacy-video::before{
  content:"";
  display:block;
  padding-top:56.25%;
}
.ed-sahifa-content .ed-legacy-video iframe,
.ed-sahifa-content .ed-legacy-video video,
.legacy-sahifa-wrap .ed-legacy-video iframe,
.legacy-sahifa-wrap .ed-legacy-video video{
  position:absolute;
  inset:0;
  width:100%;
  height:100%;
  border:0;
  display:block;
}
.ed-sahifa-content .ed-legacy-video video,
.legacy-sahifa-wrap .ed-legacy-video video{
  background:#000;
}
@media(max-width:768px){
  .ed-sahifa-content .ed-legacy-video,
  .legacy-sahifa-wrap .ed-legacy-video{
    border-radius:10px;
    margin-bottom:1rem;
  }
}


/* Auto embedded videos inside imported Sahifa/WordPress content */
.ed-sahifa-content .ed-legacy-video{position:relative;width:100%;max-width:920px;margin:1.1rem auto 1.45rem;border-radius:18px;overflow:hidden;background:#0f172a;box-shadow:0 14px 38px rgba(15,23,42,.14)}
.ed-sahifa-content .ed-legacy-video::before{content:"";display:block;padding-top:56.25%}
.ed-sahifa-content .ed-legacy-video iframe,.ed-sahifa-content .ed-legacy-video video{position:absolute;inset:0;width:100%;height:100%;border:0;display:block;background:#000}
.ed-sahifa-content .ed-legacy-video-file video{object-fit:contain}
.ed-sahifa-content p + .ed-legacy-video,.ed-sahifa-content .ed-legacy-video + p{margin-top:.8rem}
@media(max-width:768px){.ed-sahifa-content .ed-legacy-video{border-radius:14px;margin:1rem auto 1.25rem}}

/* v22 - Gallery improvements: imported media + smarter horizontal rows */
.ed-sahifa-content .gallery.gallery-columns-5{grid-template-columns:repeat(5,minmax(0,1fr))}
.ed-sahifa-content .gallery.gallery-columns-6{grid-template-columns:repeat(6,minmax(0,1fr))}
.ed-sahifa-content .ed-wp-gallery{align-items:start}
@media(min-width:769px){
  .ed-sahifa-content .ed-wp-gallery.gallery-columns-3 .gallery-item{min-width:0}
}
@media(max-width:768px){
  .ed-sahifa-content .gallery.gallery-columns-3{grid-template-columns:repeat(3,minmax(0,1fr))}
}
@media(max-width:520px){
  .ed-sahifa-content .gallery.gallery-columns-3{grid-template-columns:repeat(2,minmax(0,1fr))}
}

/* v23 - Compact horizontal galleries on mobile */
.ed-sahifa-content .ed-wp-gallery,
.ed-sahifa-content .gallery{
  gap:6px !important;
  padding:6px !important;
}
.ed-sahifa-content .ed-wp-gallery .gallery-icon a,
.ed-sahifa-content .gallery .gallery-icon a{
  border-radius:8px !important;
  box-shadow:0 4px 12px rgba(15,23,42,.08) !important;
}
.ed-sahifa-content .ed-wp-gallery img,
.ed-sahifa-content .gallery img{
  border-radius:8px !important;
}
@media(max-width:768px){
  .ed-sahifa-content .ed-wp-gallery,
  .ed-sahifa-content .gallery{
    gap:4px !important;
    padding:4px !important;
    margin:.55rem auto .85rem !important;
    border-radius:10px !important;
  }
  .ed-sahifa-content .ed-wp-gallery.gallery-columns-2,
  .ed-sahifa-content .gallery.gallery-columns-2{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .ed-sahifa-content .ed-wp-gallery.gallery-columns-3,
  .ed-sahifa-content .gallery.gallery-columns-3{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
  .ed-sahifa-content .ed-wp-gallery.gallery-columns-4,
  .ed-sahifa-content .gallery.gallery-columns-4{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
  .ed-sahifa-content .ed-wp-gallery .gallery-caption,
  .ed-sahifa-content .gallery .gallery-caption{font-size:.72rem;line-height:1.35;margin-top:3px}
}
@media(max-width:420px){
  .ed-sahifa-content .ed-wp-gallery.gallery-columns-2,
  .ed-sahifa-content .gallery.gallery-columns-2{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
  .ed-sahifa-content .ed-wp-gallery.gallery-columns-3,
  .ed-sahifa-content .gallery.gallery-columns-3{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
  .ed-sahifa-content .ed-wp-gallery.gallery-columns-4,
  .ed-sahifa-content .gallery.gallery-columns-4{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
}


/* v24 - Force WordPress galleries to stay compact and horizontal */
.ed-sahifa-content .gallery,
.ed-sahifa-content .ed-wp-gallery{
  display:grid !important;
  clear:both !important;
  width:100% !important;
  max-width:760px !important;
  margin:.55rem auto .85rem !important;
  padding:4px !important;
  gap:4px !important;
  border-radius:10px !important;
  align-items:start !important;
}
.ed-sahifa-content .gallery.gallery-columns-1,
.ed-sahifa-content .ed-wp-gallery.gallery-columns-1{grid-template-columns:1fr !important}
.ed-sahifa-content .gallery.gallery-columns-2,
.ed-sahifa-content .ed-wp-gallery.gallery-columns-2{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
.ed-sahifa-content .gallery.gallery-columns-3,
.ed-sahifa-content .ed-wp-gallery.gallery-columns-3{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
.ed-sahifa-content .gallery.gallery-columns-4,
.ed-sahifa-content .ed-wp-gallery.gallery-columns-4{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
.ed-sahifa-content .gallery.gallery-columns-5,
.ed-sahifa-content .ed-wp-gallery.gallery-columns-5{grid-template-columns:repeat(5,minmax(0,1fr)) !important}
.ed-sahifa-content .gallery.gallery-columns-6,
.ed-sahifa-content .ed-wp-gallery.gallery-columns-6{grid-template-columns:repeat(6,minmax(0,1fr)) !important}
.ed-sahifa-content .gallery .gallery-item,
.ed-sahifa-content .ed-wp-gallery .gallery-item,
.ed-sahifa-content .gallery figure,
.ed-sahifa-content .ed-wp-gallery figure{
  margin:0 !important;
  padding:0 !important;
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  float:none !important;
  display:block !important;
  text-align:center !important;
}
.ed-sahifa-content .gallery .gallery-icon,
.ed-sahifa-content .ed-wp-gallery .gallery-icon{margin:0 !important;padding:0 !important;line-height:0 !important}
.ed-sahifa-content .gallery .gallery-icon a,
.ed-sahifa-content .ed-wp-gallery .gallery-icon a{display:block !important;margin:0 !important;padding:0 !important;border-radius:7px !important;overflow:hidden !important}
.ed-sahifa-content .gallery img.ed-gallery-img,
.ed-sahifa-content .ed-wp-gallery img.ed-gallery-img,
.ed-sahifa-content .gallery .gallery-icon img,
.ed-sahifa-content .ed-wp-gallery .gallery-icon img{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  aspect-ratio:1/1 !important;
  object-fit:cover !important;
  margin:0 !important;
  border-radius:7px !important;
}
.ed-sahifa-content .gallery .gallery-caption,
.ed-sahifa-content .ed-wp-gallery .gallery-caption{
  margin:3px 0 0 !important;
  padding:0 1px !important;
  font-size:.72rem !important;
  line-height:1.25 !important;
}
.ed-sahifa-content .gallery br,
.ed-sahifa-content .ed-wp-gallery br{display:none !important}
.ed-sahifa-content .gallery p,
.ed-sahifa-content .ed-wp-gallery p{margin:0 !important;padding:0 !important}
@media(max-width:576px){
  .ed-sahifa-content .gallery,
  .ed-sahifa-content .ed-wp-gallery{
    max-width:100% !important;
    margin:.45rem auto .65rem !important;
    padding:2px !important;
    gap:3px !important;
  }
  .ed-sahifa-content .gallery .gallery-caption,
  .ed-sahifa-content .ed-wp-gallery .gallery-caption{font-size:.66rem !important;line-height:1.2 !important}
}

/* v25 - strongest fix: keep imported WordPress galleries horizontal and compact */
.article-content.legacy-sahifa-wrap .ed-sahifa-content .gallery,
.article-content.legacy-sahifa-wrap .gallery,
.ed-sahifa-content .gallery,
.ed-sahifa-content .ed-wp-gallery{
  display:grid !important;
  grid-auto-flow:row !important;
  gap:3px !important;
  padding:3px !important;
  margin:.55rem auto .75rem !important;
  width:100% !important;
  max-width:760px !important;
  align-items:start !important;
}
.article-content.legacy-sahifa-wrap .gallery.gallery-columns-1,
.ed-sahifa-content .gallery.gallery-columns-1{grid-template-columns:repeat(1,minmax(0,1fr)) !important}
.article-content.legacy-sahifa-wrap .gallery.gallery-columns-2,
.ed-sahifa-content .gallery.gallery-columns-2{grid-template-columns:repeat(2,minmax(0,1fr)) !important}
.article-content.legacy-sahifa-wrap .gallery.gallery-columns-3,
.ed-sahifa-content .gallery.gallery-columns-3{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
.article-content.legacy-sahifa-wrap .gallery.gallery-columns-4,
.ed-sahifa-content .gallery.gallery-columns-4{grid-template-columns:repeat(4,minmax(0,1fr)) !important}
.article-content.legacy-sahifa-wrap .gallery.gallery-columns-5,
.ed-sahifa-content .gallery.gallery-columns-5{grid-template-columns:repeat(5,minmax(0,1fr)) !important}
.article-content.legacy-sahifa-wrap .gallery.gallery-columns-6,
.ed-sahifa-content .gallery.gallery-columns-6{grid-template-columns:repeat(6,minmax(0,1fr)) !important}
.article-content.legacy-sahifa-wrap .gallery .gallery-item,
.ed-sahifa-content .gallery .gallery-item,
.ed-sahifa-content .ed-wp-gallery .gallery-item,
.article-content.legacy-sahifa-wrap .gallery figure,
.ed-sahifa-content .gallery figure,
.article-content.legacy-sahifa-wrap .gallery dl,
.ed-sahifa-content .gallery dl{
  float:none !important;
  clear:none !important;
  width:auto !important;
  max-width:none !important;
  min-width:0 !important;
  margin:0 !important;
  padding:0 !important;
  display:block !important;
  text-align:center !important;
}
.article-content.legacy-sahifa-wrap .gallery .gallery-icon,
.ed-sahifa-content .gallery .gallery-icon{margin:0 !important;padding:0 !important;line-height:0 !important}
.article-content.legacy-sahifa-wrap .gallery .gallery-icon a,
.ed-sahifa-content .gallery .gallery-icon a{display:block !important;margin:0 !important;padding:0 !important;line-height:0 !important;border-radius:6px !important;overflow:hidden !important}
.article-content.legacy-sahifa-wrap .gallery .gallery-icon img,
.ed-sahifa-content .gallery .gallery-icon img,
.ed-sahifa-content .gallery img.ed-gallery-img{
  display:block !important;
  width:100% !important;
  max-width:100% !important;
  height:auto !important;
  aspect-ratio:1/1 !important;
  object-fit:cover !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:6px !important;
}
.article-content.legacy-sahifa-wrap .gallery .gallery-caption,
.ed-sahifa-content .gallery .gallery-caption{margin:3px 0 0 !important;padding:0 1px !important;font-size:.68rem !important;line-height:1.2 !important}
.article-content.legacy-sahifa-wrap .gallery br,
.ed-sahifa-content .gallery br{display:none !important}
@media(max-width:576px){
  .article-content.legacy-sahifa-wrap .gallery,
  .ed-sahifa-content .gallery,
  .ed-sahifa-content .ed-wp-gallery{gap:2px !important;padding:2px !important;margin:.4rem auto .6rem !important;max-width:100% !important}
  .article-content.legacy-sahifa-wrap .gallery.gallery-columns-3,
  .ed-sahifa-content .gallery.gallery-columns-3{grid-template-columns:repeat(3,minmax(0,1fr)) !important}
}

/* v26 - final horizontal compact gallery fix: use horizontal flex, not vertical/grid conflicts */
.article-content.legacy-sahifa-wrap .gallery,
.article-content.legacy-sahifa-wrap .ed-wp-gallery,
.ed-sahifa-content .gallery,
.ed-sahifa-content .ed-wp-gallery{
  display:flex !important;
  flex-direction:row !important;
  flex-wrap:nowrap !important;
  gap:4px !important;
  column-gap:4px !important;
  row-gap:4px !important;
  width:100% !important;
  max-width:760px !important;
  margin:.45rem auto .65rem !important;
  padding:2px !important;
  overflow-x:auto !important;
  overflow-y:hidden !important;
  align-items:flex-start !important;
  justify-content:flex-start !important;
  direction:rtl !important;
  clear:both !important;
  box-sizing:border-box !important;
  -webkit-overflow-scrolling:touch !important;
}
.article-content.legacy-sahifa-wrap .gallery .gallery-item,
.article-content.legacy-sahifa-wrap .ed-wp-gallery .gallery-item,
.ed-sahifa-content .gallery .gallery-item,
.ed-sahifa-content .ed-wp-gallery .gallery-item,
.article-content.legacy-sahifa-wrap .gallery figure,
.article-content.legacy-sahifa-wrap .ed-wp-gallery figure,
.ed-sahifa-content .gallery figure,
.ed-sahifa-content .ed-wp-gallery figure,
.article-content.legacy-sahifa-wrap .gallery dl,
.ed-sahifa-content .gallery dl{
  display:block !important;
  float:none !important;
  clear:none !important;
  margin:0 !important;
  padding:0 !important;
  width:220px !important;
  min-width:220px !important;
  max-width:240px !important;
  flex:0 0 220px !important;
  text-align:center !important;
  box-sizing:border-box !important;
}
.article-content.legacy-sahifa-wrap .gallery.gallery-columns-2 .gallery-item,
.ed-sahifa-content .gallery.gallery-columns-2 .gallery-item,
.article-content.legacy-sahifa-wrap .gallery.gallery-columns-2 figure,
.ed-sahifa-content .gallery.gallery-columns-2 figure{width:calc((100% - 4px)/2) !important;min-width:220px !important;flex:0 0 calc((100% - 4px)/2) !important;max-width:360px !important}
.article-content.legacy-sahifa-wrap .gallery .gallery-icon,
.article-content.legacy-sahifa-wrap .ed-wp-gallery .gallery-icon,
.ed-sahifa-content .gallery .gallery-icon,
.ed-sahifa-content .ed-wp-gallery .gallery-icon{margin:0 !important;padding:0 !important;line-height:0 !important;width:100% !important}
.article-content.legacy-sahifa-wrap .gallery .gallery-icon a,
.article-content.legacy-sahifa-wrap .ed-wp-gallery .gallery-icon a,
.ed-sahifa-content .gallery .gallery-icon a,
.ed-sahifa-content .ed-wp-gallery .gallery-icon a{display:block !important;margin:0 !important;padding:0 !important;line-height:0 !important;border-radius:7px !important;overflow:hidden !important;width:100% !important}
.article-content.legacy-sahifa-wrap .gallery .gallery-icon img,
.article-content.legacy-sahifa-wrap .ed-wp-gallery .gallery-icon img,
.ed-sahifa-content .gallery .gallery-icon img,
.ed-sahifa-content .ed-wp-gallery .gallery-icon img,
.ed-sahifa-content .gallery img.ed-gallery-img,
.ed-sahifa-content .ed-wp-gallery img.ed-gallery-img{
  display:block !important;
  width:100% !important;
  max-width:none !important;
  height:170px !important;
  object-fit:cover !important;
  margin:0 !important;
  padding:0 !important;
  border-radius:7px !important;
}
.article-content.legacy-sahifa-wrap .gallery .gallery-caption,
.article-content.legacy-sahifa-wrap .ed-wp-gallery .gallery-caption,
.ed-sahifa-content .gallery .gallery-caption,
.ed-sahifa-content .ed-wp-gallery .gallery-caption{display:block !important;margin:4px 0 0 !important;padding:0 1px !important;font-size:.75rem !important;line-height:1.25 !important;color:#64748b !important;text-align:center !important}
.article-content.legacy-sahifa-wrap .gallery br,
.article-content.legacy-sahifa-wrap .ed-wp-gallery br,
.ed-sahifa-content .gallery br,
.ed-sahifa-content .ed-wp-gallery br{display:none !important}
@media(max-width:576px){
  .article-content.legacy-sahifa-wrap .gallery,
  .article-content.legacy-sahifa-wrap .ed-wp-gallery,
  .ed-sahifa-content .gallery,
  .ed-sahifa-content .ed-wp-gallery{max-width:100% !important;gap:3px !important;padding:1px !important;margin:.35rem auto .55rem !important}
  .article-content.legacy-sahifa-wrap .gallery .gallery-item,
  .article-content.legacy-sahifa-wrap .ed-wp-gallery .gallery-item,
  .ed-sahifa-content .gallery .gallery-item,
  .ed-sahifa-content .ed-wp-gallery .gallery-item,
  .article-content.legacy-sahifa-wrap .gallery figure,
  .article-content.legacy-sahifa-wrap .ed-wp-gallery figure,
  .ed-sahifa-content .gallery figure,
  .ed-sahifa-content .ed-wp-gallery figure{width:160px !important;min-width:160px !important;max-width:180px !important;flex:0 0 160px !important}
  .article-content.legacy-sahifa-wrap .gallery .gallery-icon img,
  .article-content.legacy-sahifa-wrap .ed-wp-gallery .gallery-icon img,
  .ed-sahifa-content .gallery .gallery-icon img,
  .ed-sahifa-content .ed-wp-gallery .gallery-icon img{height:120px !important}
}

/* v142 - Compact legacy Sahifa toggles/boxes and repair imported video spacing */
.ed-sahifa-content > p:empty,
.ed-sahifa-content p:has(> br:only-child),
.ed-sahifa-content .ed-sahifa-toggle + p:empty,
.ed-sahifa-content .ed-sahifa-box + p:empty,
.ed-sahifa-content .ed-legacy-video + p:empty{
  display:none !important;
  margin:0 !important;
  padding:0 !important;
  min-height:0 !important;
}

.ed-sahifa-content .ed-sahifa-toggle{
  margin:.48rem 0 !important;
  height:auto !important;
  min-height:0 !important;
  border-radius:12px;
}
.ed-sahifa-content .ed-sahifa-toggle summary{
  min-height:0 !important;
  padding:.72rem .95rem !important;
  line-height:1.55 !important;
}
.ed-sahifa-content .ed-sahifa-toggle > div{
  height:auto !important;
  min-height:0 !important;
  padding:.8rem .95rem !important;
}
.ed-sahifa-content .ed-sahifa-toggle > div > :first-child{margin-top:0 !important}
.ed-sahifa-content .ed-sahifa-toggle > div > :last-child{margin-bottom:0 !important}

.ed-sahifa-content .ed-sahifa-box{
  height:auto !important;
  min-height:0 !important;
  margin:.72rem 0 !important;
  padding:.9rem 1rem !important;
  overflow:visible !important;
}
.ed-sahifa-content .ed-sahifa-box-content{
  height:auto !important;
  min-height:0 !important;
  overflow:visible !important;
}
.ed-sahifa-content .ed-sahifa-box-content > p,
.ed-sahifa-content .ed-sahifa-box-content > div:not(.ed-legacy-video):not(.ed-sahifa-embed){
  height:auto !important;
  min-height:0 !important;
}
.ed-sahifa-content .ed-sahifa-box-content > :first-child{margin-top:0 !important}
.ed-sahifa-content .ed-sahifa-box-content > :last-child{margin-bottom:0 !important}
.ed-sahifa-content .ed-sahifa-box-content p:empty,
.ed-sahifa-content .ed-sahifa-box-content p:has(> br:only-child){display:none !important}

.ed-sahifa-content .ed-legacy-video,
.article-content.legacy-sahifa-wrap .ed-legacy-video{
  position:relative !important;
  width:100% !important;
  max-width:920px !important;
  height:auto !important;
  min-height:0 !important;
  aspect-ratio:16 / 9;
  padding:0 !important;
  margin:.8rem auto 1rem !important;
}
.ed-sahifa-content .ed-legacy-video::before,
.article-content.legacy-sahifa-wrap .ed-legacy-video::before{
  display:none !important;
  content:none !important;
  padding:0 !important;
}
.ed-sahifa-content .ed-legacy-video > p,
.article-content.legacy-sahifa-wrap .ed-legacy-video > p{display:contents !important}
.ed-sahifa-content .ed-legacy-video iframe,
.ed-sahifa-content .ed-legacy-video video,
.article-content.legacy-sahifa-wrap .ed-legacy-video iframe,
.article-content.legacy-sahifa-wrap .ed-legacy-video video{
  position:absolute !important;
  inset:0 !important;
  width:100% !important;
  height:100% !important;
  min-height:0 !important;
  margin:0 !important;
  padding:0 !important;
  border:0 !important;
}

@media(max-width:575.98px){
  .ed-sahifa-content .ed-sahifa-toggle{margin:.38rem 0 !important}
  .ed-sahifa-content .ed-sahifa-toggle summary{padding:.66rem .8rem !important;font-size:.96em}
  .ed-sahifa-content .ed-sahifa-box{margin:.6rem 0 !important;padding:.78rem .82rem !important}
  .ed-sahifa-content .ed-legacy-video,
  .article-content.legacy-sahifa-wrap .ed-legacy-video{border-radius:10px !important;margin:.65rem auto .85rem !important}
}

/* v162 - Remove imported spacer BR tags around legacy Sahifa toggles */
.ed-sahifa-content .ed-sahifa-toggle > summary + br,
.ed-sahifa-content .ed-sahifa-toggle > br,
.ed-sahifa-content .ed-sahifa-toggle + br,
.ed-sahifa-content .ed-sahifa-toggle > div > br:first-child,
.ed-sahifa-content .ed-sahifa-toggle > div > br:last-child{
  display:none !important;
  height:0 !important;
  margin:0 !important;
  padding:0 !important;
  line-height:0 !important;
}
.ed-sahifa-content .ed-sahifa-toggle{
  margin:.42rem 0 !important;
}
.ed-sahifa-content .ed-sahifa-toggle > div{
  padding:.55rem .8rem .62rem !important;
  font-size:.92em !important;
  line-height:1.75 !important;
}
@media(max-width:575.98px){
  .ed-sahifa-content .ed-sahifa-toggle{margin:.32rem 0 !important}
  .ed-sahifa-content .ed-sahifa-toggle summary{padding:.52rem .7rem !important;line-height:1.5 !important}
  .ed-sahifa-content .ed-sahifa-toggle > div{padding:.42rem .7rem .5rem !important;font-size:.88em !important;line-height:1.7 !important}
}

/* v129 - تكبير صور المقالات دون الاعتماد على محرف غير موجود في خط Bootstrap Icons المحلي */
.ed-sahifa-content .ed-legacy-image-link::after,
.ed-sahifa-content .gallery-icon a::after{
  content:"";
  font-family:inherit;
  background-color:rgba(15,23,42,.72);
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='10.5' cy='10.5' r='6.5'/%3E%3Cpath d='m15.5 15.5 5 5M10.5 7.5v6M7.5 10.5h6'/%3E%3C/svg%3E");
  background-repeat:no-repeat;
  background-position:center;
  background-size:1.15rem 1.15rem;
  box-shadow:0 5px 16px rgba(15,23,42,.28);
  z-index:3;
}
@media (hover:none), (pointer:coarse){
  .ed-sahifa-content .ed-legacy-image-link::after,
  .ed-sahifa-content .gallery-icon a::after{
    opacity:.9;
    transform:none;
  }
}


/* v61 - definitive compact renderer for imported Sahifa/Bootstrap buttons */
.ed-sahifa-content .ed-legacy-compact-button,
.article-content.legacy-sahifa-wrap .ed-legacy-compact-button{
  --ed-compact-btn:#008b57;
  box-sizing:border-box!important;
  display:inline-flex!important;
  width:auto!important;
  max-width:100%!important;
  min-width:0!important;
  min-height:0!important;
  height:auto!important;
  align-items:center!important;
  justify-content:flex-start!important;
  gap:8px!important;
  margin:6px 2px!important;
  padding:7px 11px!important;
  border:0!important;
  border-radius:11px!important;
  background:linear-gradient(135deg,color-mix(in srgb,var(--ed-compact-btn) 88%,#fff 12%),var(--ed-compact-btn))!important;
  color:#fff!important;
  box-shadow:0 5px 13px color-mix(in srgb,var(--ed-compact-btn) 20%,transparent)!important;
  font-size:14px!important;
  font-weight:800!important;
  line-height:1.35!important;
  text-decoration:none!important;
  vertical-align:middle!important;
  overflow:hidden!important;
  transform:none!important;
}
.ed-sahifa-content .ed-legacy-compact-button:hover,
.article-content.legacy-sahifa-wrap .ed-legacy-compact-button:hover{filter:brightness(1.04);transform:translateY(-1px)!important;text-decoration:none!important}
.ed-sahifa-content .ed-legacy-compact-button-icon,
.article-content.legacy-sahifa-wrap .ed-legacy-compact-button-icon{
  flex:0 0 26px!important;width:26px!important;height:26px!important;min-width:26px!important;
  display:grid!important;place-items:center!important;margin:0!important;padding:0!important;
  border-radius:8px!important;background:rgba(255,255,255,.18)!important;
  font-size:14px!important;line-height:1!important;box-shadow:inset 0 0 0 1px rgba(255,255,255,.18)!important;
}
.ed-sahifa-content .ed-legacy-compact-button-icon i,
.article-content.legacy-sahifa-wrap .ed-legacy-compact-button-icon i{font-size:14px!important;line-height:1!important;margin:0!important}
.ed-sahifa-content .ed-legacy-compact-button-text,
.article-content.legacy-sahifa-wrap .ed-legacy-compact-button-text{
  min-width:0!important;display:-webkit-box!important;-webkit-box-orient:vertical!important;-webkit-line-clamp:2!important;
  overflow:hidden!important;white-space:normal!important;text-align:right!important;
}
.ed-legacy-compact-button-red{--ed-compact-btn:#dc2626!important}
.ed-legacy-compact-button-blue{--ed-compact-btn:#2563eb!important}
.ed-legacy-compact-button-orange{--ed-compact-btn:#ea580c!important}
.ed-legacy-compact-button-gray,.ed-legacy-compact-button-grey,.ed-legacy-compact-button-black{--ed-compact-btn:#475569!important}
.ed-legacy-compact-button-green{--ed-compact-btn:#008b57!important}
@media(max-width:575.98px){
  .ed-sahifa-content .ed-legacy-compact-button,
  .article-content.legacy-sahifa-wrap .ed-legacy-compact-button{
    width:100%!important;max-width:100%!important;margin:5px 0!important;padding:7px 10px!important;
    border-radius:10px!important;font-size:13.5px!important;gap:7px!important;
  }
  .ed-sahifa-content .ed-legacy-compact-button-icon,
  .article-content.legacy-sahifa-wrap .ed-legacy-compact-button-icon{flex-basis:24px!important;width:24px!important;height:24px!important;min-width:24px!important;border-radius:7px!important;font-size:13px!important}
  .ed-sahifa-content .ed-legacy-compact-button-icon i,
  .article-content.legacy-sahifa-wrap .ed-legacy-compact-button-icon i{font-size:13px!important}
}

/* v143 - Keep real imported article paragraphs visible.
   Some old Sahifa posts contain malformed closing tags after legacy boxes;
   never let a non-empty direct paragraph be collapsed or hidden. */
.article-content.legacy-sahifa-wrap .ed-sahifa-content > p:not(:empty),
.article-content.legacy-sahifa-wrap > .ed-sahifa-content > p:not(:empty),
.ed-sahifa-content > p:not(:empty){
  display:block !important;
  visibility:visible !important;
  opacity:1 !important;
  height:auto !important;
  max-height:none !important;
  min-height:0 !important;
  overflow:visible !important;
  clip:auto !important;
  clip-path:none !important;
  position:relative !important;
  transform:none !important;
}

.article-content.legacy-sahifa-wrap .ed-sahifa-content > p:not(:empty):not([style*="text-align: center"]),
.ed-sahifa-content > p:not(:empty):not([style*="text-align: center"]){
  margin-block:0 1rem !important;
}

/* Mobile tables: contain every column inside the article width. */
@media (max-width:700px){
  .article-content.legacy-sahifa-wrap,.article-content.legacy-sahifa-wrap .ed-sahifa-content,.ed-sahifa-content .edd-legacy-table-wrap{max-width:100%!important;overflow-x:hidden!important}
  .ed-sahifa-content table,.ed-sahifa-content .edd-legacy-table-wrap table{display:table!important;width:100%!important;max-width:100%!important;min-width:0!important;table-layout:fixed!important;overflow:visible!important}
  .ed-sahifa-content table th,.ed-sahifa-content table td{width:auto!important;min-width:0!important;max-width:none!important;padding:.5rem .4rem!important;white-space:normal!important;overflow-wrap:anywhere!important;word-break:break-word!important;font-size:clamp(.78rem,3.35vw,.95rem)!important;line-height:1.65!important}
  .ed-sahifa-content table ul,.ed-sahifa-content table ol{margin:.15rem 0!important;padding-inline-start:1.1rem!important}
}


/* WordPress shortcode [ic_add_posts] -> native Eddirasa article lists */
.ed-ic-posts{direction:rtl;margin:22px 0;padding:16px;border:1px solid var(--ed-border,#e3e9ef);border-radius:18px;background:var(--ed-surface,#fff);box-shadow:0 7px 24px rgba(15,23,42,.055)}
.ed-ic-posts-head{display:flex;align-items:center;justify-content:space-between;gap:12px;margin:0 0 12px;padding:0 2px 11px;border-bottom:1px solid var(--ed-border,#e8edf2)}
.ed-ic-posts-title{display:inline-flex;align-items:center;gap:9px;color:inherit;text-decoration:none;font-weight:800;font-size:1.03rem}
.ed-ic-posts-title:hover{color:var(--brand,#0aa461)}
.ed-ic-posts-title i{display:grid;place-items:center;width:34px;height:34px;border-radius:10px;background:color-mix(in srgb,var(--brand,#0aa461) 12%,transparent);color:var(--brand,#0aa461);font-size:1rem}
.ed-ic-posts-count{display:inline-grid;place-items:center;min-width:34px;height:28px;padding:0 9px;border-radius:999px;background:color-mix(in srgb,var(--brand,#0aa461) 12%,transparent);color:var(--brand,#0aa461);font-size:.78rem;font-weight:800}
.ed-ic-posts .ed-legacy-articles{margin-top:0}
.ed-ic-posts .ed-article-tools{display:none!important}
.ed-ic-posts .ed-legacy-box{margin:0}
.ed-ic-posts-missing{display:flex;align-items:center;gap:9px;padding:13px 15px;color:#9a6700;background:#fff8e1;border-color:#f2d48a;box-shadow:none}
.ed-ic-posts-fallback{display:grid;gap:8px}
.ed-ic-posts-fallback>a{display:flex;align-items:center;gap:9px;padding:11px 13px;border:1px solid #e7edf2;border-radius:11px;color:inherit;text-decoration:none}
.ed-ic-posts-fallback>a:hover{border-color:var(--brand,#0aa461);color:var(--brand,#0aa461)}
html[data-theme=dark] .ed-ic-posts{--ed-surface:#24272d;--ed-border:#39414a;box-shadow:0 8px 25px rgba(0,0,0,.2)}
html[data-theme=dark] .ed-ic-posts-missing{background:#332d1e;border-color:#65562b;color:#f4d77a}
@media(max-width:575.98px){.ed-ic-posts{margin:16px 0;padding:11px;border-radius:14px}.ed-ic-posts-head{margin-bottom:9px;padding-bottom:9px}.ed-ic-posts-title{font-size:.92rem}.ed-ic-posts-title i{width:30px;height:30px;border-radius:9px}}

/* v164 - Stable embedded renderer for [ic_add_posts].
   Isolated from the full tag-page grid to prevent titles, thumbnails and fixed
   card dimensions from overlapping inside imported WordPress page content. */
.ed-sahifa-content .ed-ic-posts,
.article-content.legacy-sahifa-wrap .ed-ic-posts{
  box-sizing:border-box;
  width:100%;
  max-width:100%;
  clear:both;
  overflow:hidden;
}
.ed-sahifa-content .ed-ic-posts *,
.article-content.legacy-sahifa-wrap .ed-ic-posts *{box-sizing:border-box}
.ed-sahifa-content .ed-ic-posts-list,
.article-content.legacy-sahifa-wrap .ed-ic-posts-list{
  display:grid;
  grid-template-columns:minmax(0,1fr);
  gap:8px;
  width:100%;
  min-width:0;
}
.ed-sahifa-content .ed-ic-post-item,
.article-content.legacy-sahifa-wrap .ed-ic-post-item{
  display:grid !important;
  grid-template-columns:42px minmax(0,1fr) 28px;
  align-items:center;
  gap:10px;
  width:100% !important;
  min-width:0 !important;
  min-height:58px;
  height:auto !important;
  margin:0 !important;
  padding:8px 10px !important;
  border:1px solid #e1e8ee;
  border-radius:12px;
  background:#fff;
  color:#172033 !important;
  text-decoration:none !important;
  box-shadow:none;
  overflow:hidden;
  position:relative;
  inset:auto;
  transform:none;
}
.ed-sahifa-content .ed-ic-post-item:hover,
.article-content.legacy-sahifa-wrap .ed-ic-post-item:hover{
  border-color:color-mix(in srgb,var(--brand,#0aa461) 48%,#dce5eb);
  background:color-mix(in srgb,var(--brand,#0aa461) 4%,#fff);
  color:var(--brand,#0aa461) !important;
}
.ed-sahifa-content .ed-ic-post-icon,
.article-content.legacy-sahifa-wrap .ed-ic-post-icon{
  display:grid;
  place-items:center;
  width:40px;
  height:40px;
  min-width:40px;
  border-radius:10px;
  background:color-mix(in srgb,var(--brand,#0aa461) 11%,#fff);
  color:var(--brand,#0aa461);
  font-size:17px;
  line-height:1;
}
.ed-sahifa-content .ed-ic-post-item.is-video .ed-ic-post-icon,
.article-content.legacy-sahifa-wrap .ed-ic-post-item.is-video .ed-ic-post-icon{
  background:#fff0f1;
  color:#e63946;
}
.ed-sahifa-content .ed-ic-post-body,
.article-content.legacy-sahifa-wrap .ed-ic-post-body{
  display:flex;
  flex-direction:column;
  justify-content:center;
  gap:3px;
  min-width:0;
  width:100%;
  overflow:hidden;
}
.ed-sahifa-content .ed-ic-post-name,
.article-content.legacy-sahifa-wrap .ed-ic-post-name{
  display:block;
  min-width:0;
  max-width:100%;
  font-size:.96rem;
  font-weight:700;
  line-height:1.55;
  white-space:normal;
  overflow-wrap:anywhere;
  word-break:normal;
}
.ed-sahifa-content .ed-ic-post-date,
.article-content.legacy-sahifa-wrap .ed-ic-post-date{
  display:block;
  color:#8290a3;
  font-size:.72rem;
  line-height:1.3;
}
.ed-sahifa-content .ed-ic-post-arrow,
.article-content.legacy-sahifa-wrap .ed-ic-post-arrow{
  display:grid;
  place-items:center;
  width:28px;
  height:28px;
  color:#94a3b8;
  font-size:13px;
}
.ed-sahifa-content .ed-ic-posts-empty,
.article-content.legacy-sahifa-wrap .ed-ic-posts-empty{
  padding:14px;
  border:1px dashed #d5dee7;
  border-radius:11px;
  color:#69778a;
  text-align:center;
  font-size:.9rem;
}
html[data-theme="dark"] .ed-sahifa-content .ed-ic-post-item,
html[data-theme="dark"] .article-content.legacy-sahifa-wrap .ed-ic-post-item{
  border-color:#39434e;
  background:#20262e;
  color:#edf2f7 !important;
}
html[data-theme="dark"] .ed-sahifa-content .ed-ic-post-item:hover,
html[data-theme="dark"] .article-content.legacy-sahifa-wrap .ed-ic-post-item:hover{background:#242d35}
html[data-theme="dark"] .ed-sahifa-content .ed-ic-post-date,
html[data-theme="dark"] .article-content.legacy-sahifa-wrap .ed-ic-post-date{color:#9ba8b7}
@media(min-width:900px){
  .ed-sahifa-content .ed-ic-posts-list,
  .article-content.legacy-sahifa-wrap .ed-ic-posts-list{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}
@media(max-width:575.98px){
  .ed-sahifa-content .ed-ic-posts,
  .article-content.legacy-sahifa-wrap .ed-ic-posts{padding:10px}
  .ed-sahifa-content .ed-ic-post-item,
  .article-content.legacy-sahifa-wrap .ed-ic-post-item{
    grid-template-columns:36px minmax(0,1fr) 22px;
    gap:8px;
    min-height:52px;
    padding:7px 8px !important;
    border-radius:10px;
  }
  .ed-sahifa-content .ed-ic-post-icon,
  .article-content.legacy-sahifa-wrap .ed-ic-post-icon{
    width:34px;
    height:34px;
    min-width:34px;
    border-radius:9px;
    font-size:15px;
  }
  .ed-sahifa-content .ed-ic-post-name,
  .article-content.legacy-sahifa-wrap .ed-ic-post-name{font-size:.88rem;line-height:1.5}
}

/* v165 - Collapsible [ic_add_posts], no dates, and a dedicated tag link */
.ed-sahifa-content details.ed-ic-posts,
.article-content.legacy-sahifa-wrap details.ed-ic-posts{
  position:relative;
  padding:0;
  overflow:hidden;
}
.ed-sahifa-content details.ed-ic-posts > summary,
.article-content.legacy-sahifa-wrap details.ed-ic-posts > summary{
  list-style:none;
  cursor:pointer;
  user-select:none;
  margin:0;
  min-height:70px;
  padding:14px 148px 14px 16px;
  border-bottom:0;
  transition:background-color .2s ease;
}
.ed-sahifa-content details.ed-ic-posts > summary::-webkit-details-marker,
.article-content.legacy-sahifa-wrap details.ed-ic-posts > summary::-webkit-details-marker{display:none}
.ed-sahifa-content details.ed-ic-posts > summary:hover,
.article-content.legacy-sahifa-wrap details.ed-ic-posts > summary:hover{
  background:color-mix(in srgb,var(--brand,#0aa461) 4%,transparent);
}
.ed-ic-posts-head-side{display:inline-flex;align-items:center;gap:8px}
.ed-ic-posts-toggle{
  display:grid;
  place-items:center;
  width:30px;
  height:30px;
  border-radius:9px;
  color:#718096;
  background:#f4f7fa;
  transition:transform .25s ease,background-color .2s ease,color .2s ease;
}
details.ed-ic-posts[open] .ed-ic-posts-toggle{
  transform:rotate(180deg);
  color:var(--brand,#0aa461);
  background:color-mix(in srgb,var(--brand,#0aa461) 11%,#fff);
}
.ed-ic-posts-tag-link{
  position:absolute;
  left:14px;
  top:14px;
  z-index:2;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:7px;
  min-height:42px;
  padding:0 13px;
  border:1px solid color-mix(in srgb,var(--brand,#0aa461) 24%,#dce5eb);
  border-radius:11px;
  background:color-mix(in srgb,var(--brand,#0aa461) 7%,#fff);
  color:var(--brand,#0aa461)!important;
  font-size:.82rem;
  font-weight:800;
  line-height:1;
  text-decoration:none!important;
  white-space:nowrap;
  transition:.2s ease;
}
.ed-ic-posts-tag-link:hover{
  border-color:var(--brand,#0aa461);
  background:var(--brand,#0aa461);
  color:#fff!important;
  transform:translateY(-1px);
}
.ed-ic-posts-panel{
  padding:0 16px 16px;
  border-top:1px solid var(--ed-border,#e8edf2);
}
.ed-ic-posts-panel .ed-ic-posts-list{padding-top:12px}
.ed-sahifa-content .ed-ic-post-date,
.article-content.legacy-sahifa-wrap .ed-ic-post-date{display:none!important}
html[data-theme="dark"] .ed-ic-posts-toggle{background:#303741;color:#aab5c3}
html[data-theme="dark"] details.ed-ic-posts[open] .ed-ic-posts-toggle{background:#243b33;color:#62d59d}
html[data-theme="dark"] .ed-ic-posts-tag-link{background:#24352f;border-color:#355849;color:#68d6a2!important}
html[data-theme="dark"] .ed-ic-posts-tag-link:hover{background:#0aa461;color:#fff!important}
@media(max-width:575.98px){
  .ed-sahifa-content details.ed-ic-posts > summary,
  .article-content.legacy-sahifa-wrap details.ed-ic-posts > summary{
    min-height:62px;
    padding:11px 50px 11px 11px;
  }
  .ed-ic-posts-tag-link{
    position:static;
    width:calc(100% - 22px);
    margin:0 11px 10px;
    min-height:38px;
  }
  .ed-ic-posts-panel{padding:0 10px 10px}
  .ed-ic-posts-title{font-size:.9rem}
  .ed-ic-posts-head-side{gap:5px}
}

/* v166 - Match the native site identity for imported [ic_add_posts] sections */
.ed-sahifa-content details.ed-ic-posts > summary,
.article-content.legacy-sahifa-wrap details.ed-ic-posts > summary{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  direction:rtl;
  align-items:center;
  gap:12px;
  padding:14px 150px 14px 16px;
}
.ed-sahifa-content details.ed-ic-posts > summary .ed-ic-posts-title,
.article-content.legacy-sahifa-wrap details.ed-ic-posts > summary .ed-ic-posts-title{
  grid-column:1;
  justify-self:start;
  width:auto;
  max-width:100%;
  text-align:right;
  margin:0;
}
.ed-sahifa-content details.ed-ic-posts > summary .ed-ic-posts-head-side,
.article-content.legacy-sahifa-wrap details.ed-ic-posts > summary .ed-ic-posts-head-side{
  grid-column:2;
  justify-self:end;
  direction:ltr;
}
.ed-ic-posts-tag-link{
  min-width:112px;
  gap:8px;
  border-radius:10px;
  font-size:.84rem;
}

/* Native compact article rows: same visual language as the site's article list */
.ed-sahifa-content .ed-ic-posts-list,
.article-content.legacy-sahifa-wrap .ed-ic-posts-list{
  display:flex;
  flex-direction:column;
  gap:8px;
}
.ed-sahifa-content .ed-ic-post-item,
.article-content.legacy-sahifa-wrap .ed-ic-post-item{
  display:grid!important;
  grid-template-columns:54px minmax(0,1fr)!important;
  direction:rtl;
  min-height:46px;
  padding:0!important;
  gap:0;
  border:1px solid #dbe4ec;
  border-radius:4px;
  background:#f7f9fb;
  overflow:hidden;
}
.ed-sahifa-content .ed-ic-post-icon,
.article-content.legacy-sahifa-wrap .ed-ic-post-icon{
  grid-column:1;
  width:54px;
  min-width:54px;
  height:100%;
  min-height:46px;
  border-radius:0;
  background:#53616d;
  color:#fff;
  font-size:15px;
}
.ed-sahifa-content .ed-ic-post-item.is-video .ed-ic-post-icon,
.article-content.legacy-sahifa-wrap .ed-ic-post-item.is-video .ed-ic-post-icon{
  background:#e8424f;
  color:#fff;
}
.ed-sahifa-content .ed-ic-post-body,
.article-content.legacy-sahifa-wrap .ed-ic-post-body{
  grid-column:2;
  min-width:0;
  padding:9px 14px;
  align-items:flex-start;
  text-align:right;
}
.ed-sahifa-content .ed-ic-post-name,
.article-content.legacy-sahifa-wrap .ed-ic-post-name{
  width:100%;
  color:#263548;
  font-size:.96rem;
  font-weight:500;
  line-height:1.55;
  text-align:right;
  white-space:normal;
  overflow-wrap:anywhere;
}
.ed-sahifa-content .ed-ic-post-arrow,
.article-content.legacy-sahifa-wrap .ed-ic-post-arrow{
  display:none!important;
}
.ed-sahifa-content .ed-ic-post-item:hover,
.article-content.legacy-sahifa-wrap .ed-ic-post-item:hover{
  border-color:#b9c8d4;
  background:#fff;
  color:inherit!important;
  transform:translateX(-2px);
}
.ed-sahifa-content .ed-ic-post-item:hover .ed-ic-post-name,
.article-content.legacy-sahifa-wrap .ed-ic-post-item:hover .ed-ic-post-name{
  color:var(--brand,#0aa461);
}
html[data-theme="dark"] .ed-sahifa-content .ed-ic-post-item,
html[data-theme="dark"] .article-content.legacy-sahifa-wrap .ed-ic-post-item{
  background:#20262e;
  border-color:#39434e;
}
html[data-theme="dark"] .ed-sahifa-content .ed-ic-post-name,
html[data-theme="dark"] .article-content.legacy-sahifa-wrap .ed-ic-post-name{color:#e5edf5}
html[data-theme="dark"] .ed-sahifa-content .ed-ic-post-icon,
html[data-theme="dark"] .article-content.legacy-sahifa-wrap .ed-ic-post-icon{background:#46535f}

@media(min-width:900px){
  .ed-sahifa-content .ed-ic-posts-list,
  .article-content.legacy-sahifa-wrap .ed-ic-posts-list{
    display:flex;
    grid-template-columns:none;
  }
}
@media(max-width:575.98px){
  .ed-sahifa-content details.ed-ic-posts > summary,
  .article-content.legacy-sahifa-wrap details.ed-ic-posts > summary{
    grid-template-columns:minmax(0,1fr) auto;
    padding:11px;
  }
  .ed-ic-posts-tag-link{
    position:static;
    width:calc(100% - 22px);
    margin:0 11px 10px;
  }
  .ed-sahifa-content .ed-ic-post-item,
  .article-content.legacy-sahifa-wrap .ed-ic-post-item{
    grid-template-columns:46px minmax(0,1fr)!important;
    min-height:44px;
  }
  .ed-sahifa-content .ed-ic-post-icon,
  .article-content.legacy-sahifa-wrap .ed-ic-post-icon{
    width:46px;
    min-width:46px;
    min-height:44px;
  }
  .ed-sahifa-content .ed-ic-post-body,
  .article-content.legacy-sahifa-wrap .ed-ic-post-body{padding:8px 10px}
  .ed-sahifa-content .ed-ic-post-name,
  .article-content.legacy-sahifa-wrap .ed-ic-post-name{font-size:.88rem}
}
