

/* أيقونة واتساب */
.whatsapp-icon {
  position: fixed;
  bottom: 20px;
  left: 20px;
  width: 50px;
  height: 50px;
  cursor: pointer;
}

/* تحسين عرض الإعلانات الجانبية على الهاتف */
.sidebar {
  width: 100%;
  max-width: 250px;
  margin: auto;
  overflow: hidden;       /* يمنع التمدد */
}

.sidebar iframe,
.sidebar video {
  width: 100%;
  border-radius: 8px;
}

.sidebar-left .adsbygoogle,
.sidebar .adsbygoogle {
  max-height: 150px !important;
  overflow: hidden !important;
}
/* تنسيق القائمة المنسدلة للدروس */
.dropdown {
  position: relative;
  display: inline-block;
  margin-bottom: 20px;
}

.dropbtn {
  background-color: #007bff;
  color: white;
  padding: 10px 20px;
  font-size: 16px;
  border: none;
  border-radius: 6px;
  cursor: pointer;
}

.dropdown-content {
  display: none;
  position: absolute;
  background-color: #f9f9f9;
  min-width: 220px;
  box-shadow: 0px 8px 16px rgba(0,0,0,0.2);
  border-radius: 6px;
  z-index: 1;
}

.dropdown-content a {
  color: #007bff;
  padding: 10px 15px;
  text-decoration: none;
  display: block;
}

.dropdown-content a:hover {
  background-color: #e6f0ff;
}

.dropdown:hover .dropdown-content {
  display: block;
}

.dropdown:hover .dropbtn {
  background-color: #0056b3;
}
/* تحديد ارتفاع القائمة المنسدلة وإضافة شريط تمرير */
.dropdown-content {
  max-height: 120px; /* يظهر فقط درسين تقريبًا */
  overflow-y: auto;  /* يضيف شريط تمرير عمودي */
  scrollbar-width: thin; /* يجعل الشريط نحيفًا في المتصفحات الحديثة */
}

/* تحسين شكل شريط التمرير في المتصفحات التي تدعم WebKit */
.dropdown-content::-webkit-scrollbar {
  width: 6px;
}

.dropdown-content::-webkit-scrollbar-thumb {
  background-color: #007bff;
  border-radius: 3px;
}

.dropdown-content::-webkit-scrollbar-track {
  background-color: #f1f1f1;
}

/* إخفاء النصوص عن الطالب وتظهر لمحركات البحث فقط */
.hidden-text {
  position: absolute;
  left: -9999px; /* يبعد النص عن الشاشة */
}

/* تنسيق موحد  للنص في أسفل الصفحات - منصة البدر العربي */
.seo-lessons-content-box {
    margin-top: 50px; 
    padding: 25px; 
    border-top: 1px solid #e0e0e0; 
    text-align: right; 
    direction: rtl; 
    background-color: #ffffff; 
    border-radius: 8px;
}

.seo-lessons-content-box h2 {
    color: #1e88e5; 
    font-size: 20px; 
    margin-bottom: 15px; 
    font-weight: bold;
}

.seo-lessons-content-box h3 {
    color: #222; 
    font-size: 16px; 
    margin-bottom: 8px; 
    font-weight: bold;
}

.seo-lessons-content-box p {
    line-height: 1.8; 
    color: #444; 
    margin-bottom: 20px; 
    font-size: 15px;
}

.seo-lessons-content-box .highlighted-footer-text {
    color: #555; 
    border-top: 1px dashed #ccc; 
    padding-top: 15px;
    margin-top: 15px;
}
/* هنا في السطر الاعلى ينتهي تنسيق موحد  للنص في أسفل الصفحات */

/* هنا في الاسفل كود الخط الذي يدعم الارقام العربية */

p {
    font-family: 'Cairo', sans-serif;
}
/* هنا في السطر الاعلى نهاية كود الخط الذي يدعم الارقام العربية */

/* إصلاح تمدد الصندوق الأبيض في جميع صفحات الصفوف (جوال وكمبيوتر) */
.content {
  flex: none !important;
  height: auto !important;
  width: 92% !important;
  max-width: 900px !important;
  margin: 25px auto !important;
  padding: 25px 20px !important;
  box-sizing: border-box;
}

/* توحيد عرض صندوق الشرح النصي أسفل الصفحة ليتطابق مع الصندوق العلوي */
.seo-lessons-content-box {
  width: 92% !important;
  max-width: 900px !important;
  margin: 20px auto 40px auto !important;
  box-sizing: border-box;
}



