/* ============================================================
   COLUMBIA MICROLEARNING — LEARNDASH STYLES
   microlearning.columbia.ca
   File: learndash.css
   Load via: functions.php (see enqueue snippet)

   Theme agnostic — identical to the Kadence version.
============================================================ */


/* ── Base typography ───────────────────────────────────────── */

.learndash-wrapper,
.learndash-wrapper *,
#learndash_post_content,
.sfwd-courses,
.sfwd-lessons,
.sfwd-topic,
.sfwd-quiz {
    font-family: "Open Sans", Arial, sans-serif;
    box-sizing: border-box;
}

.learndash-wrapper h1,
.learndash-wrapper h2,
.learndash-wrapper h3,
.learndash-wrapper h4,
.learndash-wrapper .ld-course-navigation-heading,
.learndash-wrapper .ld-section-heading {
    font-family: "Raleway", sans-serif;
    font-weight: 800;
    color: #1A1A1A;
    letter-spacing: -0.3px;
}


/* ── Course / lesson page header ───────────────────────────── */

.sfwd-courses .entry-header,
.ld-course-header,
body.sfwd-courses .page-header,
body.sfwd-lessons .page-header,
body.sfwd-topic .page-header {
    background: #003258;
    color: #ffffff;
    padding: 36px 5%;
    border-bottom: 4px solid #D12329;
    margin-bottom: 0;
}

.sfwd-courses .entry-title,
.sfwd-lessons .entry-title,
.sfwd-topic .entry-title,
body.sfwd-courses h1.page-title,
body.sfwd-lessons h1.page-title {
    font-family: "Raleway", sans-serif;
    font-weight: 800;
    font-size: 30px;
    color: #ffffff;
    letter-spacing: -0.3px;
    margin: 0;
}


/* ── Course navigation sidebar ─────────────────────────────── */

.ld-course-navigation {
    background: #ffffff;
    border: 1px solid #EBEBEB;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,50,88,0.08);
    overflow: hidden;
}

.ld-course-navigation-heading,
.ld-course-navigation .ld-course-navigation-heading {
    background: #003258;
    color: #ffffff;
    font-family: "Raleway", sans-serif;
    font-weight: 800;
    font-size: 16px;
    padding: 18px 20px;
    margin: 0;
    border-bottom: 3px solid #D12329;
    letter-spacing: 0.3px;
}

.ld-course-navigation .ld-section-heading {
    background: #F7F7F7;
    border-top: 1px solid #EBEBEB;
    border-bottom: 1px solid #EBEBEB;
    font-family: "Raleway", sans-serif;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #A0A2A4;
    padding: 10px 20px;
    margin: 0;
}

.ld-course-navigation .ld-lesson-item,
.ld-course-navigation .ld-topic-list .ld-topic-item {
    border-bottom: 1px solid #F0F0F0;
    transition: background 0.15s;
}

.ld-course-navigation .ld-lesson-item:hover,
.ld-course-navigation .ld-topic-list .ld-topic-item:hover {
    background: #FBF0F0;
}

.ld-course-navigation .ld-lesson-item a,
.ld-course-navigation .ld-topic-list .ld-topic-item a {
    display: flex;
    align-items: center;
    padding: 11px 20px;
    font-size: 13px;
    color: #1A1A1A;
    text-decoration: none;
    line-height: 1.4;
    transition: color 0.15s;
}

.ld-course-navigation .ld-lesson-item a:hover,
.ld-course-navigation .ld-topic-list .ld-topic-item a:hover {
    color: #D12329;
}

.ld-course-navigation .ld-lesson-item.ld-is-current a,
.ld-course-navigation .ld-topic-item.ld-is-current a {
    color: #D12329;
    font-weight: 600;
    border-left: 3px solid #D12329;
    padding-left: 17px;
}

.ld-course-navigation .ld-lesson-item.ld-is-completed .ld-status-icon,
.ld-course-navigation .ld-topic-item.ld-is-completed .ld-status-icon {
    color: #D12329;
    fill: #D12329;
}

.ld-course-navigation .ld-quiz-list .ld-quiz-item a {
    color: #003258;
    font-weight: 600;
}


/* ── Progress bar ──────────────────────────────────────────── */

.learndash-wrapper .ld-progress-bar {
    background: #EBEBEB;
    border-radius: 100px;
    height: 8px;
    overflow: hidden;
}

.learndash-wrapper .ld-progress-bar-percentage {
    background: #D12329;
    border-radius: 100px;
    height: 8px;
    transition: width 0.4s ease;
}

