/* TinyMCE content styles for frontend post rendering */

.post-content {
    line-height: 1.85;
    font-size: 1.04rem;
    word-wrap: break-word;
}

.post-content p {
    margin: 0 0 1rem;
}

.post-content h1,
.post-content h2,
.post-content h3,
.post-content h4,
.post-content h5,
.post-content h6 {
    margin: 1.35rem 0 0.8rem;
    line-height: 1.3;
    font-weight: 800;
    color: #111111;
}

.post-content h1 { font-size: 2rem; }
.post-content h2 { font-size: 1.65rem; }
.post-content h3 { font-size: 1.35rem; }
.post-content h4 { font-size: 1.2rem; }
.post-content h5 { font-size: 1.06rem; }
.post-content h6 { font-size: 0.98rem; }

.post-content ul,
.post-content ol {
    margin: 0 0 1rem 1.4rem;
    padding: 0;
}

.post-content li {
    margin: 0.28rem 0;
}

.post-content blockquote {
    margin: 1.25rem 0;
    padding: 0.9rem 1rem;
    border-left: 4px solid #cc1b2f;
    background: #fafafa;
    color: #333333;
    font-style: italic;
    border-radius: 6px;
}

.post-content a {
    color: #cc1b2f;
    text-decoration: underline;
}

.post-content a:hover {
    color: #0f0f0f;
}

.post-content img,
.post-content video,
.post-content iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem auto;
    border-radius: 10px;
}

.post-content figure {
    margin: 1rem 0;
}

.post-content figcaption {
    margin-top: 0.45rem;
    font-size: 0.88rem;
    color: #6d6d6d;
    text-align: center;
}

.post-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 1.2rem 0;
    overflow-x: auto;
    display: block;
}

.post-content table th,
.post-content table td {
    border: 1px solid #d9d9d9;
    padding: 10px;
    text-align: left;
    vertical-align: top;
    white-space: normal;
}

.post-content table th {
    background: #111111;
    color: #ffffff;
    font-weight: 700;
}

.post-content hr {
    border: 0;
    border-top: 1px solid #dddddd;
    margin: 1.4rem 0;
}

.post-content code {
    background: #f3f3f3;
    border: 1px solid #e1e1e1;
    border-radius: 6px;
    padding: 0.1rem 0.38rem;
    font-size: 0.92em;
}

.post-content pre {
    background: #111111;
    color: #f5f5f5;
    border-radius: 10px;
    padding: 0.95rem 1rem;
    overflow-x: auto;
    margin: 1rem 0;
}

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

.post-content .text-center { text-align: center; }
.post-content .text-left { text-align: left; }
.post-content .text-right { text-align: right; }
.post-content .text-justify { text-align: justify; }

@media (max-width: 767px) {
    .post-content {
        font-size: 1rem;
        line-height: 1.75;
    }

    .post-content h1 { font-size: 1.62rem; }
    .post-content h2 { font-size: 1.42rem; }
    .post-content h3 { font-size: 1.24rem; }
}
