/* ========== News Page Styling ========== */

body {
  font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif;
  background: #fafafa;
  margin: 0;
  padding: 0;
}

.section-title {
  text-align: center;
  color: #12083f;
  font-size: clamp(1.5rem, 2.5vw, 1.8rem);
  margin: 30px 30px 20px;
  font-weight: 600;
  text-decoration: none;   
  border-bottom: none;    
}

/* Responsive grid 3 → 2 → 1 */
.news-container {
  margin: 0 auto;
  display: grid;
  grid-template-columns: repeat(3, minmax(320px, 1fr));
  gap: 20px;
  padding: 15px;
}

/* Card wrapper */
.news-card {
  background: #fff;
  border-radius: 10px;
  padding: 12px;
  border: 4px solid #ccc;
  height: 420px;           /* fixed card height */
  display: flex;
  align-items: center;
  justify-content: center;
  transition: 0.3s ease;
}

/* Hover effect */
.news-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

/* Image fit */
.news-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;     /* full image visible */
  display: block;
}

/* Color borders like Yojna page */
.blue    { border-color: #007bff; }
.green   { border-color: #28a745; }
.yellow  { border-color: #f0ad4e; }
.red     { border-color: #dc3545; }
.purple  { border-color: #6f42c1; }
.teal    { border-color: #17a2b8; }
.orange  { border-color: #eba40d; }
.darkblue{ border-color: #5f0bcc; }

/* Mobile fixes */
@media (max-width: 768px) {
  .news-card {
    height: 360px;
  }
}

@media (max-width: 480px) {
  .news-container {
    grid-template-columns: 1fr;
    gap: 15px;
  }
}
