/* blog.html & blog-post */

.blog-hero {
  padding: 6rem 0 4rem;
  background: linear-gradient(135deg, var(--dark), var(--dark-blue), var(--primary));
  color: var(--white);
}

.blog-hero .eyebrow {
  display: inline-flex;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  padding: 0.5rem 1rem;
  font-size: 0.85rem;
  margin-bottom: 1.2rem;
}

.blog-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 4rem);
  line-height: 1.08;
  margin-bottom: 1rem;
  max-width: 820px;
}

.blog-hero p {
  max-width: 720px;
  line-height: 1.8;
  color: rgba(255, 255, 255, 0.86);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 2rem;
}

.blog-chip {
  border: 1px solid var(--border);
  background: var(--white);
  color: var(--muted);
  padding: 0.75rem 1rem;
  border-radius: 999px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s;
}

.blog-chip.active,
.blog-chip:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.4rem;
}

.blog-teaser-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 1rem;
  margin-bottom: 2rem;
}

.blog-teaser-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  padding: 2rem;
  border-radius: 28px;
  background: linear-gradient(135deg, var(--primary-pale), var(--white));
  border: 1px solid var(--border);
  margin-bottom: 2rem;
}

.blog-teaser-banner p {
  max-width: 640px;
  color: var(--muted);
  line-height: 1.7;
  margin: 0;
}

.blog-card h3 {
  font-size: 1.15rem;
  line-height: 1.35;
  margin: 0;
}

.blog-card h3 a {
  color: inherit;
  text-decoration: none;
}

.blog-card h3 a:hover {
  color: var(--primary);
}

.card-link {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 800;
  color: var(--primary);
  text-decoration: none;
}

.card-link:hover {
  text-decoration: underline;
}

.blog-card {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 28px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  transition: 0.25s;
}

.blog-card:hover {
  transform: translateY(-4px);
}

.blog-card-image {
  height: 200px;
  background: linear-gradient(135deg, rgba(27, 79, 168, 0.25), rgba(10, 15, 30, 0.45));
  background-size: cover;
  background-position: center;
}

.blog-card-body {
  padding: 1.4rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  flex: 1;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  font-size: 0.8rem;
  color: var(--muted);
}

.blog-card-tag {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  background: var(--primary-pale);
  color: var(--primary);
  font-weight: 800;
}

.blog-card h2 {
  font-size: 1.2rem;
  line-height: 1.35;
}

.blog-card h2 a {
  color: inherit;
}

.blog-card h2 a:hover {
  color: var(--primary);
}

.blog-card p {
  color: var(--muted);
  line-height: 1.65;
  font-size: 0.94rem;
}

.blog-card-link {
  margin-top: auto;
  color: var(--primary);
  font-weight: 800;
}

.blog-empty {
  text-align: center;
  padding: 3rem;
  color: var(--muted);
  grid-column: 1 / -1;
}

/* Single post */
.post-hero {
  padding: 5.5rem 0 2rem;
  background: var(--bg-2);
}

.post-hero .container {
  max-width: 820px;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
  color: var(--muted);
  font-size: 0.9rem;
}

.post-hero h1 {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  line-height: 1.12;
  margin-bottom: 1rem;
}

.post-excerpt {
  font-size: 1.08rem;
  line-height: 1.75;
  color: var(--muted);
}

.post-cover {
  max-width: 920px;
  margin: 0 auto 2rem;
  border-radius: 28px;
  overflow: hidden;
  min-height: 280px;
  background: linear-gradient(135deg, rgba(27, 79, 168, 0.2), rgba(10, 15, 30, 0.35));
  background-size: cover;
  background-position: center;
}

.post-content {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 1rem 4rem;
  line-height: 1.85;
  font-size: 1.05rem;
}

.post-content h2,
.post-content h3 {
  font-family: var(--font-display);
  margin: 2rem 0 1rem;
  line-height: 1.25;
}

.post-content p {
  margin-bottom: 1.2rem;
  color: var(--text);
}

.post-content ul,
.post-content ol {
  margin: 0 0 1.2rem 1.2rem;
  color: var(--muted);
}

.post-content li {
  margin-bottom: 0.5rem;
}

.post-content a {
  color: var(--primary);
  font-weight: 700;
}

.post-back {
  display: inline-flex;
  margin-bottom: 1.5rem;
  color: var(--primary);
  font-weight: 800;
}

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

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

  .blog-hero {
    padding-top: 5rem;
  }
}
