/*
 * Dcode category archive page styling.
 *
 * The white "card" component in the grid below (image, category badge,
 * title, excerpt, Read More) is shared with the homepage and lives in
 * assets/css/cards.css, so both always stay visually in sync.
 */

/*
 * Force Astra's boxed container to full width, same technique used on
 * single Posts and the homepage, so the cream background reaches the
 * edges instead of showing Astra's default site background as bars
 * down the left/right sides.
 */
body.dcode-full-bleed-category {
  background-color: #F8EFE6 !important;
}

body.dcode-full-bleed-category .ast-container,
body.dcode-full-bleed-category .site-content,
body.dcode-full-bleed-category #content,
body.dcode-full-bleed-category #primary {
  max-width: 100% !important;
  width: 100% !important;
  padding: 0 !important;
  margin: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
}

.dcode-category-page-wrap {
  font-family: 'Quicksand', sans-serif;
  background-color: #F8EFE6;
  color: #152A50;
  -webkit-font-smoothing: antialiased;
  width: 100%;
}

.dcode-category-page-wrap a {
  text-decoration: none !important;
}

.dcode-category-banner {
  width: 100%;
  border-bottom: 1px solid rgba(116, 129, 137, 0.4);
  padding: 28px 24px 32px 24px;
  margin-bottom: 40px;
}

.dcode-category-banner-inner {
  max-width: 1300px;
  margin: 0 auto;
}

.dcode-category-breadcrumb {
  font-size: 13px;
  font-weight: 600;
  color: #748189;
  margin-bottom: 12px;
}

.dcode-category-breadcrumb a {
  color: #152A50 !important;
  font-weight: 600;
}

.dcode-category-breadcrumb-separator {
  margin: 0 8px;
  color: #748189;
}

.dcode-category-banner h1 {
  font-family: 'Poppins', sans-serif !important;
  font-weight: 700;
  font-size: 34px;
  color: #152A50;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.dcode-category-content {
  max-width: 1300px;
  margin: 0 auto;
  padding: 0 24px 60px 24px;
}

.dcode-no-posts {
  font-size: 16px;
  color: #748189;
  padding: 40px 0;
}

/* ---------- Pagination ---------- */

.dcode-pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
  margin-top: 44px;
  flex-wrap: wrap;
}

.dcode-pagination .page-numbers {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 38px;
  height: 38px;
  padding: 0 12px;
  border-radius: 4px;
  background-color: #FFFFFF;
  color: #152A50 !important;
  font-size: 14px;
  font-weight: 700;
  border: 1px solid rgba(116, 129, 137, 0.4);
}

.dcode-pagination .page-numbers.current {
  background-color: #152A50;
  color: #FFFFFF !important;
  border-color: #152A50;
}

.dcode-pagination .page-numbers.dots {
  border: none;
  background: transparent;
}

@media (max-width: 768px) {
  .dcode-category-banner h1 {
    font-size: 24px;
  }
}
