/*
Theme Name:   Upstudy Child
Theme URI:    http://thepixelcurve.com/wp/upstudy
Description:  Premium Education WordPress LMS theme.
Author:       Devthrow
Author URI:   https://themeforest.net/user/devthrow
Template:     upstudy
Version:      1.0.0
License: GNU General Public License v2 or later
License URI: LICENSE
Tags: two-columns, custom-header, custom-logo, blog, theme-options
Text Domain:  upstudy-child

* If you are not familiar with Child Themes, you can read about it here:
* http://codex.wordpress.org/Child_Themes
*/
.single-sfwd-lessons .csd-lesson-sidebar-image-wrap {
    margin: 0 0 24px;
    border-radius: 18px;
    overflow: hidden;
    background: #fff;
}

.single-sfwd-lessons .csd-lesson-sidebar-image {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 18px;
}

/* Pull the image closer to the content list */
.single-sfwd-lessons .csd-lesson-sidebar-image-wrap {
    margin: 0 0 12px 0 !important;
    border-radius: 22px;
    overflow: hidden;
    background: transparent;
}

/* Make image/card use full sidebar width */
.single-sfwd-lessons .csd-lesson-sidebar-image,
.single-sfwd-lessons .csd-lesson-sidebar-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 22px;
}

/* Tighten the first element after the image */
.single-sfwd-lessons .csd-lesson-sidebar-image-wrap + * {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

/* Tighten the Course Content heading specifically */
.single-sfwd-lessons .csd-lesson-sidebar-image-wrap + h1,
.single-sfwd-lessons .csd-lesson-sidebar-image-wrap + h2,
.single-sfwd-lessons .csd-lesson-sidebar-image-wrap + h3,
.single-sfwd-lessons .csd-lesson-sidebar-image-wrap + h4 {
    margin-top: 8px !important;
    margin-bottom: 16px !important;
    line-height: 1.1;
}

/* If the sidebar column itself has too much inner padding, reduce it */
.single-sfwd-lessons .upstudy-course-details-sidebar,
.single-sfwd-lessons .upstudy-course-sidebar,
.single-sfwd-lessons .upstudy-course-content-sidebar,
.single-sfwd-lessons .course-sidebar,
.single-sfwd-lessons .widget-area {
    padding-top: 0 !important;
}

/* =========================================================
   CREATING SWEET DREAMS / MATERNAL INSTINCTS
   UPSTUDY + LEARNDASH MASTER OVERRIDE
   Cleaned + consolidated
   ========================================================= */

/* =========================
   TOKENS
   ========================= */

:root {
    --csd-navy: #0c2d5a;
    --csd-navy-soft: #20324d;
    --csd-gold: #d4a446;
    --csd-gold-dark: #c8932b;
    --csd-ink: #233142;
    --csd-text: #425466;
    --csd-muted: #6b7280;
    --csd-bg: #f6f7f9;
    --csd-bg-soft: #f8f9fb;
    --csd-card: #ffffff;
    --csd-line: #e8ecf2;
    --csd-rail: #3f5b63;
    --csd-radius-xs: 12px;
    --csd-radius-sm: 16px;
    --csd-radius-md: 20px;
    --csd-radius-lg: 24px;
    --csd-radius-xl: 28px;
    --csd-pill: 999px;
    --csd-shadow-soft: 0 8px 24px rgba(16, 24, 40, 0.05);
    --csd-shadow: 0 14px 40px rgba(16, 24, 40, 0.08);
    --csd-shadow-strong: 0 18px 50px rgba(16, 24, 40, 0.12);
    --csd-transition: 0.18s ease;
}

/* =========================
   GLOBAL BASE
   ========================= */

body.single-sfwd-courses,
body.single-sfwd-lessons {
    background: var(--csd-bg);
}

.single-sfwd-courses .site-main,
.single-sfwd-courses .content-area,
.single-sfwd-lessons .site-main,
.single-sfwd-lessons .content-area {
    background: transparent;
}

.single-sfwd-courses a,
.single-sfwd-lessons a {
    transition: color var(--csd-transition), background-color var(--csd-transition), border-color var(--csd-transition), box-shadow var(--csd-transition), transform var(--csd-transition);
}

/* =========================
   SHARED BUTTONS
   ========================= */

.single-sfwd-courses .theme-btn,
.single-sfwd-courses .upstudy-btn,
.single-sfwd-courses .ld-button,
.single-sfwd-courses .btn,
.single-sfwd-lessons .ld-button,
.single-sfwd-lessons .learndash_mark_complete_button,
.single-sfwd-lessons .ld-content-actions .ld-content-action .ld-button,
.single-sfwd-lessons input[type="submit"],
.single-sfwd-lessons .submit,
.single-sfwd-lessons .comment-form input[type="submit"] {
    background: linear-gradient(180deg, #ddb15c 0%, #c8932b 100%);
    border: 0;
    color: #fff;
    border-radius: var(--csd-pill);
    font-weight: 700;
    box-shadow: 0 10px 24px rgba(200, 147, 43, 0.22);
}

.single-sfwd-courses .theme-btn:hover,
.single-sfwd-courses .upstudy-btn:hover,
.single-sfwd-courses .ld-button:hover,
.single-sfwd-courses .btn:hover,
.single-sfwd-lessons .ld-button:hover,
.single-sfwd-lessons .learndash_mark_complete_button:hover,
.single-sfwd-lessons .ld-content-actions .ld-content-action .ld-button:hover,
.single-sfwd-lessons input[type="submit"]:hover,
.single-sfwd-lessons .submit:hover,
.single-sfwd-lessons .comment-form input[type="submit"]:hover {
    transform: translateY(-1px);
    filter: brightness(1.02);
}

/* =========================================================
   COURSE PAGE
   ========================================================= */

.single-sfwd-courses {
    color: var(--csd-text);
}

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

.single-sfwd-courses .upstudy-page-title-area.upstudy-default-breadcrumb {
    position: relative;
    overflow: hidden;
    display: flex;
    align-items: center;
    min-height: 360px;
    padding-top: 42px;
    padding-bottom: 56px;
    background-color: #eef3f8;
    background-position: center center;
    background-size: cover;
    border-bottom: 1px solid rgba(12, 45, 90, 0.06);
}

.single-sfwd-courses .upstudy-page-title-area.upstudy-default-breadcrumb::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        rgba(244, 247, 251, 0.95) 0%,
        rgba(244, 247, 251, 0.90) 30%,
        rgba(244, 247, 251, 0.72) 58%,
        rgba(244, 247, 251, 0.56) 100%
    );
    z-index: 0;
}

