

:root {
    --body-text: 14px;
    --text-light: rgba(0, 0, 0, 0.7);
    --text-heavy: rgba(0, 0, 0, 0.85);

    

}

* {
    box-sizing: border-box;
  }
  
  body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    height: 100%;
    min-height: 100vh;
    background-color: rgb(242, 242, 242);
  }

  h3 {
    font-size: 20px;
    color: var(--text-heavy);
    margin: 24px 0px 16px;
    font-weight: 600;
    line-height: 26px;
  }
  
  h4 {
    color: var(--text-light);
    font-size: 14px;
  }


  
  main {
    padding: 80px;
    display: flex;
    justify-content: center;
    flex-direction: column;
  }
  
  .blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-gap: 4em;
    width: fit-content;
    padding-top: 32px;
  }
  
  .blog-card {
    display: flex;
  align-items: flex-start;
  background-color: #ffffff;
  padding: 24px;
  border-radius: 10px;
  height: 450px;
  width: 550px;
  flex-direction: column;
  -webkit-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  -moz-box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.45);
  }

  
  
  .blog-card h3 a {
    color: #333;
    text-decoration: none
  }
  

  .blog-card .blog-info {
    width: 100%;
    max-height: 100%;

}

.blog-card .blog-info p{
        display: -webkit-box;
        -webkit-line-clamp: 4;
        -webkit-box-orient: vertical;  
        overflow: hidden;
        font-size: var(--body-text);
        color: var(--text-light);
        font-weight: 400;
        line-height: 20px;
     }

.blog-image-container {
    max-height: 55%; /* you can set this value to the desired height */
    overflow: hidden;
    align-items: center;
    justify-content: center;
    display: flex;
    flex: 1;
    width: 100%;
    border-radius: 4px;

}

.blog-image {
    object-fit: cover;
    width: 110%;

}

  
  
  footer {
    background-color: #333;
    color: #fff;
    padding: 1em;
    text-align: center;
    position: absolute;
    bottom: 0px;
    left: 0px;
    right: 0px;
  }
  
  footer p {
    color: white;
  }
  


  @media only screen and (max-width: 1400px) {

    .blog-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        grid-gap: 3em;
        width: fit-content;
        padding-top: 32px;
      }

  }

  @media only screen and (max-width: 950px) {

    .blog-grid {
        display: grid;
        grid-template-columns: repeat(1, 1fr);
        grid-gap: 3em;
        width: fit-content;
        padding-top: 32px;
      }

  }

