html, body {
    height: 100%; /* Ensure full height */
    margin: 0;
    padding: 0;
  }
  body {
    font-family: Arial, sans-serif;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 0 16%; /* 20% padding on the left and right */
    background-color: #f5f5f5; /* Adjust this to your preferred background color */
  }
  .card {
    border: 1px solid #ccc;
    padding: 3px;
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    text-align: center;
    width: 300px; /* Fixed width for each card */
    box-sizing: border-box;
    flex: 1 1 calc(33.33% - 40px); /* Adjust width to allow 3 per row, considering the gap */
    background-color: white; /* White background for each card */
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    color: inherit; /* Inherit text color to prevent default blue color of links */
    text-decoration: none; /* Remove underline from links */
  }
  .logo {
    position: absolute;
    top: -75px; /* Adjusted to accommodate larger logo size */
    width: 150px; /* Increased logo size */
    height: auto; /* Maintain aspect ratio */
  }
  .card img.content-img {
    width: 100%; /* Adjust width to make image responsive */
    height: auto; /* Maintain aspect ratio */
    margin-top: 0px; /* Space below the logo */
  }
  .card p {
    font-size: 16px;
    color: #333;
    margin-top: auto; /* Pushes the paragraph to the bottom of the flex container */
  }
  @media (max-width: 1000px) {
    .card {
      flex: 1 1 100%; /* Full width on smaller screens */
    }
    body {
      padding: 0 10%; /* Less padding on smaller screens */
      padding-bottom: 10%;
    }
  }