.article-container {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1em;
  width: 100%;
  margin: 2em auto;
}

.article-card {
    display: flex;
        max-height: 32vh;
    flex-direction: column;
    background: #fff;
    margin: 0 0 1em;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    text-decoration:none;
    cursor: pointer;
    transition: transform 0.2s;
}
.article-card:hover {
    transform: scale(1.02);
}

.article-image {
    position: relative;
    width: 100%;
    display: block;
    height: 15vw;
    object-fit: cover;
}
.headline-overlay {
    position: relative;
    bottom: 0;
    margin-top: -15%;
    left:0;
    width: 100%;
    background: rgba(0,0,0,0.50);
    color: #fff;
    padding: 0.5em;
    font-weight: 600;
    box-sizing: border-box;
}
.article-content {
    padding: 0.8em 1em;
    display: none;
    font-size: 14px;
    text-align: justify;
}
.view-button {
    display: inline-block;
    margin-top: 0.5em;
    background-color: #cb202d;
    color: #fff;
    padding: 0.3em 0.6em;
    border-radius: 5px;
    text-decoration: none;
}


body {
    font-family: "Poppins", sans-serif;
    background-color: #f3f3f3;
    margin: 0;
}
.heading-container {
    background-color: #cb202d;
    color: #fff;
    padding: 1em;
    text-align: center;
    box-shadow: 0 10px 50px rgba(2,0,31,0.3);
    position: sticky;
    top: 0;
    z-index: 10;
}
.heading-container h4 {
    margin:0;
    font-weight: 600;
    font-size: 2em;
}
.container {
    column-count: 3;
    column-gap: 1em;
    width: 90%;
    margin: 2em auto;
}


@media (max-width: 1024px){ 
    .article-container { 
      grid-template-columns: repeat(2, 1fr);
    }
    
    }
@media (max-width: 768px){ 
    .article-container 
    { 
        grid-template-columns: repeat(1, 1fr);
    } 

 /* .article-image
    {
        height: fit-content ;
    } */
}

