    :root {
        --primary-color: #2b2d6d;
        --primary-dark: #8e2ab8;
        --dark-color: #1c1d1f;
        --gray-color: #6a6f73;
        --light-gray: #f7f9fa;
        --white: #ffffff;
    }

    body {
        font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Helvetica Neue', sans-serif;
        color: var(--dark-color);
        background: var(--light-gray);
        line-height: 1.5;
    }
/* Course Hero */
.course-hero {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    color: white;
    padding: 60px 20px;
    position: relative;
    overflow: hidden;
}

.course-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.2);
    z-index: 1;
}

.hero-container {
    max-width: 1400px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 16px;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 18px;
    opacity: 0.95;
    margin-bottom: 24px;
    line-height: 1.5;
}

.hero-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
    margin-bottom: 24px;
}

.hero-badge {
    background: rgba(255, 255, 255, 0.2);
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.hero-rating {
    display: flex;
    align-items: center;
    gap: 8px;
}

.hero-rating .stars {
    color: #fbbf24;
    font-size: 14px;
}

.hero-rating span {
    font-size: 14px;
    font-weight: 600;
}

.hero-instructor {
    font-size: 14px;
    opacity: 0.9;
}

.hero-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
}

.thumbnail-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    transition: all 0.3s;
}

.hero-thumbnail:hover .play-button {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Main Content */
.course-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 60px 20px;
    display: grid;
    grid-template-columns: 1fr 360px;
    gap: 40px;
}

.course-main {
    background: white;
    border-radius: 12px;
    padding: 40px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.section {
    margin-bottom: 40px;
    padding-bottom: 40px;
    border-bottom: 1px solid #e5e7eb;
}

.section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.section-title {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 24px;
}

.objectives-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 16px;
}

.objective-item {
    display: flex;
    gap: 12px;
    padding: 16px;
    background: #f7f9fa;
    border-radius: 8px;
    border-left: 4px solid var(--primary-color);
}

.objective-item i {
    color: var(--primary-color);
    font-size: 18px;
    margin-top: 2px;
}

.objective-item span {
    font-size: 14px;
    color: #1c1d1f;
}

/* Curriculum */
.curriculum-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #e5e7eb;
}

.curriculum-stats {
    display: flex;
    gap: 20px;
    font-size: 14px;
    color: #6a6f73;
}

.curriculum-stats i {
    color: var(--primary-color);
    margin-right: 6px;
}

.module-card {
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    margin-bottom: 12px;
    overflow: hidden;
}

.module-header {
    background: #f7f9fa;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: all 0.3s;
}

.module-header:hover {
    background: #ede7f6;
}

.module-info {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.module-title {
    font-weight: 600;
    font-size: 15px;
}

.module-meta {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #6a6f73;
}

.module-chevron {
    color: var(--primary-color);
    transition: transform 0.3s;
}

.module-header.open .module-chevron {
    transform: rotate(180deg);
}

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

.lesson-item {
    padding: 14px 20px;
    border-bottom: 1px solid #e5e7eb;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s;
}

.lesson-item:hover {
    background: #f7f9fa;
}

.lesson-item:last-child {
    border-bottom: none;
}

.lesson-content {
    display: flex;
    align-items: center;
    gap: 12px;
    flex: 1;
}

.lesson-icon {
    color: var(--primary-color);
    width: 20px;
    text-align: center;
}

.lesson-title {
    font-size: 14px;
    font-weight: 500;
}

.lesson-meta {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 12px;
    color: #6a6f73;
}

.preview-btn {
    padding: 6px 12px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.preview-btn:hover {
    background: #8e2ab8;
}

.quiz-badge {
    background: #fff3e0;
    color: #f57c00;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
}

/* Instructor Section */
.instructor-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
}

.instructor-card {
    background: #f7f9fa;
    border-radius: 8px;
    padding: 24px;
    text-align: center;
}

.instructor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
}

.instructor-name {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 4px;
}

.instructor-title {
    font-size: 13px;
    color: #6a6f73;
    margin-bottom: 12px;
}

.instructor-desc {
    font-size: 13px;
    color: #6a6f73;
    line-height: 1.5;
}

/* Sidebar */
.course-sidebar {
    position: sticky;
    top: 80px;
    height: fit-content;
}

.sidebar-card {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.includes-title {
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.includes-list li {
    display: flex;
    gap: 12px;
    padding: 10px 0;
    font-size: 13px;
    color: #6a6f73;
    border-bottom: 1px solid #e5e7eb;
}

.includes-list li:last-child {
    border-bottom: none;
}

.includes-list i {
    color: var(--primary-color);
    width: 18px;
    margin-top: 2px;
}

.enroll-btn {
    width: 100%;
    padding: 14px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
    margin-top: 24px;
    margin-bottom: 12px;
}

.enroll-btn:hover {
    background: #8e2ab8;
}

.wishlist-btn {
    width: 100%;
    padding: 12px;
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
}

.wishlist-btn:hover {
    background: #f7f9fa;
}

/* Modal */
.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    align-items: center;
    justify-content: center;
}

.modal.show {
    display: flex;
}

.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow-y: auto;
}

.modal-header {
    background: var(--primary-color);
    color: white;
    padding: 20px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.modal-body {
    padding: 0;
}

.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    background: #000;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.close-btn {
    background: none;
    border: none;
    color: white;
    font-size: 24px;
    cursor: pointer;
    transition: transform 0.2s;
}

.close-btn:hover {
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .hero-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .course-container {
        grid-template-columns: 1fr;
    }

    .course-sidebar {
        position: relative;
        top: auto;
    }
}

