.blog-page {
  min-height: 70vh;
  padding: calc(var(--header-height) + 46px) 0 88px;
  background: #f5f6fa;
}

.blog-eyebrow {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: fit-content;
  margin: 0 auto 28px;
  padding: 9px 17px;
  color: #263345;
  background: #ffffff;
  border: 1px solid #e8ebf1;
  border-radius: 999px;
  box-shadow: 0 3px 12px rgba(18, 28, 45, 0.05);
  font-size: 0.82rem;
  font-weight: 700;
}

.blog-eyebrow i {
  color: var(--primary);
}

.blog-intro {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  align-items: end;
  gap: 48px;
  max-width: 1050px;
  margin: 0 auto 38px;
}

.blog-intro h1 {
  max-width: 620px;
  margin-bottom: 12px;
  color: #182231;
  font-size: clamp(2rem, 4vw, 3.2rem);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.055em;
}

.blog-intro p {
  color: #737d8c;
  font-size: 0.98rem;
  line-height: 1.7;
}

.blog-intro-note {
  justify-self: end;
  max-width: 390px;
  padding-bottom: 3px;
}

.blog-layout {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  align-items: start;
  gap: 28px;
  max-width: 1050px;
  margin: 0 auto;
}

.blog-sidebar {
  position: sticky;
  top: 100px;
}

.blog-search {
  display: flex;
  align-items: center;
  gap: 11px;
  min-height: 46px;
  margin-bottom: 24px;
  padding: 0 15px;
  color: #8b94a2;
  background: #ffffff;
  border: 1px solid #e8ebf1;
  border-radius: 999px;
  box-shadow: 0 4px 14px rgba(18, 28, 45, 0.04);
}

.blog-search:focus-within {
  border-color: rgba(0, 128, 0, 0.4);
  box-shadow: 0 0 0 3px rgba(0, 128, 0, 0.08);
}

.blog-search i {
  font-size: 0.85rem;
}

.blog-search input {
  width: 100%;
  min-width: 0;
  padding: 12px 0;
  color: #263345;
  background: transparent;
  border: 0;
  outline: 0;
  font: inherit;
  font-size: 0.78rem;
}

.blog-search input::placeholder {
  color: #939baa;
}

.blog-filter-heading {
  display: block;
  margin: 0 0 9px 4px;
  color: #8a93a1;
  font-size: 0.65rem;
  font-weight: 800;
  letter-spacing: 0.09em;
  text-transform: uppercase;
}

.blog-filters {
  display: grid;
  gap: 4px;
  max-height: calc(100vh - 210px);
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: #c8ced8 transparent;
  scrollbar-width: thin;
}

.blog-filter {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 10px 12px;
  color: #5e6878;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  font: inherit;
  font-size: 0.76rem;
  text-align: left;
  transition: background 0.2s ease, color 0.2s ease;
}

.blog-filter > span:last-child {
  color: #929baa;
  font-size: 0.7rem;
}

.blog-filter:hover {
  color: var(--primary-dark);
  background: rgba(255, 255, 255, 0.8);
}

.blog-filter.active {
  color: #ffffff;
  background: var(--primary);
  box-shadow: 0 4px 12px rgba(0, 128, 0, 0.19);
}

.blog-filter.active > span:last-child {
  color: rgba(255, 255, 255, 0.78);
}

.blog-results-count {
  min-height: 20px;
  margin: 0 0 12px 2px;
  color: #7f8997;
  font-size: 0.75rem;
}

.blog-posts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 18px;
}

.blog-card {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid #eaedf2;
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(18, 28, 45, 0.045);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 14px 34px rgba(18, 28, 45, 0.1);
}

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

.blog-card-image {
  display: block;
  overflow: hidden;
  aspect-ratio: 1.85;
  background: #e8ebf1;
}

.blog-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease;
}

.blog-card:hover .blog-card-image img {
  transform: scale(1.035);
}

.blog-card-content {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  min-height: 238px;
  padding: 18px 19px 17px;
}

.blog-category {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  margin-bottom: 10px;
  padding: 5px 9px;
  overflow: hidden;
  color: #596779;
  background: #f1f3f7;
  border-radius: 999px;
  font-size: 0.62rem;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.blog-card h2 {
  margin-bottom: 8px;
  color: #1b2534;
  font-size: 1.03rem;
  font-weight: 750;
  line-height: 1.35;
  letter-spacing: -0.025em;
}

.blog-card-content > p {
  margin-bottom: 14px;
  color: #687384;
  font-size: 0.78rem;
  line-height: 1.6;
}

.blog-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: auto;
  color: #87909d;
  font-size: 0.68rem;
}

.blog-card-link {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin-top: 14px;
  color: var(--primary-dark);
  font-size: 0.75rem;
  font-weight: 700;
}

.blog-card-link:hover {
  color: var(--primary);
}

.blog-card-link i {
  font-size: 0.65rem;
}

.blog-article-hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 360px;
  margin: 0 0 34px;
  overflow: hidden;
  isolation: isolate;
  color: #ffffff;
  background: #17202d;
  border-radius: 24px;
  box-shadow: 0 16px 40px rgba(18, 28, 45, 0.12);
}

.blog-article-hero::after {
  position: absolute;
  z-index: -1;
  background: linear-gradient(90deg, rgba(10, 16, 27, 0.91) 0%, rgba(10, 16, 27, 0.69) 56%, rgba(10, 16, 27, 0.24) 100%), linear-gradient(0deg, rgba(10, 16, 27, 0.22), transparent 65%);
  content: "";
  inset: 0;
}

