.ck-content,
#editor {
    min-height: 300px !important;
    max-height: 400px !important;
    overflow-y: auto;
}

#preview {
    min-height: 500px;
    max-height: 800px;
    overflow-y: auto;
    padding: 2rem;
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
    background-color: white;
    border-radius: 0.5rem;
}

.ck-content,
#preview {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: #333;
}

.ck-content p,
.ck-content ul,
.ck-content ol,
.ck-content blockquote,
.ck-content h1,
.ck-content h2,
.ck-content h3,
.ck-content h4,
.ck-content h5,
.ck-content h6,
#preview p,
#preview ul,
#preview ol,
#preview blockquote,
#preview h1,
#preview h2,
#preview h3,
#preview h4,
#preview h5,
#preview h6 {
    margin: 1em 0;
}

.ck-content h1,
#preview h1 {
    font-size: 2.5em !important;
    font-weight: bold !important;
}

.ck-content h2,
#preview h2 {
    font-size: 2em !important;
    font-weight: bold !important;
}

.ck-content h3,
#preview h3 {
    font-size: 1.75em !important;
    font-weight: bold !important;
}

.ck-content h4,
#preview h4 {
    font-size: 1.5em !important;
    font-weight: bold !important;
}

.ck-content ul,
#preview ul {
    list-style-type: disc;
    margin: 1em 0;
    padding-left: 40px;
}

.ck-content ol,
#preview ol {
    list-style-type: decimal;
    margin: 1em 0;
    padding-left: 40px;
}

.ck-content li,
#preview li {
    margin: 0.5em 0;
}

.ck-content a,
#preview a {
    color: #1a73e8;
    text-decoration: none;
}

.ck-content a:hover,
#preview a:hover {
    text-decoration: underline;
}

.ck-content blockquote,
#preview blockquote {
    border-left: 5px solid #ccc;
    font-style: italic;
    margin: 1em 0;
    padding: 1em;
    background: #f8f9fa;
}

.ck-content table,
#preview table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.ck-content table th,
.ck-content table td,
#preview table th,
#preview table td {
    border: 1px solid #bbb;
    padding: 0.4em;
}

.ck-content table th,
#preview table th {
    background-color: #f0f0f0;
    font-weight: bold;
}

/* Images */
.ck-content img,
#preview img,
.internship-content img {
    max-width: 100%;
    height: auto;
    margin: 0;
    vertical-align: middle;
    display: block;
}

.ck-content .image,
#preview .image,
.internship-content .image {
    clear: both;
    display: block;
    margin: 1em auto;
    min-width: 50px;
    max-width: 100%;
}

.ck-content .image img,
#preview .image img,
.internship-content .image img {
    display: block;
    margin: 0 auto;
    max-width: 100%;
    min-width: 100%;
    height: auto;
}

.ck-content .image.image-style-block,
.ck-content .image.image-style-full,
#preview .image.image-style-block,
#preview .image.image-style-full,
.internship-content .image.image-style-block,
.internship-content .image.image-style-full {
    max-width: 100%;
    width: 100%;
}

.ck-content .image.image-style-block img,
.ck-content .image.image-style-full img,
#preview .image.image-style-block img,
#preview .image.image-style-full img,
.internship-content .image.image-style-block img,
.internship-content .image.image-style-full img {
    width: 100%;
}

.ck-content .image.image-style-align-left,
#preview .image.image-style-align-left,
.internship-content .image.image-style-align-left {
    float: left;
    margin-right: 1em;
    max-width: 50%;
}

.ck-content .image.image-style-align-right,
#preview .image.image-style-align-right,
.internship-content .image.image-style-align-right {
    float: right;
    margin-left: 1em;
    max-width: 50%;
}

.ck-content .image.image-style-align-center,
#preview .image.image-style-align-center,
.internship-content .image.image-style-align-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
}

.internship-content figure.image.image-style-full,
.internship-content figure.image.image-style-block {
    max-width: none !important;
    width: 100% !important;
}

.internship-content figure.image.image-style-full img,
.internship-content figure.image.image-style-block img {
    width: 100% !important;
    max-width: none !important;
}

.internship-content figure.image {
    margin: 1em 0;
}

.prose img, 
.prose figure {
    margin: 0 !important;
    max-width: none !important;
}

.ck-content .image figcaption,
#preview .image figcaption {
    color: #333;
    background-color: #f7f7f7;
    padding: 0.6em;
    font-size: 0.75em;
    text-align: center;
}

.ck-content .image.image-style-inline,
#preview .image.image-style-inline {
    display: inline-flex;
    margin: 0 0.5em;
    vertical-align: baseline;
    max-width: calc(100% - 1em);
    align-items: center;
}

.ck-content .image.image-style-inline img,
#preview .image.image-style-inline img {
    vertical-align: middle;
    display: inline-block;
    margin: 0;
}

.ck-content .image.image-style-side,
#preview .image.image-style-side {
    float: right;
    margin-left: 1.5em;
    max-width: 50%;
    clear: both;
}

.ck-content .image::after,
#preview .image::after {
    content: '';
    display: table;
    clear: both;
}

.ck-content p,
#preview p {
    overflow: visible;
    display: flow-root;
}

.ck-content p > .image.image-style-inline,
#preview p > .image.image-style-inline {
    margin: 0 0.5em;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
}

.ck-content p > .image.image-style-inline img,
#preview p > .image.image-style-inline img {
    vertical-align: middle;
    margin: 0;
}

.ck-content p:has(.image.image-style-inline),
#preview p:has(.image.image-style-inline) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em;
}

.ck-content .text-align-left,
#preview .text-align-left {
    text-align: left;
}

.ck-content .text-align-center,
#preview .text-align-center {
    text-align: center;
}

.ck-content .text-align-right,
#preview .text-align-right {
    text-align: right;
}

.ck-content .text-align-justify,
#preview .text-align-justify {
    text-align: justify;
}

.ck-content .text-tiny,
#preview .text-tiny {
    font-size: 0.7em !important;
}

.ck-content .text-small,
#preview .text-small {
    font-size: 0.85em !important;
}

.ck-content .text-big,
#preview .text-big {
    font-size: 1.4em !important;
}

.ck-content .text-huge,
#preview .text-huge {
    font-size: 1.8em !important;
}

.ck-content .media,
#preview .media {
    clear: both;
    margin: 1em 0;
    display: block;
    min-width: 15em;
}

.embed-responsive {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin: 1em 0;
}

.embed-responsive iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
}

.ck-content::after,
#preview::after {
    content: '';
    display: block;
    clear: both;
}

.ck-content > *:first-child,
#preview > *:first-child {
    margin-top: 0;
}

.ck-content > *:last-child,
#preview > *:last-child {
    margin-bottom: 0;
}