/* General Body and Layout Styles */
body {
  font-family: 'Inter', 'Noto Naskh Arabic', sans-serif;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Inter', 'Noto Naskh Arabic', sans-serif;
}

/* --- LTR/RTL Specific Adjustments --- */
html[dir="ltr"] .markdown-content,
html[dir="ltr"] .markdown-content p {
  text-align: left;
}

html[dir="ltr"] .markdown-content ul > li::before {
  content: '\f105'; /* Font Awesome Chevron Right */
  padding-right: 0;
  padding-left: 10px;
}

html[dir="ltr"] .markdown-content ol > li::before {
  inset-inline-start: auto;
  inset-inline-start: 0;
}

html[dir="ltr"] .markdown-content li {
  padding-inline-end: 2rem;
}

html[dir="ltr"] .markdown-content blockquote {
  border-inline-start: 0;
  border-inline-start: 5px solid #14b8a6; /* teal-500 */
}

html.dark[dir="ltr"] .markdown-content blockquote {
  border-inline-end-color: #2dd4bf; /* teal-400 */
}

html[dir="ltr"] .markdown-content table {
  direction: ltr;
}

html[dir="ltr"] .markdown-content th,
html[dir="ltr"] .markdown-content td {
  text-align: left !important;
}

html[dir="ltr"] .markdown-content td:first-child {
  border-inline-end: 0;
  border-inline-start: 1px solid #e5e7eb;
}

html.dark[dir="ltr"] .markdown-content td:first-child {
  border-inline-start-color: #4b5563;
}

/* Utility Classes */
.line-clamp-3 {
  overflow: hidden;
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}