.bimax-blog-archive {
  padding-bottom: 88px;
  background: var(--bimax-blog-canvas);
}

.bimax-archive-hero {
  position: relative;
  margin-top: 22px;
  padding: 58px 0 62px;
  overflow: hidden;
  background: #343434;
  color: #fff;
}

.bimax-archive-hero::before {
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 100%;
  background: var(--bimax-blog-red);
  content: "";
}

.bimax-archive-hero::after {
  position: absolute;
  top: -170px;
  left: -70px;
  width: 430px;
  height: 430px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  box-shadow: 0 0 0 70px rgba(255, 255, 255, 0.025), 0 0 0 140px rgba(255, 255, 255, 0.018);
  content: "";
}

.bimax-archive-hero .container {
  position: relative;
  z-index: 1;
}

.bimax-archive-eyebrow {
  display: block;
  margin-bottom: 12px;
  color: #f48a8a;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.bimax-archive-hero h1 {
  max-width: 780px;
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 850;
  line-height: 1.35;
  text-align: right;
  text-wrap: balance;
}

.bimax-archive-description,
.bimax-archive-description p {
  max-width: 720px;
  margin: 0;
  color: #d7d7d7;
  font-size: 16px;
  font-weight: 400;
  line-height: 2;
  text-align: right !important;
}

.bimax-category-filter {
  display: flex;
  gap: 8px;
  margin-top: 30px;
  padding-bottom: 8px;
  overflow-x: auto;
  scrollbar-width: thin;
}

.bimax-category-filter a {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid var(--bimax-blog-line);
  background: #fff;
  color: var(--bimax-blog-text);
  font-size: 13px;
  font-weight: 600;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease;
}

.bimax-category-filter a:hover,
.bimax-category-filter a.is-active {
  border-color: var(--bimax-blog-red);
  background: var(--bimax-blog-red);
  color: #fff;
}

.bimax-category-filter a:focus-visible {
  outline: 2px solid var(--bimax-blog-red);
  outline-offset: 3px;
}

.bimax-category-filter span {
  min-width: 20px;
  padding: 1px 5px;
  background: #efefef;
  color: #777;
  font-size: 10px;
  text-align: center;
}

.bimax-category-filter a.is-active span,
.bimax-category-filter a:hover span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.bimax-archive-content {
  padding-top: 34px;
}

.bimax-article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 30px 24px;
}

.bimax-pagination {
  margin-top: 58px;
}

.bimax-pagination .page-numbers {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bimax-pagination .page-numbers li {
  margin: 0;
}

.bimax-pagination a.page-numbers,
.bimax-pagination span.page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  height: 42px;
  padding: 0 13px;
  border: 1px solid var(--bimax-blog-line);
  background: #fff;
  color: var(--bimax-blog-text);
  font-size: 13px;
  font-weight: 700;
  transition: all 180ms ease;
}

.bimax-pagination a.page-numbers:hover,
.bimax-pagination span.page-numbers.current {
  border-color: var(--bimax-blog-red);
  background: var(--bimax-blog-red);
  color: #fff;
}

.bimax-pagination a.page-numbers:focus-visible {
  outline: 2px solid var(--bimax-blog-red);
  outline-offset: 3px;
}

.bimax-blog-empty {
  max-width: 680px;
  margin: 44px auto 0;
  padding: 64px 32px;
  border-top: 1px solid var(--bimax-blog-line);
  border-bottom: 1px solid var(--bimax-blog-line);
  background: #fff;
  text-align: center;
}

.bimax-blog-empty > span {
  display: block;
  color: var(--bimax-blog-red);
  font-size: 38px;
}

.bimax-blog-empty h2 {
  margin: 12px 0;
  color: var(--bimax-blog-ink);
  font-size: 25px;
  font-weight: 800;
}

.bimax-blog-empty p {
  margin: 0 0 24px;
  color: var(--bimax-blog-muted);
  text-align: center !important;
}

.bimax-blog-empty a {
  display: inline-flex;
  padding: 11px 20px;
  background: var(--bimax-blog-red);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}

.bimax-blog-empty a:hover {
  background: var(--bimax-blog-red-dark);
}

.bimax-category-copy {
  margin-top: 72px;
}

.bimax-category-copy-inner {
  max-width: 940px;
  padding: 36px 38px 40px;
  border-top: 1px solid var(--bimax-blog-line);
  border-bottom: 1px solid var(--bimax-blog-line);
  background: #fff;
}

.bimax-category-copy-inner > span {
  display: block;
  margin-bottom: 6px;
  color: var(--bimax-blog-red);
  font-size: 12px;
  font-weight: 650;
}

.bimax-category-copy h2 {
  margin: 0 0 16px;
  color: var(--bimax-blog-ink);
  font-size: clamp(24px, 3vw, 30px);
  font-weight: 820;
  line-height: 1.6;
}

.bimax-category-copy-content,
.bimax-category-copy-content p {
  color: #5f5f5f;
  font-size: 15px;
  line-height: 2.1;
  text-align: right !important;
}

.bimax-category-copy-content > *:last-child {
  margin-bottom: 0;
}

@media (max-width: 991.98px) {
  .bimax-archive-hero {
    padding: 44px 0 48px;
  }

  .bimax-article-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

}

@media (max-width: 767.98px) {
  .bimax-blog-archive {
    padding-bottom: 58px;
  }

  .bimax-archive-hero {
    margin-top: 14px;
    padding: 36px 0 40px;
  }

  .bimax-archive-hero::before {
    width: 4px;
  }

  .bimax-archive-hero::after {
    opacity: 0.6;
  }

  .bimax-archive-hero h1 {
    font-size: 32px;
  }

  .bimax-archive-description,
  .bimax-archive-description p {
    font-size: 14px;
  }

  .bimax-category-filter {
    margin-top: 20px;
  }

  .bimax-archive-content {
    padding-top: 22px;
  }

  .bimax-article-grid {
    grid-template-columns: 1fr;
    gap: 22px;
  }

  .bimax-pagination {
    margin-top: 40px;
  }

  .bimax-category-copy {
    margin-top: 48px;
  }

  .bimax-category-copy-inner {
    padding: 26px 18px 28px;
  }

  .bimax-pagination a.page-numbers,
  .bimax-pagination span.page-numbers {
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
  }
}
