/*
 * This is a manifest file that'll be compiled into application.css.
 *
 * With Propshaft, assets are served efficiently without preprocessing steps. You can still include
 * application-wide styles in this file, but keep in mind that CSS precedence will follow the standard
 * cascading order, meaning styles declared later in the document or manifest will override earlier ones,
 * depending on specificity.
 *
 * Consider organizing styles into separate files for maintainability.
 */

/* News Feed Styles */
.news-feed {
  margin-top: 2rem;
}

.news-feed h2 {
  font-size: 1.5rem;
  font-weight: 600;
  margin-bottom: 1rem;
  color: #333;
}

.news-list {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.news-item.card {
  border: 1px solid #e0e0e0;
  border-radius: 8px;
  overflow: hidden;
  transition: box-shadow 0.3s ease, transform 0.2s ease;
}

.news-item.card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-2px);
}

.news-item .card-img-top {
  max-height: 200px;
  object-fit: cover;
}

.news-item .card-title {
  font-size: 1.1rem;
  font-weight: 600;
  color: #0088cc;
  margin-bottom: 0.75rem;
}

.news-item .card-text {
  color: #555;
  line-height: 1.5;
}

.news-meta {
  display: flex;
  gap: 1rem;
  margin-top: 0.75rem;
  padding-top: 0.75rem;
  border-top: 1px solid #f0f0f0;
}

.news-meta .author {
  font-weight: 500;
}

.news-meta .author::before {
  content: "✍️ ";
}

.news-meta .date::before {
  content: "🕒 ";
}
