/* Neo-Khmer Editorial: Course Detail */

/* Layout - single grid wrapping hero + content + sidebar */
.course-layout {
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 48px;
    padding: 64px 0 96px;
}

.course-left {
    min-width: 0;
}

/* Hero (now inside the left column) */
.course-hero-inner {
    padding-bottom: 48px;
    margin-bottom: 48px;
    border-bottom: 2px solid #1a1a1a;
}

.hero-content {
    max-width: 680px;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    font-size: 11px;
    font-family: var(--md-sys-typescale-label-small-font-family, 'Kantumruy Pro', sans-serif);
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: #1a1a1a;
}

.breadcrumb a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.breadcrumb a:hover {
    border-color: #1a1a1a;
}

.breadcrumb .material-symbols-rounded {
    font-size: 14px;
}

.course-title {
    font-family: var(--md-sys-typescale-display-font-family, 'Kantumruy Pro', sans-serif);
    font-size: clamp(32px, 5vw, 48px);
    font-weight: 800;
    line-height: 1.1;
    margin-bottom: 24px;
    letter-spacing: -0.03em;
}

.course-subtitle {
    font-family: var(--md-sys-typescale-body-large-font-family, 'Kantumruy Pro', sans-serif);
    font-size: 18px;
    line-height: 1.6;
    color: #1a1a1a;
    margin-bottom: 32px;
}

.course-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 24px;
    font-family: var(--md-sys-typescale-label-small-font-family, 'Kantumruy Pro', sans-serif);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.meta-badge {
    background: #1a1a1a;
    color: #ffffff;
    padding: 6px 12px;
    font-weight: 700;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item .material-symbols-rounded {
    font-size: 16px;
}



/* Content Section (Curriculum) */
.content-section {
    margin-bottom: 48px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    margin-bottom: 24px;
    padding-bottom: 16px;
    border-bottom: 2px solid #1a1a1a;
}

.section-title {
    font-family: var(--md-sys-typescale-display-font-family, 'Kantumruy Pro', sans-serif);
    font-size: 32px;
    font-weight: 700;
}

.content-stats {
    font-family: var(--md-sys-typescale-label-small-font-family, 'Kantumruy Pro', sans-serif);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* Module Accordion */
.module-accordion {
    background: #ffffff;
    border: 1px solid #1a1a1a;
    margin-bottom: 16px;
}

.module-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px;
    cursor: pointer;
    list-style: none;
    font-family: var(--md-sys-typescale-body-large-font-family, 'Kantumruy Pro', sans-serif);
}

.module-summary::-webkit-details-marker {
    display: none;
}

.module-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.expand-icon {
    transition: transform 0.2s;
    font-size: 20px;
}

.module-accordion[open] .expand-icon {
    transform: rotate(180deg);
}

.module-title {
    font-weight: 700;
    font-size: 18px;
}

.module-count {
    font-family: var(--md-sys-typescale-label-small-font-family, 'Kantumruy Pro', sans-serif);
    font-size: 11px;
    text-transform: uppercase;
}

.module-lessons {
    padding: 0 20px 20px;
    border-top: 1px solid #e5e5e5;
    margin-top: 16px;
    padding-top: 16px;
}

.lesson-link {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 12px 0;
    color: #1a1a1a;
    text-decoration: none;
}

.lesson-link:hover .lesson-title {
    text-decoration: underline;
    text-underline-offset: 4px;
}

.lesson-icon {
    font-size: 20px;
}

.lesson-title {
    flex: 1;
    font-family: var(--md-sys-typescale-body-medium-font-family, 'Kantumruy Pro', sans-serif);
    font-size: 16px;
}

.lesson-status {
    color: #1a1a1a;
}

/* Sidebar */
.course-sidebar {
    position: relative;
}

.sidebar-card {
    position: sticky;
    top: 100px;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-left: 4px solid #b6ff00; /* Folio Stripe */
}

.preview-wrapper {
    position: relative;
    aspect-ratio: 16/9;
    border-bottom: 1px solid #e5e5e5;
}

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

.sidebar-content {
    padding: 24px;
}

/* Enrollment specific CTA */
.enroll-btn {
    width: 100%;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    background: #b6ff00;
    color: #1a1a1a;
    border: 2px solid #1a1a1a;
    font-family: var(--md-sys-typescale-body-large-font-family, 'Kantumruy Pro', sans-serif);
    font-weight: 700;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    margin-bottom: 24px;
}

.enroll-btn:hover {
    background: #1a1a1a;
    color: #b6ff00;
}

.enroll-btn:disabled, .enroll-btn.loading {
    opacity: 0.7;
    cursor: not-allowed;
    background: #f0ede8;
    color: #1a1a1a;
}

/* Progress Section */
.progress-section {
    margin-bottom: 24px;
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
    font-family: var(--md-sys-typescale-label-small-font-family, 'Kantumruy Pro', sans-serif);
    font-size: 11px;
    text-transform: uppercase;
    font-weight: 700;
}

.progress-track {
    width: 100%;
    height: 6px;
    background: #e5e5e5;
    border: 1px solid #1a1a1a;
}

.progress-fill {
    height: 100%;
    background: #b6ff00;
    border-right: 1px solid #1a1a1a;
    transition: width 0.3s ease;
}

/* Includes List */
.includes-section {
    padding-top: 24px;
    border-top: 1px solid #1a1a1a;
}

.includes-title {
    font-family: var(--md-sys-typescale-label-small-font-family, 'Kantumruy Pro', sans-serif);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-weight: 700;
    margin-bottom: 16px;
}

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

.includes-list li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 8px 0;
    font-family: var(--md-sys-typescale-body-medium-font-family, 'Kantumruy Pro', sans-serif);
    font-size: 15px;
    color: #1a1a1a;
}

.includes-list .material-symbols-rounded {
    font-size: 20px;
}

/* Empty State */
.empty-state {
    text-align: center;
    padding: 64px 24px;
    background: #f0ede8;
    border: 1px solid #1a1a1a;
}

.empty-state .material-symbols-rounded {
    font-size: 48px;
    color: #1a1a1a;
}

.empty-state p {
    margin-top: 16px;
    font-family: var(--md-sys-typescale-body-large-font-family, 'Kantumruy Pro', sans-serif);
}

/* Mobile CTA */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    background: #ffffff;
    border-top: 2px solid #1a1a1a;
    z-index: 100;
}

.mobile-cta .enroll-btn {
    margin-bottom: 0;
}

/* Responsive */
@media (max-width: 1024px) {
    .course-layout {
        grid-template-columns: 1fr 300px;
    }
}

@media (max-width: 768px) {
    .course-hero-inner {
        padding-bottom: 32px;
        margin-bottom: 32px;
    }

    .course-layout {
        grid-template-columns: 1fr;
        padding-bottom: 120px;
    }

    .course-sidebar {
        display: none;
    }

    .mobile-cta {
        display: block;
    }

    .section-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 12px;
    }
}
