/* استدعاء الخطوط */
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Markazi+Text:wght@400;600&display=swap');
@import url('https://fonts.googleapis.com/css2?family=Alegreya+Sans+SC:wght@400&display=swap');
/* ====== RESET ====== */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html, body {
  direction: rtl; /* مهم للـ RTL */
  text-align: right;
  font-family: "Cairo", Tahoma, Arial, sans-serif;
  background-color: #f8f9fa; /* لون خلفية خفيف */
  min-height: 100%;
  overflow-x: hidden; /* منع الفراغات الجانبية */
}

/* ====== HEADER ====== */
header {
  background-color: #004085;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

header h1 {
  font-size: 25px !important;
  margin: 0;
}


nav ul {
  list-style: none;
  display: flex;
  flex-direction: row-reverse; /* يضمن RTL بالمنيو */
}


nav ul li a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
}

nav ul li a:hover {
  color: #ffd700;
}

/* ====== CONTENT ====== */
main {
  padding: 10px;
}

/* ====== FOOTER ====== */
footer {
  background-color: #004085;
  color: #fff;
  text-align: center;
  padding: 10px;
  margin-top: 10px;
}

.pkp_site_name a.is_text {
    font-size: 24px !important;  /* حجم الخط */
    font-weight: bold; /* سماكة الخط (اختياري) */
    text-decoration: none; /* إزالة الخط السفلي */
font-family: 'Cairo', sans-serif;
  color: #ffffff;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.csl-entry {
    font-size: 16px;   /* حجم الخط */
    text-decoration: none; /* إزالة الخط السفلي */
font-family: 'Cairo', sans-serif;
}
/* ------------------------
   قواعد للعربية
------------------------- */
html[lang="ar"] body {
  line-height: 1.9 !important;
}

/* النصوص بالعربي */
html[lang="ar"] body, 
html[lang="ar"] span {
  font-family: 'Markazi Text', serif; !important;
  font-size: 22px !important;
  direction: rtl;
  text-align: justify;
line-height: 1.8 !important;
}
html[lang="ar"] p {
  font-family: 'Markazi Text', serif; !important;
  font-size: 22px !important;
  direction: rtl;
  text-align: justify;
line-height: 1.8 !important;
}
/* تكبير الخط لقسم المؤلفين */
.authors {
    font-family: 'Markazi Text', serif !important; /* نفس خط النصوص */
    font-size: 18px !important; /* حجم أكبر، عدّل حسب الحاجة */
    line-height: 1.6 !important; /* المسافة بين الأسطر */
    direction: rtl; /* إذا اللغة عربية */
    text-align: right; /* محاذاة صحيحة */
}
html[lang="en"] .authors {
    font-family: 'Markazi Text', serif !important;
    font-size: 22px !important;
    line-height: 1.7 !important;
    direction: ltr;
    text-align: left;
}
/* العناوين بالعربي */
html[lang="ar"] h1,
html[lang="ar"] h2,
html[lang="ar"] h3,
html[lang="ar"] h4,
html[lang="ar"] h5,
html[lang="ar"] h6,
html[lang="ar"] a, 
html[lang="ar"] li {
  font-family: "Cairo", sans-serif !important;
  font-size: 18px ;
font-weight: bold !important;
  direction: rtl;
  text-align: right;
line-height: 1.9 !important;
}
/* ------------------------
   قواعد للإنكليزية
------------------------- */
html[lang="en"] body {
    direction: ltr;
  text-align: left;
}

/* النصوص + العناوين بالإنكليزي */
html[lang="en"] body,
html[lang="en"] p,
html[lang="en"] span {
line-height: 1.7 !important;
font-family: "Alegreya Sans SC", sans-serif !important;
  font-size: 22px !important;
text-align: justify;
}

html[lang="en"] li {
 font-family: "Alegreya Sans SC", sans-serif !important;
  font-size: 19px !important;
font-weight: bold !important;
line-height: 1.5 !important;
}
html[lang="en"] a,
html[lang="en"] h1,
html[lang="en"] h2,
html[lang="en"] h3,
html[lang="en"] h4,
html[lang="en"] h5,
html[lang="en"] h6 {
  font-family: "Alegreya Sans SC", sans-serif !important;
  font-size: 22px !important;
font-weight: bold !important;
line-height: 1.7 !important;
}
