.help-center,
.blog-hub {
  background: #f3f6ff;
  padding-bottom: 4rem;
}

.help-center.page-navbar-offset,
.blog-hub.page-navbar-offset {
  padding-top: calc(88px + 2rem);
}

.help-center__hero,
.blog-hub__hero {
  max-width: 720px;
  margin: 0 auto 2.5rem;
  text-align: center;
  padding-bottom: 1.75rem;
  border-bottom: 1px solid #dde3ee;
}

.help-center__hero h1,
.blog-hub__hero h1 {
  font-size: clamp(1.75rem, 4vw, 2.25rem);
  font-weight: 800;
  color: #1d1d27;
  margin: 0 0 0.75rem;
}

.help-center__hero p,
.blog-hub__hero p {
  color: #6b7280;
  font-size: 1.05rem;
  line-height: 1.75;
  margin: 0;
}

.blog-hub__topics {
  margin-top: 0.85rem !important;
  font-size: 0.9rem !important;
  color: #4777f5 !important;
  font-weight: 600;
}

.blog-hub__tags {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 1.25rem;
}

.blog-hub__tag {
  appearance: none;
  border: 1px solid #c7d4f5;
  background: #fff;
  color: #4777f5;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1.2;
  padding: 0.45rem 0.95rem;
  border-radius: 999px;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.blog-hub__tag:hover {
  border-color: #4777f5;
  background: #eef3ff;
}

.blog-hub__tag.is-active {
  background: #4777f5;
  border-color: #4777f5;
  color: #fff;
}

.blog-hub__grid-item[hidden] {
  display: none;
}

.blog-hub__empty-filter {
  margin-top: 2rem;
}

.help-center__grid,
.blog-hub__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 1.25rem;
}

.article-card {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  height: 100%;
}

.article-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 36px rgba(71, 119, 245, 0.12);
}

.article-card__media {
  aspect-ratio: 16 / 9;
  background: linear-gradient(135deg, #539ecf 0%, #4777f5 100%);
  overflow: hidden;
}

.article-card__media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.article-card__media--placeholder {
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.9);
  font-size: 2.5rem;
}

.article-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 1.25rem 1.35rem 1.35rem;
}

.article-card__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4777f5;
  margin-bottom: 0.5rem;
}

.article-card__title {
  font-size: 1.05rem;
  font-weight: 700;
  line-height: 1.45;
  margin: 0 0 0.65rem;
}

.article-card__title a {
  color: #1d1d27;
  text-decoration: none;
}

.article-card__title a:hover {
  color: #4777f5;
}

.article-card__excerpt {
  color: #6b7280;
  font-size: 0.875rem;
  line-height: 1.65;
  margin: 0 0 1rem;
  flex: 1;
}

.article-card__meta {
  font-size: 0.8rem;
  color: #9ca3af;
  margin-bottom: 0.85rem;
}

.article-card__link {
  font-size: 0.875rem;
  font-weight: 700;
  color: #4777f5;
  text-decoration: none;
}

.article-card__link:hover {
  text-decoration: underline;
}

/* Article detail */
.article-page {
  background: #f3f6ff;
  padding-bottom: 4rem;
}

.article-page.page-navbar-offset {
  padding-top: calc(88px + 1.5rem);
}

.article-breadcrumb {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1.25rem;
}

.article-breadcrumb a {
  color: #4777f5;
  text-decoration: none;
}

.article-breadcrumb a:hover {
  text-decoration: underline;
}

.article-breadcrumb__sep {
  margin: 0 0.4rem;
  opacity: 0.5;
}

.article-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 260px;
  gap: 1.5rem;
  align-items: start;
}

.article-main {
  background: #fff;
  border-radius: 12px;
  padding: 2rem 2.25rem;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.05);
}

.article-main__category {
  display: inline-block;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: #4777f5;
  margin-bottom: 0.65rem;
}

.article-main h1 {
  font-size: clamp(1.5rem, 3.5vw, 2rem);
  font-weight: 800;
  color: #1d1d27;
  line-height: 1.3;
  margin: 0 0 0.85rem;
}

.article-main__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.25rem;
  font-size: 0.875rem;
  color: #9ca3af;
  padding-bottom: 1.25rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid #eef1f6;
}

.article-body {
  color: #374151;
  font-size: 0.9375rem;
  line-height: 1.85;
}

.article-body h2 {
  font-size: 1.15rem !important;
  font-weight: 700 !important;
  color: #2124b1;
  margin: 1.75rem 0 0.75rem;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid #eef1f6;
}

.article-body h3 {
  font-size: 1rem !important;
  font-weight: 700 !important;
  color: #1d1d27;
  margin: 1.25rem 0 0.5rem;
}

.article-body p,
.article-body li {
  margin-bottom: 0.85rem;
}

.article-body ul,
.article-body ol {
  padding-inline-start: 1.35rem;
  margin-bottom: 1rem;
}

.article-body a {
  color: #4777f5;
}

.article-body img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  margin: 1rem 0;
}

.article-body blockquote {
  margin: 1.25rem 0;
  padding: 0.85rem 1rem;
  border-inline-start: 4px solid #4777f5;
  background: #f3f6ff;
  color: #374151;
}

.article-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0;
  font-size: 0.9rem;
}

.article-body th,
.article-body td {
  border: 1px solid #dde3ee;
  padding: 0.65rem 0.75rem;
  text-align: start;
}

.article-body th {
  background: #f3f6ff;
  font-weight: 700;
}

.article-body pre,
.article-body code {
  background: #f3f6ff;
  border-radius: 6px;
  font-size: 0.85em;
}

.article-body pre {
  padding: 1rem;
  overflow-x: auto;
}

.article-sidebar {
  position: sticky;
  top: calc(88px + 1rem);
}

.article-sidebar__panel {
  background: #fff;
  border-radius: 12px;
  padding: 1.25rem;
  box-shadow: 0 0 32px rgba(0, 0, 0, 0.05);
  margin-bottom: 1rem;
}

.article-sidebar__heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1d1d27;
  margin: 0 0 0.85rem;
}

.article-sidebar__list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.article-sidebar__list li {
  margin-bottom: 0.5rem;
}

.article-sidebar__list a {
  color: #4777f5;
  font-size: 0.875rem;
  text-decoration: none;
}

.article-sidebar__list a:hover {
  text-decoration: underline;
}

.article-sidebar__all {
  display: inline-block;
  margin-top: 0.75rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #4777f5;
  text-decoration: none;
}

.article-sidebar__all:hover {
  text-decoration: underline;
}

.article-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin-top: 1.5rem;
  font-size: 0.875rem;
  font-weight: 700;
  color: #4777f5;
  text-decoration: none;
}

.article-back:hover {
  text-decoration: underline;
}

.help-center-preview,
.blog-preview {
  background: #fff;
}

.help-center-preview__header,
.blog-preview__header {
  text-align: center;
  margin-bottom: 2rem;
}

.help-center-preview__header h2,
.blog-preview__header h2 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 800;
  color: #1d1d27;
  margin-bottom: 0.5rem;
}

.help-center-preview__header p,
.blog-preview__header p {
  color: #6b7280;
  margin-bottom: 1rem;
}

@media (max-width: 991.98px) {
  .article-layout {
    grid-template-columns: 1fr;
  }

  .article-sidebar {
    position: static;
  }

  .article-main {
    padding: 1.5rem 1.25rem;
  }
}

@media (max-width: 575.98px) {
  .help-center__grid,
  .blog-hub__grid {
    grid-template-columns: 1fr;
  }
}
