/* Blog index page styles */
.blog-posts {
  margin-top: 2em;
  width: 100%;
}

.blog-posts .post-preview {
  margin-bottom: 2.5em;
  padding-bottom: 1.5em;
  border-bottom: 1px solid #eee;
}

.blog-posts .post-preview h2 {
  margin-top: 0;
  margin-bottom: 0.5em;
}

.blog-posts .post-preview h2 a {
  color: #00369f;
  text-decoration: none;
}

.blog-posts .post-preview h2 a:hover {
  text-decoration: underline;
}

.blog-posts .post-preview .post-meta {
  color: #767676;
  font-size: 0.9em;
  margin-bottom: 1em;
}

.blog-posts .post-preview .post-excerpt {
  margin-bottom: 1em;
}

/* Coming soon section */
.coming-soon {
  margin-top: 3em;
  padding: 2em;
  background-color: #f8f9fa;
  border-radius: 8px;
  border-left: 4px solid #00369f;
}

.coming-soon h3 {
  margin-top: 0;
  color: #00369f;
  font-size: 1.4em;
}

.coming-soon ul {
  margin-left: 1.5em;
}

.coming-soon li {
  margin-bottom: 0.5em;
}

/* Blog post page styles */
.layout--fullwidth {
  /* Override any existing layout constraints */
  overflow-x: hidden;
}

.layout--fullwidth #main {
  margin-left: 0 !important;
}

.page-wrap {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
}

.main-content {
  width: 95%;
  max-width: 1400px;
  margin: 2em auto;
}

.post {
  width: 100%;
}

.post-header {
  margin-bottom: 2em;
  text-align: left;
}

.post-title {
  margin-top: 0;
  margin-bottom: 0.2em;
  font-size: 2.2em;
  color: #00369f;
}

.post-meta {
  color: #767676;
  font-size: 0.9em;
}

/* Layout with sidebar for TOC */
.post-content-wrap {
  display: flex;
  width: 100%;
}

.post-sidebar {
  width: 260px;
  min-width: 260px;
  padding-right: 30px;
}

.post-content {
  flex: 1;
  max-width: calc(100% - 260px);
  line-height: 1.6;
  font-size: 1.1em;
}

/* TOC styles */
.toc-container {
  position: sticky;
  top: 2em;
  background-color: #f8f9fa;
  border-radius: 5px;
  padding: 1.2em;
  box-shadow: 0 1px 3px rgba(0,0,0,0.1);
  max-height: 80vh;
  overflow-y: auto;
}

.toc-container h4 {
  margin-top: 0;
  margin-bottom: 1em;
  font-size: 1.1em;
  color: #00369f;
  border-bottom: 1px solid #eee;
  padding-bottom: 0.5em;
}

.toc-list {
  list-style-type: none;
  padding-left: 0;
  margin: 0;
}

.toc-item {
  margin-bottom: 0.8em;
  font-size: 0.9em;
  line-height: 1.3;
}

.toc-item a {
  color: #555;
  text-decoration: none;
  display: block;
  padding: 0.2em 0;
  border-left: 2px solid transparent;
  padding-left: 0.5em;
  transition: all 0.2s ease;
}

.toc-item a:hover {
  color: #00369f;
  border-left-color: #00369f;
  background-color: rgba(0, 54, 159, 0.05);
}

.toc-h2 {
  margin-left: 0.5em;
}

.toc-h3 {
  margin-left: 1.5em;
}

/* Responsive adjustments */
@media screen and (max-width: 900px) {
  .post-content-wrap {
    flex-direction: column;
  }
  
  .post-sidebar {
    width: 100%;
    min-width: 100%;
    padding-right: 0;
    margin-bottom: 2em;
  }
  
  .post-content {
    max-width: 100%;
  }
  
  .toc-container {
    position: relative;
    top: 0;
    max-height: none;
  }
}

/* Content styles */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
  margin-top: 1.5em;
  margin-bottom: 0.5em;
  color: #222;
}

.post-content h1 { font-size: 1.8em; }
.post-content h2 { font-size: 1.6em; }
.post-content h3 { font-size: 1.4em; }

.post-content p,
.post-content ul,
.post-content ol {
  margin-bottom: 1.2em;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 1em 0;
}

.post-content code {
  background-color: #f6f8fa;
  padding: 0.2em 0.4em;
  border-radius: 3px;
  font-family: monospace;
}

.post-content pre {
  background-color: #f6f8fa;
  padding: 1em;
  border-radius: 5px;
  overflow-x: auto;
  margin: 1.5em 0;
}

.post-content blockquote {
  border-left: 4px solid #00369f;
  padding-left: 1em;
  margin-left: 0;
  color: #555;
  font-style: italic;
}

.post-tags {
  margin-top: 3em;
  padding-top: 1em;
  border-top: 1px solid #eee;
}

.post-tags .tag {
  display: inline-block;
  background-color: #f1f1f1;
  padding: 0.3em 0.7em;
  margin-right: 0.5em;
  margin-bottom: 0.5em;
  border-radius: 3px;
  font-size: 0.85em;
  color: #333;
}