/* Analytics Engineering LMS - Frontend Styles */
/* High specificity to override theme styles */

/* Hide Header and Footer on LMS Pages - Targeted approach */
/* Only hide on single lesson/quiz/homework pages, NOT on course overview */
body.single-ae_lesson > header:not(.ae-lms-single-hero),
body.single-ae_lesson > .site-header,
body.single-ae_lesson > #masthead,
body.single-ae_lesson .site-header,
body.single-ae_lesson #site-navigation,
body.single-ae_lesson .main-navigation,
body.single-ae_lesson .primary-navigation,
body.single-ae_lesson #header,
body.single-ae_lesson .page-header:not(.ae-lms-single-hero),
body.single-ae_quiz > header:not(.ae-lms-single-hero),
body.single-ae_quiz > .site-header,
body.single-ae_quiz > #masthead,
body.single-ae_quiz .site-header,
body.single-ae_quiz #site-navigation,
body.single-ae_quiz .main-navigation,
body.single-ae_quiz .primary-navigation,
body.single-ae_quiz #header,
body.single-ae_quiz .page-header:not(.ae-lms-single-hero),
body.single-ae_homework > header:not(.ae-lms-single-hero),
body.single-ae_homework > .site-header,
body.single-ae_homework > #masthead,
body.single-ae_homework .site-header,
body.single-ae_homework #site-navigation,
body.single-ae_homework .main-navigation,
body.single-ae_homework .primary-navigation,
body.single-ae_homework #header,
body.single-ae_homework .page-header:not(.ae-lms-single-hero) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body.single-ae_lesson > footer,
body.single-ae_lesson > .site-footer,
body.single-ae_lesson > #colophon,
body.single-ae_lesson .site-footer,
body.single-ae_lesson #site-footer,
body.single-ae_lesson .site-info,
body.single-ae_lesson #footer,
body.single-ae_quiz > footer,
body.single-ae_quiz > .site-footer,
body.single-ae_quiz > #colophon,
body.single-ae_quiz .site-footer,
body.single-ae_quiz #site-footer,
body.single-ae_quiz .site-info,
body.single-ae_quiz #footer,
body.single-ae_homework > footer,
body.single-ae_homework > .site-footer,
body.single-ae_homework > #colophon,
body.single-ae_homework .site-footer,
body.single-ae_homework #site-footer,
body.single-ae_homework .site-info,
body.single-ae_homework #footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Hide Header and Footer on Practice Hub Page */
body.page .ae-practice-hub ~ header,
body.page .ae-practice-hub ~ .site-header,
body.page .ae-practice-hub ~ #masthead,
body:has(.ae-practice-hub) > header:not(.practice-hub-hero),
body:has(.ae-practice-hub) > .site-header,
body:has(.ae-practice-hub) > #masthead,
body:has(.ae-practice-hub) .site-header,
body:has(.ae-practice-hub) #site-navigation,
body:has(.ae-practice-hub) .main-navigation,
body:has(.ae-practice-hub) .primary-navigation,
body:has(.ae-practice-hub) #header,
body:has(.ae-practice-hub) .page-header:not(.practice-hub-hero) {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

body:has(.ae-practice-hub) > footer,
body:has(.ae-practice-hub) > .site-footer,
body:has(.ae-practice-hub) > #colophon,
body:has(.ae-practice-hub) .site-footer,
body:has(.ae-practice-hub) #site-footer,
body:has(.ae-practice-hub) .site-info,
body:has(.ae-practice-hub) #footer {
    display: none !important;
    visibility: hidden !important;
    height: 0 !important;
    max-height: 0 !important;
    overflow: hidden !important;
    opacity: 0 !important;
    margin: 0 !important;
    padding: 0 !important;
}

/* Ensure our LMS elements stay visible */
.ae-lms-course-overview,
.ae-lms-single-hero,
.ae-lms-top-bar,
.ae-lms-sidebar,
.ae-lms-single-content,
.ae-lms-modules-section,
.ae-lms-profile-section,
.ae-lms-certificate-section,
.ae-practice-hub,
.practice-hub-hero {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    height: auto !important;
    max-height: none !important;
}

/* Desktop Back Link in Practice Hub Hero */
.practice-hub-back-link {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    padding: 10px 16px !important;
    background: rgba(255, 255, 255, 0.2) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 8px !important;
    font-size: 15px !important;
    font-weight: 600 !important;
    transition: all 0.2s ease !important;
    white-space: nowrap !important;
}

