/**
 * Blog liste / kategori — kartlar ve yan sutun (ust banner: blocks/page-header)
 */

.blog-list-area {
  background: #f8fafc;
  padding-top: 2.5rem;
  padding-bottom: 3rem;
}

.blog-post-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 1rem;
  border: 1px solid #e2e8f0;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.06), 0 2px 4px -2px rgba(15, 23, 42, 0.05);
  overflow: hidden;
  transition: box-shadow 0.25s ease, transform 0.2s ease, border-color 0.2s ease;
}

@media (min-width: 768px) {
  .blog-post-card {
    flex-direction: row;
    align-items: stretch;
    min-height: 220px;
  }
}

.blog-post-card:hover {
  border-color: #cbd5e1;
  box-shadow: 0 20px 40px -12px rgba(15, 23, 42, 0.12), 0 8px 16px -8px rgba(15, 23, 42, 0.08);
  transform: translateY(-2px);
}

.blog-post-card__media {
  display: block;
  flex: 0 0 auto;
  position: relative;
  overflow: hidden;
  background: #e2e8f0;
}

@media (min-width: 768px) {
  .blog-post-card__media {
    width: 38%;
    max-width: 320px;
  }
}

.blog-post-card__img {
  width: 100%;
  height: 100%;
  min-height: 160px;
  object-fit: cover;
  transition: transform 0.45s ease;
}

@media (min-width: 768px) {
  .blog-post-card__img {
    min-height: 200px;
  }
}

.blog-post-card:hover .blog-post-card__img {
  transform: scale(1.04);
}

.blog-post-card__body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 1.5rem 1.5rem 1.5rem;
}

@media (min-width: 768px) {
  .blog-post-card__body {
    padding: 1.75rem 2rem;
  }
}

.blog-post-card__meta {
  display: block;
  font-size: 0.8125rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #64748b;
  margin-bottom: 0.5rem;
}

.blog-post-card__title {
  margin: 0 0 0.75rem;
  font-size: 1.25rem;
  font-weight: 700;
  line-height: 1.35;
  color: #0f172a;
}

.blog-post-card__title a {
  color: inherit;
  text-decoration: none;
  transition: color 0.2s ease;
}

.blog-post-card__title a:hover {
  color: #0b163f;
}

.blog-post-card__excerpt {
  font-size: 0.9375rem;
  line-height: 1.65;
  color: #64748b;
  margin-bottom: 1rem;
}

.blog-post-card__excerpt p {
  margin: 0;
}

.blog-post-card__read {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.45rem 1rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: #fff;
  background: #0b163f;
  border: none;
  border-radius: 0.5rem;
  text-decoration: none;
  transition: background 0.2s ease, transform 0.15s ease;
}

.blog-post-card__read:hover {
  background: #08122e;
  color: #fff;
  transform: translateX(2px);
}

[dir="rtl"] .blog-post-card__read:hover {
  transform: translateX(-2px);
}

.blog-widget {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 1rem;
  box-shadow: 0 4px 6px -1px rgba(15, 23, 42, 0.05);
  margin-bottom: 1.25rem;
  overflow: hidden;
}

.blog-widget:last-child {
  margin-bottom: 0;
}

.blog-widget__head {
  padding: 1rem 1.25rem;
  background: linear-gradient(180deg, #f8fafc 0%, #fff 100%);
  border-bottom: 1px solid #e2e8f0;
}

.blog-widget__title {
  margin: 0;
  font-size: 1rem;
  font-weight: 700;
  color: #0f172a;
}

.blog-widget__body {
  padding: 1.25rem;
}

.blog-widget__body .form-control {
  border-color: #e2e8f0;
}

.blog-widget__body .form-control:focus {
  border-color: rgba(11, 22, 63, 0.45);
  box-shadow: 0 0 0 3px rgba(11, 22, 63, 0.12);
}

.blog-widget__link {
  display: block;
  padding: 0.35rem 0;
  color: #334155;
  text-decoration: none;
  font-size: 0.9375rem;
  border-radius: 0.375rem;
  transition: color 0.15s ease, background 0.15s ease;
}

.blog-widget__link:hover {
  color: #0b163f;
  background: #f1f5f9;
}

.blog-widget__thumb {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: 0.5rem;
  flex-shrink: 0;
}

.blog-latest-row {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  margin-bottom: 1rem;
}

.blog-latest-row:last-child {
  margin-bottom: 0;
}

.blog-latest-row a:last-child {
  color: #334155;
  font-size: 0.875rem;
  font-weight: 500;
  line-height: 1.4;
  text-decoration: none;
}

.blog-latest-row a:last-child:hover {
  color: #0b163f;
}

.blog-list-stack {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.blog-pagination-wrap {
  margin-top: 2rem;
  padding-top: 0.5rem;
}
