/* =========================================================
   FUTUREVERSE — CSS STYLING
   COURSE LEARNING CSS
   PART 1 — CORE + DESKTOP COURSE UI
========================================================= */


/* =========================================================
   ROOT VARIABLES
========================================================= */

:root {

    --bg-main: #f6f8fc;
    --bg-card: #ffffff;
    --bg-soft: #f1f4f9;

    --text-main: #172033;
    --text-secondary: #667085;
    --text-light: #98a2b3;

    --border: #e4e7ec;

    --primary: #2563eb;
    --primary-dark: #1d4ed8;
    --primary-soft: #eff6ff;

    --success: #16a34a;
    --success-soft: #ecfdf3;

    --danger: #dc2626;
    --danger-soft: #fef2f2;

    --sidebar-width: 310px;
    --header-height: 76px;

    --content-width: 900px;

    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 18px;

    --shadow-sm:
        0 1px 3px rgba(16, 24, 40, 0.06);

    --shadow-md:
        0 8px 24px rgba(16, 24, 40, 0.07);

    --transition:
        0.2s ease;
}


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    min-height: 100vh;

    font-family:
        Inter,
        "Segoe UI",
        Arial,
        sans-serif;

    background:
        var(--bg-main);

    color:
        var(--text-main);

    line-height: 1.7;

    -webkit-font-smoothing:
        antialiased;
}


button {
    font: inherit;
}


button,
a {
    -webkit-tap-highlight-color:
        transparent;
}


button {

    border: none;

    background: none;

    cursor: pointer;
}


a {

    text-decoration: none;

    color: inherit;
}


/* =========================================================
   HEADER
========================================================= */

.learning-header {

    position: sticky;

    top: 0;

    z-index: 1000;

    height:
        var(--header-height);

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        0 28px;

    background:
        rgba(255, 255, 255, 0.96);

    border-bottom:
        1px solid var(--border);

    backdrop-filter:
        blur(12px);
}


/* =========================================================
   HEADER LEFT
========================================================= */

.header-left {

    display: flex;

    align-items: center;

    gap: 16px;

    min-width: 0;
}


/* =========================================================
   BACK BUTTON
========================================================= */

.back-btn {

    width: 40px;
    height: 40px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border:
        1px solid var(--border);

    border-radius:
        10px;

    color:
        var(--text-secondary);

    background:
        #fff;

    transition:
        var(--transition);
}


.back-btn:hover {

    color:
        var(--primary);

    border-color:
        #bfd3ff;

    background:
        var(--primary-soft);
}


/* =========================================================
   COURSE BRAND
========================================================= */

.course-brand {

    display: flex;

    align-items: center;

    gap: 11px;

    min-width: 0;
}


.course-logo {

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius:
        12px;

    background:
        linear-gradient(
            135deg,
            #2563eb,
            #1d4ed8
        );

    color:
        #fff;

    box-shadow:
        0 5px 14px
        rgba(37, 99, 235, 0.20);
}


.course-logo span {

    font-size: 14px;

    font-weight: 800;

    letter-spacing:
        -0.3px;
}


.course-brand-text {

    min-width: 0;
}


.course-brand-text h1 {

    font-size: 16px;

    font-weight: 700;

    line-height: 1.25;

    white-space: nowrap;
}


.course-brand-text p {

    margin-top: 2px;

    color:
        var(--text-secondary);

    font-size: 11px;

    line-height: 1.2;
}


/* =========================================================
   HEADER RIGHT
========================================================= */

.header-right {

    display: flex;

    align-items: center;

    gap: 22px;
}


/* =========================================================
   LANGUAGE SWITCH
========================================================= */

.language-switch {

    min-height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    padding:
        0 11px;

    border:
        1px solid var(--border);

    border-radius:
        9px;

    background:
        #fff;

    color:
        var(--text-secondary);

    font-size: 12px;

    font-weight: 600;

    transition:
        var(--transition);
}


.language-switch:hover {

    color:
        var(--primary);

    border-color:
        #bfd3ff;

    background:
        var(--primary-soft);
}


.language-switch i {

    font-size: 15px;
}


/* =========================================================
   HEADER PROGRESS
========================================================= */

.header-progress {

    width: 190px;
}


.progress-info {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 5px;
}


.progress-info span {

    color:
        var(--text-light);

    font-size: 10px;

    font-weight: 600;
}


.progress-info strong {

    color:
        var(--text-main);

    font-size: 11px;

    font-weight: 700;
}


.progress-bar {

    width: 100%;

    height: 5px;

    overflow: hidden;

    border-radius:
        999px;

    background:
        #e9edf3;
}


.progress-fill {

    width: 0;

    height: 100%;

    border-radius:
        inherit;

    background:
        var(--primary);

    transition:
        width 0.3s ease;
}


/* =========================================================
   MOBILE COURSE BAR
========================================================= */

.mobile-course-bar {

    display: none;
}


/* =========================================================
   MAIN COURSE LAYOUT
========================================================= */

.course-layout {

    min-height:
        calc(
            100vh -
            var(--header-height)
        );

    display: flex;
}


/* =========================================================
   SIDEBAR
========================================================= */

.course-sidebar {

    position: fixed;

    top:
        var(--header-height);

    left: 0;

    bottom: 0;

    z-index: 900;

    width:
        var(--sidebar-width);

    display: flex;

    flex-direction: column;

    overflow-y: auto;

    background:
        #fff;

    border-right:
        1px solid var(--border);
}


.course-sidebar::-webkit-scrollbar {

    width: 5px;
}


.course-sidebar::-webkit-scrollbar-thumb {

    border-radius:
        999px;

    background:
        #d9dee8;
}


/* =========================================================
   SIDEBAR HEADER
========================================================= */

.sidebar-header {

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        25px 20px 17px;
}


.sidebar-label {

    color:
        var(--primary);

    font-size: 9px;

    font-weight: 800;

    letter-spacing:
        0.9px;
}


.sidebar-header h2 {

    margin-top: 2px;

    font-size: 18px;

    font-weight: 700;

    line-height: 1.3;
}


.sidebar-close-btn {

    display: none;

    width: 34px;
    height: 34px;

    align-items: center;

    justify-content: center;

    border-radius:
        8px;

    color:
        var(--text-secondary);

    background:
        var(--bg-soft);
}


/* =========================================================
   SIDEBAR PROGRESS
========================================================= */

.sidebar-progress {

    margin:
        0 16px 15px;

    padding:
        13px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-md);

    background:
        var(--bg-soft);
}


.sidebar-progress-info {

    display: flex;

    align-items: center;

    justify-content: space-between;

    margin-bottom: 7px;
}


.sidebar-progress-info span {

    color:
        var(--text-secondary);

    font-size: 10px;

    font-weight: 600;
}


.sidebar-progress-info strong {

    color:
        var(--primary);

    font-size: 11px;
}


/* =========================================================
   COURSE MODULE
========================================================= */

.course-module {

    border-top:
        1px solid #f0f2f5;
}


.module-header {

    width: 100%;

    display: flex;

    align-items: center;

    justify-content: space-between;

    padding:
        14px 17px;

    text-align: left;

    color:
        var(--text-main);

    transition:
        var(--transition);
}


.module-header:hover {

    background:
        #fafbfc;
}


.module-title {

    display: flex;

    align-items: center;

    gap: 10px;
}


.module-number {

    width: 30px;
    height: 30px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius:
        8px;

    background:
        var(--bg-soft);

    color:
        var(--text-secondary);

    font-size: 10px;

    font-weight: 800;
}


.module-title strong {

    display: block;

    font-size: 12px;

    font-weight: 700;

    line-height: 1.35;
}


.module-title small {

    display: block;

    margin-top: 1px;

    color:
        var(--text-light);

    font-size: 9px;

    line-height: 1.3;
}


.module-header > i {

    color:
        var(--text-light);

    font-size: 10px;

    transition:
        transform var(--transition);
}


.course-module.active
.module-header > i {

    transform:
        rotate(180deg);
}


/* =========================================================
   LESSON LIST
========================================================= */

