/* Global Styles */
body {
  background-color: #BC0000;
  color: #000000;
  font-family: Arial, sans-serif;
  margin: 0;
  padding: 0;
}

.container {
  padding: 20px;
  max-width: 700px;
  margin: 0 auto;
  text-align: center;
  position: relative;
}

.navbar {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
  gap: 20px;
}
.navbar a {
  color: black;
  text-decoration: none;
  font-weight: bold;
}
.navbar a:hover {
  text-decoration: underline;
}

.site-logo img {
  max-width: 150px;
  height: auto;
}

.main-content {
  position: relative;
  margin: 0 auto;
  max-width: 700px;
  padding: 0 20px 40px 20px;
}
.main-content::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 3px;
  background-color: black;
}

footer.container {
  border-top: 1px solid black;
  padding-top: 20px;
  margin-top: 30px;
  text-align: center;
}

/* View-Specific Styles */

/* Home View */
.recent-posts {
  margin-bottom: 30px;
}
.recent-post {
  border: 1px solid black;
  margin-bottom: 20px;
  padding: 10px;
  background-color: #fff;
  color: #000;
  text-align: left;
}
.recent-post h2 {
  margin: 0 0 10px;
}
.expand-btn {
  background-color: #BC0000;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-weight: bold;
}
.expand-btn:hover {
  background-color: #900;
}

.featured-section {
  display: grid;
  grid-template-areas: "label grid" "label grid";
  grid-template-columns: 50px 1fr;
  margin-bottom: 20px;
}
.featured-label {
  grid-area: label;
  writing-mode: vertical-rl;
  text-transform: uppercase;
  font-size: 1.2rem;
  color: black;
  font-weight: bold;
  display: flex;
  align-items: center;
  justify-content: center;
}
.featured-grid {
  grid-area: grid;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-gap: 10px;
}
.featured-item {
  background: #fff;
  color: #000;
  height: 100px;
  border: 2px solid black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: bold;
  font-size: 1.1rem;
}
.featured-item a {
  color: #000;
  text-decoration: none;
}
.featured-item a:hover {
  text-decoration: underline;
}
.non-featured-item {
  background: #f0f0f0;
  color: #333;
  height: 80px;
  border: 1px solid black;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: normal;
  font-size: 1rem;
}
.non-featured-item a {
  color: #333;
  text-decoration: none;
}
.non-featured-item a:hover {
  text-decoration: underline;
}

/* Issues View */
.issues-section {
  margin-left: 20px;
  text-align: left;
}
.months-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}
.month-btn {
  background-color: #fff;
  color: #000;
  border: 1px solid black;
  padding: 8px 15px;
  font-weight: bold;
  cursor: pointer;
}
.month-btn:hover, .month-btn.active {
  background-color: #000;
  color: #fff;
}
.articles-list {
  background: #fff;
  padding: 20px;
  border: 1px solid black;
}
.articles-list h2 {
  margin-top: 0;
}
.articles-list ul {
  list-style: none;
  padding: 0;
}
.articles-list li {
  margin-bottom: 10px;
}
.articles-list a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
}
.articles-list a:hover {
  text-decoration: underline;
}

/* All Posts View */
.posts-section {
  margin-left: 20px;
  text-align: left;
}
#all-posts {
  list-style: none;
  padding: 0;
}
#all-posts li {
  margin-bottom: 10px;
}
#all-posts a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
}
#all-posts a:hover {
  text-decoration: underline;
}

/* Post View */
#post-content {
  background: #fff;
  padding: 20px;
  border: 1px solid black;
  text-align: left;
  margin-left: 20px;
}
#post-content h1 {
  margin-top: 0;
}
#post-content p.date {
  font-style: italic;
  color: #555;
  margin: 0 0 20px;
}
#post-content button {
  background-color: #BC0000;
  color: #fff;
  border: none;
  padding: 5px 10px;
  cursor: pointer;
  font-weight: bold;
  margin-top: 20px;
}
#post-content button:hover {
  background-color: #900;
}
#related-posts {
  list-style: none;
  padding: 0;
}
#related-posts li {
  margin-bottom: 10px;
}
#related-posts a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
}
#related-posts a:hover {
  text-decoration: underline;
}

/* Tags View */
.tags-section {
  margin-left: 20px;
  text-align: left;
}
#tags-list {
  list-style: none;
  padding: 0;
}
#tags-list li {
  display: inline-block;
  margin: 0 10px 10px 0;
}
#tags-list a {
  color: #000;
  text-decoration: none;
  font-weight: bold;
  background: #fff;
  padding: 5px 10px;
  border: 1px solid black;
}
#tags-list a:hover {
  background: #000;
  color: #fff;
}