.practice-hub-back-link:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    color: white !important;
    transform: translateX(-2px) !important;
}

.practice-hub-back-link .back-arrow {
    font-size: 18px !important;
}

.practice-hub-back-link .back-text {
    display: inline !important;
}

/* Mobile adjustments for back link */
@media (max-width: 768px) {
    .practice-hub-back-link {
        display: none !important;
    }
}


/* Hide default WordPress post title for LMS content types */
body.single-ae_lesson .entry-title,
body.single-ae_quiz .entry-title,
body.single-ae_homework .entry-title,
body.single-ae_lesson .post-title,
body.single-ae_quiz .post-title,
body.single-ae_homework .post-title,
body.single-ae_lesson h1.entry-title,
body.single-ae_quiz h1.entry-title,
body.single-ae_homework h1.entry-title {
    display: none !important;
}

/* Hide any page title containers */
body.single-ae_lesson .page-title,
body.single-ae_quiz .page-title,
body.single-ae_homework .page-title,
body.single-ae_lesson .entry-header,
body.single-ae_quiz .entry-header,
body.single-ae_homework .entry-header {
    display: none !important;
}

/* Global Fixes for Single Pages */
body.single-ae_lesson,
body.single-ae_quiz,
body.single-ae_homework {
    overflow-x: hidden !important;
}

body.single-ae_lesson .site-content,
body.single-ae_quiz .site-content,
body.single-ae_homework .site-content,
body.single-ae_lesson .content-area,
body.single-ae_quiz .content-area,
body.single-ae_homework .content-area,
body.single-ae_lesson main,
body.single-ae_quiz main,
body.single-ae_homework main {
    padding: 0 !important;
    margin: 0 !important;
    max-width: none !important;
    width: 100% !important;
}

body.single-ae_lesson article,
body.single-ae_quiz article,
body.single-ae_homework article {
    margin: 0 !important;
    padding: 0 !important;
}

/* Reset and Container */
.ae-lms-course-overview * {
    box-sizing: border-box;
}

.ae-lms-course-overview {
    max-width: 100% !important;
    width: 100% !important;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif !important;
}

/* Hero Banner - Compact Design */
.ae-lms-course-overview .ae-lms-hero {
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 50%, #4f46e5 100%) !important;
    border-radius: 0 !important;
    padding: 24px 32px !important;
    color: white !important;
    margin-bottom: 24px !important;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1) !important;
}

.ae-lms-course-overview .ae-lms-hero h1 {
    font-size: 28px !important;
    font-weight: bold !important;
    margin-bottom: 4px !important;
    color: white !important;
    line-height: 1.2 !important;
}

.ae-lms-course-overview .ae-lms-hero .subtitle {
    font-size: 16px !important;
    color: rgba(255, 255, 255, 0.9) !important;
    margin-bottom: 20px !important;
}

/* Compact Stats Grid */
.ae-lms-course-overview .ae-lms-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)) !important;
    gap: 12px !important;
    margin-bottom: 0 !important;
}

