/* Post Content Styling */
.post-content {
    width: 100%;
}

/* Paragraph spacing */
.post-content p {
    margin-bottom: 24px;
    font-family: 'Open Sans', sans-serif;
    font-variation-settings: 'wdth' 100;
    font-weight: 400;
    line-height: 1.5;
    color: #5b5959;
    font-size: 16px;
}

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

/* Headings */
.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    font-family: 'ITC Stone Sans Std', sans-serif;
    font-weight: 450;
    color: #472663;
    margin-bottom: 24px;
    margin-top: 40px;
}

.post-content h1:first-child,
.post-content h2:first-child,
.post-content h3:first-child,
.post-content h4:first-child,
.post-content h5:first-child,
.post-content h6:first-child {
    margin-top: 0;
}

.post-content h1 {
    font-size: 48px;
    line-height: 1.1;
    tracking: -0.96px;
}

.post-content h2 {
    font-size: 48px;
    line-height: 1.1;
    tracking: -0.96px;
}

.post-content h3 {
    font-size: 24px;
    line-height: 1.2;
    color: #1e1e1e;
}

.post-content h4 {
    font-size: 20px;
    line-height: 1.2;
    color: #1e1e1e;
}

.post-content h5 {
    font-size: 18px;
    line-height: 1.2;
    color: #1e1e1e;
}

.post-content h6 {
    font-size: 16px;
    line-height: 1.2;
    color: #1e1e1e;
}

/* Images, iframes, videos - full width */
.post-content img {
    width: auto;
    max-width: 100%;
    height: auto;
    border-radius: 16px;
    margin: 32px 0;
    display: block;
}

.post-content iframe,
.post-content video {
    width: 100%;
    max-width: 620px;
    height: 400px;
    border-radius: 16px;
    margin: 32px 0;
    display: block;
}

.post-content img:first-child,
.post-content iframe:first-child,
.post-content video:first-child {
    margin-top: 0;
}

.post-content img:last-child,
.post-content iframe:last-child,
.post-content video:last-child {
    margin-bottom: 0;
}

/* Figure elements */
.post-content figure {
    margin: 32px 0;
    width: 100%;
}

.post-content figure img {
    margin: 0;
}

.post-content figcaption {
    font-size: 14px;
    color: #5b5959;
    text-align: center;
    margin-top: 8px;
    font-style: italic;
}

/* Lists styling */
.post-content ul,
.post-content ol {
    margin: 24px 0;
    padding-left: 24px;
    font-family: 'Open Sans', sans-serif;
    font-variation-settings: 'wdth' 100;
    font-weight: 400;
    line-height: 1.5;
    color: #5b5959;
    font-size: 16px;
}

.post-content ul li,
.post-content ol li {
    margin-bottom: 12px;
    position: relative;
}

.post-content ul li:last-child,
.post-content ol li:last-child {
    margin-bottom: 0;
}

/* Custom bullet points for unordered lists */
.post-content ul {
    list-style: none;
}

.post-content ul li::before {
    content: "•";
    color: #472663;
    font-size: 16px;
    font-weight: bold;
    position: absolute;
    left: -16px;
    top: 0;
}

/* Ordered list styling */
.post-content ol {
    counter-reset: list-counter;
    list-style: none;
}

.post-content ol li {
    counter-increment: list-counter;
}

.post-content ol li::before {
    content: counter(list-counter) ".";
    color: #472663;
    font-weight: 600;
    position: absolute;
    left: -24px;
    top: 0;
    font-family: 'Open Sans', sans-serif;
    font-variation-settings: 'wdth' 100;
}

/* Nested lists */
.post-content ul ul,
.post-content ol ol,
.post-content ul ol,
.post-content ol ul {
    margin: 12px 0;
    padding-left: 20px;
}

/* Blockquotes */
.post-content blockquote {
    border: 1px solid #e3dfd2;
    border-radius: 16px;
    padding: 40px;
    margin: 40px 0;
    background: linear-gradient(90deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.5) 100%),
                linear-gradient(90deg, rgb(249, 245, 231) 0%, rgb(249, 245, 231) 100%),
                linear-gradient(90deg, rgb(254, 254, 253) 0%, rgb(254, 254, 253) 100%);
}

.post-content blockquote p {
    font-family: 'ITC Stone Sans Std', sans-serif;
    font-weight: 450;
    line-height: 1.2;
    color: #1e1e1e;
    font-size: 20px;
    margin-bottom: 24px;
}

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

/* Links */
.post-content a {
    color: #472663;
    text-decoration: underline;
    transition: opacity 0.3s ease;
}

.post-content a:hover {
    opacity: 0.7;
}

/* Code blocks */
.post-content pre,
.post-content code {
    font-family: 'Monaco', 'Menlo', 'Ubuntu Mono', monospace;
    background: #f9f5e7;
    border-radius: 8px;
}

.post-content pre {
    padding: 16px;
    margin: 24px 0;
    overflow-x: auto;
    border: 1px solid #e3dfd2;
}

.post-content code {
    padding: 2px 6px;
    font-size: 14px;
}

.post-content pre code {
    padding: 0;
    background: transparent;
}

/* Tables */
.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 32px 0;
    font-family: 'Open Sans', sans-serif;
    font-variation-settings: 'wdth' 100;
}

.post-content table th,
.post-content table td {
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid #e3dfd2;
}

.post-content table th {
    background: #f9f5e7;
    font-weight: 600;
    color: #472663;
}

.post-content table td {
    color: #5b5959;
}

/* Horizontal rules */
.post-content hr {
    border: none;
    border-top: 1px solid #e3dfd2;
    margin: 40px 0;
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .post-content h1,
    .post-content h2 {
        font-size: 32px;
        tracking: -0.64px;
    }

    .post-content h3 {
        font-size: 20px;
    }

    .post-content h4 {
        font-size: 18px;
    }

    .post-content iframe,
    .post-content video {
        height: 300px;
    }

    .post-content blockquote {
        padding: 24px;
        margin: 24px 0;
    }

    .post-content blockquote p {
        font-size: 18px;
    }

    .post-content ul,
    .post-content ol {
        padding-left: 20px;
    }
}