/* ========================================
   BLOG HERO
   ======================================== */
.blog-hero {
  position: relative;
  padding: 160px 0 80px;
  overflow: hidden;
}

.blog-hero__glow {
  position: absolute;
  top: -100px;
  right: -200px;
  width: 800px;
  height: 800px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 165, 92, 0.07) 0%, transparent 65%);
  pointer-events: none;
}

.blog-hero__glow-left {
  position: absolute;
  bottom: -200px;
  left: -300px;
  width: 600px;
  height: 600px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 165, 92, 0.04) 0%, transparent 65%);
  pointer-events: none;
}

.blog-hero__lines {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.blog-hero__lines span {
  position: absolute;
  top: 0;
  width: 1px;
  height: 100%;
  background: linear-gradient(to bottom, transparent, var(--border-subtle) 30%, var(--border-subtle) 70%, transparent);
}

.blog-hero__lines span:nth-child(1) { right: 20%; }
.blog-hero__lines span:nth-child(2) { right: 55%; opacity: 0.5; }
.blog-hero__lines span:nth-child(3) { right: 80%; opacity: 0.3; }

.blog-hero__inner {
  position: relative;
  z-index: 2;
}

.blog-hero__headline {
  max-width: 700px;
  opacity: 0;
  animation: blogFadeUp 0.8s var(--ease-out) 0.2s forwards;
}

.blog-hero__headline .italic {
  color: var(--accent-gold-bright);
}

.blog-hero__sub {
  max-width: 560px;
  margin-top: 20px;
  opacity: 0;
  animation: blogFadeUp 0.8s var(--ease-out) 0.4s forwards;
}

@keyframes blogFadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   CATEGORY FILTER
   ======================================== */
.blog-categories {
  border-top: 1px solid var(--border-subtle);
  border-bottom: 1px solid var(--border-subtle);
  padding: 20px 0;
  position: relative;
  z-index: 2;
}

.blog-categories__inner {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.blog-categories__label {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-right: 8px;
}

.blog-cat-pill {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--text-secondary);
  background: transparent;
  border: 1px solid var(--border-subtle);
  padding: 7px 18px;
  border-radius: 100px;
  transition: all 0.3s var(--ease-out);
  cursor: pointer;
  text-decoration: none;
}

.blog-cat-pill:hover,
.blog-cat-pill.active {
  color: var(--bg-deep);
  background: var(--accent-gold);
  border-color: var(--accent-gold);
}

/* ========================================
   BLOG GRID
   ======================================== */
.blog-grid-wrap {
  padding: 60px 0 120px;
}

/* WordPress post-template grid overrides */
.blog-grid-wrap .wp-block-post-template {
  gap: 40px !important;
}

.blog-grid-wrap .wp-block-post-template.is-layout-grid {
  grid-template-columns: repeat(2, 1fr) !important;
}

/* Each post in the grid */
.blog-grid-wrap .wp-block-post {
  margin: 0;
}

/* ========================================
   BLOG CARD
   ======================================== */
.blog-card-v2,
.wp-block-group.blog-card-v2 {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 6px;
  overflow: hidden;
  transition: all 0.4s var(--ease-out);
  padding: 0 !important; /* override WP group padding */
}

.blog-card-v2:hover {
  border-color: var(--border-medium);
  transform: translateY(-4px);
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.3);
}

/* Featured image area */
.blog-card-v2 .wp-block-post-featured-image,
.blog-card-v2__img {
  position: relative;
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  margin: 0 !important;
}

.blog-card-v2 .wp-block-post-featured-image img,
.blog-card-v2__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s var(--ease-out);
}

.blog-card-v2:hover .wp-block-post-featured-image img,
.blog-card-v2:hover .blog-card-v2__img img {
  transform: scale(1.04);
}

/* Placeholder when no featured image */
.blog-card-v2__img-placeholder {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--bg-elevated) 0%, var(--bg-surface) 100%);
  position: relative;
}

.blog-card-v2__img-placeholder::after {
  content: '';
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(200, 165, 92, 0.15) 0%, transparent 70%);
}

/* Card body */
.blog-card-v2__body,
.wp-block-group.blog-card-v2__body {
  padding: 28px 28px 32px !important;
}

/* Meta row (category + date) */
.blog-card-v2__meta,
.wp-block-group.blog-card-v2__meta {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
}

/* Category badge */
.blog-card-v2 .wp-block-post-terms,
.blog-card-v2__category {
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent-gold);
}

.blog-card-v2 .wp-block-post-terms a {
  color: var(--accent-gold);
  text-decoration: none;
  background: rgba(200, 165, 92, 0.1);
  padding: 4px 10px;
  border-radius: 3px;
  transition: background 0.3s;
}

.blog-card-v2 .wp-block-post-terms a:hover {
  background: rgba(200, 165, 92, 0.2);
}

/* Date */
.blog-card-v2 .wp-block-post-date,
.blog-card-v2__date {
  font-size: 0.78rem;
  color: var(--text-muted);
}

/* Title */
.blog-card-v2 .wp-block-post-title,
.blog-card-v2__title {
  font-family: var(--font-display);
  font-size: 1.35rem;
  font-weight: 600;
  line-height: 1.3;
  color: var(--text-primary);
  margin-bottom: 12px;
  transition: color 0.3s;
}

.blog-card-v2 .wp-block-post-title a {
  color: inherit;
  text-decoration: none;
}

.blog-card-v2:hover .wp-block-post-title,
.blog-card-v2:hover .blog-card-v2__title {
  color: var(--accent-gold-bright);
}

/* Excerpt */
.blog-card-v2 .wp-block-post-excerpt,
.blog-card-v2__excerpt {
  font-size: 0.92rem;
  line-height: 1.7;
  color: var(--text-secondary);
  margin-bottom: 0;
}

.blog-card-v2 .wp-block-post-excerpt__excerpt {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  margin-bottom: 20px;
}

/* Read more link */
.blog-card-v2 .wp-block-post-excerpt__more-link {
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--accent-gold);
  transition: color 0.3s;
  text-decoration: none;
}

.blog-card-v2 .wp-block-post-excerpt__more-link:hover {
  color: var(--accent-gold-bright);
}

/* ========================================
   PAGINATION
   ======================================== */
.blog-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 60px;
  padding-top: 40px;
  border-top: 1px solid var(--border-subtle);
}

/* ========================================
   RESPONSIVE
   ======================================== */
@media (max-width: 900px) {
  .blog-hero {
    padding: 140px 0 60px;
  }

  .blog-grid-wrap .wp-block-post-template.is-layout-grid {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
  }
}

@media (max-width: 600px) {
  .blog-hero {
    padding: 120px 0 48px;
  }

  .blog-categories__inner {
    gap: 8px;
  }

  .blog-cat-pill {
    font-size: 0.72rem;
    padding: 6px 14px;
  }

  .blog-card-v2__body {
    padding: 20px 20px 24px;
  }

  .blog-card-v2__title {
    font-size: 1.15rem;
  }
}