.learndash-wrapper .ld-progress-stats {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #A0A2A4;
    margin-top: 6px;
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.learndash-wrapper .ld-progress-heading {
    font-family: "Raleway", sans-serif;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #A0A2A4;
    margin-bottom: 6px;
}


/* ── Buttons ───────────────────────────────────────────────── */

.learndash-wrapper .ld-button,
.learndash-wrapper .btn-join,
.learndash-wrapper input[type="submit"],
.learndash-wrapper .ld-quiz-submit-button,
#learndash_post_content .learndash-link-previous-incomplete,
.ld-course-grid .ld-button {
    background: #D12329 !important;
    color: #ffffff !important;
    font-family: "Raleway", sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 12px 24px !important;
    border-radius: 4px !important;
    border: none !important;
    cursor: pointer !important;
    transition: background 0.2s, transform 0.15s !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
}

.learndash-wrapper .ld-button:hover,
.learndash-wrapper .btn-join:hover,
.learndash-wrapper input[type="submit"]:hover,
.ld-course-grid .ld-button:hover {
    background: #A81B20 !important;
    transform: translateY(-1px) !important;
    color: #ffffff !important;
}

.learndash-wrapper .ld-button.ld-button-reverse,
.learndash-wrapper .ld-nav-button {
    background: #003258 !important;
    color: #ffffff !important;
}

.learndash-wrapper .ld-button.ld-button-reverse:hover,
.learndash-wrapper .ld-nav-button:hover {
    background: #1A4E7A !important;
}

.learndash-wrapper .learndash_mark_complete_button,
#learndash_mark_complete_button {
    background: #D12329 !important;
    color: #ffffff !important;
    font-family: "Raleway", sans-serif !important;
    font-weight: 700 !important;
    font-size: 14px !important;
    letter-spacing: 0.5px !important;
    text-transform: uppercase !important;
    padding: 12px 28px !important;
    border-radius: 4px !important;
    border: none !important;
    width: 100% !important;
    margin-top: 24px !important;
    cursor: pointer !important;
    transition: background 0.2s !important;
}

.learndash-wrapper .learndash_mark_complete_button:hover {
    background: #A81B20 !important;
}


/* ── Lesson / topic content ────────────────────────────────── */

.learndash-wrapper .ld-lesson-content,
.learndash-wrapper .ld-topic-content {
    background: #ffffff;
    border: 1px solid #EBEBEB;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
    font-size: 15px;
    line-height: 1.75;
    color: #1A1A1A;
}

.learndash-wrapper .ld-lesson-content h2,
.learndash-wrapper .ld-topic-content h2 {
    font-size: 22px;
    color: #003258;
    border-bottom: 2px solid #D12329;
    padding-bottom: 8px;
    margin: 32px 0 16px;
}

.learndash-wrapper .ld-lesson-content h3,
.learndash-wrapper .ld-topic-content h3 {
    font-size: 17px;
    color: #1A1A1A;
    margin: 24px 0 10px;
}

.learndash-wrapper .ld-lesson-content ul,
.learndash-wrapper .ld-topic-content ul {
    list-style: none;
    padding-left: 0;
    margin: 12px 0;
}

.learndash-wrapper .ld-lesson-content ul li,
.learndash-wrapper .ld-topic-content ul li {
    padding: 4px 0 4px 20px;
    position: relative;
    font-size: 14px;
    color: #444;
    line-height: 1.6;
}

.learndash-wrapper .ld-lesson-content ul li::before,
.learndash-wrapper .ld-topic-content ul li::before {
    content: "-";
    position: absolute;
    left: 0;
    color: #D12329;
    font-weight: 700;
}


/* ── Accordion / expand ────────────────────────────────────── */

.learndash-wrapper .ld-accordion-heading,
.learndash-wrapper .ld-expand-button {
    background: #ffffff;
    border: 1px solid #EBEBEB;
    border-radius: 4px;
    padding: 14px 20px;
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    font-size: 15px;
    color: #1A1A1A;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: background 0.15s;
    margin-bottom: 4px;
}

.learndash-wrapper .ld-accordion-heading:hover,
.learndash-wrapper .ld-expand-button:hover {
    background: #FBF0F0;
    color: #D12329;
}


/* ── Quiz ──────────────────────────────────────────────────── */

.learndash-wrapper #learndash_quiz_wrap .wpProQuiz_header h2,
.learndash-wrapper .wpProQuiz_content h2 {
    font-family: "Raleway", sans-serif;
    font-weight: 800;
    font-size: 22px;
    color: #003258;
    margin-bottom: 16px;
}

