:root {
    --primary-color: #2c724f;
    --primary-light: #e9f1ed;
    --secondary-color: #f7b731;
    --text-dark: #2d3436;
    --text-muted: #636e72;
    --bg-light: #f9f9f9;
    --white: #ffffff;
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    --border-radius: 12px;
}

html {
    scroll-behavior: smooth;
}

/* Lesson Navigation */
.lesson-nav {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
    padding: 15px;
    background: var(--bg-light);
    border-radius: var(--border-radius);
    position: sticky;
    top: 20px;
    z-index: 10;
    box-shadow: var(--shadow);
}

.lesson-nav a {
    background: var(--white);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 13px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.3s ease;
    border: 1px solid #eee;
}

.lesson-nav a:hover,
.lesson-nav a.active {
    background: var(--primary-color);
    color: var(--white);
    border-color: var(--primary-color);
}

/* Lesson Container */
.lesson-container {
    font-family: 'Work Sans', sans-serif;
    line-height: 1.8;
    color: var(--text-dark);
}

/* Section Styling */
.lesson-section {
    margin-bottom: 40px;
    padding: 30px;
    background: var(--white);
    border-radius: var(--border-radius);
    border-left: 5px solid var(--primary-color);
    box-shadow: var(--shadow);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.lesson-section:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.12);
}

.lesson-section h3 {
    color: var(--primary-color);
    font-weight: 700;
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
}

.lesson-section h3 .section-letter {
    background: var(--primary-color);
    color: var(--white);
    width: 35px;
    height: 35px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 18px;
}

/* Legislative Framework specific */
.framework-box {
    background: var(--primary-light);
    border: 1px dashed var(--primary-color);
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
}

.legal-update {
    background: #fff3cd;
    border: 1px solid #ffeeba;
    padding: 15px;
    border-radius: 8px;
    margin: 10px 0;
    font-style: italic;
}

/* Real World Applicability */
.applicability-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-top: 20px;
}

.applicability-card {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    border: 1px solid #eee;
    text-align: center;
}

.applicability-card h4 {
    color: var(--primary-color);
    margin-bottom: 15px;
    font-size: 1.1rem;
}

/* Case Law */
.case-box {
    border-left: 4px solid var(--secondary-color);
    background: #fffdf5;
    padding: 20px;
    margin: 15px 0;
}

.case-citation {
    font-weight: bold;
    color: #b58110;
}

/* Pitfalls */
.pitfall-box {
    background: #ffeeee;
    border-left: 4px solid #d63031;
    padding: 20px;
    margin: 15px 0;
}

.pitfall-title {
    color: #d63031;
    font-weight: bold;
}

/* Knowledge Check & Quiz */
.quiz-question {
    background: #f1f2f6;
    padding: 20px;
    border-radius: 8px;
    margin: 15px 0;
    border: 1px solid #dfe4ea;
}

.quiz-explanation {
    background: #e3fcef;
    padding: 20px;
    border-radius: 8px;
    margin: 10px 0;
    border-left: 4px solid #00b894;
}

/* Key Takeaways */
.takeaway-list {
    background: var(--primary-color);
    color: var(--white);
    padding: 40px;
    border-radius: var(--border-radius);
}

.takeaway-list p, 
.takeaway-list li,
.takeaway-list strong,
.takeaway-list div {
    color: var(--white) !important;
}

.takeaway-list h3 {
    color: var(--white);
    border-bottom: 1px solid rgba(255, 255, 255, 0.3);
    padding-bottom: 10px;
}

.takeaway-list ul li {
    margin-bottom: 15px;
    position: relative;
    padding-left: 30px;
    color: var(--white);
}

.takeaway-list ul li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--secondary-color);
    font-weight: bold;
}

/* Responsive Styles */
@media (max-width: 768px) {
    .lesson-section {
        padding: 20px;
    }
}