/* =========================================
   استایل نهایی بخش وبلاگ (ارتفاع یکسان + ۴ خط)
   ========================================= */

/* تنظیمات اسلاید برای هم‌ارتفاع شدن */
.blogSwiper .swiper-slide {
  height: auto; /* اجازه می‌دهد اسلایدها هم‌ارتفاع شوند */
  display: flex; /* کشیدن کارت داخل اسلاید */
}

/* کارت مقاله */
.blog-card {
  width: 100%;
  display: flex;
  flex-direction: column; /* چیدمان ستونی */
  background: #fff;
  border: 1px solid #e4e4e4;
  border-radius: 20px;
  padding: 15px;
  height: 100%; /* پر کردن کل ارتفاع اسلاید */
  text-decoration: none !important;
  transition: all 0.3s ease;
  overflow: hidden;
  direction: rtl;
}

/* تصویر مقاله */
.blog-img-wrap {
  width: 100%;
  height: 200px; /* ارتفاع ثابت تصویر */
  flex-shrink: 0; /* جلوگیری از جمع شدن تصویر */
  border-radius: 15px;
  overflow: hidden;
  margin-bottom: 15px;
}

.blog-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

/* محتوای متنی */
.blog-content {
  flex-grow: 1; /* پر کردن فضای خالی */
  display: flex;
  flex-direction: column;
}

/* عنوان مقاله (۲ خط + جاستیفای) */
.blog-title {
  font-size: 16px;
  font-weight: 700;
  color: #333;
  margin-bottom: 10px;
  line-height: 1.6;
  text-align: justify;

  /* محدودیت ۲ خط */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;

  transition: color 0.3s ease;
}

/* خلاصه متن (۴ خط + جاستیفای) */
.blog-excerpt {
  font-size: 13px;
  color: #777;
  line-height: 1.8;
  text-align: justify;

  /* محدودیت ۴ خط */
  display: -webkit-box;
  -webkit-line-clamp: 4; /* دقیقاً ۴ خط */
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* --- حالت هاور (Hover) --- */
.blog-card:hover {
  border-color: #ff8c40;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
  transform: none !important;
}

.blog-card:hover .blog-title {
  color: #ff8c40;
}

.blog-card:hover .blog-img-wrap img {
  transform: scale(1.05);
}

/* --- Pagination (نقطه‌های پایین) --- */
.blogSwiper {
  padding-bottom: 50px !important;
}

.blogSwiper .swiper-pagination {
  bottom: 0 !important;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
}

.blog-pagination .swiper-pagination-bullet {
  width: 12px;
  height: 12px;
  background-color: #e6e6e6;
  opacity: 1;
  border-radius: 50%;
  margin: 0 !important;
  transition: all 0.4s cubic-bezier(0.25, 1, 0.5, 1);
}

.blog-pagination .swiper-pagination-bullet-active {
  width: 32px;
  border-radius: 100px;
  background-color: #ff8c40;
  box-shadow: 0 2px 5px rgba(255, 140, 64, 0.3);
}
