table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 15px;
  margin-bottom: 20px;
  font-size: 0.95em;
  font-family: sans-serif; /* خط افتراضي */
}

th, td {
  border: 1px solid #ddd;
  padding: 3px;
  text-align: center;
  vertical-align: middle;
}

/* تطبيق clamp على جميع خلايا الجدول */
td {
  font-size: clamp(0.5rem, 4vw, 1.1rem);
/*white-space: nowrap;
  overflow: hidden;*/
}

/* تطبيق clamp على رؤوس الجدول */
th {
  font-size: clamp(0.5rem, 4vw, 1.1rem); /* قيم قابلة للتعديل */
  background-color: #f2f2f2; /* لون خلفية مميز للرؤوس */
}

/* مثال على تنسيق إضافي: لون خلفية للصفوف الزوجية */
tr:nth-child(even) {
 /* background-color: #f9f9f9;*/
  background-color: #CCCCCC;
}
tbody tr:nth-child(odd) td {
  background-color: #f8f9fa;
}
/* تغيير لون خلفية الصف للسطر */
tr:hover {
  background-color: #00ffff; 
}

/* تطبيق clamp على جميع خلايا الجدول */
p {
  font-size: clamp(0.5rem, 4vw, 1.3rem);
}

ol, ul {
  font-size: clamp(0.5rem, 4vw, 1.7rem);
/*white-space: nowrap;
  overflow: hidden;*/
}
.context-info {
  margin-top: 20px;
  margin-bottom: 20px;
  padding: 15px;
  background-color: #eef2f7;
  border-left: 4px solid #0056b3;
  color: #333;
  font-size: 0.95em;
}
 /* Font Definitions */
 @font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 2 4;}
 /* Style Definitions */
 p.MsoNormal, li.MsoNormal, div.MsoNormal
	{margin-top:0cm;
	margin-right:0cm;
	margin-bottom:8.0pt;
	margin-left:0cm;
	text-align:right;
	line-height:107%;
	direction:rtl;
	unicode-bidi:embed;
	/*font-size:11.0pt;*/
	font-family:"Calibri",sans-serif;}
