/* blog.css -- styles used only on blog.html (the article listing page). */

.blog-page-shell::before {
  background:
    radial-gradient(ellipse at 78% 8%, rgba(59, 102, 255, .3), transparent 31rem),
    radial-gradient(circle at 9% 42%, rgba(0, 156, 255, .13), transparent 25rem),
    linear-gradient(105deg, rgba(0, 12, 38, .18), rgba(0, 0, 0, 0) 45%);
}

.blog-hero {
  width: min(100% - 48px, 780px);
  margin: 10px auto 0;
  text-align: center;
}

.blog-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(38px, 4.2vw, 53px);
  line-height: 1.12;
  font-weight: 900;
}

.blog-hero h1 span {
  color: #4b6cff;
}

.blog-hero .hero-subtitle {
  width: 100%;
  margin: 0 auto;
  text-align: center;
}

.blog-filter {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin: 32px 0 30px;
}

.blog-filter-btn {
  padding: 9px 20px;
  border-radius: 100px;
  border: 1px solid var(--line-soft);
  background: rgba(6, 20, 52, .55);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

.blog-filter-btn:hover {
  border-color: rgba(0, 211, 255, .6);
  color: #fff;
}

.blog-filter-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #13c7ff 0%, #0576ff 100%);
  box-shadow: 0 10px 24px rgba(0, 128, 255, .32);
}

.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}

.blog-card.is-hidden {
  display: none;
}

.blog-cta {
  width: 100%;
  margin: 0 0 13px;
}

.blog-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 40px;
}

.blog-page-btn {
  min-width: 38px;
  padding: 8px 14px;
  border-radius: 100px;
  border: 1px solid var(--line-soft);
  background: rgba(6, 20, 52, .55);
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
  transition: transform .2s ease, border-color .2s ease, color .2s ease, background .2s ease;
}

.blog-page-btn:hover:not(:disabled) {
  border-color: rgba(0, 211, 255, .6);
  color: #fff;
}

.blog-page-btn.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(180deg, #13c7ff 0%, #0576ff 100%);
  box-shadow: 0 10px 24px rgba(0, 128, 255, .32);
}

.blog-page-btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}

@media (max-width: 380px) {
  .blog-page-btn {
    padding: 7px 10px;
    font-size: 13px;
    min-width: 32px;
  }
}

@media (max-width: 980px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 620px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}
