/* ═══════ PAGE-SPECIFIC: blog ═══════ */

.blog-hero {
  padding: calc(var(--header-h) + 34px) 0 48px;
  text-align: center; position: relative;
}
.blog-hero::before {
  content: ''; position: absolute; top: 0; left: 50%; width: 800px; height: 400px;
  transform: translateX(-50%);
  background: radial-gradient(ellipse, rgba(200,126,255,0.2) 0%, rgba(102,234,255,0.1) 40%, transparent 65%);
  pointer-events: none;
}
.blog-hero h1 {
  font-size: clamp(36px, 6vw, 56px); font-weight: 900;
  line-height: 1.1; letter-spacing: -0.03em; margin-bottom: 16px;
}
.blog-hero p {
  color: var(--text-dim); font-size: 18px; max-width: 520px;
  margin: 0 auto; line-height: 1.7;
}

.blog-hero-mascot {
  display: block; margin: 0 auto 0; max-height: 300px;
  object-fit: contain; position: relative; z-index: 0;
  filter: drop-shadow(0 10px 40px rgba(200,126,255,0.35));
  animation: float 5s ease-in-out infinite;
}

.blog-filters {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 10px; margin: 48px 0 56px;
}
.blog-filter {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 20px; border-radius: 100px;
  font-family: 'Rubik', sans-serif; font-size: 14px; font-weight: 600;
  color: var(--text-dim); background: var(--surface);
  border: 1px solid var(--outline); cursor: pointer;
  transition: all 0.25s; text-decoration: none;
}
.blog-filter:hover { border-color: rgba(200,126,255,0.4); color: var(--text); }
.blog-filter.active {
  background: rgba(200,126,255,0.15); border-color: rgba(200,126,255,0.5);
  color: var(--purple);
}

.blog-featured {
  grid-column: 1 / -1;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--outline);
  text-decoration: none; color: inherit;
  display: block;
  transition: transform 0.4s, border-color 0.4s, box-shadow 0.4s;
}
.blog-featured:hover {
  transform: translateY(-6px);
  border-color: rgba(255,153,68,0.5);
  box-shadow: 0 0 30px rgba(255,153,68,0.2), 0 0 70px rgba(255,153,68,0.1);
}
.blog-featured-img { width: 100%; aspect-ratio: 21/9; object-fit: cover; display: block; }
.blog-featured-overlay {
  position: absolute; bottom: 0; left: 0; right: 0;
  padding: 80px 36px 32px;
  background: linear-gradient(to top, rgba(22,26,46,0.95) 0%, rgba(22,26,46,0.7) 50%, transparent 100%);
}
.blog-featured-overlay .blog-card-tag {
  background: rgba(255,153,68,0.2); color: var(--secondary);
  border: 1px solid rgba(255,153,68,0.3);
}
.blog-featured-overlay h3 {
  font-size: clamp(22px, 3vw, 32px); font-weight: 800;
  margin: 12px 0 8px; letter-spacing: -0.02em; line-height: 1.25;
  max-width: 700px;
}
.blog-featured-overlay p {
  color: var(--text-dim); font-size: 15px; line-height: 1.7;
  max-width: 600px; display: -webkit-box; -webkit-line-clamp: 2;
  -webkit-box-orient: vertical; overflow: hidden;
}

.blog-card:nth-child(3):hover { border-color: rgba(255,153,68,0.4); box-shadow: 0 0 25px rgba(255,153,68,0.15), 0 0 60px rgba(255,153,68,0.08); }
.blog-card:nth-child(4):hover { border-color: rgba(200,126,255,0.4); box-shadow: 0 0 25px rgba(200,126,255,0.15), 0 0 60px rgba(200,126,255,0.08); }
.blog-card:nth-child(5):hover { border-color: rgba(85,240,187,0.4); box-shadow: 0 0 25px rgba(85,240,187,0.15), 0 0 60px rgba(85,240,187,0.08); }
.blog-card:nth-child(6):hover { border-color: rgba(255,217,78,0.4); box-shadow: 0 0 25px rgba(255,217,78,0.15), 0 0 60px rgba(255,217,78,0.08); }
.blog-card:nth-child(7):hover { border-color: rgba(255,157,212,0.4); box-shadow: 0 0 25px rgba(255,157,212,0.15), 0 0 60px rgba(255,157,212,0.08); }

@media (max-width: 639px) {
  .blog-featured-img { aspect-ratio: 16/10; }
  .blog-featured-overlay { padding: 60px 24px 24px; }
  .blog-featured-overlay h3 { font-size: 20px; }
  .blog-featured-overlay p { font-size: 13px; }
  .blog-hero-mascot { max-height: 140px; }
  .blog-filters { gap: 8px; }
  .blog-filter { padding: 6px 14px; font-size: 13px; }
}
@media (min-width: 1024px) {
  .blog-featured-img { aspect-ratio: 21/9; }
}