.lesson-list {

    display: none;

    padding:
        0 10px 10px;
}


.course-module.active
.lesson-list {

    display: block;
}


/* =========================================================
   LESSON ITEM
========================================================= */

.lesson-item {

    width: 100%;

    min-height: 42px;

    display: flex;

    align-items: center;

    gap: 9px;

    padding:
        8px 9px;

    margin-bottom: 2px;

    border-radius:
        8px;

    text-align: left;

    color:
        var(--text-secondary);

    transition:
        var(--transition);
}


.lesson-item:hover {

    color:
        var(--text-main);

    background:
        #f7f9fc;
}


.lesson-item.active {

    color:
        var(--primary);

    background:
        var(--primary-soft);
}


/* =========================================================
   LESSON STATUS
========================================================= */

.lesson-status {

    width: 23px;
    height: 23px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border:
        1px solid var(--border);

    border-radius:
        6px;

    background:
        #fff;

    color:
        var(--text-light);

    font-size: 8px;

    font-weight: 700;
}


.lesson-item.active
.lesson-status {

    border-color:
        #bfd3ff;

    background:
        #fff;

    color:
        var(--primary);
}


.lesson-item.completed
.lesson-status {

    border-color:
        #bbf7d0;

    background:
        var(--success-soft);

    color:
        var(--success);
}


.lesson-name {

    flex: 1;

    min-width: 0;

    font-size: 10.5px;

    font-weight: 600;

    line-height: 1.4;
}


.lesson-check {

    display: none;

    color:
        var(--success);

    font-size: 9px;
}


.lesson-item.completed
.lesson-check {

    display: block;
}


/* =========================================================
   SIDEBAR BOTTOM
========================================================= */

.sidebar-bottom {

    margin-top:
        auto;

    padding:
        16px;
}


.learning-note {

    display: flex;

    align-items: flex-start;

    gap: 10px;

    padding:
        12px;

    border:
        1px solid #e8edf4;

    border-radius:
        var(--radius-md);

    background:
        #fafbfc;
}


.learning-note > i {

    margin-top: 2px;

    color:
        #f59e0b;

    font-size: 14px;
}


.learning-note strong {

    display: block;

    color:
        var(--text-main);

    font-size: 10px;
}


.learning-note p {

    margin-top: 3px;

    color:
        var(--text-secondary);

    font-size: 9px;

    line-height: 1.5;
}


/* =========================================================
   SIDEBAR OVERLAY
========================================================= */

.sidebar-overlay {

    display: none;
}


/* =========================================================
   LESSON AREA
========================================================= */

.lesson-area {

    width:
        calc(
            100% -
            var(--sidebar-width)
        );

    margin-left:
        var(--sidebar-width);

    padding:
        40px 40px 70px;

    min-width: 0;
}


/* =========================================================
   LESSON HEADER
========================================================= */

.lesson-header {

    width: 100%;

    max-width:
        var(--content-width);

    margin:
        0 auto 28px;
}


.lesson-breadcrumb {

    display: flex;

    align-items: center;

    gap: 8px;

    margin-bottom: 13px;

    color:
        var(--text-light);

    font-size: 10px;

    font-weight: 600;
}


.lesson-breadcrumb i {

    font-size: 8px;
}


.lesson-heading-area {

    display: flex;

    align-items: flex-start;

    justify-content: space-between;

    gap: 20px;
}


.lesson-label {

    display: inline-block;

    margin-bottom: 5px;

    color:
        var(--primary);

    font-size: 9px;

    font-weight: 800;

    letter-spacing:
        0.8px;
}


.lesson-heading-area h2 {

    color:
        var(--text-main);

    font-size: 32px;

    font-weight: 750;

    line-height: 1.25;

    letter-spacing:
        -0.7px;
}


.lesson-description {

    max-width:
        680px;

    margin-top: 7px;

    color:
        var(--text-secondary);

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   LESSON NUMBER
========================================================= */

.lesson-number-display {

    width: 68px;
    height: 68px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border:
        1px solid #dbe5f5;

    border-radius:
        16px;

    background:
        var(--primary-soft);

    color:
        var(--primary);

    font-size: 20px;

    font-weight: 800;
}


/* =========================================================
   LESSON CONTENT
========================================================= */

#lessonContent {

    width: 100%;

    max-width:
        var(--content-width);

    margin:
        0 auto;
}


/* =========================================================
   LEARN SECTION
========================================================= */

.learn-section,
.example-section,
.practice-section,
.complete-section {

    margin-bottom:
        20px;

    padding:
        25px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius-lg);

    background:
        var(--bg-card);

    box-shadow:
        var(--shadow-sm);
}


/* =========================================================
   STEP HEADING
========================================================= */

.step-heading {

    display: flex;

    align-items: center;

    gap: 12px;

    margin-bottom:
        19px;
}


.step-number {

    width: 38px;
    height: 38px;

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    border-radius:
        10px;

    background:
        var(--primary-soft);

    color:
        var(--primary);

    font-size: 9px;

    font-weight: 800;
}


.step-label {

    display: block;

    color:
        var(--primary);

    font-size: 8px;

    font-weight: 800;

    letter-spacing:
        0.9px;

    line-height: 1.2;
}


.step-heading h2 {

    margin-top: 2px;

    color:
        var(--text-main);

    font-size: 18px;

    font-weight: 700;

    line-height: 1.3;
}


/* =========================================================
   LESSON TEXT
========================================================= */

.lesson-text {

    color:
        var(--text-secondary);

    line-height:
        1.85;
}


.lesson-text p {

    margin-bottom:
        12px;
}


.lesson-text p:last-child {

    margin-bottom: 0;
}


.lesson-text h3 {

    margin-top:
        30px;

    margin-bottom:
        14px;

    color:
        var(--text-main);

    line-height:
        1.35;
}


.lesson-text strong {

    color:
        var(--text-main);

    font-weight:
        700;
}


.lesson-text ul,
.lesson-text ol {

    margin:
        12px 0 16px;

    padding-left:
        22px;
}


.lesson-text li {

    margin-bottom:
        7px;
}


/* =========================================================
   CONTENT BLOCK
========================================================= */

.content-block {

    width: 100%;

    line-height:
        1.85;
}


.content-block p {

    margin:
        0 0 20px;
}


.content-block p:last-child {

    margin-bottom: 0;
}


.content-block h3 {

    margin-top:
        30px;

    margin-bottom:
        14px;

    color:
        var(--text-main);

    line-height:
        1.35;
}


.content-block strong {

    color:
        var(--text-main);
}


/* =========================================================
   INLINE CODE
========================================================= */

.lesson-text code,
.content-block code {

    padding:
        2px 6px;

    border-radius:
        5px;

    background:
        var(--bg-soft);

    color:
        var(--primary);

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size:
        0.92em;
}


/* =========================================================
   EXAMPLE — DARK CODE EDITOR
========================================================= */

.code-editor {

    margin-top:
        15px;

    overflow:
        hidden;

    border:
        1px solid #dfe4ec;

    border-radius:
        12px;

    background:
        #172033;

    box-shadow:
        0 5px 18px
        rgba(16, 24, 40, 0.10);
}


.code-editor-header {

    min-height:
        42px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    padding:
        0 13px;

    border-bottom:
        1px solid
        rgba(255, 255, 255, 0.08);

    background:
        #111827;
}


.code-file {

    display:
        flex;

    align-items:
        center;

    gap:
        7px;

    color:
        #d7deea;

    font-size:
        10px;

    font-weight:
        600;
}


.code-file i {

    color:
        #f97316;

    font-size:
        13px;
}


.copy-code-btn {

    display:
        flex;

    align-items:
        center;

    gap:
        6px;

    padding:
        6px 9px;

    border:
        1px solid
        rgba(255, 255, 255, 0.12);

    border-radius:
        7px;

    color:
        #d7deea;

    font-size:
        9px;

    font-weight:
        600;

    transition:
        var(--transition);
}


.copy-code-btn:hover {

    background:
        rgba(255, 255, 255, 0.08);
}


