/* ─── Blog Hero ──────────────────────────────────────────────── */

.blog-hero {
  background-image: url('../../img/blog/blog-hero.webp');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  display: flex;
  flex-direction: column;
  gap: 50px;
  padding-bottom: 80px;
}

.blog-hero__breadcrumb-wrap {
  width: 100%;
  max-width: 1680px;
  margin-inline: auto;
  padding: 10px 20px;
}

.blog-hero__breadcrumb {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px;
  font-family: var(--font-base);
  font-size: var(--fs-sm);
  font-weight: var(--fw-regular);
  line-height: var(--lh-base);
}

.blog-hero__crumb {
  color: rgba(255, 255, 255, 0.6);
  transition: color var(--transition-fast);
}

a.blog-hero__crumb:hover {
  color: var(--color-white);
}

.blog-hero__crumb--active {
  font-weight: var(--fw-medium);
  color: rgba(255, 255, 255, 0.8);
}

.blog-hero__sep {
  color: rgba(255, 255, 255, 0.4);
}

.blog-hero__wrp {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  max-width: 850px;
  margin-inline: auto;
  flex: 1;
  justify-content: center;
}

.blog-hero__title {
  font-family: var(--font-base);
  font-size: var(--fs-3xl);
  font-weight: var(--fw-medium);
  color: var(--color-white);
  line-height: var(--lh-tight);
  letter-spacing: var(--ls-heading);
  text-transform: uppercase;
}

/* ─── Blog Posts ─────────────────────────────────────────────── */

.blog-posts {
  padding: 80px 0;
  background-color: var(--color-white);
}

.blog-posts__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 60px 30px;
  margin-bottom: 60px;
}

.blog-posts__more {
  display: flex;
  justify-content: center;
}

/* Post card */
.post-card {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.post-card--hidden {
  display: none;
}

.post-card__img-wrap {
  display: block;
  height: 260px;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  flex-shrink: 0;
}

.post-card__img {
  width: 100%;
  height: 100%;
  /* contain (not cover) so featured images of varying aspect ratios are shown
     in full inside the fixed 260px box instead of being cropped — matches the
     catalog/product-card treatment. */
  object-fit: contain;
  transition: transform var(--transition-slow);
}

.post-card__img-wrap:hover .post-card__img {
  transform: scale(1.04);
}

.post-card__body {
  display: flex;
  flex-direction: column;
  gap: 24px;
  padding: 0 16px;
}

.post-card__title {
  font-family: var(--font-base);
  font-size: var(--fs-base);
  font-weight: var(--fw-medium);
  color: var(--color-dark);
  line-height: var(--lh-snug);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: calc(var(--fs-base) * var(--lh-snug) * 3);
}

.post-card__title a {
  color: inherit;
  transition: color var(--transition-fast);
}

.post-card__title a:hover {
  color: var(--color-red);
}

.post-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 40px;
}

.post-card__date {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-base);
  font-size: var(--fs-base);
  font-weight: var(--fw-ultralight);
  color: var(--color-dark);
  line-height: var(--lh-base);
  white-space: nowrap;
  flex-shrink: 0;
}

.post-card__read {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-base);
  font-size: var(--fs-sm);
  font-weight: var(--fw-medium);
  color: var(--color-dark-1);
  letter-spacing: 0.02em;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

.post-card__read:hover {
  color: var(--color-red);
}

/* ─── Responsive ────────────────────────────────────────────── */

@media (max-width: 1024px) {
  .blog-hero__title {
    font-size: var(--fs-2xl);
  }

  .blog-posts {
    padding: 60px 0;
  }

  .blog-posts__grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 40px 24px;
  }
}

@media (max-width: 767px) {
  .blog-hero {
    gap: 20px;
    padding-bottom: 40px;
  }

  .blog-hero__title {
    font-size: var(--fs-xl);
  }

  .blog-posts {
    padding: 40px 0;
  }

  .blog-posts__grid {
    grid-template-columns: 1fr;
    gap: 40px;
    margin-bottom: 40px;
  }
}
