/* التصميم العام */
body {
  background: linear-gradient(to bottom, #6047a1, #1976d2);
  color: #fff;
  font-family: "Cairo", sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
}

/* الرأس */
header {
  display: flex;
  justify-content: center; /* يخلي النص في النص أفقيًا */
  align-items: center; /* يخليه في النص رأسيًا */
  background-color: #e63946; /* اللون الأحمر */
  height: 60px; /* ممكن تزوده أو تقلله حسب شكل الشريط */
}

header h1 {
  margin: 0;
  font-size: 2em;
  color: #fff;
  font-weight: bold;
  text-align: center;
}

/* الحاوية الرئيسية */
.levels {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 30px;
  margin: 30px auto;
  max-width: 960px;
}

/* الكروت */
.card {
  background-color: rgba(255, 255, 255, 0.1);
  border: 2px solid #fbc02d;
  border-radius: 15px;
  padding: 25px;
  width: 250px;
  box-shadow: 0 0 10px rgba(0, 0, 0, 0.3);
  transition: 0.3s ease;
}

.card:hover {
  transform: scale(1.05);
  box-shadow: 0 0 20px rgba(251, 192, 45, 0.6);
}

.card h2 {
  color: #fbc02d;
  font-size: 20px;
  margin-bottom: 18px;
}

/* روابط الصفوف */
ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul li {
  margin: 10px 0;
}

ul li a {
  display: inline-block;
  width: 100%;
  text-align: center;
  text-decoration: none;
  color: #fff;
  background-color: #f57c00;
  padding: 10px;
  border-radius: 10px;
  font-size: 16px;
  transition: 0.3s ease;
}

ul li a:hover {
  background-color: #f98b00;
  transform: scale(1.05);
}
/* الشريط الجانبي */
.sidebar {
  position: fixed;
  top: 80px;
  right: 0;
  width: 220px;
  background-color: rgba(0, 0, 0, 0.3);
  border-left: 3px solid #fbc02d;
  padding: 20px 10px;
  height: 80%;
  border-radius: 10px 0 0 10px;
  color: #fff;
  text-align: right;
  z-index: 999;
}

.sidebar h3 {
  font-size: 20px;
  color: #fbc02d;
  text-align: center;
  margin-bottom: 15px;
}

.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.sidebar ul li {
  margin: 10px 0;
}

.sidebar ul li a {
  .sidebar ul li a {
  display: block;
  background: #f57c00;
  color: #fff;
  text-decoration: none;
  padding: 12px;
  border-radius: 10px;
  transition: 0.3s ease;
  text-align: center;
  font-weight: bold;
  width: 200px;
  margin: 0 auto;
}

.sidebar ul li a:hover {
  background: #ffb300;
  transform: scale(1.05);
}
}

.sidebar ul li a:hover {
  background: #fbc02d;
  color: #000;
  transform: scale(1.05);
}
.section-container {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
  margin-top: 20px;
}

.section {
  background-color: #0a2950; /* أزرق غامق */
  border-radius: 12px;
  padding: 10px 20px;
  width: 180px;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  color: #FFD700; /* دهبي */
  font-weight: bold;
  font-size: 16px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
  transition: transform 0.2s ease, box-shadow 0.3s ease;
  cursor: pointer;
}

.section:hover {
  transform: scale(1.05);
  box-shadow: 0 0 15px rgba(255,215,0,0.7);
}
/* الشريط الجانبي (الإعدادية) */
.sidebar {
  background: linear-gradient(180deg, #0a1a3a, #102a55);
  color: #fff;
  width: 260px;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  text-align: right;
  font-family: "Cairo", sans-serif;
}

/* العنوان */
.sidebar h3 {
  color: #ffcc33;
  font-size: 22px;
  font-weight: 700;
  margin-bottom: 15px;
  text-align: center;
  letter-spacing: 1px;
}

/* القائمة */
.sidebar ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

/* الروابط */
.sidebar ul li {
  margin: 10px 0;
}

.sidebar ul li a {
  display: block;
  text-decoration: none;
  color: #fff;
  background-color: #1c3666;
  padding: 12px 15px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 16px;
  transition: all 0.3s ease;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.2);
}

/* تأثير عند التمرير */
.sidebar ul li a:hover {
  background-color: #ffcc33;
  color: #0a1a3a;
  transform: translateY(-3px);
  box-shadow: 0 6px 12px rgba(255, 204, 51, 0.5);
}
/* الكروت الخاصة بالمراحل */
.card {
  background: linear-gradient(145deg, #002b5c, #003b7a);
  border: 2px solid #ffcc33;
  border-radius: 20px;
  padding: 25px;
  width: 270px;
  margin: 15px;
  box-shadow: 0 0 15px rgba(0, 0, 0, 0.3);
  transition: 0.3s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 0 25px rgba(255, 204, 51, 0.6);
}

/* عنوان المرحلة */
.card h2 {
  font-family: 'Cairo', sans-serif;
  font-weight: 800;
  font-size: 22px;
  color: #ffcc33;
  text-align: center;
  margin-bottom: 15px;
  text-shadow: 0 0 8px rgba(0, 0, 0, 0.3);
}

/* روابط الصفوف */
.card ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.card ul li {
  margin: 10px 0;
}

.card ul li a {
  display: block;
  background: #f57c00;
  color: #fff;
  font-family: 'Cairo', sans-serif;
  font-weight: 600;
  font-size: 17px;
  padding: 10px;
  border-radius: 10px;
  text-decoration: none;
  text-align: center;
  transition: 0.3s ease;
}

.card ul li a:hover {
  background: #ff9800;
  transform: scale(1.05);
}
/* تصميم الوحدات والدروس */
.unit {
  background-color: #f9f9f9;
  border: 2px solid #e0b84d;
  border-radius: 15px;
  margin: 20px 0;
  padding: 15px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

.unit-title {
  color: #b58900;
  font-size: 22px;
  text-align: right;
  margin-bottom: 10px;
  border-right: 5px solid #e0b84d;
  padding-right: 10px;
}

.lesson {
  background-color: #fff;
  margin: 10px 0;
  border-radius: 10px;
  padding: 10px;
  transition: 0.3s;
  cursor: pointer;
  border: 1px solid #e0b84d;
}

.lesson:hover {
  background-color: #fff7e0;
}

.lesson h3 {
  display: flex;
  flex-direction: column;       /* يخلي النصوص تحت بعض */
  justify-content: center;      /* توسيط رأسي */
  align-items: center;          /* توسيط أفقي */
  text-align: center;           /* توسيط النص نفسه */
  font-size: 1.8em;             /* حجم الخط */
  font-family: "Cairo", sans-serif;
  font-weight: 700;
  color: #FFD700;               /* لون ذهبي */
  line-height: 1.8;             /* مسافة بين السطور */
  margin: 10px 0;
  transition: all 0.3s ease;
}

.lesson h3:hover {
  color: #ffb833;               /* لمعة بسيطة عند المرور بالماوس */
  transform: scale(1.05);       /* تكبير خفيف */
}
.content {
  display: none;
  margin-top: 10px;
  padding: 10px;
  border-top: 1px solid #e0b84d;
}

.content a {
  display: inline-block;
  margin: 5px;
  text-decoration: none;
  color: #0066cc;
  font-weight: bold;
  transition: 0.2s;
}

.content a:hover {
  color: #b58900;
  text-decoration: underline;
}
.lesson {
  background-color: #fff;
  border: 2px solid gold;
  border-radius: 12px;
  padding: 12px;
  margin-top: 10px;
  box-sizing: border-box;
}

/* ده اللي بيخلي أول درس ياخد نفس المسافة زي باقي الدروس */
.unit .lesson:first-child {
  margin-top: 10px !important;
}
.unit-title {
  margin-bottom: 10px !important;
}
/* علشان كل الدروس تاخد نفس الشكل بالظبط */
.lesson {
  background-color: #fff;
  border: 2px solid #f0ad00;
  border-radius: 15px;
  padding: 12px;
  margin: 12px 0;
  box-sizing: border-box;
  width: 90%;
  transition: all 0.3s ease;
}

/* علشان الدرس الأول يكون نفس ارتفاع وبُعد باقي الدروس */
.unit > .lesson:first-of-type {
  margin-top: 12px !important;
  width: 90% !important;
}

/* علشان عنوان الوحدة ما يلزقش في أول درس */
.unit-title {
  margin-bottom: 15px !important;
}

/* توحيد المسافات بين العناصر */
.unit {
  margin-bottom: 25px !important;
}
.lesson {
  margin-top: 10px;
  padding: 10px;
}

.unit-title {
  margin-bottom: 10px;
}
/* تنسيقات خاصة بصفحة الصف الرابع الابتدائي */
.grade4-container {
  background: linear-gradient(135deg, #0a1930, #1e3a8a);
  color: white;
  padding: 20px;
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.4);
  margin: 20px auto;
  width: 90%;
  max-width: 1000px;
}

.grade4-container h2 {
  color: #facc15;
  text-align: center;
  margin-bottom: 15px;
  font-size: 26px;
  text-shadow: 0 0 8px #facc15;
}

.unit {
  background: rgba(255, 255, 255, 0.1);
  padding: 15px;
  margin-bottom: 20px;
  border-radius: 15px;
  transition: 0.3s ease;
}

.unit:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

.lesson {
  background: rgba(255, 255, 255, 0.15);
  margin: 10px 0;
  padding: 12px;
  border-radius: 10px;
  transition: 0.3s ease;
}

.lesson:hover {
  background: rgba(255, 215, 0, 0.2);
  box-shadow: 0 0 10px #facc15;
}

.lesson a {
  color: #fff;
  text-decoration: none;
  font-weight: bold;
}

.lesson a:hover {
  color: #facc15;
  text-shadow: 0 0 6px #facc15;
}
/* تنسيق خاص بصفحة الصف الرابع الابتدائي فقط */
.grade4-page {
  background: linear-gradient(180deg, #004e92, #000428);
  color: #fff;
  font-family: "Cairo", sans-serif;
  padding: 20px;
  text-align: right;
}

.grade4-page h2 {
  color: #ffcc00;
  text-align: center;
  font-size: 2em;
  margin-bottom: 30px;
}

.unit {
  background: rgba(255, 255, 255, 0.1);
  border: 2px solid #ffcc00;
  border-radius: 15px;
  padding: 15px;
  margin-bottom: 20px;
  transition: transform 0.3s, background 0.3s;
}

.unit:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.02);
}

.unit-title {
  color: #ffcc00;
  font-size: 1.4em;
  margin-bottom: 10px;
}

.lesson {
  background: rgba(0, 0, 0, 0.3);
  border: 1px solid #ffcc00;
  border-radius: 10px;
  padding: 10px;
  margin: 8px 0;
  transition: background 0.3s;
}

.lesson:hover {
  background: rgba(255, 255, 255, 0.1);
  cursor: pointer;
}
/* تنسيق خاص بدروس الصف الرابع */
.grade4-page .lesson {
  color: #FFD700; /* دهبي */
  font-weight: bold;
  font-size: 18px;
  transition: color 0.3s ease;
}

.grade4-page .lesson:hover {
  color: #fff8dc; /* تفتيح بسيط عند المرور */
}
/* تنسيق أسماء الدروس داخل الصف الرابع */
.grade4-page .lesson h3 {
  color: #FFD700; /* لون دهبي */
  font-weight: bold;
  font-size: 18px;
  letter-spacing: 0.5px;
  transition: color 0.3s ease;
}

.grade4-page .lesson h3:hover {
  color: #fff8dc; /* لون دهبي فاتح عند المرور */
  text-shadow: 0 0 5px rgba(255, 215, 0, 0.7);
}
.lesson h3 {
  font-size: 1.4rem; /* حجم الخط أكبر */
  color: #FFD700; /* دهبي واضح */
  font-family: "Amiri", "Cairo", sans-serif; /* خط أنيق */
  font-weight: 700; /* سميك */
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4); /* ظل خفيف لتوضيح النص */
  margin: 10px 0;
  cursor: pointer;
  transition: color 0.3s ease, transform 0.2s ease;
}

.lesson h3:hover {
  color: #fff6cc; /* درجة أفتح عند المرور */
  transform: scale(1.03); /* تكبير بسيط عند المرور */
}
/* توسيط عنوان الصف الرابع الابتدائي */
.page-title {
  text-align: center;
  color: #fff;
  font-size: 2em;
  margin-bottom: 20px;
}

/* تأثير اللمعان على أسماء الوحدات */
.unit-title h2 {
  color: #FFD700;
  transition: color 0.3s ease, transform 0.3s ease;
  cursor: pointer;
}

.unit-title h2:hover {
  color: #FFF4B0; /* دهبي أفتح عند المرور */
  transform: scale(1.05);
  text-shadow: 0 0 10px rgba(255, 215, 0, 0.7);
}
/* توسيط عنوان الصف الرابع الابتدائي داخل الـ header */
header h1 {
  text-align: center;
  margin: 0;
  padding: 15px 0;
  font-size: 2em;
  color: #fff;
  font-weight: bold;
}
/* 🔹 تنسيق العنوان العلوي */
header h1 {
  margin: 0;
  font-size: 2.5em; /* كبرنا الخط */
  color: #fff;
  font-weight: bold;
  text-align: center;
  transition: text-shadow 0.3s ease;
}

/* تأثير بسيط لما تمر الماوس على العنوان */
header h1:hover {
  text-shadow: 0 0 15px gold;
}

/* 🔹 تأثير التوهج الذهبي على الوحدات والدروس */
.lesson h3:hover,
.unit-title:hover {
  color: #FFD700; /* اللون الذهبي */
  text-shadow: 0 0 10px #FFD700, 0 0 20px #FFA500;
  transform: scale(1.05);
  transition: all 0.3s ease;
}
body {
  background-color: #004080;
  color: white;
  font-family: 'Cairo', sans-serif;
  margin: 0;
  padding: 0;
  text-align: center;
}

header {
  background-color: #e63946;
  display: flex;
  justify-content: center;
  align-items: center;
  height: 70px;
}

header h1 {
  font-size: 2.2em;
  color: #fff;
  margin: 0;
  font-weight: bold;
}

.container {
  padding: 20px;
}

h2 {
  color: #fff;
  font-size: 1.8em;
  margin-bottom: 25px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.4);
}

