document.addEventListener('DOMContentLoaded', function() {
// Only on single blog posts (body has 'single-post' class)
if (!document.body.classList.contains('single-post')) return;
// Find the main content area
var contentArea = document.querySelector('.elementor-widget-theme-post-content .elementor-widget-container')
|| document.querySelector('.entry-content')
|| document.querySelector('.elementor-widget-container article')
|| document.querySelector('article .elementor-widget-container');
if (!contentArea) {
// Try broader selectors
var articles = document.querySelectorAll('article');
if (articles.length === 1) contentArea = articles[0];
}
if (!contentArea) return;
// Create CTA element
var cta = document.createElement('div');
cta.id = 'rmm-course-cta';
cta.innerHTML = '