/* MotionClub: Standard content typography & elements (posts, pages, downloads) */

/* ---------- Base ---------- */
.entry-content,
.elementor .elementor-widget-text-editor,
.wp-block-post-content {
  font-family: "IRANSansX", "IRANSans", "Vazirmatn", "Tahoma", sans-serif;
  font-size: 17px;
  line-height: 1.9;
  color: var(--shkrn-var-color-light-dark-opacity-text, #374151);
}

/* Make media responsive inside content */
.entry-content img,
.entry-content video,
.entry-content iframe,
.elementor .elementor-widget-text-editor img,
.elementor .elementor-widget-text-editor video,
.elementor .elementor-widget-text-editor iframe {
  max-width: 100%;
  height: auto;
  display: block;
}

/* ---------- Headings ---------- */
.entry-content h1, .elementor .elementor-widget-text-editor h1 {font-size: 28px; font-weight: 700; margin: 1.2em 0 .6em;}
.entry-content h2, .elementor .elementor-widget-text-editor h2 {font-size: 24px; font-weight: 700; margin: 1.2em 0 .6em;}
.entry-content h3, .elementor .elementor-widget-text-editor h3 {font-size: 21px; font-weight: 600; margin: 1em 0 .5em;}
.entry-content h4, .elementor .elementor-widget-text-editor h4,
.entry-content h5, .elementor .elementor-widget-text-editor h5,
.entry-content h6, .elementor .elementor-widget-text-editor h6 {font-size: 18px; font-weight: 600; margin: 1em 0 .5em;}

/* ---------- Paragraph ---------- */
.entry-content p, .elementor .elementor-widget-text-editor p {margin: 0 0 1em;}

/* ---------- Lists (restore bullets & numbers) ---------- */
.entry-content ul, .elementor .elementor-widget-text-editor ul {
  list-style: disc;
  margin: 0 0 1em;
  padding-inline-start: 1.5em; /* supports RTL/LTR */
}
.entry-content ol, .elementor .elementor-widget-text-editor ol {
  list-style: decimal;
  margin: 0 0 1em;
  padding-inline-start: 1.5em;
}
.entry-content li, .elementor .elementor-widget-text-editor li { margin-bottom: .4em; }
.entry-content ul ul, .elementor .elementor-widget-text-editor ul ul,
.entry-content ol ol, .elementor .elementor-widget-text-editor ol ol {
  margin-top: .4em;
}

/* ---------- Links ---------- */
.entry-content a, .elementor .elementor-widget-text-editor a {
  color: var(--shkrn-var-main-color, #0284c7);
  text-decoration: none;
}
.entry-content a:hover, .elementor .elementor-widget-text-editor a:hover { text-decoration: underline; }
body.dark-mode-shkrn .entry-content a,
body.dark-mode-shkrn .elementor .elementor-widget-text-editor a { color: #7dd3fc; }

/* ---------- Tables ---------- */
.entry-content table, .elementor .elementor-widget-text-editor table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5em 0;
  font-size: 16px;
}
.entry-content table th,
.entry-content table td,
.elementor .elementor-widget-text-editor table th,
.elementor .elementor-widget-text-editor table td {
  border: 1px solid #e5e7eb;
  padding: 10px 14px;
  text-align: start;
}
body.dark-mode-shkrn .entry-content table th,
body.dark-mode-shkrn .entry-content table td,
body.dark-mode-shkrn .elementor .elementor-widget-text-editor table th,
body.dark-mode-shkrn .elementor .elementor-widget-text-editor table td {
  border-color: #444;
}
.entry-content table thead th,
.elementor .elementor-widget-text-editor table thead th {
  background: var(--shkrn-var-color-light-dark-opacity-bg, #f8fafc);
  font-weight: 700;
}

/* ---------- Blockquote ---------- */
.entry-content blockquote, .elementor .elementor-widget-text-editor blockquote {
  margin: 1.5em 0;
  padding: 1em 1.2em;
  border-right: 4px solid var(--shkrn-var-main-color, #0284c7);
  background: var(--shkrn-var-color-light-dark-opacity-bg, #f8fafc);
  color: inherit;
  border-radius: 8px;
  font-style: italic;
}
html[dir="ltr"] .entry-content blockquote,
html[dir="ltr"] .elementor .elementor-widget-text-editor blockquote {
  border-left: 4px solid var(--shkrn-var-main-color, #0284c7);
  border-right: 0;
}

/* ---------- Horizontal rule ---------- */
.entry-content hr, .elementor .elementor-widget-text-editor hr {
  border: 0;
  border-top: 2px solid #e5e7eb;
  margin: 2em 0;
}
body.dark-mode-shkrn .entry-content hr,
body.dark-mode-shkrn .elementor .elementor-widget-text-editor hr { border-top-color: #444; }

/* ---------- Code & Pre ---------- */
.entry-content code, .elementor .elementor-widget-text-editor code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
  background: rgba(0,0,0,.06);
  padding: .15em .35em;
  border-radius: 6px;
}
body.dark-mode-shkrn .entry-content code,
body.dark-mode-shkrn .elementor .elementor-widget-text-editor code { background: rgba(255,255,255,.08); }

.entry-content pre, .elementor .elementor-widget-text-editor pre {
  background: #0b1220;
  color: #e2e8f0;
  padding: 16px;
  border-radius: 10px;
  overflow: auto;
  direction: ltr;
  text-align: left;
}

/* ---------- Images & captions ---------- */
.entry-content figure, .elementor .elementor-widget-text-editor figure { margin: 1.2em 0; }
.entry-content figcaption, .elementor .elementor-widget-text-editor figcaption {
  font-size: .9em;
  opacity: .8;
  margin-top: .4em;
}

/* ---------- Alignments ---------- */
.entry-content .alignleft, .elementor .elementor-widget-text-editor .alignleft { float: left; margin: .4em 1em .8em 0; }
.entry-content .alignright, .elementor .elementor-widget-text-editor .alignright { float: right; margin: .4em 0 .8em 1em; }
.entry-content .aligncenter, .elementor .elementor-widget-text-editor .aligncenter { display: block; margin-inline: auto; }

/* Clear floats */
.entry-content::after, .elementor .elementor-widget-text-editor::after { content: ""; display: table; clear: both; }

/* نمایش درست لیست‌ها در دانلود تکی */
.single-dl_item .entry-content ul {
  list-style: disc;
  margin: 0 0 1em 1.5em;
  padding: 0;
}
.single-dl_item .entry-content ol {
  list-style: decimal;
  margin: 0 0 1em 1.5em;
  padding: 0;
}
.single-dl_item .entry-content li {
  margin-bottom: .4em;
}