@media (max-width: 768px) {
    .course-hero {
        padding: 40px 20px;
    }

    .hero-content h1 {
        font-size: 32px;
    }

    .course-main {
        padding: 24px;
    }

    .section {
        margin-bottom: 32px;
        padding-bottom: 32px;
    }

    .objectives-grid {
        grid-template-columns: 1fr;
    }

    .instructor-grid {
        grid-template-columns: 1fr;
    }
}

/* Related Topics Styles */
.topics-container {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-top: 20px;
}

.topic-tag {
    background: var(--light-gray);
    color: var(--dark-color);
    padding: 8px 16px;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    border: 1px solid #e5e7eb;
    transition: all 0.2s ease;
}

.topic-tag:hover {
    background: var(--primary-color);
    color: white;
    border-color: var(--primary-color);
    transform: translateY(-2px);
}

/* Reviews & Ratings Styles */
.reviews-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 40px;
    gap: 40px;
}

.rating-overview {
    display: flex;
    gap: 40px;
    align-items: center;
}

.average-rating {
    text-align: center;
}

.rating-number {
    font-size: 48px;
    font-weight: 700;
    color: var(--dark-color);
    line-height: 1;
}

.rating-stars {
    margin: 8px 0;
    color: #f5a623;
    font-size: 18px;
}

.rating-text {
    color: var(--gray-color);
    font-size: 14px;
}

.rating-breakdown {
    flex: 1;
}

.rating-bar {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 8px;
}

.rating-label {
    font-size: 14px;
    color: var(--gray-color);
    width: 60px;
}

.rating-progress {
    flex: 1;
    background: var(--light-gray);
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
}

.rating-progress-bar {
    background: #f5a623;
    height: 100%;
    transition: width 0.3s ease;
}

.rating-count {
    font-size: 14px;
    color: var(--gray-color);
    width: 30px;
    text-align: right;
}

/* Add Review Form */
.add-review-form {
    background: var(--light-gray);
    padding: 24px;
    border-radius: 8px;
    margin-bottom: 32px;
}

.add-review-form h3 {
    margin-bottom: 20px;
    color: var(--dark-color);
}

.rating-input {
    margin-bottom: 20px;
}

.rating-input label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.star-rating {
    display: flex;
    gap: 4px;
}

.star-rating i {
    font-size: 24px;
    color: #ddd;
    cursor: pointer;
    transition: color 0.2s ease;
}

.star-rating i:hover,
.star-rating i.active {
    color: #f5a623;
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 4px;
    font-family: inherit;
    resize: vertical;
    transition: border-color 0.2s ease;
}

.form-group textarea:focus {
    outline: none;
    border-color: var(--primary-color);
}

/* Reviews List */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.no-reviews {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-color);
}

.no-reviews i {
    font-size: 48px;
    margin-bottom: 16px;
    opacity: 0.5;
}

.review-card {
    background: white;
    padding: 24px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 16px;
}

.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

.reviewer-avatar {
    width: 40px;
    height: 40px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
}

.reviewer-name {
    font-weight: 600;
    color: var(--dark-color);
}

.review-date {
    font-size: 12px;
    color: var(--gray-color);
}

.review-rating {
    color: #f5a623;
}

.review-content p {
    line-height: 1.6;
    color: var(--dark-color);
    margin: 0;
}

/* Sidebar Button States */
.continue-btn {
    background: #10b981;
}

.continue-btn:hover {
    background: #059669;
}

.enroll-btn,
.continue-btn {
    width: 100%;
    margin-bottom: 12px;
}

/* Fix course preview image and video container */
.hero-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    background: rgba(0, 0, 0, 0.3);
    border-radius: 12px;
    overflow: hidden;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-thumbnail img.preview-image {
    width: 100%;
    height: 100%;
    object-fit: contain;
    /* Change from cover to contain */
    background: #000;
    /* Add black background for better contrast */
}

.hero-thumbnail .thumbnail-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: rgba(255, 255, 255, 0.8);
}

/* Fix instructor avatar */
.instructor-avatar {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    margin: 0 auto 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: white;
    overflow: hidden;
    /* Ensure image doesn't overflow */
    position: relative;
}

.instructor-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Use cover for profile photos to fill circle */
    border-radius: 50%;
}

.instructor-avatar i {
    position: absolute;
    font-size: 48px;
    color: white;
}

/* Fix video container in modal */
.video-container {
    position: relative;
    width: 100%;
    height: 0;
    padding-bottom: 56.25%;
    /* 16:9 aspect ratio */
    background: #000;
}

.video-container video,
.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
    object-fit: contain;
    /* Ensure video content fits properly */
}

/* Improve modal video display */
.modal-content {
    background: white;
    border-radius: 12px;
    width: 90%;
    max-width: 900px;
    max-height: 90vh;
    overflow: hidden;
    /* Change from auto to hidden for better video display */
}

.modal-body {
    padding: 0;
    background: #000;
    /* Black background for video */
}

/* Enhanced play button */
.play-button {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    border: 2px solid white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    color: white;
    transition: all 0.3s;
    z-index: 3;
}

.hero-thumbnail:hover .play-button {
    background: rgba(255, 255, 255, 0.3);
    transform: translate(-50%, -50%) scale(1.1);
}

/* Loading state for images */
.hero-thumbnail img {
    transition: opacity 0.3s ease;
}

.hero-thumbnail img.loading {
    opacity: 0.7;
}

/* Fallback for broken images */
.hero-thumbnail img::after {
    content: "📹 Course Preview";
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    color: white;
    font-size: 16px;
    font-weight: 600;
    text-align: center;
}