.blog-page {
  min-height: 100vh;
  color: #17243a;
  background: #f7f9fc;
}

.blog-main {
  position: relative;
  z-index: 1;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding-top: var(--site-header-hero-gap, 2.75rem);
}

.blog-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, .45fr);
  gap: 2rem;
  align-items: stretch;
  padding: 2.4rem 0 3rem;
  border-bottom: 1px solid #dce4ed;
}

.blog-eyebrow,
.blog-section-head span,
.article-rail > span {
  display: block;
  margin-bottom: .65rem;
  color: #2854c5;
  font: 750 .72rem/1.2 'IBM Plex Mono', monospace;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.blog-hero h1 {
  max-width: 820px;
  margin: 0;
  color: #17243a;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: .98;
  letter-spacing: -.065em;
}

.blog-hero h1 span { color: #2854c5; }

.blog-hero > div > p {
  max-width: 690px;
  margin: 1.4rem 0 0;
  color: #52637a;
  font-size: 1.08rem;
  line-height: 1.72;
}

.blog-hero aside {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 1.35rem;
  background: #fff;
  border: 1px solid #dce4ed;
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(28, 42, 66, .07);
}

.blog-hero aside span { color: #738096; font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; }
.blog-hero aside strong { margin: .45rem 0 .7rem; font-size: 1.15rem; }
.blog-hero aside p { margin: 0; color: #66768b; font-size: .88rem; line-height: 1.6; }

.blog-index { padding: 3rem 0 1rem; }
.blog-section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; margin-bottom: 1.5rem; }
.blog-section-head span { margin-bottom: .35rem; }
.blog-section-head h2 { margin: 0; color: #17243a; font-size: clamp(1.65rem, 3vw, 2.35rem); letter-spacing: -.035em; }
.blog-section-head > a { color: #2854c5; font-weight: 750; text-decoration: none; }

.blog-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.2rem; }
.blog-card { overflow: hidden; background: #fff; border: 1px solid #dce4ed; border-radius: 18px; box-shadow: 0 14px 34px rgba(28, 42, 66, .055); transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-3px); border-color: #b9c9ef; box-shadow: 0 20px 42px rgba(28, 42, 66, .1); }
.blog-card-visual { display: grid; place-items: center; aspect-ratio: 16 / 9; overflow: hidden; color: #17243a; background: linear-gradient(135deg, #eef3ff, #f8fafc 58%, #e8eefb); text-decoration: none; }
.blog-card-visual > span { font: 800 2rem/1 'Plus Jakarta Sans', sans-serif; letter-spacing: -.06em; }
.blog-card-visual > span span { color: #2854c5; }
.blog-card-visual img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.blog-card:hover .blog-card-visual img { transform: scale(1.025); }
.blog-card-body { padding: 1.15rem 1.15rem 1.25rem; }
.blog-card-meta { display: flex; align-items: center; justify-content: space-between; gap: .75rem; color: #738096; font-size: .68rem; font-weight: 700; }
.blog-card-meta span { color: #2854c5; text-transform: uppercase; letter-spacing: .05em; }
.blog-card h2 { margin: .7rem 0 .55rem; font-size: 1.16rem; line-height: 1.3; letter-spacing: -.025em; }
.blog-card h2 a { color: #17243a; text-decoration: none; }
.blog-card p { display: -webkit-box; overflow: hidden; min-height: 4.5em; margin: 0 0 1rem; color: #607086; font-size: .86rem; line-height: 1.55; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.blog-read-link { color: #2854c5; font-size: .82rem; font-weight: 800; text-decoration: none; }

.blog-pagination { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 1rem; margin-top: 2rem; padding-top: 1.25rem; border-top: 1px solid #dce4ed; }
.blog-pagination a { color: #2854c5; font-weight: 750; text-decoration: none; }
.blog-pagination a:last-child { text-align: right; }
.blog-pagination strong { color: #738096; font-size: .75rem; }
.blog-empty, .blog-not-found { padding: 4rem 1rem; text-align: center; background: #fff; border: 1px solid #dce4ed; border-radius: 18px; }
.blog-empty strong { font-size: 1.4rem; }

.article-main { max-width: 1120px; }
.blog-article { padding: 2rem 0 1rem; }
.article-hero { max-width: 900px; margin: 0 auto; padding: 1rem 0 2.5rem; text-align: center; }
.article-back { display: inline-block; margin-bottom: 2rem; color: #2854c5; font-size: .8rem; font-weight: 750; text-decoration: none; }
.article-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: .55rem 1rem; color: #718096; font-size: .74rem; font-weight: 700; }
.article-meta span:first-child { color: #2854c5; text-transform: uppercase; letter-spacing: .07em; }
.article-hero h1 { margin: .85rem auto 1rem; color: #17243a; font-size: clamp(2.25rem, 5vw, 4.5rem); line-height: 1.04; letter-spacing: -.06em; }
.article-hero > p { max-width: 760px; margin: 0 auto; color: #5a6b81; font-size: 1.08rem; line-height: 1.7; }
.article-cover { overflow: hidden; margin: 0 0 2.5rem; aspect-ratio: 16 / 8; background: #eaf0fa; border-radius: 22px; }
.article-cover img { width: 100%; height: 100%; object-fit: cover; }
.article-layout { display: grid; grid-template-columns: 190px minmax(0, 720px); justify-content: center; gap: 3rem; align-items: start; }
.article-rail { position: sticky; top: 90px; display: grid; gap: .6rem; padding: 1rem 0; border-top: 1px solid #ccd7e5; }
.article-rail > span { margin: 0; }
.article-rail strong { font-size: .86rem; }
.article-rail a { color: #2854c5; font-size: .78rem; font-weight: 750; text-decoration: none; }
.article-content { color: #33445a; font-size: 1rem; line-height: 1.82; }
.article-content > :first-child { margin-top: 0; }
.article-content h2, .article-content h3, .article-content h4 { color: #17243a; line-height: 1.2; letter-spacing: -.035em; scroll-margin-top: 100px; }
.article-content h2 { margin: 2.3rem 0 .8rem; font-size: 1.75rem; }
.article-content h3 { margin: 1.8rem 0 .7rem; font-size: 1.3rem; }
.article-content p { margin: 0 0 1.15rem; }
.article-content a { color: #2854c5; text-underline-offset: 3px; }
.article-content code { padding: .12rem .32rem; color: #173e9d; background: #edf2ff; border-radius: 5px; font: 600 .9em 'IBM Plex Mono', monospace; }
.article-content pre { overflow-x: auto; margin: 1.4rem 0; padding: 1rem; color: #e8eefb; background: #142239; border-radius: 12px; }
.article-content pre code { padding: 0; color: inherit; background: none; }
.article-content blockquote { margin: 1.4rem 0; padding: .9rem 1.1rem; color: #30445f; background: #eef3ff; border-left: 3px solid #2854c5; border-radius: 0 10px 10px 0; }
.article-content blockquote p { margin: 0; }
.article-content li { margin-bottom: .45rem; }
.article-footer { display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; max-width: 910px; margin: 3rem auto 0; padding: 1.4rem 1.5rem; background: #17243a; border-radius: 18px; color: #fff; }
.article-footer span { color: #9fb7ed; font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.article-footer h2 { margin: .25rem 0 0; color: #fff; font-size: 1.25rem; }
.article-footer > a { flex: 0 0 auto; padding: .7rem 1rem; color: #17243a; background: #fff; border-radius: 9px; font-weight: 800; text-decoration: none; }
.blog-not-found { margin: 4rem auto; }
.blog-not-found span { color: #2854c5; font: 800 .8rem 'IBM Plex Mono', monospace; }
.blog-not-found h1 { margin: .5rem 0 1rem; }
.blog-not-found a { color: #2854c5; font-weight: 750; }
.blog-footer { position: relative; z-index: 1; }

@media (max-width: 1000px) {
  .blog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .article-layout { grid-template-columns: minmax(0, 720px); }
  .article-rail { position: static; display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
}

@media (max-width: 760px) {
  .blog-main { width: min(100% - 1.2rem, 1180px); }
  .blog-hero { grid-template-columns: 1fr; padding-top: 1rem; }
  .blog-hero h1 { font-size: clamp(2.5rem, 15vw, 4rem); }
  .blog-grid { grid-template-columns: 1fr; }
  .blog-section-head { align-items: center; }
  .article-hero { padding-top: 0; }
  .article-layout { display: block; }
  .article-rail { margin-bottom: 1.5rem; }
  .article-footer { align-items: flex-start; flex-direction: column; }
}
