/* ── HERO ── */
.blog-hero {
  padding: calc(var(--nav-h) + 64px) 0 56px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.blog-hero::before {
  content: "";
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 600px;
  height: 400px;
  background: radial-gradient(
    ellipse,
    rgba(255, 107, 43, 0.1) 0%,
    transparent 70%
  );
  pointer-events: none;
}
.blog-hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 16px;
}
.blog-hero-eyebrow::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  animation: blink 2s infinite;
}
@keyframes blink {
  0%,
  100% {
    opacity: 1;
    transform: scale(1);
  }
  50% {
    opacity: 0.4;
    transform: scale(0.7);
  }
}
.blog-hero h1 {
  font-size: clamp(40px, 6vw, 72px);
  font-weight: 900;
  letter-spacing: -0.02em;
  line-height: 1.05;
  margin-bottom: 16px;
}
.blog-hero h1 .script {
  font-family: "Sacramento", cursive;
  font-size: 1.18em;
  color: var(--orange);
  font-weight: 400;
}
.blog-hero-sub {
  font-size: 17px;
  color: var(--light-muted);
  max-width: 480px;
  margin: 0 auto 36px;
  line-height: 1.7;
}
.blog-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 32px;
  margin-bottom: 48px;
}
.blog-stat span:first-child {
  display: block;
  font-size: 28px;
  font-weight: 800;
  color: var(--text);
}
.blog-stat span:last-child {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--muted);
}
.blog-stat-div {
  width: 1px;
  height: 32px;
  background: var(--border);
}

/* ── SEARCH ── */
.search-bar-wrap {
  max-width: 520px;
  margin: 0 auto;
  position: relative;
}
.search-bar {
  width: 100%;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 14px 18px 14px 48px;
  font-size: 15px;
  color: var(--text);
  outline: none;
  font-family: var(--font-body);
  transition:
    border-color 0.3s,
    box-shadow 0.3s;
}
.search-bar::placeholder {
  color: var(--muted);
}
.search-bar:focus {
  border-color: var(--orange);
  box-shadow: 0 0 0 3px rgba(255, 107, 43, 0.12);
}
.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  width: 20px;
  height: 20px;
  stroke: var(--muted);
  fill: none;
  pointer-events: none;
}
.search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  width: 24px;
  height: 24px;
  background: var(--dark3);
  border: none;
  border-radius: 50%;
  cursor: pointer;
  display: none;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 13px;
  transition: 0.2s;
}
.search-clear.show {
  display: flex;
}
.search-clear:hover {
  background: var(--orange);
  color: #fff;
}

/* ── FILTER TABS ── */
.filter-section {
  padding: 32px 0 0;
}
.filter-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: center;
}
.filter-tab {
  padding: 8px 20px;
  border-radius: 50px;
  background: var(--dark2);
  border: 1px solid var(--border);
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: 0.25s;
  white-space: nowrap;
}
.filter-tab:hover {
  border-color: var(--orange);
  color: var(--orange);
}
.filter-tab.active {
  background: var(--orange);
  color: #fff;
  border-color: var(--orange);
  box-shadow: 0 4px 16px rgba(255, 107, 43, 0.35);
}

/* ── FEATURED POST ── */
.featured-section {
  padding: 48px 0 0;
}
.featured-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 20px;
}
.featured-card {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 20px;
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.3s;
  text-decoration: none;
  color: var(--text);
}
.featured-card:hover {
  border-color: rgba(255, 107, 43, 0.35);
  transform: translateY(-4px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
}
.featured-img {
  background: linear-gradient(135deg, #1a0a06 0%, #2a1008 40%, #1a0a06 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 320px;
  position: relative;
  overflow: hidden;
}
.featured-img::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse at 30% 50%,
    rgba(255, 107, 43, 0.2),
    transparent 60%
  );
}
.featured-img-emoji {
  font-size: 96px;
  position: relative;
  z-index: 1;
}
.featured-content {
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  background: var(--orange-pale);
  border: 1px solid rgba(255, 107, 43, 0.2);
  padding: 5px 12px;
  border-radius: 4px;
  margin-bottom: 16px;
  width: fit-content;
}
.featured-title {
  font-size: clamp(20px, 2.5vw, 28px);
  font-weight: 800;
  line-height: 1.25;
  margin-bottom: 14px;
  letter-spacing: -0.01em;
}
.featured-excerpt {
  font-size: 15px;
  line-height: 1.75;
  color: var(--light-muted);
  margin-bottom: 24px;
  flex: 1;
}
.post-meta {
  display: flex;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
}
.post-meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 500;
}
.post-meta-item svg {
  width: 13px;
  height: 13px;
  stroke: var(--muted);
  fill: none;
}
.read-more-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13.5px;
  font-weight: 700;
  color: var(--orange);
  margin-top: 20px;
  transition: gap 0.2s;
}
.featured-card:hover .read-more-link {
  gap: 10px;
}

