.servicos-container {
  padding: 40px 20px;
  max-width: 1400px;
  margin: 0 auto;
}

.servicos-header {
  text-align: center;
  margin-bottom: 40px;
}

.servicos-header h2 {
  font-weight: bold;
  font-size: 2.25rem;
}

.servicos-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  justify-items: center;
}

.servico-card {
  background-color: #f5faff;
  border: 1px solid #e0e0e0;
  border-radius: 16px;
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  width: 100%;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  text-align: center;
}

.servico-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-outer);
}

.servico-img {
  height: 140px;
  width: 100%;
  object-fit: cover;
  filter: grayscale(0.2) brightness(0.95);
}

.servico-body {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.servico-title {
  margin-bottom: 24px;
  font-size: 1.25rem;
  font-weight: 600;
}

.btn-especialista {
  background-color: #28a745;
  color: white;
  text-decoration: none;
  padding: 10px 20px;
  border-radius: 25px;
  font-size: 0.85rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: all 0.3s ease;
  border: 1px solid #28a745;
  width: 160px;
  text-align: center;
}

.btn-especialista:hover {
  background-color: white;
  color: #28a745;
}

@media (max-width: 576px) {
  .servicos-header h2 {
    font-size: 1.8rem;
  }

  .servico-card {
    max-width: 100%;
  }

  .btn-especialista {
    width: 100%;
  }
}