html, body {
  font-family: 'Cairo', sans-serif; /* ✅ تطبيق خط Cairo */
}

/* كلاس اللون الذهبي */
.gold {
  background-color: #ffcc00 !important;
  color: #000 !important;
}

.tooltip {
  background: #333;
  color: #fff;
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 13px;
  white-space: nowrap;
  z-index: 9999;
  transform: translateX(-50%); /* لتوسيط الرسالة بالضبط */
}



.news-card {
  position: relative; /* ضروري لوضع الوسم فوق البطاقة */
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin: 10px auto;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: 0.3s;
  width: 90%;
  max-width: 400px;
  box-sizing: border-box;
  overflow: hidden;
  position: relative;   /* ضروري لتحديد مكان العناصر داخله */
    padding-bottom: 40px; /* يضيف فراغ أسفل النص */
}
.news-card .card-meta {
  position: absolute;
  bottom: 10px;
  right: 10px;
  display: flex;
  gap: 15px; /* مسافة بين الإعجابات والتعليقات */
  font-size: 14px;
  align-items: center;
}

.news-card .likes {
  color: #e63946; /* لون القلب */
}

.news-card .comments {
  color: #444;
  display: flex;
  align-items: center;
}

.news-card .comment-icon {
  width: 16px;
  height: 16px;
  margin-right: 8px;
}
.card-image-count-badge {
  position: absolute;
  top: 8px;
  right: 8px;
  background: rgba(0,0,0,0.7);
  color: #ffcc00;
  padding: 4px 8px;
  border-radius: 12px;
  font-size: 12px;
  font-weight: bold;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 4px; /* مسافة صغيرة بين الأيقونة والعدد */
}

.card-image-count-badge .badge-icon {
  width: 16px;
  height: 16px;
  vertical-align: middle;
}



.news-card:hover {
  background-color: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: 0.3s;
}

.article-card {
  position: relative;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin: 10px auto;       /* توسيط البطاقات */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: 0.3s;
  width: 85%;              /* الافتراضي للشاشات الصغيرة */
  overflow: hidden;        /* يمنع خروج أي عنصر خارج البطاقة */
  overflow-y: auto;        /* يسمح بالتمرير عند تجاوز المحتوى */
}

/* الصورة داخل البطاقة */
.article-card img,
#articleImage {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  border-radius: 8px;
  max-width: 600px;   /* ✅ حد أقصى للعرض */
  margin: 0 auto;     /* ✅ توسيط داخل البطاقة */
}

/* الفيديو */
#articleVideo {
  width: 100%;
  height: auto;
  object-fit: cover;
  border-radius: 8px;
  display: none;
  max-width: 600px;   /* ✅ نفس الحد الأقصى مثل الصورة */
  margin: 0 auto;
}

/* للشاشات الكبيرة (كمبيوتر) */
@media (min-width: 901px) {
  .article-card img,
  #articleVideo {
    width: 80%;        /* ✅ أصغر من العرض الكامل */
    max-width: 700px;  /* ✅ لا يتجاوز هذا الحجم */
  }
}


.article-card h2 {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0,0,0,0.6);
  color: #fff;
  padding: 8px 12px;
  border-radius: 4px;
  font-size: 1rem;
  margin: 0;
  text-align: right;
    font-family: 'Cairo', sans-serif;
}

.media {
  width: 100%;          /* يأخذ عرض الشاشة */
  max-width: 800px;     /* أقصى عرض */
  margin: auto;
}

.media img,
.media video {
  width: 100%;          /* العرض نسبي */
  border-radius: 8px;
  display: block;
}
#articleImage {
  width: 100%;
  aspect-ratio: auto;
  object-fit: cover;
}

#articleVideo {
  width: 100%;
  object-fit: cover;
}

/* ====== صندوق التعليقات ====== */
/* حاوية نموذج التعليق */
.comment-form {
  margin-bottom: 15px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: #f9f9f9;
  padding: 50px;
  border: 1px solid #ccc;
  border-radius: 6px;
}

