.blog-list {
  padding: 80px 40px;
  max-width: 1400px;
  margin: auto;
  font-family: 'IranSans', sans-serif;
  color: white;
}

.blog-header {
  text-align: center;
  margin-bottom: 40px;
}

.blog-header h2 {
  font-size: 36px;
  font-weight: bold;
  margin-bottom: 20px;
  color: white;
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 20px;
}

.blog-search,
.blog-category,
.blog-sort {
  padding: 10px 16px;
  border-radius: 6px;
  border: none;
  font-size: 15px;
  min-width: 200px;
  background-color: rgba(255,255,255,0.9);
  color: #002f5f;
}

.blog-filter-btn {
  background-color: #005baa;
  color: white;
  padding: 10px 20px;
  border-radius: 6px;
  font-weight: bold;
  border: none;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.blog-filter-btn:hover {
  background-color: #0074cc;
}

/* لیست مطالب */
.blog-items {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.blog-card {
  display: flex;
  background-color: rgba(255,255,255,0.95);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.blog-thumb {
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
  max-height: 400px;
  border-radius: 8px;
}



.blog-content {
  padding: 20px;
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.blog-tag {
  background-color: #005baa;
  color: white;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
  margin-bottom: 10px;
}

.blog-content h3 {
  font-size: 20px;
  margin-bottom: 10px;
  color: #002f5f;
}

.blog-content p {
  font-size: 15px;
  line-height: 1.8;
  color: #333;
  margin-bottom: 12px;
}

.blog-meta {
  font-size: 13px;
  color: #777;
  display: flex;
  justify-content: space-between;
  margin-bottom: 10px;
}

.blog-read {
  align-self: flex-start;
  background-color: #005baa;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.blog-read:hover {
  background-color: #0074cc;
}

/* صفحه‌بندی */
.blog-pagination {
  margin-top: 60px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.page-link {
  background-color: rgba(255,255,255,0.8);
  color: #002f5f;
  padding: 8px 14px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.page-link:hover {
  background-color: #005baa;
  color: white;
}

.page-link.active {
  background-color: #002f5f;
  color: white;
}

/* ریسپانسیو موبایل */
@media (max-width: 768px) {
  .blog-card {
    flex-direction: column;
  }

  .blog-thumb {
    width: 100%;
    height: 200px;
    object-fit: cover;
  }

  .blog-filters {
    flex-direction: column;
    align-items: center;
  }

  .blog-search,
  .blog-category,
  .blog-sort {
    width: 90%;
  }

  .blog-filter-btn {
    width: 90%;
  }
}

footer {
  margin-bottom: 0;
  padding-top: 40px;
  margin-top: 80px;
  bottom: 0px;
}

.blog-items {
  display: flex;
  flex-wrap: wrap;
  gap: 32px;
  justify-content: center;
  padding: 40px 20px;
}

/* هر کارت مقاله */
.blog-card {
  width: calc(33.333% - 22px); /* ✅ سه‌ستونه با فاصله */
  background-color: rgba(255,255,255,0.95);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 12px rgba(0,0,0,0.08);
  display: flex;
  flex-direction: column;
}

/* تصویر مقاله با نسبت ثابت */
.blog-thumb {
  width: 100%;
  aspect-ratio: 16 / 9; /* ✅ نسبت تصویر ثابت */
  overflow: hidden;
}

.blog-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* محتوای مقاله */
.blog-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.blog-tag {
  background-color: #005baa;
  color: white;
  font-size: 13px;
  padding: 4px 10px;
  border-radius: 4px;
  display: inline-block;
}

.blog-content h3 {
  font-size: 18px;
  color: #002f5f;
  margin: 0;
}

.blog-content p {
  font-size: 14px;
  line-height: 1.8;
  color: #333;
  margin: 0;
}

.blog-meta {
  font-size: 13px;
  color: #777;
  display: flex;
  justify-content: space-between;
}

.blog-read {
  align-self: flex-start;
  background-color: #005baa;
  color: white;
  padding: 8px 16px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: bold;
  transition: background-color 0.3s ease;
}

.blog-read:hover {
  background-color: #0074cc;
}
@media (max-width: 768px) {
  .blog-card {
    width: 100%;
  }

  .blog-thumb {
    aspect-ratio: 4 / 3;
  }

  .blog-content h3 {
    font-size: 16px;
  }

  .blog-content p {
    font-size: 13px;
  }
}
