/* EditorJS Content Styles */
.editor-content {
    max-width: 960px;
    margin: 0 auto;
    font-size: 14px;
    line-height: 1.75;
    color: #1f2937;
    letter-spacing: 0.01em;
}

.editor-content h2 {
    font-size: clamp(1.7rem, 2vw, 2.2rem);
    font-weight: 800;
    line-height: 1.25;
    margin-top: 2.5rem;
    margin-bottom: 1rem;
    color: #0f172a;
    text-wrap: balance;
}

.editor-content h3 {
    font-size: clamp(1.35rem, 1.4vw, 1.7rem);
    font-weight: 700;
    line-height: 1.35;
    margin-top: 2rem;
    margin-bottom: 0.75rem;
    color: #111827;
}

.editor-content h4 {
    font-size: 1.15rem;
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    color: #1f2937;
}

.editor-content p {
    margin-bottom: 1.1rem;
    color: #273244;
}

.editor-content p:has(strong) {
    color: #111827;
}

.editor-content ul,
.editor-content ol {
    margin-bottom: 1.3rem;
    padding-left: 1.4rem;
}

.editor-content ul li,
.editor-content ol li {
    margin-bottom: 0.55rem;
    padding-left: 0.3rem;
    color: #1f2937;
}

.editor-content ul li::marker {
    color: #0ea5e9;
}

.editor-content blockquote {
    border-left: 4px solid #22c55e;
    background: #f8fafc;
    border-radius: 0 10px 10px 0;
    padding: 1rem 1.2rem;
    margin: 1.8rem 0;
    font-style: italic;
    color: #334155;
}

.editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 12px;
    margin: 0;
    box-shadow: none;
    mix-blend-mode: normal;
}

.editor-content figure {
    margin: 2rem auto;
    text-align: center;
}

.editor-content figure.image-frame {
    border-radius: 14px;
    padding: 1.1rem;
}

.editor-content figure.image-frame--gray {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.editor-content figure.image-frame--gray .img-fluid {
    mix-blend-mode: multiply;
}

.editor-content figure.image-frame--plain {
    background: transparent;
    border: none;
    padding: 0;
}

.editor-content figcaption {
    font-size: 0.9rem;
    color: #64748b;
    text-align: center;
    margin-top: 0.65rem;
}

/* Two column layout */
.editor-content .editor-two-columns {
    margin: 2.4rem 0;
}

@media (max-width: 1024px) {
    .editor-content .editor-two-columns:nth-child(2n) {
        flex-direction: column-reverse;
    }
}

.editor-content .editor-two-columns .col-md-6 {
    padding: 0.75rem;
}

.editor-content .editor-two-columns .col-md-6 > * {
    height: 100%;
}

.editor-content .editor-two-columns .col-md-6 > p,
.editor-content .editor-two-columns .col-md-6 > div,
.editor-content .editor-two-columns .col-md-6 > figure {
    margin-bottom: 25px;
}

.editor-content .editor-two-columns .col-md-6 > p,
.editor-content .editor-two-columns .col-md-6 {
    margin: auto!important;
}

.editor-content .editor-two-columns .col-md-6 figure {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
}

.editor-content .editor-two-columns .col-md-6 figure.image-frame--gray {
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
}

.editor-content .editor-two-columns .col-md-6 figure.image-frame--plain {
    background: transparent;
    border: none;
    padding: 0;
}

.editor-content .editor-two-columns .col-md-6 img {
    margin: 0;
    max-height: 325px;
    object-fit: contain;
}

.editor-content .editor-two-columns .text-muted.small {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 180px;
    border: 1px dashed #cbd5e1;
    border-radius: 12px;
    background: #f8fafc;
    color: #64748b;
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .editor-content {
        font-size: 16px;
        line-height: 1.7;
    }

    .editor-content .editor-two-columns .col-md-6 {
        margin-bottom: 0.9rem;
        padding: 0;
    }

    .editor-content .editor-two-columns .col-md-6 > p,
    .editor-content .editor-two-columns .col-md-6 > div,
    .editor-content .editor-two-columns .col-md-6 > figure {
        padding: 1rem;
    }
}
