/*
 * CC Guardian University — Single Course Page Styles
 */

.ccgu-single-course .ccgu-course {
    min-height: 100vh;
    background: var(--ccgu-bg, #111110);
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

.ccgu-single-course .ccgu-main {
    width: 100%;
    max-width: 100%;
}

/* =========================================================
   HERO
   ========================================================= */

.ccgu-course__hero {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-color: #181816;
    display: flex;
    align-items: flex-end;
}

.ccgu-course__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(17,17,16,0.96) 40%, rgba(17,17,16,0.6) 80%, transparent 100%);
}

.ccgu-course__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 40px 40px;
    max-width: 640px;
}

.ccgu-course__eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a30b22;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ccgu-course__title {
    font-size: 32px;
    font-weight: 500;
    color: #f5f2ea;
    margin: 0 0 12px;
    line-height: 1.2;
    font-family: Georgia, 'Times New Roman', serif;
}

.ccgu-course__meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ccgu-course__meta-complete {
    color: #2d5a8a;
}

/* Buttons */
.ccgu-course__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    margin-right: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: none;
}

.ccgu-course__btn--primary {
    background: #22476f;
    color: #fff;
}

.ccgu-course__btn--primary:hover {
    background: #2d5a8a;
    color: #fff;
}

.ccgu-course__btn--crimson {
    background: #a30b22;
    color: #fff;
}

.ccgu-course__btn--crimson:hover {
    background: #c40e28;
    color: #fff;
}

.ccgu-course__btn--ghost {
    background: transparent;
    color: #aaa;
    border: 0.5px solid #555;
}

.ccgu-course__btn--ghost:hover {
    color: #f0ede4;
    border-color: #888;
}

/* =========================================================
   PROGRESS BAR (our own in hero)
   ========================================================= */

.ccgu-course__progress-wrap {
    padding: 12px 40px;
    background: #181816;
    border-bottom: 0.5px solid #2a2926;
}

.ccgu-course__progress-bar {
    height: 3px;
    background: #2a2926;
    border-radius: 2px;
    margin-bottom: 6px;
}

.ccgu-course__progress-fill {
    height: 100%;
    background: #22476f;
    border-radius: 2px;
    transition: width 0.3s;
}

