/* Move Mark as Complete button next to navigation buttons */

/* Keep progress bar in the top navbar - don't touch it! */
.tutor-course-topic-single-header .tutor-fs-7,
.tutor-course-topic-single-header .tutor-progress-content,
.tutor-course-topic-single-header .tutor-mr-20 {
    display: inline-block !important;
}

/* ONLY hide the complete button from the top navbar */
.tutor-course-topic-single-header .tutor-topbar-complete-btn {
    display: none !important;
}

/* Hide the complete button from mobile section at the bottom */
.tutor-spotlight-mobile-progress-complete .tutor-topbar-complete-btn,
.tutor-spotlight-mobile-progress-right .tutor-topbar-complete-btn {
    display: none !important;
}

/* Style the navigation wrapper to accommodate the button */
.tutor-next-previous-pagination-wrap {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    justify-content: space-between !important;
}

/* Style the cloned button inside navigation */
.tutor-next-previous-pagination-wrap .tutor-topbar-complete-btn {
    display: flex !important;
    margin: 0 !important;
}

.tutor-next-previous-pagination-wrap .tutor-topbar-mark-btn {
    white-space: nowrap !important;
}

/* Ensure navigation links don't take full width */
.tutor-next-previous-pagination-wrap .tutor-previous-link,
.tutor-next-previous-pagination-wrap .tutor-next-link {
    flex: 0 0 auto !important;
}

@media (max-width: 768px) {
    .tutor-next-previous-pagination-wrap {
        justify-content: center !important;
        gap: 8px !important;
    }
    
    .tutor-next-previous-pagination-wrap .tutor-topbar-mark-btn {
        font-size: 14px !important;
        padding: 8px 12px !important;
    }
}
