.banner {
    width: 100%;
    overflow: hidden;
    padding-top: 8%;
    /* height: 80%; */
    position: relative;
    display: none;
  }

  .desc {
    color: var(--Secondary-Colour-2, #757977);
    font-family: Questrial;
    font-size: 15px;
    font-style: normal;
    font-weight: 400;
    line-height: 21px;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
  }

  .bannerimg{
    width: 100%;
    height: 100%;
  }

  .blog-container{
    width: 100%;
  }
  .blog-category-section {
    width: 90%;
    max-width: 100%;
    margin: 90px auto;
    padding: 20px;
}

.blog-category-section h1 {
    padding: 2% 0;
    font-size: 2rem;
    color: black;
    text-align: center;
}

.tabs {
    display: flex;
    justify-content: flex-start;
    position: relative;
    margin-bottom: 20px;
}

.tab {
    margin: 0 10px;
    padding: 10px 20px;
    cursor: pointer;
}

.tab:hover {
    color: black;
}

.tab.active {
    color: black;
    border-bottom: 2px solid black;
}

.underline {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 2px;
    background: #e0e0e0;
    z-index: -1;
}

.blogs {
    display: flex;
    justify-content: space-around;
    flex-wrap: wrap;
}

.blog-item {
    max-width: 100%;
    /* margin: 10px; */
    text-align: left;
}

.blog-item img {
    max-width: 100%;
    height: auto;
}
.blog-category-wrapper {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(384px, 1fr));
    gap: 24px; /* Gap between divs */
}
a{
    color: black;
}
.blog-category-wrapper > div {
    width: 100%;
    box-sizing: border-box;
}

.blog-category-wrapper > div img {
    max-width: 100%;
    height: auto;
    display: block;
}
@media (max-width: 1200px) {
    .blog-category-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    }
    /* .news-heading{
        height: 40%;
    } */
    .desc {
        color: var(--Secondary-Colour-2, #757977);
        font-family: Questrial;
        font-size: 15px;
        font-style: normal;
        font-weight: 400;
        line-height: 21px;
        text-overflow: ellipsis;
      
        display: -webkit-box;            /* Necessary for flexbox-based truncation */
        -webkit-line-clamp: 2;           /* Limits text to 2 lines */
        -webkit-box-orient: vertical;    /* Sets the box orientation */
        overflow: hidden;               /* Hides the overflowing text */
    }
}

@media (max-width: 600px) {
    .banner{
        height: 50%;
        padding-top: 5rem;
    }
    .banner img{
        object-fit: cover;
    }
    .blog-category-section{
        width: 100%;
        padding: 0;
    }
    .news-heading,.desc{
        padding: 0 16px !important;
        width: 100% !important;
        display: block;
        height: auto;
    }
    .desc{
        padding: 16px 16px !important;
    }
    .date-bx{
        display: none;
    }
    .blog-category-section h1{
        padding: 26px 0;
    }
    .blog-category-wrapper {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    .blog-category-wrapper > div{
        gap: 16px;
        display: flex;
        flex-direction: column;
    }
    .underline{
        padding: 0 16px;
    }
    .tab{
        padding: 10px 5px;
    }
}

@media (max-width: 576px) {
    .blog-category-wrapper {
        grid-template-columns: 1fr; /* Full width for mobile screens */
    }
    .tab{
        padding: 10px 3px;
    }
}

@media (max-width:1200px) and (min-width:700px){
    .banner{
        height: 50%;
        padding-top: 16%;
    }
}