/* Banner Styling */
.course-banner-container {
position: relative;
width: 100%;
max-height: 720px;
overflow: hidden;
background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
}

.course-banner-image {
width: 100%;
height: 100%;
max-height: 720px;
object-fit: cover;
object-position: center;
display: block;
opacity: 0.9;
}

.banner-overlay {
position: absolute;
bottom: 0;
left: 0;
right: 0;
height: 200px;
background: linear-gradient(to top, rgba(255,255,255,1), transparent);
}

/* Container */
.course-detail-container {
margin-top: -120px;
position: relative;
z-index: 10;
padding-bottom: 4rem;
}

/* Course Header Card */
.course-header-card {
background: white;
padding: 2.5rem;
border-radius: 16px;
box-shadow: 0 10px 40px rgba(0,0,0,0.1);
margin-bottom: 2rem;
}

.course-title {
font-size: 2.5rem;
font-weight: 700;
color: #1a1a1a;
line-height: 1.2;
}

<!-- Badge */
.crash-course-badge {
display: inline-flex;
align-items: center;
gap: 0.5rem;
background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%);
color: white;
padding: 0.5rem 1rem;
border-radius: 50px;
font-size: 0.875rem;
font-weight: 700;
text-transform: uppercase;
letter-spacing: 1px;
box-shadow: 0 4px 15px rgba(139, 92, 246, 0.3);
}

.crash-course-badge svg {
stroke: white;
}

.badge.bg-purple {
background-color: #8b5cf6 !important;
padding: 0.5rem 1rem;
font-size: 0.875rem;
font-weight: 600;
text-transform: uppercase;
letter-spacing: 0.5px;
}

/* Course Meta */
.course-meta {
border-top: 1px solid #e5e7eb;
padding-top: 1.5rem;
}

.meta-item {
display: flex;
align-items: center;
gap: 0.5rem;
color: #6b7280;
font-weight: 500;
}

.meta-item svg {
flex-shrink: 0;
}

/* Course Sections */
.course-section {
background: white;
padding: 2.5rem;
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0,0,0,0.06);
margin-bottom: 2rem;
}

.section-title {
font-size: 1.75rem;
font-weight: 700;
color: #1a1a1a;
margin-bottom: 1.5rem;
padding-bottom: 1rem;
border-bottom: 3px solid #8b5cf6;
}

/* Course Description */
.course-description {
font-size: 1.1rem;
line-height: 1.8;
color: #4b5563;
}

.course-description p {
margin-bottom: 1rem;
}

/* Learning Objectives */
.objectives-list {
list-style: none;
padding: 0;
}

.objectives-list li {
display: flex;
align-items: flex-start;
gap: 1rem;
padding: 0.75rem 0;
font-size: 1.05rem;
color: #374151;
}

.objectives-list li svg {
flex-shrink: 0;
margin-top: 0.25rem;
}

/* Curriculum List */
.curriculum-list {
display: flex;
flex-direction: column;
gap: 1rem;
}

.curriculum-item {
display: flex;
justify-content: space-between;
align-items: center;
padding: 1.25rem;
background: #f9fafb;
border-radius: 12px;
border: 2px solid #e5e7eb;
transition: all 0.3s ease;
}

.curriculum-item:hover {
border-color: #8b5cf6;
background: #faf5ff;
transform: translateX(5px);
}

.lesson-info {
display: flex;
align-items: flex-start;
gap: 1rem;
flex: 1;
}

.lesson-number {
width: 40px;
height: 40px;
display: flex;
align-items: center;
justify-content: center;
background: #8b5cf6;
color: white;
border-radius: 10px;
font-weight: 700;
flex-shrink: 0;
}

.lesson-details {
flex: 1;
}

.lesson-title {
font-size: 1.1rem;
font-weight: 600;
color: #1a1a1a;
margin-bottom: 0.25rem;
}

.lesson-description {
font-size: 0.9rem;
color: #6b7280;
margin: 0;
}

.lesson-duration {
display: flex;
align-items: center;
gap: 0.5rem;
color: #6b7280;
font-size: 0.9rem;
font-weight: 500;
}

/* Instructor Card */
.instructor-card {
display: flex;
gap: 1.5rem;
align-items: flex-start;
}

.instructor-avatar {
width: 80px;
height: 80px;
border-radius: 50%;
overflow: hidden;
flex-shrink: 0;
background: #f3f4f6;
display: flex;
align-items: center;
justify-content: center;
}

.instructor-avatar img {
width: 100%;
height: 100%;
object-fit: cover;
}

