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

body {
    font-family: var(--font-main);
    background-color: var(--bg-color);
    color: var(--text-color);
    line-height: 1.8;
    overflow-x: hidden;
}

/* Layout Grid */
.course-container {
    display: grid;
    grid-template-columns: 300px 1fr;
    max-width: 1400px;
    margin: 2rem auto;
    gap: 3rem;
    padding: 0 2rem;
    min-height: 80vh;
}

/* Sidebar */
.sidebar {
    position: sticky;
    top: 100px;
    height: fit-content;
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 16px;
    padding: 2rem;
}

.sidebar h3 {
    color: var(--accent-color);
    margin-bottom: 1.5rem;
    font-size: 1.2rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.chapter-list {
    list-style: none;
}

.chapter-list li {
    margin-bottom: 1rem;
}

.chapter-link {
    display: block;
    padding: 0.8rem 1rem;
    border-radius: 8px;
    text-decoration: none;
    color: rgba(255, 255, 255, 0.7);
    transition: all 0.3s ease;
    border-left: 3px solid transparent;
}

.chapter-link:hover,
.chapter-link.active {
    background: rgba(255, 255, 255, 0.05);
    color: var(--white);
    border-left-color: var(--accent-color);
}

.progress-container {
    margin-top: 2rem;
    padding-top: 2rem;
    border-top: 1px solid var(--glass-border);
}

.progress-label {
    display: flex;
    justify-content: space-between;
    margin-bottom: 0.5rem;
    font-size: 0.9rem;
    color: rgba(255, 255, 255, 0.8);
}

.progress-bar-bg {
    width: 100%;
    height: 8px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 4px;
    overflow: hidden;
}

.progress-bar-fill {
    height: 100%;
    background: var(--primary-color);
    width: 0%;
    transition: width 0.3s ease;
}

/* Main Content */
.content-area {
    background: var(--glass-bg);
    border: 1px solid var(--glass-border);
    border-radius: 24px;
    padding: 4rem;
}

.chapter {
    margin-bottom: 6rem;
    scroll-margin-top: 120px;
}

.chapter h1 {
    font-size: 2.5rem;
    color: var(--secondary-color);
    margin-bottom: 2rem;
}

.chapter h2 {
    font-size: 1.8rem;
    color: var(--white);
    margin-top: 3rem;
    margin-bottom: 1.5rem;
}

.chapter p {
    margin-bottom: 1.5rem;
    font-size: 1.1rem;
    color: rgba(255, 255, 255, 0.9);
}

.chapter ul {
    margin-bottom: 1.5rem;
    padding-left: 1.5rem;
    color: rgba(255, 255, 255, 0.9);
}

.chapter li {
    margin-bottom: 0.5rem;
}

.highlight-box {
    background: rgba(46, 125, 50, 0.2);
    border-left: 4px solid var(--primary-color);
    padding: 1.5rem;
    margin: 2rem 0;
    border-radius: 0 8px 8px 0;
}

.btn-complete {
    display: inline-block;
    margin-top: 2rem;
    padding: 1rem 2rem;
    background: transparent;
    border: 2px solid var(--secondary-color);
    color: var(--secondary-color);
    border-radius: 50px;
    cursor: pointer;
    font-weight: 600;
    transition: all 0.3s ease;
}

.btn-complete:hover {
    background: var(--secondary-color);
    color: var(--bg-color);
}

.btn-complete.completed {
    background: var(--primary-color);
    border-color: var(--primary-color);
    color: white;
    cursor: default;
}

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

    .sidebar {
        position: static;
        margin-bottom: 2rem;
    }

    .content-area {
        padding: 2rem;
    }
}