/* News Styles ––––––––––––––––––––––––––––––––––––– */

#news-section {
  margin-top: 0.1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  text-align: left;
}

#news-section h2 {
  font-size: 1.5rem;
  font-weight: 400;
  margin-top: 0;
  margin-bottom: 1.5rem;
  font-variant: normal;
  text-align: left;
}

.news-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

#news-section .news-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

#news-section .news-content li {
  padding: 0.25rem 0;
  border-bottom: none;
  font-size: 0.95rem;
  font-family: var(--serif-font);
  letter-spacing: 0.3px;
}

#news-section .news-content li:nth-child(n+5) {
  display: none;
}

#news-section .news-content li strong {
  display: inline-block;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 500;
  font-variant: small-caps;
  width: 70px;
  font-family: var(--serif-font);
  letter-spacing: 0.5px;
  white-space: nowrap;
}

#news-section .news-content li strong::after {
  content: ": ";
  white-space: pre;
}

#news-section .news-content li a {
  font-family: var(--serif-font);
}

/* Full news page styling (different from homepage) */
.pub-container ul {
  list-style: none;
  padding: 0;
  margin: 0 0 0 2rem;
}

.pub-container li {
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--border);
  transition: all var(--transition) ease;
  font-family: var(--serif-font);
}

.pub-container li:last-child {
  border-bottom: none;
}

.pub-container li:hover {
  padding-left: 0.5rem;
  background-color: var(--accent-bg);
}

.pub-container li strong {
  display: inline-block;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 600;
  margin-right: 0.75rem;
  font-variant: small-caps;
  width: 70px;
  white-space: nowrap;
  font-family: var(--serif-font);
}

.pub-container li strong::after {
  content: ": ";
  white-space: pre;
}

.pub-container li a {
  font-family: var(--serif-font);
}

.news-item {
  padding: 0.75rem 0;
  border-bottom: 1px dashed var(--border);
  transition: all var(--transition) ease;
}

.news-item:last-child {
  border-bottom: none;
}

.news-item:hover {
  padding-left: 0.5rem;
  background-color: var(--accent-bg);
}

.news-date {
  display: inline-block;
  color: var(--text-light);
  font-size: 0.95rem;
  font-weight: 600;
  margin-right: 0.75rem;
  font-variant: small-caps;
  font-family: var(--serif-font);
}

.news-title {
  display: inline;
  color: var(--text);
  font-size: 1.05rem;
  line-height: 1.5;
  font-family: var(--serif-font);
}

.news-item a {
  text-decoration: none;
  color: var(--text);
  transition: color var(--transition) ease;
}

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

.news-more {
  margin-top: 1rem;
  text-align: left;
}

.news-more a {
  color: var(--accent);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  transition: all var(--transition) ease;
  font-family: var(--serif-font);
}

.news-more a:hover {
  color: var(--accent-hover);
  text-decoration: underline;
}

/* Mobile responsive for news */
@media only screen and (max-width: 810px) {
  /* Homepage news adjustments */
  #news-section .news-content li {
    padding: 0.35rem 0;
    font-size: 0.9rem;
  }
  
  #news-section .news-content li strong {
    display: block;
    width: auto;
    margin-bottom: 0.15rem;
    font-size: 0.9rem;
  }
  
  #news-section .news-content li strong::after {
    content: "";
  }
  
  /* Full news page adjustments */
  .pub-container ul {
    margin: 0;
    padding: 0;
  }
  
  .pub-container li {
    padding: 0.6rem 0;
    font-size: 0.9rem;
  }
  
  .pub-container li strong {
    display: block;
    width: auto;
    margin-bottom: 0.15rem;
    font-size: 0.9rem;
  }
  
  .pub-container li strong::after {
    content: "";
  }
  
  .pub-container li:hover {
    padding-left: 0;
  }
  
  /* Legacy styles */
  .news-date {
    display: block;
    margin-bottom: 0.25rem;
    min-width: auto;
  }
  
  .news-title {
    display: block;
  }
  
  .news-item {
    padding: 1rem 0.5rem;
  }
}
