.taskEmployeeImg {
    width: 35px;
    height: 35px;
    display: inline-block;
    overflow: hidden;
    -o-object-fit: cover;
    object-fit: cover;
    border: 1px solid #e8eef3;
    border-radius: 50% !important;
}

.taskEmployeeImg img {
    width: 35px;
    height: 35px;
    -o-object-fit: cover;
    object-fit: cover;
}

.course_hours {
    color: #3f3854;
}

.course_hours i {
    color: #3f3854 !important;
}

/* Base styles for the editor */
.txt_editor {
    line-height: 1.6;
    padding: 20px;
}

.txt_editor h1,
.txt_editor h2,
.txt_editor h3,
.txt_editor h4,
.txt_editor h5,
.txt_editor h6 {
    font-weight: 600;
    margin-top: 20px;
    margin-bottom: 10px;
}

.txt_editor h1 {
    font-size: 2.5rem;
}

.txt_editor h2 {
    font-size: 2rem;
}

.txt_editor h3 {
    font-size: 1.75rem;
}

.txt_editor h4 {
    font-size: 1.5rem;
}

.txt_editor h5 {
    font-size: 1.25rem;
}

.txt_editor h6 {
    font-size: 1.1rem;
}

.txt_editor p {
    font-size: 1rem;
    margin-bottom: 15px;
    text-align: justify;
    text-justify: inter-word;
    hyphens: auto;
    -webkit-hyphens: auto;
    -ms-hyphens: auto;
}

.txt_editor ul,
.txt_editor ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

.txt_editor ul li,
.txt_editor ol li {
    font-size: 1rem;
    margin-bottom: 10px;
}

.txt_editor a {
    text-decoration: none;
}

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

.txt_editor blockquote {
    font-style: italic;
    background-color: #f8f9fa;
    padding: 10px;
    border-left: 5px solid #007bff;
    margin: 15px 0;
}

.txt_editor hr {
    border: 1px solid #ddd;
    margin: 20px 0;
}

.txt_editor strong {
    font-weight: bold;
}

.txt_editor em {
    font-style: italic;
}

/* Tables */
.txt_editor table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 15px;
}

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

.txt_editor th {
    background-color: #f2f2f2;
}

/* Code blocks */
.txt_editor pre {
    background-color: #f8f9fa;
    padding: 10px;
    border: 1px solid #ddd;
    overflow-x: auto;
}

.txt_editor code {
    background-color: #f8f9fa;
    padding: 2px 5px;
    border-radius: 3px;
}

/* Forms inside editor */
.txt_editor form {
    margin-bottom: 20px;
}

.txt_editor input,
.txt_editor select,
.txt_editor textarea,
.txt_editor button {
    width: 100%;
    padding: 10px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
}

.txt_editor textarea {
    resize: vertical;
    min-height: 150px;
}

.txt_editor button {
    cursor: pointer;
    background-color: #007bff;
    color: #fff;
    border: none;
    transition: background-color 0.3s;
}

.txt_editor button:hover {
    background-color: #0056b3;
}

/* LTR (Left-to-Right) content specific */
.ltr-body .txt_editor {
    direction: ltr;
}

.ltr-body .txt_editor h1,
.ltr-body .txt_editor h2,
.ltr-body .txt_editor h3,
.ltr-body .txt_editor h4,
.ltr-body .txt_editor h5,
.ltr-body .txt_editor h6 {
    text-align: left;
}

.ltr-body .txt_editor p {
    text-align: left;
}

.ltr-body .txt_editor ul,
.ltr-body .txt_editor ol {
    text-align: left;
}

.ltr-body .txt_editor table {
    direction: ltr;
}

/* RTL (Right-to-Left) content specific */
.rtl-body .txt_editor {
    direction: rtl;
    text-align: right;
}

.rtl-body .txt_editor h1,
.rtl-body .txt_editor h2,
.rtl-body .txt_editor h3,
.rtl-body .txt_editor h4,
.rtl-body .txt_editor h5,
.rtl-body .txt_editor h6 {
    text-align: right;
}