.single-sfwd-courses .upstudy-page-title-area.upstudy-default-breadcrumb::after {
    display: none !important;
    content: none !important;
}

.single-sfwd-courses .upstudy-page-title-area .upstudy-container {
    position: relative;
    z-index: 2;
}

.single-sfwd-courses .upstudy-page-title-area .shape-dot-wrapper {
    opacity: 0.35;
    transform: scale(0.9);
}

.single-sfwd-courses .upstudy-breadcrumb {
    margin-bottom: 14px;
}

.single-sfwd-courses .upstudy-breadcrumb .breadcrumb li,
.single-sfwd-courses .upstudy-breadcrumb .breadcrumb li a {
    font-size: 14px;
    color: rgba(12, 45, 90, 0.75);
}

.single-sfwd-courses .upstudy-course-top-info {
    max-width: 620px;
    min-height: auto;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.single-sfwd-courses .upstudy-page-title .page-title {
    font-size: clamp(42px, 4.8vw, 64px);
    line-height: 0.98;
    letter-spacing: -0.04em;
    color: var(--csd-navy);
    margin-bottom: 18px;
}

.single-sfwd-courses .course-short-text {
    max-width: 520px;
}

.single-sfwd-courses .course-short-text p {
    margin: 0;
    font-size: 18px;
    line-height: 1.7;
    color: rgba(12, 45, 90, 0.72);
}

.single-sfwd-courses .upstudy-page-title-area + .site-main,
.single-sfwd-courses .upstudy-page-title-area + main {
    margin-top: 34px;
}

/* =========================
   COURSE PROGRESS
   ========================= */

.single-sfwd-courses .ld-progress,
.single-sfwd-courses .learndash-wrapper .ld-progress {
    background: var(--csd-card);
    border-radius: var(--csd-pill);
    padding: 12px 16px;
    box-shadow: var(--csd-shadow-soft);
    margin-bottom: 20px;
}

.single-sfwd-courses .ld-progress .ld-progress-bar {
    height: 8px;
    background: #e9edf3;
    border-radius: var(--csd-pill);
}

.single-sfwd-courses .ld-progress .ld-progress-bar-percentage {
    background: linear-gradient(90deg, var(--csd-gold-dark) 0%, #dfb45a 100%);
    border-radius: var(--csd-pill);
}

.single-sfwd-courses .ld-progress-stats,
.single-sfwd-courses .ld-progress-percentage {
    font-size: 13px;
    color: rgba(12, 45, 90, 0.72);
    font-weight: 600;
}

/* =========================
   COURSE MAIN CONTENT CARD
   ========================= */

.single-sfwd-courses .entry-content > .learndash-wrapper,
.single-sfwd-courses .upstudy-course-top-content,
.single-sfwd-courses .course-curriculum,
.single-sfwd-courses .ld-item-list {
    background: var(--csd-card);
    border-radius: var(--csd-lg);
    box-shadow: var(--csd-shadow);
    padding: 26px 26px 18px;
}

.single-sfwd-courses .entry-content h3:first-of-type,
.single-sfwd-courses .ld-section-heading h2,
.single-sfwd-courses .course-content-title,
.single-sfwd-courses h3.ld-item-list-title {
    font-size: 24px;
    line-height: 1.15;
    margin-bottom: 20px;
    color: var(--csd-navy);
}

.single-sfwd-courses .ld-item-list .ld-item-list-item,
.single-sfwd-courses .course-content-list li,
.single-sfwd-courses .learndash-wrapper .ld-item-list-item {
    border: 1px solid #eceff3;
    background: var(--csd-bg-soft);
    border-radius: var(--csd-sm);
    padding: 14px 18px;
    margin-bottom: 12px;
    box-shadow: none;
    transition: transform var(--csd-transition), box-shadow var(--csd-transition), border-color var(--csd-transition), background-color var(--csd-transition);
}

.single-sfwd-courses .ld-item-list .ld-item-list-item:hover,
.single-sfwd-courses .course-content-list li:hover,
.single-sfwd-courses .learndash-wrapper .ld-item-list-item:hover {
    background: #fff;
    border-color: rgba(212, 164, 70, 0.32);
    box-shadow: var(--csd-shadow-soft);
    transform: translateY(-1px);
}

.single-sfwd-courses .ld-item-list-item .ld-item-name,
.single-sfwd-courses .ld-item-title,
.single-sfwd-courses .course-content-list a {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--csd-navy-soft);
}

.single-sfwd-courses .ld-status-complete,
.single-sfwd-courses .ld-item-list-item-preview .ld-status-icon,
.single-sfwd-courses .course-content-list .complete {
    color: var(--csd-gold);
}

/* =========================
   COURSE SIDEBAR
   ========================= */

.single-sfwd-courses .upstudy-course-sidebar,
.single-sfwd-courses .upstudy-course-details-sidebar,
.single-sfwd-courses .course-sidebar,
.single-sfwd-courses .widget-area .widget,
.single-sfwd-courses .upstudy-course-info-wrap,
.single-sfwd-courses .upstudy-dashboard-widget,
.single-sfwd-courses .student-dashboard-widget,
.single-sfwd-courses .widget.upstudy-course-widget {
    background: var(--csd-card);
    border-radius: var(--csd-lg);
    box-shadow: var(--csd-shadow);
    overflow: hidden;
}

.single-sfwd-courses .upstudy-course-sidebar img,
.single-sfwd-courses .upstudy-course-details-sidebar img,
.single-sfwd-courses .upstudy-course-info-wrap img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 10;
    object-fit: cover;
}

