/* ════════════════════════════════════════
   BLOG GRID SECTION
════════════════════════════════════════ */
.blog-section {
  background: #f3f4f6;
  padding: 112px 24px;
  margin-top: 80px;
}
.blog-inner {
  max-width: 1280px;
  margin: 0 auto;
}
.blog-heading {
  text-align: center;
  margin-bottom: 80px;
}
.blog-title {
  font-size: 36px;
  font-weight: 800;
  font-family: var(--font-heading);
  color: #111;
  letter-spacing: -0.6px;
  margin-bottom: 10px;
}
.blog-sub {
  font-size: 16px;
  color: #9ca3af;
}
.blog-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px 24px;
}

/* Card — white bg, fully rounded (rounded-3xl = 24px) */
.blog-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 24px;
  overflow: hidden;
  cursor: pointer;
  transition: box-shadow 0.2s;
}
.blog-card:hover { box-shadow: 0 8px 40px rgba(0,0,0,0.1); }

/* Image — top corners only (image sits flush inside card top) */
.blog-card-img {
  position: relative;
  overflow: hidden;
  aspect-ratio: 4 / 3;
  flex-shrink: 0;
}
.blog-card-img img {
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}
.blog-card:hover .blog-card-img img { transform: scale(1.04); }

.blog-card-badge {
  position: absolute;
  top: 12px; left: 12px;
  padding: 5px 14px;
  border-radius: 100px;
  font-size: 13px;
  font-weight: 600;
  background: #fff;
}
.blog-badge--blue   { color: #1d4ed8; }
.blog-badge--red    { color: #dc2626; }
.blog-badge--green  { color: #15803d; }
.blog-badge--amber  { color: #b45309; }
.blog-badge--purple { color: #7e22ce; }
.blog-badge--teal   { color: #0f766e; }

.blog-card-play {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 44px; height: 44px;
  border-radius: 50%;
  border: none;
  background: rgba(30, 30, 30, 0.55);
  backdrop-filter: blur(6px);
  color: #fff;
  display: grid; place-items: center;
  cursor: pointer;
  transition: background 0.2s, transform 0.2s;
  padding-left: 2px;
}
.blog-card:hover .blog-card-play {
  background: rgba(0,0,0,0.85);
  transform: translate(-50%, -50%) scale(1.1);
}

.blog-card-body {
  padding: 16px 20px 20px;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.blog-card-avatar {
  width: 32px; height: 32px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.blog-card-author { font-size: 14px; font-weight: 500; color: #111; }
.blog-card-dot    { font-size: 14px; color: #d1d5db; }
.blog-card-date   { font-size: 14px; color: #9ca3af; }

.blog-card-title {
  font-size: 18px;
  font-weight: 700;
  font-family: var(--font-heading);
  color: #111;
  line-height: 1.4;
  letter-spacing: -0.2px;
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-stats {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
}

/* Pill buttons — like & comment */
.blog-stat {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px 0 8px;
  border-radius: 100px;
  font-size: 12px;
  font-weight: 500;
  border: none;
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
  background: #f9fafb;
  color: #6b7280;
  white-space: nowrap;
}
.blog-stat svg { width: 15px; height: 15px; flex-shrink: 0; }

/* Like pill — rose bg */
.blog-stat--like {
  background: #fff1f2;
  color: #e11d48;
}
.blog-stat--like svg { fill: none; stroke: currentColor; }

/* Liked (active) */
.blog-stat--liked {
  background: #fff1f2;
  color: #e11d48;
}
.blog-stat--liked svg { fill: #e11d48; stroke: none; }

/* Comment pill — neutral bg, teal hover */
.blog-stat--comment { background: #f3f4f6; color: #6b7280; }
.blog-stat--comment:hover { background: #f0fdfa; color: #0f766e; }

.blog-stat-read {
  font-size: 13px;
  color: #9ca3af;
  margin-left: auto;
  white-space: nowrap;
}
.blog-bookmark {
  background: none;
  border: none;
  padding: 4px;
  color: #9ca3af;
  cursor: pointer;
  display: grid; place-items: center;
  transition: color 0.15s;
}
.blog-bookmark:hover { color: #111; }

@media (max-width: 1024px) {
  .blog-grid { grid-template-columns: repeat(2, 1fr); gap: 28px 20px; }
}
@media (max-width: 540px) {
  .blog-grid { grid-template-columns: 1fr; }
  .blog-title { font-size: 26px; }
  .blog-section { padding: 64px 16px; }
}
