/* ========================================
   Blog Category Hub — matches site light theme
   Scoped to body.blog-hub
   ======================================== */

body.blog-hub {
  background: var(--page);
  color: var(--text);
  font-family: 'Inter', system-ui, sans-serif;
}

body.blog-hub .breadcrumb-bar {
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}

body.blog-hub .breadcrumb {
  font-size: 13px;
  color: var(--text-muted);
}

body.blog-hub .breadcrumb a {
  color: var(--text-2);
}

body.blog-hub .breadcrumb a:hover {
  color: var(--brand-600);
}

body.blog-hub .breadcrumb__current {
  color: var(--text);
  font-weight: 500;
}

/* Hero */
.blog-hero {
  padding: 48px 0 40px;
  border-bottom: 1px solid var(--border);
  background: linear-gradient(180deg, var(--surface-alt) 0%, var(--surface) 100%);
}

.blog-hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 32px;
  align-items: start;
}

.blog-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 14px;
}

.blog-hero__dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--ok-500);
}

.blog-hero__title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(2rem, 4.5vw, 2.75rem);
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 1.08;
  color: var(--text);
  margin: 0 0 12px;
}

.blog-hero__title em {
  font-style: normal;
  color: var(--brand-600);
}

.blog-hero__desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-2);
  max-width: 52ch;
  margin: 0 0 24px;
}

.blog-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.blog-hero__cta {
  display: inline-flex;
  align-items: center;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 600;
  transition: background var(--ease), color var(--ease), border-color var(--ease), box-shadow var(--ease);
}

.blog-hero__cta--primary {
  background: var(--brand-600);
  color: #fff;
  box-shadow: var(--shadow-sm);
}

.blog-hero__cta--primary:hover {
  background: var(--brand-700);
  color: #fff;
}

.blog-hero__cta--ghost {
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text);
}

.blog-hero__cta--ghost:hover {
  border-color: var(--brand-200);
  color: var(--brand-600);
}

.blog-hero__panel {
  display: grid;
  gap: 12px;
  padding: 20px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.blog-hero__stat {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  border-radius: var(--r-sm);
  background: var(--surface-alt);
  border: 1px solid var(--border);
}

.blog-hero__stat-val {
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.blog-hero__stat-lbl {
  font-size: 13px;
  color: var(--text-2);
  text-align: right;
}

/* Sections */
.blog-section {
  padding: var(--sp-12) 0;
}

.blog-section--alt {
  background: var(--surface-alt);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.blog-section--compact {
  padding: var(--sp-8) 0 var(--sp-12);
}

.blog-section__head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: var(--sp-4);
  margin-bottom: var(--sp-8);
}

.blog-section__kicker {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: var(--sp-2);
}

.blog-section__kicker::before {
  content: '';
  width: 18px;
  height: 2px;
  background: var(--accent-500);
  border-radius: 2px;
}

.blog-section__title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: clamp(1.375rem, 2.5vw, 1.75rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
}

.blog-section__link,
.blog-section__meta {
  font-size: 14px;
  font-weight: 600;
  color: var(--brand-600);
  white-space: nowrap;
}

.blog-section__link:hover {
  color: var(--brand-700);
}

.blog-section__meta {
  color: var(--text-muted);
}

/* Featured grid */
.blog-featured {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  grid-template-rows: auto auto;
  gap: 20px;
}

.blog-featured-card {
  display: flex;
  flex-direction: column;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease);
}

.blog-featured-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-md);
}

.blog-featured-card--lead {
  grid-row: span 2;
}

.blog-featured-card--lead .blog-featured-card__media {
  min-height: 280px;
}

.blog-featured-card__media {
  position: relative;
  display: block;
  min-height: 180px;
  background: var(--surface-alt);
  overflow: hidden;
}

.blog-featured-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.blog-featured-card:hover .blog-featured-card__media img {
  transform: scale(1.03);
}

.blog-featured-card__badge {
  position: absolute;
  top: 12px;
  left: 12px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--brand-700);
  background: var(--brand-50);
  border: 1px solid var(--brand-200);
  padding: 4px 10px;
  border-radius: var(--r-pill);
}