.unit {
  border: 2px solid gold;
  border-radius: 10px;
  padding: 15px;
  margin: 25px auto;
  width: 90%;
  max-width: 700px;
  background-color: #0059b3;
  box-shadow: 0 0 15px rgba(255,215,0,0.2);
}

.unit h3 {
  color: #FFD700;
  font-size: 1.6em;
  margin-bottom: 15px;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.5);
  transition: all 0.3s ease;
}

.unit h3:hover {
  color: #ffcc33;
  transform: scale(1.05);
  text-shadow: 0 0 10px #FFD700;
}

.lesson {
  color: #FFD700;
  font-size: 1.3em;
  background-color: rgba(0,0,0,0.2);
  margin: 10px auto;
  padding: 10px;
  border: 1px solid gold;
  border-radius: 8px;
  width: 90%;
  transition: all 0.3s ease;
}

.lesson:hover {
  background-color: rgba(255,215,0,0.2);
  transform: scale(1.05);
  color: #fff;
  box-shadow: 0 0 15px gold;
}
.grade-btn {
  display: inline-block;
  background-color: #2b9cd8;
  color: #ffd700;
  padding: 12px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: bold;
  transition: 0.3s;
  font-size: 18px;
}

.grade-btn:hover {
  background-color: #1c87c9;
  transform: scale(1.05);
  box-shadow: 0 0 15px #ffd700;
}
.lesson-test {
  text-align: center;
  margin-top: 20px;
}

