@import url('https://fonts.googleapis.com/css2?family=Work+Sans:wght@400;500;600;700&display=swap');

/* === Base Styles === */
#lesson {
    font-family: 'Work Sans', sans-serif !important;
    line-height: 1.8 !important;
    color: #d4d4d4 !important;
    margin: 0 auto !important;
    width: 100% !important;
    background-color: #0d1117 !important; /* VS Code dark background */
    font-size: 16px !important;
}

#lesson .fl-col-content {
    max-width: 1024px !important;
    margin: 0 auto !important;
    padding: 0 !important;
    color: #9ba3b4;
    background-color: #0d1117 !important;
}

#lesson p {
    font-size: 16px;
    font-weight: 400;
    color: #d4d4d4;
    line-height: 1.6;
    margin-bottom: 1em;
}

/* === Headings === */
#lesson h1 {
    font-size: 2.5em !important;
    color: #569cd6 !important;
    margin: 0 0 30px 0 !important;
    line-height: 1.4 !important;
    text-align: center !important;
    border-bottom: 2px solid #3c3c3c !important;
    padding-bottom: 15px !important;
    font-weight: 700 !important;
}

#lesson h2 {
    font-size: 2em !important;
    color: #c3d0e5 !important;
    margin: 40px 0 20px 0 !important;
    font-weight: 600 !important;
    line-height: 1.4 !important;
}

#lesson h3 {
    font-size: 1.5em !important;
    color: #c3d0e5 !important;
    margin: 30px 0 15px 0 !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

#lesson h2.section-title,
#lesson h3.section-title {
    color: #c3d0e5 !important;
    font-size: 1.75em !important;
    font-weight: 600 !important;
    margin: 35px 0 20px !important;
    text-transform: uppercase !important;
    letter-spacing: 1px !important;
    line-height: 1.4 !important;
}

#lesson h4 {
    color: #c3d0e5 !important;
    font-size: 1.25em !important;
    margin: 25px 0 15px !important;
    font-weight: 500 !important;
    line-height: 1.4 !important;
}

/* === Lists === */
#lesson ul,
#lesson ol {
    margin: 16px 0 !important;
    padding-left: 40px !important;
    color: #d4d4d4 !important;
}

#lesson li {
    margin: 0 0 12px 0 !important;
    line-height: 1.6 !important;
    color: #9ba3b4 !important;
}

/* === Links === */
#lesson a {
    color: #4fc1ff !important;
    text-decoration: none !important;
    font-weight: 500;
}

#lesson a:hover {
    color: #75beff !important;
    border-bottom-color: #75beff !important;
}

/* === Emphasis === */
#lesson strong,
#lesson b {
    color: #9ba3b4 !important;
}

#lesson em,
#lesson i {
    color: #9ba3b4 !important;
    font-style: italic !important;
}

/* === Buttons === */
.wpcw_fe_quiz_submit_data input.fe_btn,
a.fe_btn {
    background-color: #0e639c !important;
    border: 1px solid #1177bb !important;
    color: #ffffff !important;
    padding: 10px 20px;
    text-align: center;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Work Sans', sans-serif;
    line-height: 1em;
    display: inline-block;
    border-radius: 2px;
    transition: all 0.2s ease;
    text-shadow: none !important;
    cursor: pointer;
}

.wpcw_fe_quiz_submit_data input.fe_btn:hover,
a.fe_btn:hover {
    background-color: #1177bb !important;
    border-color: #1177bb !important;
}

.fe_btn_navigation {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 24px;
    background-color: #7B68EE;
    border: 1px solid #1177bb !important;
    border-radius: 8px;
    color: #ffffff !important;
    font-weight: 600;
    font-size: 14px;
    font-family: 'Work Sans', sans-serif;
    transition: all 0.3s ease;
    min-width: 200px;
    text-align: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    cursor: pointer;
}

.fe_btn_navigation:hover {
    background-color: #6A5ACD;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

a.fe_btn_completion {
    background-color: #007acc !important;
    border: 1px solid #007acc !important;
    color: #ffffff !important;
}

a.fe_btn_completion:hover {
    background-color: #1177bb !important;
    border-color: #1177bb !important;
}

/* === Navigation Layout === */
.wpcw_fe_progress_box_wrap {
    margin: 30px auto;
    display: flex;
    justify-content: center;
    width: 100%;
    padding: 0 15px;
    box-sizing: border-box;
}

.wpcw_fe_navigation_box {
    display: flex;
    gap: 20px;
    width: 100%;
    max-width: 600px;
    justify-content: center;
    align-items: center;
}

/* Navigation arrows */
.fe_btn_navigation_prev::before {
    margin-right: 8px;
    font-size: 1.2em;
    position: relative;
    top: -1px;
}

.fe_btn_navigation_next::after {
    margin-left: 8px;
    font-size: 1.2em;
    position: relative;
    top: -1px;
}

/* === Responsive === */
@media (max-width: 1200px) {
    #lesson .fl-col-content {
        max-width: 92% !important;
        padding: 32px !important;
    }
}

@media (max-width: 768px) {
    #lesson .fl-col-content {
        max-width: 96% !important;
        padding: 20px !important;
    }
    #lesson ul,
    #lesson ol {
        padding-left: 20px !important;
    }
    #lesson h1 { font-size: 2.2em !important; }
    #lesson h2 { font-size: 1.9em !important; }
    #lesson h3 { font-size: 1.6em !important; }
    #lesson h4 { font-size: 1.3em !important; }

    .wpcw_fe_navigation_box {
        flex-direction: column;
        align-items: stretch;
    }

    .fe_btn_navigation {
        width: 100%;
        min-width: unset;
    }
}

/* === Misc Cleanup === */
a.anchor,
a[id^="user-content-"],
a[aria-label^="Permalink:"],
.markdown-heading a.anchor {
    display: none !important;
    visibility: hidden !important;
}