.container {
  max-width: 1200px;
  margin: 0 auto;
}
h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}
.layout {
  display: flex;
  gap: 20px;
}
.main {
    flex: 2;
}
.sidebar {
  flex: 1;
}
.post {
  background: white;
  margin-bottom: 20px;
  border-radius: 10px;
  overflow: hidden;
  display: flex;
  gap: 20px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
  transition: transform 0.2s;
}
.post:hover {
  transform: translateY(-3px);
}
.post img {
  width: 180px;
  height: 120px;
  object-fit: cover;
}
.post-content {
  padding: 15px 10px;
  flex: 1;
}
.post-title {
  font-size: 1.1rem;
  font-weight: 600;
  margin-bottom: 8px;
  color: #0077cc;
}
.post-excerpt {
  font-size: 0.95rem;
  margin-bottom: 10px;
  color: #555;
}
.read-more {
  color: #0077cc;
  text-decoration: none;
  padding: 6px 12px;
  border-radius: 6px;
  font-size: 0.85rem;
  display: inline-block;
}
.sidebar-section {
  background: white;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
  margin-bottom: 20px;
}
.sidebar-section h3 {
  margin-bottom: 15px;
  font-size: 1rem;
  color: #444;
}
.search-box input {
  width: 100%;
  padding: 10px;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}
.category-list ul {
  list-style: none;
  padding-left: 0;
}
.category-list li {
  margin-bottom: 10px;
}
.category-list a {
  text-decoration: none;
  color: #0077cc;
}

/* Breadcrumb */
.breadcrumb-wrapper {
  background: #ffffff;
  padding: 10px 15px;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
}
.breadcrumb {
  margin-bottom: 0;
  background: transparent;
  font-size: 0.95rem;
  display: flex;
  flex-wrap: wrap;
  counter-reset: none;
  list-style: none;
}
.breadcrumb-item + .breadcrumb-item::before {
  content: "/";
  padding: 0 0.5rem;
  color: #999;
}
.breadcrumb a {
  color: #0077cc;
  text-decoration: none;
  transition: color 0.2s ease;
}
.breadcrumb a:hover {
  color: #005fa3;
  text-decoration: underline;
}
.breadcrumb-item.active {
  color: #555;
  font-weight: 500;
}

/* Pagination */
.pagination-wrapper {
  text-align: center;
}
.pagination {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  padding-left: 0;
  list-style: none;
}
.pagination .page-item {
  margin: 0 4px;
}
.pagination .page-link {
  border-radius: 6px;
  border: 1px solid #ddd;
  color: #0077cc;
  padding: 8px 14px;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all 0.2s ease;
  display: inline-block;
}
.pagination .page-link:hover {
  background-color: #0077cc;
  color: white;
  border-color: #0077cc;
}
.pagination .page-item.active .page-link {
  background-color: #0077cc;
  border-color: #0077cc;
  color: white;
}
.pagination .page-item.disabled .page-link {
  color: #999;
  background-color: #f4f6f8;
  border-color: #ddd;
}
.sidebar {
    display: flex;
    flex-direction: column;
}
#related-posts {
    order: 2;
}
#search-box {
    order: 1;
}
#category-list {
	order: 3;
}
@media (max-width: 768px) {
    #related-posts {
        order: 1;
    }
    #search-box {
        order: 2;
    }
	#category-list {
		order: 3;
	}
}

/* Responsive */
@media (max-width: 768px) {
  .layout {
    flex-direction: column;
  }
  .sidebar {
    order: 2;
  }
  .post {
    flex-direction: column;
  }
  .post img {
    width: 100%;
    height: 200px;
  }
}
article {
  padding: 10px 15px;
  background: white;
  border-radius: 10px;
  box-shadow: 0 4px 12px rgb(0 0 0 / 20%);
}
.blog-content {
  font-size: 1.05rem;
  line-height: 1.8;
  color: #444;
  margin: 0 auto;
}

.blog-content h1 {
  font-size: 2rem;
  margin-bottom: 20px;
}

.blog-content h2 {
  font-size: 28px;
  margin-top: 40px;
  margin-bottom: 15px;
  font-weight: bold;
}

.blog-content h3 {
  font-size: 24px;
  margin-top: 30px;
  margin-bottom: 10px;
  font-weight: bold;
}

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

.blog-content ul, 
.blog-content ol {
  padding-left: 40px;
  margin-bottom: 20px;
}

.blog-content li {
  margin-bottom: 10px;
}

.blog-content a {
  color: #0077cc;
  text-decoration: underline;
  transition: color 0.3s;
}

.blog-content a:hover {
  color: #005599;
}

.blog-content img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 20px auto;
}

.blog-content blockquote {
  border-left: 4px solid #ccc;
  padding-left: 20px;
  margin: 20px 0;
  color: #666;
  font-style: italic;
  background-color: #f9f9f9;
}

.blog-content pre {
  background-color: #f4f4f4;
  padding: 15px;
  overflow-x: auto;
  font-family: 'Courier New', Courier, monospace;
  border-radius: 5px;
}

.blog-content code {
  padding: 10px 15px;
  background-color: #f4f4f4;
  padding: 2px 4px;
  border-radius: 3px;
}
