/* ... (other CSS rules) ... */
.news-card-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  max-width: 1200px;
  margin-top: 20px;
  justify-content: center;
  /* Ensure the container never exceeds the viewport */
  width: 100%;
  box-sizing: border-box;
}

/* The card is sometimes wrapped in an <a> tag for the clickable link.
   Remove all link decoration from that wrapper so h3/p/date text
   never appears underlined. */
.news-card > a,
.news-card > a:visited,
.news-card > a:hover,
.news-card > a:focus {
  text-decoration: none;
  color: inherit;
  display: block;
}

/* Also suppress any nested links inside description text */
.news-description a,
.news-description a:visited {
  text-decoration: none;
  color: #0055cc;
}
.news-description a:hover {
  text-decoration: underline;
}

.news-card {
  background-color: white;
  border-radius: 10px;
  box-shadow: 0px 0px 10px rgba(0, 0, 0, 0.1);
  overflow: hidden;
  flex: 1;
  min-width: calc(25% - 20px); /* Four cards per row on wide screens */
  transition: 0.2s;
  cursor: pointer;
  min-height: 430px;
  text-decoration: none;
  color: inherit;
  /* Prevent any single card from ever exceeding the viewport width */
  max-width: 100%;
  box-sizing: border-box;
}

/* Three cards per row */
@media screen and (max-width: 1280px) {
  .news-card {
    min-width: calc(33.33% - 20px);
  }
}

/* Two cards per row on tablet */
@media screen and (max-width: 768px) {
  .news-card {
    min-width: calc(50% - 20px);
  }
}

/* One card per row on phone — also add side padding so cards don't
   touch the screen edge */
@media screen and (max-width: 600px) {
  .news-card {
    min-width: 100%;
    min-height: auto; /* let height grow naturally on small screens */
  }

  .news-card-container {
    padding: 0 12px;
    gap: 16px;
  }

  .center-grid {
    padding: 0; /* container handles its own padding */
  }
}

.news-card:hover {
  transform: translateY(-0.5%);
  box-shadow: 0 4rem 8rem rgba(0, 0, 0, 0.26);
  filter: brightness(110%);
  /* Add some subtle background color change on hover */
  background-color: #f5f5f5;
}

.news-card img {
  width: 100%; /* Make the image cover the entire width of the card */
  /* height: auto; /* Maintain the aspect ratio of the image */
}
/*
.news-card:before {
  content: "";
  position: absolute;
  top: 0;
  left: -100px;
  width: 200px;
  height: 100%;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(15px);
  transform: skewX(-30deg);
  transition: 0.6s;
}

.news-card:hover:before {
  left: 300px;
}
*/
.news-content {
  padding: 16px;
  flex: 1;
}

.news-content h3 {
  margin-top: 0;
  margin-bottom: 10px;
  font-size: 18px;
  hyphens: auto;
  color: #000;
}

.news-date {
  color: #888888;
  margin-bottom: 6px;
  font-size: 14px; /* Adjust the font size as needed */
}

.news-description {
  color: #444;
  font-size: 14px;
  text-align: justify;
  display: table-row;
  text-align-last: left;
  white-space: normal;
  hyphens: auto;
}

.center-grid {
  display: flex;
  justify-content: center;
}

/* ... (other CSS rules) ... */

.button-container {
  margin: 60px 0; /* Add spacing from the top and bottom */
}

.pill-button {
  display: inline-block;
  font-size: 2rem;
  /*font-family: "Noto Serif", serif;*/
  font-family: "Maven Pro", sans-serif;
  padding: 8px 16px;
  /*background-color: #0041af;*/
  color: white;
  border-radius: 0.3rem;
  border: 2px solid #ffffff;
  text-decoration: none;
  font-weight: 100;
  transition: background-color 0.3s ease;
}

.pill-button:hover,
.pill-button:active {
  background-color: #ffffff;
  color: #0041af;
}

.pill-button span {
  margin-left: 1rem;
  transition: 0.2s;
}

.pill-button:hover span,
.pill-button:active span {
  margin-left: 1.5rem;
}
