/* Blog Posts List */
#blog-posts {
  max-width: 100%;
}

.blog-post {
  background-color: #fff;
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5em;
}

.blog-post h2 {
  margin-top: 0;
  margin-bottom: 0.5em;
  text-align: left;
}

.blog-post h2 a {
  color: #333;
  text-decoration: none;
  transition: color 0.3s ease;
}

.blog-post h2 a:hover {
  color: #666;
}

.post-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1em;
}

.post-content {
  text-align: left;
}

#post-container {
  margin-top: 25px;
}

.post-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 1em;
  font-size: 0.9em;
  color: #666;
  flex-wrap: nowrap;
}

.author-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  object-fit: cover;
}

.author-name {
  font-weight: 500;
  color: #444;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.author-title {
  color: #888;
}

.post-date {
  color: #888;
  margin-left: auto;
  white-space: nowrap;
  flex-shrink: 0;
}

.post-date::before {
  margin-right: 0;
}

.post-excerpt {
  font-family: 'Helvetica', Arial, sans-serif;
  color: #444;
  margin-bottom: 1em;
  text-align: left;
}

.post-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 1em;
  flex-wrap: wrap;
}

.tag {
  background-color: #f0f0f0;
  color: #666;
  padding: 4px 12px;
  border-radius: 3px;
  font-size: 0.85em;
  font-weight: 500;
}

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

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

/* Full Post Page */
.full-post {
  background-color: #fff;
  border-radius: 5px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
  margin-bottom: 1em;
}

.full-post h1 {
  margin-top: 0;
  margin-bottom: 0.5em;
  text-align: left;
}

.full-post .post-meta {
  border-bottom: 1px solid #eee;
  padding-bottom: 1em;
  margin-bottom: 1.5em;
}

.author-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
}

.author-info strong {
  color: #333;
  font-size: 0.95em;
}

.author-info p {
  margin: 0;
  font-size: 0.85em;
  color: #666;
  text-align: left;
}

.author-info-preview {
  display: flex;
  flex-direction: column;
  gap: 2px;
  flex: 1;
  min-width: 0;
}

.author-bio-preview {
  font-size: 0.8em;
  color: #888;
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.post-cover {
  width: 100%;
  max-height: 400px;
  object-fit: cover;
  border-radius: 5px;
  margin-bottom: 1.5em;
}

.post-body {
  font-family: 'Helvetica', Arial, sans-serif;
  color: #444;
  line-height: 1.8;
  text-align: left;
}

.post-body p {
  text-align: left;
  margin-bottom: 1.2em;
}

.post-body h2,
.post-body h3,
.post-body h4 {
  text-align: left;
  margin-top: 1.5em;
  margin-bottom: 0.5em;
}

/* Media queries for larger screens */
@media (min-width: 768px) {
  .blog-post {
    max-width: 40em;
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
    margin-bottom: 2em;
  }

  .full-post {
    max-width: 40em;
    margin-left: auto;
    margin-right: auto;
    padding: 30px;
  }

  .post-image {
    height: 250px;
  }

  .post-meta {
    font-size: 1em;
    flex-wrap: wrap;
  }

  .author-avatar {
    width: 40px;
    height: 40px;
  }

  .post-excerpt {
    font-size: 1.05em;
  }

  .post-body {
    font-size: 1.05em;
  }

  .author-bio-preview {
    font-size: 0.85em;
  }

  .post-date {
    margin-left: 42px;
    margin-top: -5px;
  }
}