.single-sfwd-courses .upstudy-course-sidebar .course-info,
.single-sfwd-courses .upstudy-course-details-sidebar .course-info,
.single-sfwd-courses .upstudy-course-info-wrap .course-info {
    padding: 22px 22px 18px;
}

.single-sfwd-courses .upstudy-course-sidebar h3,
.single-sfwd-courses .upstudy-course-details-sidebar h3,
.single-sfwd-courses .upstudy-course-info-wrap h3 {
    font-size: 18px;
    line-height: 1.2;
    color: var(--csd-navy);
    margin-bottom: 14px;
}

.single-sfwd-courses .upstudy-course-sidebar ul li,
.single-sfwd-courses .upstudy-course-details-sidebar ul li,
.single-sfwd-courses .upstudy-course-info-wrap ul li {
    padding: 13px 0;
    border-top: 1px solid #edf0f4;
    color: var(--csd-muted);
}

/* =========================================================
   LESSON PAGE
   ========================================================= */

.single-sfwd-lessons {
    color: var(--csd-text);
}

/* =========================
   LESSON TOP / BREADCRUMB
   ========================= */

.single-sfwd-lessons .upstudy-page-title-area,
.single-sfwd-lessons .upstudy-default-breadcrumb {
    background: transparent;
}

.single-sfwd-lessons .upstudy-breadcrumb,
.single-sfwd-lessons .upstudy-breadcrumb-wrapper {
    margin-bottom: 12px;
}

.single-sfwd-lessons .upstudy-breadcrumb .breadcrumb li,
.single-sfwd-lessons .upstudy-breadcrumb .breadcrumb li a {
    color: rgba(12, 45, 90, 0.72);
    font-size: 13px;
}

/* =========================
   LESSON MEDIA STAGE
   ========================= */

.single-sfwd-lessons iframe,
.single-sfwd-lessons video,
.single-sfwd-lessons .wp-video,
.single-sfwd-lessons .fluid-width-video-wrapper,
.single-sfwd-lessons .mejs-container,
.single-sfwd-lessons .learndash-wrapper .ld-video,
.single-sfwd-lessons .entry-content iframe {
    border-radius: var(--csd-lg);
    overflow: hidden;
}

.single-sfwd-lessons .entry-content > iframe:first-child,
.single-sfwd-lessons .entry-content p iframe:first-child,
.single-sfwd-lessons .entry-content .wp-block-embed,
.single-sfwd-lessons .entry-content .wp-block-video,
.single-sfwd-lessons .entry-content .fluid-width-video-wrapper,
.single-sfwd-lessons .entry-content .ld-video {
    display: block;
    width: 100%;
    background: #fff;
    border-radius: var(--csd-lg);
    box-shadow: var(--csd-shadow-strong);
    overflow: hidden;
    margin-top: 8px;
    margin-bottom: 24px;
}

/* =========================
   LESSON CONTENT
   ========================= */

.single-sfwd-lessons .entry-content {
    color: var(--csd-text);
    margin-top: 12px;
    font-size: 17px;
    line-height: 1.75;
}

.single-sfwd-lessons .entry-content > *:not(.wp-block-embed):not(.wp-block-video):not(.fluid-width-video-wrapper):not(.ld-video):not(.learndash-wrapper) {
    max-width: 100%;
}

.single-sfwd-lessons .entry-content > h1,
.single-sfwd-lessons .entry-content > h2,
.single-sfwd-lessons .entry-content > h3,
.single-sfwd-lessons .entry-content > h4,
.single-sfwd-lessons .entry-content > p,
.single-sfwd-lessons .entry-content > ul,
.single-sfwd-lessons .entry-content > ol,
.single-sfwd-lessons .entry-content > div:not(.learndash-wrapper):not(.wp-block-embed):not(.wp-block-video):not(.fluid-width-video-wrapper):not(.ld-video) {
    background: var(--csd-card);
    box-shadow: var(--csd-shadow-soft);
    padding-left: 28px;
    padding-right: 28px;
}

.single-sfwd-lessons .entry-content > h1:first-of-type,
.single-sfwd-lessons .entry-content > h2:first-of-type,
.single-sfwd-lessons .entry-content > h3:first-of-type {
    padding-top: 28px;
    padding-bottom: 6px;
    margin-bottom: 0;
    font-size: clamp(34px, 4vw, 48px);
    line-height: 1.02;
    letter-spacing: -0.03em;
    color: var(--csd-navy);
    border-top-left-radius: var(--csd-lg);
    border-top-right-radius: var(--csd-lg);
}

.single-sfwd-lessons .entry-content > p:first-of-type {
    border-top-left-radius: var(--csd-lg);
    border-top-right-radius: var(--csd-lg);
}

.single-sfwd-lessons .entry-content > p {
    margin: 0;
    padding-top: 0;
    padding-bottom: 16px;
    font-size: 18px;
    line-height: 1.75;
    color: var(--csd-text);
    max-width: 760px;
}

.single-sfwd-lessons .entry-content > p:last-of-type {
    padding-bottom: 28px;
}

.single-sfwd-lessons .entry-content > p:last-child,
.single-sfwd-lessons .entry-content > ul:last-child,
.single-sfwd-lessons .entry-content > ol:last-child {
    border-bottom-left-radius: var(--csd-lg);
    border-bottom-right-radius: var(--csd-lg);
}

.single-sfwd-lessons .entry-content > p + p,
.single-sfwd-lessons .entry-content > h2 + p,
.single-sfwd-lessons .entry-content > h3 + p,
.single-sfwd-lessons .entry-content > p + h2,
.single-sfwd-lessons .entry-content > p + h3 {
    border-radius: 0;
    box-shadow: none;
}

.single-sfwd-lessons .entry-content h2,
.single-sfwd-lessons .entry-content h3,
.single-sfwd-lessons .entry-content h4 {
    color: var(--csd-navy);
    line-height: 1.2;
}

.single-sfwd-lessons .entry-content strong {
    color: var(--csd-ink);
}

