/* Blog archive: featured hero + card grid. */

.blog-archive-head {
  max-width: 640px;
  margin: 0 auto 48px;
  text-align: center;
}

.blog-archive-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  margin-bottom: 14px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brand-primary);
  background: color-mix(in srgb, var(--brand-primary) 10%, #fff);
  border-radius: 999px;
}

.blog-archive-head h2 {
  margin: 0 0 12px;
  color: var(--brand-text);
}

.blog-archive-head p {
  margin: 0;
  color: #6b6b6b;
}

/* ===== Featured hero ===== */
.blog-hero {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 0;
  margin-bottom: 48px;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 20px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.3s ease;
}

.blog-hero:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 36px rgba(0, 0, 0, 0.08);
}

.blog-hero-media {
  position: relative;
  min-height: 340px;
  background: #f4f4f4;
  overflow: hidden;
}

.blog-hero-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-hero:hover .blog-hero-media img {
  transform: scale(1.04);
}

.blog-hero-body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 14px;
  padding: 40px;
}

.blog-hero-body h3 {
  margin: 0;
  font-size: 30px;
  line-height: 1.25;
  color: var(--brand-text);
}

.blog-hero-body p {
  margin: 0;
  color: #6b6b6b;
  line-height: 1.7;
}

/* ===== Card grid ===== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}

.blog-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  background: #fff;
  border: 1px solid #ececec;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.blog-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.08);
}

.blog-card-media {
  position: relative;
  aspect-ratio: 16 / 10;
  background: #f4f4f4;
  overflow: hidden;
}

.blog-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.blog-card:hover .blog-card-media img {
  transform: scale(1.05);
}

.blog-card-media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
}

.blog-card-media--placeholder img {
  width: 40%;
  height: auto;
  object-fit: contain;
  opacity: 0.6;
}

.blog-card-body {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 10px;
  padding: 22px;
}

.blog-card-body h6 {
  margin: 0;
  font-size: 18px;
  line-height: 1.4;
  color: var(--brand-text);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-card-body p {
  margin: 0;
  color: #6b6b6b;
  font-size: 15px;
  line-height: 1.65;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.blog-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 14px;
  font-size: 13px;
  color: #8a8a8a;
}

.blog-meta i {
  margin-right: 5px;
  color: var(--brand-primary);
}

.blog-more {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 6px;
  font-weight: 600;
  color: var(--brand-primary);
}

.blog-more i {
  transition: transform 0.25s ease;
}

.blog-card:hover .blog-more i,
.blog-hero:hover .blog-more i {
  transform: translateX(5px);
}

.blog-empty {
  padding: 60px 0;
  text-align: center;
  color: #6b6b6b;
}

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

  .blog-hero-media {
    min-height: 240px;
  }

  .blog-hero-body {
    padding: 28px;
  }

  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

  .blog-hero-body h3 {
    font-size: 24px;
  }
}
