.services-section {
  background: #f9fbff;
  padding: 80px 20px;
  text-align: center;
}

.services-header h2 {
  font-size: 32px;
  font-weight: 700;
  margin-bottom: 8px;
  color: #222;
}

.services-header p {
  font-size: 16px;
  color: #666;
  margin-bottom: 30px;
}

/* FILTRE */
.filters {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 40px;
}

.filter-btn {
  border: 2px solid #620000;
  padding: 10px 18px;
  border-radius: 30px;
  background: white;
  color: #620000;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.3s ease;
}
.card-link {
  text-decoration: none;
  display: block;
  color: inherit;
}

.card-link:hover .service-card {
  transform: translateY(-4px);
}


.filter-btn:hover,
.filter-btn.active {
  background-color: #620000;
  color: white;
}

/* GRID CARDS */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  margin-bottom: 40px;
  align-items: stretch; /* nou */
}

.service-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: white;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
  text-align: left;
  transition: transform 0.3s ease;
  height: 100%; /* important */
}


.service-card:hover {
  transform: translateY(-4px);
}

.service-card img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  flex-shrink: 0;
}

.card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 20px;
}

.card-body h3 {
  font-size: 18px;
  color: #620000;
  margin-bottom: 6px;
}

.card-body small {
  font-size: 13px;
  color: #888;
  display: block;
  margin-bottom: 8px;
}

.card-body p {
  font-size: 14px;
  color: #444;
}

/* PAGINARE */
.pagination {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.page {
  display: inline-block;
  padding: 8px 14px;
  background: white;
  border: 1px solid #ddd;
  border-radius: 4px;
  color: #620000;
  text-decoration: none;
  font-weight: 500;
  transition: all 0.3s ease;
}

.page:hover {
  background-color: #620000;
  color: white;
}

.page.active {
  background-color: #620000;
  color: white;
  border-color: #620000;
}

.dots {
  padding: 8px;
  color: #999;
}

/* Responsive */
@media (max-width: 768px) {
  .filters {
    flex-direction: column;
    align-items: center;
  }

  .services-grid {
    grid-template-columns: 1fr;
  }

  .pagination {
    flex-wrap: wrap;
  }
}
