.grid-container {
    display: grid;
    gap: 50px; /* Adjusted for responsiveness */
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); /* Responsive columns */
    grid-auto-rows: 250px; /* Row height */
    margin-right: 20px;
    margin-left: 20px;
}

.content {
    text-align: center;
    border: 0px solid #ccc;
    padding: 8px;
    border-radius: 20px;
    background-color: #f9f9f9;
    margin-bottom: 20px;
}

img {
    width: 100%; /* Scales with column width */
    height: 100%; /* Stretches to match row height */
    object-fit: cover; /* Ensures aspect ratio is maintained */
    display: block;
    margin: auto;
}

h5 {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 18px;
    font-weight: bold;
    color: #ffffff;
  }
  
  h5 a {
    text-decoration: underline;
    text-decoration-color: #ffffff; 
    color: inherit; 
  }
  
  h5 a:link,
  h5 a:visited,
  h5 a:hover,
  h5 a:active {
    text-decoration: underline !important; /* Force the underline */
    text-decoration-color: #ffffff !important; /* Ensure the underline is white */
    color: inherit; /* Keep text color consistent */
  }

  a {
    text-decoration: none; /* Remove the underline for all links */
    color: inherit; /* Inherit the parent color (e.g., h5 text color) */
}

a:link,
a:visited,
a:hover,
a:active {
    text-decoration: none; /* No underline for any state */
    color: inherit; /* Match text color */
}
