.card {
  border: 1px solid #5f9dd2;
  border-radius: 1rem;
  transition: transform 0.2s ease-in-out, border-color 0.2s, color 0.2s;
  background-color: #f9f9f9;
  width: 100%;
  height: 100%;
  margin: 0;
  box-shadow: 2px 2px 6px rgba(0,0,0,0.3);
}

.card img {
  border-top-left-radius: 1rem;
  border-top-right-radius: 1rem;
  object-fit: contain;
  height: 180px;
  width: 100%;  
  display: block; 
  padding: 0;
  margin: 0;
}

.card .card-title {
  font-weight: 700;
  font-size: 1.25rem;
  color: #335370;
  text-transform: uppercase;
  text-align: center;
  margin-bottom: 0.75rem;
}

.car .card-title-div {
  background-color: #192936;
}

.card address,
.card phone {
  display: block;
  font-size: 0.9rem;
  text-align: center;
  margin-bottom: 0.5rem;
}

.card li {
    border-bottom: 1px solid #5f9dd2;
}

.card .card-body a {
  display: inline-block;
  text-decoration: none;
  color: #5f9dd2;
  font-weight: 700;
  transition: color 0.2s;
}

.card .card-body a:hover {
    color: #335370;
    text-decoration: underline;
}

.list-group {
  list-style-type: none;
  font-weight: 500;
}

.list-group .list-group-item {
  width: 100%;
}

/* Adjust the card size and layout based on screen size */
@media (max-width: 1200px) {
  /* For large screens, show 3 cards per row */
  .col-md-4 {
    flex: 0 0 33.33%;
    max-width: 33.33%;
  }
}

@media (max-width: 992px) {
  /* For medium screens (tablets), show 2 cards per row */
  .col-md-4 {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (max-width: 576px) {
  /* For smaller screens (phones), show 1 card per row */
  .col-1 {
    flex: 0 0 100%;
    max-width: 100%;
  }

  .card {
    width: 90%;
    margin: auto;
  }

  .card img {
    height: auto;
    max-height: 200px;
  }

  .card .card-title {
    font-size: 1.1rem;
  }

  .card .list-group-item {
    font-size: 0.85rem;
  }
}