/* Custom styles for cards */
.custom-card {
  border-radius: 16px;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
  transition: transform 0.3s, box-shadow 0.3s;
  display: flex;
  flex-direction: column;
  height: 375px; /* Fixed height for cards */
}

.custom-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 8px 16px rgba(0, 0, 0, 0.2);
}

.custom-card .card-img-top {
  border-top-left-radius: 16px;
  border-top-right-radius: 16px;
  height: 100%; /* Ensure image fills its container */
  object-fit: cover; /* Crop image to fit without distortion */
}

.custom-card .card-body {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.custom-card .btn-primary {
  margin-top: auto; /* Push the button to the bottom */
}

@media (max-width: 768px) {
  .custom-card {
    height: auto; /* Allow cards to adjust height based on content on smaller screens */
  }
}
