/* ===== UDEMY-STYLE COURSE DETAIL PAGE ===== */

/* Page Layout */
.course-page {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0;
}

/* Hero Section - Light Mode (Default) */
html:not([data-bs-theme="dark"]) .course-hero,
.course-hero {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    padding: 2rem 0 3rem;
    margin-bottom: 2rem;
}

/* Hero Section - Dark Mode */
html[data-bs-theme="dark"] .course-hero,
body[data-bs-theme="dark"] .course-hero {
    background: linear-gradient(135deg, var(--theme-bg-surface) 0%, var(--theme-bg-body) 100%) !important;
}

.course-hero-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 3rem;
    align-items: start;
}

@media (max-width: 991px) {
    .course-hero-inner {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Course Cover */
.course-cover-wrapper {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.course-cover {
    width: 100%;
    aspect-ratio: 16/9;
    object-fit: cover;
    display: block;
}

.course-cover-placeholder {
    width: 100%;
    aspect-ratio: 16/9;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
}

.play-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(0,0,0,0.3);
    transition: background 0.3s ease;
}

.play-overlay:hover {
    background: rgba(0,0,0,0.5);
}

.play-button-large {
    width: 80px;
    height: 80px;
    background: rgba(255,255,255,0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: transform 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    box-shadow: 0 8px 30px rgba(0,0,0,0.4);
}

.play-button-large:hover {
    transform: scale(1.1);
    background: #fff;
}

.play-button-large i {
    color: var(--brand-primary);
    font-size: 2rem;
    margin-left: 4px;
}

/* Course Info (Right Side) */
.course-info-section {
    color: #212529;
}

html[data-bs-theme="dark"] .course-info-section,
body[data-bs-theme="dark"] .course-info-section {
    color: var(--theme-text-main);
}

.course-badge {
    display: inline-block;
    background: rgba(0,0,0,0.05);
    color: #6c757d;
    padding: 0.35rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

html[data-bs-theme="dark"] .course-badge,
body[data-bs-theme="dark"] .course-badge {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.8);
}

.course-title-main {
    font-size: 2.25rem;
    font-weight: 800;
    line-height: 1.2;
    margin-bottom: 1rem;
    color: #212529;
}

html[data-bs-theme="dark"] .course-title-main,
body[data-bs-theme="dark"] .course-title-main {
    color: var(--theme-text-main);
}

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

.course-rating {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1rem;
    flex-wrap: wrap;
}

.course-rating-stars {
    display: flex;
    gap: 0.15rem;
}

.course-rating-stars i {
    color: #f2b01e;
    font-size: 1rem;
}

.course-rating-text {
    color: #f2b01e;
    font-weight: 700;
    font-size: 1.1rem;
}

.course-rating-count {
    color: #6c757d;
    font-size: 0.9rem;
}

html[data-bs-theme="dark"] .course-rating-count,
body[data-bs-theme="dark"] .course-rating-count {
    color: var(--theme-text-muted);
}

.course-description-short {
    color: #495057;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: 1rem;
    max-height: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

html[data-bs-theme="dark"] .course-description-short,
body[data-bs-theme="dark"] .course-description-short {
    color: var(--theme-text-muted);
}

.course-description-short.collapsed {
    max-height: 150px;
}

.course-description-short.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 40px;
    background: linear-gradient(transparent, #f8f9fa);
    pointer-events: none;
}

html[data-bs-theme="dark"] .course-description-short.collapsed::after,
body[data-bs-theme="dark"] .course-description-short.collapsed::after {
    background: linear-gradient(transparent, var(--theme-bg-body));
}

.description-hero-wrapper {
    position: relative;
}

.btn-read-more-hero {
    background: none;
    border: none;
    color: var(--brand-primary);
    font-weight: 600;
    padding: 0.5rem 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
    font-size: 0.95rem;
}

.btn-read-more-hero:hover {
    color: #e04a7a;
}

.btn-read-more-hero i {
    transition: transform 0.3s ease;
}

.btn-read-more-hero.expanded i {
    transform: rotate(180deg);
}

/* Enroll Button */
.btn-enroll {
    background: var(--brand-primary);
    color: #fff;
    border: none;
    padding: 1rem 2rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 1.1rem;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease, box-shadow 0.2s ease;
    cursor: pointer;
}

html[data-bs-theme="dark"] .btn-enroll,
body[data-bs-theme="dark"] .btn-enroll {
    background: #b52d5a;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}

.btn-enroll:hover {
    background: #b52d5a;
    color: #fff;
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(var(--bs-primary-rgb), 0.4);
}

html[data-bs-theme="dark"] .btn-enroll:hover,
body[data-bs-theme="dark"] .btn-enroll:hover {
    background: #7a1233;
    color: #fff;
}

.btn-enrolled {
    background: #146c43 !important;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.35);
}

.btn-enrolled:hover {
    background: #0f5132 !important;
    color: #fff;
}

html[data-bs-theme="dark"] .btn-enrolled,
body[data-bs-theme="dark"] .btn-enrolled {
    background: #146c43 !important;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.55);
}

html[data-bs-theme="dark"] .btn-enrolled:hover,
body[data-bs-theme="dark"] .btn-enrolled:hover {
    background: #0f5132 !important;
    color: #fff;
}

/* Price Display */
.course-price {
    margin-top: 1rem;
}

.price-current {
    font-size: 2rem;
    font-weight: 800;
    color: #212529;
}

html[data-bs-theme="dark"] .price-current,
body[data-bs-theme="dark"] .price-current {
    color: var(--theme-text-main);
}

.price-original {
    font-size: 1.25rem;
    color: #6c757d;
    text-decoration: line-through;
    margin-left: 0.75rem;
}

html[data-bs-theme="dark"] .price-original,
body[data-bs-theme="dark"] .price-original {
    color: rgba(255,255,255,0.5);
}

.price-discount {
    display: inline-block;
    background: #28a745;
    color: #fff;
    padding: 0.25rem 0.5rem;
    border-radius: 4px;
    font-size: 0.875rem;
    font-weight: 600;
    margin-left: 0.75rem;
}

/* Course Meta Badges */
.course-meta-badges {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
    margin-top: 1rem;
}

.meta-badge {
    background: rgba(0,0,0,0.05);
    color: #495057;
    padding: 0.5rem 1rem;
    border-radius: 8px;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

html[data-bs-theme="dark"] .meta-badge,
body[data-bs-theme="dark"] .meta-badge {
    background: rgba(255,255,255,0.1);
    color: rgba(255,255,255,0.9);
}

.meta-badge i {
    color: var(--brand-primary);
}

/* Main Content Layout - Full Width */
.course-content-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem 3rem;
    display: block;
}

.course-main {
    width: 100%;
}

/* Sidebar moved below reviews */
.course-sidebar {
    margin-top: 1.5rem;
}

/* Course Features Grid */
.course-features {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 0;
    flex: 1;
}

html[data-bs-theme="dark"] .course-features,
body[data-bs-theme="dark"] .course-features {
    background: var(--theme-bg-surface);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.features-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #212529;
}

html[data-bs-theme="dark"] .features-title,
body[data-bs-theme="dark"] .features-title {
    color: var(--theme-text-main);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 576px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}

.feature-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: #495057;
    font-size: 0.95rem;
}

html[data-bs-theme="dark"] .feature-item,
body[data-bs-theme="dark"] .feature-item {
    color: var(--theme-text-muted);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    background: rgba(var(--bs-primary-rgb), 0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--brand-primary);
    font-size: 1.1rem;
    flex-shrink: 0;
}

/* What You'll Learn Section */
.what-learn-section {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 0;
    flex: 1;
}

html[data-bs-theme="dark"] .what-learn-section,
body[data-bs-theme="dark"] .what-learn-section {
    background: var(--theme-bg-surface);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.what-learn-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #212529;
}

html[data-bs-theme="dark"] .what-learn-title,
body[data-bs-theme="dark"] .what-learn-title {
    color: #f8f9fa;
}

.what-learn-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
}

@media (max-width: 768px) {
    .what-learn-grid {
        grid-template-columns: 1fr;
    }
}

.what-learn-item {
    display: flex;
    align-items: flex-start;
    gap: 0.75rem;
    color: #495057;
    line-height: 1.5;
}

html[data-bs-theme="dark"] .what-learn-item,
body[data-bs-theme="dark"] .what-learn-item {
    color: var(--theme-text-muted);
}

.what-learn-item i {
    color: var(--brand-primary);
    margin-top: 0.25rem;
    flex-shrink: 0;
}

/* Description Section */
.description-section {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

html[data-bs-theme="dark"] .description-section,
body[data-bs-theme="dark"] .description-section {
    background: var(--theme-bg-surface);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.description-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #212529;
}

html[data-bs-theme="dark"] .description-title,
body[data-bs-theme="dark"] .description-title {
    color: #f8f9fa;
}

.description-content {
    color: #495057;
    line-height: 1.8;
    white-space: pre-wrap;
    max-height: none;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

html[data-bs-theme="dark"] .description-content,
body[data-bs-theme="dark"] .description-content {
    color: var(--theme-text-muted);
}

.description-content.collapsed {
    max-height: 280px;
}

.description-content.collapsed::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 60px;
    background: linear-gradient(transparent, #fff);
    pointer-events: none;
}

html[data-bs-theme="dark"] .description-content.collapsed::after,
body[data-bs-theme="dark"] .description-content.collapsed::after {
    background: linear-gradient(transparent, var(--theme-bg-surface));
}

.description-wrapper {
    position: relative;
}

.btn-read-more {
    background: none;
    border: none;
    color: var(--brand-primary);
    font-weight: 600;
    padding: 0.5rem 0;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
    transition: color 0.2s ease;
}

.btn-read-more:hover {
    color: #b52d5a;
}

.btn-read-more i {
    transition: transform 0.3s ease;
}

.btn-read-more.expanded i {
    transform: rotate(180deg);
}

/* Row 1: Features + What You'll Learn */
.row-features-learn {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: stretch;
}

@media (max-width: 992px) {
    .row-features-learn {
        grid-template-columns: 1fr;
    }
}

/* Row 3: Target Audience + Requirements (stacked) + Curriculum */
.row-info-curriculum {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

@media (max-width: 992px) {
    .row-info-curriculum {
        grid-template-columns: 1fr;
    }
}

/* Info stacked column */
.info-stacked {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.info-stacked .info-box {
    margin-bottom: 0;
}

.info-box {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
}

html[data-bs-theme="dark"] .info-box,
body[data-bs-theme="dark"] .info-box {
    background: var(--theme-bg-surface);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.info-box-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212529;
}

html[data-bs-theme="dark"] .info-box-title,
body[data-bs-theme="dark"] .info-box-title {
    color: #f8f9fa;
}

.info-box-content {
    color: #495057;
    line-height: 1.7;
    font-size: 0.95rem;
}

html[data-bs-theme="dark"] .info-box-content,
body[data-bs-theme="dark"] .info-box-content {
    color: var(--theme-text-muted);
}

/* Curriculum Section */
.curriculum-section {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

html[data-bs-theme="dark"] .curriculum-section,
body[data-bs-theme="dark"] .curriculum-section {
    background: var(--theme-bg-surface);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.curriculum-header {
    padding: 1.5rem 2rem;
    border-bottom: 1px solid #e9ecef;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 1rem;
}

html[data-bs-theme="dark"] .curriculum-header,
body[data-bs-theme="dark"] .curriculum-header {
    border-color: rgba(255,255,255,0.1);
}

.curriculum-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin: 0;
    color: #212529;
}

html[data-bs-theme="dark"] .curriculum-title,
body[data-bs-theme="dark"] .curriculum-title {
    color: #f8f9fa;
}

.curriculum-meta {
    color: #6c757d;
    font-size: 0.95rem;
}

html[data-bs-theme="dark"] .curriculum-meta,
body[data-bs-theme="dark"] .curriculum-meta {
    color: var(--theme-text-muted);
}

/* Accordion Styling */
.curriculum-accordion .accordion-item {
    border: none;
    border-bottom: 1px solid #e9ecef;
}

html[data-bs-theme="dark"] .curriculum-accordion .accordion-item,
body[data-bs-theme="dark"] .curriculum-accordion .accordion-item {
    border-color: rgba(255,255,255,0.1);
}

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

.curriculum-accordion .accordion-button {
    padding: 1.25rem 2rem;
    font-weight: 600;
    color: #212529;
    background: #fff;
    border: none;
    box-shadow: none;
    font-size: 1rem;
}

html[data-bs-theme="dark"] .curriculum-accordion .accordion-button,
body[data-bs-theme="dark"] .curriculum-accordion .accordion-button {
    color: var(--theme-text-main);
    background: var(--theme-bg-surface);
}

.curriculum-accordion .accordion-button:not(.collapsed) {
    background: #f8f9fa;
    color: var(--brand-primary);
}

html[data-bs-theme="dark"] .curriculum-accordion .accordion-button:not(.collapsed),
body[data-bs-theme="dark"] .curriculum-accordion .accordion-button:not(.collapsed) {
    background: rgba(var(--bs-primary-rgb), 0.15);
}

.curriculum-accordion .accordion-button:focus {
    box-shadow: none;
}

@media (max-width: 576px) {
    .unit-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 0.5rem;
    }
    
    .unit-meta {
        font-size: 0.75rem;
    }
    
    .curriculum-accordion .accordion-button {
        padding: 1rem 1.25rem;
    }
    
    .lesson-row {
        padding: 0.75rem 1rem;
    }
    
    .lesson-title {
        font-size: 0.85rem;
    }
}

.curriculum-accordion .accordion-body {
    padding: 0;
    background: #fff;
}

html[data-bs-theme="dark"] .curriculum-accordion .accordion-body,
body[data-bs-theme="dark"] .curriculum-accordion .accordion-body {
    background: var(--theme-bg-surface);
}

/* Unit Header */
.unit-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    gap: 1rem;
}

.unit-main {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex: 1;
    min-width: 0;
}

.unit-number {
    background: rgba(var(--bs-primary-rgb), 0.15);
    color: var(--brand-primary);
    font-weight: 700;
    font-size: 0.85rem;
    padding: 0.25rem 0.6rem;
    border-radius: 6px;
    flex-shrink: 0;
}

.unit-title {
    font-weight: 600;
    font-size: 0.95rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.unit-meta {
    font-size: 0.8rem;
    color: #6c757d;
    font-weight: 400;
    flex-shrink: 0;
    white-space: nowrap;
}

html[data-bs-theme="dark"] .unit-meta,
body[data-bs-theme="dark"] .unit-meta {
    color: var(--theme-text-muted);
}

/* Lesson List */
.lesson-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.lesson-item {
    border-bottom: 1px solid #f0f0f0;
    transition: background-color 0.2s ease;
}

html[data-bs-theme="dark"] .lesson-item,
body[data-bs-theme="dark"] .lesson-item {
    border-color: rgba(255,255,255,0.05);
}

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

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

html[data-bs-theme="dark"] .lesson-item:hover,
body[data-bs-theme="dark"] .lesson-item:hover {
    background: rgba(255,255,255,0.05);
}

.lesson-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1.5rem;
    text-decoration: none;
    color: inherit;
    gap: 1rem;
}

.lesson-info {
    display: flex;
    align-items: center;
    gap: 0.875rem;
    flex: 1;
    min-width: 0;
}

.lesson-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: #e9ecef;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 0.7rem;
    flex-shrink: 0;
}

html[data-bs-theme="dark"] .lesson-icon,
body[data-bs-theme="dark"] .lesson-icon {
    background: var(--theme-bg-body);
    color: var(--theme-text-muted);
}

.lesson-icon.completed {
    background: rgba(var(--bs-primary-rgb), 0.15);
    color: var(--brand-primary);
}

html[data-bs-theme="dark"] .lesson-icon.completed,
body[data-bs-theme="dark"] .lesson-icon.completed {
    background: rgba(var(--bs-primary-rgb), 0.25);
    color: #e04a7a;
}

.lesson-title {
    font-weight: 500;
    color: #212529;
    font-size: 0.9rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

html[data-bs-theme="dark"] .lesson-title,
body[data-bs-theme="dark"] .lesson-title {
    color: var(--theme-text-main);
}

.lesson-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-shrink: 0;
}

.lesson-duration {
    color: #6c757d;
    font-size: 0.8rem;
    font-weight: 500;
    display: flex;
    align-items: center;
}

html[data-bs-theme="dark"] .lesson-duration,
body[data-bs-theme="dark"] .lesson-duration {
    color: var(--theme-text-muted);
}

.lesson-duration i {
    font-size: 0.7rem;
}

.lesson-badge {
    padding: 0.2rem 0.6rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.badge-free {
    background: rgba(25, 135, 84, 0.15);
    color: #198754;
}

html[data-bs-theme="dark"] .badge-free,
body[data-bs-theme="dark"] .badge-free {
    background: rgba(25, 135, 84, 0.25);
    color: #75b798;
}

.badge-locked {
    background: #e9ecef;
    color: #6c757d;
}

html[data-bs-theme="dark"] .badge-locked,
body[data-bs-theme="dark"] .badge-locked {
    background: rgba(255,255,255,0.1);
    color: var(--theme-text-muted);
}

.pdf-icon {
    color: #dc3545;
    font-size: 0.9rem;
}

/* Reviews Section */
.reviews-section {
    background: #fff;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

html[data-bs-theme="dark"] .reviews-section,
body[data-bs-theme="dark"] .reviews-section {
    background: var(--theme-bg-surface);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.reviews-title {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: #212529;
}

html[data-bs-theme="dark"] .reviews-title,
body[data-bs-theme="dark"] .reviews-title {
    color: var(--theme-text-main);
}

/* Rating Summary */
.rating-summary {
    display: flex;
    gap: 3rem;
    margin-bottom: 2rem;
    flex-wrap: wrap;
}

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

.rating-number {
    font-size: 4rem;
    font-weight: 800;
    color: #212529;
    line-height: 1;
}

html[data-bs-theme="dark"] .rating-number,
body[data-bs-theme="dark"] .rating-number {
    color: var(--theme-text-main);
}

.rating-stars-big {
    color: #f2b01e;
    font-size: 1.5rem;
    margin: 0.5rem 0;
}

.rating-count {
    color: #6c757d;
    font-size: 0.9rem;
}

html[data-bs-theme="dark"] .rating-count,
body[data-bs-theme="dark"] .rating-count {
    color: var(--theme-text-muted);
}

/* Rating Bars */
.rating-bars {
    flex: 1;
    min-width: 250px;
}

.rating-bar-item {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 0.5rem;
}

.rating-bar-star {
    width: 40px;
    font-size: 0.9rem;
    color: #495057;
}

html[data-bs-theme="dark"] .rating-bar-star,
body[data-bs-theme="dark"] .rating-bar-star {
    color: var(--theme-text-muted);
}

.rating-bar-track {
    flex: 1;
    height: 8px;
    background: #e9ecef;
    border-radius: 4px;
    overflow: hidden;
}

html[data-bs-theme="dark"] .rating-bar-track,
body[data-bs-theme="dark"] .rating-bar-track {
    background: var(--theme-bg-body);
}

.rating-bar-fill {
    height: 100%;
    background: #f2b01e;
    border-radius: 4px;
    transition: width 0.6s ease;
}

.rating-bar-count {
    width: 30px;
    text-align: right;
    font-size: 0.85rem;
    color: #6c757d;
}

html[data-bs-theme="dark"] .rating-bar-count,
body[data-bs-theme="dark"] .rating-bar-count {
    color: var(--theme-text-muted);
}

/* Review Cards */
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.review-card {
    border-bottom: 1px solid #e9ecef;
    padding-bottom: 1rem;
}

html[data-bs-theme="dark"] .review-card,
body[data-bs-theme="dark"] .review-card {
    border-color: rgba(255,255,255,0.1);
}

.review-card:last-child {
    border-bottom: none;
}

.review-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.75rem;
}

.review-author {
    font-weight: 600;
    color: #212529;
}

html[data-bs-theme="dark"] .review-author,
body[data-bs-theme="dark"] .review-author {
    color: var(--theme-text-main);
}

.review-rating {
    color: #f2b01e;
    font-size: 0.9rem;
}

.review-date {
    font-size: 0.8rem;
    color: #6c757d;
}

html[data-bs-theme="dark"] .review-date,
body[data-bs-theme="dark"] .review-date {
    color: var(--theme-text-muted);
}

.review-body {
    color: #495057;
    line-height: 1.6;
    font-size: 0.95rem;
}

html[data-bs-theme="dark"] .review-body,
body[data-bs-theme="dark"] .review-body {
    color: var(--theme-text-muted);
}

/* Sidebar */
.course-sidebar {
    position: relative;
    top: 0;
    height: fit-content;
    margin-top: 1.5rem;
}

/* Instructor Card */
.instructor-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    margin-bottom: 1.5rem;
}

html[data-bs-theme="dark"] .instructor-card,
body[data-bs-theme="dark"] .instructor-card {
    background: var(--theme-bg-surface);
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
}

.instructor-header {
    padding: 1.5rem;
    border-bottom: 1px solid #e9ecef;
}

html[data-bs-theme="dark"] .instructor-header,
body[data-bs-theme="dark"] .instructor-header {
    border-color: rgba(255,255,255,0.1);
}

.instructor-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin: 0;
    color: #212529;
}

html[data-bs-theme="dark"] .instructor-title,
body[data-bs-theme="dark"] .instructor-title {
    color: var(--theme-text-main);
}

.instructor-body {
    padding: 1.5rem;
}

.instructor-profile {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.instructor-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--brand-primary);
}

.instructor-avatar-placeholder {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--brand-primary) 0%, #e04a7a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    font-size: 1.75rem;
    font-weight: 700;
}

.instructor-info {
    flex: 1;
}

.instructor-name {
    font-size: 1.2rem;
    font-weight: 700;
    color: #212529;
    margin-bottom: 0.25rem;
}

html[data-bs-theme="dark"] .instructor-name,
body[data-bs-theme="dark"] .instructor-name {
    color: var(--theme-text-main);
}

.instructor-role {
    font-size: 0.9rem;
    color: #6c757d;
}

html[data-bs-theme="dark"] .instructor-role,
body[data-bs-theme="dark"] .instructor-role {
    color: var(--theme-text-muted);
}

.instructor-bio {
    color: #495057;
    font-size: 0.9rem;
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

html[data-bs-theme="dark"] .instructor-bio,
body[data-bs-theme="dark"] .instructor-bio {
    color: var(--theme-text-muted);
}

/* Other Courses */
.other-courses-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212529;
}

html[data-bs-theme="dark"] .other-courses-title,
body[data-bs-theme="dark"] .other-courses-title {
    color: var(--theme-text-main);
}

.other-courses-list {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.other-course-item {
    display: flex;
    gap: 0.75rem;
    padding: 0.75rem;
    background: var(--theme-bg-surface-active);
    border-radius: 10px;
    text-decoration: none;
    transition: transform 0.2s ease, opacity 0.2s ease, background-color 0.2s ease;
}

html[data-bs-theme="dark"] .other-course-item,
body[data-bs-theme="dark"] .other-course-item {
    background: rgba(255,255,255,0.05);
}

.other-course-item:hover {
    background: #e9ecef;
    transform: translateX(4px);
}

html[data-bs-theme="dark"] .other-course-item:hover,
body[data-bs-theme="dark"] .other-course-item:hover {
    background: rgba(255,255,255,0.1);
}

.other-course-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    object-fit: cover;
    flex-shrink: 0;
}

.other-course-thumb-placeholder {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    background: linear-gradient(135deg, #2d2d2d 0%, #1a1a1a 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255,255,255,0.5);
    font-size: 1rem;
    flex-shrink: 0;
}

.other-course-info {
    flex: 1;
    min-width: 0;
}

.other-course-title {
    font-weight: 600;
    color: #212529;
    font-size: 0.9rem;
    margin-bottom: 0.25rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-clamp: 2;
    overflow: hidden;
}

html[data-bs-theme="dark"] .other-course-title,
body[data-bs-theme="dark"] .other-course-title {
    color: var(--theme-text-main);
}

.other-course-meta {
    font-size: 0.8rem;
    color: #6c757d;
}

html[data-bs-theme="dark"] .other-course-meta,
body[data-bs-theme="dark"] .other-course-meta {
    color: var(--theme-text-muted);
}

/* Review Form */
.review-form-section {
    background: var(--theme-bg-surface-active);
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}

html[data-bs-theme="dark"] .review-form-section,
body[data-bs-theme="dark"] .review-form-section {
    background: rgba(255,255,255,0.05);
}

.review-form-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #212529;
}

html[data-bs-theme="dark"] .review-form-title,
body[data-bs-theme="dark"] .review-form-title {
    color: var(--theme-text-main);
}

/* Empty States */
.empty-state {
    text-align: center;
    padding: 3rem 1.5rem;
    color: #6c757d;
}

.empty-state i {
    font-size: 3rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

html[data-bs-theme="dark"] .empty-state,
body[data-bs-theme="dark"] .empty-state {
    color: var(--theme-text-muted);
}

/* Mobile Actions */
.mobile-actions {
    display: none;
}

@media (max-width: 1100px) {
    .mobile-actions {
        display: block;
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        border-top: 1px solid #e9ecef;
        padding: 1rem;
        z-index: 1030;
        box-shadow: 0 -4px 20px rgba(0,0,0,0.1);
    }
    
    html[data-bs-theme="dark"] .mobile-actions,
    body[data-bs-theme="dark"] .mobile-actions {
        background: var(--theme-bg-surface);
        border-color: rgba(255,255,255,0.1);
    }
    
    .mobile-actions-spacer {
        height: 80px;
    }
}