span.1
	{mso-style-name:"כותרת 1 תו";
	mso-style-link:"כותרת 1";
	font-family:"Calibri Light",sans-serif;
	color:#2F5496;}
span.2
	{mso-style-name:"כותרת 2 תו";
	mso-style-link:"כותרת 2";
	font-family:"Calibri Light",sans-serif;
	color:#2F5496;}
span.3
	{mso-style-name:"כותרת 3 תו";
	mso-style-link:"כותרת 3";
	font-family:"Calibri Light",sans-serif;
	color:#1F3763;}
a:link, span.MsoHyperlink
	{color:#0563C1;
	text-decoration:underline;}
.MsoChpDefault
	{font-family:"Calibri",sans-serif;}
.MsoPapDefault
	{margin-bottom:8.0pt;
	line-height:107%;}
@page WordSection1
	{size:595.3pt 841.9pt;
	margin:72.0pt 90.0pt 72.0pt 90.0pt;}
div.WordSection1
	{page:WordSection1;}
  
body {
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 3px;
  user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  -khtml-user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

li {
  font-size: 0.8em; /* يمكنك تعديل هذه القيمة لتصغير أو تكبير الخط حسب الحاجة */
}

.container {
  background-color: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
  max-width: 800px; /* Added for better readability on wider screens */
  margin-left: auto;  /* Center the container */
  margin-right: auto; /* Center the container */
}
.question-section {
  margin-bottom: 20px;
  padding-bottom: 15px;
  border-bottom: 1px solid #eee; /* Separator between main questions */
}
.question-section:last-child {
    border-bottom: none; /* No border for the last question */
}
.question-letter, .question-number, .question-roman-numeral {
  font-weight: bold;
  color: #0056b3;
  font-size: 1.1em;
  margin-left: 8px;
  display: inline-block;
}

.chemical-formula {
  font-family: "Times New Roman", Times, serif;
  direction: ltr;
   color: #d63384;  /* Optional: distinct color for formulas */
}
.equation {
  direction: ltr;
  text-align: center; /* Equations typically aligned left within their LTR block */
  padding: 10px;
  margin: 10px 0; /* Reduced margin from 15px */
  background-color: #eef;
  border: 1px solid #ccd;
  border-radius: 4px;
  font-family: "Times New Roman", Times, serif;
  font-size: 1.1em;
  overflow-x: auto; /* For very long equations on small screens */
}
p {
  margin-bottom: 10px; /* Spacing between paragraphs within a question */
}
.sub-heading {
    font-weight: bold;
    color: #555; /* Slightly lighter than question letters for distinction */
    margin-top: 15px;
    margin-bottom: 5px;
}

img {  /* صورة */
  max-width: 100%;
  height: auto;
}

section {
  max-width: 880px;
  margin: 0 auto;
}

@media (max-width: 880px) {
  section {
      padding: 3px;
  }
}

pre, code {
user-select: text;
-moz-user-select: text;
-ms-user-select: text;
-khtml-user-select: text;
-webkit-user-select: text;
-webkit-touch-callout: text;
}

button {
padding: 10px 20px;
font-size: 16px;
cursor: pointer;
}

.chemical-formula, .temperature-value { /* Added .temperature-value for clarity, though it uses same style */
  font-family: "Times New Roman", Times, serif;
  direction: ltr; /* Ensures LTR rendering for formulas and temperature values */
  display: inline-block;
  background-color: #f0f8ff;
  padding: 1px 4px;
  border-radius: 3px;
}

.chemical-equation { 
  font-family: "Consolas", "Courier New", Courier, monospace;
  direction: ltr; 
  display: block; 
  padding: 8px;
  margin: 10px 0;
  background-color: #eef2f7; 
  border: 1px solid #d0d7de;
  border-radius: 4px;
  font-size: 1em; 
  text-align: center; 
  overflow-x: auto; 
  color: #d63384;
}

strong { 
  font-weight: bold;
  color: #333;
}
.ltr-inline { 
    font-family: "Consolas", "Courier New", Courier, monospace;
    direction: ltr;
    display: inline-block;
    padding: 1px 3px;
    background-color: #eef2f7;
    border: 1px solid #d0d7de;
    border-radius: 3px;
    font-size: 0.95em;
    color: #d63384;
}
.rtl-inline { 
    font-family: "Consolas", "Courier New", Courier, monospace;
    direction: rtl;
    display: inline-block;
    padding: 1px 3px;
    background-color: #eef2f7;
    border: 1px solid #d0d7de;
    border-radius: 3px;
    font-size: 0.95em;
    color: #d63384;
}
.calculation-line { 
  padding: 2px 0;
  margin: 2px 0;
}

.container {
  max-width: 800px;
  margin: auto;
  background: #fff;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 0 10px rgba(0,0,0,0.1);
}
h1 {
  color: #0056b3;
  text-align: center;
  border-bottom: 2px solid #0056b3;
  padding-bottom: 10px;
  margin-bottom: 25px;
}
h2 { /* عنوان نص السؤال */
  color: #444;
  margin-top: 30px;
}
h3 { /* عناوين الأجزاء أ, ب, ج ... */
  color: #0056b3; /* لون أزرق مميز */
  border-bottom: 1px solid #eee;
  padding-bottom: 5px;
  margin-top: 25px;
}
.problem-statement, .question-part { /* مقدمة للسؤال */
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  border-left: 4px solid #0056b3;
  border-right: 4px solid #0056b3;
}
.question-part p, .problem-statement p {
  margin-bottom: 10px;
}
.answer-part { /* جزء الإجابة */
  direction: rtl; 
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  border-left: 4px solid #0056b3;
  border-right: 4px solid #0056b3;
}
.answer-part-ltr { /* جزء الإجابة للغة الانجليزية */
  direction: ltr; /* لضمان عرض الصيغ الإنجليزية بشكل صحيح LTR */
  text-align: center;
  margin-bottom: 20px;
  padding: 15px;
  border: 1px solid #ddd;
  border-radius: 5px;
  background-color: #f9f9f9;
  border-left: 4px solid #0056b3;
  border-right: 4px solid #0056b3;
}
.given-data ul {
  list-style-type: disc; 
  padding-right: 20px; 
}
strong { 
  font-weight: bold;
  color: #333;
}
.formula { 
    font-family: "Courier New", Courier, monospace;
    direction: ltr; /* لضمان عرض الصيغ الإنجليزية بشكل صحيح LTR */
    display: inline-block; 
    padding: 1px 4px;
    background-color: #eef2f7; 
    border: 1px solid #d0d7de;
    border-radius: 3px;
    font-size: 0.95em;
    color: #d63384; 
}
.calculation { 
    padding: 5px;
    margin: 5px 0;
    /* direction: ltr; /* العمليات الحسابية البسيطة قد لا تحتاج هذا دائمًا إذا كانت أرقامًا فقط */
    /* text-align: right; /* أو left إذا كنت تفضل في سياق ltr */
}
