/* ✅ غلاف الشبكة */
.vertex-posts-archive {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  padding: 30px 10px;
  font-family: 'Tajawal', sans-serif;
}

/* ✅ الكارت */
.vertex-post-card {
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  background: #fff;
  padding: 10px;
  border: 1px solid #e3e3e3;
  border-radius: 8px;
  transition: border-color 0.3s;
  text-align: start;
  opacity: 0;
  animation: fadeInUp 0.6s ease forwards;
  font-family: 'Tajawal', sans-serif;
}

.vertex-post-card:hover {
  border-color: #243D80;
}

/* ✅ الصورة */
.post-thumb {
  overflow: hidden;
  border-radius: 4px;
}

.post-thumb img {
  width: 100%;
  height: 250px;
  object-fit: cover;
  transition: transform 0.4s ease;
  border-radius: 4px;
}

.vertex-post-card:hover .post-thumb img {
  transform: scale(1.08);
}

/* ✅ البيانات */
.post-meta {
  font-size: 13px;
  margin-top: 10px;
  color: #666;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.post-meta i {
  margin-inline-end: 5px;
  color: #243D80;
}

/* ✅ العنوان */
.post-title {
  font-size: 16px;
  font-weight: bold;
  margin-top: 10px;
  margin-bottom: 10px;
  color: #111;
}

.post-title a {
  color: inherit;
  text-decoration: none;
}

/* ✅ المقتطف */
.post-excerpt {
  font-size: 14px;
  color: #444;
  line-height: 1.6;
  flex-grow: 1;
  margin-bottom: 10px;
}

.post-excerpt {
    display: inline-flex
;
    align-items: end;

  
}

/* ✅ زر اقرأ المزيد */
.read-more {
  display: inline-flex;
  align-items: center;
  font-weight: bold;
  color: #243D80;
  text-decoration: none;
  font-size: 14px;
  margin-top: 15px;
  font-family: 'Tajawal', sans-serif;
}

.read-more::before {
  content: "";
  width: 30px;
  height: 2px;
  background-image: linear-gradient(to right, #243D80 20%, transparent 20%, transparent 40%, #243D80 40%, #243D80 60%, transparent 60%, transparent 80%, #243D80 80%);
  background-size: 8px 2px;
  background-repeat: repeat-x;
  display: inline-block;
  margin-inline-end: 5px;
  flex-shrink: 0;
}

/* ✅ Animation */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ✅ غلاف الباجيناشن */
.vertex-pagination-wrapper {
  margin-top: 40px;
  display: flex;
  justify-content: center;
  align-items: center;
  font-family: 'Tajawal', sans-serif;
 
}

/* ✅ قائمة الأرقام */
.vertex-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  padding: 0;
  margin: 0;
}

/* ✅ كل عنصر رقم */
.vertex-pagination li {
  display: flex;
}

/* ✅ الرابط */
.vertex-pagination .page-numbers {
  display: flex;
  justify-content: center;
  align-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: #fff;
  border: 2px solid #243D80;
  color: #243D80;
  font-weight: bold;
  font-size: 15px;
  text-decoration: none;
  transition: 0.3s ease;
  line-height: 1;
}

/* ✅ النشط أو عند التمرير */
.vertex-pagination .page-numbers.current,
.vertex-pagination .page-numbers:hover {
  background-color: #243D80;
  color: #fff;
  border-color: #243D80;
}

/* ✅ النقاط */
.vertex-pagination .page-numbers.dots {
  pointer-events: none;
  border: none;
  background: transparent;
  color: #243D80;
  font-size: 18px;
  line-height: 1;
}

/* ✅ الجوال */
@media (max-width: 480px) {
  .vertex-pagination .page-numbers {
    width: 36px;
    height: 36px;
    font-size: 14px;
  }
}

/* ✅ رسالة لا توجد نتائج */
.no-posts-message {
  text-align: center;
  color: #666;
  background: #f9f9f9;
  border: 1px dashed #ccc;
  padding: 20px;
  margin: 30px auto;
  border-radius: 8px;
  font-size: 16px;
  font-weight: bold;
  direction: rtl;
}


/* ✅ استجابة كاملة */
@media (max-width: 768px) {
  .post-thumb img {
    height: 200px;
  }
}


.page-numbers > .page-numbers {
  display: none !important;
}


