.blog-page {
  background: var(--white);
}

.blog-page .topbar__inner,
.blog-page .navbar__inner,
.blog-page .site-footer .shell,
.blog-shell {
  width: min(1192px, calc(100% - 48px));
  margin-inline: auto;
}

.blog-page .nav-links a.is-active {
  color: var(--green-strong);
}

.blog-hero {
  position: relative;
  min-height: 250px;
  overflow: hidden;
  background: var(--navy-deep);
  color: var(--white);
}

.blog-hero__pattern {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(90deg, rgba(6, 25, 45, 0.96) 0%, rgba(7, 31, 54, 0.9) 46%, rgba(6, 25, 45, 0.96) 100%);
  background-size: 90px 90px, 90px 90px, auto;
}

.blog-hero__pattern::before,
.blog-hero__pattern::after {
  position: absolute;
  content: "";
  pointer-events: none;
}

.blog-hero__pattern::before {
  left: 0;
  bottom: 0;
  width: 36%;
  height: 70%;
  background: linear-gradient(40deg, rgba(131, 174, 72, 0.08), rgba(131, 174, 72, 0));
}

.blog-hero__pattern::after {
  top: 44%;
  left: 57%;
  width: 90px;
  height: 72px;
  background: rgba(255, 255, 255, 0.035);
}

.blog-hero__inner {
  position: relative;
  z-index: 1;
  min-height: 250px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  padding: 42px 0;
}

.blog-breadcrumb {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 16px;
  color: rgba(255, 255, 255, 0.48);
  font-size: 14px;
  line-height: 20px;
}

.blog-breadcrumb a:hover {
  color: var(--white);
}

.blog-breadcrumb span:last-child {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(131, 174, 72, 0.16);
  color: var(--green);
  font-weight: 600;
}

.blog-hero h1 {
  max-width: 660px;
  margin: 0;
  color: var(--white);
  font-family: "Montserrat", "Inter", sans-serif;
  font-size: 44px;
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: 0;
}

.blog-hero p {
  max-width: 620px;
  margin: 14px 0 0;
  color: #b7bdcd;
  font-size: 16px;
  line-height: 22px;
}

.blog-listing {
  padding: 56px 0;
  background: var(--white);
}

.blog-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.blog-filter {
  min-height: 31px;
  padding: 0 14px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--white);
  color: #768092;
  font-size: 13px;
  font-weight: 500;
  line-height: 1;
}

.blog-filter:hover {
  border-color: #cfd6e2;
  color: var(--ink);
}

.blog-filter.is-selected {
  border-color: var(--navy);
  background: var(--navy);
  color: var(--white);
}

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

.blog-card {
  min-width: 0;
}

.blog-card.is-hidden {
  display: none;
}

.blog-card__link {
  display: flex;
  min-height: 362px;
  height: 100%;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid #eef1f5;
  border-radius: var(--radius);
  background: #f8fafc;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.035);
  transition: transform 180ms ease, box-shadow 180ms ease, border-color 180ms ease;
}

.blog-card__link:hover {
  border-color: #e3e8ef;
  transform: translateY(-2px);
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.09);
}

.blog-card__media {
  position: relative;
  display: block;
  height: 172px;
  overflow: hidden;
  background: #dfe5ec;
}

.blog-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  transition: transform 420ms ease;
}

.blog-card__link:hover .blog-card__media img {
  transform: scale(1.035);
}

.blog-card:nth-child(1) .blog-card__media img {
  object-position: 47% 51%;
}

.blog-card:nth-child(2) .blog-card__media img {
  object-position: 50% 44%;
}

.blog-card:nth-child(3) .blog-card__media img {
  object-position: 50% 54%;
}

.blog-card:nth-child(4) .blog-card__media img {
  object-position: 50% 47%;
}

.blog-card:nth-child(5) .blog-card__media img {
  object-position: 50% 55%;
}

.blog-card:nth-child(6) .blog-card__media img {
  object-position: 50% 48%;
}

.blog-card__tag {
  position: absolute;
  top: 12px;
  left: 12px;
  min-height: 20px;
  display: inline-flex;
  align-items: center;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
  color: rgba(255, 255, 255, 0.86);
  font-size: 10px;
  font-weight: 500;
  backdrop-filter: blur(6px);
}

.blog-card__body {
  display: flex;
  height: 188px;
  flex: 0 0 auto;
  flex-direction: column;
  padding: 12px 14px;
}