.single-sfwd-lessons .entry-content ul,
.single-sfwd-lessons .entry-content ol {
    margin: 0;
    padding: 0 28px 26px 48px;
    background: var(--csd-card);
    box-shadow: var(--csd-shadow-soft);
    border-radius: 0 0 var(--csd-lg) var(--csd-lg);
}

.single-sfwd-lessons .entry-content li {
    margin-bottom: 10px;
    color: var(--csd-text);
}

/* =========================
   LESSON SIDEBAR / RAIL
   ========================= */

.single-sfwd-lessons .upstudy-course-sidebar,
.single-sfwd-lessons .upstudy-course-details-sidebar,
.single-sfwd-lessons .course-sidebar,
.single-sfwd-lessons .widget-area,
.single-sfwd-lessons .csd-lesson-sidebar-panel {
    background: transparent;
}

@media (min-width: 992px) {
    .single-sfwd-lessons .upstudy-course-sidebar,
    .single-sfwd-lessons .upstudy-course-details-sidebar,
    .single-sfwd-lessons .course-sidebar {
        position: sticky;
        top: 110px;
    }
}

.single-sfwd-lessons .csd-lesson-sidebar-image-wrap {
    margin: 0 0 16px !important;
    border-radius: var(--csd-lg);
    overflow: hidden;
    box-shadow: var(--csd-shadow);
    background: #fff;
}

.single-sfwd-lessons .csd-lesson-sidebar-image,
.single-sfwd-lessons .csd-lesson-sidebar-image-wrap img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: var(--csd-lg);
}

.single-sfwd-lessons .ld-progress,
.single-sfwd-lessons .learndash-wrapper .ld-progress {
    background: #fff;
    border-radius: var(--csd-pill);
    padding: 12px 16px;
    box-shadow: var(--csd-shadow-soft);
    margin: 12px 0 18px 0;
}

.single-sfwd-lessons .ld-progress .ld-progress-bar {
    height: 8px;
    background: #e9edf3;
    border-radius: var(--csd-pill);
}