.avatar-placeholder {
width: 100%;
height: 100%;
display: flex;
align-items: center;
justify-content: center;
}

.instructor-name {
font-size: 1.25rem;
font-weight: 700;
color: #1a1a1a;
margin-bottom: 0.25rem;
}

.instructor-title {
color: #8b5cf6;
font-weight: 600;
margin-bottom: 0.75rem;
}

.instructor-bio {
color: #6b7280;
line-height: 1.6;
margin: 0;
}

/* Sidebar */
.course-sidebar {
position: sticky;
top: 2rem;
}

/* Enrollment Card */
.enrollment-card {
background: white;
padding: 2rem;
border-radius: 16px;
box-shadow: 0 10px 40px rgba(0,0,0,0.1);
}

.course-price {
text-align: center;
padding: 1.5rem 0;
border-bottom: 1px solid #e5e7eb;
margin-bottom: 1.5rem;
}

.price-amount {
font-size: 2.5rem;
font-weight: 700;
color: #8b5cf6;
display: block;
}

.price-amount.free-badge {
background: linear-gradient(135deg, #10b981 0%, #059669 100%);
-webkit-background-clip: text;
-webkit-text-fill-color: transparent;
background-clip: text;
}

.free-subtext {
color: #6b7280;
font-size: 0.95rem;
margin-top: 0.5rem;
margin-bottom: 0;
}

.original-price {
font-size: 1.25rem;
color: #9ca3af;
text-decoration: line-through;
display: block;
margin-top: 0.5rem;
}

/* Buttons */
.btn-purple {
background-color: #8b5cf6;
border-color: #8b5cf6;
color: white;
font-weight: 600;
transition: all 0.3s ease;
display: flex;
align-items: center;
justify-content: center;
}

.btn-purple:hover {
background-color: #7c3aed;
border-color: #7c3aed;
color: white;
transform: translateY(-2px);
box-shadow: 0 8px 20px rgba(139, 92, 246, 0.4);
}

.start-course-btn {
font-size: 1.1rem;
padding: 1rem;
}

.btn-outline-purple {
border-color: #8b5cf6;
color: #8b5cf6;
font-weight: 600;
transition: all 0.3s ease;
}

.btn-outline-purple:hover {
background-color: #8b5cf6;
border-color: #8b5cf6;
color: white;
}

/* Course Features */
.course-features {
padding-top: 1.5rem;
border-top: 1px solid #e5e7eb;
}

.features-title {
font-size: 1rem;
font-weight: 700;
color: #1a1a1a;
margin-bottom: 1rem;
}

.features-list {
list-style: none;
padding: 0;
margin: 0;
}

.features-list li {
display: flex;
align-items: center;
gap: 0.75rem;
padding: 0.5rem 0;
color: #4b5563;
font-size: 0.95rem;
}

/* Share Card */
.share-card {
background: white;
padding: 1.5rem;
border-radius: 16px;
box-shadow: 0 4px 20px rgba(0,0,0,0.06);
}

.share-title {
font-size: 1rem;
font-weight: 700;
color: #1a1a1a;
margin-bottom: 1rem;
}

.share-buttons {
display: flex;
gap: 0.75rem;
}

.share-buttons .btn {
flex: 1;
}

/* Responsive */
@media (max-width: 991px) {
.course-detail-container {
margin-top: -60px;
}
.course-title {
font-size: 2rem;
}
.course-sidebar {
position: static;
margin-top: 2rem;
}
}

@media (max-width: 768px) {
.course-header-card,
.course-section,
.enrollment-card {
padding: 1.5rem;
}
.section-title {
font-size: 1.5rem;
}
.instructor-card {
flex-direction: column;
align-items: center;
text-align: center;
}
}

 * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
            background-color: #f5f7fa;
            color: #1a1a1a;
        }

        /* Code Blocks */
        pre {
            color: #ffffff;
            background-color: #1e1e1e;
            padding: 1.5rem;
            border-radius: 12px;
            overflow-x: auto;
            margin: 1.5rem 0;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
            position: relative;
            border: 1px solid #2d2d2d;
        }

        pre code {
            font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
            font-size: 0.9rem;
            line-height: 1.6;
        }

        /* Inline Code */
        code {
            background: #f3f4f6;
            padding: 0.2rem 0.5rem;
            border-radius: 4px;
            font-size: 0.9em;
            color: #8b5cf6;
            font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
        }

        pre code {
            background: none;
            padding: 0;
            color: inherit;
        }

        /* Purple Theme Colors */
        .bg-darkpurple {
            background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%) !important;
        }

        .btn-primary {
            background: linear-gradient(135deg, #8b5cf6 0%, #7c3aed 100%) !important;
            border: none !important;
            padding: 0.75rem 1.5rem;
            font-weight: 600;
            border-radius: 8px;
            transition: all 0.3s ease;
            box-shadow: 0 4px 12px rgba(139, 92, 246, 0.3);
        }

        .btn-primary:hover {
            background: linear-gradient(135deg, #7c3aed 0%, #6d28d9 100%) !important;
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(139, 92, 246, 0.4);
        }

        .btn-primary.disabled {
            opacity: 0.5;
            cursor: not-allowed;
            transform: none !important;
        }

        .btn-primary a {
            text-decoration: none;
            color: white;
        }

        /* Sidebar */
        #sidenav {
            background: linear-gradient(180deg, #6d28d9 0%, #5b21b6 100%);
            color: white;
            height: 100vh;
            position: fixed;
            width: 280px;
            overflow-y: auto;
            z-index: 1030;
            box-shadow: 4px 0 20px rgba(0,0,0,0.1);
            padding-top: 1rem;
        }

        #sidenav h2 {
            padding: 1.5rem 1rem;
            font-size: 1.3rem;
            font-weight: 700;
            border-bottom: 2px solid rgba(255,255,255,0.2);
            margin-bottom: 0.5rem;
        }

        #sidenav a {
            color: rgba(255,255,255,0.9);
            padding: 0.875rem 1.5rem;
            display: block;
            text-decoration: none;
            transition: all 0.3s ease;
            border-left: 3px solid transparent;
            font-weight: 500;
        }

        #sidenav a:hover {
            background-color: rgba(255,255,255,0.1);
            border-left-color: #10b981;
            padding-left: 2rem;
            color: #fff;
        }

        #sidenav a.active {
            background-color: rgba(255,255,255,0.15);
            border-left-color: #10b981;
            color: #fff;
            font-weight: 600;
        }

        /* Close button for mobile */
        #sidenav .w3-button {
            color: white;
            font-size: 2rem;
            padding: 0.5rem 1rem;
        }

        /* Main Content */
        .w3-main {
            margin-left: 280px;
            min-height: 100vh;
            background-color: #f5f7fa;
        }

        /* Header/Navbar */
        header {
            background: linear-gradient(135deg, #6d28d9 0%, #5b21b6 100%);
            box-shadow: 0 2px 10px rgba(0,0,0,0.1);
            position: sticky;
            top: 0;
            z-index: 1020;
        }

        .navbar-brand {
            font-size: 1.5rem;
            font-weight: 700;
            color: white !important;
            letter-spacing: 1px;
        }

        .navbar-dark .navbar-nav .nav-link {
            color: rgba(255,255,255,0.9) !important;
            font-weight: 500;
            padding: 0.5rem 1rem;
            transition: all 0.3s ease;
            border-radius: 6px;
            margin: 0 0.25rem;
        }

        .navbar-dark .navbar-nav .nav-link:hover {
            background-color: rgba(255,255,255,0.1);
            color: white !important;
        }

        .dropdown-menu {
            background: white;
            border: none;
            box-shadow: 0 10px 30px rgba(0,0,0,0.15);
            border-radius: 12px;
            padding: 0.5rem;
            margin-top: 0.5rem;
        }

        .dropdown-item {
            padding: 0.75rem 1rem;
            border-radius: 8px;
            transition: all 0.3s ease;
            font-weight: 500;
        }

        .dropdown-item:hover {
            background-color: #f3f4f6;
            color: #8b5cf6;
        }

        /* Main Content Area */
        main.container-fluid {
            background: white;
            border-radius: 16px;
            padding: 2.5rem;
            margin: 2rem auto;
            max-width: 1200px;
            box-shadow: 0 4px 20px rgba(0,0,0,0.06);
        }

        main h1 {
            font-size: 2.5rem;
            font-weight: 700;
            color: #1a1a1a;
            margin-bottom: 1.5rem;
            padding-bottom: 1rem;
            border-bottom: 3px solid #8b5cf6;
        }

        main h2 {
            font-size: 2rem;
            font-weight: 700;
            color: #8b5cf6;
            margin-top: 2.5rem;
            margin-bottom: 1rem;
        }

        main h3 {
            font-size: 1.5rem;
            font-weight: 600;
            color: #6d28d9;
            margin-top: 2rem;
            margin-bottom: 0.875rem;
        }

        main p {
            font-size: 1.1rem;
            line-height: 1.8;
            color: #4b5563;
            margin-bottom: 1.25rem;
        }

        main ul, main ol {
            margin-bottom: 1.5rem;
            padding-left: 2rem;
        }

        main li {
            margin-bottom: 0.75rem;
            line-height: 1.7;
            color: #4b5563;
        }

        main a {
            color: #8b5cf6;
            text-decoration: none;
            font-weight: 500;
            transition: all 0.3s ease;
        }

        main a:hover {
            color: #6d28d9;
            text-decoration: underline;
        }

        main img {
            max-width: 100%;
            height: auto;
            border-radius: 12px;
            margin: 2rem 0;
            box-shadow: 0 4px 15px rgba(0,0,0,0.1);
        }

        main blockquote {
            border-left: 4px solid #8b5cf6;
            padding-left: 1.5rem;
            margin: 2rem 0;
            font-style: italic;
            color: #6b7280;
            background: #f9fafb;
            padding: 1.5rem;
            border-radius: 8px;
        }

        /* Pagination Buttons */
        .pager {
            list-style: none;
            padding: 1.5rem 0;
            margin: 0;
        }

        .pager li {
            margin: 0;
        }

        .pager .btn-primary {
            min-width: 150px;
        }

        hr {
            border: none;
            height: 2px;
            background: linear-gradient(90deg, transparent, #e5e7eb, transparent);
            margin: 2rem 0;
        }

        /* Footer */
        footer {
            background: linear-gradient(135deg, #6d28d9 0%, #10b981 100%);
            color: white;
            margin-top: 4rem;
        }

        footer h5 {
            font-weight: 700;
            margin-bottom: 1rem;
        }

        footer a {
            color: #d3b7ff;
            transition: all 0.3s ease;
        }

        footer a:hover {
            color: #fff;
            text-decoration: none;
        }

        footer .btn-outline-light {
            border-color: rgba(255,255,255,0.5);
            color: white;
            transition: all 0.3s ease;
        }

        footer .btn-outline-light:hover {
            background-color: rgba(255,255,255,0.2);
            border-color: white;
        }

        /* Responsive Design */
        @media (max-width: 992px) {
            #sidenav {
                width: 100%;
                height: auto;
                position: relative;
            }

            .w3-main {
                margin-left: 0;
            }

            main.container-fluid {
                padding: 1.5rem;
                margin: 1rem;
            }

            main h1 {
                font-size: 2rem;
            }

            .pager .btn-primary {
                min-width: 120px;
                font-size: 0.9rem;
            }
        }

        @media (max-width: 768px) {
            main h1 {
                font-size: 1.75rem;
            }

            main h2 {
                font-size: 1.5rem;
            }

            main p {
                font-size: 1rem;
            }

            .pager {
                flex-direction: column;
                gap: 0.5rem;
            }

            .pager .btn-primary {
                width: 100%;
            }
        }

        /* Smooth Scrolling */
        html {
            scroll-behavior: smooth;
        }

        /* Custom Scrollbar */
        #sidenav::-webkit-scrollbar {
            width: 8px;
        }

        #sidenav::-webkit-scrollbar-track {
            background: rgba(255,255,255,0.1);
        }

        #sidenav::-webkit-scrollbar-thumb {
            background: rgba(255,255,255,0.3);
            border-radius: 4px;
        }

        #sidenav::-webkit-scrollbar-thumb:hover {
            background: rgba(255,255,255,0.5);
        }

        /* Table Styling */
        table {
            width: 100%;
            border-collapse: collapse;
            margin: 1.5rem 0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
            border-radius: 8px;
            overflow: hidden;
        }

        th {
            background: #8b5cf6;
            color: white;
            padding: 1rem;
            text-align: left;
            font-weight: 600;
        }

        td {
            padding: 1rem;
            border-bottom: 1px solid #e5e7eb;
        }

        tr:hover {
            background-color: #f9fafb;
        }

        /* Alert/Note Boxes */
        .alert {
            padding: 1.25rem;
            border-radius: 8px;
            margin: 1.5rem 0;
            border-left: 4px solid;
        }

        .alert-info {
            background-color: #eff6ff;
            border-color: #3b82f6;
            color: #1e40af;
        }

        .alert-warning {
            background-color: #fffbeb;
            border-color: #f59e0b;
            color: #92400e;
        }

        .alert-success {
            background-color: #f0fdf4;
            border-color: #10b981;
            color: #065f46;
        }

        .alert-danger {
            background-color: #fef2f2;
            border-color: #ef4444;
            color: #991b1b;
        }