.news-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  justify-content: flex-start; /* Better alignment for last row items */
}

.news-card {
  flex: 1 1 calc(33.333% - 16px);
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  min-width: 280px;
}


.news-img {
  position: relative;
}

/* 
    .news-card {
        flex: 1 1 calc(33.333% - 16px);
        background: #fff;
        border-radius: 8px;
        overflow: hidden;
        box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
        transition: 0.3s ease;
    } */
.news-main-img {
  width: 100%;
  height: 230px;
  object-fit: cover;
  border-radius: 5px;
  display: block;
}

.badge-wrapper {
  /* position: absolute;
  top: 0px;
  left: 0px; */
  width: 160px;
  height: 30px;
  margin-left: -5px;
}

.date-badge-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}


.badge-text {
     /* bottom: -63px; */
    /* right: -15px; */
    position: absolute;
    /* top: 50%; */
    /* left: 10px; */
    /* transform: translate(-50%, -50%); */
    font-size: 13px;
    font-weight: 700;
    font-weight: var(--heading-font);
    color: #fff;
    white-space: nowrap;
    pointer-events: none;
    margin-top: -28px;
    text-align: center;
    margin-left: 20px;
}


    .news-content {
        padding: 15px;
    }

    .news-content h5 {
        font-weight: 700;
        font-size: 20px;
        margin-bottom: 10px;
        color: #000;
        font-family: var(--heading-font);
    }

    .news-content p {
        font-size: 14px;
        color: #504f4f;
        margin-bottom: 15px;
         font-family: var(--heading-font);
    }

    .news-btn {
        display: inline-block;
        font-size: 14px;
        color: #fff;
        background-color: #39b54a;
        padding: 10px 18px;
        border-radius: 50px;
        text-decoration: none;
        font-weight: 500;
        transition: background 0.3s ease;
    }

    .news-btn i {
        margin-left: 6px;
        transform: rotate(-45deg);
    }

    .news-btn:hover {
        background-color: #388e3c;
    }

    
/* Responsive */
@media (max-width: 991px) {
  .news-card {
    flex: 1 1 calc(50% - 12px); /* 2 per row */
  }
}

@media (max-width: 500px) {
  .news-card {
    flex: 1 1 100%; /* 1 per row */
  }
}