/* Parent Scope Root */
.AllTopServices_wrapper {
  width: 100%;
  min-height: 100vh;
  background-color: #f8fafc;
  padding-bottom: 32px;
}

.AllTopServices_wrapper .AllTopServices_list {
  padding-top: 16px;
  width: 100%;
}

.AllTopServices_wrapper .AllTopServices_count {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 500;
  color: #64748b;
}

/* Cards fill their grid cell so every card in a row is the same height */
.AllTopServices_wrapper .ServiceCard {
  height: 100%;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.AllTopServices_wrapper .ServiceCard:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.AllTopServices_wrapper .ServiceCard .ServiceCard_body {
  flex: 1;
}

/* Keep the action buttons pinned to the bottom of each card */
.AllTopServices_wrapper .ServiceCard .ServiceCard_actions {
  margin-top: auto;
}

/* Taller photos on wider screens where cards have more room */
@media (min-width: 768px) {
  .AllTopServices_wrapper .ServiceCard .ServiceCard_image {
    height: 160px;
  }
}

@media (min-width: 1200px) {
  .AllTopServices_wrapper .ServiceCard .ServiceCard_image {
    height: 180px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .AllTopServices_wrapper .ServiceCard {
    transition: none;
  }

  .AllTopServices_wrapper .ServiceCard:hover {
    transform: none;
  }
}
