/* إعدادات عامة */
body {
  font-family: Arial, sans-serif;
  background-color: #f8faff;
  color: #333;
  direction: ltr; /* الصفحة كلها إنجليزية */
  margin: 0;
  padding: 0;
}

/* الحاوية العامة */
.container {
  width: 90%;
  max-width: 1200px;
  margin: 20px auto;
  padding: 20px;
  background-color: #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  overflow: hidden;
}

/* إعدادات المنشورات (بالعربية) */
.post {
  margin-bottom: 30px;
  padding: 15px;
  background-color: #eaf4ff;
  border-radius: 10px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  direction: rtl;          /* بالعربية */
  text-align: right;
}

.post h2 {
  color: #0056b3;
}

.post .author {
  font-size: 14px;
  color: #6c757d;
  text-align: left;        /* اسم الكاتب يظل إنجليزي */
  direction: ltr;
}

.post .content {
  margin-top: 10px;
  line-height: 1.8;
}

.post .image {
  margin-top: 10px;
  width: 100%;
  max-width: 400px;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
}

/* إعدادات النموذج */
.reply-form {
  margin: 0 auto;
  max-width: 100%;
  text-align: center;
  padding: 0 10px; 
  direction: rtl;
}

.reply-form textarea {
  width: calc(100% - 10px);
  max-width: 100%;
  min-height: 100px;
  margin-top: 10px;
  padding: 10px 10px;
  border: 1px solid #cce7ff;
  border-radius: 10px;
  font-size: 16px;
  color: #333;
  box-sizing: border-box;
  direction: ltr; /* المستخدم يكتب بالإنجليزية */
}

.reply-form button {
  background-color: #007bff;
  color: white;
  padding: 8px 15px;
  border: none;
  border-radius: 10px;
  font-size: 16px;
  cursor: pointer;
}

.reply-form button:hover {
  background-color: #0056b3;
}

/* الردود (بالعربية) */
.replies {
  margin-top: 20px;
  padding: 10px;
  background-color: #f1f1f1;
  border-radius: 10px; 
  
}

.reply {
  background-color: #ffffff;
  border: 1px solid #cce7ff;
  border-radius: 10px;
  padding: 10px 15px;
  margin-bottom: 15px;
  box-shadow: 0 1px 3px rgba(0, 123, 255, 0.1);
  position: relative;
  direction: rtl;          /* بالعربية */
  text-align: right;
}

.reply strong {
  color: #007bff;
  font-weight: bold;
  display: block;
  margin-bottom: 5px;
  text-align: left;        /* اسم صاحب الرد بالإنجليزية */
  direction: ltr;
}

.reply small {
  color: #888;
  font-size: 12px;
  display: block;
  margin-top: 5px;
  text-align: left;
  direction: ltr;
}

/* إعدادات التنقل بين الصفحات */
.pagination {
  text-align: center;
  margin-top: 20px;
}

.pagination a {
  color: #007bff;
  text-decoration: none;
  padding: 8px 12px;
  margin: 0 5px;
  border: 1px solid #007bff;
  border-radius: 8px;
}

.pagination a:hover {
  background-color: #0056b3;
  color: white;
}

/* أزرار جديدة */
.new-post-btn, .delete-btn {
  display: inline-block;
  width: auto;
  text-align: center;
  padding: 10px 20px;
  background-color: #007bff;
  color: white;
  text-decoration: none;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  cursor: pointer;
  transition: background-color 0.3s;
}

.new-post-btn:hover, .delete-btn:hover {
  background-color: #0056b3;
}

/* زر الدراسة */
.study-btn {
  display: block;
  margin: 20px auto;
  background-color: #007bff;
  color: white;
  padding: 10px 15px;
  text-align: center;
  text-decoration: none;
  border-radius: 8px;
  width: 150px;
  max-width: 100%;
}

.study-btn:hover {
  background-color: #0056b3;
}

/* إشعارات */
.notification-bell {
  position: fixed;
  top: 8px;
  left: 8px;
  cursor: pointer;
  font-size: 24px;
  z-index: 1000;
  color: red;
}

.notification-bell.unread::after {
  content: '';
  position: absolute;
  top: 0px;
  left: 0px;
  width: 8px;
  height: 8px;
  background-color: red;
  border-radius: 50%;
}

.notification-dropdown {
  display: none;
  position: fixed;
  top: 40px;
  left: 10px;
  background-color: #fff;
  border: 1px solid #ccc;
  width: 260px;
  max-height: 300px;
  overflow-y: auto;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
  z-index: 1000;
  border-radius: 6px;
  font-size: 14px;
  direction: rtl; /* الإشعارات بالعربية */
}

.notification-dropdown .notification-item {
  padding: 10px;
  border-bottom: 1px solid #eee;
  color: #333;
  text-decoration: none;
  display: block;
}

.notification-dropdown .notification-item:hover {
  background-color: #f2f2f2;
}