.articles-grid {
  display: grid;
  grid-template-columns: repeat(var(--columns, 3), 1fr);
  gap: 20px;
}

.article-card {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, border-color 0.3s ease;
  box-sizing: border-box;
  border-bottom: 3px solid #ddd; /* حد سفلي افتراضي */
  height: 480px;
}

.article-card:hover {
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.1);
  border-bottom: 5px solid #63b331; /* أزرق عند الهوفر */
}

/* الصورة */
.article-card img {
  width: 100%;
  max-height: 290px;
  height: 290px;
  object-fit: cover;
  display: block;
  transition: transform 0.5s ease;
  will-change: transform;
      background: #63b331;
}

/* تأثلزوم مع حركة يمين ويسار عند المرور 
.article-card:hover img {
  animation: zoomMove 2s infinite alternate ease-in-out;
}

@keyframes zoomMove {
  0% {
    transform: scale(1) translateX(0);
  }
  50% {
    transform: scale(1.1) translateX(10px);
  }
  100% {
    transform: scale(1.1) translateX(-10px);
  }
}*/

.article-info {
  position: relative;
  z-index: 15;
  transition: transform 0.3s ease, background-color 0.3s ease;
  padding: 20px 20px;
  background-color: transparent;
  width: 92%;
  margin: 0 auto;
  box-sizing: border-box;
}

/* عند التحريك */
.article-card:hover .article-info {
  transform: translateY(-30px);
  background-color: rgba(255, 255, 255, 0.9);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  border-radius: 8px;
}

/* تعديل العنوان */
.article-card h3 {
  font-size: 1rem;
  margin: 0;
  display: block;
}


.article-date {
  display: block; /* يجعل كل منهم في سطر مستقل */
  width: 100%;    /* يأخذ عرض كامل */
    margin-bottom: 5px;
	margin-top: 10px;
  color: #888;
  font-size: 0.9rem;
   line-height: 1.2;
}


/* تعديل الوصف */
.article-desc {
  font-size: 1rem;
  color: #333;
  margin: 0;
}

.article-title-link {
  color: #000;
  text-decoration: none;
  transition: color 0.3s ease;
  cursor: pointer;
  display: block;
}

.article-title-link:hover {
  color: #63b331;
  text-decoration: none;
}

/* زر "عرض المزيد"underline */
.show-more-wrapper {
  text-align: center;
  margin-top: 20px;
}

#showMoreBtn {
  padding: 10px 20px;
  background-color: #007bff;
  color: #fff;
  border: none;
  cursor: pointer;
  font-weight: bold;
  border-radius: 5px;
  transition: background-color 0.3s ease;
}

#showMoreBtn:hover {
  background-color: #0056b3;
}

/* Responsive */
@media (max-width: 600px) {
  .articles-grid {
    grid-template-columns: 1fr !important;
  }
}

@media (min-width: 601px) and (max-width: 900px) {
  .articles-grid {
    grid-template-columns: repeat(2, 1fr) !important;
  }
}





/* أيقونات المشاركة الاجتماعية */
.social-share {
  margin-top: 15px;
  display: flex;
  gap: 12px;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
}

.article-card:hover .social-share {
  opacity: 1;
  visibility: visible;
}

.social-icon {
  color: #555;
  font-size: 20px;
  transition: color 0.3s ease, transform 0.3s ease;
}

.social-icon:hover {
  color: #63b331;;
  transform: scale(1.2);
  cursor: pointer;
}







.pagination {
display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 1px;
  margin: 30px 0;
}
.pagination a, .pagination .current {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  background: #eee;
  color: #333;
  text-decoration: none;
  border-radius: 4px;
}
.pagination .current {
  background: #63b331;
  color: #fff;
  font-weight: bold;
}
.pagination a, .pagination span.current {
  display: inline-block;
  margin: 0 5px;
  padding: 5px 10px;
  color: #63b331;
  text-decoration: none;
  border-radius: 3px;
  border: 1px solid #63b331;
}

.pagination span.current {
  background-color: #63b331;
  color: white;
  font-weight: bold;
}

.pagination a:hover {
  background-color: #63b331;
  color: white;
}

.pagination button {
  all: unset;
  cursor: pointer;
}

.pagination form {
  display: inline;
}

.pagination button span {
  display: inline-block;
  margin: 0 5px;
  padding: 5px 10px;
  color: #333;
  background-color: #eee; /* كحلي فاتح */
  border: 1px solid #ddd;
  border-radius: 3px;
  text-decoration: none;
}

.pagination button span:hover {
  background-color: #63b331;
  color: white;
}

/* الزر الحالي */
.pagination button span.current {
  background-color: #63b331; /* كحلي غامق */
  color: white;
  font-weight: bold;
}