/* ========================================================
   ۱. متغیرهای رنگی بر اساس پالت اختصاصی (Light & Dark)
   Brand Accent: #00967D
======================================================== */
:root {
  --slp-tbl-bg: #ffffff;
  --slp-tbl-text: #303030;
  --slp-tbl-border: #e6e6e6;
  --slp-tbl-head-bg: #00967D;
  --slp-tbl-head-text: #ffffff;
  --slp-tbl-row-alt: #f8faf9;
  --slp-tbl-hover: #eaf5f3;
  --slp-tbl-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

[data-theme="dark"] {
  --slp-tbl-bg: #2b2b2b;
  --slp-tbl-text: #ffffff;
  --slp-tbl-border: #303030;
  --slp-tbl-head-bg: #00967D;
  --slp-tbl-head-text: #ffffff;
  --slp-tbl-row-alt: #121212;
  --slp-tbl-hover: #1e2624;
  --slp-tbl-shadow: 0 4px 14px rgba(0, 0, 0, 0.5);
}

/* ========================================================
   ۲. ریسپانسیو کردن و جلوگیری از بیرون‌زدگی
======================================================== */
.slp-section-box table {

  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
    min-width: 600px; /* حداقل عرض برای خوانا ماندن در موبایل بدون له‌شدن سلول‌ها */
  border-collapse: collapse; /* جلوگیری از ایجاد درز و فاصله‌های گوشه */
  
  border-collapse: separate;
  border-spacing: 0;
  background-color: var(--slp-tbl-bg);
  border: 1px solid var(--slp-tbl-border);
  border-radius: 8px;
  box-shadow: var(--slp-tbl-shadow);
  margin: 18px 0;
  color: var(--slp-tbl-text);
  font-size: 0.95rem;
  direction: rtl;
  overflow: hidden;
}

/* اسکرول بار ظریف و سازگار با تم */
.slp-section-box table::-webkit-scrollbar {
  height: 6px;
}
.slp-section-box table::-webkit-scrollbar-track {
  background: var(--slp-tbl-bg);
  border-radius: 0 0 8px 8px;
}
.slp-section-box table::-webkit-scrollbar-thumb {
  background: #00967D;
  border-radius: 4px;
}

/* ========================================================
   ۳. سربرگ جدول (کاملاً توچشم با رنگ 00967D و وسط‌چین)
======================================================== */
.slp-section-box table th {
  background-color: var(--slp-tbl-head-bg);
  color: var(--slp-tbl-head-text);
  font-weight: 700;
  padding: 14px 16px;
  text-align: center; /* وسط‌چین شدن هد جدول */
  white-space: nowrap;
  border-bottom: 2px solid #007a65;
  border-left: 1px solid rgba(255, 255, 255, 0.15);
}

.slp-section-box table th:last-child {
  border-left: none;
}

/* ========================================================
   ۴. سلول‌های بدنه (Justify و خوانایی بالا)
======================================================== */
.slp-section-box table td {
  padding: 13px 18px;
  border-bottom: 1px solid var(--slp-tbl-border);
  border-left: 1px solid var(--slp-tbl-border);
  vertical-align: middle;
  text-align: justify; /* جاستیفای شدن متن داخل سلول‌ها */
  line-height: 1.7;
  transition: background-color 0.15s ease;
}

.slp-section-box table td:last-child {
  border-left: none;
}

.slp-section-box table tr:last-child td {
  border-bottom: none;
}

/* ردیف‌های یک‌درمیان برای خوانایی بهتر */
.slp-section-box table tbody tr:nth-child(even),
.slp-section-box table tr:nth-child(even) {
  background-color: var(--slp-tbl-row-alt);
}

/* افکت هاور با تم مایل به سبز تیره/روشن */
.slp-section-box table tbody tr:hover,
.slp-section-box table tr:hover {
  background-color: var(--slp-tbl-hover);
}

/* تنظیم گردی گوشه‌های بالا با هدر */
.slp-section-box table th:first-child {
  border-top-right-radius: 7px;
}
.slp-section-box table th:last-child {
  border-top-left-radius: 7px;
}

/* ========================================================
   ۵. ریسپانسیو در موبایل
======================================================== */
.table-container {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

h1,h2{
    font-weight:900;
}
h3{
   font-weight:700; 
}



/*متن ها*/
/* ===================================================
   تعریف متغیرهای رنگی برای لایت و دارک
   =================================================== */
:root {
  /* حالت لایت */
  --cb-text-body: #303030;
  --cb-h2-color: #00967D;
  --cb-h3-color: #1a1a1a;
  --cb-h4-color: #555555;
  --cb-strong-color: #000000;
  --cb-primary: #00967D;
  --cb-primary-light: rgba(0, 150, 125, 0.15);
}

body.dark,
[data-theme='dark'] {
  /* حالت دارک */
  --cb-text-body: #F5F5F5;
  --cb-h2-color: #00967D;
  --cb-h3-color: #FCFCFC;
  --cb-h4-color: #BDBDBD;
  --cb-strong-color: #FFFFFF;
  --cb-primary: #00967D;
  --cb-primary-light: rgba(0, 150, 125, 0.25);
}

/* ===================================================
   استایل‌های بخش مقاله (.contentBlog)
   =================================================== */


/* --- پاراگراف‌ها --- */
.slp-section-box p {
  margin-top: 0;
  margin-bottom: 1.4rem;
}

/* --- هدینگ اصلی (H2): همراه با خط کناری و رنگ اصلی --- */
.slp-section-box h2 {
  font-size: 1.35rem; /* ظریف‌تر و متناسب */
  font-weight: 700;
  color: var(--cb-h2-color);
  margin-top: 2.5rem;
  margin-bottom: 1rem;
  padding-right: 12px;
  border-right: 4px solid var(--cb-primary);
  line-height: 1.6;
}

/* --- زیرمجموعه اول (H3): بدون خط و با رنگ متفاوت --- */
.slp-section-box h3 {
  font-size: 1.18rem;
  font-weight: 600;
  color:#6EA99F;
  margin-top: 1.8rem;
  margin-bottom: 0.2rem;
  border-right: none;
  padding-right: 0;
  line-height: 1.6;
}

/* --- زیرمجموعه دوم (H4): بدون خط با رنگ ملایم‌تر --- */
.slp-section-box h4 {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--cb-h4-color);
  margin-top: 1.4rem;
  margin-bottom: 0.6rem;
  border-right: none;
  padding-right: 0;
  line-height: 1.5;
}

/* --- متن‌های ضخیم: فقط بولد ساده و خوانا --- */
.slp-section-box strong,
.slp-section-box b {
  font-weight: 700;
  color: var(--cb-strong-color);
  background: none;
  border: none;
  padding: 0;
}

/* --- لیست‌های نامرتب (UL و LI) --- */
.slp-section-box ul {
  list-style: none;
  padding-right: 10px;
  margin: 1.2rem 0;
}

.slp-section-box ul li {
  position: relative;
  padding-right: 24px;
  margin-bottom: 0.7rem;
  line-height: 1.8;
}

/* بولت‌های دایره‌ای با رنگ تم */
.slp-section-box ul li::before {
  content: "";
  position: absolute;
  right: 6px;
  top: 11px;
  width: 6px;
  height: 6px;
  background-color: var(--cb-primary);
  border-radius: 50%;
  box-shadow: 0 0 0 3px var(--cb-primary-light);
}

/* لیست‌های تودرتو */
.slp-section-box ul ul {
  margin: 0.4rem 0;
  padding-right: 10px;
}


