*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font-fa);
  font-size: 16px;
  line-height: 1.75;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

h1, h2, h3, h4 {
  font-weight: 900;
  line-height: 1.35;
  margin: 0 0 0.5em;
  color: var(--secondary);
}
h1 { font-size: clamp(1.75rem, 4vw, 3rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2.25rem); }
h3 { font-size: clamp(1.1rem, 2vw, 1.35rem); }

p { margin: 0 0 1em; }

a { color: var(--primary); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--primary-dark); }

img { max-width: 100%; height: auto; display: block; }

button { font-family: inherit; cursor: pointer; }

.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--space-5); }

.section { padding: var(--space-9) 0; }
.section-alt { background: var(--bg-soft); }

.section-head { text-align: center; margin-bottom: var(--space-8); }
.section-head h2 { margin-bottom: var(--space-3); }
.section-head p { color: var(--text-muted); max-width: 640px; margin: 0 auto; }

.kicker {
  display: inline-block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-light);
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}
.kicker-light { background: rgba(255,255,255,.22); color: #fff; }

.prose { max-width: 800px; margin: 0 auto; font-size: 1.05rem; line-height: 2; }

::selection { background: var(--primary); color: #fff; }

/* Scrollbar subtle green */
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-track { background: var(--bg-soft); }
::-webkit-scrollbar-thumb { background: var(--primary-light); border-radius: 5px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary); }

/* ==========================================================
   Global RTL Text Alignment Fix
   ========================================================== */
html, body {
  direction: rtl;
  text-align: right;
}

p, li, td, th, dd, dt, blockquote, label, span:not(.logo-icon):not(.mi-icon), div, h1, h2, h3, h4, h5, h6 {
  text-align: inherit;
}

/* Article / Post body - justify for readability */
.article-body,
.article-content,
.post-body,
.post-content,
.blog-content,
.blog-single-content,
.service-main-content,
.service-content-body,
.wysiwyg-editor,
.page-content,
.page-hero-desc,
.city-lead {
  text-align: justify;
  text-justify: inter-word;
  line-height: 2;
  word-spacing: -0.5px;
}

/* Headings remain right-aligned (not justified) */
.article-content h1, .article-content h2, .article-content h3,
.post-content h1, .post-content h2, .post-content h3,
.blog-content h1, .blog-content h2, .blog-content h3,
.service-main-content h1, .service-main-content h2, .service-main-content h3 {
  text-align: right;
}

/* Lists stay right */
.article-content ul, .article-content ol,
.post-content ul, .post-content ol,
.blog-content ul, .blog-content ol,
.service-main-content ul, .service-main-content ol {
  padding-right: 26px;
  padding-left: 0;
  text-align: right;
}

.article-content li, .post-content li, .blog-content li, .service-main-content li {
  text-align: justify;
}