.learndash-wrapper .wpProQuiz_question_text {
    font-size: 15px;
    font-weight: 600;
    color: #1A1A1A;
    margin-bottom: 12px;
    line-height: 1.6;
}

.learndash-wrapper .wpProQuiz_questionList li {
    padding: 10px 14px;
    border: 1px solid #EBEBEB;
    border-radius: 4px;
    margin-bottom: 8px;
    cursor: pointer;
    transition: border-color 0.15s, background 0.15s;
    font-size: 14px;
    line-height: 1.5;
}

.learndash-wrapper .wpProQuiz_questionList li:hover {
    border-color: #D12329;
    background: #FBF0F0;
}

.learndash-wrapper .wpProQuiz_questionList li.wpProQuiz_answerCorrect {
    border-color: #1a7a3a;
    background: #EBF7EE;
    color: #1a7a3a;
}

.learndash-wrapper .wpProQuiz_questionList li.wpProQuiz_answerIncorrect {
    border-color: #D12329;
    background: #FBF0F0;
    color: #D12329;
}

.learndash-wrapper .wpProQuiz_results h4 {
    font-family: "Raleway", sans-serif;
    font-weight: 800;
    font-size: 20px;
    color: #003258;
}

.learndash-wrapper .wpProQuiz_results .wpProQuiz_resultsList li {
    font-size: 14px;
    padding: 6px 0;
    border-bottom: 1px solid #F0F0F0;
}

.learndash-wrapper .wpProQuiz_results .wpProQuiz_certificate a {
    background: #D12329;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}


/* ── Course grid ───────────────────────────────────────────── */

.learndash-course-grid .ld-course-list-item,
.ld-course-list-item {
    border: 1px solid #EBEBEB;
    border-top: 4px solid #D12329;
    border-radius: 0 0 8px 8px;
    overflow: hidden;
    background: #ffffff;
    transition: transform 0.2s, box-shadow 0.2s;
}

.learndash-course-grid .ld-course-list-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 28px rgba(0,50,88,0.12);
}

.ld-course-list-item .ld-course-list-item-preview-title {
    font-family: "Raleway", sans-serif;
    font-weight: 800;
    font-size: 17px;
    color: #1A1A1A;
    line-height: 1.2;
}

.ld-course-list-item .ld-course-list-item-description {
    font-size: 13px;
    color: #A0A2A4;
    line-height: 1.65;
}

.ld-course-list-item .ld-course-list-item-cat {
    font-family: "Raleway", sans-serif;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #D12329;
}


/* ── Breadcrumbs ───────────────────────────────────────────── */

.learndash-wrapper .ld-breadcrumbs,
.ld-breadcrumbs {
    font-size: 12px;
    color: #A0A2A4;
    padding: 10px 0;
    margin-bottom: 16px;
    font-family: "Raleway", sans-serif;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.learndash-wrapper .ld-breadcrumbs a,
.ld-breadcrumbs a {
    color: #003258;
    text-decoration: none;
    transition: color 0.15s;
}

.learndash-wrapper .ld-breadcrumbs a:hover {
    color: #D12329;
}

.learndash-wrapper .ld-breadcrumbs .ld-breadcrumb-sep {
    color: #A0A2A4;
    margin: 0 6px;
}


/* ── Certificate ───────────────────────────────────────────── */

.learndash-certificate-link a,
.ld-certificate-link a {
    background: #D12329;
    color: white !important;
    font-family: "Raleway", sans-serif;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 12px 24px;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    transition: background 0.2s;
    margin-top: 16px;
}

.learndash-certificate-link a:hover {
    background: #A81B20;
}


/* ── Focus states ──────────────────────────────────────────── */

.learndash-wrapper a:focus,
.learndash-wrapper button:focus,
.learndash-wrapper input:focus,
.learndash-wrapper .ld-button:focus {
    outline: 3px solid #D12329;
    outline-offset: 2px;
}


/* ── Responsive ────────────────────────────────────────────── */

@media (max-width: 768px) {

    .sfwd-courses .entry-title,
    body.sfwd-courses h1.page-title {
        font-size: 22px;
    }

    .learndash-wrapper .ld-lesson-content,
    .learndash-wrapper .ld-topic-content {
        padding: 20px 16px;
    }

    .learndash-wrapper .ld-button,
    .learndash-wrapper input[type="submit"] {
        width: 100% !important;
        justify-content: center !important;
    }

    .ld-course-navigation {
        margin-bottom: 24px;
    }
}