/* ── POSTS GRID ── */
.posts-section {
  padding: 48px 0 80px;
}
.posts-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 28px;
}
.posts-count {
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}
.posts-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.post-card {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  transition:
    border-color 0.3s,
    transform 0.3s,
    box-shadow 0.3s;
  text-decoration: none;
  color: var(--text);
  display: flex;
  flex-direction: column;
}
.post-card:hover {
  border-color: rgba(255, 107, 43, 0.3);
  transform: translateY(-5px);
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.3);
}
.post-card-img {
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 56px;
  position: relative;
  overflow: hidden;
}
.post-card-body {
  padding: 20px 20px 22px;
  flex: 1;
  display: flex;
  flex-direction: column;
}
.post-tag {
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--orange);
  margin-bottom: 9px;
  display: block;
}
.post-card-title {
  font-size: 16px;
  font-weight: 800;
  line-height: 1.35;
  margin-bottom: 10px;
  letter-spacing: -0.01em;
}
.post-card-excerpt {
  font-size: 13px;
  line-height: 1.65;
  color: var(--muted);
  margin-bottom: 16px;
  flex: 1;
}
.post-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.post-date {
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}
.post-read-time {
  font-size: 11.5px;
  font-weight: 700;
  color: var(--orange);
  background: var(--orange-pale);
  padding: 3px 10px;
  border-radius: 20px;
}

/* ── EMPTY STATE ── */
.no-results {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 24px;
}
.no-results .emoji {
  font-size: 48px;
  margin-bottom: 14px;
}
.no-results h3 {
  font-size: 20px;
  font-weight: 800;
  margin-bottom: 8px;
}
.no-results p {
  font-size: 14px;
  color: var(--muted);
}

/* ── NEWSLETTER ── */
.newsletter-section {
  background: var(--dark2);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 48px 40px;
  text-align: center;
  margin-bottom: 80px;
  position: relative;
  overflow: hidden;
}
.newsletter-section::before {
  content: "";
  position: absolute;
  top: -80px;
  left: 50%;
  transform: translateX(-50%);
  width: 400px;
  height: 300px;
  background: radial-gradient(
    ellipse,
    rgba(255, 107, 43, 0.1),
    transparent 70%
  );
  pointer-events: none;
}
.newsletter-section h3 {
  font-size: 28px;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
}
.newsletter-section p {
  font-size: 15px;
  color: var(--light-muted);
  margin-bottom: 28px;
  position: relative;
}
.newsletter-form {
  display: flex;
  gap: 10px;
  max-width: 420px;
  margin: 0 auto;
  position: relative;
}
.newsletter-input {
  flex: 1;
  background: var(--dark3);
  border: 1px solid var(--border);
  border-radius: 50px;
  padding: 13px 20px;
  font-size: 14px;
  color: var(--text);
  outline: none;
  font-family: var(--font-body);
  transition: border-color 0.3s;
}
.newsletter-input::placeholder {
  color: var(--muted);
}
.newsletter-input:focus {
  border-color: var(--orange);
}
.newsletter-btn {
  background: var(--orange);
  color: #fff;
  border: none;
  border-radius: 50px;
  padding: 13px 24px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--font-body);
  transition: 0.3s;
  white-space: nowrap;
  box-shadow: 0 4px 16px rgba(255, 107, 43, 0.35);
}
.newsletter-btn:hover {
  background: #ff8c55;
  transform: translateY(-1px);
}

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .posts-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 760px) {
  .featured-card {
    grid-template-columns: 1fr;
  }
  .featured-img {
    min-height: 200px;
  }
  .featured-content {
    padding: 24px;
  }
  .posts-grid {
    grid-template-columns: 1fr;
  }
  .blog-stats {
    gap: 20px;
  }
  .newsletter-form {
    flex-direction: column;
  }
  .newsletter-section {
    padding: 36px 24px;
  }
}
@media (max-width: 480px) {
  .blog-hero {
    padding: calc(var(--nav-h) + 40px) 0 40px;
  }
}