.blog-card__meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 7px;
  color: #727a8d;
  font-size: 13px;
  line-height: 18px;
}

.blog-card__meta span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}

.blog-card__meta svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: #9aa3b4;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.blog-card h2 {
  margin: 0;
  display: -webkit-box;
  overflow: hidden;
  color: var(--ink);
  font-size: 16px;
  font-weight: 800;
  line-height: 20px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blog-card__source {
  margin: 8px 0 0;
  color: var(--green-strong);
  font-size: 13px;
  font-weight: 500;
  line-height: 18px;
}

.blog-card__excerpt {
  margin: 8px 0 0;
  display: -webkit-box;
  overflow: hidden;
  color: #737b8e;
  font-size: 13px;
  line-height: 16px;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.blog-card__read {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: auto;
  padding-top: 11px;
  border-top: 1px solid #e9edf2;
  color: var(--green-strong);
  font-size: 12px;
  font-weight: 600;
  line-height: 16px;
}

.blog-empty {
  display: none;
  margin-top: 26px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fafc;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  text-align: center;
}

.blog-empty.is-visible {
  display: block;
}

.blog-pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}

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

.blog-page-button {
  min-width: 38px;
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid #dde4ed;
  border-radius: 999px;
  background: #fff;
  color: var(--ink);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 160ms ease, border-color 160ms ease, color 160ms ease;
}

.blog-page-button:hover:not(:disabled),
.blog-page-button.is-current {
  border-color: var(--green);
  background: var(--green);
  color: var(--white);
}

.blog-page-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

@media (min-width: 1920px) {
  .blog-page .topbar__inner,
  .blog-page .navbar__inner,
  .blog-page .site-footer .shell,
  .blog-shell {
    width: min(75vw, 1920px);
  }

  .blog-hero,
  .blog-hero__inner {
    min-height: min(18.75vw, 360px);
  }

  .blog-listing {
    padding-top: min(4.1667vw, 84px);
    padding-bottom: min(4.1667vw, 84px);
  }

  .blog-card__media {
    height: clamp(172px, 10vw, 220px);
  }
}

@media (min-width: 1280px) and (max-width: 1919.98px) {
  .blog-page .topbar__inner,
  .blog-page .navbar__inner,
  .blog-page .site-footer .shell,
  .blog-shell {
    width: min(1440px, calc(100% - clamp(192px, 20vw, 360px)));
  }
}

@media (max-width: 1279.98px) {
  .blog-page .topbar__inner,
  .blog-page .navbar__inner,
  .blog-page .site-footer .shell,
  .blog-shell {
    width: min(960px, calc(100% - 48px));
  }

  .blog-grid {
    gap: 24px 16px;
  }
}

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

@media (max-width: 767.98px) {
  .blog-page .topbar__inner,
  .blog-page .navbar__inner,
  .blog-page .site-footer .shell,
  .blog-shell {
    width: min(100% - 40px, 560px);
  }

  .blog-hero,
  .blog-hero__inner {
    min-height: 290px;
  }

  .blog-hero__inner {
    padding: 34px 0;
  }

  .blog-hero__pattern {
    background-size: 72px 72px, 72px 72px, auto;
  }

  .blog-breadcrumb {
    margin-bottom: 14px;
    font-size: 13px;
  }

  .blog-hero h1 {
    max-width: 340px;
    font-size: 34px;
    line-height: 1.08;
  }

  .blog-hero p {
    max-width: 335px;
    font-size: 14px;
    line-height: 20px;
  }

  .blog-listing {
    padding: 42px 0 48px;
  }

  .blog-filters {
    flex-wrap: nowrap;
    margin-bottom: 22px;
    overflow-x: auto;
    scrollbar-width: none;
  }

  .blog-filters::-webkit-scrollbar {
    display: none;
  }

  .blog-filter {
    flex: 0 0 auto;
    min-height: 34px;
    font-size: 12px;
  }

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

  .blog-card__link {
    min-height: 0;
  }

  .blog-card__media {
    height: 180px;
  }

  .blog-card__body {
    height: auto;
    min-height: 182px;
    padding: 14px 14px 13px;
  }

  .blog-card h2 {
    font-size: 16px;
    line-height: 20px;
  }

}

@media (max-width: 389.98px) {
  .blog-hero h1 {
    font-size: 31px;
  }

  .blog-card__media {
    height: 164px;
  }
}
