/* Content HTML Styling for Blog Posts */
.content-html h1 {
    font-size: 1.875rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1.5rem;
    margin-top: 2rem;
    line-height: 1.2;
}

.content-html h2 {
    font-size: 1.5rem;
    font-weight: 700;
    color: #111827;
    margin-bottom: 1rem;
    margin-top: 1.5rem;
    line-height: 1.3;
}

.content-html h3 {
    font-size: 1.25rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.75rem;
    margin-top: 1.25rem;
    line-height: 1.4;
}

.content-html h4 {
    font-size: 1.125rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    margin-top: 1rem;
    line-height: 1.4;
}

.content-html h5 {
    font-size: 1rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    margin-top: 0.75rem;
    line-height: 1.4;
}

.content-html h6 {
    font-size: 0.875rem;
    font-weight: 600;
    color: #111827;
    margin-bottom: 0.5rem;
    margin-top: 0.75rem;
    line-height: 1.4;
}

.content-html p {
    color: #374151;
    margin-bottom: 1rem;
    line-height: 1.7;
}

.content-html ul {
    list-style-type: disc;
    list-style-position: inside;
    margin-bottom: 1rem;
    padding-left: 0;
}

.content-html ul li {
    color: #374151;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content-html ol {
    list-style-type: decimal;
    list-style-position: inside;
    margin-bottom: 1rem;
    padding-left: 0;
}

.content-html ol li {
    color: #374151;
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.content-html blockquote {
    border-left: 4px solid #3b82f6;
    padding-left: 1rem;
    font-style: italic;
    color: #6b7280;
    margin: 1.5rem 0;
    background-color: #f9fafb;
    padding: 1rem;
    border-radius: 0.5rem;
}

.content-html a {
    color: #3b82f6;
    text-decoration: underline;
    transition: color 0.2s ease;
}

.content-html a:hover {
    color: #1d4ed8;
}

.content-html strong {
    font-weight: 600;
    color: #111827;
}

.content-html em {
    font-style: italic;
}

.content-html code {
    background-color: #f3f4f6;
    padding: 0.25rem 0.5rem;
    border-radius: 0.25rem;
    font-size: 0.875rem;
    font-family: "Courier New", monospace;
    color: #374151;
}

.content-html pre {
    background-color: #f3f4f6;
    padding: 1rem;
    border-radius: 0.5rem;
    overflow-x: auto;
    margin-bottom: 1rem;
    border: 1px solid #e5e7eb;
}

.content-html pre code {
    background-color: transparent;
    padding: 0;
    border-radius: 0;
    font-size: 0.875rem;
}

.content-html table {
    width: 100%;
    border-collapse: collapse;
    border: 1px solid #d1d5db;
    margin-bottom: 1rem;
}

.content-html th {
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
    background-color: #f9fafb;
    font-weight: 600;
    text-align: left;
    color: #111827;
}

.content-html td {
    border: 1px solid #d1d5db;
    padding: 0.75rem 1rem;
    color: #374151;
}

.content-html img {
    max-width: 100%;
    height: auto;
    border-radius: 0.5rem;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1);
    margin: 1rem 0;
}

.content-html hr {
    border: none;
    border-top: 1px solid #d1d5db;
    margin: 2rem 0;
}

/* Nested lists */
.content-html ul ul,
.content-html ol ol,
.content-html ul ol,
.content-html ol ul {
    margin-top: 0.5rem;
    margin-bottom: 0.5rem;
    margin-left: 1rem;
}

/* First and last elements */
.content-html > *:first-child {
    margin-top: 0;
}

.content-html > *:last-child {
    margin-bottom: 0;
}

.content-html ul {
    list-style-type: disc; 
    list-style-position: outside;
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 40px; 
}

.content-html ol {
    list-style-type: decimal;
    list-style-position: outside; 
    margin-block-start: 1em;
    margin-block-end: 1em;
    margin-inline-start: 0;
    margin-inline-end: 0;
    padding-inline-start: 40px;
}

.content-html li {
    display: list-item;
    text-align: start; 
}