.code-editor pre {

    margin:
        0;

    padding:
        20px;

    overflow-x:
        auto;

    color:
        #e5e7eb;

    font-family:
        "SFMono-Regular",
        Consolas,
        "Liberation Mono",
        monospace;

    font-size:
        12px;

    line-height:
        1.7;
}


.code-editor code {

    font-family:
        inherit;

    white-space:
        pre;
}


/* =========================================================
   EXAMPLE EXPLANATION
========================================================= */

.example-explanation {

    margin-top:
        15px;

    padding:
        13px 15px;

    border-left:
        3px solid var(--primary);

    border-radius:
        0 8px 8px 0;

    background:
        var(--primary-soft);

    color:
        var(--text-secondary);

    line-height:
        1.75;
}


.example-explanation p {

    margin:
        0;
}


.example-explanation strong {

    color:
        var(--text-main);

    font-weight:
        700;
}


/* =========================================================
   PRACTICE
========================================================= */

.practice-card {

    margin-top:
        14px;

    padding:
        17px;

    border:
        1px solid var(--border);

    border-radius:
        12px;

    background:
        #fbfcfe;
}


.practice-question {

    display:
        flex;

    align-items:
        flex-start;

    gap:
        10px;

    margin-bottom:
        34px;
}


.practice-question:last-child {

    margin-bottom:
        0;
}


.question-number {

    width:
        28px;

    height:
        28px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    flex-shrink:
        0;

    border-radius:
        7px;

    background:
        var(--primary-soft);

    color:
        var(--primary);

    font-size:
        9px;

    font-weight:
        800;
}


.practice-question h4 {

    padding-top:
        2px;

    color:
        var(--text-main);

    font-size:
        13px;

    font-weight:
        650;

    line-height:
        1.5;
}


/* =========================================================
   PRACTICE OPTIONS
========================================================= */

.practice-options {

    display:
        grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap:
        8px;

    width:
        100%;
}


.practice-option {

    min-height:
        42px;

    padding:
        9px 11px;

    border:
        1px solid var(--border);

    border-radius:
        8px;

    background:
        #fff;

    color:
        var(--text-secondary);

    text-align:
        left;

    font-size:
        11px;

    font-weight:
        600;

    transition:
        var(--transition);
}


.practice-option:hover {

    border-color:
        #bfd3ff;

    background:
        var(--primary-soft);

    color:
        var(--primary);
}


.practice-option.correct {

    border-color:
        #86efac;

    background:
        var(--success-soft);

    color:
        var(--success);
}


.practice-option.wrong,
.practice-option.incorrect {

    border-color:
        #fecaca;

    background:
        var(--danger-soft);

    color:
        var(--danger);
}


.practice-option:disabled {

    cursor:
        default;
}


/* =========================================================
   PRACTICE FEEDBACK
========================================================= */

.practice-feedback {

    min-height:
        18px;

    margin-top:
        9px;

    font-size:
        10px;

    font-weight:
        600;

    line-height:
        1.5;
}


.practice-feedback.correct {

    color:
        var(--success);
}


.practice-feedback.wrong,
.practice-feedback.incorrect {

    color:
        var(--danger);
}


/* =========================================================
   COMPLETE
========================================================= */

.complete-section {

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 100%
        );
}


.complete-card {

    width:
        100%;
}


.complete-card h3 {

    margin:
        0 0 8px;

    color:
        var(--text-main);

    font-size:
        16px;

    font-weight:
        700;

    line-height:
        1.4;
}


.complete-card p {

    margin:
        0;

    color:
        var(--text-secondary);

    line-height:
        1.75;
}


.complete-btn,
.complete-lesson-btn {

    min-height:
        44px;

    display:
        inline-flex;

    align-items:
        center;

    justify-content:
        center;

    gap:
        8px;

    margin-top:
        16px;

    padding:
        0 17px;

    border-radius:
        9px;

    background:
        var(--primary);

    color:
        #fff;

    font-size:
        11px;

    font-weight:
        700;

    transition:
        var(--transition);
}


.complete-btn:hover,
.complete-lesson-btn:hover {

    background:
        var(--primary-dark);

    box-shadow:
        0 5px 14px
        rgba(37, 99, 235, 0.18);
}


.complete-btn.completed,
.complete-lesson-btn.completed {

    background:
        var(--success);
}


/* =========================================================
   LESSON NAVIGATION
========================================================= */

.lesson-navigation {

    width:
        100%;

    max-width:
        var(--content-width);

    margin:
        26px auto 0;

    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr)
        auto
        minmax(0, 1fr);

    align-items:
        center;

    gap:
        15px;
}


.lesson-nav-btn {

    min-height:
        58px;

    display:
        flex;

    align-items:
        center;

    gap:
        10px;

    padding:
        10px 13px;

    border:
        1px solid var(--border);

    border-radius:
        11px;

    background:
        #fff;

    color:
        var(--text-secondary);

    text-align:
        left;

    transition:
        var(--transition);
}


.lesson-nav-btn:hover:not(:disabled) {

    border-color:
        #bfd3ff;

    background:
        var(--primary-soft);
}


.lesson-nav-btn:disabled {

    opacity:
        0.45;

    cursor:
        not-allowed;
}


.lesson-nav-btn.next {

    justify-content:
        flex-end;

    text-align:
        right;
}


.lesson-nav-btn i {

    color:
        var(--primary);

    font-size:
        11px;
}


.lesson-nav-btn span {

    display:
        flex;

    flex-direction:
        column;

    min-width:
        0;
}


.lesson-nav-btn small {

    color:
        var(--text-light);

    font-size:
        8px;

    font-weight:
        700;

    line-height:
        1.3;
}


.lesson-nav-btn strong {

    max-width:
        210px;

    margin-top:
        2px;

    overflow:
        hidden;

    color:
        var(--text-main);

    font-size:
        11px;

    font-weight:
        650;

    line-height:
        1.35;

    text-overflow:
        ellipsis;

    white-space:
        nowrap;
}


.lesson-navigation-progress {

    color:
        var(--text-light);

    font-size:
        10px;

    font-weight:
        600;

    white-space:
        nowrap;
}


/* =========================================================
   MOBILE PROGRESS — BASE
========================================================= */

.mobile-progress {

    display:
        none;
}

/* =========================================================
   FUTUREVERSE — CSS LEARNING
   PART 2 — RESPONSIVE + MOBILE
========================================================= */


/* =========================================================
   TABLET
========================================================= */

@media (max-width: 1050px) {

    :root {
        --sidebar-width: 275px;
    }


    .learning-header {
        padding: 0 20px;
    }


    .header-right {
        gap: 15px;
    }


    .header-progress {
        width: 150px;
    }


    .lesson-area {
        padding:
            35px 30px 60px;
    }


    .lesson-header,
    #lessonContent,
    .lesson-navigation {
        max-width:
            850px;
    }


    .lesson-heading-area h2 {
        font-size: 30px;
    }


    .lesson-number-display {
        width: 62px;
        height: 62px;
    }
}


/* =========================================================
   TABLET — SIDEBAR COMPACT
========================================================= */

@media (max-width: 900px) {

    .course-brand-text p {
        display: none;
    }


    .header-progress {
        width: 130px;
    }


    .lesson-area {
        padding-left: 25px;
        padding-right: 25px;
    }
}


/* =========================================================
   MOBILE — MAIN BREAKPOINT
========================================================= */