.test-button {
  display: inline-block;
  background-color: #0099ff;
  color: white;
  padding: 10px 20px;
  border-radius: 8px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s;
}

.test-button:hover {
  background-color: #007acc;
}
.download-link {
  background-color: #1976d2;
  color: white;
  padding: 10px 20px;
  border-radius: 12px;
  text-decoration: none;
  font-size: 18px;
  display: inline-block;
  margin-top: 20px;
  transition: 0.3s;
}
.download-link:hover {
  background-color: #0d47a1;
}
.download-link {
  display: block;
  width: 60%;
  margin: 20px auto;
  padding: 12px;
  text-align: center;
  background-color: #ffb347; /* نفس لون الأزرار */
  color: #000;
  text-decoration: none;
  font-size: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.2);
  font-weight: bold;
  transition: background 0.3s, transform 0.2s;
}

.download-link:hover {
  background-color: #ffa500;
  transform: scale(1.05);
}
/* شريط علوي */
.top-bar {
  position: fixed;
  top: 0;
  right: 0;
  width: 100%;
  background-color: #d62828; /* أحمر جميل */
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 10px 0;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1000;
}

/* الفيديو الصغير */
.logo-video {
  height: 50px;
  margin-left: 15px;
  border-radius: 50%;
}

/* عنوان المنصة */
.site-title {
  font-size: 24px;
  font-family: "Cairo", sans-serif;
  margin: 0;
}
/* ===== تنسيق الشريط العلوي ===== */
header {
  position: fixed;
  top: 0;
  right: 0;
  left: 0;
  background: linear-gradient(90deg, #b71c1c, #d32f2f);
  border-bottom: 3px solid gold;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  z-index: 1000;
  padding: 10px 0;
}

.header-content {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 15px;
}

header video {
  height: 90px;
  border-radius: 12px;
  animation: glow 5s infinite alternate;
}

.site-title {
  color: #fff;
  font-size: 34px;
  font-weight: 700;
  text-shadow: 2px 2px 5px rgba(0,0,0,0.4);
  margin: 0;
}

@keyframes glow {
  from { filter: brightness(1); }
  to { filter: brightness(1.5); }
}

/* علشان المحتوى ما يختفيش ورا الشريط الثابت */
body {
  padding-top: 120px;
  font-family: "Cairo", sans-serif;
  background: #fefcf8;
}

/* علشان ما يتغطاش المحتوى بالشريط */
body {
  padding-top: 90px;
}
header {
  background-color: #0d47a1;
  color: #ffca28;
  padding: 15px 0;
  text-align: center;
  box-shadow: 0 4px 8px rgba(0,0,0,0.2);
}
/* تنسيق صفحات المعلومات (من نحن - الخصوصية - الاتصال...) */
body {
  font-family: "Cairo", sans-serif;
  background: linear-gradient(to bottom, #e8f3ff, #ffffff);
  color: #002b5b;
  margin: 0;
  padding: 0;
}

header {
  background-color: #b30000;
  color: #fff;
  text-align: center;
  padding: 20px 10px;
  font-size: 28px;
  font-weight: bold;
  letter-spacing: 1px;
}

main {
  max-width: 850px;
  background-color: #ffffff;
  margin: 40px auto;
  padding: 30px;
  border-radius: 15px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

main h2 {
  color: #004aad;
  font-size: 26px;
  margin-bottom: 15px;
  border-bottom: 2px solid #004aad;
  display: inline-block;
  padding-bottom: 5px;
}

main p, main label, main textarea, main input {
  font-size: 20px;
  line-height: 1.8;
}

footer {
  text-align: center;
  margin: 40px 0 20px;
}

footer a {
  color: #d4af37; /* ذهبي */
  text-decoration: none;
  margin: 0 10px;
  font-size: 18px;
  font-weight: bold;
}

footer a:hover {
  text-decoration: underline;
}

/* تنسيق نموذج الاتصال */
form {
  display: flex;
  flex-direction: column;
  gap: 15px;
}

input, textarea {
  padding: 12px;
  border: 2px solid #004aad;
  border-radius: 8px;
  font-size: 18px;
  font-family: "Cairo", sans-serif;
}

button {
  background-color: #d4af37;
  color: #fff;
  font-size: 20px;
  font-weight: bold;
  border: none;
  padding: 12px;
  border-radius: 8px;
  cursor: pointer;
  transition: 0.3s;
}

button:hover {
  background-color: #b38f2d;
}
.icon {
  font-size: 26px; /* حجم أكبر للأيقونات */
  margin: 10px;
  color: #b30000;
  transition: 0.3s;
}

.icon:hover {
  color: gold;
  transform: scale(1.2);
}
/* ✅ تحسين عام للخط */
@import url('https://fonts.googleapis.com/css2?family=Tajawal:wght@400;700&display=swap');
body {
  font-family: 'Tajawal', sans-serif;
  background: linear-gradient(to bottom, #ffffff, #f2f6ff);
  margin: 0;
  padding: 0;
}

/* ✅ شريط الأخبار + الأحمر */
header {
  background: linear-gradient(to right, #b30e0e, #d91b1b);
  color: white;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.3);
  padding: 10px;
  text-align: center;
  font-size: 22px;
  font-weight: bold;
}

/* ✅ الشريط الجانبي للأقسام */
.sidebar {
  background-color: #003a8c; /* نفس الأزرق بتاع سياسة الخصوصية */
  width: 240px; /* عرضه زاد شويه */
  padding: 15px;
  position: fixed;
  top: 100px; /* يبدأ من أول الأحمر */
  right: 0;
  bottom: 0;
  box-shadow: -3px 0 10px rgba(0,0,0,0.15);
  border-top-left-radius: 12px;
  border-bottom-left-radius: 12px;
}

/* ✅ أزرار الأقسام */
.sidebar button {
  display: block;
  width: 100%;
  margin: 10px 0;
  background: linear-gradient(to bottom, #ffd65b, #f7c948);
  border: none;
  border-radius: 8px;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.sidebar button:hover {
  background: linear-gradient(to bottom, #ffec8b, #f7d948);
  transform: translateY(-2px);
}

/* ✅ مربعات المراحل */
.stage {
  background-color: #003a8c;
  color: white;
  border-radius: 20px;
  width: 320px;
  padding: 20px;
  margin: 40px auto;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
  animation: fadeInUp 0.8s ease;
}

/* ✅ العناوين داخل المربعات */
.stage h2 {
  color: #fff;
  text-shadow: 0px 0px 6px rgba(255,255,255,0.5);
  margin-bottom: 15px;
  font-size: 22px;
}

/* ✅ أزرار الصفوف */
.stage button {
  width: 80%;
  margin: 8px 0;
  background: linear-gradient(to bottom, #ffd65b, #f7c948);
  border: none;
  border-radius: 10px;
  padding: 12px;
  font-size: 16px;
  cursor: pointer;
  box-shadow: 0 4px 10px rgba(0,0,0,0.25);
  transition: all 0.3s ease;
}

.stage button:hover {
  background: linear-gradient(to bottom, #ffec8b, #f7d948);
  transform: translateY(-2px);
}

/* ✅ فوتر */
footer {
  background-color: #003a8c;
  color: white;
  text-align: center;
  padding: 10px 0;
  border-top: 2px solid #002a6b;
  font-size: 14px;
}

/* ✅ حركة ناعمة عند ظهور العناصر */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
/* تحسين الخط العام */
body {
  font-family: 'Tajawal', 'Cairo', sans-serif;
}

/* تكبير الخط */
.section-title, .stage-title, .sidebar h3, button {
  font-size: 20px;
  font-weight: bold;
}

/* لمعان خفيف عند المرور */
button:hover, .sidebar button:hover {
  background-color: #ffcc33;
  box-shadow: 0 0 12px #ffd966;
  transform: scale(1.03);
  transition: all 0.3s ease;
}

/* تأثير عند الضغط */
button:active {
  transform: scale(0.97);
  box-shadow: 0 0 10px #fff000;
}

/* لمعان النص عند المرور */
button:hover, .stage-title:hover, .sidebar h3:hover {
  color: #ffffff;
  text-shadow: 0 0 8px #ffeb3b;
}

/* أيقونة الكتب جنب العناوين */
.stage-title::before, .sidebar h3::before {
  content: "📚 ";
  font-size: 22px;
  vertical-align: middle;
}
@import url('https://fonts.googleapis.com/css2?family=Cairo:wght@400;700&family=Changa:wght@500&display=swap');

/* 🌐 تنسيق عام للصفحة */
body {
  font-family: "Changa", "Cairo", sans-serif;
  margin: 0;
  padding: 0;
  background: #ffffff;
  text-align: center;
}

/* 🔺 الشريط العلوي الأحمر */
header {
  background: linear-gradient(90deg, #b71c1c, #d32f2f);
  color: white;
  padding: 15px 0;
  font-size: 26px;
  font-weight: bold;
  position: fixed;
  width: 100%;
  top: 0;
  z-index: 1000;
}

/* 📰 شريط الأخبار */
.news-bar {
  background: #0d47a1;
  color: white;
  padding: 8px;
  font-size: 18px;
  overflow: hidden;
  position: fixed;
  top: 0;
  width: 100%;
  z-index: 1200;
}

/* 🟦 الشريط الجانبي */
.sidebar {
  position: fixed;
  top: 85px; /* يبدأ من الأحمر */
  right: 0;
  width: 220px;
  background-color: #0d47a1;
  color: white;
  height: 100%;
  padding-top: 20px;
  box-shadow: -3px 0 8px rgba(0, 0, 0, 0.2);
}

.sidebar h3 {
  font-size: 22px;
  margin-bottom: 10px;
  color: #fff;
}

.sidebar a {
  display: block;
  margin: 8px auto;
  padding: 12px;
  text-decoration: none;
  background-color: #ffc107;
  color: #0044cc; /* الخط الأزرق */
  font-weight: bold;
  border-radius: 10px;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

.sidebar a:hover {
  background-color: #ffeb3b;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* 📘 المراحل */
.section {
  margin: 130px auto 50px auto;
  max-width: 700px;
  background-color: #0d47a1;
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 3px 8px rgba(0,0,0,0.2);
}

.section h2 {
  color: white;
  font-size: 26px;
  margin-bottom: 20px;
}

/* الأزرار الذهبية داخل الأقسام */
a.button {
  display: block;
  width: 80%;
  max-width: 520px;
  background-color: #ffc107;
  color: #0044cc;
  text-decoration: none;
  padding: 16px;
  margin: 12px auto;
  border-radius: 12px;
  font-weight: bold;
  font-size: 20px;
  transition: 0.3s;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
}

a.button:hover {
  background-color: #ffeb3b;
  transform: scale(1.05);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.25);
}

/* 🔵 شريط سياسة الخصوصية */
.footer {
  background-color: #0d47a1;
  color: white;
  padding: 15px 0;
  font-size: 16px;
  position: fixed;
  bottom: 0;
  width: 100%;
}
/* تصميم خاص بقسم الأقسام (section-card) */
.section-card {
  background-color: #0074c2; /* لون أزرق غامق زي المراحل */
  color: white;
  border-radius: 20px;
  padding: 20px;
  width: 80%;
  margin: 20px auto;
  text-align: center;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* تنسيق الروابط جوه القسم */
.section-card a {
  display: inline-block;
  background-color: #ffcc4d; /* نفس لون الأزرار (الأصفر الفاتح) */
  color: #000;
  font-weight: bold;
  text-decoration: none;
  margin: 10px;
  padding: 10px 20px;
  border-radius: 10px;
  transition: 0.3s;
}

.section-card a:hover {
  background-color: #ffe680; /* لون أفتح لما تمر الماوس */
  transform: scale(1.05);
}
.container {
  display: flex;
  flex-direction: row; /* خلي المراحل والأقسام جنب بعض */
  justify-content: space-around; /* يوزّعهم على الصفحة */
  align-items: flex-start;
  flex-wrap: wrap;
  width: 90%;
  margin: 40px auto;
}

.stage {
  background-color: #0074cc;
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  width: 80%;
  text-align: center;
}

.stage h2 {
  color: white;
  font-size: 24px;
  margin-bottom: 15px;
}

.stage button {
  display: block;
  width: 90%;
  margin: 10px auto;
  padding: 10px;
  background-color: #ffd35a;
  border: none;
  border-radius: 10px;
  font-size: 18px;
  cursor: pointer;
  transition: 0.3s;
}

.stage button:hover {
  background-color: #ffcc33;
}
.fixed-footer {
  background-color: #002b73; /* الأزرق الغامق */
  color: #fff;
  padding: 8px 0;
  text-align: center;
  position: fixed;
  bottom: 0;
  width: 100%;
  font-size: 14px;
  border-top: 2px solid gold; /* خط دهبي بسيط */
  z-index: 999;
}

.footer-links {
  margin-bottom: 5px;
}

.footer-links a {
  color: gold;
  text-decoration: none;
  margin: 0 10px;
  font-weight: bold;
}

.footer-links a:hover {
  text-decoration: underline;
}