.blog-page {
  min-height: 72vh;
  background: #f6f9fc;
}

.blog-hero {
  padding: 46px 0 30px;
  background:
    radial-gradient(620px 220px at 18% -20%, rgba(29, 111, 255, 0.14), transparent 62%),
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  border-bottom: 1px solid #dbe7f3;
}

.blog-hero__inner {
  max-width: 1180px;
}

.blog-kicker {
  margin: 0 0 10px;
  color: #1d4ed8;
  font-size: 0.82rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-hero h1 {
  margin: 0;
  font-size: clamp(34px, 5vw, 58px);
  line-height: 1.05;
  font-weight: 900;
  letter-spacing: 0;
}

.blog-intro {
  max-width: 660px;
  margin: 12px 0 0;
  color: #475569;
  font-size: clamp(16px, 2vw, 19px);
  line-height: 1.6;
}

.blog-posts-section {
  padding: 28px 0 64px;
}

.blog-shell {
  max-width: 1180px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  align-items: start;
  gap: 24px;
}

.blog-main {
  min-width: 0;
}

.blog-page + footer .footer-row {
  gap: 16px;
}

.blog-page + footer .row-gap-16 {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.blog-status-message {
  margin-bottom: 18px;
  color: #475569;
  font-weight: 700;
}

.blog-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  gap: 16px;
}

.blog-list[hidden],
.blog-detail[hidden],
.blog-status-message[hidden] {
  display: none !important;
}

.blog-card {
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 20px;
  border: 1px solid #dbe7f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.06);
}

.blog-card--featured {
  position: relative;
  grid-template-columns: 1fr;
  align-items: start;
  gap: 12px;
  padding: 28px 30px;
  border-color: #bfd7f2;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 251, 255, 0.96) 100%);
  box-shadow: 0 22px 50px rgba(15, 23, 42, 0.10);
}

.blog-card__date,
.blog-date {
  color: #64748b;
  font-size: 0.84rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-card h2 {
  margin: 0;
  color: #0f172a;
  font-size: 1.18rem;
  line-height: 1.25;
}

.blog-card--featured h2 {
  max-width: 760px;
  font-size: clamp(22px, 3vw, 30px);
  line-height: 1.18;
}

.blog-card__excerpt {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.blog-card--featured .blog-card__excerpt {
  grid-column: 1 / -1;
  font-size: 1rem;
}

.blog-card .btn {
  align-self: end;
  justify-self: start;
  margin-top: 4px;
}

.blog-card--featured .btn {
  grid-column: 1;
  grid-row: auto;
  justify-self: start;
  align-self: center;
}

.blog-detail {
  max-width: none;
  margin: 0;
  padding: clamp(24px, 4vw, 44px);
  border: 1px solid #dbe7f3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 18px 46px rgba(15, 23, 42, 0.08);
}

.blog-sidebar {
  position: sticky;
  top: 98px;
  max-height: calc(100vh - 118px);
  overflow: auto;
  padding: 18px;
  border: 1px solid #dbe7f3;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07);
}

.blog-sidebar__eyebrow {
  margin: 0 0 6px;
  color: #1d4ed8;
  font-size: 0.76rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.blog-sidebar h2 {
  margin: 0 0 14px;
  color: #0f172a;
  font-size: 1.2rem;
  line-height: 1.2;
}

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

.blog-sidebar-empty {
  margin: 0;
  color: #64748b;
  font-weight: 700;
  line-height: 1.5;
}

.blog-sidebar-post {
  display: grid;
  width: 100%;
  gap: 5px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #f8fbff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.blog-sidebar-post:hover,
.blog-sidebar-post:focus-visible {
  border-color: #93c5fd;
  box-shadow: 0 10px 22px rgba(29, 78, 216, 0.10);
  outline: none;
  transform: translateY(-1px);
}

.blog-sidebar-post.is-active {
  border-color: #1d6fff;
  background: #eff6ff;
  box-shadow: inset 3px 0 0 #1d6fff;
}

.blog-sidebar-post__date {
  color: #64748b;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.blog-sidebar-post__title {
  color: #0f172a;
  font-size: 0.94rem;
  font-weight: 800;
  line-height: 1.3;
}

.blog-back {
  margin-bottom: 22px;
}

.blog-detail h2 {
  margin: 8px 0 12px;
  color: #0f172a;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.12;
}

.blog-detail-excerpt {
  margin: 0 0 24px;
  color: #475569;
  font-size: 1.08rem;
  line-height: 1.7;
}

.blog-detail-image {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 12px;
  margin: 0 auto 28px;
  display: block;
}

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

.blog-card__image {
  width: 100%;
  max-width: 300px;
  height: auto;
  border-radius: 10px;
  margin: 0 auto 14px;
  display: block;
}

.blog-content {
  color: #172033;
  font-size: 1.06rem;
  line-height: 1.82;
}

.blog-content img {
  width: 100%;
  max-width: 600px;
  height: auto;
  border-radius: 10px;
  margin: 18px auto;
  display: block;
}

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

.blog-content h2,
.blog-content h3,
.blog-content h4 {
  margin: 28px 0 12px;
  color: #0f172a;
  line-height: 1.25;
}

.blog-content h2 {
  font-size: 1.55rem;
}

.blog-content h3 {
  font-size: 1.3rem;
}

.blog-content h4 {
  font-size: 1.12rem;
}

.blog-content ul,
.blog-content ol {
  margin: 0 0 20px;
  padding-left: 24px;
}

.blog-content li + li {
  margin-top: 8px;
}

.blog-content blockquote {
  margin: 24px 0;
  padding: 14px 18px;
  border-left: 4px solid #1d6fff;
  background: #f8fbff;
  color: #334155;
}

.blog-content pre,
.blog-content code {
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  background: #f1f5f9;
  border-radius: 8px;
}

.blog-content code {
  padding: 2px 5px;
}

.blog-content pre {
  overflow-x: auto;
  padding: 14px;
}

.blog-content a {
  color: #1d4ed8;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

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

  .blog-sidebar {
    position: static;
    max-height: none;
    overflow: visible;
  }
}

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

  .blog-posts-section {
    padding: 20px 0 48px;
  }

  .blog-card--featured {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .blog-card--featured .btn {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .blog-detail {
    padding: 20px;
    border-radius: 18px;
  }
}
