/* Global Reset */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Body Styling */
body {
  font-family: Arial, sans-serif;
  line-height: 1.6;
  background-color: #f4f4f4;
  color: #333;
  padding: 1rem;
}

/* Header */
header {
  text-align: center;
  padding: 2rem 1rem;
  background-color: #003366;
  color: white;
  border-radius: 8px;
  margin-bottom: 2rem;
}

header .subtitle {
  font-size: 1rem;
  color: #ddd;
}

/* News Feed */
#news-feed {
  max-width: 800px;
  margin: 0 auto;
}

#posts-container {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

/* Individual Post Link */
.post-link {
  display: block;
  padding: 1rem;
  background-color: white;
  border-left: 5px solid #003366;
  border-radius: 6px;
  text-decoration: none;
  color: inherit;
  transition: background 0.2s ease;
}

.post-link:hover {
  background-color: #e0ecff;
}

/* Footer */
footer {
  text-align: center;
  margin-top: 3rem;
  font-size: 0.9rem;
  color: #777;
}

.logo {
  width: 50px;       /* Smaller width */
  height: auto;
  margin-bottom: 0.5rem;
  display: block;
  margin-left: auto;
  margin-right: auto;
}

.section-title {
  font-size: 1.5rem;
  margin: 2rem auto 1rem;
  text-align: center;
  color: #003366;
  font-weight: bold;
}

.feed-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 1.5rem;
  padding: 0 1rem;
}

/* News Card */
.post-card {
  background-color: #ffffff;
  border-radius: 10px;
  padding: 1.5rem;
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
  border-left: 5px solid #003366;
  display: flex;
  flex-direction: column;
  transition: transform 0.2s;
  text-decoration: none;
  color: inherit;
}

.post-card:hover {
  transform: translateY(-5px);
  background-color: #f1f7ff;
}

.post-card h3 {
  margin-bottom: 0.3rem;
  font-size: 1.25rem;
  color: #003366;
}

.post-card .meta {
  font-size: 0.85rem;
  color: #777;
  margin-bottom: 0.75rem;
}

.post-card .preview {
  font-size: 0.95rem;
  color: #333;
  line-height: 1.5;
}

