body {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: 300;
  font-size: 16px;
  line-height: 1.5em;
  color: #666;
  background: #f2f2f2;
}
h1,
h2,
h3,
h4,
h5,
h6 {
  font-family: "Roboto Condensed", Arial, sans-serif;
  font-weight: 700;
}
hr {
  margin-top: 20px;
  margin-bottom: 20px;
  border: 0;
  border-top: 1px solid #f7f1f1;
  border-bottom: 1px solid #fff;
}
h1,
h2,
h3 {
  color: dimgray;
  font-weight: 400;
}
h1 {
  margin-bottom: 10px;
  font-size: 25px;
}
h2,
h3 {
  margin-bottom: 5px;
}
a,
a:link,
a:active {
  text-decoration: none;
  color: #3fa757;
}
a:hover {
  color: #2c3e50;
  text-decoration: underline;
}
blockquote {
  background: #f8fafd;
  border-left: 4px solid #4a6ea9;
  margin: 1.5rem 0;
  padding: 1.5rem;
  border-radius: 0 8px 8px 0;
  font-style: italic;
  color: #333;
  position: relative;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

blockquote::before {
  content: '"';
  font-family: serif;
  font-size: 3rem;
  color: #e1e8f0;
  position: absolute;
  left: 10px;
  top: 5px;
  line-height: 1;
}
code {
  font-family: 'Courier New', Courier, monospace;
  background: #f8fafd;
  border: 1px solid #e1e8f0;
  border-radius: 4px;
  color: #2c3e50;
  padding: 0.2em 0.4em;
  font-size: 0.9em;
}

pre {
  background: #f8fafd;
  border: 1px solid #e1e8f0;
  border-radius: 4px;
  padding: 1.5rem;
  margin: 1.5rem 0;
  overflow-x: auto;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
  transition: all 0.3s ease;
}

pre code {
  background: transparent;
  border: none;
  padding: 0;
  color: inherit;
  font-size: 0.95em;
  line-height: 1.5;
}

pre:hover {
  background: #eef4fc;
  transform: translateY(-1px);
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
} 

pre .comment { color: #7f8c8d; }
pre .keyword { color: #4a6ea9; }
pre .string { color: #2ecc71; }
pre .number { color: #e74c3c; }
pre .function { color: #9b59b6; }
table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.5rem 0;
  font-size: 0.95rem;
  background: #fff;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

table:hover {
  box-shadow: 0 4px 6px rgba(0,0,0,0.1);
  transition: all 0.3s ease;
}

th {
  background: #f8fafd;
  color: #4a6ea9;
  font-weight: 500;
  text-align: left;
  padding: 0.75rem 1rem;
  border-bottom: 2px solid #e1e8f0;
}

td {
  padding: 0.75rem 1rem;
  border-bottom: 1px solid #e1e8f0;
  vertical-align: top;
}

tr:hover td {
  background: #eef4fc;
}


@media (max-width: 768px) {
  table {
    display: block;
    overflow-x: auto;
    white-space: nowrap;
  }
}
.container {
  display: flex;
  max-width: 900px;
  margin: 0 auto;
  padding: 20px;
  gap: 30px;
}
.sidebar {
  flex: 0 0 200px;
}
.fixed-condition {
  position: sticky;
  top: 20px;
}
.logo {
  width: 90%;
  height: auto;
  display: block;
  margin: 0 auto 20px auto;
}
.search {
  width: 100%;
  box-sizing: border-box;
  position: relative;
}
.search input[type="text"] {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 10px 12px;
  border: 1px solid #ddd;
  border-radius: 4px;
  font-size: 16px;
  margin-bottom: 20px;
  background-color: #fff;
  transition: border-color 0.3s ease;
}
.search input[type="text"]:focus {
  outline: none;
  border-color: #666;
  box-shadow: 0 0 0 2px rgb(0 0 0 / 0.1);
}
.search form {
  width: 100%;
  margin: 0;
  padding: 0;
}
.sidebar-nav {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 12px;
}
@media (min-width: 1024px) {
  .sidebar-nav {
    grid-template-columns: 1fr;
  }
  .nav-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgb(0 0 0 / 0.05);
    transition: transform 0.3s, box-shadow 0.3s;
  }
  .nav-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgb(0 0 0 / 0.1);
  }
}
@media (max-width: 1023px) {
  .logo {
    width: 50%;
  }
  .sidebar-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
  }
  .nav-item {
    background: linear-gradient(135deg, #f5f7fa 0%, #e4e8f0 100%);
    border-radius: 10px;
    overflow: hidden;
  }
}
.nav-link {
  display: flex;
  align-items: center;
  padding: 8px 10px;
  color: #2d3748;
  text-decoration: none;
  position: relative;
  z-index: 1;
}
.nav-icon {
  width: 20px;
  height: 20px;
  margin-right: 12px;
  flex-shrink: 0;
  transition: transform 0.3s;
}
.nav-text {
  font-weight: 500;
  transition: transform 0.3s;
}
.nav-hover {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(135deg, #f2f2f2 0%, #fff 100%);
  z-index: -1;
  opacity: 0;
  transition: opacity 0.3s;
}
.nav-item:hover .nav-hover {
  opacity: 1;
}
.nav-item:hover .nav-icon {
  transform: scale(1.15);
}
.nav-item:hover .nav-text {
  transform: translateX(5px);
  color: #2c3e50;
}
.nav-item:hover .nav-icon path {
  fill: #2c3e50;
}
@media (max-width: 480px) {
  .nav-link {
    padding: 12px;
  }
  .nav-icon {
    width: 18px;
    height: 18px;
    margin-right: 8px;
  }
}
.main-content {
  flex: 1;
  min-width: 0;
}
.main-layout .post {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  box-shadow: 0 2px 10px rgb(0 0 0 / 0.05);
}
.post-header {
  margin-bottom: 2rem;
}
.post-header hr {
  border: 0;
  height: 1px;
  background: #f2f2f2;
  margin: 0.5rem 0;
}
.breadcrumb {
  font-size: 0.9rem;
  margin-bottom: 1.5rem;
  color: #666;
}
.breadcrumb ol {
  display: flex;
  flex-wrap: wrap;
  list-style: none;
  font-size: 0.7rem;
  padding: 0;
  margin: 0;
}
.breadcrumb li {
  display: inline-flex;
  align-items: center;
}
.breadcrumb a {
  color: #06c;
  text-decoration: none;
  transition: color 0.2s;
}
.breadcrumb a:hover {
  color: #049;
  text-decoration: underline;
}
.post-title {
  font-size: 2rem;
  line-height: 1.25;
  color: #2c3e50;
  margin: 0 0 1rem 0;
  font-weight: 700;
  letter-spacing: -0.5px;
  position: relative;
  padding-bottom: 1rem;
}
.post-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 25%;
  height: 2px;
  background: linear-gradient(90deg, #3498db, #9b59b6);
  border-radius: 2px;
}
.post-meta-wrapper {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin: 1.5rem 0;
}
.post-meta-author {
  display: flex;
  font-size: 0.8rem;
  align-items: center;
  gap: 0.5rem;
  background: #f8fafd;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  border: 1px solid #e1e8f0;
  transition: all 0.3s ease;
}
.post-meta-author:hover {
  background: #eef4fc;
  transform: translateY(-1px);
}
.author-icon {
  flex-shrink: 0;
}
.author-name {
  font-weight: 500;
  color: #4a6ea9;
}
.post-meta-date {
  display: flex;
  font-size: 0.8rem;
  align-items: center;
  gap: 0.5rem;
  background: #fff5f5;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  border: 1px solid #f0e1e1;
  transition: all 0.3s ease;
}
.post-meta-date:hover {
  background: #fceeee;
  transform: translateY(-1px);
}
.date-icon {
  flex-shrink: 0;
}
.date-text {
  font-weight: 500;
  color: #e74c3c;
}
.post-meta-category {
  display: flex;
  font-size: 0.8rem;
  align-items: center;
  gap: 0.5rem;
  background: #f0f8f0;
  padding: 0.25rem 1rem;
  border-radius: 50px;
  border: 1px solid #e1f0e1;
  transition: all 0.3s ease;
}

.post-meta-category:hover {
  background: #e0f7e0;
  transform: translateY(-1px);
}

.category-icon {
  flex-shrink: 0;
}

.category-name {
  font-weight: 500;
  color: #2ecc71;
  text-decoration: none;
}

.post-meta-separator {
  width: 1px;
  height: 20px;
  background: linear-gradient(to bottom, transparent, #ddd, transparent);
}
@media (max-width: 768px) {
  .post-meta-wrapper {
    flex-wrap: wrap;
    gap: 0.75rem;
  }
  .post-meta-separator {
    display: none;
  }
}
.featured-image {
  max-width: 100%;
  height: auto;
  border-radius: 6px;
  margin-bottom: 2rem;
  display: block;
}
.post-content {
  line-height: 1.7;
  color: #444;
  font-size: 1.1rem;
}
.post-content p {
  margin-bottom: 1.5rem;
}
.masonry {
  display: grid;
  grid-gap: 1rem;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  grid-auto-rows: 200px;
  margin: 2rem 0;
}
.masonry-item {
  position: relative;
  overflow: hidden;
  border-radius: 6px;
  box-shadow: 0 3px 10px rgb(0 0 0 / 0.1);
}
.masonry-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}
.masonry-item:hover img {
  transform: scale(1.03);
}
.masonry-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1rem;
  font-size: 10px;
  text-align: center;
  color: #fff;
  z-index: 2;
  transform: translateY(100%);
  transition: transform 0.3s ease;
  background: linear-gradient(to top, rgb(0 0 0 / 0.7) 0%, transparent);
}
.masonry-item:hover .masonry-caption {
  transform: translateY(0);
}
.post-related {
  margin-top: 2rem;
  padding-top: 1rem;
}
.post-related h3 {
  font-size: 1.3rem;
  margin-bottom: 1.2rem;
  color: #333;
}
.post-related ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0.8rem;
}
.post-related li {
  margin-bottom: 0.5rem;
}
.post-related a {
  display: block;
  padding: 0.5rem 0.8rem;
  background: #f7f7f7;
  border-radius: 4px;
  color: #06c;
  text-decoration: none;
  transition: all 0.2s;
}
.post-related a:hover {
  background: #3fa757;
  color: #049;
}
@media (max-width: 768px) {
  .main-content .post {
    padding: 1.5rem;
  }
  .post-title {
    font-size: 1.6rem;
  }
  .masonry {
    grid-template-columns: 1fr;
    grid-auto-rows: 250px;
  }
  .post-related ul {
    grid-template-columns: 1fr;
  }
}
footer {
  margin-top: 20px;
  padding-top: 20px;
  font-size: 14px;
  color: #666;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
footer nav ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  gap: 15px;
}
footer nav a {
  color: #666;
  text-decoration: none;
}
footer nav a:hover {
  text-decoration: underline;
}
.pagination-container {
  margin: 3rem 0;
  width: 100%;
}
.pagination {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.pagination .page-item {
  margin: 0;
  flex-shrink: 0;
}
.pagination .page-link {
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 40px;
  height: 40px;
  padding: 0 12px;
  border-radius: 6px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #4a5568;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s ease;
}
.pagination .page-item.active .page-link {
  background: #4f46e5;
  border-color: #4f46e5;
  color: #fff;
}
.pagination .page-link:hover {
  background: #f1f5f9;
}
.pagination .page-item.active .page-link:hover {
  background: #4338ca;
}
.pagination .page-item.disabled .page-link {
  background: #f8fafc;
  color: #cbd5e1;
  border-color: #e2e8f0;
}
.pagination .page-item:first-child .page-link,
.pagination .page-item:last-child .page-link {
  padding: 0 16px;
  font-weight: 600;
}
@media (max-width: 768px) {
  .container {
    flex-direction: column;
    padding: 15px;
  }
  .sidebar {
    flex: 1;
    margin-bottom: 30px;
  }
  .fixed-condition {
    position: static;
  }
  footer {
    flex-direction: column;
    gap: 10px;
    text-align: center;
  }
  footer nav ul {
    justify-content: center;
    flex-wrap: wrap;
  }
}
.ads {
  margin: 20px 0;
}
.sidebar-ads {
  display: none;
}
@media (min-width: 1024px) {
  .sidebar-ads {
    display: block;
    margin-top: 20px;
  }
}