.comment-form textarea {
  width: 99%;
  padding: 10px;
  border: 1px solid #ffcc00;
  border-radius: 4px;
  resize: vertical;
  font-size: 14px;
}

.profile-link {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
}
.profile-link:hover .username {
  text-decoration: underline;
}


/* زر الإرسال */
.send-btn {
  align-self: flex-start;
  padding: 8px 16px;
  background-color: #000;
  color: #fff;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.send-btn:hover {
  background-color: #ffcc00;
  color: #000;
}

/* ====== أزرار الإعجاب والتعليق ====== */
.article-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.like-btn,
.comment-btn,
.share-Btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  border: none;
  border-radius: 20px;
  cursor: pointer;
  font-size: 0.95rem;
  font-weight: 500;
  transition: background 0.2s ease, transform 0.1s ease;
}

.like-btn {
  background: #f0f2f5;
  color: #e53935;
}

.like-btn.active {
  background: #ffe5e5;
  color: #d32f2f;
}

.comment-btn {
  background: #f0f2f5;
  color: #1a73e8;
}
.shareBtn {
  background: #f0f2f5;
  color: #1a73e8;
}
.like-btn:hover, .comment-btn:hover {
  background: #e4e6eb;
  transform: scale(1.05);
}

/* أيقونة القلب */
.heart {
  font-size: 18px;
  transition: color 0.2s ease;
}




/* الحاوية التي تحتوي البطاقات */
/* الحاوية */
#sectionResults,
#newsContainer {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;   /* توسيط البطاقات */
  padding: 0;
  margin: 0 auto;
}

/* البطاقة الافتراضية (الهاتف) */
.news-card {
  width: 90%;                /* عرض مناسب للهاتف */
  max-width: 400px;          /* حد أقصى للعرض */
  margin: 10px auto;         /* مسافة متساوية يمين ويسار */
  box-sizing: border-box;
}

/* عند الشاشات المتوسطة (تابلت) */
@media (min-width: 601px) and (max-width: 900px) {
  .news-card {
    width: 45%;              /* بطاقتان بجانب بعض */
    margin: 10px;
  }
}
/* للشاشات المتوسطة (تابلت) */
@media (min-width: 601px) and (max-width: 900px) {
  #sectionTitle {
    font-size: 2rem;     /* حجم متوسط */
  }

  main h1 {
    font-size: 2rem;     /* أكبر من الهاتف وأصغر من الكمبيوتر */
    width: 90%;          /* عرض مناسب */
    margin: 10px auto;   /* توسيط */
    padding: 5px 0;
    text-align: center;  /* ✅ يبقى في الوسط */
  }
}
h1 {
  text-align: center !important;   /* ✅ يوسّط النص */
  margin: 10px auto !important;    /* ✅ يضيف فراغ علوي/سفلي ويضمن التوسيط */
  width: 90% !important;           /* ✅ عرض مناسب */
  display: block !important;       /* يضمن أن h1 يتصرف كبلوك */
}

/* عند الشاشات الكبيرة (أكبر من 901px) */
@media (min-width: 901px) {
  .news-card {
    width: 45%;              /* ثلاث بطاقات بجانب بعض */
    margin: 15px;
  }
}


.news-card:hover {
  transform: translateY(-4px);
}


.news-card .content,
.news-card p,
.news-card .text {
  white-space: normal;        /* ✅ يسمح بلف النص */
  word-wrap: break-word;      /* ✅ يكسر الكلمة الطويلة */
  overflow-wrap: break-word;  /* ✅ بديل حديث يكسر النص الطويل */
  line-height: 1.6;           /* تحسين المسافة بين الأسطر */
  max-width: 100%;            /* يمنع تجاوز عرض البطاقة */
}


.news-card h2 {
  font-size: 1rem;
  margin: 8px 0;
  color: #000;
  width:90%;
}

.news-card p {
  font-size: 0.8rem;
  line-height: 1.5;
}

.news-meta {
  font-size: 0.6rem;
  color: #666;
  margin-top: 8px;
}

.news-content {
  text-align: justify !important;
  text-align-last: right;
  line-height: 1.8;
  direction: rtl;
  font-family: 'Cairo', sans-serif;
}

