/* ---------- GLOBAL RESET ---------- */
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  font-family: system-ui, sans-serif;
  background: #f9f9fb;
  color: #111;
}

/* ---------- TOOL CARD (GRID ITEM) ---------- */
.tool-card {
  flex: 1 1 calc(20% - 20px);
  min-width: 160px;
  max-width: 200px;
  background: #fff;
  border-radius: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.05);
  text-align: center;
  padding: 20px;
  text-decoration: none;
  color: #111;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.tool-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}
.tool-card img {
  width: 48px;
  height: 48px;
  margin-bottom: 12px;
}
.tool-card div {
  font-weight: 500;
  font-size: 15px;
}

/* ---------- CATEGORY TAGS ---------- */
.category-tag {
  display: inline-block;
  padding: 10px 18px;
  background: #f0f4ff;
  color: #3e64ff;
  border-radius: 999px;
  text-decoration: none;
  font-weight: 500;
  font-size: 15px;
  transition: all 0.25s ease;
}
.category-tag:hover {
  background: linear-gradient(to right, #3e64ff, #8e2de2);
  color: #fff;
}

/* ---------- CTA BUTTON ---------- */
.cta-button {
  display: inline-block;
  padding: 12px 24px;
  background: linear-gradient(to right, #3e64ff, #8e2de2);
  color: #fff;
  border-radius: 6px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s ease;
}
.cta-button:hover {
  background: linear-gradient(to right, #8e2de2, #3e64ff);
}

/* ---------- RESPONSIVE GRID ---------- */
@media (max-width: 1024px) {
  .tool-card {
    flex: 1 1 calc(33.333% - 20px);
  }
}
@media (max-width: 768px) {
  .tool-card {
    flex: 1 1 calc(50% - 20px);
  }
}
@media (max-width: 480px) {
  .tool-card {
    flex: 1 1 100%;
  }
}
