.news-section {
  padding: 60px 20px;
  background: #f9f9f9;
}

.container {
  max-width: 1200px;
  margin: auto;
}

.news-section h2 {
  font-size: 2.5rem;
  margin-bottom: 10px;
  color: #333;
}

.subtitle {
  font-size: 1rem;
  color: #666;
  margin-bottom: 30px;
}

.news-grid {
  display: grid;
  gap: 1.5rem;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
}

.news-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
  transition: transform 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.card-content {
  padding: 1rem;
}

.badge {
  background: #28a745;
  color: white;
  font-size: 0.75rem;
  padding: 4px 8px;
  border-radius: 5px;
  display: inline-block;
  margin-bottom: 8px;
}

.news-card h3 {
  font-size: 1.1rem;
  color: #222;
  margin: 0 0 8px;
}

.date {
  font-size: 0.85rem;
  color: #888;
  margin-bottom: 10px;
}

.summary {
  font-size: 0.9rem;
  color: #444;
  line-height: 1.4;
  margin-bottom: 10px;
}

.read-more {
  display: inline-block;
  margin-top: 10px;
  color: green;
  font-weight: bold;
  text-decoration: none;
}

.read-more:hover {
  color: #007f52;
}

@media (max-width: 600px) {
  .news-section h2 {
    font-size: 1.75rem;
  }
}

/* === Modal Styles === */
.image-modal {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: rgba(0, 0, 0, 0.8);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
}

.image-modal.hidden {
  display: none;
}

.modal-content {
  position: relative;
  max-width: 90%;
  max-height: 90%;
}

.modal-content img {
  width: 100%;
  height: auto;
  border-radius: 8px;
  max-height: 90vh;
}

#modalClose {
  position: absolute;
  top: -20px;
  right: -20px;
  font-size: 2rem;
  color: #fff;
  cursor: pointer;
}