.news-content p {
  text-indent: 25px;
}



.thumbnail {
  width: 100%;
  height: 100%;       /* ارتفاع ثابت */
  object-fit: cover;   /* يقتطع الصورة لتناسب الإطار */
  border-radius: 6px;
  margin-bottom: 10px;
  display: block;
}


.img-wrapper {
  position: relative;       /* يسمح بتموضع العناصر داخله */
  width: 100%;
  height: 300px;            /* ارتفاع ثابت للصورة */
  overflow: hidden;
  border-radius: 6px;
  margin-bottom: 10px;
}

.img-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;        /* يجعل الصورة تملأ البطاقة */
  display: block;
}

.img-wrapper h2 {
  position: absolute;
  bottom: 15px;             /* يظهر أسفل الصورة */
  right: 15px;              /* بمحاذاة اليمين */
  background: rgba(0,0,0,0.6); /* خلفية شفافة للنص */
  color: #fff;
  padding: 6px 12px;
  border-radius: 4px;
  font-size: 1rem;
  margin: 0;
}


/* للشاشات الصغيرة (موبايل) */
@media (max-width: 480px) {
  #sectionTitle {
    font-size: 1rem;
  }
}

/* للشاشات الكبيرة (كمبيوتر) */
@media (min-width: 901px) {
  #sectionTitle {
    font-size: 3rem;
  }
}

/* للشاشات الصغيرة (موبايل) */
@media (max-width: 480px) {
  #sectionTitle {
    font-size: 1rem;
  }

  main h1 {
    font-size: 1rem;     /* حجم أصغر مناسب للهاتف */
    width: 95%;          /* يملأ تقريبًا عرض الشاشة */
    margin: 8px auto;    /* فراغ علوي وسفلي صغير */
    padding: 4px 0;
    text-align: center;  /* يبقى في المنتصف */
  }
}

/* للشاشات الكبيرة (كمبيوتر) */
@media (min-width: 901px) {
  #sectionTitle {
    font-size: 3rem;
  }

  main h1 {
    font-size: 3rem;     /* كبير وواضح */
    width: 80%;          /* فراغ على الجانبين */
    margin: 10px auto;
    padding: 5px 0;
    text-align: center;
  }
}
/* النصوص العادية */
p {
  font-size: 1rem;   /* الحجم الافتراضي للهاتف */
  line-height: 1.6;  /* مسافة بين السطور لسهولة القراءة */
  margin: 10px auto;
  width: 95%;
}

/* للشاشات المتوسطة (تابلت) */
@media (min-width: 601px) and (max-width: 900px) {
  p {
    font-size: 1.2rem;   /* حجم متوسط */
    width: 95%;
  }
}

/* للشاشات الكبيرة (كمبيوتر) */
@media (min-width: 901px) {
  p {
    font-size: 1.4rem;   /* حجم أكبر وواضح */
    width: 95%;
  }
}

.search-icon, .user-icon {
  font-size: 1rem;
  background: none;
  border: none;
  cursor: pointer;
  margin-left: 5px;
  color: #fff;
  display: inline-flex;   /* ✅ يضمن ظهور الأيقونة */
  align-items: center;
  justify-content: center;
}

/* زر الإغلاق */
.search-close {
  position: absolute;
  top: 50%;               /* منتصف المربع عمودياً */
  left: 20px;             /* المسافة من يسار المربع */
  transform: translateY(-50%); /* لضبطه تماماً في المنتصف */
  font-size: 28px;
  font-weight: bold;
  color: #ffcc00;
  cursor: pointer;
  transition: color 0.3s ease;
}

.search-close:hover {
  color: #000000;            /* يتغير عند المرور */
}

/* المربع العائم للشاشات الكبيرة */
.search-overlay {
  display: none;
  position: fixed;
  top: 20px;
  left: 200px;
  transform: translateX(-50%);
  background: #fff;
  padding: 0;
  border: none;              /* ❌ بدون حدود */
  border-radius: 22px;       /* ✅ حواف ناعمة */
  z-index: 8;
}

