/* Self-Discovery Lesson Styles */
:root {
    --primary-color: #673ab7;
    --text-main: #333;
    --text-light: #666;
    --bg-color: #f3e5f5;
    --white: #ffffff;
    --border: #e1bee7;
    --success: #4caf50;
    --warning: #ff9800;
    --danger: #f44336;
    --info: #2196f3;
}

body {
    font-family: 'Noto Sans KR', sans-serif;
    line-height: 1.7;
    color: var(--text-main);
    background-color: var(--bg-color);
    margin: 0;
    padding: 0;
}

.lesson-container {
    max-width: 800px;
    margin: 0 auto;
    padding: 20px;
    background: var(--white);
    min-height: 100vh;
    box-shadow: 0 0 20px rgba(0, 0, 0, 0.05);
}

/* Breadcrumb */
.breadcrumb {
    padding: 15px 0;
    margin-bottom: 30px;
    color: var(--text-light);
    font-size: 0.9rem;
    border-bottom: 1px solid #eee;
}

.breadcrumb a {
    color: var(--text-light);
    text-decoration: none;
    transition: color 0.2s;
}

.breadcrumb a:hover {
    color: var(--primary-color);
}

.breadcrumb-separator {
    margin: 0 8px;
    color: #ccc;
}

/* Header */
.lesson-header {
    text-align: center;
    margin-bottom: 40px;
    padding: 40px 20px;
    background: linear-gradient(135deg, #f3e5f5 0%, #e1bee7 100%);
    /* Default fallback */
    border-radius: 15px;
    color: var(--text-main);
}

/* Gradient Headers for Sections */
.header-section-1 {
    background: linear-gradient(135deg, #ede7f6 0%, #d1c4e9 100%);
    /* Purple/Indigo */
    color: #311b92;
}

.header-section-2 {
    background: linear-gradient(135deg, #fff3e0 0%, #ffe0b2 100%);
    /* Orange/Yellow */
    color: #e65100;
}

.header-section-3 {
    background: linear-gradient(135deg, #e0f2f1 0%, #b2dfdb 100%);
    /* Teal/Blue */
    color: #004d40;
}


.lesson-number {
    display: inline-block;
    background: rgba(255, 255, 255, 0.7);
    padding: 5px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    font-weight: 700;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
}

.lesson-header h1 {
    font-size: 2.2rem;
    margin-bottom: 15px;
    line-height: 1.3;
}

.lesson-subtitle {
    font-size: 1.1rem;
    opacity: 0.9;
    max-width: 600px;
    margin: 0 auto;
}

.header-icon {
    font-size: 3rem;
    margin-bottom: 15px;
    display: block;
}

/* TOC */
.toc {
    background: #fafafa;
    padding: 25px;
    border-radius: 10px;
    margin-bottom: 40px;
    border: 1px solid #eee;
}

.toc h3 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    color: var(--primary-color);
}

.toc ul {
    list-style: none;
    padding: 0;
}

.toc li {
    margin-bottom: 10px;
}

.toc a {
    color: var(--text-main);
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: transform 0.2s;
}

.toc a:hover {
    transform: translateX(5px);
    color: var(--primary-color);
}

.toc i {
    font-size: 0.8rem;
    color: #ccc;
}

/* Content */
.lesson-content h2 {
    font-size: 1.8rem;
    margin: 50px 0 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
    color: var(--primary-color);
}

.lesson-content p {
    margin-bottom: 20px;
    font-size: 1.05rem;
}

.lesson-content ul,
.lesson-content ol {
    margin-bottom: 20px;
    padding-left: 20px;
}

.lesson-content li {
    margin-bottom: 10px;
}

/* Boxes */
.highlight-box,
.example-box,
.key-takeaways {
    padding: 25px;
    border-radius: 10px;
    margin: 30px 0;
}

.highlight-box {
    background: #fff8e1;
    /* Default warning */
    border-left: 5px solid #ffc107;
}

.highlight-box.warning {
    background: #fff3e0;
    border-left-color: #ff9800;
}

.highlight-box.success {
    background: #e8f5e9;
    border-left-color: #4caf50;
}

.example-box {
    background: #f5f5f5;
    border-left: 5px solid #9e9e9e;
}

.key-takeaways {
    background: #e3f2fd;
    border-left: 5px solid #2196f3;
}

.key-takeaways h3 {
    color: #1565c0;
    margin-bottom: 15px;
}

/* Navigation */
.lesson-nav {
    display: flex;
    justify-content: space-between;
    margin-top: 60px;
    padding-top: 30px;
    border-top: 1px solid #eee;
    gap: 20px;
}

.lesson-nav a {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 20px;
    background: #f9f9f9;
    border-radius: 10px;
    text-decoration: none;
    color: var(--text-main);
    transition: all 0.3s;
    border: 1px solid transparent;
}

.lesson-nav a:hover {
    background: white;
    border-color: var(--primary-color);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
    transform: translateY(-2px);
}

.lesson-nav .prev {
    justify-content: flex-start;
    gap: 15px;
}

.lesson-nav .next {
    justify-content: flex-end;
    text-align: right;
    gap: 15px;
}

.nav-label {
    display: block;
    font-size: 0.8rem;
    color: var(--text-light);
    margin-bottom: 5px;
}

.nav-title {
    display: block;
    font-weight: 700;
    font-size: 1rem;
}

.back-to-course {
    text-align: center;
    margin-top: 40px;
}

.back-to-course a {
    display: inline-block;
    padding: 10px 25px;
    background: var(--primary-color);
    color: white;
    text-decoration: none;
    border-radius: 25px;
    transition: background 0.3s;
}

.back-to-course a:hover {
    background: var(--primary-hover);
}

/* Responsive */
@media (max-width: 600px) {
    .lesson-header h1 {
        font-size: 1.8rem;
    }

    .lesson-nav {
        flex-direction: column;
    }
}