/* ============================
   Existing & Sidebar / Tab / Nav
   ============================ */

.left-nav-scroll {
    max-height: 50vh;
    overflow-y: auto;
    position: sticky;
    display: flex;
    padding: 20px 10px 10px 10px;
    background: #ffffff;
    border-radius: 12px;
    border: 1px solid grey;
    top: 120px;
    flex-direction: column;
    flex-wrap: nowrap;
}

.tab-pane>div {
    min-height: 1000px; /* Simulate tall content */
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 5px;
}

.sidebar {
    background-color: #f5f5f5;
    color: #fff;
    padding: 25px;
    font-size: 16px;
    border: 1px solid #f5f5f5;
    border-radius: 16px;
    font-family: var(--font_colasta);
}

.nav-pills .nav-link.active,
.nav-pills .show>.nav-link {
    color: #000000 !important;
    background-color: #ffffff;
    border: 1px solid black;
}

.left-nav-scroll .nav-link {
    margin-bottom: 10px;
    text-align: start;
    color: black !important;
    position: relative;
    padding-left: 20px;
}

.left-nav-scroll .nav-link.active::before {
    content: '';
    display: block;
    width: 14px;
    height: 100%;
    background-color: #f97316;
    position: absolute;
    left: 0;
    top: 0;
    border-radius: 5px;
    transition: all 0.3s ease;
}

.nav-link {
    color: white !important;
}

.editor-content {
    overflow-x: hidden;
}

/* ============================
   Editor Content Styles (New)
   ============================ */
.editor-content {
    font-family: Arial, sans-serif;
    line-height: 1.7;
    color: #333;
    font-size: 16px;
    word-wrap: break-word;
}

/* Headings */
.editor-content h1,
.editor-content h2,
.editor-content h3,
.editor-content h4,
.editor-content h5,
.editor-content h6 {
    margin: 20px 0 10px;
    font-weight: bold;
    color: #111;
}

.editor-content h1 { font-size: 2rem; }
.editor-content h2 { font-size: 1.75rem; }
.editor-content h3 { font-size: 1.5rem; }
.editor-content h4 { font-size: 1.25rem; }
.editor-content h5 { font-size: 1.1rem; }
.editor-content h6 { font-size: 1rem; }

/* Paragraphs */
.editor-content p {
    margin-bottom: 15px;
}

/* Lists */
.editor-content ul,
.editor-content ol {
    margin: 15px 0 20px 30px;
    padding: 0;
}

.editor-content ul li,
.editor-content ol li {
    margin-bottom: 8px;
}

/* Links */
.editor-content a {
    color: #0d6efd;
    text-decoration: underline;
}
.editor-content a:hover {
    color: #0a58ca;
    text-decoration: none;
}

/* Blockquote */
.editor-content blockquote {
    border-left: 5px solid #ccc;
    padding-left: 15px;
    margin: 20px 0;
    font-style: italic;
    color: #555;
    background: #f9f9f9;
}

/* Tables */
.editor-content table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
}

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

.editor-content table th {
    background-color: #f3f3f3;
    font-weight: bold;
}

/* Code blocks */
.editor-content pre,
.editor-content code {
    font-family: "Courier New", monospace;
    background: #f4f4f4;
    padding: 5px 8px;
    border-radius: 5px;
    overflow-x: auto;
}
.editor-content pre {
    display: block;
    padding: 15px;
    margin: 15px 0;
}

/* Images */
.editor-content img {
    max-width: 100%;
    height: auto;
    border-radius: 6px;
    margin: 10px 0;
}

/* Horizontal line */
.editor-content hr {
    border: 0;
    border-top: 1px solid #ddd;
    margin: 30px 0;
}

/* Bold / Strong */
.editor-content b,
.editor-content strong {
    font-weight: bolder;
}

/* Optional: make editor content tables responsive */
.editor-content table {
    display: block;
    width: 100%;
    overflow-x: auto;
}