.search-overlay input {
  width: 250px;
  padding: 8px;
  font-size: 1rem;
  border: none;              /* ❌ بدون حدود افتراضيًا */
  border-radius: 6px;
  outline: none;             /* إزالة الإطار الأزرق الافتراضي */
  transition: border 0.3s ease;
}

/* عند الفوكس */
.search-overlay input:focus {
  border: 2px solid orange;  /* ✅ حدود برتقالية عند الفوكس */
}


/* للشاشات الصغيرة: Overlay يغطي الشاشة */
@media (max-width: 901px) {
  .search-overlay {
    top: 85px;              /* ✅ يرفع المربع للأعلى */
    left: 50%;
    transform: translateX(-50%);
    width: 90%;             /* عرض مناسب للموبايل */
    height: auto;           /* لا يغطي الشاشة بالكامل */
    background: #fff;       /* خلفية واضحة */
    border-radius: 12px;    /* حواف ناعمة */
    padding: 3px;
    display: none;
    justify-content: center;
    align-items: center;
  }

  .search-overlay input {
    width: 80%;
    max-width: 300px;
    background: #fff;
    border: none;
    border-radius: 12px;
    padding: 10px;
    font-size: 1rem;
    outline: none;
    transition: border 0.3s ease;
  }

  .search-overlay input:focus {
    border: 2px solid orange; /* ✅ حدود برتقالية عند الفوكس */
    
  }
}


/* إعادة ضبط الهوامش الافتراضية */
body, main, h2 {
  margin: 0;
  padding: 0;
}


main h2 {
  margin: 10px auto;     /* فراغ علوي وسفلي صغير + توسيط */
  padding: 5px 0;
  font-size: 1.2rem;
  width: 90%;            /* يقلل العرض ويترك فراغ على الجانبين */
  text-align: right;     /* يبقى النص لليمين لكن مع فراغ */
}



/* كمبيوتر */
#tickerContent { animation-duration: 10s; }

/* تابلت */
@media (max-width: 768px) {
  #tickerContent { animation-duration: 25s; }
}

/* موبايل */
@media (max-width: 480px) {
  #tickerContent { animation-duration: 30s; }
}

/* إعادة ضبط الهوامش الافتراضية */
body, main, h1 {
  margin: 0;
  padding: 0;
}



/* إعادة ضبط الهوامش الافتراضية */
body, main, h2 {
  margin: 0;
  padding: 0;
}

.news-card h2,
.news-card div,
.news-card p {
  color: #000 !important;   /* ✅ النص أسود دائمًا */
}

main h2 {
  margin: 10px auto;     /* فراغ علوي وسفلي صغير + توسيط */
  padding: 10px 0;
  font-size: 1.2rem;
  width: 90%;            /* يقلل العرض ويترك فراغ على الجانبين */
  text-align: right;     /* يبقى النص لليمين لكن مع فراغ */
}

#articleContent {
  direction: rtl;              /* لأن النص عربي */
  text-align: right;           /* محاذاة لليمين */
  margin: 0 auto;              /* يوسّط الحاوية */
  padding: 15px;               /* مسافة داخلية */
  max-width: 90%;              /* يمنع الخروج خارج الشاشة */
  box-sizing: border-box;      /* يحسب الهوامش بشكل صحيح */
  overflow-wrap: break-word;   /* يكسر الكلمات الطويلة */
  line-height: 1.8;            /* مسافة بين السطور */
  font-size: 1rem;             /* حجم خط مناسب */
}


/* الحاوية */
.image-upload {
  margin: 15px 0;
  padding: 10px;
  border: 1px solid #ccc;       /* إطار خفيف */
  border-radius: 8px;           /* زوايا مستديرة */
  background-color: #f9f9f9;    /* خلفية فاتحة */
  display: flex;
  flex-direction: column;
  gap: 8px;                     /* مسافة بين العناصر */
}

/* النص */
.image-upload label {
  font-weight: bold;
  margin-bottom: 5px;
}