.ae-lms-course-overview .stat-card {
    background: rgba(255, 255, 255, 0.15) !important;
    backdrop-filter: blur(10px);
    border-radius: 8px !important;
    padding: 16px !important;
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.ae-lms-course-overview .stat-icon {
    font-size: 24px !important;
    flex-shrink: 0;
}

.ae-lms-course-overview .stat-card .stat-info {
    flex: 1;
    min-width: 0;
}

.ae-lms-course-overview .stat-label {
    font-size: 12px !important;
    color: rgba(255, 255, 255, 0.85) !important;
    margin-bottom: 2px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 600 !important;
}

.ae-lms-course-overview .stat-value {
    font-size: 20px !important;
    font-weight: bold !important;
    color: white !important;
}

/* Hide XP Progress Bar */
.ae-lms-course-overview .ae-lms-xp-progress {
    display: none !important;
}

/* Course Description */
.ae-lms-course-overview .ae-lms-course-description {
    background: white !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.ae-lms-course-overview .ae-lms-course-description p {
    color: #374151 !important;
    line-height: 1.6 !important;
}

/* Practice CTA - Full Styling */
.ae-lms-practice-cta {
    background: linear-gradient(135deg, #eff6ff 0%, #dbeafe 100%) !important;
    border: 2px solid #3b82f6 !important;
    border-radius: 16px !important;
    padding: 32px !important;
    margin-bottom: 32px !important;
    box-shadow: 0 4px 16px rgba(37, 99, 235, 0.1) !important;
}

.practice-cta-content {
    display: flex !important;
    align-items: center !important;
    gap: 32px !important;
}

.practice-cta-icon {
    font-size: 72px !important;
    flex-shrink: 0 !important;
    animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.05); }
}

.practice-cta-text {
    flex: 1 !important;
}

.practice-cta-text h3 {
    font-size: 28px !important;
    font-weight: bold !important;
    color: #1e40af !important;
    margin: 0 0 12px 0 !important;
}

.practice-cta-text p {
    font-size: 16px !important;
    color: #475569 !important;
    margin: 0 0 16px 0 !important;
    line-height: 1.6 !important;
}

.practice-cta-features {
    display: flex !important;
    gap: 12px !important;
    flex-wrap: wrap !important;
    margin-bottom: 0 !important;
}

.practice-cta-feature {
    display: inline-flex !important;
    align-items: center !important;
    padding: 8px 16px !important;
    background: white !important;
    color: #2563eb !important;
    border: 1px solid #3b82f6 !important;
    border-radius: 20px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    box-shadow: 0 2px 4px rgba(37, 99, 235, 0.1) !important;
}

.btn-practice-cta {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    padding: 16px 32px !important;
    background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%) !important;
    color: white !important;
    text-decoration: none !important;
    border-radius: 12px !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    transition: all 0.3s ease !important;
    flex-shrink: 0 !important;
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3) !important;
    border: none !important;
}

.btn-practice-cta:hover {
    background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%) !important;
    transform: translateY(-2px) !important;
    box-shadow: 0 6px 16px rgba(37, 99, 235, 0.4) !important;
    color: white !important;
}

.btn-practice-cta:active {
    transform: translateY(0) !important;
}

/* User Profile Section - Replaces Instructor Section */
.ae-lms-course-overview .ae-lms-profile-section {
    background: white !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.ae-lms-course-overview .ae-lms-profile-section h3 {
    font-size: 20px !important;
    font-weight: bold !important;
    margin-bottom: 16px !important;
    color: #111827 !important;
}

.ae-lms-course-overview .profile-card {
    display: flex !important;
    gap: 20px !important;
    align-items: flex-start !important;
    padding-bottom: 20px !important;
    border-bottom: 2px solid #e5e7eb !important;
    margin-bottom: 20px !important;
}

.ae-lms-course-overview .profile-avatar {
    width: 80px !important;
    height: 80px !important;
    background: linear-gradient(135deg, #2563eb, #9333ea) !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: white !important;
    font-size: 32px !important;
    font-weight: bold !important;
    flex-shrink: 0;
    overflow: hidden;
}

.ae-lms-course-overview .profile-avatar img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
}

.ae-lms-course-overview .profile-info {
    flex: 1;
}

.ae-lms-course-overview .profile-info h4 {
    font-size: 22px !important;
    font-weight: bold !important;
    margin-bottom: 4px !important;
    color: #111827 !important;
}

.ae-lms-course-overview .profile-username {
    font-size: 14px !important;
    color: #6b7280 !important;
    margin-bottom: 8px !important;
}

/* Progress Stats Grid */
.ae-lms-course-overview .profile-stats-grid {
    display: grid !important;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)) !important;
    gap: 16px !important;
}

.ae-lms-course-overview .profile-stat-card {
    background: #f9fafb !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    padding: 16px !important;
    text-align: center !important;
}

.ae-lms-course-overview .profile-stat-icon {
    font-size: 28px !important;
    margin-bottom: 8px !important;
    display: block !important;
}

.ae-lms-course-overview .profile-stat-value {
    font-size: 24px !important;
    font-weight: bold !important;
    color: #111827 !important;
    margin-bottom: 4px !important;
}

.ae-lms-course-overview .profile-stat-label {
    font-size: 13px !important;
    color: #6b7280 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    font-weight: 600 !important;
}

