/* The hero image */
.hero-image {
    background-image: linear-gradient(rgba(0, 0, 0, .3), rgba(0, 0, 0, 0.7)), url('../assets/biotechhero.webp');
    height: 30vh; /*percentage DOES NOT WORK*/
    max-height: 400px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    position: relative;
    display: block;
  }
  /* Card Styles */
  .container {
    display: flex;
    flex-direction: column; /* Change to column */
    flex-wrap: wrap;
    justify-content: space-around;
    align-items: center; /* Add this line */
    padding: 20px;
  }

  .card {
    width: 80%;
    max-width: 400px; /* Add this line */
    background-color: #242a33;
    border-radius: 5px;
    padding: 10px;
    margin-bottom: 20px;
    box-shadow: 0 0 8px #050a14;
    transition: max-height 1s ease;
    display: flex; /* Add this line */
    flex-direction: column; /* Add this line */
  }
  .card-left {
    transform: translateX(-10vw);
  }
  .card-right {
    transform: translateX(10vw);
  }

  .card h2 {
    align-self: center;
    margin: 0;
    padding: 0;
    font-size: 1.8rem;
    font-weight: 500;
    text-shadow: 0 0 8px #050a14;
    position: relative; /* Add this line */
    top: 50px; /* Add this line */
    z-index: 1; /* Add this line */
  }

  .card img {
    width: 100%;
    height: auto;
    border-radius: 5px;
    border: 1px solid #050a14;
    flex-shrink: 0; /* Add this line */
    filter: brightness(50%); /* Add this line */
  }

  .card p {
    margin: 0;
    padding: 0.5rem 0;
    max-height: 2rem;
    overflow: hidden;
  }

  .card .expanded {
    max-height: auto;
  }

  .read-more-btn {
    display: block;
    margin-top: 10px;
    background-color: #007bff;
    color: #fff;
    border: none;
    border-radius: 4px;
    padding: 8px 12px;
    cursor: pointer;
  }

  .read-more-btn:hover {
    background-color: #0056b3;
  }

  .featured-section {
    padding: 2rem 0;
    width: 80%;
    margin: 0 auto;
  }
  .grant-section {
    padding: 2rem 0 5rem;
    width: 80%;
    margin: 0 auto;
  }

  /* ZIG ZAG PANELS */
  .zigZagRow {
    width: 100%;
    padding-top: 2rem;
    padding-bottom: 2rem;
  }
  .zigZagRow::after {
    content: "";
    display: table;
    clear: both;
  }

  .zigZagText {
    float: left;
    width: 65%;
    padding-left: 5%;
    padding-right: 5%;
    padding-top: 1rem;
    padding-bottom: 2rem;
  }

  .zigZagImage {
    position: relative;
    float: left;
    width: 33%;
    height: 90%;
    max-height: 300px;
    /*top: 50%;
    transform: translateY(-50%);*/
    margin-top: 50px;
    margin-bottom: 50px;
  }

  /* When the height of the screen is less than 450 pixels, change the font-size of the links and position the close button again, so they don't overlap */
  @media screen and (max-height: 450px) {
  }

  @media screen and (max-width: 768px) {
    .zigZagText {
      width:100%;
      text-align: center;
    }
    .zigZagImage {display: none;}
  }

  @media screen and (max-width: 576px) {
    .zigZagText {
      width:100%;
      text-align: center;
    }
  }