.single-sfwd-lessons .ld-progress .ld-progress-bar-percentage {
    background: linear-gradient(90deg, var(--csd-gold-dark) 0%, #dfb45a 100%);
    border-radius: var(--csd-pill);
}

.single-sfwd-lessons .ld-progress-stats,
.single-sfwd-lessons .ld-progress-percentage {
    font-size: 13px;
    font-weight: 600;
    color: rgba(12, 45, 90, 0.7);
}

.single-sfwd-lessons .ld-item-list,
.single-sfwd-lessons .upstudy-course-info-wrap,
.single-sfwd-lessons .widget,
.single-sfwd-lessons .course-content-sidebar-box {
    background: #fff;
    border-radius: var(--csd-lg);
    box-shadow: var(--csd-shadow);
    overflow: hidden;
}

.single-sfwd-lessons .ld-item-list .ld-section-heading,
.single-sfwd-lessons .course-content-title,
.single-sfwd-lessons .widget-title {
    padding: 24px 24px 8px;
    margin: 0;
}

.single-sfwd-lessons .ld-item-list .ld-section-heading h2,
.single-sfwd-lessons .course-content-title,
.single-sfwd-lessons .widget-title {
    color: var(--csd-navy);
    font-size: 18px;
    line-height: 1.15;
    margin: 0;
}

.single-sfwd-lessons .ld-item-list .ld-item-list-item,
.single-sfwd-lessons .learndash-wrapper .ld-item-list-item,
.single-sfwd-lessons .course-content-list li {
    background: transparent;
    border: 0;
    border-top: 1px solid var(--csd-line);
    border-radius: 0;
    margin: 0;
    padding: 16px 24px;
    transition: background-color var(--csd-transition);
}

.single-sfwd-lessons .ld-item-list .ld-item-list-item:hover,
.single-sfwd-lessons .learndash-wrapper .ld-item-list-item:hover,
.single-sfwd-lessons .course-content-list li:hover {
    background: #fafbfd;
}

.single-sfwd-lessons .ld-item-list-item .ld-item-name,
.single-sfwd-lessons .ld-item-title,
.single-sfwd-lessons .course-content-list a {
    font-size: 16px;
    line-height: 1.45;
    font-weight: 700;
    color: var(--csd-ink);
}

.single-sfwd-lessons .ld-status-complete,
.single-sfwd-lessons .ld-item-list-item-preview .ld-status-icon {
    color: var(--csd-gold);
}

.single-sfwd-lessons .ld-item-list-item.ld-item-current,
.single-sfwd-lessons .ld-item-list-item[aria-current="true"],
.single-sfwd-lessons .course-content-list .current-menu-item,
.single-sfwd-lessons .course-content-list .current {
    background: #f8f5ee;
}

/* top lesson rail card */
.single-sfwd-lessons .upstudy-course-details-sidebar > *:first-child,
.single-sfwd-lessons .course-sidebar > *:first-child {
    border-radius: 26px;
    overflow: hidden;
    background: var(--csd-rail);
    color: #fff;
    padding: 26px 24px;
    box-shadow: 0 14px 40px rgba(16, 24, 40, 0.12);
}

.single-sfwd-lessons .upstudy-course-details-sidebar > *:first-child h3,
.single-sfwd-lessons .course-sidebar > *:first-child h3 {
    color: #fff;
    font-size: 22px;
    line-height: 1.2;
}

/* =========================
   LESSON CTA / NAV
   ========================= */

.single-sfwd-lessons .ld-content-actions,
.single-sfwd-lessons .learndash_content_wrap .ld-content-actions,
.single-sfwd-lessons .entry-content .ld-content-actions {
    background: #fff;
    border-radius: var(--csd-md);
    box-shadow: var(--csd-shadow-soft);
    padding: 20px 24px;
    margin-top: 26px;
    margin-bottom: 34px;
}

.single-sfwd-lessons .ld-content-actions .ld-content-action a,
.single-sfwd-lessons .ld-content-actions a,
.single-sfwd-lessons .ld-button,
.single-sfwd-lessons .learndash_mark_complete_button {
    border-radius: var(--csd-pill) !important;
    font-weight: 700;
}

.single-sfwd-lessons .ld-content-actions .ld-content-action:first-child a {
    background: #f7f8fa;
    color: var(--csd-navy);
    box-shadow: none;
}

.single-sfwd-lessons .ld-content-actions .ld-content-action:last-child .ld-button {
    transform: scale(1.02);
}

/* =========================
   LESSON EXTRA BOXES
   ========================= */

.single-sfwd-lessons .instructor-box,
.single-sfwd-lessons .upstudy-instructor-wrap,
.single-sfwd-lessons .widget.upstudy-course-widget,
.single-sfwd-lessons .lesson-instructor-card,
.single-sfwd-lessons #comments,
.single-sfwd-lessons .comments-area {
    background: #fff;
    border-radius: var(--csd-lg);
    box-shadow: var(--csd-shadow-soft);
    padding: 24px;
    margin-top: 32px;
}

.single-sfwd-lessons .instructor-box h3,
.single-sfwd-lessons .upstudy-instructor-wrap h3,
.single-sfwd-lessons .lesson-instructor-card h3,
.single-sfwd-lessons #comments h3,
.single-sfwd-lessons .comments-title {
    color: var(--csd-navy);
    font-size: 22px;
    margin-bottom: 16px;
}

.single-sfwd-lessons textarea,
.single-sfwd-lessons input[type="text"],
.single-sfwd-lessons input[type="email"],
.single-sfwd-lessons input[type="url"] {
    border: 1px solid var(--csd-line);
    border-radius: 14px;
    background: #fbfcfe;
    padding: 14px 16px;
}

/* =========================
   LESSON RELATED COURSES
   ========================= */

.single-sfwd-lessons .related-courses,
.single-sfwd-lessons .upstudy-related-course,
.single-sfwd-lessons .related-posts-wrap {
    margin-top: 42px;
}

.single-sfwd-lessons .related-courses .course-item,
.single-sfwd-lessons .upstudy-related-course .course-item,
.single-sfwd-lessons .course-grid .course-item {
    background: #fff;
    border-radius: var(--csd-md);
    overflow: hidden;
    box-shadow: var(--csd-shadow-soft);
    transition: transform var(--csd-transition), box-shadow var(--csd-transition);
}

.single-sfwd-lessons .related-courses .course-item:hover,
.single-sfwd-lessons .upstudy-related-course .course-item:hover,
.single-sfwd-lessons .course-grid .course-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--csd-shadow);
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 991px) {
    .single-sfwd-courses .upstudy-page-title-area.upstudy-default-breadcrumb {
        padding-top: 28px;
        padding-bottom: 28px;
        min-height: auto;
    }

    .single-sfwd-courses .upstudy-page-title .page-title {
        font-size: 34px;
    }

    .single-sfwd-courses .course-short-text p {
        font-size: 17px;
    }

    .single-sfwd-courses .entry-content > .learndash-wrapper,
    .single-sfwd-courses .upstudy-course-top-content,
    .single-sfwd-courses .course-curriculum,
    .single-sfwd-courses .ld-item-list {
        padding: 22px 18px 12px;
        border-radius: var(--csd-md);
    }

    .single-sfwd-lessons .entry-content > h1:first-of-type,
    .single-sfwd-lessons .entry-content > h2:first-of-type,
    .single-sfwd-lessons .entry-content > h3:first-of-type {
        font-size: 32px;
    }

    .single-sfwd-lessons .entry-content > p {
        font-size: 16px;
        line-height: 1.7;
        padding-left: 20px;
        padding-right: 20px;
    }

    .single-sfwd-lessons .entry-content > h1:first-of-type,
    .single-sfwd-lessons .entry-content > h2:first-of-type,
    .single-sfwd-lessons .entry-content > h3:first-of-type,
    .single-sfwd-lessons .entry-content > div:not(.learndash-wrapper):not(.wp-block-embed):not(.wp-block-video):not(.fluid-width-video-wrapper):not(.ld-video) {
        padding-left: 20px;
        padding-right: 20px;
    }

    .single-sfwd-lessons .ld-item-list .ld-item-list-item,
    .single-sfwd-lessons .learndash-wrapper .ld-item-list-item,
    .single-sfwd-lessons .course-content-list li {
        padding: 14px 18px;
    }

    .single-sfwd-lessons .ld-content-actions,
    .single-sfwd-lessons #comments,
    .single-sfwd-lessons .comments-area {
        padding: 18px;
    }
}
/* =========================================================
   LESSON PAGE REFINEMENT PATCH
   ========================================================= */

/* Wider, calmer lesson layout */
.single-sfwd-lessons .upstudy-container,
.single-sfwd-lessons .container {
    max-width: 1360px;
}

/* Main columns breathe more */
@media (min-width: 992px) {
    .single-sfwd-lessons .row,
    .single-sfwd-lessons .upstudy-row {
        --bs-gutter-x: 36px;
    }
}

/* ---------------------------------
   LEFT COLUMN: player + body
   --------------------------------- */

/* Stronger player block */
.single-sfwd-lessons .entry-content > iframe:first-child,
.single-sfwd-lessons .entry-content p iframe:first-child,
.single-sfwd-lessons .entry-content .wp-block-embed,
.single-sfwd-lessons .entry-content .wp-block-video,
.single-sfwd-lessons .entry-content .fluid-width-video-wrapper,
.single-sfwd-lessons .entry-content .ld-video {
    border-radius: 24px;
    box-shadow: 0 20px 60px rgba(16, 24, 40, 0.14);
    margin-bottom: 14px;
}

/* Make the lesson body more readable */
.single-sfwd-lessons .entry-content {
    font-size: 18px;
    line-height: 1.8;
    color: #344054;
}

/* Bigger paragraph text */
.single-sfwd-lessons .entry-content > p,
.single-sfwd-lessons .entry-content li {
    font-size: 19px;
    line-height: 1.82;
    color: #425466;
}

