/* newCss/news.css */
/* Styles specific to the news view/page */
/* Generic component styles are in components.css */

/* ========================================
   NEWS VIEW CONTAINER
   ======================================== */

.news-view-container {
  background: var(--news-bg-light);
  min-height: calc(100vh - 150px);
  padding-bottom: 180px; /* Space for fixed footer */
  margin: 0;
  padding-left: 0;
  padding-right: 0;
  padding-top: 0;
}

/* ========================================
   NEWS FEED
   ======================================== */

.news-feed {
  background: transparent;
}

.news-feed-header {
  padding-bottom: var(--spacing-sm);
  margin-bottom: 0 !important;  /* Override Bootstrap mb-4 class */
}

.news-feed-title {
  color: var(--gold-blue);
  font-size: 1.65rem;
  font-weight: 700;
  margin-bottom: var(--spacing-sm);
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: var(--spacing-md);
}

/* ========================================
   NEWS ITEM (OLD SITE STYLE)
   ======================================== */

.news-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  margin-bottom: 0;  /* Remove margin, let .news-list gap handle spacing */
}

/* Header: Yellow background like old site */
.news-header {
  background: var(--news-header-bg);
  border-bottom: 1px solid var(--color-border);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.news-title-row {
  display: flex;
  align-items: center;
  gap: var(--spacing-sm);
  flex: 1;
}

.news-icon {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

.news-title {
  color: var(--gold-blue);
  font-size: 1.15rem;
  font-weight: 700;
  margin: 0;
  flex: 1;
}

.news-date {
  color: var(--color-text-light);
  font-size: 0.8rem;
  white-space: nowrap;
  margin-left: var(--spacing-md);
}

/* Content: Light yellow background like old site */
.news-content {
  background: var(--news-content-bg);
  padding: var(--spacing-lg);
  line-height: 1.7;
  font-size: 0.9rem;
}

/* Default text color for content without inline styles */
.news-content,
.news-content p,
.news-content div {
  color: var(--color-text);
}

/* Style content HTML */
.news-content p {
  margin-bottom: var(--spacing-md);
}

.news-content p:last-child {
  margin-bottom: 0;
}

.news-content strong {
  font-weight: 600;
}

/* Only apply default color to strong tags without inline color parent */
.news-content > strong,
.news-content p > strong,
.news-content div > strong {
  color: #000;
}

.news-content ul,
.news-content ol {
  margin: var(--spacing-md) 0;
  padding-left: var(--spacing-xl);
}

.news-content li {
  margin-bottom: var(--spacing-sm);
}

.news-content a {
  color: var(--gold-blue);
  text-decoration: underline;
}

.news-content a:hover {
  color: var(--color-hover);
}

.news-content img {
  max-width: 100%;
  height: auto;
  border-radius: var(--radius-sm);
  display: block;
}

/* Link section */
.news-link {
  background: var(--news-content-bg);
  padding: 0 var(--spacing-lg) var(--spacing-lg);
  border-top: 1px solid var(--color-border);
}

.news-link strong {
  color: #000;
}

.news-link a {
  color: var(--gold-blue);
  text-decoration: underline;
  word-break: break-all;
}

.news-link a:hover {
  color: var(--color-hover);
}

/* ========================================
   RESPONSIVE
   ======================================== */

@media (max-width: 767.98px) {
  .news-header {
    flex-direction: column;
    align-items: flex-start;
    gap: var(--spacing-sm);
  }

  .news-date {
    margin-left: 0;
    font-size: 0.85rem;
  }

  .news-title {
    font-size: 1.1rem;
  }

  .news-content {
    padding: var(--spacing-md);
    font-size: 0.95rem;
  }
}

/* ========================================
   UTILITIES
   ======================================== */

/* Empty state */
.news-view .bi-newspaper {
  opacity: 0.3;
  color: var(--gold-blue);
}