/* Modules Section */
.ae-lms-course-overview .ae-lms-modules-section {
    background: white !important;
    border-radius: 12px !important;
    padding: 24px !important;
    margin-bottom: 24px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.ae-lms-course-overview .ae-lms-modules-section h2 {
    font-size: 24px !important;
    font-weight: bold !important;
    margin-bottom: 16px !important;
    color: #111827 !important;
}

.ae-lms-course-overview .modules-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 16px !important;
}

/* Module */
.ae-lms-course-overview .ae-lms-module {
    border: 2px solid #e5e7eb !important;
    border-radius: 12px !important;
    overflow: hidden;
    transition: all 0.3s ease;
    background: white !important;
}

.ae-lms-course-overview .ae-lms-module.locked {
    opacity: 0.6;
}

.ae-lms-course-overview .module-header {
    padding: 24px !important;
    cursor: pointer !important;
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    background: #f9fafb !important;
    transition: background 0.2s ease;
    user-select: none !important;
}

.ae-lms-course-overview .module-header:hover {
    background: #f3f4f6 !important;
}

.ae-lms-course-overview .module-header:active {
    background: #e5e7eb !important;
}

.ae-lms-course-overview .module-info {
    display: flex !important;
    gap: 16px !important;
    align-items: flex-start !important;
    flex: 1;
}

.ae-lms-course-overview .module-toggle {
    font-size: 16px !important;
    transition: transform 0.3s ease;
    color: #374151 !important;
}

.ae-lms-course-overview .ae-lms-module.expanded .module-toggle {
    transform: rotate(90deg);
}

.ae-lms-course-overview .module-info h3 {
    font-size: 18px !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
    color: #111827 !important;
}

.ae-lms-course-overview .lock-badge {
    display: inline-block !important;
    padding: 4px 12px !important;
    background: #fef3c7 !important;
    color: #92400e !important;
    border-radius: 9999px !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    margin-top: 4px !important;
}

.ae-lms-course-overview .module-description {
    font-size: 14px !important;
    color: #6b7280 !important;
    margin-top: 4px !important;
}

.ae-lms-course-overview .module-count {
    font-size: 14px !important;
    color: #6b7280 !important;
}

.ae-lms-course-overview .module-content {
    padding: 0 24px 24px 24px !important;
    background: #f9fafb !important;
}

/* Items (Lessons, Quizzes, Homework) */
.ae-lms-course-overview .ae-lms-item {
    background: white !important;
    border-radius: 8px !important;
    margin-bottom: 8px !important;
    transition: all 0.2s ease;
}

.ae-lms-course-overview .ae-lms-item:hover {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
}

.ae-lms-course-overview .ae-lms-item.locked {
    opacity: 0.6;
    cursor: not-allowed !important;
}

.ae-lms-course-overview .ae-lms-item.completed {
    background: #f0fdf4 !important;
    border-left: 4px solid #22c55e !important;
}

.ae-lms-course-overview .item-link {
    display: flex !important;
    align-items: center !important;
    gap: 16px !important;
    padding: 16px !important;
    text-decoration: none !important;
    color: inherit !important;
}

.ae-lms-course-overview .item-icon {
    font-size: 24px !important;
    flex-shrink: 0;
}

.ae-lms-course-overview .item-info {
    flex: 1;
}

.ae-lms-course-overview .item-title {
    font-size: 16px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    margin-bottom: 4px !important;
}

.ae-lms-course-overview .item-meta {
    display: flex !important;
    gap: 12px !important;
    font-size: 14px !important;
    color: #6b7280 !important;
}

.ae-lms-course-overview .xp-badge {
    color: #9333ea !important;
    font-weight: 600 !important;
}

.ae-lms-course-overview .item-action {
    font-size: 20px !important;
    color: #2563eb !important;
}

