body.single-lesson {
    background-color: #f0f2f5;
}

.lesson-layout-container {
    display: flex;
    max-width: 1440px;
    margin: 40px auto;
    gap: 30px;
    padding: 0 15px;
}

.lesson-sidebar {
    flex: 0 0 320px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 20px;
    height: fit-content;
}

.lesson-sidebar .course-title {
    font-size: 1.4rem;
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #e9ebee;
}

.lesson-sidebar .course-title a {
    text-decoration: none;
    color: #1877f2;
}

.lesson-section-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.lesson-section-item .section-title {
    font-size: 1.1rem;
    font-weight: 600;
    color: #606770;
    margin-top: 20px;
    margin-bottom: 10px;
}

.lesson-section-item:first-child .section-title {
    margin-top: 0;
}

.lesson-list {
    list-style: none;
    padding-left: 15px;
}

.lesson-item a {
    display: block;
    padding: 10px 15px;
    text-decoration: none;
    color: #1c1e21;
    border-radius: 6px;
    transition: background-color 0.3s ease;
}

.lesson-item a:hover {
    background-color: #f0f2f5;
}

.lesson-item.current-lesson a {
    background-color: #1877f2;
    color: #fff;
    font-weight: 600;
}

.lesson-container {
    flex-grow: 1;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    padding: 30px;
}

.lesson-header {
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ebee;
}

.lesson-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #1c1e21;
    margin: 0;
}

.lesson-thumbnail img {
    width: 100%;
    height: auto;
    border-radius: 12px;
    margin-bottom: 30px;
}

.lesson-content {
    font-size: 1.1rem;
    line-height: 1.6;
}

.lesson-access-denied {
    max-width: 800px;
    margin: 60px auto;
    padding: 40px;
    background-color: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    text-align: center;
    border: 1px solid #dddfe2;
}

.lesson-access-denied h2 {
    font-size: 2rem;
    font-weight: 700;
    color: #dc3545;
    /* Red */
    margin-top: 0;
    margin-bottom: 20px;
}

.lesson-access-denied p {
    font-size: 1.2rem;
    color: #606770;
    margin-bottom: 30px;
}

.lesson-access-denied .button-primary {
    background-color: #1877f2;
    border-color: #1877f2;
    color: #fff;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.3s ease;
}

.lesson-access-denied .button-primary:hover {
    background-color: #166fe5;
}

.lesson-footer {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e9ebee;
}

.lesson-completion-wrapper {
    text-align: center;
}

#complete-lesson-button {
    background-color: #16a34a;
    /* Green */
    border-color: #16a34a;
    color: #fff;
    padding: 12px 25px;
    font-size: 1.1rem;
    font-weight: 600;
    border-radius: 6px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

#complete-lesson-button:hover {
    background-color: #15803d;
}

#complete-lesson-button:disabled {
    background-color: #a7f3d0;
    border-color: #a7f3d0;
    cursor: not-allowed;
    color: #065f46;
}

.completion-status {
    margin-top: 15px;
    font-weight: 600;
}

.completion-status.success {
    color: #16a34a;
}

.completion-status.error {
    color: #dc3545;
}

/* Sidebar indicator for completed lessons */
.lesson-item.lesson-completed a {
    position: relative;
    padding-left: 35px;
}

.lesson-item.lesson-completed a::before {
    content: '\f147';
    /* Dashicon for checkmark */
    font-family: 'dashicons';
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    color: #16a34a;
    font-size: 20px;
    font-weight: normal;
}

.completion-notice {
    font-size: 0.9rem;
    color: #606770;
    margin-top: 15px;
    font-style: italic;
}

/* Progress Bar Styles */
.progress-bar-wrapper {
    margin-bottom: 25px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e9ebee;
}

.progress-bar-label {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-size: 0.9rem;
    color: #606770;
}

.progress-bar-background {
    background-color: #e4e6eb;
    border-radius: 10px;
    height: 12px;
    overflow: hidden;
}

.progress-bar-foreground {
    background-color: #16a34a;
    /* Green */
    height: 100%;
    border-radius: 10px;
    transition: width 0.5s ease-in-out;
}

@media (max-width: 768px) {
    .lesson-layout-container {
        flex-direction: column;
    }

    .lesson-title {
        font-size: 2em;
    }
}
.lesson-navigation-header {
    display: flex;
    justify-content: space-between;
    margin: 15px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #eee;
}

.lesson-navigation-header a {
    text-decoration: none;
    font-weight: 600;
    color: #555;
    transition: color 0.3s ease;
}

.lesson-navigation-header a:hover {
    color: #0073aa;
}
/* Modern Comment Section Styles */
.lesson-comments {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.comments-title,
.comment-reply-title {
    font-size: 24px;
    margin-bottom: 20px;
    font-weight: 600;
    color: #333;
}

.comment-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.comment-list .comment {
    padding: 20px;
    margin-bottom: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    border: 1px solid #eee;
}

.comment-list .children {
    list-style: none;
    padding-left: 30px;
    margin-top: 20px;
}

.comment-author {
    display: flex;
    align-items: center;
    margin-bottom: 10px;
}

.comment-author .avatar {
    border-radius: 50%;
    margin-right: 15px;
}

.comment-author .fn {
    font-weight: bold;
    font-style: normal;
    color: #222;
}

.comment-meta {
    font-size: 13px;
    color: #777;
}

.comment-content {
    line-height: 1.6;
}

.reply .comment-reply-link {
    display: inline-block;
    margin-top: 10px;
    font-size: 14px;
    font-weight: 600;
    color: #0073aa;
    text-decoration: none;
    background: #f0f0f0;
    padding: 5px 12px;
    border-radius: 4px;
    transition: background-color 0.3s ease;
}

.reply .comment-reply-link:hover {
    background-color: #e0e0e0;
}

/* Comment Form Styles */
.comment-form {
    margin-top: 30px;
}

.comment-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
    color: #444;
}

.comment-form input[type="text"],
.comment-form input[type="email"],
.comment-form input[type="url"],
.comment-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    box-sizing: border-box;
    margin-bottom: 15px;
    transition: border-color 0.3s ease;
}

.comment-form input[type="text"]:focus,
.comment-form input[type="email"]:focus,
.comment-form input[type="url"]:focus,
.comment-form textarea:focus {
    border-color: #0073aa;
    outline: none;
}

.comment-form .form-submit .submit {
    background-color: #0073aa;
    color: #fff;
    border: none;
    padding: 12px 25px;
    font-size: 16px;
    font-weight: 600;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.comment-form .form-submit .submit:hover {
    background-color: #005a87;
}

.logged-in-as {
    font-size: 14px;
    color: #555;
    margin-bottom: 15px;
}