body {
  font-family: 'Segoe UI', sans-serif;
  margin: 0;
  color: #0C2239;
}

/* Header */
.news-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: #0C2239;
  color: white;
  padding: 15px 20px;
}

.news-header h1 {
  margin: 0;
}

.search-box {
  display: flex;
  gap: 10px;
}

.search-box input {
  padding: 8px;
  border: none;
  border-radius: 4px;
}

.search-box button {
  background: #ff6600;
  border: none;
  padding: 8px 12px;
  cursor: pointer;
  border-radius: 4px;
  font-weight: bold;
}

.search-box button:hover {
  background: #a97d30;
}

/* Featured News */
.featured-news {
  background: white;
  margin: 20px;
  padding: 20px;
  border-radius: 12px;
  box-shadow: 0 3px 10px rgba(0,0,0,0.1);
  text-align: center;
}

.featured-news h2 {
  color: #0C2239;
}

.featured-news p {
  font-size: 1rem;
}

/* Featured image - make small */
.featured-news img {
  width: 200px;        /* same size as thumbnails */
  height: 150px;
  object-fit: cover;
  border-radius: 8px;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* All News Grid */
.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  margin: 20px;
}

.news-card {
  background: white;
  padding: 15px;
  border-radius: 10px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.08);
  transition: transform 0.2s ease;
  text-align: center;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card h3 {
  color: #0C2239;
  margin-top: 10px;
}

.news-card p {
  font-size: 0.9rem;
  color: #0C2239;
}

/* Thumbnail image for news cards */
.news-card img {
  width: 200px;        /* fixed thumbnail width */
  height: 150px;       /* fixed thumbnail height */
  object-fit: cover;   /* crop instead of stretching */
  border-radius: 8px;
  margin-bottom: 10px;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Responsive */
@media (max-width: 600px) {
  .news-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .search-box {
    width: 100%;
  }
  .search-box input {
    flex: 1;
  }
  .news-card img,
  .featured-news img {
    width: 100%;     /* images take full width on mobile */
    height: auto;    /* adjust height */
  }
}
