/* Wrapper CKEditor content */
.ckeditor-content {
  font-family: Arial, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: #222;
}

/* Paragraphs */
.ckeditor-content p {
  margin: 0 0 1em;
}

/* Headings */
.ckeditor-content h1,
.ckeditor-content h2,
.ckeditor-content h3,
.ckeditor-content h4,
.ckeditor-content h5,
.ckeditor-content h6 {
  font-weight: bold;
  margin: 1.2em 0 0.6em;
  line-height: 1.3;
}
.ckeditor-content h1 { font-size: 2em; }
.ckeditor-content h2 { font-size: 1.75em; }
.ckeditor-content h3 { font-size: 1.5em; }
.ckeditor-content h4 { font-size: 1.25em; }
.ckeditor-content h5 { font-size: 1.1em; }
.ckeditor-content h6 { font-size: 1em; }

/* Lists */
.ckeditor-content ul,
.ckeditor-content ol {
  margin: 0 0 1em 1.5em;   /* tạo khoảng cách bên trái */
  padding: 0;
  list-style: initial;     /* giữ nguyên style CKEditor đã set */
}
.ckeditor-content li {
  margin: 0.3em 0;
}

/* Links */
.ckeditor-content a {
  color: #0066cc;
  text-decoration: underline;
}
.ckeditor-content a:hover {
  text-decoration: none;
}

/* Images */
.ckeditor-content img {
  max-width: 100%;
  height: auto;
  margin: 1em auto;
  display: inline-block; /* cho phép text wrap nếu cần */
}

/* Tables */
.ckeditor-content table {
  border-collapse: collapse;
  width: 100%;
  margin: 1em 0;
}
.ckeditor-content table th,
.ckeditor-content table td {
  border: 1px solid #ddd;
  padding: 8px;
}
.ckeditor-content table th {
  background: #f5f5f5;
  font-weight: bold;
}

/* Blockquote */
.ckeditor-content blockquote {
  border-left: 4px solid #ccc;
  padding-left: 1em;
  margin: 1em 0;
  color: #555;
  font-style: italic;
}

/* Code */
.ckeditor-content pre {
  background: #f8f8f8;
  padding: 1em;
  overflow-x: auto;
}
.ckeditor-content code {
  font-family: Consolas, monospace;
  background: #f1f1f1;
  padding: 0.2em 0.4em;
  border-radius: 3px;
}

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