@media (max-width: 760px) {

    :root {
        --header-height: 64px;
    }


    /* -----------------------------------------------------
       HEADER
    ----------------------------------------------------- */

    .learning-header {

        height:
            var(--header-height);

        padding:
            0 15px;
    }


    .header-left {

        gap: 10px;
    }


    .back-btn {

        width: 36px;
        height: 36px;

        border-radius: 9px;
    }


    .course-brand {

        gap: 9px;
    }


    .course-logo {

        width: 38px;
        height: 38px;

        border-radius: 10px;
    }


    .course-logo span {
        font-size: 13px;
    }


    .course-brand-text h1 {
        font-size: 14px;
    }


    .course-brand-text p {
        display: none;
    }


    /* -----------------------------------------------------
       HEADER RIGHT
    ----------------------------------------------------- */

    .header-right {

        gap: 7px;
    }


    .language-switch {

        width: 36px;
        min-height: 36px;

        padding: 0;

        border-radius: 9px;
    }


    .language-switch span {
        display: none;
    }


    .language-switch i {
        font-size: 14px;
    }


    .header-progress {
        display: none;
    }


    /* -----------------------------------------------------
       MOBILE COURSE BAR
    ----------------------------------------------------- */

    .mobile-course-bar {

        height: 48px;

        display: flex;

        align-items: center;

        gap: 10px;

        padding:
            0 15px;

        background:
            #fff;

        border-bottom:
            1px solid var(--border);
    }


    #mobileMenuBtn {

        width: 34px;
        height: 34px;

        display: flex;

        align-items: center;

        justify-content: center;

        flex-shrink: 0;

        border:
            1px solid var(--border);

        border-radius: 8px;

        background:
            #fff;

        color:
            var(--text-secondary);
    }


    #mobileLessonTitle {

        flex: 1;

        min-width: 0;

        overflow: hidden;

        color:
            var(--text-main);

        font-size: 11px;

        font-weight: 700;

        text-overflow: ellipsis;

        white-space: nowrap;
    }


    /* -----------------------------------------------------
       COURSE LAYOUT
    ----------------------------------------------------- */

    .course-layout {

        min-height:
            calc(
                100vh -
                var(--header-height) -
                48px
            );
    }


    /* -----------------------------------------------------
       SIDEBAR DRAWER
    ----------------------------------------------------- */

    .course-sidebar {

        top:
            var(--header-height);

        left:
            -100%;

        width:
            min(
                310px,
                88vw
            );

        z-index:
            1200;

        box-shadow:
            8px 0 30px
            rgba(16, 24, 40, 0.12);

        transition:
            left 0.25s ease;
    }


  .course-sidebar.open {
    left: 0;
}


    .sidebar-header {

        padding:
            20px 17px 15px;
    }


    .sidebar-close-btn {

        display: flex;
    }


    .sidebar-overlay {

        position: fixed;

        inset: 0;

        z-index: 1100;

        background:
            rgba(15, 23, 42, 0.38);

        backdrop-filter:
            blur(2px);
    }


    .sidebar-overlay.active {
        display: block;
    }


    /* -----------------------------------------------------
       SIDEBAR CONTENT
    ----------------------------------------------------- */

    .sidebar-progress {

        margin-left: 14px;
        margin-right: 14px;
    }


    .module-header {

        padding:
            13px 15px;
    }


    .lesson-list {

        padding:
            0 9px 9px;
    }


    .lesson-item {

        min-height:
            44px;

        padding:
            8px 9px;
    }


    .lesson-name {
        font-size: 10.5px;
    }


    /* -----------------------------------------------------
       LESSON AREA
    ----------------------------------------------------- */

    .lesson-area {

        width: 100%;

        margin-left: 0;

        padding:
            25px 15px 80px;
    }


    .lesson-header {

        margin-bottom:
            22px;
    }


    .lesson-breadcrumb {

        margin-bottom:
            10px;

        font-size:
            9px;
    }


    .lesson-heading-area {

        gap:
            12px;
    }


    .lesson-heading-area h2 {

        font-size:
            27px;

        line-height:
            1.28;

        letter-spacing:
            -0.4px;
    }


    .lesson-label {

        font-size:
            8px;
    }


    .lesson-description {

        margin-top:
            6px;

        font-size:
            12px;

        line-height:
            1.65;
    }


    .lesson-number-display {

        display:
            none !important;
    }


    /* -----------------------------------------------------
       LESSON CONTENT
    ----------------------------------------------------- */

    #lessonContent {
        max-width: 100%;
    }


    .learn-section,
    .example-section,
    .practice-section,
    .complete-section {

        margin-bottom:
            16px;

        padding:
            18px 16px;

        border-radius:
            15px;
    }


    /* -----------------------------------------------------
       STEP HEADING
    ----------------------------------------------------- */

    .step-heading {

        gap:
            10px;

        margin-bottom:
            16px;
    }


    .step-number {

        width:
            34px;

        height:
            34px;

        border-radius:
            9px;

        font-size:
            8px;
    }


    .step-label {

        font-size:
            7.5px;
    }


    .step-heading h2 {

        font-size:
            17px;
    }


    /* -----------------------------------------------------
       READING CONTENT
    ----------------------------------------------------- */

    .lesson-text,
    .content-block {

        font-size:
            13px;

        line-height:
            1.9;
    }


    .lesson-text p,
    .content-block p {

        margin-bottom:
            17px;
    }


    .lesson-text h3,
    .content-block h3 {

        margin-top:
            25px;

        margin-bottom:
            12px;

        font-size:
            16px;
    }


    .lesson-text ul,
    .lesson-text ol,
    .content-block ul,
    .content-block ol {

        padding-left:
            20px;
    }


    .lesson-text li,
    .content-block li {

        margin-bottom:
            8px;
    }


    /* -----------------------------------------------------
       CODE EDITOR
    ----------------------------------------------------- */

    .code-editor {

        margin-top:
            13px;

        border-radius:
            10px;
    }


    .code-editor-header {

        min-height:
            40px;

        padding:
            0 10px;
    }


    .code-file {

        font-size:
            9px;
    }


    .copy-code-btn {

        padding:
            6px 8px;

        font-size:
            8px;
    }


    .code-editor pre {

        padding:
            16px;

        font-size:
            10px;

        line-height:
            1.7;
    }


    /* -----------------------------------------------------
       EXAMPLE EXPLANATION
    ----------------------------------------------------- */

    .example-explanation {

        margin-top:
            13px;

        padding:
            11px 12px;

        font-size:
            11px;

        line-height:
            1.75;
    }


    /* -----------------------------------------------------
       PRACTICE
    ----------------------------------------------------- */

    .practice-card {

        margin-top:
            12px;

        padding:
            14px;

        border-radius:
            10px;
    }


    .practice-question {

        gap:
            9px;

        margin-bottom:
            28px;
    }


    .question-number {

        width:
            27px;

        height:
            27px;

        border-radius:
            7px;
    }


    .practice-question h4 {

        font-size:
            12px;

        line-height:
            1.55;
    }


    .practice-options {

        grid-template-columns:
            1fr;

        gap:
            7px;
    }


    .practice-option {

        min-height:
            43px;

        padding:
            9px 10px;

        font-size:
            11px;

        line-height:
            1.45;
    }


    .practice-feedback {

        font-size:
            10px;
    }


    /* -----------------------------------------------------
       COMPLETE
    ----------------------------------------------------- */

    .complete-card h3 {

        font-size:
            15px;
    }


    .complete-card p {

        font-size:
            12px;

        line-height:
            1.7;
    }


    .complete-btn,
    .complete-lesson-btn {

        width:
            100%;

        min-height:
            44px;

        font-size:
            11px;
    }


    /* -----------------------------------------------------
       LESSON NAVIGATION
    ----------------------------------------------------- */

    .lesson-navigation {

        max-width:
            100%;

        margin-top:
            20px;

        grid-template-columns:
            1fr 1fr;

        gap:
            9px;
    }


    .lesson-nav-btn {

        min-height:
            55px;

        padding:
            9px 10px;

        border-radius:
            10px;
    }


    .lesson-nav-btn.next {
        justify-content:
            flex-end;
    }


    .lesson-nav-btn strong {

        max-width:
            130px;

        font-size:
            10px;
    }


    .lesson-nav-btn small {

        font-size:
            7px;
    }


    .lesson-nav-btn i {

        font-size:
            10px;
    }


    .lesson-navigation-progress {

        display:
            none;
    }


    /* -----------------------------------------------------
       MOBILE BOTTOM PROGRESS
    ----------------------------------------------------- */

    .mobile-progress {

        position:
            fixed;

        left:
            0;

        right:
            0;

        bottom:
            0;

        z-index:
            1000;

        display:
            flex;

        align-items:
            center;

        gap:
            10px;

        height:
            48px;

        padding:
            0 15px;

        background:
            rgba(255, 255, 255, 0.97);

        border-top:
            1px solid var(--border);

        backdrop-filter:
            blur(10px);
    }


    .mobile-progress .progress-bar {

        flex:
            1;

        height:
            5px;
    }


    .mobile-progress span {

        color:
            var(--text-secondary);

        font-size:
            9px;

        font-weight:
            700;

        white-space:
            nowrap;
    }
}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .learning-header {

        padding:
            0 12px;
    }


    .course-brand-text h1 {

        max-width:
            145px;

        overflow:
            hidden;

        font-size:
            13px;

        text-overflow:
            ellipsis;

        white-space:
            nowrap;
    }


    .lesson-area {

        padding:
            22px 13px 78px;
    }


    .lesson-heading-area h2 {

        font-size:
            25px;
    }


    .lesson-description {

        font-size:
            11.5px;
    }


    .learn-section,
    .example-section,
    .practice-section,
    .complete-section {

        padding:
            17px 14px;

        border-radius:
            14px;
    }


    .lesson-text,
    .content-block {

        font-size:
            13px;

        line-height:
            1.9;
    }


    .code-editor pre {

        padding:
            14px;

        font-size:
            9.5px;
    }


    .practice-card {

        padding:
            12px;
    }


    .practice-option {

        min-height:
            42px;

        font-size:
            10.5px;
    }


    .lesson-navigation {

        gap:
            7px;
    }


    .lesson-nav-btn {

        min-height:
            52px;

        padding:
            8px;
    }


    .lesson-nav-btn strong {

        max-width:
            100px;

        font-size:
            9.5px;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 360px) {

    .course-logo {

        width:
            35px;

        height:
            35px;
    }


    .course-brand-text h1 {

        max-width:
            125px;

        font-size:
            12px;
    }


    .back-btn {

        width:
            34px;

        height:
            34px;
    }


    .lesson-heading-area h2 {

        font-size:
            23px;
    }


    .lesson-text,
    .content-block {

        font-size:
            12.5px;
    }


    .step-heading h2 {

        font-size:
            16px;
    }


    .lesson-nav-btn strong {

        max-width:
            82px;

        font-size:
            9px;
    }
}


