/* =============================================
   Khabco — Blog Card (Updated Design)
   ============================================= */

/* ── wrapper داخل swiper ── */
.blog-swiper .swiper-slide {
  position: relative;
  overflow: visible !important;
}

.blog-swiper .swiper-slide::after {
  content: '';
  position: absolute;
  width: 90%;
  height: 10px;
  left: 0;
  right: 0;
  bottom: -8px;
  margin: 0 auto;
  background: #e8e8e8;
  border-radius: 0 0 20px 20px;
  transition: background 0.3s ease;
  z-index: 0;
}

.blog-swiper .swiper-slide:hover::after {
  background: #0f4f59;
}

/* ── کارت اصلی ── */
.blog-card {
  background: #fff;
  border: 1px solid #e8e8e8;
  border-radius: 20px;
  overflow: hidden;
  text-decoration: none;
  display: flex;
  flex-direction: column;
  height: 100%;
  position: relative;
  z-index: 2;
  transition: all 0.3s ease;
}

/* ── تصویر با badge تاریخ - نسبت 1100x600 ── */
.blog-img {
  width: 100%;
  aspect-ratio: 1100 / 600;
  overflow: hidden;
  background: var(--c-bg-soft);
  position: relative;
  flex-shrink: 0;
  border-radius: 20px 20px 0 0;
  display: block;
  text-decoration: none;
}

.blog-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* ── Badge تاریخ ── */
.blog-date-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: #f5f5f5;
  border-radius: 6px;
  overflow: hidden;
  text-align: center;
  min-width: 50px;
  max-width: 50px;
  box-shadow: 0 3px 6px 0 rgba(0, 0, 0, 0.12);
  z-index: 3;
}

.date-day {
  font-size: 20px;
  font-weight: 500;
  color: #1a1a1a;
  line-height: 1;
  background: #fff;
  padding: 6px 8px;
  border-bottom: 1px solid #d8d8d8;
}

.date-month {
  font-size: 10px;
  font-weight: 500;
  color: #666;
  background: #f5f5f5;
  padding-top: 5px;
}

.date-year {
  font-size: 12px;
  color: #666;
  background: #f5f5f5;
  padding: 0 8px 5px;
}

/* ── بدنه ── */
.blog-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}

/* ── عنوان ── */
.blog-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--c-text);
  line-height: 1.5;
  margin: 0 0 12px 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  word-break: break-word;
  height: 27px;
}

.blog-title a {
  font-size: 14px;
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-title a:hover {
  color: #0f4f59;
}

/* ── خلاصه متن ── */
.blog-excerpt {
  font-size: 13px;
  font-weight: 300;
  color: #242424;
  line-height: 1.7;
  margin: 0 0 16px 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: normal;
  text-align: justify;
  word-break: break-word;
  height: 47.6px;
}

/* ── فوتر با خط جداکننده ── */
.blog-footer {
  margin-top: auto;
}

.blog-divider {
  height: 1px;
  background: #e0e0e0;
  margin-bottom: 16px;
}

/* ── دکمه ادامه مطلب ── */
.blog-read-more {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: #1a1a1a;
  text-decoration: none;
  transition: gap 0.3s ease, color 0.3s ease;
  width: fit-content;
  margin-right: auto;
}

.blog-read-more svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  fill: none;
  stroke-width: 2;
  transition: transform 0.3s ease;
}

.blog-read-more:hover {
  gap: 10px;
  color: #0f4f59;
}

.blog-read-more:hover svg {
  transform: translateX(-3px);
}

/* =============================================
   Blog Card در blog-grid (بدون swiper)
   ============================================= */

.blog-grid {
  padding-bottom: 16px;
}

.blog-grid > .blog-card {
  position: relative;
  overflow: visible;
}

.blog-grid > .blog-card::after {
  content: '';
  position: absolute;
  width: 90%;
  height: 8px;
  left: 0;
  right: 0;
  bottom: -7px;
  margin: 0 auto;
  background: #e8e8e8;
  border-radius: 0 0 20px 20px;
  transition: background 0.3s ease;
  z-index: 0;
}

.blog-grid > .blog-card:hover::after {
  background: #0f4f59;
}