/* Reduce washed-out microtext look */
.single-sfwd-lessons .entry-content p,
.single-sfwd-lessons .entry-content li,
.single-sfwd-lessons .entry-content span {
    color: #425466;
}

/* Better headline hierarchy */
.single-sfwd-lessons .entry-content h1,
.single-sfwd-lessons .entry-content h2,
.single-sfwd-lessons .entry-content h3 {
    color: #0c2d5a;
    letter-spacing: -0.03em;
}

.single-sfwd-lessons .entry-content h2 {
    font-size: clamp(26px, 2.2vw, 38px);
    line-height: 1.08;
    margin-top: 14px;
}

.single-sfwd-lessons .entry-content h3 {
    font-size: 24px;
    line-height: 1.18;
    margin-top: 8px;
}

/* Turn the post-body area into a more intentional content zone */
.single-sfwd-lessons .entry-content > h2,
.single-sfwd-lessons .entry-content > h3,
.single-sfwd-lessons .entry-content > h4,
.single-sfwd-lessons .entry-content > p,
.single-sfwd-lessons .entry-content > ul,
.single-sfwd-lessons .entry-content > ol,
.single-sfwd-lessons .entry-content > div:not(.learndash-wrapper):not(.wp-block-embed):not(.wp-block-video):not(.fluid-width-video-wrapper):not(.ld-video) {
    max-width: 860px;
}

/* Give the text stack more bottom breathing room */
.single-sfwd-lessons .entry-content > p:last-of-type,
.single-sfwd-lessons .entry-content > ul:last-child,
.single-sfwd-lessons .entry-content > ol:last-child {
    margin-bottom: 18px;
}

/* Divider sections cleaner */
.single-sfwd-lessons .entry-content hr,
.single-sfwd-lessons .entry-content .wp-block-separator {
    border: 0;
    height: 1px;
    background: #e8ecf2;
    margin: 36px 0;
    max-width: 860px;
}

/* ---------------------------------
   LONG LESSON BREAKDOWN SECTION
   --------------------------------- */

/* Make breakdown section feel intentional */
.single-sfwd-lessons .entry-content h2 + h3,
.single-sfwd-lessons .entry-content h3 + ul {
    margin-top: 8px;
}

/* Better spacing between lesson subsections */
.single-sfwd-lessons .entry-content h3 {
    margin-bottom: 10px;
}

.single-sfwd-lessons .entry-content h3 + ul,
.single-sfwd-lessons .entry-content h3 + p {
    margin-top: 0;
}

/* Bullet lists less cramped */
.single-sfwd-lessons .entry-content ul {
    padding-top: 0;
    padding-bottom: 22px;
}

.single-sfwd-lessons .entry-content ul li {
    margin-bottom: 8px;
}

/* ---------------------------------
   RIGHT SIDEBAR
   --------------------------------- */

@media (min-width: 992px) {
    .single-sfwd-lessons .upstudy-course-sidebar,
    .single-sfwd-lessons .upstudy-course-details-sidebar,
    .single-sfwd-lessons .course-sidebar {
        top: 96px;
    }
}

/* Sidebar image cleaner */
.single-sfwd-lessons .csd-lesson-sidebar-image-wrap,
.single-sfwd-lessons .upstudy-course-details-sidebar > *:first-child,
.single-sfwd-lessons .course-sidebar > *:first-child {
    border-radius: 26px;
    overflow: hidden;
}