.rtl-body .txt_editor p {
    text-align: right;
}

.rtl-body .txt_editor ul,
.rtl-body .txt_editor ol {
    text-align: right;
}

.rtl-body .txt_editor table {
    direction: rtl;
}

/* Responsive Design */
@media (max-width: 767px) {
    .txt_editor {
        padding: 15px;
    }

    .txt_editor h1 {
        font-size: 2rem;
    }

    .txt_editor h2 {
        font-size: 1.75rem;
    }

    .txt_editor h3 {
        font-size: 1.5rem;
    }

    .txt_editor h4 {
        font-size: 1.25rem;
    }

    .txt_editor h5 {
        font-size: 1rem;
    }

    .txt_editor h6 {
        font-size: 0.9rem;
    }

    .txt_editor p {
        font-size: 0.95rem;
    }

    .txt_editor ul,
    .txt_editor ol {
        margin-left: 15px;
    }

    .txt_editor ul li,
    .txt_editor ol li {
        font-size: 0.95rem;
    }

    .txt_editor table {
        font-size: 0.9rem;
    }

    .txt_editor input,
    .txt_editor select,
    .txt_editor textarea,
    .txt_editor button {
        font-size: 0.9rem;
    }

    .txt_editor pre {
        font-size: 0.9rem;
    }
}

/* Extra Small Devices */
@media (max-width: 575px) {
    .txt_editor {
        padding: 10px;
    }

    .txt_editor h1 {
        font-size: 1.75rem;
    }

    .txt_editor h2 {
        font-size: 1.5rem;
    }

    .txt_editor h3 {
        font-size: 1.25rem;
    }

    .txt_editor h4 {
        font-size: 1rem;
    }

    .txt_editor h5 {
        font-size: 0.9rem;
    }

    .txt_editor h6 {
        font-size: 0.8rem;
    }

    .txt_editor p {
        font-size: 0.9rem;
    }

    .txt_editor ul li,
    .txt_editor ol li {
        font-size: 0.9rem;
    }

    .txt_editor table {
        font-size: 0.85rem;
    }

    .txt_editor pre {
        font-size: 0.85rem;
    }
}

.select2-container--default .select2-selection--single .select2-selection__clear {
    cursor: pointer;
    float: right;
    font-weight: bold;
    height: 26px;
    margin-right: 20px;
    padding-right: 0px;
    background-color: unset !important;
    color: black !important;
    padding: unset !important;
}

/* Courses Loader */
.courses-loader {
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 250px;
    width: 100%;
}

/* Spinner */
.spinner {
    width: 64px;
    height: 64px;
    border: 6px solid rgba(63, 56, 84, 0.15);
    /* CTDC base */
    border-top: 6px solid #3f3854;
    /* CTDC primary */
    border-radius: 50%;
    animation: spin 0.9s linear infinite;
}

/* Animation */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

.ctdc-academy-section {
    background: #fff;
}


.bg__primary {
    background-color: #3f3854 !important;
}

.hp-howwork-kicker {
    color: #534c65;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.hp-howwork-title {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 12px;
}

.hp-howwork-intro {
    font-size: 16px;
    color: #555;
    margin-bottom: 25px;
}

.hp-howwork-steps {
    margin-bottom: 30px;
}

.hp-how-step {
    display: flex;
    align-items: flex-start;
    margin-bottom: 22px;
    gap: 15px;
}

.hp-how-step-number {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #534c65;
    color: #fff;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    flex-shrink: 0;
}

.hp-how-step-title {
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 4px;
}