/* =========================================================
   FINAL UI CORRECTION
   Keep sidebar clean on desktop
========================================================= */

.course-sidebar .sidebar-progress {

    display:
        none;
}


/* =========================================================
   FINAL LESSON HEADER CORRECTION
========================================================= */

.lesson-number-display {

    display:
        none !important;
}


/* =========================================================
   CLEAN DESKTOP LESSON HEADER
========================================================= */

.lesson-heading-area {

    align-items:
        flex-start;
}


.lesson-heading-area h2 {

    font-size:
        32px;
}


/* =========================================================
   FINAL MOBILE HEADER SIZE
========================================================= */

@media (max-width: 760px) {

    .lesson-heading-area h2 {

        font-size:
            27px;
    }


    .lesson-description {

        font-size:
            12px;
    }
}


/* =========================================================
   ACCESSIBILITY / FOCUS
========================================================= */

button:focus-visible,
a:focus-visible {

    outline:
        2px solid var(--primary);

    outline-offset:
        2px;
}


/* =========================================================
   SELECTION
========================================================= */

::selection {

    background:
        #dbeafe;

    color:
        var(--text-main);
}











/* =========================================================
   FUTUREVERSE — MOBILE SIDEBAR FINAL OVERRIDE
   Paste this at the VERY END of css-learning.css
========================================================= */

@media (max-width: 768px) {

    /* -----------------------------------------
       1. MOBILE SIDEBAR — FULL TOP TO BOTTOM
    ----------------------------------------- */

    .course-sidebar {
        position: fixed !important;

        top: 0 !important;
        left: -100% !important;
        bottom: 0 !important;

        width: min(310px, 88vw) !important;

        z-index: 1200 !important;

        overflow-y: auto !important;

        transition: left 0.25s ease !important;

        background: #fff !important;
    }


    /* -----------------------------------------
       2. OPEN SIDEBAR
       JS uses .open
    ----------------------------------------- */

    .course-sidebar.open {
        left: 0 !important;
    }


    /* -----------------------------------------
       3. MOBILE SIDEBAR HEADER
       Keep content nicely inside drawer
    ----------------------------------------- */

    .course-sidebar .sidebar-header {
        padding:
            20px 17px 15px !important;
    }


    /* -----------------------------------------
       4. OVERLAY / BLUR
    ----------------------------------------- */

    .sidebar-overlay {
        position: fixed !important;

        inset: 0 !important;

        z-index: 1100 !important;

        display: none !important;

        background:
            rgba(15, 23, 42, 0.38) !important;

        backdrop-filter:
            blur(2px) !important;

        -webkit-backdrop-filter:
            blur(2px) !important;
    }


    .sidebar-overlay.active {
        display: block !important;
    }


    /* -----------------------------------------
       5. SIDEBAR MUST STAY ABOVE OVERLAY
    ----------------------------------------- */

    .course-sidebar.open {
        z-index: 1200 !important;
    }


    /* -----------------------------------------
       6. CLOSE BUTTON
    ----------------------------------------- */

    .sidebar-close-btn {
        display: flex !important;

        align-items: center !important;
        justify-content: center !important;
    }


    /* -----------------------------------------
       7. PREVENT PAGE FROM MOVING
       WHEN SIDEBAR IS OPEN
    ----------------------------------------- */

    body.sidebar-open {
        overflow: hidden !important;
    }


    /* -----------------------------------------
       8. LESSON CLICK / SIDEBAR VISUAL
    ----------------------------------------- */

    .course-sidebar .lesson-item {
        position: relative !important;
        z-index: 1 !important;
    }


    /* -----------------------------------------
       9. MODULE HEADERS
    ----------------------------------------- */

    .course-sidebar .module-header {
        position: relative !important;
        z-index: 1 !important;
    }

}











/* =========================================================
   FUTUREVERSE — PRACTICE MOBILE LAYOUT FINAL OVERRIDE
   Paste at the VERY END of css-learning.css
========================================================= */

