﻿/* ===== Base ===== */
.ckeditor-content {
    line-height: 1.95;
    font-size: 17px;
    color: #333;
}

    .ckeditor-content * {
        word-break: break-word;
    }

    /* ===== Headings ===== */
    .ckeditor-content h1,
    .ckeditor-content h2,
    .ckeditor-content h3,
    .ckeditor-content h4,
    .ckeditor-content h5,
    .ckeditor-content h6 {
        font-weight: 700;
        margin: 28px 0 15px;
        line-height: 1.4;
        color: #222;
    }

    .ckeditor-content h1 {
        font-size: 32px;
    }

    .ckeditor-content h2 {
        font-size: 26px;
    }

    .ckeditor-content h3 {
        font-size: 22px;
    }

    .ckeditor-content h4 {
        font-size: 20px;
    }

    .ckeditor-content h5 {
        font-size: 18px;
    }

    .ckeditor-content h6 {
        font-size: 17px;
    }

    /* ===== Paragraph ===== */
    .ckeditor-content p {
        margin-bottom: 18px;
        text-align: justify;
    }

    /* ===== Strong ===== */
    .ckeditor-content strong {
        font-weight: 800;
    }

    /* ===== Links ===== */
    .ckeditor-content a {
        color: #007bff;
        text-decoration: none;
        transition: 0.2s;
    }

        .ckeditor-content a:hover {
            text-decoration: underline;
        }

    /* ===== Tables ===== */
    .ckeditor-content table {
        width: 100%;
        border-collapse: collapse;
        margin: 25px 0;
        font-size: 16px;
    }

        .ckeditor-content table th {
            background: #f3f3f3;
            font-weight: 700;
        }

        .ckeditor-content table th,
        .ckeditor-content table td {
            border: 1px solid #ddd;
            padding: 10px 12px;
        }

    /* ===== Blockquote ===== */
    .ckeditor-content blockquote {
        padding: 18px 25px;
        margin: 25px 0;
        background: #f5f7fa;
        border-right: 4px solid #007bff;
        border-radius: 4px;
        color: #555;
    }

    /* ===== Lists ===== */
    .ckeditor-content ul,
    .ckeditor-content ol {
        margin: 18px 0 18px 25px;
        padding-left: 20px;
    }

    .ckeditor-content li {
        margin-bottom: 8px;
        line-height: 1.9;
    }

    /* ===== HR ===== */
    .ckeditor-content hr {
        margin: 35px 0;
        border: 0;
        border-top: 1px solid #ddd;
    }

    /* ===== Images ===== */
    .ckeditor-content img {
        max-width: 100%;
        height: auto;
        display: block;
        margin: 18px auto;
        border-radius: 6px;
    }

    /* ===== Code Blocks ===== */
    .ckeditor-content pre {
        background: #272822;
        color: #f8f8f2;
        padding: 15px;
        overflow-x: auto;
        border-radius: 6px;
        margin: 20px 0;
        font-size: 15px;
    }

    .ckeditor-content code {
        background: #f3f3f3;
        padding: 3px 6px;
        border-radius: 4px;
        font-size: 15px;
    }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .ckeditor-content {
        font-size: 16px;
    }

        .ckeditor-content h1 {
            font-size: 26px;
        }

        .ckeditor-content h2 {
            font-size: 23px;
        }

        .ckeditor-content h3 {
            font-size: 20px;
        }

        .ckeditor-content table {
            font-size: 14px;
        }
}
