.news-section {
  max-width: 1000px;
  margin: 0 auto;
  padding: 20px;
  background: #f9f9f9;
}

.cards-container {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: space-between;
}

.news-card {
  border: 1px solid #ddd;
  border-radius: 6px;
  width: calc(33% - 13.33px);
  box-shadow: 0 6px 15px rgba(0,0,0,0.25); /* stronger shadow */
  overflow: hidden;
  display: flex;
  flex-direction: column;
  background: #fff;
  transition: transform 0.2s ease;
}

.news-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,0.35);
}

.news-image-wrapper {
  padding: 10px; /* space between image and card border */
}

.news-image {
  width: 100%;
  height: 150px;
  object-fit: cover;
  border-radius: 4px;
}

.news-content {
  padding: 15px;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
}

.news-content h2 {
  margin: 0 0 10px;
  font-size: 1.2rem;
  color: #222;
}

.news-content p.summary {
  font-size: 0.95rem;
  color: #555;
  margin-bottom: 10px;
}

.news-content p.full-news {
  font-size: 0.95rem;
  color: #333;
  margin-bottom: 10px;
  white-space: pre-wrap;
}

.news-content time {
  font-size: 0.85rem;
  color: #999;
  margin-top: auto;
}

.read-more-btn {
  background-color: transparent;
  border: none;
  color: #007bff;
  cursor: pointer;
  padding: 0;
  margin-bottom: 10px;
  font-size: 0.9rem;
  align-self: flex-start;
  transition: color 0.2s ease;
}

.read-more-btn:hover {
  text-decoration: underline;
  color: #0056b3;
}

.pagination {
  margin-top: 25px;
  text-align: center;
  user-select: none;
}

.pagination a {
  display: inline-block;
  margin: 0 5px;
  padding: 8px 12px;
  color: #333;
  text-decoration: none;
  border: 1px solid #ddd;
  border-radius: 4px;
  transition: background-color 0.2s ease, color 0.2s ease;
}

.pagination a.active {
  background-color: #007bff;
  color: white;
  border-color: #007bff;
  pointer-events: none;
}

.pagination a:hover:not(.active) {
  background-color: #eee;
  color: #007bff;
}

/* The Modal (background) */
.modal {
  position: fixed; 
  z-index: 9999; 
  left: 0;
  top: 0;
  width: 100%; 
  height: 100%; 
  overflow: auto;
  background-color: rgba(0,0,0,0.6); /* Black w/ opacity */
  display: flex;
  justify-content: center;
  align-items: center;
}

/* Modal Content Box */
.modal-content {
  background-color: #fff;
  padding: 20px 30px;
  border-radius: 8px;
  max-width: 700px;
  max-height: 80vh;
  overflow-y: auto;
  box-shadow: 0 8px 25px rgba(0,0,0,0.3);
  position: relative;
}

/* Close Button */
.modal-close {
  position: absolute;
  top: 12px;
  right: 20px;
  font-size: 28px;
  font-weight: bold;
  cursor: pointer;
  color: #555;
  transition: color 0.3s ease;
}

.modal-close:hover {
  color: #000;
}

#modal-title {
  margin-top: 0;
  margin-bottom: 15px;
}

#modal-news-content {
  white-space: pre-wrap;
  color: #333;
  font-size: 1rem;
  line-height: 1.5;
}

/* Add inside your existing .modal-content styles */

#modal-image {
  margin-bottom: 15px;
  border-radius: 6px;
  max-width: 100%;
  max-height: 250px;
  object-fit: cover;
}

#modal-summary {
  font-style: italic;
  color: #666;
  margin-bottom: 15px;
}

.header-content{
    margin-top: 40px;
    text-align: center;
}

.highlight{
    
    color: #349BA4;
    font-weight: bold;
    
  }
