.post-content {
  margin: 0 auto;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #333;
}

.post-content h1 {
  font-size: 40px;
  line-height: 1.2;
  margin: 32px 0 20px;
  font-weight: 700;
  color: #222;
}

.post-content h2 {
  font-size: 32px;
  line-height: 1.3;
  margin: 40px 0 16px;
  font-weight: 700;
  color: #222;
  border-bottom: 1px solid #eee;
  padding-bottom: 8px;
}

.post-content h3 {
  font-size: 24px;
  line-height: 1.4;
  margin: 32px 0 14px;
  font-weight: 600;
  color: #222;
}

.post-content h4 {
  font-size: 20px;
  line-height: 1.4;
  margin: 28px 0 10px;
  font-weight: 600;
  color: #222;
}

.post-content h5,
.post-content h6 {
  font-size: 18px;
  line-height: 1.5;
  margin: 24px 0 8px;
  font-weight: 600;
  color: #222;
}

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

.post-content ul,
.post-content ol {
  margin: 0 0 24px 24px;
  padding-left: 16px;
}

.post-content li {
  margin-bottom: 8px;
}

.post-content li > ul,
.post-content li > ol {
  margin-top: 8px;
  margin-bottom: 8px;
}

.post-content blockquote {
  border-left: 4px solid #e0e0e0;
  padding: 8px 0 8px 24px;
  margin: 0 0 24px 0;
  font-style: italic;
  color: #555;
}

.post-content blockquote p:last-child {
  margin-bottom: 0;
}

.post-content pre {
  background-color: #f5f5f5;
  border-radius: 4px;
  padding: 16px;
  overflow-x: auto;
  margin-bottom: 24px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 14px;
}

.post-content code {
  background-color: #f5f5f5;
  padding: 3px 6px;
  border-radius: 3px;
  font-family: 'SFMono-Regular', Consolas, 'Liberation Mono', Menlo, monospace;
  font-size: 14px;
}

.post-content img {
  max-width: 100%;
  height: auto;
  margin: 24px 0;
  border-radius: 4px;
}

.post-content table {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 24px;
  border: 1px solid #e0e0e0;
  font-size: 0.95em;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  overflow: hidden;
}

.post-content th,
.post-content td {
  padding: 12px 16px;
  border: 1px solid #e0e0e0;
  text-align: left;
  vertical-align: middle;
}

.post-content th {
  background-color: #f5f5f5;
  font-weight: 600;
  color: #333;
  border-bottom: 2px solid #ddd;
  position: sticky;
  top: 0;
}

.post-content tr:nth-child(even) {
  background-color: #f9f9f9;
}

.post-content tr:hover {
  background-color: #f1f1f1;
}

.post-content table caption {
  padding: 10px 0;
  font-weight: 600;
  caption-side: top;
  text-align: left;
  color: #444;
}

.post-content .table-container {
  overflow-x: auto;
  margin-bottom: 24px;
}

.post-content table .text-left {
  text-align: left;
}

.post-content table .text-center {
  text-align: center;
}

.post-content table .text-right {
  text-align: right;
}

.post-content a {
  color: #0066cc;
  text-decoration: none;
  border-bottom: 1px solid rgba(0, 102, 204, 0.3);
  transition: border-color 0.2s ease;
}

.post-content a:hover {
  border-bottom-color: #0066cc;
}

.post-content hr {
  height: 1px;
  background-color: #e0e0e0;
  border: none;
  margin: 32px 0;
}

/* Media queries */
@media (max-width: 768px) {
  .post-content {
    font-size: 17px;
  }

  .post-content h1 {
    font-size: 34px;
    margin: 28px 0 18px;
  }

  .post-content h2 {
    font-size: 28px;
    margin: 36px 0 14px;
  }

  .post-content h3 {
    font-size: 22px;
    margin: 28px 0 12px;
  }

  .post-content h4 {
    font-size: 18px;
    margin: 24px 0 8px;
  }

  .post-content h5,
  .post-content h6 {
    font-size: 17px;
  }
  
  .post-content table {
    font-size: 0.9em;
  }
  
  .post-content th,
  .post-content td {
    padding: 10px 12px;
  }
}

@media (max-width: 576px) {
  .post-content {
    font-size: 16px;
  }

  .post-content h1 {
    font-size: 28px;
    line-height: 1.3;
    margin: 24px 0 16px;
  }

  .post-content h2 {
    font-size: 24px;
    line-height: 1.3;
    margin: 28px 0 14px;
  }

  .post-content h3 {
    font-size: 20px;
    margin: 24px 0 12px;
  }

  .post-content h4 {
    font-size: 18px;
    margin: 20px 0 8px;
  }

  .post-content h5,
  .post-content h6 {
    font-size: 16px;
    margin: 20px 0 8px;
  }

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

  .post-content ul,
  .post-content ol {
    margin: 0 0 20px 16px;
  }
  
  .post-content table {
    font-size: 0.85em;
  }
  
  .post-content th,
  .post-content td {
    padding: 8px 10px;
  }
  
  /* Optional: For very small screens, consider this pattern */
  .post-content .table-responsive td {
    display: block;
    text-align: right;
    border-bottom: 0;
  }
  
  .post-content .table-responsive td:before {
    content: attr(data-label);
    float: left;
    font-weight: 600;
  }
  
  .post-content .table-responsive td:last-child {
    border-bottom: 1px solid #e0e0e0;
  }
  
  .post-content .table-responsive th {
    display: none;
  }
}