/* Sidebar top card less flat */
.single-sfwd-lessons .upstudy-course-details-sidebar > *:first-child,
.single-sfwd-lessons .course-sidebar > *:first-child {
    background: linear-gradient(180deg, #46636b 0%, #3e585f 100%);
    box-shadow: 0 18px 46px rgba(16, 24, 40, 0.13);
}

/* Better progress chip/card */
.single-sfwd-lessons .ld-progress,
.single-sfwd-lessons .learndash-wrapper .ld-progress {
    padding: 14px 16px;
    margin: 10px 0 20px 0;
}

/* Sidebar course content card stronger */
.single-sfwd-lessons .ld-item-list,
.single-sfwd-lessons .upstudy-course-info-wrap,
.single-sfwd-lessons .widget,
.single-sfwd-lessons .course-content-sidebar-box {
    border-radius: 24px;
    box-shadow: 0 14px 40px rgba(16, 24, 40, 0.08);
}

/* Sidebar heading larger */
.single-sfwd-lessons .ld-item-list .ld-section-heading,
.single-sfwd-lessons .course-content-title,
.single-sfwd-lessons .widget-title {
    padding: 26px 26px 12px;
}

.single-sfwd-lessons .ld-item-list .ld-section-heading h2,
.single-sfwd-lessons .course-content-title,
.single-sfwd-lessons .widget-title {
    font-size: 20px;
    line-height: 1.12;
}

/* Sidebar lesson rows feel more deliberate */
.single-sfwd-lessons .ld-item-list .ld-item-list-item,
.single-sfwd-lessons .learndash-wrapper .ld-item-list-item,
.single-sfwd-lessons .course-content-list li {
    padding: 18px 24px;
}

.single-sfwd-lessons .ld-item-list-item .ld-item-name,
.single-sfwd-lessons .ld-item-title,
.single-sfwd-lessons .course-content-list a {
    font-size: 17px;
    line-height: 1.4;
}

/* Current lesson gets stronger state */
.single-sfwd-lessons .ld-item-list-item.ld-item-current,
.single-sfwd-lessons .ld-item-list-item[aria-current="true"],
.single-sfwd-lessons .course-content-list .current-menu-item,
.single-sfwd-lessons .course-content-list .current {
    background: linear-gradient(180deg, #f9f5eb 0%, #f6f0e3 100%);
    box-shadow: inset 3px 0 0 #d4a446;
}

/* ---------------------------------
   CTA / NAV BAR
   --------------------------------- */

.single-sfwd-lessons .ld-content-actions,
.single-sfwd-lessons .learndash_content_wrap .ld-content-actions,
.single-sfwd-lessons .entry-content .ld-content-actions {
    border-radius: 24px;
    padding: 20px 24px;
    box-shadow: 0 12px 34px rgba(16, 24, 40, 0.07);
}

/* Make CTA row feel balanced */
.single-sfwd-lessons .ld-content-actions .ld-content-action {
    display: flex;
    align-items: center;
}

/* Back link cleaner */
.single-sfwd-lessons .ld-content-actions .ld-content-action:first-child a {
    background: #f4f6f8;
    color: #0c2d5a;
}

/* Next lesson stronger */
.single-sfwd-lessons .ld-content-actions .ld-content-action:last-child .ld-button {
    min-width: 170px;
    justify-content: center;
}

/* ---------------------------------
   GENERAL CLEANUP
   --------------------------------- */

/* Footer text less lost */
.single-sfwd-lessons footer,
.single-sfwd-lessons .site-footer {
    margin-top: 40px;
}

/* Reduce excessive whitespace at very bottom */
.single-sfwd-lessons .site-main {
    padding-bottom: 24px;
}

/* Mobile tightening */
@media (max-width: 991px) {
    .single-sfwd-lessons .entry-content > p,
    .single-sfwd-lessons .entry-content li {
        font-size: 17px;
        line-height: 1.72;
    }

    .single-sfwd-lessons .ld-item-list .ld-item-list-item,
    .single-sfwd-lessons .learndash-wrapper .ld-item-list-item,
    .single-sfwd-lessons .course-content-list li {
        padding: 16px 18px;
    }

    .single-sfwd-lessons .ld-item-list .ld-section-heading h2,
    .single-sfwd-lessons .course-content-title,
    .single-sfwd-lessons .widget-title {
        font-size: 18px;
    }
}
.single-sfwd-lessons .entry-content {
    max-width: 100%;
}

.single-sfwd-lessons .entry-content > *:not(.wp-block-embed):not(.wp-block-video):not(.fluid-width-video-wrapper):not(.ld-video):not(.learndash-wrapper) {
    margin-left: 0;
    margin-right: 0;
}
/* =========================================================
   FINAL LESSON POLISH PATCH
   ========================================================= */

/* overall page width + balance */
.single-sfwd-lessons .upstudy-container,
.single-sfwd-lessons .container {
    max-width: 1400px;
}

/* tighten top breadcrumb row */
.single-sfwd-lessons .upstudy-breadcrumb,
.single-sfwd-lessons .upstudy-breadcrumb-wrapper {
    margin-bottom: 10px;
}

/* give layout more breathing room */
@media (min-width: 992px) {
    .single-sfwd-lessons .row,
    .single-sfwd-lessons .upstudy-row {
        --bs-gutter-x: 42px;
    }
}

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

.single-sfwd-lessons .entry-content > iframe:first-child,
.single-sfwd-lessons .entry-content p iframe:first-child,
.single-sfwd-lessons .entry-content .wp-block-embed,
.single-sfwd-lessons .entry-content .wp-block-video,
.single-sfwd-lessons .entry-content .fluid-width-video-wrapper,
.single-sfwd-lessons .entry-content .ld-video {
    border-radius: 26px;
    box-shadow: 0 24px 70px rgba(16, 24, 40, 0.16);
    margin-top: 4px;
    margin-bottom: 20px;
    overflow: hidden;
}

/* =========================
   LEFT COLUMN CONTENT
   ========================= */

/* stronger readable body */
.single-sfwd-lessons .entry-content {
    font-size: 18px;
    line-height: 1.82;
    color: #344054;
}

/* remove tiny washed-out text feeling */
.single-sfwd-lessons .entry-content p,
.single-sfwd-lessons .entry-content li,
.single-sfwd-lessons .entry-content span {
    color: #425466;
}

/* bigger body copy */
.single-sfwd-lessons .entry-content > p,
.single-sfwd-lessons .entry-content li {
    font-size: 19px;
    line-height: 1.82;
}

/* keep content from feeling too narrow */
.single-sfwd-lessons .entry-content > h2,
.single-sfwd-lessons .entry-content > h3,
.single-sfwd-lessons .entry-content > h4,
.single-sfwd-lessons .entry-content > p,
.single-sfwd-lessons .entry-content > ul,
.single-sfwd-lessons .entry-content > ol,
.single-sfwd-lessons .entry-content > div:not(.learndash-wrapper):not(.wp-block-embed):not(.wp-block-video):not(.fluid-width-video-wrapper):not(.ld-video) {
    max-width: 900px;
}

/* content card blocks feel more intentional */
.single-sfwd-lessons .entry-content > h1,
.single-sfwd-lessons .entry-content > h2,
.single-sfwd-lessons .entry-content > h3,
.single-sfwd-lessons .entry-content > h4,
.single-sfwd-lessons .entry-content > p,
.single-sfwd-lessons .entry-content > ul,
.single-sfwd-lessons .entry-content > ol {
    background: #fff;
}

/* stronger headings */
.single-sfwd-lessons .entry-content h1,
.single-sfwd-lessons .entry-content h2,
.single-sfwd-lessons .entry-content h3 {
    color: #0c2d5a;
    letter-spacing: -0.03em;
}

.single-sfwd-lessons .entry-content h2 {
    font-size: clamp(28px, 2.4vw, 40px);
    line-height: 1.06;
    margin-top: 18px;
    margin-bottom: 14px;
}

.single-sfwd-lessons .entry-content h3 {
    font-size: 25px;
    line-height: 1.16;
    margin-top: 12px;
    margin-bottom: 12px;
}

/* paragraph rhythm */
.single-sfwd-lessons .entry-content > p {
    padding-bottom: 18px;
}

/* list spacing */
.single-sfwd-lessons .entry-content ul {
    padding-top: 0;
    padding-bottom: 24px;
}

.single-sfwd-lessons .entry-content ul li {
    margin-bottom: 9px;
}

/* clean divider */
.single-sfwd-lessons .entry-content hr,
.single-sfwd-lessons .entry-content .wp-block-separator {
    border: 0;
    height: 1px;
    background: #e8ecf2;
    margin: 34px 0;
    max-width: 900px;
}

/* =========================
   CTA BAR
   ========================= */

.single-sfwd-lessons .ld-content-actions,
.single-sfwd-lessons .learndash_content_wrap .ld-content-actions,
.single-sfwd-lessons .entry-content .ld-content-actions {
    border-radius: 26px;
    padding: 20px 22px;
    box-shadow: 0 14px 36px rgba(16, 24, 40, 0.08);
    margin-top: 30px;
}

/* buttons more substantial */
.single-sfwd-lessons .ld-content-actions .ld-content-action:first-child a,
.single-sfwd-lessons .ld-content-actions .ld-content-action:last-child .ld-button {
    min-height: 52px;
    padding-left: 24px;
    padding-right: 24px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* back link cleaner */
.single-sfwd-lessons .ld-content-actions .ld-content-action:first-child a {
    background: #f4f6f8;
    color: #0c2d5a;
}

/* stronger next lesson emphasis */
.single-sfwd-lessons .ld-content-actions .ld-content-action:last-child .ld-button {
    min-width: 178px;
}

/* center link less weak */
.single-sfwd-lessons .ld-content-actions .ld-content-action:nth-child(2) a,
.single-sfwd-lessons .ld-content-actions .ld-content-action:nth-child(2) {
    font-weight: 700;
    color: #0c2d5a;
}

/* =========================
   RIGHT SIDEBAR
   ========================= */

@media (min-width: 992px) {
    .single-sfwd-lessons .upstudy-course-sidebar,
    .single-sfwd-lessons .upstudy-course-details-sidebar,
    .single-sfwd-lessons .course-sidebar {
        top: 92px;
    }
}

/* top lesson card stronger */
.single-sfwd-lessons .upstudy-course-details-sidebar > *:first-child,
.single-sfwd-lessons .course-sidebar > *:first-child {
    background: linear-gradient(180deg, #48646b 0%, #3f5b63 100%);
    border-radius: 28px;
    box-shadow: 0 20px 52px rgba(16, 24, 40, 0.14);
}

/* improve title card spacing */
.single-sfwd-lessons .upstudy-course-details-sidebar > *:first-child h3,
.single-sfwd-lessons .course-sidebar > *:first-child h3 {
    font-size: 24px;
    line-height: 1.18;
    max-width: 85%;
}

/* progress area cleaner */
.single-sfwd-lessons .ld-progress,
.single-sfwd-lessons .learndash-wrapper .ld-progress {
    padding: 14px 16px;
    margin: 12px 0 22px 0;
    border-radius: 18px;
}

/* sidebar content card stronger */
.single-sfwd-lessons .ld-item-list,
.single-sfwd-lessons .upstudy-course-info-wrap,
.single-sfwd-lessons .widget,
.single-sfwd-lessons .course-content-sidebar-box {
    border-radius: 26px;
    box-shadow: 0 16px 42px rgba(16, 24, 40, 0.08);
}

/* card heading stronger */
.single-sfwd-lessons .ld-item-list .ld-section-heading,
.single-sfwd-lessons .course-content-title,
.single-sfwd-lessons .widget-title {
    padding: 28px 28px 14px;
}

.single-sfwd-lessons .ld-item-list .ld-section-heading h2,
.single-sfwd-lessons .course-content-title,
.single-sfwd-lessons .widget-title {
    font-size: 21px;
    line-height: 1.12;
    color: #0c2d5a;
}

/* lesson rows more deliberate */
.single-sfwd-lessons .ld-item-list .ld-item-list-item,
.single-sfwd-lessons .learndash-wrapper .ld-item-list-item,
.single-sfwd-lessons .course-content-list li {
    padding: 20px 26px;
}

/* lesson text in rail larger */
.single-sfwd-lessons .ld-item-list-item .ld-item-name,
.single-sfwd-lessons .ld-item-title,
.single-sfwd-lessons .course-content-list a {
    font-size: 17px;
    line-height: 1.42;
}

/* stronger active lesson state */
.single-sfwd-lessons .ld-item-list-item.ld-item-current,
.single-sfwd-lessons .ld-item-list-item[aria-current="true"],
.single-sfwd-lessons .course-content-list .current-menu-item,
.single-sfwd-lessons .course-content-list .current {
    background: linear-gradient(180deg, #f9f5eb 0%, #f6f0e3 100%);
    box-shadow: inset 3px 0 0 #d4a446;
}

/* hover polish */
.single-sfwd-lessons .ld-item-list .ld-item-list-item:hover,
.single-sfwd-lessons .learndash-wrapper .ld-item-list-item:hover,
.single-sfwd-lessons .course-content-list li:hover {
    background: #fbfcfe;
}

/* =========================
   FOOTER / SPACE CLEANUP
   ========================= */

.single-sfwd-lessons .site-main {
    padding-bottom: 24px;
}

.single-sfwd-lessons footer,
.single-sfwd-lessons .site-footer {
    margin-top: 34px;
}

/* =========================
   MOBILE
   ========================= */

@media (max-width: 991px) {
    .single-sfwd-lessons .entry-content > p,
    .single-sfwd-lessons .entry-content li {
        font-size: 17px;
        line-height: 1.72;
    }

    .single-sfwd-lessons .entry-content h2 {
        font-size: 28px;
    }

    .single-sfwd-lessons .entry-content h3 {
        font-size: 22px;
    }

    .single-sfwd-lessons .ld-item-list .ld-item-list-item,
    .single-sfwd-lessons .learndash-wrapper .ld-item-list-item,
    .single-sfwd-lessons .course-content-list li {
        padding: 16px 18px;
    }

    .single-sfwd-lessons .ld-item-list .ld-section-heading h2,
    .single-sfwd-lessons .course-content-title,
    .single-sfwd-lessons .widget-title {
        font-size: 18px;
    }
}
.single-sfwd-lessons .entry-content {
    position: relative;
}

.single-sfwd-lessons .entry-content::after {
    content: "";
    display: block;
    width: 100%;
    max-width: 900px;
    height: 1px;
    margin-top: 14px;
    background: transparent;
}