/* =========================
   BLOG LIST (Professional)
========================= */

.blog-page {
  background: #f6f8ff;
}

.blog-container {
  max-width: 1300px; /* افزایش عرض بخش وبلاگ */
}

.blog-hero {
  background: #fff;
  border: 1px solid rgba(47, 124, 255, .18);
  border-radius: 20px;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.blog-hero::before {
  content: "";
  position: absolute;
  inset: -40% -30% auto auto;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(47, 124, 255, .16), transparent 62%);
  transform: translate(20%, -20%);
  pointer-events: none;
}

.blog-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(47, 124, 255, .08);
  color: var(--primary);
  border: 1px solid rgba(47, 124, 255, .18);
  font-weight: 900;
  font-size: 13px;
  position: relative;
  z-index: 1;
}

.blog-title {
  font-size: 26px;
  margin: 12px 0 8px;
  line-height: 1.7;
  position: relative;
  z-index: 1;
}

.blog-subtitle {
  margin: 0;
  line-height: 2;
  max-width: 75ch;
  position: relative;
  z-index: 1;
}

.blog-toolbar {
  margin-top: 14px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
  position: relative;
  z-index: 1;
}

.blog-search {
  flex: 1;
  min-width: 220px;
  display: flex;
  gap: 8px;
  align-items: center;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 8px 10px;
}

.blog-search i {
  color: #64748b;
}

.blog-search input {
  border: none;
  outline: none;
  background: transparent;
  width: 100%;
  font-family: inherit;
  font-size: 14px;
}
.blog-search {
  margin-bottom: 12px;
}

/* New button styles */
.search-btn {
  background-color: #3396D3; /* رنگ جدید */
  color: white;
  padding: 10px 20px;
  border-radius: 14px;
  cursor: pointer;
  border: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.search-btn:hover {
  background-color: #1f74b0; /* رنگ تیره‌تر در حالت hover */
}

.blog-actions {
  display: flex;
  gap: 20px;
  justify-content: flex-start;
}

.blog-actions a {
  background-color: #3396D3; /* رنگ دکمه */
  color: white;
  padding: 10px 20px;
  border-radius: 14px;
  text-decoration: none;
  font-size: 14px;
  transition: background-color 0.3s ease;
}

.blog-actions a:hover {
  background-color: #1f74b0; /* رنگ تیره‌تر در حالت hover */
}

/* کارت‌ها */
.blog-grid {
  margin-top: 14px;
  display: flex;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 20px;
}

.blog-card {
  width: 32%;
  background-color: #fff;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  transition: transform .2s ease, box-shadow .2s ease;
}

.blog-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 26px rgba(0, 0, 0, 0.06);
}

.blog-card__media {
  width: 100%;
  height: 200px;
  background-size: cover;
  background-position: center;
}

.blog-card__body {
  padding: 15px;
}

.blog-card__title {
  font-size: 18px;
  font-weight: 600;
  margin-bottom: 10px;
}

.blog-card__meta {
  margin-bottom: 10px;
}

.chip {
  background-color: #f2f2f2;
  padding: 5px 10px;
  border-radius: 16px;
  font-size: 14px;
  margin-right: 5px;
}

.blog-card__cta {
  text-decoration: none;
  color: #007bff;
  font-weight: 500;
}
