/* Base styles for ck-content */
.ck-content {
    font-family: 'Helvetica Neue', Arial, sans-serif;
    font-size: 16px;
    color: #333333;
    line-height: 1.8;
    padding: 20px;
    background-color: #fafafa;
    border: 1px solid #e0e0e0;
    border-radius: 5px;
}

/* Headings */
.ck-content h1 {
    font-size: 2.2em;
    font-weight: bold;
    color: #2c3e50;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

.ck-content h2 {
    font-size: 1.8em;
    color: #34495e;
    margin-top: 0.75em;
    margin-bottom: 0.5em;
}

.ck-content h3 {
    font-size: 1.6em;
    color: #34495e;
    margin-top: 0.75em;
    margin-bottom: 0.5em;
}

.ck-content h4, .ck-content h5, .ck-content h6 {
    font-size: 1.4em;
    color: #7f8c8d;
    margin-top: 0.5em;
    margin-bottom: 0.5em;
}

/* Paragraphs */
.ck-content p {
    margin-bottom: 1em;
}

/* Links */
.ck-content a {
    color: #3498db;
    text-decoration: underline;
}

.ck-content a:hover {
    color: #2980b9;
    text-decoration: none;
}

/* Lists */
.ck-content ul, .ck-content ol {
    padding-left: 20px;
    margin-bottom: 1em;
}

.ck-content ul {
    list-style-type: disc;
}

.ck-content ol {
    list-style-type: decimal;
}

/* List items */
.ck-content li {
    margin-bottom: 0.5em;
}

/* Blockquote */
.ck-content blockquote {
    font-style: italic;
    color: #7f8c8d;
    border-left: 4px solid #bdc3c7;
    padding-left: 10px;
    margin-left: 0;
    margin-right: 0;
    margin-top: 1em;
    margin-bottom: 1em;
}

/* Code blocks */
.ck-content pre {
    background-color: #f4f4f4;
    padding: 10px;
    border-radius: 4px;
    overflow-x: auto;
    font-family: 'Courier New', Courier, monospace;
    font-size: 14px;
    color: #e74c3c;
}

.ck-content code {
    background-color: #f4f4f4;
    padding: 2px 4px;
    border-radius: 3px;
    color: #c0392b;
}

/* Table styling */
.ck-content table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 1em;
}

.ck-content th, .ck-content td {
    border: 1px solid #ddd;
    padding: 8px;
    text-align: left;
}

.ck-content th {
    background-color: #f34f4f !important;
    font-weight: bold;
    color: white;
}

.ck-content td {
    background-color: #ffffff;
}

/* Horizontal line */
.ck-content hr {
    border: none;
    border-top: 1px solid #ddd;
    margin: 1.5em 0;
}

/* Image styling */
.ck-content img {
    max-width: 100%;
    height: auto;
    border-radius: 4px;
    margin: 10px 0;
}

/* Custom alignment classes if CKEditor alignment plugin is used */
.ck-content .text-left {
    text-align: left;
}

.ck-content .text-center {
    text-align: center;
}

.ck-content .text-right {
    text-align: right;
}
