.tools.page-content.full {
  height: calc(100vh - 83px) !important;
  padding: 0px 40px;
}
/* Page title and subtitle */
.tools .page-header {
  text-align: center;
  margin: 20px auto;
}

.tools .page-title {
  font-size: 1.8rem;
  color: #222;
  margin: 0;
}

.tools .page-subtitle {
  font-size: 1rem;
  color: #555;
  margin-top: 8px;
}

/* Grid */
.tools .card-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}

@media (min-width: 768px) {
  .tools .card-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (min-width: 992px) {
  .tools .card-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (min-width: 1408px) {
  .tools .card-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* Card */
.tools .card {
  background: linear-gradient(to bottom, #ffffff, #e9f0f8);
  border-radius: 16px;
  padding: 20px;
  text-align: center;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
}

.tools .card:hover {
  transform: translateY(-4px);
}

.tools .card h2 {
  margin: 0;
  font-size: 1.15rem;
  color: #222;
  font-weight: bold;
  letter-spacing: 1px;
  cursor: pointer;
}

.tools .card p {
  font-size: 0.8rem;
  color: #666;
  margin: 8px 0 16px;
  height: 3em; /* fixed height (approx 2 lines) */
  line-height: 1.15em; /* sets line spacing */
  overflow: hidden; /* hides overflow text */
  text-overflow: ellipsis; /* adds "..." if text is too long */
  display: -webkit-box;
  -webkit-line-clamp: 2; /* max 2 lines */
  -webkit-box-orient: vertical;
}

/* Image with ratio + max size */
.tools .card-img {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 16px;
  cursor: pointer;
}

.tools .card-img img {
  width: auto; /* width adjusts to keep aspect ratio */
  height: 200px; /* fixed height */
  border-radius: 8px;
  object-fit: contain; /* ensures the whole image fits without cropping */
}

/* Stats section */
.tools .card-stats {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
}

.tools .stat {
  flex: 1;
  padding: 6px 12px;
  border-radius: 10px;
  text-align: center;
  font-weight: bold;
  background: #fff;
  border: 2px solid transparent;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.08);
  cursor: pointer;
}

.tools .stat-value {
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.tools .stat-label {
  font-size: 0.8rem;
  font-weight: normal;
  text-transform: uppercase;
  color: inherit; /* inherit color */
}

/* Custom colors */
.tools .projects {
  border-color: #7b2cbf;
  color: #7b2cbf;
}

.tools .orders {
  border-color: #00b4d8;
  color: #00b4d8;
}
/* Hover effect — fill button */
.tools .projects:hover {
  background: #7b2cbf;
  color: #fff;
}

.tools .orders:hover {
  background: #00b4d8;
  color: #fff;
}