/* Certificate Section */
.ae-lms-course-overview .ae-lms-certificate-section {
    background: linear-gradient(135deg, #fef3c7 0%, #fed7aa 100%) !important;
    border: 1px solid #fbbf24 !important;
    border-radius: 12px !important;
    padding: 24px !important;
    display: flex !important;
    gap: 16px !important;
    align-items: flex-start !important;
}

.ae-lms-course-overview .certificate-icon {
    font-size: 48px !important;
}

.ae-lms-course-overview .ae-lms-certificate-section h3 {
    font-size: 18px !important;
    font-weight: bold !important;
    margin-bottom: 8px !important;
    color: #111827 !important;
}

.ae-lms-course-overview .ae-lms-certificate-section p {
    color: #374151 !important;
    line-height: 1.6 !important;
}

/* Sidebar Layout for Single Content Pages */
.ae-lms-single-layout {
    display: flex !important;
    flex-direction: column !important;
    gap: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    margin: 0 !important;
    min-height: 100vh !important;
}

/* Single Page Hero Banner - Purple Gradient */
.ae-lms-single-hero,
.practice-hub-hero {
    background: linear-gradient(135deg, #2563eb 0%, #9333ea 50%, #4f46e5 100%) !important;
    padding: 20px 24px !important;
    color: white !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 300 !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1) !important;
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
}

.ae-lms-single-hero h1,
.practice-hub-hero h1 {
    font-size: 22px !important;
    font-weight: bold !important;
    margin: 0 !important;
    color: white !important;
    flex: 1 !important;
}

/* Practice Hub specific hero styling */
.practice-hub-hero {
    margin-bottom: 24px !important;
}

/* Mobile Menu Toggle Button */
.mobile-menu-toggle {
    display: none !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: white !important;
    font-size: 24px !important;
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    border-radius: 8px !important;
    cursor: pointer !important;
    align-items: center !important;
    justify-content: center !important;
    transition: all 0.2s ease !important;
    flex-shrink: 0 !important;
    padding: 0 !important;
    line-height: 1 !important;
}

.mobile-menu-toggle:hover {
    background: rgba(255, 255, 255, 0.3) !important;
}

.mobile-menu-toggle:active {
    background: rgba(255, 255, 255, 0.4) !important;
    transform: scale(0.95);
}

/* Compact Top Progress Bar */
.ae-lms-top-bar {
    width: 100% !important;
    background: white !important;
    border-bottom: 1px solid #e5e7eb !important;
    padding: 12px 24px !important;
    position: sticky !important;
    top: 62px !important;
    z-index: 200 !important;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05) !important;
}

.top-bar-container {
    max-width: 1400px !important;
    margin: 0 auto !important;
    display: flex !important;
    gap: 24px !important;
    align-items: center !important;
}

.top-bar-stat {
    flex: 1 !important;
    min-width: 0 !important;
}

.stat-label-top {
    font-size: 11px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    margin-bottom: 6px !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
}

.progress-wrapper {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
}

.progress-bar-top {
    flex: 1 !important;
    height: 8px !important;
    background: #e5e7eb !important;
    border-radius: 9999px !important;
    overflow: hidden !important;
}

.progress-fill-top {
    height: 100% !important;
    background: #22c55e !important;
    border-radius: 9999px !important;
    transition: width 0.4s ease !important;
}

