/* Grid Container */
.cards-grid {
  display: flex;
  /* grid-template-columns: repeat(3, 1fr); */
  /* Three columns */
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: center;
  /* width: 100%; */
  max-width: 1200px;
  /* Limits the grid width */
  min-width: 400px;
  /* Minimum width for smaller screens */
  margin: auto;
}

/* Card Styles */
.card {
  background: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0px 4px 6px rgba(0, 0, 0, 0.1);
  text-align: center;
  margin: 10px;
  font-family: 'DM Sans', sans-serif;
  max-width: 1200px;
  font-size: 22px;
}

/* Card Titles */
.card-title {
  color: #545152ff;
  font-size: 25px;
  margin-bottom: 20px;
}

/* Links */
.card-body a {
  display: block;
  text-decoration: none;
  color: white;
  /* background: #599acdff; */
  padding: 20px 3rem;
  border-radius: 5px;
  margin: 10px 0px;
}

.card-image img {
  width: 30rem;
  height: 30rem;
  object-fit: cover;
  border-radius: 8px;
}

.card-body p {
  padding: 15px;
}

.card-body a:nth-child(1) {
  background: #599acdff;
}

.card-body a:nth-child(2) {
  background: #04a399ff;
}

.card-body a:hover {
  background: #e3e5e7ff;
  color: #545152ff;
}

@media (max-width: 776px) {
  .card p {
    font-size: 1rem;
  }
  .card-image img {
    width: 20rem;
    height: 20rem;
  }
}
