/* Container for the cards */
.container {
  max-width: 1100px;
  margin: 50px auto;
  padding: 0 20px;
}

/* Title */
.container h1 {
  text-align: center;
  margin-bottom: 35px;
  font-size: 32px;
  color: #000;
}

/* The grid layout */
.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 25px; /* <-- FIXES SPACING */
}

/* Service cards */
.card {
  background: #ffffff;
  border-radius: 16px;
  padding: 25px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  text-align: center;
  transition: transform .2s ease, box-shadow .3s ease;
}

/* Hover effect */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.18);
}

/* Icons */
.card-icon i {
  font-size: 45px;
  color: #FFD700;
  margin-bottom: 10px;
}

/* Titles */
.card-title {
  font-size: 20px;
  font-weight: bold;
  margin-bottom: 10px;
  color: #000;
}

/* Text */
.card-text {
  font-size: 15px;
  line-height: 1.5;
  color: #333;
}

/* Mobile adjustments */
@media (max-width: 600px) {
  .card {
    padding: 20px;
  }

  .card-icon i {
    font-size: 40px;
  }

  .card-title {
    font-size: 18px;
  }
}
    