/* =========================================================
   NEWS PAGE
   ========================================================= */

.news-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.news-card {
  background: var(--color-text-on-light);
  border-radius: 12px;
  overflow: hidden;
  transition: transform 0.2s ease;
}

.news-card:hover {
  transform: translateY(-4px);
}

.news-image img {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.news-content {
  padding: 20px;
}

.news-date {
  font-size: 12px;
  opacity: 0.6;
  margin-bottom: 8px;
}

.news-title {
  font-size: 18px;
  margin-bottom: 10px;
}

.news-excerpt {
  font-size: 14px;
  opacity: 0.85;
  margin-bottom: 15px;
}

.news-link {
  font-size: 14px;
  color: var(--color-brand-bright);
  text-decoration: none;
}

/* MODAL BACKGROUND */
.news-modal {
  display: none;
  position: fixed;
  z-index: 999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  background: var(--color-backdrop);
  justify-content: center;
  align-items: center;
}

/* MODAL CONTENT */
.news-modal-content {
  background: var(--color-text-on-light);
  color: var(--color-text-primary);
  padding: 30px;
  border-radius: 12px;
  max-width: 700px;
  width: 90%;
  max-height: 80%;
  overflow-y: auto;
}


/* CLOSE BUTTON */
.news-close {
  float: right;
  font-size: 28px;
  cursor: pointer;
}

/* BUTTON STYLE (reuse your CI) */
.news-link {
  margin-top: 10px;
  background: none;
  border: none;
  color: var(--color-brand-bright);
  cursor: pointer;
  font-size: 14px;
}

.news-detail-link {
  margin-top: 20px;
}

.news-detail-link a {
  color: var(--color-brand-bright);
  text-decoration: none;
  font-weight: 500;
}

.news-detail-link a:hover {
  text-decoration: underline;
}