.tool-hub-page .simple-page-main,
.professional-tools-page .simple-page-main {
  width: min(1180px, calc(100% - 32px));
}

.tool-category-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  padding: 8px 0 48px;
}

.tool-category-card {
  position: relative;
  display: block;
  aspect-ratio: 16 / 9;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(36, 32, 28, 0.1);
  border-radius: 18px;
  background: #25211e;
  color: #fff;
  text-decoration: none;
  box-shadow: 0 16px 46px rgba(48, 43, 38, 0.07);
  transition: transform 160ms ease, box-shadow 160ms ease, border-color 160ms ease;
}

.tool-category-card::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(20, 18, 17, 0.18), rgba(20, 18, 17, 0.58));
  pointer-events: none;
}

.tool-category-card:hover {
  transform: translateY(-3px);
  border-color: rgba(126, 79, 75, 0.3);
  box-shadow: 0 22px 58px rgba(48, 43, 38, 0.12);
}

.tool-category-cover {
  position: absolute;
  inset: 0;
  display: block;
}

.tool-category-cover img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.tool-category-copy {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 10px;
  padding: 30px;
  text-align: center;
}

.tool-category-copy strong {
  color: #fff !important;
  font-size: 30px;
  line-height: 1.2;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.5);
}

.tool-category-copy > span {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 18px;
  line-height: 1.6;
  text-shadow: 0 2px 14px rgba(0, 0, 0, 0.56);
}

.professional-tools-head {
  padding: 44px 0 24px;
}

.professional-tool-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  padding-bottom: 48px;
}

.professional-tool-card {
  min-width: 0;
}

.professional-tool-card h2,
.professional-tool-card .tool-row-content h2 {
  font-size: 22px;
}

@media (max-width: 1199px) {
  .professional-tool-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
  }
}

@media (max-width: 600px) {
  .tool-category-grid {
    grid-template-columns: 1fr;
  }

  .professional-tool-grid {
    grid-template-columns: 1fr;
  }
}
