/* ────────────────────────────────
   FILTER PILLS
──────────────────────────────── */
.blog-filter__pills {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

.blog-filter__pills span {
  padding: 10px 20px;
  border: 1px solid var(--surface);
  border-radius: var(--radius-full);
  font-size: 13px;
  font-weight: 600;
  color: var(--graphite);
  cursor: pointer;
  background: var(--white);
  transition:
    background var(--duration-fast),
    color var(--duration-fast),
    border-color var(--duration-fast);
}

.blog-filter__pills span.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.blog-filter__pills span:not(.is-active):hover {
  border-color: var(--steel);
}

.blog-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-bottom: 24px;
  margin-bottom: 24px;
  border-bottom: 1px solid var(--surface);
}

.blog-toolbar__count {
  font-family: var(--font-display);
  font-size: 16px;
  color: var(--navy);
  flex-shrink: 0;
}

.blog-search {
  width: 100%;
  max-width: 380px;
  border: 1px solid var(--surface);
  border-radius: var(--radius-full);
  padding: 10px 18px;
  font-family: var(--font-body);
  font-size: 13px;
  color: var(--graphite);
  background: var(--white);
}

.blog-search:focus {
  outline: none;
  border-color: var(--steel);
}

/* ────────────────────────────────
   GRID — reused insight-card component
──────────────────────────────── */
.insight-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.insight-card {
  background: var(--white);
  border-radius: 16px;
  overflow: hidden;
  box-shadow:
    0 1px 2px rgba(10, 26, 47, 0.04),
    0 1px 8px rgba(10, 26, 47, 0.05);
  transition:
    transform 0.3s ease,
    box-shadow 0.3s ease;
}

.insight-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 20px 36px rgba(10, 26, 47, 0.12);
}

.insight-card__media {
  position: relative;
  display: block;
  aspect-ratio: 4/3;
  overflow: hidden;
}

.insight-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.insight-card:hover .insight-card__media img {
  transform: scale(1.05);
}

.insight-card__date {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--white);
  border-radius: 10px;
  padding: 7px 12px;
  text-align: center;
  line-height: 1.1;
  box-shadow: 0 4px 12px rgba(10, 26, 47, 0.18);
}

.insight-card__day {
  display: block;
  font-family: var(--font-display);
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
}

.insight-card__month {
  display: block;
  font-size: 9px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--steel);
}

.insight-card__body {
  padding: 20px;
}

.insight-card__category {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--steel);
  margin-bottom: 10px;
}

.insight-card__title {
  font-size: 17px;
  margin-bottom: 10px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.insight-card__title a {
  color: var(--navy);
  transition: color 0.2s ease;
}

.insight-card__title a:hover {
  color: var(--steel);
}

.insight-card__excerpt {
  font-size: 13px;
  color: var(--graphite);
  margin-bottom: 14px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-empty {
  text-align: center;
  padding: 60px 0;
  font-size: 15px;
  color: var(--graphite);
}

/* ────────────────────────────────
   PAGINATION — generated by js/blog-render.js
──────────────────────────────── */
.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 56px;
}

.blog-pagination a {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  color: var(--graphite);
  border: 1px solid var(--surface);
  transition:
    background var(--duration-fast),
    color var(--duration-fast);
}

.blog-pagination a:hover {
  border-color: var(--steel);
}

.blog-pagination a[aria-disabled="true"] {
  opacity: 0.35;
  pointer-events: none;
}

.blog-pagination a.is-active {
  background: var(--navy);
  color: var(--white);
  border-color: var(--navy);
}

.blog-pagination__arrow {
  font-size: 15px;
}

/* ────────────────────────────────
   RESPONSIVE
──────────────────────────────── */
@media (max-width: 1024px) {
  .insight-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 991px) {
  .insight-grid {
    grid-template-columns: 1fr;
  }

  .blog-filter__pills {
    gap: 8px;
  }

  .blog-filter__pills span {
    padding: 8px 14px;
    font-size: 12px;
  }

  .blog-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .blog-search {
    max-width: none;
  }
}
