.all-categories-page {
  margin: 0 0 24px;
}

.all-categories-title {
  margin: 0 0 16px;
  padding: 0 0 8px;
  border-bottom: 1px dotted #ddd;
  color: #333;
  font: bold 14px Arial, sans-serif;
  text-align: center;
}

.all-categories-grid {
  column-count: 2;
  column-gap: 12px;
  text-align: left;
}

.category-group {
  display: inline-block;
  width: 100%;
  min-width: 0;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid rgba(56, 140, 186, 0.32);
  border-radius: 6px;
  background: #fff;
  box-shadow: 0 1px 3px rgba(30, 88, 120, 0.05);
  box-sizing: border-box;
  break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.category-group-title {
  margin: 0 0 8px;
  padding: 0 0 7px;
  border-bottom: 1px solid rgba(56, 140, 186, 0.18);
  font: bold 13px Arial, sans-serif;
  line-height: 1.25;
}

.category-group-title a {
  color: #174f70;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.category-group-title a:hover {
  color: #255f7f;
  text-decoration: underline;
}

.category-chip-list,
.category-subchip-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.category-chip-list,
.category-subchip-list {
  display: flex;
  flex-wrap: wrap;
}

.category-chip-list { gap: 6px; }
.category-subchip-list {
  gap: 4px;
  margin: 5px 0 0 8px;
}

.category-chip-list > li { min-width: 0; }

.category-chip,
.category-subchip {
  display: inline-block;
  max-width: 100%;
  border: 1px solid rgba(56, 140, 186, 0.45);
  background: rgba(79, 158, 201, 0.12);
  color: #255f7f !important;
  text-decoration: none;
  overflow-wrap: anywhere;
  box-sizing: border-box;
}

.category-chip {
  padding: 5px 7px;
  border-radius: 4px;
  font: bold 11px Arial, sans-serif;
  line-height: 1.25;
}

.category-subchip {
  padding: 3px 6px;
  border-radius: 3px;
  font: bold 10px Arial, sans-serif;
  line-height: 1.25;
  background: rgba(79, 158, 201, 0.08);
}

.category-chip:hover,
.category-subchip:hover {
  border-color: rgba(56, 140, 186, 0.62);
  background: rgba(79, 158, 201, 0.22);
  color: #174f70 !important;
  text-decoration: none;
}

@media (max-width: 800px) {
  .all-categories-grid {
    column-count: 1;
    column-gap: 0;
  }
}

@media (max-width: 600px) {
  .category-group {
    padding: 9px;
    margin-bottom: 10px;
  }

  .category-chip-list,
  .category-subchip-list {
    display: grid;
    grid-template-columns: 1fr;
  }

  .category-subchip-list { margin-left: 0; }

  .category-chip,
  .category-subchip { width: 100%; }
}
