.responsive-news-grid {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2rem;
    padding: 2rem 2rem;
    max-width: 1300px;
    margin: auto;
}

.news-card {
  display: flex;
  background: var(--card-bg);
  border-radius: 16px;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
  flex-direction: row;
  min-height: 280px; /* consistent height for large screens */
}

.news-card:hover {
    transform: translateY(-5px);
}

.news-card img {
  width: 50%;
  height: 100%;
  object-fit: cover;
}

.news-content {
  width: 50%;
  padding: 1.5rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  height: 100%;
}

.tag {
    background: #007BFF;
    color: white;
    padding: 0.3rem 0.75rem;
    font-size: 0.75rem;
    border-radius: 6px;
    text-transform: uppercase;
    margin-bottom: 1rem;
    max-width: 120px;
    text-align: center;
}

.news-content h2 {
    margin: 0 0 0.75rem;
    font-size: 1.5rem;
}

.news-content p {
    margin-bottom: 1rem;
    font-size: 1rem;
}

.meta {
    font-size: 0.875rem;
    color: #666;
    display: flex;
    justify-content: space-between;
}

.image-right {
    flex-direction: row-reverse;
}

/* Large screens: 2x2 grid */
@media (min-width: 1300px) {
    .responsive-news-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Medium screens: stacked, alternate images */
@media (max-width: 1299px) and (min-width: 768px) {
    .responsive-news-grid {
        grid-template-columns: 1fr;
    }

    .news-card:nth-child(even) {
        flex-direction: row-reverse;
    }

    .news-card:nth-child(odd) {
        flex-direction: row;
    }
}

/* Mobile screens: image on top */
@media (max-width: 767px) {
    .news-card {
        flex-direction: column;
    }

    .news-card img,
    .news-content {
        width: 100%;
    }
}