/* CKEditor content styles */
.prose {
    line-height: 1.6;
    color: #333;
}

.prose p,
.prose ul,
.prose ol,
.prose blockquote,
.prose h1,
.prose h2,
.prose h3,
.prose h4,
.prose h5,
.prose h6 {
    margin: 1em 0;
}

.prose h1 {
    font-size: 2em;
    font-weight: bold;
    margin: 0.67em 0;
}

.prose h2 {
    font-size: 1.75em;
    font-weight: bold;
    margin: 0.83em 0;
}

.prose h3 {
    font-size: 1.5em;
    font-weight: bold;
    margin: 1em 0;
}

.prose h4 {
    font-size: 1.25em;
    font-weight: bold;
    margin: 1.33em 0;
}

.prose ul {
    list-style-type: disc;
    margin: 1em 0;
    padding-left: 40px;
}

.prose ol {
    list-style-type: decimal;
    margin: 1em 0;
    padding-left: 40px;
}

.prose li {
    margin: 0.5em 0;
}

.prose a {
    color: #1a73e8;
    text-decoration: none;
}

.prose a:hover {
    text-decoration: underline;
}

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

.prose table {
    border-collapse: collapse;
    width: 100%;
    margin: 1em 0;
}

.prose table th,
.prose table td {
    border: 1px solid #dee2e6;
    padding: 0.75rem;
    text-align: left;
}

.prose table th {
    background-color: #f8f9fa;
    font-weight: bold;
}

.prose img {
    max-width: 100%;
    height: auto;
    margin: 0;
    vertical-align: middle;
    display: inline-block;
}

.prose .image {
    margin: 1em auto;
    display: inline-block;
    vertical-align: middle;
    max-width: 100%;
    position: relative;
}

.prose .image img {
    display: inline-block;
    margin: 0;
    max-width: 100%;
    vertical-align: middle;
}

.prose .image figcaption {
    display: block;
    text-align: center;
    color: #333;
    background-color: #f7f7f7;
    padding: 0.6em;
    font-size: 0.75em;
}

.prose .image.image-style-align-left {
    float: left;
    margin-right: 1.5em;
    max-width: 50%;
    clear: both;
}

.prose .image.image-style-align-right {
    float: right;
    margin-left: 1.5em;
    max-width: 50%;
    clear: both;
}

.prose .image.image-style-align-center {
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    clear: both;
    display: block;
}

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

.prose .image.image-style-inline img {
    vertical-align: middle;
    display: inline-block;
    margin: 0;
}

.prose .image.image-style-side {
    float: right;
    margin-left: 1.5em;
    max-width: 50%;
    clear: both;
}

.prose .image::after {
    content: '';
    display: table;
    clear: both;
}

.prose p {
    overflow: visible;
    display: flow-root;
}

.prose p > .image.image-style-inline {
    margin: 0 0.5em;
    vertical-align: middle;
    display: inline-flex;
    align-items: center;
}

.prose p > .image.image-style-inline img {
    vertical-align: middle;
    margin: 0;
}

.prose p:has(.image.image-style-inline) {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.5em;
}

/* Clear floats after images */
.prose::after {
    content: '';
    display: block;
    clear: both;
}

.prose > *:first-child {
    margin-top: 0;
}

.prose > *:last-child {
    margin-bottom: 0;
}

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

.prose .text-tiny { font-size: 0.7em; }
.prose .text-small { font-size: 0.85em; }
.prose .text-big { font-size: 1.4em; }
.prose .text-huge { font-size: 1.8em; }

.prose .media {
    clear: both;
    margin: 1em 0;
    display: block;
    min-width: 15em;
}

.prose .embed-responsive {
    position: relative;
    max-width: 100%;
    margin: 1em 0;
}

.prose .embed-responsive:has(iframe) {
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.prose .embed-responsive:has(img) {
    height: auto;
    overflow: visible;
}

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