/* زر رفع الملف */
.image-upload input[type="file"] {
  padding: 6px;
  border: 1px dashed #213F99;   /* إطار منقط */
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.image-upload input[type="file"]:hover {
  border-color: #ffcc00;        /* يتغير اللون عند المرور */
  background-color: #f0f8ff;
}

.video-upload {
  margin: 15px 0;
  padding: 10px;
  border: 1px solid #ccc;       /* إطار خفيف */
  border-radius: 8px;           /* زوايا مستديرة */
  background-color: #f9f9f9;    /* خلفية فاتحة */
  display: flex;
  flex-direction: column;
  gap: 8px;                     /* مسافة بين العناصر */
}

/* النص */
.video-upload label {
  font-weight: bold;
  margin-bottom: 5px;
}

/* زر رفع الفيديو */
.video-upload input[type="file"] {
  padding: 6px;
  border: 1px dashed #213F99;   /* إطار منقط */
  border-radius: 6px;
  background-color: #fff;
  cursor: pointer;
  transition: all 0.3s ease;
}

.video-upload input[type="file"]:hover {
  border-color: #ffcc00;        /* يتغير اللون عند المرور */
  background-color: #f0f8ff;
}


.columns {
  display: flex;
  gap: 20px;
}

.news-column, .articles-column {
  flex: 1;
  background: #f9f9f9;
  padding: 15px;
  border-radius: 8px;
}


.breaking-container {
  display: none;
  background: #ffe5e5;
  padding: 8px;
  border-top: 2px solid #cc0000;
  font-family: 'Cairo', sans-serif;  /* ✅ الخط Cairo */
  font-size: 14px;                   /* ✅ حجم أصغر قليلاً */
  font-weight: bold;                 /* لجعل النص بارز */
  text-align: center;                /* توسيط النص */
}

  /* وسم القسم   */
.section-badge {
  position: absolute;
  top: 10px;
  left: 10px;
  background: #000;
  color: #ffcc00;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 1rem;
  font-family: 'Cairo', sans-serif;
  z-index: 2;
}

.date-badge {
  position: absolute;
  bottom: 10px;
  left: 10px;
  color: #555;
  font-size: 12px;
  font-family: 'Cairo', sans-serif;
}

#backBtn {
  position: absolute;       /* يثبت الزر داخل البطاقة أو القسم */
  top: 10px;                /* المسافة من الأعلى */
  right: 10px;              /* المسافة من اليمين */
  background: #d9534f;      /* أحمر واضح */
  color: #fff;              /* النص أبيض */
  border: none;
  border-radius: 50%;       /* دائري */
  width: 32px;
  height: 32px;
  font-size: 16px;
  font-weight: bold;
  font-family: 'Cairo', sans-serif;
  cursor: pointer;
  box-shadow: 0 2px 6px rgba(0,0,0,0.2);
  transition: background 0.3s ease;
}

/* الزر */
.social-btn {
  position: relative; /* مهم حتى تكون النافذة مرتبطة به */
  z-index: 10;
}

/* النافذة */
.social-popup {
  position: absolute;
  left: 50%;  /* منتصف الزر أفقيًا */
  transform: translate(-50%, -50%) scale(0.5); 
  opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  height: 300px;   /* يمكنك تعديل الرقم حسب رغبتك */
  background: rgba(255, 255, 255, 0.8);
  padding: 10px;
  border-radius: 100px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.social-popup.show {
  transform: translateY(-10px) scale(1);
  opacity: 1;
}


#articleHeader {
  display: flex;
  justify-content: flex-end; /* ✅ يدفعه لليسار */
  align-items: flex-start;     /* ✅ يبقيه في الأعلى */
  padding: 10px;
}

.date-badge {
  background: #eee;
  color: #333;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.6rem;
}
.menu-toggle.active {
  font-size: 1rem;
  color: #ffcc00;
}

.search-icon.active i {
  color: #ffcc00;
}
/* أنيميشن دوران */
.rotate {
  animation: spin 0.4s ease;
}
/* زر القائمة */
.menu-toggle {
  font-size: 1rem;   /* نفس حجم زر البحث */
  width: 40px;       /* عرض ثابت */
  height: 40px;      /* ارتفاع ثابت */
  display: flex;
  align-items: center;
  justify-content: center;
}

