hr {
  margin-top: 30px;
  margin-bottom: 20px;
}

/* Post navigation links */
.post_navi {
  display: flex;
}

.post_navi-label {
  font-size: 0.8em;
  opacity: 0.5;
}

.post_navi .post_navi-item {
  padding: 0 2.2em;
  width: 50%;
  position: relative;
  color: inherit !important;
}

.post_navi .nav_prev {
  text-align: left;
}

.post_navi .nav_next {
  text-align: right;
}

.post_navi .nav_prev .post_navi-arrow {
  left: 0;
}

.post_navi .nav_next .post_navi-arrow {
  right: 0;
}

.post_navi .post_navi-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  font-size: 2.5em;
  opacity: 0.3;
}

/* Profile layout */
.profile-container {
  display: flex;
  align-items: flex-start;
  gap: 30px;
  margin-bottom: 30px;
}

.profile-image {
  width: 150px;
  height: 150px;
  border-radius: 10px;
  object-fit: cover;
  flex-shrink: 0;
}

.profile-content {
  flex: 1;
}

@media screen and (max-width: 600px) {
  .profile-container {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }
  
  .profile-image {
    margin-bottom: 20px;
  }
}

/* Post entries styling */
.post-entry {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.post-entry:last-child {
  border-bottom: none;
}

.post-entry h3 {
  margin-bottom: 5px;
}

.post-entry h3 a {
  color: #0366d6;
  text-decoration: none;
}

.post-entry h3 a:hover {
  text-decoration: underline;
}

.post-date {
  color: #6a737d;
  font-size: 0.9em;
  margin-bottom: 10px;
}

.post-summary {
  color: #24292e;
  line-height: 1.6;
  margin: 0;
}

/* New post list styling for homepage */
.post-list {
  margin-top: 30px;
}

.post-item {
  margin-bottom: 30px;
  padding-bottom: 20px;
  border-bottom: 1px solid #e9ecef;
}

.post-item:last-child {
  border-bottom: none;
}

.post-item .post-date {
  color: #6a737d;
  font-size: 0.7em; /* Tiny font */
  margin-bottom: 8px;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.post-item .post-title {
  margin: 0 0 10px 0;
  font-size: 1.8em; /* Large font */
  line-height: 1.3;
}

.post-item .post-title a {
  color: #0366d6;
  text-decoration: none;
}

.post-item .post-title a:hover {
  text-decoration: underline;
}

.post-item .post-summary {
  color: #24292e;
  font-size: 1em; /* Medium font */
  line-height: 1.6;
  margin: 0;
}

/* Increase content width */
.wrapper {
  max-width: calc(1000px - (30px * 2)) !important;
}

@media screen and (max-width: 1000px) {
  .wrapper {
    max-width: calc(1000px - (30px)) !important;
    padding-right: 15px !important;
    padding-left: 15px !important;
  }
}

/* Code block styling */
/* Python syntax highlighting - Enhanced color scheme */
pre code.hljs {
  padding: 0;
  background: transparent;
}

/* Keywords (class, def, self, return, etc) */
.hljs-keyword {
  color: #0033B3 !important;  /* bright blue */
}

/* Built-in functions (len, print, etc) */
.hljs-built_in {
  color: #00627A !important;  /* darker blue */
}

/* Function definitions */
.hljs-title.function_ {
  color: #7A3E9D !important;  /* purple */
}

/* Class names */
.hljs-title.class_ {
  color: #00A550 !important;  /* green */
}

/* Method calls */
.hljs-title.function_.invoke {
  color: #9E3600 !important;  /* rust/orange */
}

/* Variables and properties */
.hljs-variable,
.hljs-property {
  color: #871094 !important;  /* magenta */
}

/* Self reference */
.language-python .hljs-variable:first-child {
  color: #0033B3 !important;  /* bright blue like keywords */
}

/* Strings */
.hljs-string {
  color: #067D17 !important;  /* green */
}

/* Numbers */
.hljs-number {
  color: #1750EB !important;  /* blue */
}

/* Comments */
.hljs-comment {
  color: #8C8C8C !important;  /* gray */
  font-style: italic;
}

/* Function parameters */
.hljs-params {
  color: #5C4C79 !important;  /* muted purple */
}

/* Punctuation and operators */
.hljs-punctuation,
.hljs-operator {
  color: #666666 !important;  /* dark gray */
}

/* Boolean values */
.hljs-literal {
  color: #0033B3 !important;  /* bright blue like keywords */
}

/* Decorators */
.hljs-meta {
  color: #3B7C87 !important;  /* teal */
}

/* Dictionary keys or named arguments */
.hljs-attr {
  color: #756BB1 !important;  /* light purple */
}

/* Special string formatting */
.hljs-subst {
  color: #2E7D32 !important;  /* dark green */
}

/* String interpolation */
.hljs-template-variable {
  color: #A44185 !important;  /* pink */
}

.post-content pre,
.post-content code,
.highlight pre,
.highlight code {
  font-size: 0.80em !important;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", Menlo, Courier, monospace !important;
}

.post-content pre,
.highlight {
  background-color: #f8f9fa !important;
  border: 1px solid #e9ecef !important;
  border-radius: 8px !important;
  padding: 12px !important;
  margin-bottom: 1em !important;
}

.post-content pre code,
.highlight code {
  background-color: transparent !important;
  padding: 0 !important;
  margin: 0 !important;
  border: none !important;
  font-size: inherit !important;
  color: #24292e !important;  /* GitHub-style code color */
}

/* Override Rouge/Pygments highlighting background */
.highlight,
.highlight pre,
.highlight table {
  background: #f8f9fa !important;
  border: none !important;
  margin-bottom: 0 !important;
}

/* Ensure inline code has consistent styling */
.post-content code.highlighter-rouge {
  background-color: #f8f9fa !important;
  color: #e83e8c !important;
  padding: 2px 4px !important;
  border-radius: 4px !important;
  font-size: 0.80em !important;
}