h1 {
  text-align: left;
  font-size: 32px;
  margin: 20px 0 40px 0;
  color: #000;
}

.all-categories-page {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.main-category h2 {
  margin-bottom: 20px;
  font-size: 22px;
}

.main-category h2 a {
  color: #000;
  text-decoration: none;
  font-weight: 600;
  transition: color 0.3s ease;
}

.main-category h2 a:hover {
  color: #00ae5a;
}

.secondary-category {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 15px;
}

.child-category a {
  font-size: 16px;
  color: #555;
  text-decoration: none;
  font-weight: 500;
}

.child-category a:hover {
  color: #00ae5a;
  text-decoration: underline;
}

.third-category,
.fourth-category {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px;
  margin-top: 5px;
}

.third-category a,
.fourth-category a {
  font-size: 14px;
  color: #555;
  text-decoration: none;
  font-weight: 400;
}

.third-category a:hover,
.fourth-category a:hover {
  color: #00ae5a;
  text-decoration: underline;
}
