/*
Theme Name: My Newspaper Theme
Author: Pierre
Version: 1.0
*/

body {
  font-family: Arial, sans-serif;
  background-color: #f4f4f4;
  color: #333;
}

nav ul {
  display: flex;
  list-style: none;
  gap: 2rem;
  justify-content: center;
}

nav a {
  color: white;
  font-weight: bold;
}

.featured-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  gap: 1rem;
  padding: 1rem 2rem;
}

.featured-item img {
  width: 100%;
  height: 150px;
  object-fit: cover;
}

.main-content {
  display: grid;
  grid-template-columns: 1fr 2fr 1fr;
  gap: 1rem;
  padding: 1rem 2rem;
}

.side-articles {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.side-article img {
  width: 100%;
  height: 100px;
  object-fit: cover;
}

.main-article img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

.popular-posts {
  background: white;
  border-radius: 5px;
  padding: 1rem;
}

.popular-posts ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

@media (max-width: 900px) {
  .main-content {
    grid-template-columns: 1fr;
  }
}

/* Header */
header {
  background: #1e3a8a;
  color: white;
  padding: 1rem 2rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

header a {
  color: white;
  text-decoration: none;
}

.nav-menu {
  list-style: none;
  display: flex;
  gap: 2rem;
}

.nav-menu li {
  display: inline-block;
}

/* Footer */
.site-footer {
  background: #111827;
  color: white;
  padding: 2rem;
  text-align: center;
}

.footer-widgets {
  margin-bottom: 1rem;
}

.footer-widget {
  margin-bottom: 1rem;
}

.widget-title {
  font-weight: bold;
  margin-bottom: 0.5rem;
}

/* Single Post Layout */
.single-post-container {
  max-width: 900px;
  margin: 2rem auto;
  padding: 0 1rem;
}

.single-title {
  font-size: 2rem;
  margin-bottom: 0.5rem;
}

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

.single-featured-image img {
  width: 100%;
  height: auto;
  margin-bottom: 1.5rem;
}

.single-content {
  font-size: 1.1rem;
  line-height: 1.7;
  margin-bottom: 2rem;
}

.single-tags {
  margin-bottom: 2rem;
  font-size: 0.9rem;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  margin-bottom: 2rem;
}

.post-navigation a {
  color: #1e3a8a;
  font-weight: bold;
}

.comments-area {
  margin-top: 3rem;
}
