/* Common styles for news section */
.news-container,
.news-single-container {
  max-width: 900px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

.news-single-container {
  max-width: 800px; /* Slightly narrower for better reading */
}

/* Section headers */
.section-header {
  margin-bottom: 2.5rem;
  text-align: center;
}

.section-title {
  font-size: 2.5rem;
  margin-bottom: 0.5rem;
  color: #333;
}

.section-description {
  font-size: 1.1rem;
  color: #666;
}

/* News list styles */
.news-list {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  margin-bottom: 2rem;
}

.news-item {
  display: flex;
  padding: 1.25rem;
  border-bottom: 1px solid #eee;
  transition: background-color 0.2s ease;
}

.news-item:hover {
  background-color: #f9f9f9;
}

.news-date {
  flex: 0 0 120px;
  font-size: 0.9rem;
  color: #666;
  padding-top: 0.25rem;
}

/* News content for list items */
.news-item .news-content {
  flex: 1;
}

.news-item .news-title {
  font-size: 1.4rem;
  margin-bottom: 0.75rem;
  line-height: 1.3;
}

.news-title a {
  color: #333;
  text-decoration: none;
  transition: color 0.2s ease;
}

.news-title a:hover {
  color: #0066cc;
}

.news-summary {
  font-size: 1rem;
  color: #444;
  margin-bottom: 0.75rem;
  line-height: 1.5;
}

.read-more {
  display: inline-block;
  color: #0066cc;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.2s ease;
}

.read-more:hover {
  color: #004499;
}

/* News single article styles */
.news-article {
  background-color: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.news-header {
  margin-bottom: 2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #eee;
}

.news-meta {
  font-size: 1rem;
  color: #666;
  margin-bottom: 0.75rem;
}

.news-article .news-title {
  font-size: 2.25rem;
  line-height: 1.2;
  color: #333;
  margin-bottom: 0.5rem;
}

.news-article .news-content {
  font-size: 1.1rem;
  line-height: 1.7;
  color: #333;
  margin-bottom: 2rem;
}

.news-content p {
  margin-bottom: 1.5rem;
}

.news-content a {
  color: #0066cc;
  text-decoration: underline;
  text-decoration-color: rgba(0,102,204,0.3);
  text-underline-offset: 2px;
  transition: text-decoration-color 0.2s ease;
}

.news-content a:hover {
  text-decoration-color: rgba(0,102,204,1);
}

/* Tags section */
.news-tags {
  margin-bottom: 2rem;
}

.tags-label {
  font-weight: 600;
  color: #555;
}

.tags-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
  margin-left: 0.5rem;
}

.tags-list li a {
  display: inline-block;
  padding: 0.25rem 0.75rem;
  background-color: #f0f5ff;
  color: #0066cc;
  border-radius: 20px;
  font-size: 0.85rem;
  text-decoration: none;
  transition: background-color 0.2s ease;
}

.tags-list li a:hover {
  background-color: #e0ebff;
}

/* Article navigation */
.news-navigation {
  display: flex;
  justify-content: space-between;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid #eee;
}

.news-nav-prev, .news-nav-next {
  max-width: 45%;
}

.news-nav-next {
  text-align: right;
}

.nav-label {
  display: block;
  font-size: 0.85rem;
  color: #666;
  margin-bottom: 0.25rem;
}

.news-navigation a {
  color: #0066cc;
  text-decoration: none;
  font-weight: 500;
  font-size: 1.05rem;
}

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

/* Responsive adjustments */
@media (max-width: 768px) {
  .news-item {
    flex-direction: column;
  }
  
  .news-date {
    margin-bottom: 0.5rem;
  }
  
  .section-title {
    font-size: 2rem;
  }
  
  .news-article .news-title {
    font-size: 1.75rem;
  }
  
  .news-navigation {
    flex-direction: column;
    gap: 1rem;
  }
  
  .news-nav-prev, .news-nav-next {
    max-width: 100%;
    text-align: left;
  }
}