.blog-main,
.article-main,
.page-main {
  min-height: 62vh;
  background: #f7f9ff;
}

.blog-hero {
  overflow: hidden;
  padding-block: clamp(64px, 8vw, 112px) 72px;
  background:
    radial-gradient(circle at 82% 12%, rgba(115, 103, 240, 0.14), transparent 32%),
    linear-gradient(145deg, #f7f9ff 0%, #edf4ff 56%, #f7fbff 100%);
}

.blog-hero-inner {
  max-width: 1920px;
}

.blog-hero h1,
.empty-posts h2 {
  max-width: 850px;
  margin: 14px 0 18px;
  color: #172849;
  font-size: clamp(42px, 6vw, 72px);
  font-weight: 800;
  letter-spacing: -0.065em;
  line-height: 1.04;
}

.blog-hero .hero-description {
  max-width: 700px;
  margin: 0;
}

.blog-list-section {
  padding-block: clamp(48px, 6vw, 84px) clamp(80px, 9vw, 128px);
}

.post-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}

.post-card {
  overflow: hidden;
  border: 1px solid #e1e8f3;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 42px rgba(34, 57, 94, 0.07);
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.post-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 22px 48px rgba(34, 57, 94, 0.12);
}

.post-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 16 / 9;
  background: #eef3ff;
}

.post-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.post-card-copy {
  padding: 26px;
}

.post-date {
  display: inline-block;
  color: #7a879a;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.post-card h2 {
  margin: 10px 0 10px;
  color: #172849;
  font-size: clamp(20px, 2vw, 25px);
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.post-card h2 a:hover {
  color: var(--blue-dark);
}

.post-card p {
  margin: 0 0 20px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
}

.post-card .text-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--blue-dark);
  font-size: 14px;
  font-weight: 750;
}

.empty-posts {
  max-width: 760px;
  margin: 0 auto;
  border: 1px solid #e1e8f3;
  border-radius: 28px;
  padding: clamp(32px, 6vw, 64px);
  background: #fff;
  text-align: center;
  box-shadow: 0 18px 48px rgba(34, 57, 94, 0.07);
}

.empty-posts .eyebrow {
  color: var(--blue-dark);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.empty-posts h2 {
  margin-inline: auto;
  font-size: clamp(32px, 4vw, 48px);
}

.empty-posts p {
  margin: 0 0 26px;
  color: var(--muted);
}

.post-pagination {
  margin-top: 44px;
}

.post-pagination .nav-links {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.post-pagination .page-numbers {
  display: inline-flex;
  min-width: 42px;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 1px solid #e1e8f3;
  border-radius: 12px;
  padding: 7px 13px;
  color: #243756;
  background: #fff;
  font-size: 14px;
  font-weight: 700;
}

.post-pagination .page-numbers.current,
.post-pagination a.page-numbers:hover {
  border-color: var(--blue);
  color: #fff;
  background: var(--blue);
}

.article-main,
.page-main {
  background: #fff;
}

.article-shell {
  padding-block: clamp(44px, 7vw, 84px) clamp(80px, 10vw, 132px);
}

.article-container {
  max-width: 900px;
  margin-inline: auto;
}

.breadcrumbs {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 32px;
  color: #7a879a;
  font-size: 13px;
  font-weight: 650;
}

.breadcrumbs a:hover,
.article-back a:hover {
  color: var(--blue-dark);
}

.article-header {
  margin-bottom: 32px;
}

.article-header h1,
.article-content h1 {
  margin: 12px 0 18px;
  color: #172849;
  font-size: clamp(38px, 6vw, 64px);
  font-weight: 800;
  letter-spacing: -0.06em;
  line-height: 1.08;
}

.article-excerpt {
  margin: 0;
  color: var(--muted);
  font-size: clamp(18px, 2.4vw, 22px);
  line-height: 1.65;
}

.article-featured-image {
  overflow: hidden;
  margin: 32px 0 0;
  border-radius: 24px;
  background: #eef3ff;
}

.article-featured-image img {
  width: 100%;
  height: auto;
}

.entry-content {
  color: #35435b;
  font-size: 18px;
  line-height: 1.85;
  overflow-wrap: anywhere;
}

.entry-content > * {
  max-width: 100%;
}

.entry-content h2,
.entry-content h3,
.entry-content h4 {
  margin: 1.7em 0 0.55em;
  color: #172849;
  font-weight: 750;
  letter-spacing: -0.04em;
  line-height: 1.25;
}

.entry-content h2 {
  font-size: clamp(28px, 4vw, 38px);
}

.entry-content h3 {
  font-size: clamp(23px, 3vw, 29px);
}

.entry-content p,
.entry-content ul,
.entry-content ol,
.entry-content blockquote {
  margin-block: 0 1.25em;
}

.entry-content a {
  color: var(--blue-dark);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.entry-content img {
  height: auto;
  border-radius: 16px;
}

.entry-content blockquote {
  border-left: 4px solid var(--blue);
  padding: 4px 0 4px 22px;
  color: #53627a;
}

.entry-content pre {
  overflow-x: auto;
  border-radius: 14px;
  padding: 20px;
  color: #e9f0ff;
  background: #0d1b31;
  font-size: 14px;
}

.article-back {
  margin-top: 52px;
  border-top: 1px solid var(--line);
  padding-top: 24px;
  font-weight: 750;
}

.page-main .entry-content {
  max-width: 760px;
  margin-top: 28px;
}

.screen-reader-text {
  position: absolute;
  overflow: hidden;
  clip: rect(1px, 1px, 1px, 1px);
  width: 1px;
  height: 1px;
  padding: 0;
  border: 0;
  white-space: nowrap;
}

@media (max-width: 980px) {
  .post-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .blog-hero {
    padding-block: 52px 48px;
  }

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

  .post-card-copy {
    padding: 22px;
  }

  .entry-content {
    font-size: 16px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .post-card {
    transition: none;
  }

  .post-card:hover {
    transform: none;
  }
}