.hp-how-step-text {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.hp-howwork-btn {
    margin-top: 5px;
    display: inline-block;
    padding: 12px 26px;
    border-radius: 10px;
    font-weight: 700;
}

@media (max-width: 768px) {
    .hp-howwork-block {
        padding: 30px 20px;
    }

    .hp-how-step {
        gap: 12px;
    }
}

.hp-why-new {
    padding: 80px 0;
}

.hp-why-kicker {
    color: #7b5fc0;
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 800;
    letter-spacing: 1px;
    margin-bottom: 6px;
}

.hp-why-title {
    font-size: 32px;
    font-weight: 800;
    margin-bottom: 14px;
}

.hp-why-intro {
    color: #717173;
    font-size: 18px;
    line-height: 30px;
    text-align: justify;
}

.hp-why-card {
    background: #fff;
    padding: 26px;
    border-radius: 16px;
    margin-bottom: 22px;
    text-align: center;
    box-shadow: 0 4px 18px rgba(0, 0, 0, 0.06);
}

.hp-why-icon {
    font-size: 38px;
    margin-bottom: 10px;
}

.hp-why-card-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #3f3854;
}

.hp-why-card-text {
    font-size: 14px;
    color: #555;
    margin: 0;
}

.ctdc-cpd-mini-box {
    /* max-width: 520px; */
    padding: 16px 18px;
    border: 1px solid #e6e6ee;
    border-radius: 12px;
    background: #ffffff;
    width: 100%;
}

.ctdc-cpd-mini-logo img {
    max-width: 120px;
    height: auto;
}

.ctdc-cpd-mini-content h6 {
    font-weight: 600;
    font-size: 0.95rem;
    color: #3f3854;
}

.ctdc-cpd-mini-content p {
    font-size: 0.85rem;
    color: #666;
    line-height: 1.4;
}

.ctdc-cpd-mini-link {
    font-size: 0.8rem;
    font-weight: 500;
    color: #3f3854;
    text-decoration: underline;
}

.ctdc-cpd-mini-link:hover {
    text-decoration: none;
}

.form-check-label {
    font-weight: 400;
    color: #fff;
}

.text__primary {
    color: #3f3854 !important;
}

.map_wrapper {
    width: 100%;
    height: 400px;
}

.user-nav-btn {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 10px 8px;
    border-bottom: 1px solid color-mix(in srgb, var(--default-color), transparent 95%);
    transition: background-color 0.3s;
    cursor: pointer;
}

/* PAGE */
.ctdc-course-page {
    padding: 28px 0 60px;
    color: #111;
}

/* Make layout feel like the reference (not full-stretched on wide screens) */
.ctdc-course-shell {
    max-width: 1180px;
    /* important for large screens */
    margin: 0 auto;
}

/* HEADER */
.ctdc-course-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 18px;
}

.ctdc-course-back {
    font-size: 16px;
    color: #3b3b3b;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    text-decoration: none;
}

.ctdc-course-back i {
    font-size: 18px;
    line-height: 1;
}

.ctdc-course-title {
    font-size: 40px;
    /* closer to ref */
    font-weight: 750;
    margin-top: 6px;
    letter-spacing: -0.2px;
}

.ctdc-course-module {
    font-size: 14px;
    color: #111;
    margin-top: 10px;
    white-space: nowrap;
    background-color: #dddddd;
    padding: 5px 20px;
    border-radius: 20px;
}

/* DIVIDER */
.ctdc-course-divider {
    height: 2px;
    background: rgba(63, 56, 84, 0.20);
    margin: 22px 0 30px;
}

/* SIDEBAR */
.ctdc-course-sidebar {
    font-size: 16px;
}

.ctdc-sidebar-title {
    font-weight: 700;
    margin-bottom: 10px;
    color: #111;
}

.ctdc-progress-wrap {
    display: flex;
    align-items: center;
    gap: 12px;
}

.ctdc-progress-track {
    flex: 1;
    height: 8px;
    background: #e3e3e3;
    border-radius: 999px;
    overflow: hidden;
}

.ctdc-progress-fill {
    width: 0%;
    height: 100%;
    background: #111;
    border-radius: 999px;
}

.ctdc-progress-percent {
    font-size: 14px;
    color: #111;
    font-weight: 600;
    min-width: 36px;
    text-align: right;
}