.blog-featured-card__body {
  padding: 20px 22px 24px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.blog-featured-card__date {
  font-size: 12px;
  color: var(--text-muted);
  margin-bottom: 8px;
}

.blog-featured-card__title {
  font-size: 1.0625rem;
  font-weight: 700;
  line-height: 1.35;
  margin-bottom: 8px;
}

.blog-featured-card--lead .blog-featured-card__title {
  font-size: 1.25rem;
}

.blog-featured-card__title a {
  color: var(--text);
}

.blog-featured-card__title a:hover {
  color: var(--brand-600);
}

.blog-featured-card__excerpt {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 16px;
  flex: 1;
}

.blog-featured-card__cta {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-600);
}

.blog-featured-card__cta:hover {
  color: var(--brand-700);
}

.image-placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
  min-height: inherit;
  background: var(--surface-alt);
}

.image-placeholder--sm {
  min-height: 140px;
}

/* Article cards */
.blog-articles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.blog-article-card {
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--ease), border-color var(--ease), transform var(--ease);
}

.blog-article-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand-200);
  box-shadow: var(--shadow-md);
}

.blog-article-card__media {
  display: block;
  height: 150px;
  background: var(--surface-alt);
  overflow: hidden;
}

.blog-article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.blog-article-card__body {
  padding: 16px 18px 20px;
}

.blog-article-card__date {
  display: block;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.blog-article-card__title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 8px;
}

.blog-article-card__title a {
  color: var(--text);
}

.blog-article-card__title a:hover {
  color: var(--brand-600);
}

.blog-article-card__excerpt {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: 12px;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-article-card__link {
  font-size: 13px;
  font-weight: 600;
  color: var(--brand-600);
}

.blog-article-card__link:hover {
  color: var(--brand-700);
}

/* Brand chips */
.blog-brands {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.blog-brand-card {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--ease), box-shadow var(--ease);
}

.blog-brand-card:hover {
  border-color: var(--brand-200);
  box-shadow: var(--shadow-md);
}

.blog-brand-card__logo {
  width: 40px;
  height: 40px;
  border-radius: var(--r-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 800;
  color: #fff;
  flex-shrink: 0;
  overflow: hidden;
}

.blog-brand-card__logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.blog-brand-card__name {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.blog-brand-card__arrow {
  font-size: 14px;
  color: var(--text-muted);
  transition: color var(--ease);
}

.blog-brand-card:hover .blog-brand-card__arrow {
  color: var(--brand-600);
}

/* Insight */
.blog-insight {
  padding: 32px;
  border-radius: var(--r);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
}

.blog-insight__glow {
  display: none;
}

.blog-insight__kicker {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-600);
  margin-bottom: 8px;
}

.blog-insight__title {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  font-size: 1.375rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text);
  margin-bottom: 20px;
}

.blog-insight__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.blog-insight__grid p {
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  margin: 0;
}

/* Pagination */
.blog-pagination {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
}

.blog-pagination__btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border);
  background: var(--surface);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: background var(--ease), color var(--ease);
}

.blog-pagination__btn:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.blog-pagination__btn--disabled {
  opacity: 0.4;
  pointer-events: none;
}

.blog-pagination__pages {
  display: flex;
  gap: 4px;
}

.blog-pagination__page {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border-radius: var(--r-sm);
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  transition: background var(--ease), color var(--ease);
}

.blog-pagination__page:hover {
  background: var(--surface-alt);
  color: var(--text);
}

.blog-pagination__page--active {
  background: var(--brand-600);
  color: #fff;
}

.blog-pagination__page--active:hover {
  background: var(--brand-700);
  color: #fff;
}

/* Responsive */
@media (max-width: 1024px) {
  .blog-hero__inner {
    grid-template-columns: 1fr;
  }

  .blog-featured {
    grid-template-columns: 1fr;
  }

  .blog-featured-card--lead {
    grid-row: auto;
  }

  .blog-articles {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-brands {
    grid-template-columns: repeat(2, 1fr);
  }

  .blog-insight__grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding: 36px 0 32px;
  }

  .blog-section {
    padding: 40px 0;
  }

  .blog-articles,
  .blog-brands {
    grid-template-columns: 1fr;
  }

  .blog-section__head {
    flex-direction: column;
    align-items: flex-start;
  }

  .blog-insight {
    padding: 24px 20px;
  }
}