@media (max-width: 768px) {

    /* =========================================
       PRACTICE CONTAINER
    ========================================= */

    .practice-container {
        width: 100% !important;
        display: block !important;
    }


    /* =========================================
       EACH QUESTION
       Question + Options + Feedback vertically
    ========================================= */

    .practice-question {
        width: 100% !important;

        display: block !important;

        margin: 0 0 28px 0 !important;
        padding: 22px !important;

        border: 1px solid var(--border) !important;
        border-radius: 14px !important;

        background: #fbfcfe !important;

        box-sizing: border-box !important;
    }


    .practice-question:last-child {
        margin-bottom: 0 !important;
    }


    /* =========================================
       QUESTION TEXT
    ========================================= */

    .practice-question h3 {
        display: block !important;

        width: 100% !important;

        margin: 0 0 18px 0 !important;
        padding: 0 !important;

        color: var(--text-main) !important;

        font-size: 18px !important;
        font-weight: 750 !important;

        line-height: 1.45 !important;

        text-align: left !important;

        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;
    }


    /* =========================================
       OPTIONS
       4 boxes vertically
    ========================================= */

    .practice-options {
        width: 100% !important;

        display: grid !important;

        grid-template-columns: 1fr !important;

        gap: 10px !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* =========================================
       OPTION BOX
    ========================================= */

    .practice-option {
        width: 100% !important;

        min-height: 58px !important;

        display: flex !important;

        align-items: center !important;

        padding: 13px 16px !important;

        box-sizing: border-box !important;

        border: 1px solid var(--border) !important;
        border-radius: 12px !important;

        background: #fff !important;

        color: var(--text-secondary) !important;

        font-size: 14px !important;
        font-weight: 600 !important;

        line-height: 1.45 !important;

        text-align: left !important;

        white-space: normal !important;
        word-break: normal !important;
        overflow-wrap: break-word !important;

        transition:
            border-color 0.2s ease,
            background 0.2s ease,
            color 0.2s ease !important;
    }


    /* =========================================
       OPTION HOVER
    ========================================= */

    .practice-option:hover {
        border-color: #bfd3ff !important;

        background: var(--primary-soft) !important;

        color: var(--primary) !important;
    }


    /* =========================================
       CORRECT ANSWER
    ========================================= */

    .practice-option.correct {
        border-color: #86efac !important;

        background: var(--success-soft) !important;

        color: var(--success) !important;
    }


    /* =========================================
       WRONG ANSWER
    ========================================= */

    .practice-option.wrong,
    .practice-option.incorrect {
        border-color: #fecaca !important;

        background: var(--danger-soft) !important;

        color: var(--danger) !important;
    }


    /* =========================================
       FEEDBACK
       Always BELOW options
    ========================================= */

    .practice-feedback {
        width: 100% !important;

        display: block !important;

        min-height: 20px !important;

        margin-top: 12px !important;

        padding: 0 !important;

        font-size: 13px !important;

        font-weight: 700 !important;

        line-height: 1.5 !important;

        text-align: left !important;
    }


    .practice-feedback.correct {
        color: var(--success) !important;
    }


    .practice-feedback.wrong,
    .practice-feedback.incorrect {
        color: var(--danger) !important;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media (max-width: 480px) {

    .practice-question {
        padding: 18px !important;

        border-radius: 13px !important;
    }


    .practice-question h3 {
        font-size: 17px !important;

        line-height: 1.45 !important;

        margin-bottom: 16px !important;
    }


    .practice-options {
        gap: 9px !important;
    }


    .practice-option {
        min-height: 56px !important;

        padding: 12px 14px !important;

        font-size: 13px !important;

        border-radius: 11px !important;
    }


    .practice-feedback {
        margin-top: 11px !important;

        font-size: 12px !important;
    }

}








/* =========================================================
   FUTUREVERSE — DESKTOP PRACTICE LAYOUT
   PC / LAPTOP
========================================================= */

@media (min-width: 769px) {

    /* -----------------------------------------
       PRACTICE CONTAINER
    ----------------------------------------- */

    .practice-container {
        width: 100% !important;
        display: block !important;
    }


    /* -----------------------------------------
       EACH QUESTION
       LEFT = QUESTION
       RIGHT = OPTIONS
    ----------------------------------------- */

    .practice-question {
        width: 100% !important;

        display: grid !important;

        grid-template-columns:
            220px
            minmax(0, 1fr) !important;

        column-gap: 35px !important;
        row-gap: 0 !important;

        align-items: start !important;

        margin: 0 0 28px 0 !important;
        padding: 0 !important;

        border: none !important;
        background: transparent !important;
    }


    .practice-question:last-child {
        margin-bottom: 0 !important;
    }


    /* -----------------------------------------
       QUESTION
    ----------------------------------------- */

    .practice-question h3 {
        grid-column: 1 !important;
        grid-row: 1 !important;

        width: 100% !important;

        margin: 0 !important;
        padding: 0 !important;

        color: var(--text-main) !important;

        font-size: 18px !important;
        font-weight: 750 !important;

        line-height: 1.45 !important;

        text-align: left !important;

        white-space: normal !important;
        overflow-wrap: break-word !important;
    }


    /* -----------------------------------------
       OPTIONS — 2 × 2
    ----------------------------------------- */

    .practice-options {
        grid-column: 2 !important;
        grid-row: 1 !important;

        width: 100% !important;

        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap:
            14px 35px !important;

        margin: 0 !important;
        padding: 0 !important;
    }


    /* -----------------------------------------
       OPTION
    ----------------------------------------- */

    .practice-option {
        width: 100% !important;

        min-height: 42px !important;

        display: flex !important;

        align-items: center !important;

        padding: 8px 0 !important;

        border: none !important;
        border-radius: 0 !important;

        background: transparent !important;

        color: var(--text-secondary) !important;

        font-size: 13px !important;
        font-weight: 600 !important;

        line-height: 1.4 !important;

        text-align: left !important;

        white-space: normal !important;

        transition:
            color 0.2s ease,
            transform 0.2s ease !important;
    }


    /* -----------------------------------------
       OPTION HOVER
    ----------------------------------------- */

    .practice-option:hover {
        border: none !important;

        background: transparent !important;

        color: var(--primary) !important;

        transform: translateX(3px) !important;
    }


    /* -----------------------------------------
       CORRECT
    ----------------------------------------- */

    .practice-option.correct {
        border: none !important;

        background: transparent !important;

        color: var(--success) !important;
    }


    /* -----------------------------------------
       WRONG
    ----------------------------------------- */

    .practice-option.wrong,
    .practice-option.incorrect {
        border: none !important;

        background: transparent !important;

        color: var(--danger) !important;
    }


    /* -----------------------------------------
       FEEDBACK
       Below the options
    ----------------------------------------- */

    .practice-feedback {
        grid-column: 2 !important;
        grid-row: 2 !important;

        width: 100% !important;

        min-height: 20px !important;

        margin:
            6px 0 0 0 !important;

        padding: 0 !important;

        font-size: 12px !important;

        font-weight: 700 !important;

        line-height: 1.5 !important;

        text-align: left !important;
    }


    .practice-feedback.correct {
        color: var(--success) !important;
    }


    .practice-feedback.wrong,
    .practice-feedback.incorrect {
        color: var(--danger) !important;
    }

}


/* =========================================================
   LARGE PC
========================================================= */

@media (min-width: 1200px) {

    .practice-question {
        grid-template-columns:
            240px
            minmax(0, 1fr) !important;

        column-gap: 45px !important;

        margin-bottom: 32px !important;
    }


    .practice-question h3 {
        font-size: 19px !important;
    }


    .practice-option {
        font-size: 14px !important;
    }

}














/* =========================================================
   FUTUREVERSE — CSS LEARNING
   PRACTICE OPTION BOX FINAL DESIGN
========================================================= */


/* =========================================================
   DESKTOP / PC
   4 OPTIONS = 2 × 2
========================================================= */

@media (min-width: 761px) {

    .practice-options {
        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 14px 35px !important;

        width: 100% !important;
    }


    .practice-option {
        width: 100% !important;

        min-height: 48px !important;

        display: flex !important;

        align-items: center !important;

        padding: 12px 16px !important;

        box-sizing: border-box !important;

        border: 1.5px solid #222 !important;

        border-radius: 8px !important;

        background: #ffffff !important;

        color: var(--text-main) !important;

        font-size: 13px !important;

        font-weight: 600 !important;

        line-height: 1.45 !important;

        text-align: left !important;

        cursor: pointer !important;

        transform: none !important;

        transition:
            border-color 0.15s ease,
            color 0.15s ease,
            background-color 0.15s ease !important;
    }


    /* Hover — border रहेगा */

    .practice-option:hover {

        border: 1.5px solid #2563eb !important;

        background: #ffffff !important;

        color: #2563eb !important;

        transform: none !important;
    }


    /* Focus */

    .practice-option:focus {

        outline: none !important;

        border: 1.5px solid #2563eb !important;

        background: #ffffff !important;

        color: #2563eb !important;

        transform: none !important;
    }


    /* Correct */

    .practice-option.correct {

        border: 1.5px solid #16a34a !important;

        background: #f0fdf4 !important;

        color: #15803d !important;
    }


    /* Wrong */

    .practice-option.wrong,
    .practice-option.incorrect {

        border: 1.5px solid #dc2626 !important;

        background: #fef2f2 !important;

        color: #b91c1c !important;
    }


    /* Disabled */

    .practice-option:disabled {

        cursor: default !important;

        opacity: 1 !important;
    }

}


/* =========================================================
   MOBILE
   4 OPTIONS = ONE BELOW ANOTHER
========================================================= */

@media (max-width: 760px) {

    .practice-options {

        width: 100% !important;

        display: flex !important;

        flex-direction: column !important;

        gap: 10px !important;

        margin: 0 !important;

        padding: 0 !important;
    }


    .practice-option {

        width: 100% !important;

        min-height: 56px !important;

        display: flex !important;

        align-items: center !important;

        padding: 13px 16px !important;

        box-sizing: border-box !important;

        border: 1.5px solid #222 !important;

        border-radius: 10px !important;

        background: #ffffff !important;

        color: var(--text-main) !important;

        font-size: 14px !important;

        font-weight: 600 !important;

        line-height: 1.45 !important;

        text-align: left !important;

        cursor: pointer !important;

        transform: none !important;

        transition:
            border-color 0.15s ease,
            color 0.15s ease,
            background-color 0.15s ease !important;
    }


    /* Hover / Touch focus */

    .practice-option:hover,
    .practice-option:focus {

        border: 1.5px solid #2563eb !important;

        background: #ffffff !important;

        color: #2563eb !important;

        outline: none !important;

        transform: none !important;
    }


    /* Correct */

    .practice-option.correct {

        border: 1.5px solid #16a34a !important;

        background: #f0fdf4 !important;

        color: #15803d !important;
    }


    /* Wrong */

    .practice-option.wrong,
    .practice-option.incorrect {

        border: 1.5px solid #dc2626 !important;

        background: #fef2f2 !important;

        color: #b91c1c !important;
    }


    .practice-option:disabled {

        cursor: default !important;

        opacity: 1 !important;
    }

}


/* =========================================================
   FUTUREVERSE — CSS LEARNING
   JAVASCRIPT-STYLE FINAL UI
   Existing CSS course content preserved.
========================================================= */

/* ---------- Compact lesson sections ---------- */

.learn-section,
.example-section,
.practice-section,
.complete-section {
    margin-bottom: 20px !important;
    padding: 25px !important;
    border: 1px solid var(--border) !important;
    border-radius: var(--radius-lg) !important;
    background: var(--bg-card) !important;
    box-shadow: var(--shadow-sm) !important;
}

/* ---------- JS-style section heading ---------- */

.section-heading {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
    margin-bottom: 19px !important;
}

.section-icon {
    width: 38px !important;
    height: 38px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
    border-radius: 10px !important;
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
}

.section-icon i {
    font-size: 14px !important;
}

.section-heading > div {
    min-width: 0;
}

.section-heading span {
    display: block !important;
    color: var(--primary) !important;
    font-size: 8px !important;
    font-weight: 800 !important;
    letter-spacing: .9px !important;
    line-height: 1.2 !important;
}

.section-heading h3 {
    margin-top: 2px !important;
    color: var(--text-main) !important;
    font-size: 18px !important;
    font-weight: 700 !important;
    line-height: 1.3 !important;
}

/* ---------- Compact learning text ---------- */

.learn-section .lesson-text,
.learn-section .content-block,
.example-section .lesson-text,
.example-section .content-block {
    color: var(--text-secondary) !important;
    font-size: 13px !important;
    line-height: 1.85 !important;
}

.lesson-text p,
.content-block p {
    margin-bottom: 12px;
}

.lesson-text p:last-child,
.content-block p:last-child {
    margin-bottom: 0;
}

.lesson-text strong,
.content-block strong {
    color: var(--text-main);
    font-weight: 700;
}

.lesson-text h3,
.content-block h3 {
    margin-top: 25px;
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.4;
}

/* ---------- JS-style blue instruction / explanation block ---------- */

.example-explanation {
    margin-top: 15px !important;
    padding: 13px 15px !important;
    border: 0 !important;
    border-left: 3px solid var(--primary) !important;
    border-radius: 0 8px 8px 0 !important;
    background: var(--primary-soft) !important;
    color: var(--text-secondary) !important;
    font-size: 12px !important;
    line-height: 1.75 !important;
}

.example-explanation p {
    margin: 0 !important;
}

.example-explanation strong {
    color: var(--text-main) !important;
}

/* ---------- JS-style dark code editor ---------- */

.code-editor {
    margin-top: 15px !important;
    overflow: hidden !important;
    border: 1px solid #dfe4ec !important;
    border-radius: 12px !important;
    background: #172033 !important;
    box-shadow: 0 5px 18px rgba(16,24,40,.10) !important;
}

.code-editor-header {
    min-height: 42px !important;
    padding: 0 13px !important;
    background: #111827 !important;
    border-bottom: 1px solid rgba(255,255,255,.08) !important;
}

.code-file {
    font-size: 10px !important;
    font-weight: 600 !important;
}

.code-file i {
    color: #3b82f6 !important;
    font-size: 13px !important;
}

.copy-code-btn {
    padding: 6px 9px !important;
    border: 1px solid rgba(255,255,255,.12) !important;
    border-radius: 7px !important;
    color: #d7deea !important;
    font-size: 9px !important;
}

.code-editor pre {
    padding: 20px !important;
    color: #e5e7eb !important;
    font-size: 12px !important;
    line-height: 1.7 !important;
}

/* ---------- Practice — keep CSS course's existing questions ---------- */

.practice-section {
    background: #fff !important;
}

.practice-card {
    margin-top: 14px !important;
    padding: 17px !important;
    border: 1px solid var(--border) !important;
    border-radius: 12px !important;
    background: #fbfcfe !important;
}

.practice-question {
    margin-bottom: 28px !important;
}

.practice-question:last-child {
    margin-bottom: 0 !important;
}

.practice-question h3,
.practice-question h4 {
    color: var(--text-main) !important;
    font-weight: 650 !important;
    line-height: 1.5 !important;
}

.practice-option {
    min-height: 44px !important;
    padding: 10px 13px !important;
    border: 1.5px solid #dfe4ec !important;
    border-radius: 9px !important;
    background: #fff !important;
    color: var(--text-secondary) !important;
    font-size: 11px !important;
    font-weight: 600 !important;
    line-height: 1.45 !important;
    transition: border-color .15s ease, background-color .15s ease, color .15s ease !important;
}

.practice-option:hover,
.practice-option:focus {
    border-color: #2563eb !important;
    background: var(--primary-soft) !important;
    color: var(--primary) !important;
    outline: none !important;
}

.practice-option.correct {
    border-color: #86efac !important;
    background: var(--success-soft) !important;
    color: var(--success) !important;
}

.practice-option.wrong,
.practice-option.incorrect {
    border-color: #fecaca !important;
    background: var(--danger-soft) !important;
    color: var(--danger) !important;
}

/* ---------- Complete card ---------- */

.complete-section {
    background: linear-gradient(180deg,#fff 0%,#fbfdff 100%) !important;
}

.complete-card h3 {
    margin: 0 0 8px !important;
    color: var(--text-main) !important;
    font-size: 16px !important;
}

.complete-card p {
    margin: 0 !important;
    color: var(--text-secondary) !important;
    font-size: 13px !important;
    line-height: 1.75 !important;
}

/* ---------- Navigation exactly in JS-course visual language ---------- */

.lesson-navigation {
    width: 100% !important;
    max-width: var(--content-width) !important;
    margin: 26px auto 0 !important;
    display: grid !important;
    grid-template-columns: minmax(0,1fr) auto minmax(0,1fr) !important;
    align-items: center !important;
    gap: 15px !important;
}

.lesson-nav-btn {
    min-height: 58px !important;
    padding: 10px 13px !important;
    display: flex !important;
    align-items: center !important;
    gap: 10px !important;
    border: 1px solid var(--border) !important;
    border-radius: 11px !important;
    background: #fff !important;
    color: var(--text-secondary) !important;
}

.lesson-nav-btn:hover:not(:disabled) {
    border-color: #bfd3ff !important;
    background: var(--primary-soft) !important;
}

.lesson-nav-btn.next {
    justify-content: flex-end !important;
    text-align: right !important;
}

.lesson-nav-btn i {
    color: var(--primary) !important;
    font-size: 11px !important;
}

.lesson-nav-btn small {
    color: var(--text-light) !important;
    font-size: 8px !important;
    font-weight: 700 !important;
}

.lesson-nav-btn strong {
    max-width: 210px !important;
    margin-top: 2px !important;
    overflow: hidden !important;
    color: var(--text-main) !important;
    font-size: 11px !important;
    font-weight: 650 !important;
    line-height: 1.35 !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
}

/* ---------- Accordion: clean JS-style module list ---------- */

.course-module {
    border-top: 1px solid #f0f2f5 !important;
}

.module-header {
    padding: 14px 17px !important;
}

.module-header:hover {
    background: #fafbfc !important;
}

.lesson-list {
    padding: 0 10px 10px !important;
}

.lesson-item {
    min-height: 42px !important;
    padding: 8px 9px !important;
    border-radius: 8px !important;
}

.lesson-name {
    font-size: 10.5px !important;
    font-weight: 600 !important;
}

/* ---------- Desktop ---------- */

@media (min-width: 761px) {
    .practice-options {
        display: grid !important;
        grid-template-columns: repeat(2,minmax(0,1fr)) !important;
        gap: 8px !important;
    }
}

/* ---------- Mobile: same compact JS feel ---------- */

@media (max-width: 760px) {

    .learn-section,
    .example-section,
    .practice-section,
    .complete-section {
        margin-bottom: 16px !important;
        padding: 18px 16px !important;
        border-radius: 15px !important;
    }

    .section-heading {
        gap: 10px !important;
        margin-bottom: 16px !important;
    }

    .section-icon {
        width: 34px !important;
        height: 34px !important;
        border-radius: 9px !important;
    }

    .section-heading span {
        font-size: 7.5px !important;
    }

    .section-heading h3 {
        font-size: 17px !important;
    }

    .learn-section .lesson-text,
    .learn-section .content-block,
    .example-section .lesson-text,
    .example-section .content-block {
        font-size: 13px !important;
        line-height: 1.9 !important;
    }

    .example-explanation {
        margin-top: 13px !important;
        padding: 11px 12px !important;
        font-size: 11px !important;
    }

    .code-editor {
        margin-top: 13px !important;
        border-radius: 10px !important;
    }

    .code-editor-header {
        min-height: 40px !important;
        padding: 0 10px !important;
    }

    .code-editor pre {
        padding: 16px !important;
        font-size: 10px !important;
    }

    .practice-options {
        display: flex !important;
        flex-direction: column !important;
        gap: 7px !important;
    }

    .practice-option {
        width: 100% !important;
        min-height: 45px !important;
        font-size: 11px !important;
    }

    .lesson-navigation {
        max-width: 100% !important;
        margin-top: 20px !important;
        grid-template-columns: 1fr 1fr !important;
        gap: 9px !important;
    }

    .lesson-nav-btn {
        min-height: 55px !important;
        padding: 9px 10px !important;
        border-radius: 10px !important;
    }

    .lesson-nav-btn strong {
        max-width: 130px !important;
        font-size: 10px !important;
    }

    .lesson-navigation-progress {
        display: none !important;
    }
}

@media (max-width: 480px) {
    .lesson-area {
        padding-left: 13px !important;
        padding-right: 13px !important;
    }

    .learn-section,
    .example-section,
    .practice-section,
    .complete-section {
        padding: 17px 14px !important;
        border-radius: 14px !important;
    }

    .lesson-nav-btn strong {
        max-width: 100px !important;
        font-size: 9.5px !important;
    }
}





/* =========================================================
   MOBILE — KEEP COURSE MENU HEADER STICKY
========================================================= */

@media (max-width: 760px) {

    /* Main header */
    .learning-header {
        position: sticky !important;
        top: 0 !important;
        z-index: 2000 !important;
    }

    /* Menu / current lesson header
       Example: ☰  What is CSS? */
    .mobile-course-bar {
        position: sticky !important;
        top: var(--header-height) !important;
        z-index: 1900 !important;

        background: rgba(255, 255, 255, 0.98) !important;
        backdrop-filter: blur(12px) !important;
        -webkit-backdrop-filter: blur(12px) !important;

        border-bottom: 1px solid var(--border) !important;
    }
}



















/* =========================================================
   CSS LEARNING — PRACTICE OPTIONS
   SAME STYLE AS HTML FUNDAMENTALS
========================================================= */

@media (min-width: 761px) {

    .practice-options {
        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 14px 35px !important;

        width: 100% !important;
    }

    .practice-option {
        width: 100% !important;

        min-height: 48px !important;

        display: flex !important;

        align-items: center !important;

        padding: 12px 16px !important;

        border: 1.5px solid #222 !important;

        border-radius: 8px !important;

        background: #ffffff !important;

        color: var(--text-main) !important;

        font-size: 13px !important;

        font-weight: 600 !important;

        line-height: 1.45 !important;

        text-align: left !important;

        box-sizing: border-box !important;
    }

    .practice-option .option-label {
        flex: 0 0 auto !important;

        min-width: 24px !important;

        margin-right: 8px !important;

        font-size: 13px !important;

        font-weight: 800 !important;
    }

    .practice-option .option-text {
        font-size: 13px !important;

        font-weight: 600 !important;
    }

}










/* =========================================================
   CSS LEARNING — FINAL PC PRACTICE LAYOUT
   QUESTION TOP + OPTIONS BELOW
   SAME AS HTML FUNDAMENTALS
========================================================= */

@media (min-width: 761px) {

    /* -----------------------------------------
       EACH QUESTION
    ----------------------------------------- */

    .practice-question {
        width: 100% !important;

        display: block !important;

        margin: 0 0 38px 0 !important;

        padding: 0 !important;

        box-sizing: border-box !important;

        border: none !important;

        background: transparent !important;
    }


    /* -----------------------------------------
       QUESTION
       FULL WIDTH ON TOP
    ----------------------------------------- */

    .practice-question h3 {
        width: 100% !important;

        display: block !important;

        margin: 0 0 20px 0 !important;

        padding: 0 !important;

        font-size: 18px !important;

        font-weight: 750 !important;

        line-height: 1.5 !important;

        color: var(--text-main) !important;

        text-align: left !important;

        white-space: normal !important;

        overflow-wrap: break-word !important;
    }


    /* -----------------------------------------
       OPTIONS
       2 × 2 BELOW QUESTION
    ----------------------------------------- */

    .practice-options {
        width: 100% !important;

        display: grid !important;

        grid-template-columns:
            repeat(2, minmax(0, 1fr)) !important;

        gap: 12px 35px !important;

        margin: 0 !important;

        padding: 0 !important;

        box-sizing: border-box !important;
    }


    /* -----------------------------------------
       OPTION BOX
    ----------------------------------------- */

    .practice-option {
        width: 100% !important;

        min-height: 48px !important;

        display: flex !important;

        align-items: center !important;

        padding: 12px 16px !important;

        box-sizing: border-box !important;

        border: 1.5px solid #222 !important;

        border-radius: 8px !important;

        background: #ffffff !important;

        color: var(--text-main) !important;

        font-size: 13px !important;

        font-weight: 600 !important;

        line-height: 1.45 !important;

        text-align: left !important;
    }


    /* -----------------------------------------
       A / B / C / D
    ----------------------------------------- */

    .practice-option .option-label {
        flex: 0 0 auto !important;

        min-width: 24px !important;

        margin-right: 8px !important;

        font-size: 13px !important;

        font-weight: 800 !important;
    }


    /* -----------------------------------------
       OPTION TEXT
    ----------------------------------------- */

    .practice-option .option-text {
        font-size: 13px !important;

        font-weight: 600 !important;

        line-height: 1.45 !important;
    }


    /* -----------------------------------------
       HOVER
    ----------------------------------------- */

    .practice-option:hover {
        border-color: #222 !important;

        background: #f5f7fb !important;

        transform: translateY(-1px) !important;
    }


    /* -----------------------------------------
       FEEDBACK
    ----------------------------------------- */

    .practice-feedback {
        width: 100% !important;

        margin-top: 10px !important;

        font-size: 12px !important;

        line-height: 1.5 !important;
    }

}


/* =========================================================
   LARGE PC
========================================================= */

@media (min-width: 1200px) {

    .practice-question h3 {
        font-size: 19px !important;
    }

    .practice-option {
        font-size: 13px !important;
    }

}