.progress-fill-top.xp-fill {
    background: linear-gradient(90deg, #9333ea, #2563eb) !important;
}

.stat-value-top {
    font-size: 12px !important;
    font-weight: 700 !important;
    color: #111827 !important;
    white-space: nowrap !important;
    min-width: fit-content !important;
}

/* Content Wrapper for Sidebar and Main */
.ae-lms-content-wrapper {
    display: flex !important;
    flex: 1 !important;
}

.ae-lms-sidebar {
    width: 320px !important;
    min-width: 320px !important;
    max-width: 320px !important;
    background: white !important;
    border-right: 1px solid #e5e7eb !important;
    height: calc(100vh - 124px) !important;
    position: sticky !important;
    top: 124px !important;
    overflow-y: auto !important;
    overflow-x: hidden !important;
    flex-shrink: 0 !important;
    z-index: 100 !important;
}

.ae-lms-sidebar::-webkit-scrollbar {
    width: 6px;
}

.ae-lms-sidebar::-webkit-scrollbar-track {
    background: #f9fafb;
}

.ae-lms-sidebar::-webkit-scrollbar-thumb {
    background: #d1d5db;
    border-radius: 3px;
}

.ae-lms-sidebar::-webkit-scrollbar-thumb:hover {
    background: #9ca3af;
}

.sidebar-header {
    padding: 16px !important;
    border-bottom: 1px solid #e5e7eb !important;
    background: #f9fafb !important;
}

.course-home-link {
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
    color: #2563eb !important;
    text-decoration: none !important;
    font-weight: 600 !important;
    font-size: 14px !important;
    transition: color 0.2s ease;
}

.course-home-link:hover {
    color: #1d4ed8 !important;
}

.home-icon {
    font-size: 16px !important;
}

.sidebar-modules {
    padding: 12px !important;
}

/* Sidebar Section Title */
.sidebar-section-title {
    font-size: 11px !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    color: #6b7280 !important;
    padding: 12px 16px 8px 16px !important;
    margin-top: 8px !important;
}

.sidebar-module {
    margin-bottom: 4px !important;
    border-radius: 8px !important;
    overflow: hidden;
}

.sidebar-module.current-module {
    background: #eff6ff !important;
}

.sidebar-module-header {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 12px !important;
    cursor: pointer !important;
    transition: background 0.2s ease;
    border-radius: 6px !important;
    user-select: none !important;
}

.sidebar-module-header:hover {
    background: #f9fafb !important;
}

.sidebar-module-header:active {
    background: #f3f4f6 !important;
}

.sidebar-module.current-module .sidebar-module-header {
    background: #dbeafe !important;
}

.sidebar-module.locked .sidebar-module-header {
    opacity: 0.5;
    cursor: not-allowed !important;
}

.sidebar-module .module-toggle {
    font-size: 12px !important;
    color: #6b7280 !important;
    transition: transform 0.2s ease;
    flex-shrink: 0;
}

.sidebar-module.expanded .module-toggle {
    transform: rotate(90deg);
}

.sidebar-module .module-title {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #111827 !important;
    line-height: 1.4 !important;
}

.sidebar-module-items {
    padding: 4px 8px 8px 8px !important;
}

.sidebar-item {
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    padding: 10px 12px !important;
    text-decoration: none !important;
    color: #374151 !important;
    border-radius: 6px !important;
    transition: all 0.2s ease;
    margin-bottom: 2px !important;
}

.sidebar-item:hover {
    background: #f3f4f6 !important;
}

.sidebar-item.current {
    background: #2563eb !important;
    color: white !important;
    font-weight: 600 !important;
}

.sidebar-item.completed {
    background: #f0fdf4 !important;
}

.sidebar-item.completed:hover {
    background: #dcfce7 !important;
}

.sidebar-item.current.completed {
    background: #16a34a !important;
    color: white !important;
}

.sidebar-item .item-icon {
    font-size: 16px !important;
    flex-shrink: 0;
}

.sidebar-item .item-title {
    font-size: 13px !important;
    line-height: 1.3 !important;
    flex: 1;
}

.sidebar-item.current .item-title {
    color: white !important;
}

.ae-lms-single-content {
    flex: 1 !important;
    min-width: 0 !important;
    padding: 0 !important;
}

.ae-lms-lesson-single,
.ae-lms-quiz-single,
.ae-lms-homework-single {
    max-width: 1200px !important;
    margin: 0 auto !important;
    padding: 20px !important;
}

/* Mobile Sidebar Overlay */
.sidebar-overlay {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.5) !important;
    z-index: 998 !important;
    backdrop-filter: blur(2px);
}

.sidebar-overlay.active {
    display: block !important;
}

/* CRITICAL: Practice Hub Desktop - Hide Sidebar Completely */
@media (min-width: 769px) {
    .ae-practice-hub .ae-lms-sidebar {
        display: none !important;
    }
    
    .ae-practice-hub .sidebar-overlay {
        display: none !important;
    }
}

/* Practice Hub Mobile - Sidebar as sliding menu */
@media (max-width: 768px) {
    .ae-practice-hub .ae-lms-sidebar {
        position: fixed !important;
        left: -100% !important;
        top: 0 !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 999 !important;
        transition: left 0.3s ease !important;
        width: 85% !important;
        max-width: 320px !important;
    }
    
    .ae-practice-hub .ae-lms-sidebar.mobile-open {
        left: 0 !important;
    }
    
    .ae-practice-hub .mobile-menu-toggle {
        display: flex !important;
    }
}

/* Single Lesson Page */
.ae-lms-lesson-single {
    max-width: 1200px;
    margin: 0 auto;
}

.mobile-back-link {
    display: none !important;
}

.ae-lms-video-container {
    background: #000 !important;
    border-radius: 8px !important;
    overflow: hidden;
    margin-bottom: 20px !important;
    padding-top: 56.25% !important; /* 16:9 aspect ratio */
    position: relative;
}

.ae-lms-video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
}

/* Compact Lesson Header */
.ae-lms-lesson-header {
    background: white !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.ae-lms-lesson-header .lesson-info h2 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 4px !important;
    color: #111827 !important;
}

