.blog-page,
.blog-post-page {
  padding-bottom: 4rem;
}

.blog-hero {
  padding: 4rem 0 2rem;
}

.blog-hero__inner {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 1.25rem;
  align-items: end;
}

.blog-hero__inner h1 {
  margin: 0.75rem 0 1rem;
  max-width: 12ch;
  font-size: clamp(2.5rem, 5vw, 4.4rem);
  line-height: 1.02;
}

.blog-hero__inner p {
  max-width: 64ch;
  color: var(--muted);
  line-height: 1.75;
}

.blog-hero__badge {
  justify-self: end;
  min-width: 220px;
  padding: 1.4rem;
  border-radius: 26px;
  background: linear-gradient(145deg, rgba(12, 124, 120, 0.12), rgba(255, 255, 255, 0.88));
  border: 1px solid rgba(20, 33, 61, 0.1);
  box-shadow: var(--shadow);
}

.blog-hero__badge strong {
  display: block;
  font-size: 2.2rem;
}

.blog-hero__badge span {
  color: var(--muted);
}

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

.blog-card,
.blog-empty-card,
.blog-post-card {
  border: 1px solid rgba(20, 33, 61, 0.1);
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow);
  backdrop-filter: blur(12px);
}

.blog-card {
  overflow: hidden;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 34px 70px rgba(19, 34, 56, 0.16);
}

.blog-card__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, rgba(12, 124, 120, 0.12), rgba(21, 91, 125, 0.14));
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.blog-card__body {
  padding: 1.3rem;
}

.blog-card__meta,
.blog-post-meta {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  color: #0d6a72;
  font-family: "Space Grotesk", sans-serif;
  font-size: 0.76rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-card__body h2,
.blog-post-header h1 {
  margin: 0.8rem 0 0.8rem;
  line-height: 1.1;
}

.blog-card__body p,
.blog-post-content,
.blog-empty-card p,
.blog-post-loading p {
  color: var(--muted);
  line-height: 1.75;
}

.blog-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 1rem;
  gap: 0.8rem;
}

.blog-card__link {
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

.blog-empty-card {
  grid-column: 1 / -1;
  padding: 2rem;
  text-align: center;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  margin: 2rem 0 1rem;
  font-family: "Space Grotesk", sans-serif;
  font-weight: 700;
  color: var(--primary-dark);
}

.blog-post-card {
  padding: 1.5rem;
}

.blog-post-cover {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  border-radius: 24px;
  display: block;
  margin-top: 1rem;
}

.blog-post-header {
  max-width: 860px;
}

.blog-post-content {
  margin-top: 1.6rem;
  font-size: 1.02rem;
  white-space: pre-wrap;
}

.blog-post-seo {
  margin-top: 2rem;
  padding-top: 1.2rem;
  border-top: 1px solid rgba(20, 33, 61, 0.08);
  color: var(--muted);
  font-size: 0.92rem;
}

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

  .blog-hero__badge {
    justify-self: start;
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding: 2.8rem 0 1.4rem;
  }

  .blog-post-card,
  .blog-card__body {
    padding: 1rem;
  }

  .blog-post-cover {
    border-radius: 18px;
  }
}
