/* =============================
    CKEditor Content Styling
   ============================= */
.ckeditor-content {
    font-family: 'Public Sans', sans-serif;
    font-size: 16px;
    line-height: 1.6;
    color: #333;
}

/* Headings */
.ckeditor-content h1,
.ckeditor-content h2,
.ckeditor-content h3,
.ckeditor-content h4,
.ckeditor-content h5,
.ckeditor-content h6 {
    font-weight: 600;
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    line-height: 1.3;
}

.ckeditor-content h1 {
    font-size: 2.5rem;
}

.ckeditor-content h2 {
    font-size: 2rem;
}

.ckeditor-content h3 {
    font-size: 1.75rem;
}

.ckeditor-content h4 {
    font-size: 1.5rem;
}

.ckeditor-content h5 {
    font-size: 1.25rem;
}

.ckeditor-content h6 {
    font-size: 1rem;
}

/* Paragraphs */
.ckeditor-content p {
    margin-bottom: 1rem;
}

/* Links */
.ckeditor-content a {
    color: #0277bd;
    text-decoration: underline;
}

.ckeditor-content a:hover {
    text-decoration: none;
}

/* Lists */
.ckeditor-content ul,
.ckeditor-content ol {
    margin: 0 0 1rem 1.5rem;
}

.ckeditor-content ul li,
.ckeditor-content ol li {
    margin-bottom: 0.5rem;
}

/* Blockquotes */
.ckeditor-content blockquote {
    border-left: 4px solid #0277bd;
    padding-left: 1rem;
    color: #555;
    font-style: italic;
    margin: 1rem 0;
    background-color: #f9f9f9;
}

/* Horizontal rules */
.ckeditor-content hr {
    border: none;
    border-top: 1px solid #ccc;
    margin: 2rem 0;
}

/* Images */
.ckeditor-content img {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}

/* =============================
    Responsive Tables
   ============================= */
/* Wrap table in scrollable container */
.ckeditor-content .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    margin-bottom: 1.5rem;
}

/* Table styles */
.ckeditor-content table {
    width: 100%;
    border-collapse: collapse;
    min-width: 600px;
    /* ensures horizontal scroll on small screens */
}

.ckeditor-content th,
.ckeditor-content td {
    border: 1px solid #ccc;
    padding: 0.5rem 0.75rem;
    text-align: left;
}

.ckeditor-content th {
    background-color: #f5f5f5;
    font-weight: 600;
}

/* Zebra striping */
.ckeditor-content tr:nth-child(even) {
    background-color: #fafafa;
}

/* =============================
    Code blocks
   ============================= */
.ckeditor-content pre {
    background-color: #f5f5f5;
    padding: 1rem;
    overflow-x: auto;
    border-radius: 0.25rem;
    margin: 1rem 0;
}

.ckeditor-content code {
    background-color: #eee;
    padding: 0.2rem 0.4rem;
    border-radius: 0.25rem;
    font-family: 'Public Sans', monospace;
}

/* =============================
    YouTube/iframe embeds
   ============================= */
.ckeditor-content iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 1rem 0;
}