/* عند التفعيل */
.menu-toggle.active {
  color: #ffcc00;
}

/* زر البحث */
.search-icon {
  font-size: 1rem;   /* نفس الحجم */
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.search-icon.active i {
  color: #ffcc00;
}

@keyframes spin {
  from { transform: rotate(0deg); }
  to   { transform: rotate(180deg); }
}

/* إعجاب وتعليق */
.article-actions {
  display: flex;
  gap: 15px;
  margin-top: 20px;
}

.like-btn, .comment-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 42px;
  height: 42px;
  border: none;
  border-radius: 50%;
  cursor: pointer;
  background: #f0f2f5;
  transition: background 0.2s ease, transform 0.1s ease;
}

.like-btn:hover, .comment-btn:hover {
  background: #e4e6eb;
  transform: scale(1.1);
}
/* ====== أزرار التحكم داخل التعليق ====== */
.comment-actions {
  display: flex;
  gap: 12px;
  margin-top: 10px;       /* مساحة تحت التعليق */
  justify-content: flex-start; /* الأزرار في الجهة اليسرى */
  direction: ltr;
}

.delete-btn, .edit-btn, .save-btn {
  background: #f0f2f5;
  border: none;
  cursor: pointer;
  padding: 8px;
  border-radius: 50%;     /* شكل دائري */
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, transform 0.1s ease;
}

.delete-btn img, .edit-btn img, .save-btn img {
  width: 18px;
  height: 18px;
  
}

.delete-btn:hover { background: #ffcdd2; transform: scale(1.1); }
.edit-btn:hover   { background: #ffe0b2; transform: scale(1.1); }
.save-btn:hover   { background: #c8e6c9; transform: scale(1.1); }

.edit-box {
  width: 90%;
  min-height: 50px;
  border: 1px solid #ddd;
  border-radius: 12px;
  padding: 6px;
  margin-bottom: 6px;
  font-family: inherit;
  font-size: 14px;
}


/* زر حفظ التعديل */
.save-btn {
  background: #c8e6c9;
  color: #2e7d32;
  border: none;
  padding: 6px 12px;
  border-radius: 50%;
  cursor: pointer;
  font-size: 14px;
  transition: background 0.2s ease;
}
.save-btn:hover {
  background: #a5d6a7;
}


/* مربع التعديل */
.edit-box {
  width: 90%;
  min-height: 50px;
  border: 1px solid #ddd;
  border-radius: 50px;
  padding: 12px;
  margin-bottom: 6px;
  font-family: inherit;
  font-size: 14px;
}

/* أيقونة القلب */
.heart {
  font-size: 20px;
  color: #e53935;
}

/* زر الإعجاب عند التفعيل */
.like-btn.active {
  background: #ffe5e5;
}

.comment-btn img {
  width: 7px;
  height: 7px;
}
.comment-btn.active {
  background: #ffea00;

}
/* شريط الأخبار المصورة */

.news-item img {
  position: relative;
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  margin: 10px auto;       /* توسيط البطاقات */
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
  transition: 0.3s;
  width: 85%;              /* الافتراضي للشاشات الصغيرة */
  overflow: hidden;        /* يمنع خروج أي عنصر خارج البطاقة */
  max-height: 400px;       /* أقصى ارتفاع للبطاقة */
}
.news-item :hover {
  background-color: #f9f9f9;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  transition: 0.3s;
}
.news-item {
    background: rgba(0,0,0,0.6);
    font-size: 14px;
    font-weight: bold;
    text-align: center;
}
/* جميع النقاط */
.swiper-pagination-bullet {
  width: 16px;
  height: 16px;
  background: #999;   /* لون النقاط العادية */
  opacity: 1;         /* اجعلها واضحة */
  margin: 0 4px;      /* مسافة بين النقاط */
}

/* النقطة المحددة */
.swiper-pagination-bullet-active {
  background: #fff;        /* بيضاء */
  border: 1px solid #000;  /* إطار أسود */
}