.ctdc-sidebar-muted {
    font-size: 15px;
    color: #6b6b6b;
    margin: 12px 0 0;
}

.ctdc-sidebar-section {
    margin-top: 22px;
}

.ctdc-sidebar-brand {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #6b6b6b;
    font-size: 15px;
}

.ctdc-sidebar-help a {
    color: #111;
    font-weight: 700;
    text-decoration: none;
}

.ctdc-sidebar-help a:hover {
    text-decoration: underline;
}

/* CONTENT */
.ctdc-course-content {
    max-width: 820px;
    /* prevents “too wide” look on large screens */
}

.ctdc-content-title {
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 8px;
    color: #111;
}

.ctdc-content-text {
    font-size: 14px;
    color: #555;
    line-height: 1.7;
    max-width: 720px;
}

/* LESSON CARD */
.ctdc-lesson-row {
    display: flex;
    gap: 22px;
    margin-top: 28px;
    border: 1px solid #e7e7e7;
    border-radius: 12px;
    overflow: hidden;
    background: #fff;
    position: relative;
}

.ctdc-lesson-thumb {
    width: 190px;
    min-width: 190px;
    height: 100%;
    background: #3f3854;
    color: #fff;
    font-weight: 800;
    font-size: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 10px;
    min-height: 150px;
}

.ctdc-lesson-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 16px 18px;
}

.ctdc-lesson-title {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 6px;
    color: #111;
}

.ctdc-lesson-text {
    font-size: 14px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 6px;
    max-width: 620px;
}

.ctdc-lesson-action {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 4px;
    font-weight: 500;
    color: #fff;
    text-decoration: none;
    background-color: #3f3854;
    padding: 8px 20px;
    border-radius: 6px;
    text-align: center;
    transition: all 0.2s ease;
    font-size: 14px;
    width: fit-content;
}

.ctdc-lesson-action:hover {
    text-decoration: none;
    color: #fff;
    opacity: 0.8;
}

/* =========================
       RESPONSIVE
    ========================= */

/* Large screens: keep spacing like the reference */
@media (min-width: 1200px) {
    .ctdc-course-shell {
        max-width: 1160px;
    }

    .ctdc-course-title {
        font-size: 42px;
    }
}

/* Medium screens */
@media (max-width: 991.98px) {

    .ctdc-course-title {
        font-size: 30px;
    }

    .ctdc-course-module {
        margin-top: 0;
        font-size: 13px;
    }

    .ctdc-course-divider {
        margin: 18px 0 24px;
    }

    .ctdc-course-sidebar {
        margin-bottom: 26px;
    }

    /* lesson stacks nicely */
    .ctdc-lesson-row {
        flex-direction: column;
        gap: 0;
    }

    .ctdc-lesson-thumb {
        width: 100%;
        min-width: 100%;
        height: 150px;
        font-size: 18px;
    }

    .ctdc-lesson-content {
        padding: 14px 16px 18px;
    }

    .ctdc-course-content {
        max-width: 100%;
    }

    .ctdc-content-text {
        max-width: 100%;
    }

    .ctdc-lesson-text {
        max-width: 100%;
    }
}

/* Small mobile */
@media (max-width: 575.98px) {

    .ctdc-course-page {
        padding: 20px 0 40px;
    }

    .ctdc-course-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ctdc-course-back {
        font-size: 14px;
    }

    .ctdc-course-title {
        font-size: 24px;
    }

    .ctdc-content-title {
        font-size: 18px;
    }

    .ctdc-content-text {
        font-size: 13px;
    }

    .ctdc-progress-percent {
        font-size: 13px;
        min-width: 32px;
    }

    .ctdc-lesson-thumb {
        height: 120px;
        font-size: 16px;
    }

    .ctdc-lesson-title {
        font-size: 15px;
    }

    .ctdc-lesson-action {
        font-size: 14px;
    }
}

.ctdc-course-sidebar {
    position: sticky;
    top: 120px;
    border: 1px solid #d5d5d5;
    padding: 20px;
    border-radius: 5px;
}

