.card {
  height: 100%; /* Allow height to be dynamic */
  margin-bottom: 20px;
  border: 1px solid #ddd;
  border-radius: 10px;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
  display: flex;
  flex-direction: column;
  transition: all 0.3s ease-in-out;
}

/* Add a hover effect */
.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.card-body {
  flex-grow: 1;
  padding: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between; /* Improved spacing */
  text-align: center;
}

.card-icon {
  font-size: 40px;
  color: #2571e3;
  margin-bottom: 15px;
}

/* Ensure consistency in heading sizes */
.card-title {
  font-weight: bold;
  font-size: 20px;
  margin-bottom: 10px;
  color: #333;
}

/* Improve readability of descriptions */
.card-text {
  font-size: 16px;
  color: #555;
  flex-grow: 1;
}

/* Style links as buttons */
.card-link {
  display: inline-block;
  padding: 10px 15px;
  background-color: #2571e3;
  color: #fff;
  border-radius: 5px;
  font-size: 16px;
  font-weight: bold;
  text-decoration: none;
  transition: background 0.3s;
}

.card-link:hover {
  background-color: #1e5ab6;
  color: #fff;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .col-md-3 {
      width: 50%;
  }
}

@media (max-width: 768px) {
  .col-md-3, .col-sm-4 {
      width: 100%;
  }
}

@media (max-width: 502px) {
  .col-xs-12 {
      width: 100%;
      margin: 0 auto;
  }
}
