
.blog-layout {
  display: flex;
  gap: 30px;
  padding: 0 20px;
  margin-bottom: 40px;
}

.blog-main {
  flex: 2;
  min-width: 0; 
}

.blog-sidebar {
  flex: 1;
  max-width: 300px;
}

.blog-post-full {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 30px;
  margin-bottom: 30px;
}

.post-header {
  margin-bottom: 30px;
}

.post-title {
  font-size: 2em;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.3;
}

.post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 15px;
  font-size: 0.9em;
  color: #666;
  margin-bottom: 20px;
}

.post-date {
  font-weight: bold;
}

.post-category {
  background-color: #5760d9;
  color: white;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8em;
  font-weight: bold;
}

.post-reading-time {
  background-color: #eee;
  color: #666;
  padding: 3px 10px;
  border-radius: 4px;
  font-size: 0.8em;
}

.post-banner {
  text-align: center;
  margin-top: 20px;
}

.post-banner img {
  max-width: 100%;
  height: auto;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Post Content */
.post-content {
  line-height: 1.7;
  color: #444;
}

.post-content h2 {
  color: #5760d9;
  font-size: 1.4em;
  margin: 30px 0 15px 0;
  border-bottom: 2px solid #eee;
  padding-bottom: 5px;
}

.post-content p {
  margin-bottom: 20px;
}

.post-content details {
  margin: 25px 0;
  background-color: #f0f0f0;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 15px;
}

.post-content summary {
  font-weight: bold;
  color: #5760d9;
  cursor: pointer;
  margin-bottom: 10px;
}

.post-content summary:hover {
  color: #4550b7;
}

/* Tags */
.post-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 30px;
  padding-top: 20px;
  border-top: 1px solid #ddd;
}

.tag {
  background-color: #eee;
  color: #555;
  padding: 5px 12px;
  border-radius: 15px;
  font-size: 0.85em;
  text-decoration: none;
  border: 1px solid #ddd;
  transition: all 0.3s;
}

.tag:hover {
  background-color: #5760d9;
  color: white;
  border-color: #5760d9;
}

.post-navigation {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin-top: 40px;
  padding: 20px 0;
  border-top: 2px solid #eee;
}

.nav-prev,
.nav-next {
  flex: 1;
  background-color: #f9f9f9;
  border: 1px solid #ddd;
  border-radius: 8px;
  padding: 15px;
  text-decoration: none;
  color: #5760d9;
  font-weight: bold;
  transition: all 0.3s;
  text-align: center;
}

.nav-prev:hover,
.nav-next:hover {
  background-color: #5760d9;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

/* Sidebar */
.blog-sidebar {
  background-color: #f9f9f9;
  border: 1px solid #eee;
  border-radius: 8px;
  padding: 20px;
  height: fit-content;
  position: sticky;
  top: 20px;
}

.sidebar-section {
  margin-bottom: 30px;
}

.sidebar-section:last-child {
  margin-bottom: 0;
}

.sidebar-section h3 {
  color: #5760d9;
  font-size: 1.1em;
  margin-bottom: 15px;
  border-bottom: 1px solid #ddd;
  padding-bottom: 5px;
}

/* Post List */
.post-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.post-list li {
  margin-bottom: 10px;
}

.post-list a {
  color: #666;
  text-decoration: none;
  font-size: 0.9em;
  line-height: 1.4;
  display: block;
  padding: 8px;
  border-radius: 4px;
  transition: all 0.3s;
}

.post-list a:hover {
  background-color: #eee;
  color: #5760d9;
}

.post-list a.current-post {
  background-color: #5760d9;
  color: white;
  font-weight: bold;
}

.category-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.category-list li {
  margin-bottom: 8px;
}

.category-list a {
  color: #666;
  text-decoration: none;
  font-size: 0.9em;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 5px 8px;
  border-radius: 4px;
  transition: all 0.3s;
}

.category-list a:hover {
  background-color: #eee;
  color: #5760d9;
}

.count {
  background-color: #ddd;
  color: #666;
  padding: 2px 6px;
  border-radius: 10px;
  font-size: 0.8em;
}

.tag-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-cloud .tag {
  font-size: 0.8em;
  padding: 4px 8px;
}

@media (max-width: 768px) {
  .blog-layout {
    flex-direction: column;
    padding: 0 10px;
  }
  
  .blog-sidebar {
    order: -1;
    max-width: none;
    position: static;
  }
  
  .blog-post-full {
    padding: 20px;
  }
  
  .post-title {
    font-size: 1.5em;
  }
  
  .post-navigation {
    flex-direction: column;
  }
  
  .nav-prev,
  .nav-next {
    text-align: center;
  }
  
  .post-meta {
    justify-content: flex-start;
  }
}