.blog-shell {
  width: min(1120px, calc(100% - 40px));
  min-height: calc(100vh - var(--navbar-height));
  margin: var(--navbar-height) auto 0;
  padding: 56px 0 84px;
}

.blog-shell--article {
  width: min(920px, calc(100% - 40px));
}

.blog-hero {
  max-width: 780px;
  margin-bottom: 34px;
}

.blog-hero h1,
.blog-article h1,
.blog-content h2,
.blog-card h2,
.blog-takeaway h2 {
  margin: 0;
  line-height: 1.08;
}

.blog-hero h1 {
  font-size: clamp(38px, 6vw, 64px);
}

.blog-hero p {
  max-width: 700px;
  margin: 18px 0 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.75;
}

.blog-search {
  width: min(100%, 680px);
  margin-top: 28px;
}

.blog-search__label {
  display: block;
  margin-bottom: 10px;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 700;
}

.blog-search__control {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  min-height: 54px;
  padding: 0 14px 0 18px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(var(--glass-bg), 0.68);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-sm);
}

.blog-search__control i {
  color: var(--text-soft);
}

.blog-search__control input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  padding: 14px 12px;
  background: transparent;
  color: var(--text-strong);
  font: inherit;
}

.blog-search__control input::placeholder {
  color: var(--text-soft);
}

.blog-list {
  display: grid;
  gap: 22px;
}

.blog-card {
  display: grid;
  grid-template-columns: minmax(280px, 0.42fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(var(--glass-bg), 0.62);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-md);
}

.blog-card[hidden] {
  display: none;
}

.blog-card:nth-child(even) {
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
}

.blog-card:nth-child(even) .blog-card__image {
  grid-column: 2;
}

.blog-card:nth-child(even) .blog-card__body {
  grid-column: 1;
  grid-row: 1;
}

.blog-card__image {
  min-height: 280px;
  background: rgba(255, 255, 255, 0.05);
}

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

.blog-card__body {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 16px;
  padding: 34px;
}

.blog-meta,
.blog-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.blog-meta span,
.blog-tags span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 6px 10px;
  border: 1px solid var(--border-soft);
  border-radius: var(--radius-pill);
  background: rgba(255, 255, 255, 0.045);
  color: var(--text-muted);
  font-size: 13px;
}

.blog-card h2 {
  font-size: clamp(24px, 3vw, 34px);
}

.blog-card h2 a,
.blog-read-link,
.blog-back-link {
  color: inherit;
  text-decoration: none;
}

.blog-card p {
  margin: 0;
  color: var(--text-muted);
  line-height: 1.7;
}

.blog-read-link,
.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  color: rgb(var(--btn-primary-1));
  font-weight: 700;
}

.blog-read-link:hover,
.blog-back-link:hover,
.blog-content a:hover {
  color: white;
}

.blog-article {
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(var(--glass-bg), 0.68);
  backdrop-filter: blur(18px);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.blog-article__header {
  display: grid;
  gap: 18px;
  padding: 38px 38px 30px;
}

.blog-article h1 {
  max-width: 820px;
  font-size: clamp(36px, 5vw, 58px);
}

.blog-article__description {
  max-width: 760px;
  margin: 0;
  color: var(--text-muted);
  font-size: 18px;
  line-height: 1.75;
}

.blog-banner {
  width: 100%;
  aspect-ratio: 16 / 7;
  margin: 0;
  background: rgba(255, 255, 255, 0.05);
}

.blog-content {
  display: grid;
  gap: 30px;
  padding: 38px;
}

.blog-content section {
  display: grid;
  gap: 12px;
}

.blog-content h2,
.blog-takeaway h2 {
  font-size: clamp(24px, 3vw, 32px);
}

.blog-content p {
  margin: 0;
  color: var(--text-muted);
  font-size: 17px;
  line-height: 1.82;
}

.blog-content a {
  color: rgb(var(--btn-primary-1));
  font-weight: 700;
  text-decoration: none;
}

.blog-content .blog-lead {
  color: var(--text-strong);
  font-size: 20px;
}

.blog-takeaway {
  display: grid;
  gap: 10px;
  padding: 24px;
  border-left: 4px solid rgb(var(--btn-primary-1));
  border-radius: 8px;
  background: rgba(var(--btn-primary-1), 0.1);
}

.blog-article__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 38px 38px;
}

.blog-empty {
  margin: 24px 0 0;
  padding: 22px;
  border: 1px solid var(--border-soft);
  border-radius: 8px;
  background: rgba(var(--glass-bg), 0.62);
  color: var(--text-muted);
  text-align: center;
}

@media (max-width: 760px) {
  .blog-shell,
  .blog-shell--article {
    width: min(100% - 28px, 920px);
    padding: 34px 0 58px;
  }

  .blog-card {
    grid-template-columns: 1fr;
  }

  .blog-card:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .blog-card:nth-child(even) .blog-card__image,
  .blog-card:nth-child(even) .blog-card__body {
    grid-column: auto;
    grid-row: auto;
  }

  .blog-card__image {
    min-height: 220px;
  }

  .blog-card__body,
  .blog-article__header,
  .blog-content,
  .blog-article__footer {
    padding: 24px;
  }

  .blog-banner {
    aspect-ratio: 4 / 3;
  }

  .blog-article__footer {
    align-items: stretch;
    flex-direction: column;
  }

  .blog-article__footer .btn {
    width: 100%;
  }
}
