.desktop-nav .is-current { color: var(--primary); background: var(--primary-soft); }

.blog-hero {
  padding: 88px 0 78px;
  background:
    radial-gradient(62% 120% at 82% 0%, rgba(214, 40, 40, 0.12), transparent 60%),
    linear-gradient(180deg, #fff 0%, #f7f7f9 100%);
  border-bottom: 1px solid var(--border);
}

.blog-hero-inner { max-width: 850px; text-align: center; }
.blog-eyebrow { display: inline-block; margin-bottom: 14px; color: var(--primary); font-size: 14px; font-weight: 800; }
.blog-hero h1 { margin: 0; color: var(--black); font-size: clamp(36px, 5.6vw, 64px); font-weight: 800; line-height: 1.04; letter-spacing: -0.045em; }
.blog-hero p { max-width: 720px; margin: 20px auto 0; color: var(--muted); font-size: clamp(16px, 2vw, 19px); line-height: 1.65; }

.blog-index { padding-top: 72px; padding-bottom: 100px; }
.home-blog-section { margin: 82px 0; }
.home-blog-section .blog-index-head { align-items: center; flex-direction: column; text-align: center; }
.home-blog-section .eyebrow { margin: 0 0 8px; }
.home-blog-section .blog-card-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 320px)); justify-content: center; gap: 20px; }
.home-blog-section .blog-card { min-height: 460px; padding: 18px 18px 22px; }
.home-blog-section .blog-card-link { gap: 20px; }
.home-blog-section .blog-card-image { height: 178px; }
.home-blog-section .blog-card-content { gap: 18px; }
.home-blog-section .blog-card-category { margin-bottom: 8px; font-size: 12px; line-height: 18px; }
.home-blog-section .blog-card-heading { gap: 12px; }
.home-blog-section .blog-card-heading h2 { font-size: 19px; line-height: 26px; }
.home-blog-section .blog-card-arrow, .home-blog-section .blog-card-arrow img { width: 20px; height: 20px; }
.home-blog-section .blog-card-arrow { flex-basis: 20px; margin-top: 3px; }
.home-blog-section .blog-card-excerpt { margin-top: 8px; font-size: 14px; line-height: 21px; }
.home-blog-section .blog-author { gap: 10px; }
.home-blog-section .blog-author-avatar { width: 36px; height: 36px; flex-basis: 36px; }
.home-blog-section .blog-author-meta { font-size: 12px; line-height: 18px; }
.home-blog-all { display: inline-flex; align-items: center; justify-content: center; padding: 0 18px; white-space: nowrap; }
.blog-index-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 34px; }
.blog-index-head h2 { margin: 0; color: var(--black); font-size: clamp(28px, 3vw, 38px); line-height: 1.15; }
.blog-index-head p { margin: 8px 0 0; color: var(--muted); }
.blog-filters { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
.blog-filter { min-height: 38px; padding: 0 15px; border: 1px solid var(--border); border-radius: 999px; background: #fff; color: var(--text); font-size: 13px; font-weight: 700; }
.blog-filter:hover, .blog-filter.is-active { border-color: var(--primary); background: var(--primary-soft); color: var(--primary); }

.blog-card-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; }
.blog-card { min-width: 0; min-height: 580px; padding: 24px 24px 32px; background: #fff; box-shadow: 0 4px 6px -2px rgba(16,24,40,.03), 0 12px 16px -4px rgba(16,24,40,.08); transition: transform .2s ease, box-shadow .2s ease; }
.blog-card:hover { transform: translateY(-4px); box-shadow: 0 8px 12px -4px rgba(16,24,40,.06), 0 22px 34px -12px rgba(16,24,40,.16); }
.blog-card-link { display: flex; height: 100%; flex-direction: column; gap: 32px; }
.blog-card-image { position: relative; height: 240px; overflow: hidden; background: var(--soft-bg); }
.blog-card-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .35s ease; }
.blog-card:hover .blog-card-image img { transform: scale(1.035); }
.blog-card-content { display: flex; min-height: 0; flex: 1; flex-direction: column; justify-content: space-between; gap: 28px; }
.blog-card-category { display: block; margin-bottom: 12px; color: var(--primary); font-size: 14px; font-weight: 700; line-height: 20px; }
.blog-card-heading { display: flex; align-items: flex-start; gap: 16px; }
.blog-card-heading h2 { min-width: 0; flex: 1; margin: 0; color: #101828; font-size: 24px; font-weight: 700; line-height: 32px; }
.blog-card-arrow { width: 24px; height: 24px; flex: 0 0 24px; margin-top: 4px; }
.blog-card-arrow img { display: block; width: 24px; height: 24px; }
.blog-card-excerpt { margin: 12px 0 0; color: #667085; font-size: 16px; line-height: 24px; }
.blog-author { display: flex; align-items: center; gap: 12px; }
.blog-author-avatar { display: grid; width: 40px; height: 40px; flex: 0 0 40px; place-items: center; overflow: hidden; border-radius: 50%; background: #f1f2f4; color: var(--primary); font-weight: 800; }
.blog-author-avatar img { width: 100%; height: 100%; object-fit: cover; }
.blog-author-meta { display: grid; color: #667085; font-size: 14px; line-height: 20px; }
.blog-author-meta strong { color: #101828; font-weight: 600; }
.blog-loading, .blog-empty { grid-column: 1 / -1; padding: 64px 24px; border: 1px dashed var(--border-strong); border-radius: var(--radius); background: #fff; color: var(--muted); text-align: center; }

.blog-detail-shell { min-height: 60vh; }
.blog-detail-loading, .blog-detail-error { width: min(100% - 32px, 900px); margin: 80px auto; padding: 48px; border: 1px solid var(--border); border-radius: var(--radius-lg); background: #fff; color: var(--muted); text-align: center; }
.blog-article-header { padding: 72px 0 42px; text-align: center; }
.blog-article-header-inner { width: min(100% - 32px, 900px); margin: 0 auto; }
.blog-article-header h1 { margin: 14px 0 18px; color: var(--black); font-size: clamp(36px, 5vw, 60px); font-weight: 800; line-height: 1.07; letter-spacing: -0.04em; }
.blog-article-lead { max-width: 760px; margin: 0 auto; color: var(--muted); font-size: 18px; line-height: 1.65; }
.blog-article-author { justify-content: center; margin-top: 26px; text-align: left; }
.blog-article-cover { width: min(100% - 32px, 1120px); max-height: 620px; margin: 0 auto 52px; overflow: hidden; border-radius: 24px; background: var(--soft-bg); }
.blog-article-cover img { display: block; width: 100%; max-height: 620px; object-fit: cover; }
.blog-article-body { width: min(100% - 40px, 760px); margin: 0 auto; padding-bottom: 48px; color: #3f4652; font-size: 17px; line-height: 1.8; }
.blog-article-body h2 { margin: 42px 0 14px; color: var(--black); font-size: 29px; line-height: 1.25; }
.blog-article-body h3 { margin: 32px 0 12px; color: var(--black); font-size: 23px; line-height: 1.3; }
.blog-article-body p { margin: 0 0 22px; }
.blog-article-body ul, .blog-article-body ol { margin: 0 0 24px; padding-left: 25px; }
.blog-article-body blockquote { margin: 28px 0; padding: 4px 0 4px 20px; border-left: 4px solid var(--primary); color: #505866; font-size: 19px; }
.blog-article-body a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.blog-value-cta { position: relative; width: min(100% - 40px, 760px); margin: 0 auto 88px; overflow: hidden; border-radius: 28px; background: linear-gradient(135deg, #15171b 0%, #24272d 60%, #181a1f 100%); color: #fff; box-shadow: 0 24px 50px -28px rgba(16, 24, 40, .65); }
.blog-value-cta::before { position: absolute; top: -130px; right: -80px; width: 330px; height: 330px; border-radius: 50%; background: radial-gradient(circle, rgba(226, 48, 48, .72) 0%, rgba(214, 40, 40, .12) 52%, transparent 72%); content: ""; pointer-events: none; }
.blog-value-cta-inner { position: relative; z-index: 1; padding: 52px; }
.blog-value-kicker { display: inline-block; margin-bottom: 12px; color: #f36b6b; font-size: 13px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.blog-value-cta h2 { max-width: 560px; margin: 0; font-size: clamp(30px, 4vw, 44px); line-height: 1.08; letter-spacing: -.035em; }
.blog-value-cta p { max-width: 570px; margin: 18px 0 28px; color: rgba(255,255,255,.72); font-size: 16px; line-height: 1.65; }
.blog-value-button { display: inline-flex; min-height: 50px; align-items: center; justify-content: center; gap: 10px; padding-inline: 24px; }
.blog-related { width: min(100% - 40px, 1120px); margin: 0 auto 72px; }
.blog-related-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 30px; }
.blog-related-head h2 { margin: 0; color: var(--black); font-size: clamp(28px, 3vw, 38px); line-height: 1.15; }
.blog-related-head a { flex: 0 0 auto; color: var(--primary); font-size: 14px; font-weight: 800; }
.blog-related .blog-card-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
.blog-related .blog-card { min-height: 470px; padding: 18px 18px 22px; }
.blog-related .blog-card-link { gap: 20px; }
.blog-related .blog-card-image { height: 180px; }
.blog-related .blog-card-content { gap: 20px; }
.blog-related .blog-card-category { margin-bottom: 8px; font-size: 12px; line-height: 18px; }
.blog-related .blog-card-heading { gap: 12px; }
.blog-related .blog-card-heading h2 { font-size: 19px; line-height: 26px; }
.blog-related .blog-card-arrow, .blog-related .blog-card-arrow img { width: 20px; height: 20px; }
.blog-related .blog-card-arrow { flex-basis: 20px; margin-top: 3px; }
.blog-related .blog-card-excerpt { margin-top: 8px; font-size: 14px; line-height: 21px; }
.blog-related .blog-author { gap: 10px; }
.blog-related .blog-author-avatar { width: 36px; height: 36px; flex-basis: 36px; }
.blog-related .blog-author-meta { font-size: 12px; line-height: 18px; }
.blog-back-wrap { width: min(100% - 40px, 760px); margin: 0 auto 80px; }
.blog-back-link { color: var(--primary); font-weight: 700; }

@media (max-width: 980px) {
  .blog-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .home-blog-section .blog-card-grid { grid-template-columns: repeat(auto-fit, minmax(280px, 320px)); }
  .blog-related .blog-card-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 720px) {
  .blog-hero { padding: 56px 0 48px; }
  .blog-index { padding-top: 46px; padding-bottom: 72px; }
  .home-blog-section { margin: 58px 0; }
  .home-blog-section .blog-card-grid,
  .blog-related .blog-card-grid {
    display: flex;
    justify-content: flex-start;
    gap: 14px;
    overflow-x: auto;
    padding: 4px 10px 18px 2px;
    margin-bottom: -18px;
    scroll-padding-inline: 2px;
    scroll-snap-type: x mandatory;
    overscroll-behavior-inline: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }
  .home-blog-section .blog-card-grid::-webkit-scrollbar,
  .blog-related .blog-card-grid::-webkit-scrollbar { display: none; }
  .home-blog-section .blog-card,
  .blog-related .blog-card {
    flex: 0 0 min(76vw, 270px);
    min-height: 0;
    padding: 12px 12px 16px;
    scroll-snap-align: start;
  }
  .home-blog-section .blog-card-link,
  .blog-related .blog-card-link { gap: 14px; }
  .home-blog-section .blog-card-image,
  .blog-related .blog-card-image { height: auto; aspect-ratio: 16 / 10; }
  .home-blog-section .blog-card-content,
  .blog-related .blog-card-content { gap: 14px; }
  .home-blog-section .blog-card-heading h2,
  .blog-related .blog-card-heading h2 {
    display: -webkit-box;
    overflow: hidden;
    font-size: 17px;
    line-height: 23px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .home-blog-section .blog-card-excerpt,
  .blog-related .blog-card-excerpt {
    display: -webkit-box;
    overflow: hidden;
    font-size: 13px;
    line-height: 19px;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
  }
  .home-blog-section .blog-author-avatar,
  .blog-related .blog-author-avatar { width: 32px; height: 32px; flex-basis: 32px; }
  .home-blog-section .blog-author-meta,
  .blog-related .blog-author-meta { font-size: 11.5px; line-height: 17px; }
  .home-blog-all { width: 100%; }
  .blog-index-head { align-items: flex-start; flex-direction: column; margin-bottom: 24px; }
  .blog-filters { justify-content: flex-start; width: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 4px; }
  .blog-filter { flex: 0 0 auto; }
  .blog-card-grid { grid-template-columns: 1fr; gap: 22px; }
  .blog-card { min-height: 520px; padding: 18px 18px 24px; }
  .blog-card-link { gap: 24px; }
  .blog-card-image { height: auto; aspect-ratio: 16 / 9; }
  .blog-card-heading h2 { font-size: 22px; line-height: 29px; }
  .blog-article-header { padding: 52px 0 34px; }
  .blog-article-cover { margin-bottom: 34px; border-radius: 14px; }
  .blog-article-body { font-size: 16px; line-height: 1.72; }
  .blog-article-body h2 { font-size: 25px; }
  .blog-value-cta { margin-bottom: 64px; border-radius: 20px; }
  .blog-value-cta-inner { padding: 34px 26px; }
  .blog-value-cta h2 { font-size: 30px; }
  .blog-value-button { width: 100%; }
  .blog-related { margin-bottom: 56px; }
  .blog-related-head { align-items: flex-start; flex-direction: column; gap: 12px; margin-bottom: 22px; }
}
