:root {
  --blog-ink: #292827;
  --blog-muted: #66717d;
  --blog-line: rgba(41, 40, 39, 0.12);
  --blog-blue: #0473f0;
  --blog-blue-soft: #e8f2ff;
}

.blog-page {
  padding-top: var(--header-height);
  color: var(--blog-ink);
}

.blog-hero {
  position: relative;
  overflow: hidden;
  padding: 7rem 6% 5rem;
  background: linear-gradient(135deg, #e9f3ff 0%, var(--clr-white) 68%);
}

.blog-hero::after {
  content: "";
  position: absolute;
  right: -90px;
  bottom: -150px;
  width: 380px;
  height: 380px;
  border: 70px solid rgba(4, 115, 240, 0.08);
  border-radius: 50%;
}

.blog-hero-inner,
.blog-index-content,
.article-layout,
.home-blog-section {
  width: min(1120px, 88%);
  margin: 0 auto;
}

.blog-hero-inner { position: relative; z-index: 1; }
.blog-kicker,
.article-category,
.blog-card-category {
  color: var(--blog-blue);
  font-family: var(--ff-texts);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.blog-hero h1 { max-width: 760px; margin: 0.8rem 0 1.2rem; font-family: var(--ff-titles); font-size: clamp(2.8rem, 6vw, 5.8rem); line-height: 0.98; }
.blog-hero p { max-width: 680px; color: var(--blog-muted); font-family: var(--ff-texts); font-size: 1.1rem; line-height: 1.7; }
.blog-index-content { padding: 4.5rem 0 6rem; }
.blog-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 2rem; flex-wrap: wrap; }
.blog-toolbar h2 { font-family: var(--ff-titles); font-size: 2rem; }
.blog-filters { display: flex; gap: 0.5rem; flex-wrap: wrap; }
.blog-filter { border: 1px solid var(--blog-line); border-radius: 999px; padding: 0.65rem 0.9rem; background: transparent; color: var(--blog-ink); cursor: pointer; font-family: var(--ff-texts); }
.blog-filter:hover, .blog-filter.is-active { border-color: var(--blog-blue); background: var(--blog-blue); color: white; }
.blog-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; }
.blog-card { display: flex; flex-direction: column; min-width: 0; overflow: hidden; border: 1px solid var(--blog-line); border-radius: 0.8rem; background: white; box-shadow: 0 14px 34px rgba(41, 40, 39, 0.06); transition: transform 0.25s ease, box-shadow 0.25s ease; }
.blog-card:hover { transform: translateY(-5px); box-shadow: 0 20px 40px rgba(4, 115, 240, 0.13); }
.blog-card-image { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; display: block; }
.blog-card-body { display: flex; flex: 1; flex-direction: column; padding: 1.25rem; }
.blog-card h3 { margin: 0.55rem 0 0.7rem; font-family: var(--ff-titles); font-size: 1.35rem; line-height: 1.12; }
.blog-card h3 a { color: inherit; text-decoration: none; }
.blog-card-excerpt { color: var(--blog-muted); font-family: var(--ff-texts); line-height: 1.55; }
.blog-card-meta { display: flex; gap: 0.6rem; margin-top: auto; padding-top: 1rem; color: var(--blog-muted); font: 0.82rem var(--ff-texts); }
.blog-card-link { display: inline-block; margin-top: 1rem; color: var(--blog-blue); font: 700 0.9rem var(--ff-texts); text-decoration: none; }
.home-blog-section { padding: 6rem 0; }
.home-blog-header { display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 3rem; align-items: end; margin-bottom: 2rem; }
.home-blog-header h2 { margin-top: 0.7rem; font: 800 clamp(2rem, 4vw, 3.7rem)/1.05 var(--ff-titles); }
.home-blog-header > p { color: var(--blog-muted); font: 1.05rem/1.7 var(--ff-texts); }
.blog-card-grid--featured { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.blog-section-link { display: inline-flex; gap: 0.7rem; margin-top: 2rem; color: var(--blog-blue); font: 800 1rem var(--ff-texts); text-decoration: none; }
.article-layout { display: grid; grid-template-columns: minmax(0, 760px) 220px; gap: 3.5rem; padding: 4rem 0 6rem; }
.article-header { border-bottom: 1px solid var(--blog-line); padding-bottom: 2rem; }
.article-header h1 { margin: 0.8rem 0 1.1rem; font: 800 clamp(2.4rem, 5vw, 4.6rem)/1.02 var(--ff-titles); }
.article-summary { color: var(--blog-muted); font: 1.2rem/1.65 var(--ff-texts); }
.article-meta { display: flex; gap: 0.7rem; flex-wrap: wrap; margin-top: 1.2rem; color: var(--blog-muted); font: 0.9rem var(--ff-texts); }
.article-hero-image { width: 100%; aspect-ratio: 16 / 8; object-fit: cover; margin: 2rem 0; border-radius: 0.8rem; }
.article-content { font: 1.08rem/1.8 var(--ff-texts); }
.article-content h2 { margin: 2.5rem 0 0.8rem; font: 800 2rem/1.15 var(--ff-titles); }
.article-content h3 { margin: 1.7rem 0 0.5rem; font: 800 1.35rem/1.2 var(--ff-titles); }
.article-content p, .article-content ul, .article-content ol { margin-bottom: 1.1rem; }
.article-content ul, .article-content ol { padding-left: 1.4rem; }
.article-content li { margin-bottom: 0.5rem; }
.article-content a { color: var(--blog-blue); font-weight: 700; }
.article-content img { width: 100%; max-height: 440px; object-fit: cover; margin: 1.5rem 0; border-radius: 0.6rem; }
.article-content img.article-image-vertical { width: auto; max-width: min(320px, 72%); max-height: 620px; margin: 1.5rem auto; display: block; object-fit: contain; }
.article-aside { position: sticky; top: 110px; align-self: start; border-left: 2px solid var(--blog-blue); padding-left: 1rem; color: var(--blog-muted); font: 0.9rem/1.5 var(--ff-texts); }
.article-aside strong { display: block; color: var(--blog-ink); margin-bottom: 0.5rem; }
.article-cta { margin: 3rem 0; padding: 2rem; border-radius: 0.8rem; background: var(--blog-blue); color: white; }
.article-cta h2 { margin-top: 0; color: white; }
.article-cta p { margin-bottom: 1rem; }
.article-cta a { display: inline-block; padding: 0.8rem 1.1rem; border-radius: 0.4rem; background: white; color: var(--blog-blue); text-decoration: none; font-weight: 800; }
.related-posts { grid-column: 1 / -1; border-top: 1px solid var(--blog-line); padding-top: 3rem; }
.related-posts h2 { margin-bottom: 1.3rem; font: 800 2rem var(--ff-titles); }
@media (max-width: 800px) {
  .blog-page { padding-top: var(--header-height-mobile); }
  .blog-hero { padding: 5rem 6% 4rem; }
  .blog-index-content, .article-layout, .home-blog-section { width: min(92%, 680px); }
  .blog-card-grid, .blog-card-grid--featured { grid-template-columns: 1fr; }
  .home-blog-header { grid-template-columns: 1fr; gap: 1rem; }
  .article-layout { display: block; padding-top: 2.5rem; }
  .article-aside { display: none; }
  .article-header h1 { font-size: clamp(2.35rem, 10vw, 3.4rem); }
  .article-content { font-size: 1rem; }
  .article-hero-image { aspect-ratio: 4 / 3; }
  .related-posts { margin-top: 3rem; }
}