.lesson-module-name {
    font-size: 13px !important;
    color: #6b7280 !important;
    margin-bottom: 8px !important;
}

.ae-lms-lesson-header .lesson-meta {
    display: flex !important;
    gap: 12px !important;
    font-size: 13px !important;
    color: #6b7280 !important;
}

.ae-lms-lesson-header .xp-badge {
    color: #9333ea !important;
    font-weight: 600 !important;
}

.lesson-completion-status {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    padding: 6px 12px !important;
    background: #f0fdf4 !important;
    border: 1px solid #22c55e !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #16a34a !important;
    margin-top: 8px !important;
}

.ae-lms-lesson-content {
    background: white !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
    line-height: 1.6 !important;
}

.ae-lms-lesson-content p {
    color: #374151 !important;
    margin-bottom: 16px !important;
}

/* Resources */
.ae-lms-resources {
    background: white !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.ae-lms-resources h3 {
    font-size: 16px !important;
    font-weight: bold !important;
    margin-bottom: 12px !important;
    color: #111827 !important;
}

.resources-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 8px !important;
}

.resource-item {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 12px !important;
    background: #f9fafb !important;
    border-radius: 6px !important;
    text-decoration: none !important;
    color: inherit !important;
    transition: background 0.2s ease;
}

.resource-item:hover {
    background: #f3f4f6 !important;
}

.resource-icon {
    font-size: 18px !important;
    color: #2563eb !important;
}

.resource-title {
    font-weight: 600 !important;
    color: #111827 !important;
    font-size: 14px !important;
}

/* Quiz Page */
.ae-lms-quiz-single {
    max-width: 800px;
    margin: 0 auto;
}

.ae-lms-quiz-header {
    background: white !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.ae-lms-quiz-header h2 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: #111827 !important;
}

.ae-lms-quiz-header .quiz-info {
    display: flex !important;
    gap: 16px !important;
    font-size: 13px !important;
    color: #6b7280 !important;
}