.comp_badge {
    position: absolute;
    top: 0;
    right: 0;
    background: #198754;
    color: #fff;
    padding: 4px 8px;
    border-radius: 0px 10px;
    font-size: 12px;
    font-weight: 600;

}

.lg-ml-313px {
    margin-left: 313px;
}

.lg-sbar-course {
    min-height: 100vh;
    overflow-y: hidden;
    z-index: 2;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 310px;
    transition: width 0.3s;
}

@media (max-width: 991.98px) {
    .lg-ml-313px {
        margin-left: 0px;
    }
    .lg-sbar-course{
        display: none;
    }
}
/* =========================
   MCQ UI STYLES
========================= */

.mcq-wrapper {
    background: #ffffff;
    border-radius: 12px;
    padding: 20px 22px;
    border: 1px solid #e5e7eb;
}

.mcq-wrapper h6 {
    font-size: 1rem;
    color: #0f172a;
}

/* Each question block */
.mcq-wrapper > div.mb-4 {
    padding: 16px 18px;
    border-radius: 10px;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
}

/* Question text */
.mcq-wrapper p {
    font-size: 0.95rem;
    color: #111827;
}

/* Option row */
.mcq-wrapper .form-check {
    padding: 10px 14px;
    border-radius: 8px;
    background: #ffffff;
    border: 1px solid #e5e7eb;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Hover effect */
.mcq-wrapper .form-check:hover {
    border-color: #2563eb;
    background: #f0f7ff;
}

/* Radio alignment */
.mcq-wrapper .form-check-input {
    margin-top: 0.35rem;
    cursor: pointer;
}

/* Label */
.mcq-wrapper .form-check-label {
    cursor: pointer;
    font-size: 0.9rem;
    color: #111827;
    margin-left: 6px;
    
}

/* Selected option */
.mcq-wrapper .form-check-input:checked {
    background-color: #2563eb;
    border-color: #2563eb;
}

/* Highlight selected option row */
.mcq-wrapper .form-check-input:checked + .form-check-label {
    font-weight: 600;
}

.mcq-wrapper .form-check-input:checked ~ * {
    color: #1e40af;
}

/* Mobile spacing */
@media (max-width: 576px) {
    .mcq-wrapper {
        padding: 16px;
    }

    .mcq-wrapper > div.mb-4 {
        padding: 14px;
    }
}
/* Make entire option clickable */
.mcq-wrapper .form-check {
    position: relative;
    padding-left: 42px; /* space for radio */
}

/* Proper radio positioning */
.mcq-wrapper .form-check-input {
    position: absolute;
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
    margin: 0;
}

/* Label should fill the card */
.mcq-wrapper .form-check-label {
    display: block;
    width: 100%;
    cursor: pointer;
}
/* =========================
   QUESTIONS (TEXTAREA) UI
========================= */

.qa-wrapper h6 {
    font-size: 1rem;
    color: #0f172a;
}

/* Question block */
.qa-wrapper > div.mb-3 {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 10px;
    padding: 14px 16px;
}

/* Question label */
.qa-wrapper label {
    font-size: 0.9rem;
    color: #111827;
}

/* Textarea styling */
.qa-wrapper textarea.form-control {
    margin-top: 8px;
    border-radius: 8px;
    border: 1px solid #d1d5db;
    resize: vertical;
    font-size: 0.9rem;
    line-height: 1.4;
    padding: 10px 12px;
    transition: all 0.2s ease;
}

/* Focus state */
.qa-wrapper textarea.form-control:focus {
    border-color: #2563eb;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.15);
}

/* Required validation (browser) */
.qa-wrapper textarea:required:invalid {
    border-color: #dc2626;
}

.qa-wrapper textarea:required:valid {
    border-color: #16a34a;
}

/* Mobile tuning */
@media (max-width: 576px) {
    .qa-wrapper > div.mb-3 {
        padding: 12px 14px;
    }
}
