body.blog-theme {
  background: #f5f7fb;
  color: #0b1220;
}

body.blog-theme .nav {
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid #e6eaf2;
  box-shadow: 0 12px 30px rgba(12, 20, 38, 0.08);
}

body.blog-theme .logo span {
  color: #2563eb;
}

body.blog-theme .nav-links a {
  color: #4b5563;
}

body.blog-theme .nav-links a:hover,
body.blog-theme .nav-links a:focus {
  background: #eef2f7;
  color: #0b1220;
}

.blog-page {
  max-width: 1320px;
  margin: 0 auto;
  padding: 32px 24px 90px;
}

.blog-hero {
  position: relative;
  padding: 32px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid #e6eaf2;
  box-shadow: 0 24px 50px rgba(12, 20, 38, 0.08);
  overflow: hidden;
}

.blog-hero::after {
  content: "";
  position: absolute;
  right: -80px;
  top: -120px;
  width: 240px;
  height: 240px;
  background: radial-gradient(circle, rgba(37, 99, 235, 0.2), transparent 70%);
  opacity: 0.8;
}

.blog-hero h1 {
  margin: 10px 0 12px;
  font-size: clamp(30px, 4vw, 42px);
}

.blog-hero .lede {
  color: #516079;
  line-height: 1.7;
  max-width: 620px;
  margin: 0;
}

.blog-hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #2563eb;
  font-weight: 700;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-meta span {
  background: #eff6ff;
  color: #1d4ed8;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
}

.posts {
  margin-top: 28px;
  display: grid;
  gap: 18px;
}

.posts-header h2 {
  margin: 0 0 6px;
  font-size: 22px;
}

.posts-header p {
  margin: 0;
  color: #516079;
}

.posts-grid {
  display: grid;
  gap: 18px;
}

.post-card {
  display: grid;
  grid-template-columns: 220px 1fr;
  grid-template-areas:
    "cover title"
    "cover excerpt"
    "cover meta";
  gap: 8px 20px;
  padding: 20px;
  border-radius: 18px;
  border: 1px solid #e6eaf2;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(12, 20, 38, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.post-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 20px 36px rgba(12, 20, 38, 0.12);
}

.post-card-title {
  grid-area: title;
  margin: 0;
  font-size: 20px;
  font-weight: 700;
  color: #0b1220;
}

.post-card-excerpt {
  grid-area: excerpt;
  margin: 0;
  color: #516079;
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.post-card-meta {
  grid-area: meta;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a879f;
}

.post-card-cover {
  grid-area: cover;
  width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  border-radius: 16px;
  border: 1px solid #e6eaf2;
  background: #f1f5fb;
}

.post-card-cover--empty {
  display: block;
}

.post-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 380px;
  gap: 36px;
}


.post {
  padding: 28px;
  border-radius: 20px;
  border: 1px solid #e6eaf2;
  background: #ffffff;
  box-shadow: 0 18px 36px rgba(12, 20, 38, 0.12);
}

.post-title {
  margin: 6px 0 12px;
  font-size: clamp(28px, 4vw, 40px);
}

.post-cover {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border-radius: 18px;
  border: 1px solid #e6eaf2;
  background: #f1f5fb;
  display: none;
  margin: 18px 0 22px;
}

.post-content {
  line-height: 1.8;
  color: #0b1220;
  font-size: 16px;
}

.post-content p {
  margin: 0 0 18px;
}

.post-content h2 {
  margin: 30px 0 12px;
  font-size: 24px;
  font-weight: 700;
}

.post-content h3 {
  margin: 24px 0 10px;
  font-size: 20px;
  font-weight: 700;
}

.post-content ul,
.post-content ol {
  margin: 0 0 18px 18px;
  color: #516079;
}

.post-content a {
  color: #1d4ed8;
  font-weight: 600;
}

.post-content a.post-button {
  color: #ffffff;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 18px 0 24px;
  font-size: 14px;
}

.post-content th,
.post-content td {
  border: 1px solid #e6eaf2;
  padding: 10px 12px;
  text-align: left;
}

.post-content th {
  background: #f8fafc;
  color: #0b1220;
  font-weight: 700;
}

.post-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 12px 20px;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8, #2563eb);
  color: #ffffff;
  font-weight: 700;
  text-decoration: none;
  box-shadow: 0 12px 24px rgba(37, 99, 235, 0.25);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.post-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(37, 99, 235, 0.3);
  filter: brightness(1.05);
}

.post-inline-media {
  margin: 22px 0;
  border-radius: 18px;
  overflow: hidden;
  border: 1px solid #e6eaf2;
  background: #f1f5fb;
}

.post-inline-media img {
  display: block;
  width: 100%;
  height: auto;
}

.post-back {
  display: inline-flex;
  margin-bottom: 18px;
  color: #2563eb;
  font-weight: 600;
}

.post-meta {
  color: #7a879f;
  margin: 6px 0 12px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 12px;
}

.post-error {
  margin-top: 24px;
  color: #b42318;
}

.posts-empty {
  margin-top: 18px;
  color: #516079;
}

.post-aside {
  display: grid;
  gap: 18px;
  align-content: start;
}

.aside-card {
  background: #ffffff;
  border: 1px solid #e6eaf2;
  border-radius: 16px;
  padding: 16px;
  box-shadow: 0 12px 24px rgba(12, 20, 38, 0.06);
}

.aside-card h3 {
  margin: 6px 0 10px;
  font-size: 18px;
}

.aside-card p {
  margin: 0 0 12px;
  color: #516079;
}

.aside-label {
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #7a879f;
}

.aside-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 8px 14px;
  border-radius: 999px;
  background: #0b1220;
  color: #ffffff;
  font-weight: 600;
  text-decoration: none;
}

.aside-list {
  display: grid;
  gap: 10px;
}

.aside-list a {
  display: grid;
  gap: 4px;
  color: #0b1220;
  text-decoration: none;
}

.aside-list small {
  color: #7a879f;
  font-size: 12px;
}

@media (max-width: 900px) {
  .blog-hero {
    padding: 24px;
  }

  .post {
    padding: 22px;
  }

  .post-layout {
    grid-template-columns: 1fr;
  }

  .post-card {
    grid-template-columns: 1fr;
    grid-template-areas:
      "cover"
      "title"
      "excerpt"
      "meta";
  }
}
