.news-card {
  background: white;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border-radius: 8px;
}

/* Consistent image styles across components */
.news-card img,
.featured-box img,
.card-board img {
  width: 100%;
  height: 100px;
  object-fit: cover;
  display: block;
  border-radius: 10px;
}

.featured-box img {
  height: 300px; /* Override only height */
  border-radius: 12px;
}

/* Card body styling */
.news-card .card-body {
  padding: 15px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

/* Title */
.news-card h4 {
  font-size: 16px;
  font-weight: bold;
  color: #bf3b35;
  margin-bottom: 10px;
  line-height: 1.3;
}

/* Subtitle/Text */
.news-card p {
  font-size: 14px;
  color: #444;
  line-height: 1.5;
}


/* Date display */
.date {
  font-size: 12px;
  color: #888;
}

/* News Grid layout */
.news-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr); /* Desktop default */
  gap: 20px;
  padding: 2px;
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  .news-grid {
    grid-template-columns: repeat(2, 1fr); /* Tablet */
  }
}

@media (max-width: 576px) {
  .news-grid {
    grid-template-columns: 1fr; /* Mobile */
  }

  .news-card .card-body {
    padding: 10px; /* Smaller padding on mobile */
  }

  .news-card h4 {
    font-size: 14px;
  }
}

/* News image wrapper for featured or mixed layouts */
.news-image-wrapper {
  width: 100%;
  height: 180px;
  flex-shrink: 0;
}

@media (min-width: 768px) {
  .news-image-wrapper {
    width: 50%;
    height: 100%;
  }
}

.news-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Grid: 2 per row on desktop */
.more-news-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 20px;
    margin-top: 15px;
}

.more-news-box {
    background: #fff;
    border-radius: 6px;
    overflow: hidden;
    transition: box-shadow 0.2s ease-in-out;
}

/* Flex layout: image left, text right */
.more-news-content {
    display: flex;
    gap: 15px;
    flex-direction: row;
    align-items: flex-start;
}

/* Landscape image style (exact like screenshot) */
.more-news-image {
    flex-shrink: 0;
    width: 220px;   /* wide */
    height: 120px;  /* shorter */
    border-radius: 8px;
    overflow: hidden;
}

.more-news-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Text content */
.more-news-text {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.more-news-title {
    font-size: 1.05rem;
    font-weight: bold;
    color: #b32024; /* your red */
    margin-bottom: 6px;
    line-height: 1.3;
}

.more-news-snippet {
    font-size: 0.9rem;
    color: #444;
    margin-bottom: 8px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2; /* limit to 2 lines */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Meta info (category + time) */
.more-news-meta {
    font-size: 0.8rem;
    color: #777;
    display: flex;
    align-items: center;
    gap: 10px;
}

.news-category {
    background: #f1f5f9;
    color: #0d6efd;
    padding: 2px 8px;
    border-radius: 12px;
    font-size: 0.75rem;
    font-weight: 500;
}

.news-date {
    color: #999;
}

/* Mobile responsive: stacked */
@media (max-width: 768px) {
    .more-news-grid {
        grid-template-columns: 1fr; /* single column */
    }
    .more-news-content {
        flex-direction: column;
        align-items: center;
    }
    .more-news-image {
        width: 100%;
        height: 200px; /* bigger for mobile */
        margin-bottom: 10px;
    }
    .more-news-text {
        width: 100%;
        text-align: center;
    }
    .more-news-meta {
        justify-content: center;
    }
}
