.cards-module {
    max-width: 75%;
    margin: 2rem auto;
    padding: 0;
    font-family: "Segoe UI", sans-serif;
  }

  /* Centered, 95%-width title wrapper */
  .cards-module__title-wrapper {
    width: 98%;
    margin: 0 auto 1.25rem;
    border-radius: 1rem;
    padding: 0.5rem 0;
  }

  .cards-module__title {
    margin: 0;
    margin-left: -10px;
    text-align: Left;
    font-weight: bold;
    font-size: 45px;
    color: #3d3935;
  }

  .cards-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 2rem;
    justify-content: center;
  }

  .card {
    border: 2px solid #44659b;
    border-radius: 0.75rem;
    box-shadow: 0 3px 8px rgba(0,0,0,0.1);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform .5s, background .5s;

    /* fixed maximum size */
    max-width: 400px;
    max-height: 500px;
  }
  .card:hover {
    transform: translateY(-4px);
    background-color: #44659b;
    transition: transform .5s, background .5s;
  }

  .card__image {
    width: 90%;
    margin-top: 5%;
    margin-left: 5%;
    border-radius: 10px;
    aspect-ratio: 16/9;
    object-fit: cover;
    flex-shrink: 0;
  }

  .card__content {
    margin-left: 5%;
    padding: 0.75rem;
    flex: 1;
    display: flex;
    flex-direction: column;
    overflow: auto;
  }

  .card__title {
    margin-left: 5%;
    font-size: 1.125rem;
    color: #3d3935;
    margin: 0 0 0.25rem;
    transition: color .5s;
  }

  .card:hover .card__title {
    margin-left: 5%;
    font-size: 1.125rem;
    color: #E0E0E0;
    margin: 0 0 0.25rem;
    transition: color .5s;
  }

  .card__desc {
    flex: 1;
    margin-bottom: 1rem;
    width: 90%;
    font-size: 0.875rem;
    color: #3d3935;
    line-height: 1.4;
    font-weight: bold;
    transition: color .5s;
  }

  .card:hover .card__desc {
    color: #E0E0E0;
    flex: 1;
    margin-bottom: 1rem;
    width: 90%;
    font-size: 0.875rem;
    line-height: 1.4;
    font-weight: bold;
    transition: color .5s;
  }

  .card__link {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: bold;
    align-self: flex-start;
    background: #44659b;
    border-radius: 0.5rem;
    color: #E0E0E0;
    width: 125px;
    transition: color .5s, background .5s;
    text-align: center;
  }

  .card:hover .card__link {
    text-decoration: none;
    font-size: 0.875rem;
    font-weight: bold;
    align-self: flex-start;
    background: #E0E0E0;
    border-radius: 0.5rem;
    color: #44659b;
    width: 125px;
    transition: color .5s, background .5s;
    text-align: center;
  }

  .card:hover .card__link:hover {
    color: #3d3935;
  }

  .welcome {
    background-image: url("../images/building-banner.jpg");
    background-size: cover;
    margin: 40px auto 0;
    width: 75%;
    height: 300px;
    border-radius: 10px;
    background-position: center;
    background-repeat: no-repeat;
  }

  .welcome .filter {
    width: 100%;
    height: 300px;
    border-radius: 10px;
    backdrop-filter: blur(1px) brightness(45%) ;
  }

  .news-container {
      display: flex;
      flex-direction: column;
      gap: 5px;
      margin-top: 10px;
    }

    .news-bubble {
      border-radius: 15px;
      padding: 10px 15px;
      display: flex;
      justify-content: space-between;
      align-items: center;
      transition: transform .5s ease;
      font-size: 0.95em;
      border: 2px solid #44659b;
      border-radius: 0.75rem;
      transition: color .5s, background .5s;
    }

    .news-bubble:hover {
      transform: scale(1.05);
      background-color: #44659b;
      transition: color .5s, background .5s;
    }

    .news-title {
      font-weight: bold;
      color: #333;
      margin-right: 10px;
      flex: 1;
    }

    .news-bubble:hover .news-title {
      font-weight: bold;
      color: #E0E0E0;
      margin-right: 10px;
      flex: 1;
      transition: color .5s, background .5s;
    }

    .news-meta {
      color: #777;
      white-space: nowrap;
    }

    .news-bubble:hover .news-meta {
      color: #E0E0E0;
      white-space: nowrap;
      transition: color .5s, background .5s;
    }

    .news {
        margin: 30px 0 0;
        width: 37%;
        height: 300px;
    }

    .button-container {
      display: flex;
      gap: 16.5px;
      margin-top: 30px;
      flex-wrap: wrap;
    }

    .image-button {
      display: inline-block;
      border-radius: 12px;
      overflow: hidden;
      box-shadow: 0 4px 8px rgba(0,0,0,0.1);
      transition: transform 0.2s ease, box-shadow 0.2s ease;
      border: 2px solid #44659b;
      border-radius: 0.75rem;
    }

    .image-button img {
      display: block;
      object-fit: cover;
    }

    .image-button:hover {
      transform: scale(1.08);
      box-shadow: 0 6px 12px rgba(0,0,0,0.2);
    }

    .resources {
        margin: 40px auto 0;
        width: 75%;
        height: 210px;
        border-radius: 10px;
    }