${getTagHTML(item.tag)}
${item.name}
${type === 'course' ? `PKR ${item.discountedPrice}` : item.price}
${type === 'course' ? `` : ''}
`).join('');
}
// ========== 4. INITIALIZATION ==========
function init() {
renderGrid(courses, 'courses-grid', 'course');
renderGrid(services, 'services-grid', 'service');
renderGrid(products, 'products-grid', 'product');
renderReviews();
populateCourseDropdowns();
setupEventListeners();
// Enter key support for chatbot
document.getElementById('chat-input-field')?.addEventListener('keypress', (e) => {
if (e.key === 'Enter') handleChatSubmit();
});
}
window.addEventListener('DOMContentLoaded', init);