/* ✅ السلايدر نفسه */
.swiper-slide {
    display: flex;
    flex: 1 0 auto; /* كل سلايد ياخذ مساحة متساوية */
    height: auto;
}

/* ✅ الغلاف */
.vertex-posts-swiper-wrapper {
    
    position: relative;
      padding: 20px 5px;
}

/* ✅ البطاقة */
.vertex-post-card {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: flex-start;
    background: #fff;
  
    border: 1px solid #e3e3e3;
    border-radius: 8px;
    transition: border-color 0.3s;
 
    text-align: start;
    height: 100%;
    min-height: 100%; /* لحماية إضافية */
}

/* ✅ الهوفر */
.vertex-post-card:hover {
    border-color: #243D80;
}

/* ✅ الصورة */
.post-thumb img {
    width: 100%;
    border-radius: 4px;
}

/* ✅ المعلومات */
.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;
}

/* ✅ زر اقرأ المزيد */
.read-more {
    display: inline-flex;
    align-items: center; /* ✅ يوسّط الخط مع الكلمة عموديًا */
    font-weight: bold;
    color: #243D80;
    text-decoration: none;
    font-size: 14px;
    margin-top: 15px;
}

.read-more::before {
    content: "";
    width: 30px;
    height: 2px;
    background-color: #243D80;
    display: inline-block;
    margin-inline-end: 5px;
    flex-shrink: 0;
}


/* ✅ Pagination */
.swiper-pagination {
    text-align: center;
    margin-top: 20px;
    position: relative!important;
    z-index: 1;
}

.swiper-pagination-bullet {
    background: transparent;
    border: 2px solid #243D80;
    opacity: 1;
    margin: 0 4px !important;
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

.swiper-pagination-bullet-active {
    background: #243D80;
}


.swiper-slide {
    height: auto !important;
    display: flex;
}


.swiper-slide a {
    display: flex!important
;
}

.post-thumb {
    overflow: hidden;
    border-radius: 4px;
}

.post-thumb {
    overflow: hidden;
    border-radius: 4px;
}

.post-thumb img {
    width: 100%;
    height: 300px!important; /* حدد ارتفاع ثابت */
    object-fit: cover; /* ✅ يحافظ على تغطية كاملة */
    transition: transform 0.4s ease;
}

.vertex-post-card:hover .post-thumb img {
    transform: scale(1.08); /* ✅ الزوم */
}



.no-events-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;
}

.vertex-post-card {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
}

/* لودر السلايدر */
.vertex-slider-loader {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 150px;
  font-size: 16px;
  color: #666;
  font-family: 'Cairo', sans-serif;
}


/*لاظهار الحواف الخارجية */
.vertex-post-card {
    padding: 10px;
}



.shimmer {
  background: linear-gradient(90deg, #eeeeee 25%, #dddddd 50%, #eeeeee 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
}

@keyframes shimmer {
  0% { background-position: -200% 0; }
  100% { background-position: 200% 0; }
}


/* ✅ نحاكي Swiper يدويًا أثناء سكليتون */
.skeleton-loading .swiper-wrapper {
  display: flex;
  flex-wrap: nowrap;
}

.skeleton-loading .swiper-slide {
  width: calc(100% / 3); /* ⚠️ هذا مهم: يقسم العرض على 3 */
  flex-shrink: 0;
  box-sizing: border-box;
  padding: 0 10px;
}

@media (max-width: 768px) {
  .skeleton-loading .swiper-slide {
    width: 100%;
  }
}

@media (min-width: 769px) and (max-width: 1023px) {
  .skeleton-loading .swiper-slide {
    width: 50%;
  }
}


.lazy-dynamic-posts-slider {
  width: 100%;
  min-width: 300px;
  flex-grow: 1;
}