.ae-lms-quiz-content {
    background: white !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.ae-quiz-form {
    background: white !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.quiz-question {
    margin-bottom: 28px !important;
    padding-bottom: 28px !important;
    border-bottom: 1px solid #e5e7eb !important;
}

.quiz-question:last-child {
    border-bottom: none !important;
}

.quiz-question h3 {
    font-size: 14px !important;
    font-weight: 600 !important;
    color: #9333ea !important;
    margin-bottom: 10px !important;
}

.question-text {
    font-size: 16px !important;
    font-weight: 600 !important;
    margin-bottom: 14px !important;
    color: #111827 !important;
}

.question-answers {
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
}

.answer-option {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    padding: 14px !important;
    background: #f9fafb !important;
    border: 2px solid #e5e7eb !important;
    border-radius: 6px !important;
    cursor: pointer !important;
    transition: all 0.2s ease;
}

.answer-option:hover {
    background: #f3f4f6 !important;
    border-color: #2563eb !important;
}

.answer-option input[type="radio"] {
    width: 18px !important;
    height: 18px !important;
    cursor: pointer !important;
}

.answer-option span {
    color: #111827 !important;
    font-size: 14px !important;
}

.btn-submit-quiz {
    width: 100% !important;
    padding: 14px !important;
    background: #2563eb !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s ease;
}

.btn-submit-quiz:hover {
    background: #1d4ed8 !important;
}

/* Homework Page */
.ae-lms-homework-single {
    max-width: 800px;
    margin: 0 auto;
}

.ae-lms-homework-header {
    background: white !important;
    border-radius: 8px !important;
    padding: 16px 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.ae-lms-homework-header h2 {
    font-size: 18px !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: #111827 !important;
}

.ae-lms-homework-header .homework-info {
    display: flex !important;
    gap: 16px !important;
    font-size: 13px !important;
    color: #6b7280 !important;
}

.ae-lms-homework-content {
    background: white !important;
    border-radius: 8px !important;
    padding: 20px !important;
    margin-bottom: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.ae-homework-submission {
    background: white !important;
    border-radius: 8px !important;
    padding: 20px !important;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1) !important;
}

.ae-homework-submission h3 {
    font-size: 18px !important;
    font-weight: bold !important;
    margin-bottom: 16px !important;
    color: #111827 !important;
}

.form-group {
    margin-bottom: 18px !important;
}

.form-group label {
    display: block !important;
    font-weight: 600 !important;
    margin-bottom: 8px !important;
    color: #111827 !important;
    font-size: 14px !important;
}

.form-group input[type="file"],
.form-group input[type="url"],
.form-group textarea {
    width: 100% !important;
    padding: 10px !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 6px !important;
    font-size: 14px !important;
}

.form-group textarea {
    resize: vertical !important;
    min-height: 100px !important;
}

.btn-primary {
    width: 100% !important;
    padding: 12px !important;
    background: #2563eb !important;
    color: white !important;
    border: none !important;
    border-radius: 8px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.2s ease;
}

.btn-primary:hover {
    background: #1d4ed8 !important;
}

/* Responsive */
@media (max-width: 1024px) {
    .ae-lms-sidebar {
        width: 280px !important;
        min-width: 280px !important;
    }
}

@media (max-width: 768px) {
    /* Course Overview Page */
    .ae-lms-course-overview .ae-lms-hero {
        padding: 20px !important;
        border-radius: 0 !important;
    }
    
    .ae-lms-course-overview .ae-lms-hero h1 {
        font-size: 24px !important;
    }
    
    .ae-lms-course-overview .ae-lms-hero .subtitle {
        font-size: 14px !important;
    }
    
    .ae-lms-course-overview .ae-lms-stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    .ae-lms-course-overview .profile-card {
        flex-direction: column !important;
        align-items: center !important;
        text-align: center !important;
    }
    
    .ae-lms-course-overview .profile-stats-grid {
        grid-template-columns: 1fr !important;
    }
    
    /* Practice CTA Mobile */
    .practice-cta-content {
        flex-direction: column !important;
        text-align: center !important;
        gap: 20px !important;
    }
    
    .practice-cta-icon {
        font-size: 64px !important;
    }
    
    .practice-cta-text h3 {
        font-size: 24px !important;
    }
    
    .practice-cta-features {
        justify-content: center !important;
    }
    
    .btn-practice-cta {
        width: 100% !important;
        justify-content: center !important;
    }
    
    /* Single Pages */
    .ae-lms-single-hero,
    .practice-hub-hero {
        padding: 14px 16px !important;
        top: 0 !important;
        gap: 12px !important;
    }
    
    .ae-lms-single-hero h1,
    .practice-hub-hero h1 {
        font-size: 18px !important;
    }
    
    .mobile-menu-toggle {
        display: flex !important;
    }
    
    .ae-lms-top-bar {
        padding: 10px 16px !important;
        top: 52px !important;
    }
    
    .top-bar-container {
        flex-direction: column !important;
        gap: 12px !important;
        align-items: stretch !important;
    }
    
    .top-bar-stat {
        width: 100% !important;
    }
    
    .ae-lms-single-layout {
        flex-direction: column !important;
    }
    
    /* Mobile Sidebar - Fixed positioning with proper scrolling */
    .ae-lms-sidebar {
        display: none !important;
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        width: 85% !important;
        max-width: 320px !important;
        height: 100vh !important;
        max-height: 100vh !important;
        z-index: 999 !important;
        box-shadow: 2px 0 12px rgba(0, 0, 0, 0.2) !important;
        overflow-y: auto !important;
        overflow-x: hidden !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .ae-lms-sidebar.mobile-open {
        display: block !important;
    }
    
    /* Ensure sidebar content fits properly on mobile */
    .ae-lms-sidebar .sidebar-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 10 !important;
        background: #f9fafb !important;
    }
    
    .ae-lms-sidebar .sidebar-modules {
        padding: 12px !important;
        padding-bottom: 60px !important; /* Extra padding at bottom for last items */
    }
    
    /* Mobile sidebar items - better touch targets */
    .sidebar-module-header {
        padding: 14px 12px !important;
        min-height: 48px !important;
    }
    
    .sidebar-item {
        padding: 12px !important;
        min-height: 48px !important;
    }
    
    .mobile-back-link {
        display: none !important;
    }
    
    .ae-lms-lesson-single,
    .ae-lms-quiz-single,
    .ae-lms-homework-single {
        padding: 16px !important;
    }
    
    .ae-lms-course-overview .module-header {
        flex-direction: column !important;
        align-items: flex-start !important;
    }
}