/*
=============================================================
Blog Archive Grid — Fluent Snippet CSS (site-wide)
Shortcode: [sgc_blog_grid]
3-column card grid with pagination. Title only, teal hover lift,
matches the .sg-card / .sg-project-card design system already
used on Insights, Projects, and Community.
=============================================================
*/

/* ── Grid ── */
.sg-blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  margin-top: 8px;
}

@media (max-width: 900px) {
  .sg-blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .sg-blog-grid {
    grid-template-columns: 1fr;
  }
}

/* ── Card ── */
.sg-blog-card {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 140px;
  padding: 28px 24px;
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-top: 3px solid var(--sg-teal, #00c2cb);
  border-radius: var(--sg-radius, 14px);
  text-decoration: none;
  text-align: center;
  transition: transform 0.22s ease, border-color 0.22s ease, box-shadow 0.22s ease;
}

.sg-blog-card:hover,
.sg-blog-card:focus {
  transform: translateY(-4px);
  border-color: rgba(0, 194, 203, 0.4);
  box-shadow: 0 12px 28px rgba(0, 194, 203, 0.14);
}

.sg-blog-card__title {
  color: var(--sg-text, #1a1a1a) !important;
  font-size: clamp(0.98rem, 0.88rem + 0.4vw, 1.1rem) !important;
  font-weight: 700 !important;
  letter-spacing: normal !important;
  line-height: 1.4;
  margin: 0 !important;
}

/* ── Empty state ── */
.sg-blog-empty {
  color: var(--sg-text-mid, #4a5568);
  text-align: center;
}

/* ── Pagination ── */
.sg-blog-pagination {
  margin-top: 48px;
  display: flex;
  justify-content: center;
}

.sg-blog-pagination ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}

.sg-blog-pagination li a,
.sg-blog-pagination li span {
  display: block;
  padding: 8px 16px;
  background: #ffffff;
  border: 1px solid #e8ecf0;
  border-radius: 6px;
  color: var(--sg-text, #1a1a1a) !important;
  text-decoration: none;
  font-size: 0.9rem;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

.sg-blog-pagination li a:hover {
  border-color: var(--sg-teal, #00c2cb);
  color: var(--sg-teal, #00c2cb) !important;
}

.sg-blog-pagination li span.current {
  background: var(--sg-teal, #00c2cb);
  border-color: var(--sg-teal, #00c2cb);
  color: #ffffff !important;
  font-weight: 700;
}