.ccgu-course__progress-label {
    font-size: 11px;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* =========================================================
   BODY
   ========================================================= */

.ccgu-course__body {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 40px 60px;
}

/* =========================================================
   DESCRIPTION
   ========================================================= */

.ccgu-course__description {
    font-size: 14px;
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 0.5px solid #2a2926;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ccgu-course__description p {
    margin-bottom: 1em;
}

/* =========================================================
   SENSEI CURRICULUM OUTPUT — exact class names from inspector
   ========================================================= */

/* Course title rendered by Sensei inside curriculum */
.ccgu-single-course .ccgu-course__curriculum h1,
.ccgu-single-course .ccgu-course__curriculum h2,
.ccgu-single-course .ccgu-course__curriculum .course-title {
    color: #f0ede4 !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    font-size: 24px !important;
    margin-bottom: 12px !important;
}

/* Progress statement text: "Currently completed 8 lessons of 30 in total" */
.ccgu-single-course .progress.statement,
.ccgu-single-course .course-completion-rate,
.ccgu-single-course .progress.statement.course-completion-rate {
    color: #aaa !important;
    font-size: 12px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    background: transparent !important;
    margin: 8px 0 !important;
}

/* Sensei progress bar: .meter.orange */
.ccgu-single-course .meter {
    background: #2a2926 !important;
    border-radius: 4px !important;
    height: 6px !important;
    line-height: 6px !important;
    font-size: 0 !important;
    margin: 8px 0 16px !important;
    overflow: hidden !important;
}

.ccgu-single-course .meter.orange {
    background: #2a2926 !important;
}

/* Progress fill bar */
.ccgu-single-course .meter .value,
.ccgu-single-course .meter span.value {
    background: #22476f !important;
    display: block !important;
    height: 100% !important;
    border-radius: 4px !important;
    font-size: 0 !important;
    color: transparent !important;
}

/* Enrollment status section */
.ccgu-single-course .course-meta.course-enrolment,
.ccgu-single-course section.course-meta {
    background: transparent !important;
    border: none !important;
    padding: 0 0 16px !important;
    margin: 0 !important;
}

/* "In Progress" / "Not Enrolled" status button */
.ccgu-single-course .course-meta .course-action-label,
.ccgu-single-course .course-meta a.button,
.ccgu-single-course .course-meta .button,
.ccgu-single-course .course-meta input[type="submit"],
.ccgu-single-course .course-enrolment .button {
    background: #1e1d1b !important;
    color: #aaa !important;
    border: 0.5px solid #2a2926 !important;
    border-radius: 4px !important;
    font-size: 11px !important;
    padding: 5px 12px !important;
    text-decoration: none !important;
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
}

/* Enroll / Take Course button in enrolment section */
.ccgu-single-course .course-enrolment a.button.enrol-button,
.ccgu-single-course .course-enrolment input.enrol-button,
.ccgu-single-course .course-enrolment a.button.take-course {
    background: #22476f !important;
    color: #fff !important;
    border-color: #22476f !important;
}

/* "Completed" status button — override Sensei's green with navy */
.ccgu-single-course .course-enrolment a.button.complete,
.ccgu-single-course .course-enrolment .complete-course-button,
.ccgu-single-course .course-meta a.button[class*="complete"],
.ccgu-single-course .course-meta .button[class*="complete"] {
    background: #22476f !important;
    color: #fff !important;
    border-color: #22476f !important;
}

/* Hide View Results button — dead-ends and not useful in GU context */
.ccgu-single-course .course-enrolment a.button.results,
.ccgu-single-course .course-enrolment a[href*="course_results"],
.ccgu-single-course .course-enrolment a[href*="results"],
.ccgu-single-course .course-meta a.view-results,
.ccgu-single-course .course-meta .view-results {
    display: none !important;
}

/* Lessons header row */
.ccgu-single-course .ccgu-course__curriculum > header,
.ccgu-single-course header.course-lessons-title {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    color: #f0ede4 !important;
    font-size: 14px !important;
    font-weight: 500 !important;
    padding: 0 0 12px !important;
    border-bottom: 0.5px solid #2a2926 !important;
    margin-bottom: 0 !important;
    background: transparent !important;
}

/* Module title header */
.ccgu-single-course header.modules-title,
.ccgu-single-course .modules-title {
    background: #1e1d1b !important;
    border: 0.5px solid #2a2926 !important;
    border-radius: 6px 6px 0 0 !important;
    padding: 12px 16px !important;
    color: #f0ede4 !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-top: 16px !important;
}

.ccgu-single-course .modules-title .status {
    background: #22476f !important;
    color: #fff !important;
    font-size: 9px !important;
    padding: 2px 8px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
}

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

@media ( max-width: 900px ) {
    .ccgu-course__hero-content {
        padding: 24px 24px 28px;
    }

    .ccgu-course__title {
        font-size: 24px;
    }

    .ccgu-course__progress-wrap,
    .ccgu-course__body {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media ( max-width: 600px ) {
    .ccgu-course__hero {
        min-height: 260px;
        align-items: flex-end;
    }

    .ccgu-course__title {
        font-size: 20px;
    }

    .ccgu-course__btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}


.ccgu-single-course .ccgu-course {
    min-height: 100vh;
    background: var(--ccgu-bg, #111110);
}

/* =========================================================
   HERO
   ========================================================= */

.ccgu-course__hero {
    position: relative;
    min-height: 320px;
    background-size: cover;
    background-position: center;
    background-color: #181816;
    display: flex;
    align-items: flex-end;
}

.ccgu-course__hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right, rgba(17,17,16,0.96) 40%, rgba(17,17,16,0.6) 80%, transparent 100%);
}

.ccgu-course__hero-content {
    position: relative;
    z-index: 2;
    padding: 40px 40px 40px;
    max-width: 640px;
}

.ccgu-course__eyebrow {
    font-size: 10px;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #a30b22;
    margin-bottom: 10px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ccgu-course__title {
    font-size: 32px;
    font-weight: 500;
    color: #f5f2ea;
    margin: 0 0 12px;
    line-height: 1.2;
    font-family: Georgia, 'Times New Roman', serif;
}

.ccgu-course__meta {
    font-size: 12px;
    color: #888;
    margin-bottom: 20px;
    display: flex;
    gap: 12px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ccgu-course__meta-complete {
    color: #2d5a8a;
}

/* Buttons */
.ccgu-course__btn {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    padding: 10px 20px;
    border-radius: 4px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: background 0.15s, border-color 0.15s;
    margin-right: 8px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    border: none;
}

.ccgu-course__btn--primary {
    background: #22476f;
    color: #fff;
}

.ccgu-course__btn--primary:hover {
    background: #2d5a8a;
    color: #fff;
}

.ccgu-course__btn--crimson {
    background: #a30b22;
    color: #fff;
}

.ccgu-course__btn--crimson:hover {
    background: #c40e28;
    color: #fff;
}

.ccgu-course__btn--ghost {
    background: transparent;
    color: #aaa;
    border: 0.5px solid #555;
}

.ccgu-course__btn--ghost:hover {
    color: #f0ede4;
    border-color: #888;
}

/* =========================================================
   PROGRESS BAR
   ========================================================= */

.ccgu-course__progress-wrap {
    padding: 0 40px;
    background: #181816;
    border-bottom: 0.5px solid #2a2926;
    padding-top: 12px;
    padding-bottom: 12px;
}

.ccgu-course__progress-bar {
    height: 3px;
    background: #2a2926;
    border-radius: 2px;
    margin-bottom: 6px;
}

.ccgu-course__progress-fill {
    height: 100%;
    background: #22476f;
    border-radius: 2px;
    transition: width 0.3s;
}

.ccgu-course__progress-label {
    font-size: 11px;
    color: #666;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

/* =========================================================
   BODY
   ========================================================= */

.ccgu-course__body {
    max-width: 900px;
    margin: 0 auto;
    padding: 32px 40px 60px;
}

/* =========================================================
   DESCRIPTION
   ========================================================= */

.ccgu-course__description {
    font-size: 14px;
    color: #aaa;
    line-height: 1.7;
    margin-bottom: 32px;
    padding-bottom: 32px;
    border-bottom: 0.5px solid #2a2926;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.ccgu-course__description p {
    margin-bottom: 1em;
}

/* =========================================================
   SENSEI MODULE VIEW — exact classes from inspector
   ========================================================= */

/* "Modules" section heading */
.ccgu-single-course .ccgu-course__curriculum h2:first-of-type,
.ccgu-single-course .ccgu-course__curriculum > h2,
.ccgu-single-course .ccgu-course__curriculum > h3 {
    color: #f0ede4 !important;
    font-size: 12px !important;
    font-weight: 500 !important;
    letter-spacing: 0.1em !important;
    text-transform: uppercase !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    margin: 0 0 16px !important;
    padding-bottom: 8px !important;
    border-bottom: 0.5px solid #2a2926 !important;
}

/* Module container */
.ccgu-single-course .ccgu-course__curriculum .module,
.ccgu-single-course .ccgu-course__curriculum .course-section {
    margin-bottom: 20px !important;
    background: transparent !important;
}

/* Module name heading */
.ccgu-single-course .ccgu-course__curriculum .module h2,
.ccgu-single-course .ccgu-course__curriculum .module h3 {
    color: #f0ede4 !important;
    font-size: 17px !important;
    font-weight: 500 !important;
    font-family: Georgia, 'Times New Roman', serif !important;
    margin: 0 0 10px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
}

/* "Completed" / module status badge - override green with navy */
.ccgu-single-course .ccgu-course__curriculum .module .status,
.ccgu-single-course .ccgu-course__curriculum .module a.button,
.ccgu-single-course .ccgu-course__curriculum .module .button.module-status,
.ccgu-single-course .ccgu-course__curriculum .module a[class*="status"] {
    background: #22476f !important;
    color: #fff !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    padding: 3px 10px !important;
    border-radius: 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.05em !important;
    white-space: nowrap !important;
    flex-shrink: 0 !important;
    border: none !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
    text-decoration: none !important;
}

/* "Lessons" subheading within a module */
.ccgu-single-course .ccgu-course__curriculum .module h4,
.ccgu-single-course .ccgu-course__curriculum .module .lessons-title,
.ccgu-single-course .ccgu-course__curriculum .module > p:first-of-type {
    color: #666 !important;
    font-size: 10px !important;
    font-weight: 500 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.1em !important;
    margin: 8px 0 4px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
}

/* Lesson list within a module */
.ccgu-single-course .ccgu-course__curriculum .module ul {
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    border: 0.5px solid #2a2926 !important;
    border-radius: 4px !important;
    overflow: hidden !important;
}

/* Individual lesson rows */
.ccgu-single-course .ccgu-course__curriculum .module li {
    background: #1e1d1b !important;
    border-bottom: 0.5px solid #2a2926 !important;
    padding: 0 !important;
    margin: 0 !important;
    list-style: none !important;
}

.ccgu-single-course .ccgu-course__curriculum .module li:last-child {
    border-bottom: none !important;
}

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

@media ( max-width: 900px ) {
    .ccgu-course__hero-content {
        padding: 24px 24px 28px;
    }

    .ccgu-course__title {
        font-size: 24px;
    }

    .ccgu-course__progress-wrap,
    .ccgu-course__body {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media ( max-width: 600px ) {
    .ccgu-course__hero {
        min-height: 260px;
        align-items: flex-end;
    }

    .ccgu-course__title {
        font-size: 20px;
    }

    .ccgu-course__btn {
        padding: 8px 14px;
        font-size: 12px;
    }
}