.blog-article-hero-image {
  position: absolute;
  z-index: -2;
  width: 100%;
  height: 100%;
  object-fit: cover;
  inset: 0;
}

.blog-article-hero-content {
  width: min(840px, 100%);
  padding: 35px clamp(24px, 6vw, 68px) 38px;
}

.blog-back-link {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 27px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.78rem;
  font-weight: 650;
}

.blog-back-link:hover {
  color: #ffffff;
}

.blog-article-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.blog-article-tags a {
  display: inline-flex;
  padding: 6px 10px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 650;
  backdrop-filter: blur(8px);
}

.blog-article-tags a:hover {
  background: var(--primary);
}

.blog-article-hero h1 {
  max-width: 760px;
  margin: 0 0 18px;
  color: #ffffff;
  font-size: clamp(2rem, 4.5vw, 3.35rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.045em;
}

.blog-article-byline {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.72rem;
}

.blog-article-byline span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.blog-article-byline i {
  color: rgba(255, 255, 255, 0.72);
}

.blog-article-layout {
  display: grid;
  grid-template-columns: minmax(0, 700px) minmax(210px, 260px);
  justify-content: center;
  align-items: start;
  gap: clamp(28px, 5vw, 68px);
  max-width: 1050px;
  margin: 0 auto;
}

.blog-article-content {
  padding: clamp(24px, 4vw, 48px);
  color: #485364;
  background: #ffffff;
  border: 1px solid #eaedf2;
  border-radius: 18px;
  box-shadow: 0 5px 18px rgba(18, 28, 45, 0.045);
}

.blog-article-content p {
  margin-bottom: 22px;
  color: #566171;
  font-size: 0.96rem;
  line-height: 1.9;
}

.blog-article-content .blog-article-lead {
  color: #293445;
  font-size: 1.08rem;
  font-weight: 550;
  line-height: 1.75;
}

.blog-article-content section {
  scroll-margin-top: 100px;
}

.blog-article-content section h2 {
  margin: 30px 0 12px;
  color: #192434;
  font-size: 1.25rem;
  font-weight: 750;
  line-height: 1.35;
}

.blog-back-to-list {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  margin-top: 10px;
  color: var(--primary-dark);
  font-size: 0.83rem;
  font-weight: 700;
}

.blog-article-aside {
  position: sticky;
  top: 104px;
  display: grid;
  gap: 18px;
}

.blog-article-toc,
.blog-article-cta {
  padding: 20px;
  background: #ffffff;
  border: 1px solid #eaedf2;
  border-radius: 16px;
  box-shadow: 0 5px 18px rgba(18, 28, 45, 0.045);
}

.blog-article-toc h2 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 12px;
  color: #233043;
  font-size: 0.88rem;
  font-weight: 750;
}

.blog-article-toc h2 i {
  color: var(--primary);
}

.blog-article-toc a {
  display: block;
  padding: 9px 0;
  color: #657082;
  border-top: 1px solid #edf0f4;
  font-size: 0.75rem;
  line-height: 1.45;
}

.blog-article-toc a:hover {
  color: var(--primary-dark);
}

.blog-article-cta {
  background: #f0f5f0;
}

.blog-article-cta h2 {
  margin-bottom: 8px;
  color: #1b2a1d;
  font-size: 0.98rem;
  line-height: 1.4;
}

.blog-article-cta p {
  margin-bottom: 15px;
  color: #657268;
  font-size: 0.76rem;
  line-height: 1.6;
}

.blog-article-cta .btn {
  padding: 10px 15px;
  font-size: 0.75rem;
}

.blog-empty {
  padding: 32px 20px;
  color: #687384;
  background: #ffffff;
  border: 1px solid #eaedf2;
  border-radius: 16px;
  text-align: center;
}

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

@media (max-width: 760px) {
  .blog-page {
    padding-top: calc(var(--header-height) + 34px);
  }

  .blog-intro {
    grid-template-columns: 1fr;
    gap: 10px;
    margin-bottom: 25px;
  }

  .blog-intro-note {
    justify-self: start;
  }

  .blog-layout {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .blog-article-hero {
    min-height: 330px;
    border-radius: 20px;
  }

  .blog-article-layout {
    grid-template-columns: 1fr;
  }

  .blog-article-aside {
    position: static;
    grid-template-columns: 1fr 1fr;
  }

  .blog-sidebar {
    position: static;
  }

  .blog-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }

  .blog-filter-heading {
    flex-basis: 100%;
  }

  .blog-filter {
    width: auto;
    justify-content: flex-start;
    gap: 8px;
    padding: 8px 11px;
    background: rgba(255, 255, 255, 0.8);
    border: 1px solid #e8ebf1;
    border-radius: 999px;
    font-size: 0.7rem;
  }

  .blog-filter.active {
    border-color: var(--primary);
  }
}

@media (max-width: 520px) {
  .blog-page {
    padding-bottom: 58px;
  }

  .blog-posts {
    grid-template-columns: 1fr;
  }

  .blog-card-content {
    min-height: 0;
  }

  .blog-article-hero {
    min-height: 370px;
  }

  .blog-article-hero-content {
    padding: 24px 20px;
  }

  .blog-article-byline {
    gap: 9px 14px;
  }

  .blog-article-aside {
    grid-template-columns: 1fr;
  }

  .blog-article-content {
    padding: 23px 20px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .blog-card,
  .blog-card-image img,
  .blog-filter,
  .blog-article-tags a {
    transition: none;
  }
}
