/* =========================================================
   FUTUREVERSE — JAVASCRIPT BASICS
   COURSE LEARNING CSS
   PART 1 — CORE 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 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 {

    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;

    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-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;
}


/* =========================================================
   LEARNING SECTION
========================================================= */

#lessonContent {

    width: 100%;
    max-width:
        var(--content-width);

    margin:
        0 auto;
}


.learning-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);
}


/* =========================================================
   SECTION HEADING
========================================================= */

.section-heading {

    display: flex;
    align-items: center;

    gap: 12px;

    margin-bottom: 19px;
}


.section-icon {

    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);
}


.section-icon i {

    font-size: 14px;
}


.section-heading span {

    display: block;

    color:
        var(--primary);

    font-size: 8px;
    font-weight: 800;

    letter-spacing: 0.9px;

    line-height: 1.2;
}


.section-heading h3 {

    margin-top: 2px;

    color:
        var(--text-main);

    font-size: 18px;
    font-weight: 700;

    line-height: 1.3;
}


/* =========================================================
   LANGUAGE CONTENT
========================================================= */

.language-content {

    font-size: 13px;

    color:
        var(--text-secondary);
}


.language-content h4 {

    margin-bottom: 8px;

    color:
        var(--text-main);

    font-size: 16px;
    font-weight: 700;
}


.language-content p {

    margin-bottom: 12px;
}


.language-content p:last-child {

    margin-bottom: 0;
}


.language-content strong {

    color:
        var(--text-main);

    font-weight: 700;
}


.english-content {

    display: block;
}


.hindi-content {

    display: none;
}


/* =========================================================
   EXAMPLE — 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;
}


/* =========================================================
   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: 14px;
}


.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;
}


.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 {

    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;
}


.practice-feedback.correct {

    color:
        var(--success);
}


.practice-feedback.wrong {

    color:
        var(--danger);
}


/* =========================================================
   COMPLETE
========================================================= */

.complete-section {

    background:
        linear-gradient(
            180deg,
            #ffffff 0%,
            #fbfdff 100%
        );
}


.complete-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 {

    background:
        var(--primary-dark);

    box-shadow:
        0 5px 14px
        rgba(37, 99, 235, 0.18);
}


.complete-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 BOTTOM PROGRESS
========================================================= */

.mobile-progress {

    display: none;
}


/* =========================================================
   RESPONSIVE — TABLET
========================================================= */

@media (max-width: 1050px) {

    :root {
        --sidebar-width: 275px;
    }


    .learning-header {

        padding:
            0 20px;
    }


    .lesson-area {

        padding:
            35px 30px 60px;
    }


    .header-progress {

        width: 150px;
    }


    .lesson-heading-area h2 {

        font-size: 30px;
    }

}


/* =========================================================
   RESPONSIVE — MOBILE
========================================================= */

@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;
    }


    .course-logo {

        width: 36px;
        height: 36px;

        border-radius: 10px;
    }


    .course-logo span {

        font-size: 12px;
    }


    .course-brand-text h1 {

        font-size: 14px;
    }


    .course-brand-text p {

        font-size: 9px;
    }


    .header-right {

        gap: 8px;
    }


    .language-switch {

        width: 36px;
        height: 36px;

        justify-content: center;

        padding: 0;
    }


    .language-switch span {

        display: none;
    }


    .header-progress {

        display: none;
    }


    /* Mobile Course Bar */

    .mobile-course-bar {

        position: sticky;

        top:
            var(--header-height);

        z-index: 800;

        height: 48px;

        display: flex;
        align-items: center;

        gap: 11px;

        padding:
            0 15px;

        background:
            #fff;

        border-bottom:
            1px solid var(--border);
    }


    .mobile-menu-btn {

        width: 32px;
        height: 32px;

        display: flex;
        align-items: center;
        justify-content: center;

        flex-shrink: 0;

        border-radius: 8px;

        background:
            var(--bg-soft);

        color:
            var(--text-secondary);
    }


    #mobileLessonTitle {

        overflow: hidden;

        color:
            var(--text-main);

        font-size: 11px;
        font-weight: 650;

        text-overflow: ellipsis;
        white-space: nowrap;
    }


    /* Sidebar */

    .course-sidebar {

        top: 0;
        bottom: 0;

        width:
            min(310px, 88vw);

        z-index: 1200;

        transform:
            translateX(-100%);

        transition:
            transform 0.25s ease;

        box-shadow:
            10px 0 30px
            rgba(16, 24, 40, 0.12);
    }


    .course-sidebar.open {

        transform:
            translateX(0);
    }


    .sidebar-close-btn {

        display: flex;
    }


    .sidebar-overlay {

        position: fixed;

        inset: 0;

        z-index: 1100;

        background:
            rgba(15, 23, 42, 0.35);

        backdrop-filter:
            blur(2px);
    }


    .sidebar-overlay.active {

        display: block;
    }


    /* Main */

    .course-layout {

        min-height:
            calc(
                100vh -
                var(--header-height) -
                48px
            );
    }


    .lesson-area {

        width: 100%;

        margin-left: 0;

        padding:
            25px 15px 80px;
    }


    /* Lesson Header */

    .lesson-header {

        margin-bottom:
            20px;
    }


    .lesson-breadcrumb {

        margin-bottom: 10px;

        font-size: 9px;
    }


    .lesson-heading-area {

        gap: 12px;
    }


    .lesson-heading-area h2 {

        font-size: 25px;

        letter-spacing:
            -0.4px;
    }


    .lesson-description {

        margin-top: 6px;

        font-size: 11px;
    }


    .lesson-number-display {

        width: 52px;
        height: 52px;

        border-radius: 13px;

        font-size: 15px;
    }


    /* Learning Sections */

    .learning-section {

        margin-bottom: 14px;

        padding:
            18px 16px;

        border-radius:
            14px;
    }


    .section-heading {

        gap: 10px;

        margin-bottom:
            15px;
    }


    .section-icon {

        width: 34px;
        height: 34px;

        border-radius: 9px;
    }


    .section-icon i {

        font-size: 12px;
    }


    .section-heading h3 {

        font-size: 16px;
    }


    .section-heading span {

        font-size: 7px;
    }


    .language-content {

        font-size: 12px;

        line-height: 1.7;
    }


    .language-content h4 {

        font-size: 14px;
    }


    /* Code */

    .code-editor {

        margin-top: 13px;

        border-radius:
            10px;
    }


    .code-editor-header {

        min-height: 39px;

        padding:
            0 10px;
    }


    .code-editor pre {

        padding:
            15px;

        font-size: 10px;

        line-height: 1.65;
    }


    .copy-code-btn {

        padding:
            5px 7px;

        font-size: 8px;
    }


    /* Practice */

    .practice-card {

        padding:
            13px;

        border-radius:
            10px;
    }


    .practice-question {

        gap: 8px;

        margin-bottom:
            11px;
    }


    .question-number {

        width: 25px;
        height: 25px;

        font-size: 8px;
    }


    .practice-question h4 {

        font-size: 11px;
    }


    .practice-options {

        grid-template-columns:
            1fr;

        gap: 6px;
    }


    .practice-option {

        min-height: 40px;

        padding:
            8px 10px;

        font-size: 10px;
    }


    /* Complete */

    .complete-btn {

        width: 100%;

        margin-top: 13px;
    }


    /* Navigation */

    .lesson-navigation {

        margin-top:
            18px;

        grid-template-columns:
            1fr 1fr;

        gap: 8px;
    }


    .lesson-navigation-progress {

        display: none;
    }


    .lesson-nav-btn {

        min-height: 53px;

        padding:
            8px 9px;

        gap: 7px;
    }


    .lesson-nav-btn strong {

        max-width:
            125px;

        font-size: 9px;
    }


    .lesson-nav-btn small {

        font-size: 7px;
    }


    .lesson-nav-btn i {

        font-size: 9px;
    }


    /* Mobile Bottom Progress */

    .mobile-progress {

        position: fixed;

        left: 0;
        right: 0;
        bottom: 0;

        z-index: 1000;

        display: block;

        padding:
            8px 15px 10px;

        background:
            rgba(255, 255, 255, 0.97);

        border-top:
            1px solid var(--border);

        backdrop-filter:
            blur(10px);
    }


    .mobile-progress-info {

        display: flex;
        align-items: center;
        justify-content: space-between;

        margin-bottom: 5px;
    }


    .mobile-progress-info span {

        color:
            var(--text-light);

        font-size: 8px;
        font-weight: 600;
    }


    .mobile-progress-info strong {

        color:
            var(--primary);

        font-size: 9px;
    }


    .mobile-progress .progress-bar {

        height: 4px;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .course-brand-text h1 {

        font-size: 12px;
    }


    .course-brand-text p {

        font-size: 8px;
    }


    .lesson-heading-area h2 {

        font-size: 22px;
    }


    .lesson-number-display {

        width: 46px;
        height: 46px;

        font-size: 13px;
    }


    .lesson-area {

        padding-left: 12px;
        padding-right: 12px;
    }

}












/* =========================================================
   FUTUREVERSE COURSE — MOBILE READING & PRACTICE FIX
   ========================================================= */


/* =========================================================
   1. LESSON CONTENT — BETTER READING EXPERIENCE
   ========================================================= */

.lesson-area {
    padding-bottom: 110px;
}

#lessonContent {
    max-width: 900px;
    margin: 0 auto;
}

.learn-section,
.example-section,
.practice-section,
.complete-section {
    margin-top: 42px;
}

.content-block {
    line-height: 1.85;
}

.content-block h3 {
    margin-top: 30px;
    margin-bottom: 14px;
    line-height: 1.35;
}

.content-block p {
    margin: 0 0 20px;
}


/* =========================================================
   2. PRACTICE — CLEAN DESKTOP LAYOUT
   ========================================================= */

.practice-question {
    margin-bottom: 34px;
}

.practice-question-text {
    margin-bottom: 18px;
    line-height: 1.5;
}

.practice-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    width: 100%;
}

.practice-option {
    width: 100%;
    min-height: 58px;
    display: flex;
    align-items: center;
    text-align: left;
    box-sizing: border-box;
}


/* =========================================================
   3. PRACTICE FEEDBACK
   ========================================================= */

.practice-feedback {
    margin-top: 12px;
    line-height: 1.5;
}

.practice-option.correct {
    border-color: #22c55e;
}

.practice-option.incorrect {
    border-color: #ef4444;
}


/* =========================================================
   4. MOBILE — READING FIRST
   ========================================================= */

@media (max-width: 760px) {

    .lesson-area {
        padding-left: 18px;
        padding-right: 18px;
        padding-bottom: 115px;
    }

    #lessonContent {
        width: 100%;
        max-width: none;
    }


    /* Lesson Header */

    .lesson-header {
        padding: 26px 0 24px;
    }

    .lesson-title,
    #lessonTitle {
        font-size: 32px;
        line-height: 1.2;
        margin-bottom: 14px;
    }

    #lessonDescription {
        font-size: 17px;
        line-height: 1.65;
    }


    /* Step Sections */

    .learn-section,
    .example-section,
    .practice-section,
    .complete-section {
        margin-top: 34px;
    }


    /* Step heading */

    .step-number {
        margin-bottom: 8px;
    }

    .step-label {
        margin-bottom: 8px;
    }


    /* Main Learn heading */

    .learn-section h2,
    .example-section h2,
    .practice-section h2,
    .complete-section h2 {
        line-height: 1.25;
        margin-bottom: 24px;
    }


    /* Content */

    .content-block {
        font-size: 17px;
        line-height: 1.9;
    }

    .content-block h3 {
        font-size: 23px;
        line-height: 1.35;
        margin-top: 30px;
        margin-bottom: 14px;
    }

    .content-block p {
        font-size: 17px;
        line-height: 1.9;
        margin-bottom: 22px;
    }


    /* =====================================================
       PRACTICE — MOBILE MUST BE ONE COLUMN
       ===================================================== */

    .practice-question {
        width: 100%;
        margin-bottom: 42px;
    }

    .practice-question-text {
        width: 100%;
        font-size: 20px;
        line-height: 1.5;
        margin-bottom: 18px;
    }

    .practice-options {
        width: 100%;
        display: flex !important;
        flex-direction: column !important;
        gap: 10px;
        margin: 0;
    }

    .practice-option {
        width: 100% !important;
        min-height: 58px;
        padding: 15px 17px;
        font-size: 16px;
        line-height: 1.45;
        display: flex;
        align-items: center;
        justify-content: flex-start;
        text-align: left;
        box-sizing: border-box;
    }

    .practice-feedback {
        width: 100%;
        margin-top: 12px;
        font-size: 15px;
        line-height: 1.5;
    }


    /* =====================================================
       CODE EXAMPLE — MOBILE
       ===================================================== */

    .code-editor,
    .code-block {
        width: 100%;
        max-width: 100%;
        overflow-x: auto;
        box-sizing: border-box;
    }

    pre {
        max-width: 100%;
        overflow-x: auto;
    }


    /* =====================================================
       COMPLETE SECTION
       ===================================================== */

    .complete-section {
        padding-bottom: 20px;
    }

}





/* =========================================================
   LESSON NUMBER — PREMIUM MOBILE FIX
========================================================= */

@media (max-width: 760px) {

    .lesson-heading-area {
        display: flex;
        align-items: flex-start;
        justify-content: space-between;
        gap: 16px;
    }

    .lesson-heading-area > div:first-child {
        flex: 1;
        min-width: 0;
    }

    .lesson-number-display {
        width: 58px;
        height: 58px;

        flex: 0 0 58px;

        display: flex;
        align-items: center;
        justify-content: center;

        margin-top: 2px;

        border: 1px solid #dbe5f5;
        border-radius: 16px;

        background: #eef4ff;

        color: #2563eb;

        font-size: 18px;
        font-weight: 800;

        line-height: 1;
        letter-spacing: 0;

        box-sizing: border-box;
    }

}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .lesson-heading-area {
        gap: 12px;
    }

    .lesson-number-display {
        width: 50px;
        height: 50px;

        flex-basis: 50px;

        border-radius: 14px;

        font-size: 16px;
    }

}













/* =========================================================
   FUTUREVERSE — FINAL COURSE UI CORRECTION
========================================================= */


/* =========================================================
   1. REMOVE DUPLICATE SIDEBAR COURSE PROGRESS
   Header will remain the main Course Progress display.
========================================================= */

.course-sidebar .sidebar-progress {
    display: none;
}


/* =========================================================
   2. CLEAN LESSON HEADER
   Remove the unnecessary large Lesson Number box.
========================================================= */

.lesson-number-display {
    display: none !important;
}


/* =========================================================
   3. LESSON HEADER — CLEAN & PREMIUM
========================================================= */

.lesson-header {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto 30px;
}

.lesson-breadcrumb {
    display: flex;
    align-items: center;
    gap: 8px;

    margin-bottom: 14px;

    color: var(--text-light);
    font-size: 10px;
    font-weight: 600;
}

.lesson-heading-area {
    display: block;
}

.lesson-label {
    display: inline-block;

    margin-bottom: 6px;

    color: var(--primary);

    font-size: 9px;
    font-weight: 800;
    letter-spacing: 1px;
}

.lesson-heading-area h2 {
    margin: 0;

    color: var(--text-main);

    font-size: 32px;
    font-weight: 750;

    line-height: 1.25;
    letter-spacing: -0.6px;
}

.lesson-description {
    max-width: 700px;

    margin-top: 7px;

    color: var(--text-secondary);

    font-size: 13px;
    line-height: 1.6;
}


/* =========================================================
   4. MOBILE LESSON HEADER
========================================================= */

@media (max-width: 760px) {

    .lesson-header {
        margin-bottom: 22px;
        padding: 22px 0 4px;
    }

    .lesson-breadcrumb {
        margin-bottom: 10px;
        font-size: 9px;
    }

    .lesson-heading-area {
        display: block;
    }

    .lesson-label {
        margin-bottom: 6px;
        font-size: 8px;
        letter-spacing: 0.9px;
    }

    .lesson-heading-area h2 {
        font-size: 27px;
        line-height: 1.25;
        letter-spacing: -0.4px;
    }

    .lesson-description {
        margin-top: 7px;
        font-size: 12px;
        line-height: 1.65;
    }

    /* Mobile bottom progress remains the ONLY
       progress indicator on mobile */

    .header-progress {
        display: none !important;
    }

    .course-sidebar .sidebar-progress {
        display: none !important;
    }

}


/* =========================================================
   5. VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .lesson-heading-area h2 {
        font-size: 24px;
    }

    .lesson-description {
        font-size: 11px;
    }

}












/* =========================================================
   PRACTICE — MOBILE QUESTION LAYOUT FIX
========================================================= */

@media (max-width: 760px) {

    .practice-question {
        display: block !important;
        width: 100%;
        margin-bottom: 42px;
    }

    .practice-question > .question-number {
        display: flex;
        width: 30px;
        height: 30px;

        margin-bottom: 12px;
    }

    .practice-question > div {
        width: 100%;
    }

    .practice-question h4 {
        width: 100%;

        margin: 0 0 18px;

        font-size: 20px;
        line-height: 1.5;
        font-weight: 700;
    }

    .practice-options {
        width: 100% !important;

        display: flex !important;
        flex-direction: column !important;

        gap: 10px;
    }

    .practice-option {
        width: 100% !important;
        min-height: 58px;

        padding: 15px 17px;

        display: flex;
        align-items: center;

        font-size: 16px;
        line-height: 1.45;

        text-align: left;
    }

    .practice-feedback {
        width: 100%;
        margin-top: 12px;

        font-size: 15px;
        line-height: 1.5;
    }
}















/* =========================================================
   FUTUREVERSE — JAVASCRIPT BASICS
   DESKTOP PRACTICE LAYOUT
   Same layout as CSS Learning
========================================================= */

@media (min-width: 761px) {

    /* -----------------------------------------
       PRACTICE QUESTION
       LEFT = QUESTION
       RIGHT = OPTIONS
    ----------------------------------------- */

    .practice-question {
        width: 100% !important;

        display: grid !important;

        grid-template-columns:
            220px
            minmax(0, 1fr) !important;

        column-gap: 40px !important;

        row-gap: 0 !important;

        align-items: start !important;

        margin-bottom: 34px !important;

        box-sizing: border-box !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.5 !important;

        text-align: left !important;

        white-space: normal !important;

        overflow-wrap: break-word !important;
    }


    /* -----------------------------------------
       FOUR 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 40px !important;

        margin: 0 !important;
        padding: 0 !important;

        box-sizing: border-box !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.45 !important;

        text-align: left !important;

        box-sizing: border-box !important;

        transition:
            color 0.2s ease,
            transform 0.2s ease !important;
    }


    /* -----------------------------------------
       HOVER
    ----------------------------------------- */

    .practice-option:hover {
        border: none !important;

        background: transparent !important;

        color: var(--primary) !important;

        transform: translateX(3px) !important;
    }


    /* -----------------------------------------
       CORRECT ANSWER
    ----------------------------------------- */

    .practice-option.correct {
        border: none !important;

        background: transparent !important;

        color: var(--success) !important;
    }


    /* -----------------------------------------
       WRONG ANSWER
    ----------------------------------------- */

    .practice-option.incorrect,
    .practice-option.wrong {
        border: none !important;

        background: transparent !important;

        color: var(--danger) !important;
    }


    /* -----------------------------------------
       FEEDBACK
       Below the 4 options
    ----------------------------------------- */

    .practice-feedback {
        grid-column: 2 !important;
        grid-row: 2 !important;

        width: 100% !important;

        min-height: 20px !important;

        margin:
            5px 0 0 0 !important;

        padding: 0 !important;

        color: var(--text-secondary) !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.incorrect,
    .practice-feedback.wrong {
        color: var(--danger) !important;
    }

}


/* =========================================================
   LARGE DESKTOP
========================================================= */

@media (min-width: 1200px) {

    .practice-question {
        grid-template-columns:
            240px
            minmax(0, 1fr) !important;

        column-gap: 50px !important;

        margin-bottom: 38px !important;
    }


    .practice-question h3 {
        font-size: 19px !important;
    }


    .practice-option {
        font-size: 14px !important;
    }

}








/* =========================================================
   HTML FUNDAMENTALS — PRACTICE OPTION BOXES
   CLEAR DARK BORDER
========================================================= */

.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;

    text-align: left !important;

    box-sizing: border-box !important;

    cursor: pointer !important;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        transform 0.2s ease !important;
}


/* Hover */

.practice-option:hover {
    border-color: #000000 !important;

    background: #f5f7fb !important;

    color: var(--primary) !important;

    transform: translateY(-1px) !important;
}


/* Correct Answer */

.practice-option.correct {
    border: 1.5px solid #16a34a !important;

    background: #f0fdf4 !important;

    color: #15803d !important;
}


/* Wrong Answer */

.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;
}







/* =========================================================
   PRACTICE OPTION — SIMPLE BLUE HOVER
========================================================= */

.practice-option {
    border: 1.5px solid #222 !important;

    background: #ffffff !important;

    color: var(--text-main) !important;

    transform: none !important;

    transition:
        border-color 0.15s ease,
        color 0.15s ease,
        background-color 0.15s ease !important;
}


/* Cursor / Hover */

.practice-option:hover {
    border: 1.5px solid #2563eb !important;

    background: #ffffff !important;

    color: #2563eb !important;

    transform: none !important;
}


/* Focus — keyboard/mouse focus पर भी border रहे */

.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;
}

/* =========================================================
   JAVASCRIPT BASICS — SIDEBAR COMPATIBILITY
   Keeps the JavaScript course visually identical to the
   HTML Fundamentals course while supporting the JS HTML classes.
========================================================= */

/* Module accordion */
.course-module .lesson-list {
    display: none;
}

.course-module.open .lesson-list {
    display: block;
}

.course-module.open .module-header > i {
    transform: rotate(180deg);
}

/* JavaScript lesson button class aliases */
.lesson-item-number {
    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-title {
    flex: 1;
    min-width: 0;

    color: inherit;
    font-size: 10.5px;
    font-weight: 600;
    line-height: 1.4;
}

.lesson-item.active .lesson-item-number {
    border-color: #bfd3ff;
    background: #fff;
    color: var(--primary);
}

.lesson-item.completed .lesson-item-number {
    border-color: #bbf7d0;
    background: var(--success-soft);
    color: var(--success);
}


/* =========================================================
   JAVASCRIPT — DETAILED EXAMPLE
   Same card language as HTML Fundamentals.
========================================================= */

.detailed-example-section {
    margin-top: 34px;
}

.example-explanation {
    padding: 20px 22px;
    margin-bottom: 20px;

    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    background: #f8fafc;
}

.example-explanation h3 {
    margin-bottom: 8px;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 700;
}

.example-explanation p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.75;
}

.example-steps {
    margin-bottom: 20px;
}

.example-steps h3 {
    margin-bottom: 12px;
    color: var(--text-main);
    font-size: 16px;
    font-weight: 700;
}

.example-steps ol {
    margin: 0;
    padding-left: 22px;
}

.example-steps li {
    margin-bottom: 9px;
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}

.detailed-code-card {
    margin-bottom: 20px;
    overflow: hidden;

    border: 1px solid #dfe4ec;
    border-radius: 12px;
    background: #172033;
    box-shadow: 0 5px 18px rgba(16, 24, 40, 0.10);
}

.detailed-code-card .code-editor-body {
    width: 100%;
    overflow-x: auto;
}

.detailed-code-card 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;
}

.detailed-code-card code {
    font-family: inherit;
    white-space: pre;
}

.example-output {
    margin-bottom: 20px;
    padding: 16px 18px;

    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfcfe;
}

.example-output-title {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 9px;

    color: var(--text-main);
    font-size: 13px;
    font-weight: 700;
}

.example-output-title i {
    color: var(--primary);
}

.example-output pre {
    margin: 0;
    overflow-x: auto;
}

.example-output code {
    color: var(--text-secondary);
    font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
    font-size: 12px;
    line-height: 1.6;
}

.example-result {
    padding: 18px 20px;

    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
    background: var(--primary-soft);
}

.example-result h3 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 7px;

    color: var(--text-main);
    font-size: 15px;
    font-weight: 700;
}

.example-result h3 i {
    color: var(--primary);
}

.example-result p {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.7;
}


/* =========================================================
   JAVASCRIPT — MOBILE DETAILED EXAMPLE
========================================================= */

@media (max-width: 760px) {

    .detailed-example-section {
        margin-top: 26px;
    }

    .example-explanation {
        padding: 16px;
        margin-bottom: 16px;
    }

    .example-explanation h3,
    .example-steps h3 {
        font-size: 15px;
    }

    .example-explanation p,
    .example-steps li {
        font-size: 12px;
        line-height: 1.75;
    }

    .example-steps ol {
        padding-left: 20px;
    }

    .detailed-code-card pre {
        padding: 15px;
        font-size: 10px;
        line-height: 1.65;
    }

    .example-output {
        padding: 14px;
    }

    .example-output code {
        font-size: 10px;
    }

    .example-result {
        padding: 15px 16px;
    }

    .example-result h3 {
        font-size: 14px;
    }

    .example-result p {
        font-size: 12px;
    }
}


/* =========================================================
   FINAL JAVASCRIPT COURSE OVERRIDES
========================================================= */

/* The JavaScript page uses the same clean header as HTML Fundamentals. */
.lesson-number-display {
    display: none !important;
}

/* Prevent long code/examples from pushing the desktop layout wider. */
#lessonContent,
.learning-section,
.detailed-example-section,
.code-editor,
.detailed-code-card {
    min-width: 0;
}

pre,
code {
    max-width: 100%;
}

@media (max-width: 760px) {
    #lessonContent {
        width: 100%;
        max-width: none;
    }

    .lesson-area {
        overflow-x: hidden;
    }
}




/* =========================================================
   JAVASCRIPT — MODULE ACCORDION FINAL FIX
========================================================= */

.course-module .lesson-list {
    display: none !important;
}

.course-module.open .lesson-list {
    display: block !important;
}

/* active module सिर्फ current module को identify करे,
   वह अपने आप lessons को open न करे */
.course-module.active .lesson-list {
    display: none !important;
}

.course-module.active.open .lesson-list {
    display: block !important;
}










/* =========================================================
   PRACTICE OPTIONS — LETTER & TEXT SPACING
========================================================= */

.practice-option {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
}

.option-label {
    flex: 0 0 auto;

    color: var(--text-main);
    font-weight: 800;
    min-width: 22px;
}

.option-text {
    flex: 1;
    min-width: 0;

    line-height: 1.45;
}












/* =========================================================
   LESSON NAVIGATION — PREVIOUS / NEXT SAME LINE
========================================================= */

.lesson-navigation {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    width: 100% !important;
}

#previousLessonBtn,
#nextLessonBtn {
    width: auto !important;
    flex: 1 1 0 !important;
    min-width: 0 !important;
    height: 64px !important;
    padding: 0 20px !important;
    box-sizing: border-box !important;
}

#previousLessonBtn {
    text-align: left !important;
}

#nextLessonBtn {
    text-align: right !important;
}

#lessonCounter {
    flex: 0 0 auto !important;
    white-space: nowrap !important;
}


/* MOBILE */
@media (max-width: 760px) {

    .lesson-navigation {
        flex-direction: row !important;
        gap: 10px !important;
    }

    #previousLessonBtn,
    #nextLessonBtn {
        height: 58px !important;
        padding: 0 14px !important;
        font-size: 14px !important;
    }

    #lessonCounter {
        font-size: 14px !important;
    }
}









/* =========================================================
   FINAL FIX — ALL SECTION ICONS STAY INSIDE CARDS
========================================================= */

.learning-section,
.detailed-example-section,
.practice-section {
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* Section header */
.learning-section .section-header,
.detailed-example-section .section-header,
.practice-section .section-header {
    display: flex !important;
    align-items: flex-start !important;
    gap: 18px !important;

    width: 100% !important;
    max-width: 100% !important;

    margin: 0 !important;
    padding: 0 !important;

    box-sizing: border-box !important;
}

/* ALL icons */
.learning-section .section-icon,
.detailed-example-section .section-icon,
.practice-section .section-icon {
    position: static !important;

    top: auto !important;
    left: auto !important;
    right: auto !important;
    bottom: auto !important;

    margin: 0 !important;
    transform: none !important;

    flex: 0 0 64px !important;
    width: 64px !important;
    height: 64px !important;

    box-sizing: border-box !important;

    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
}

/* Heading/content must remain inside card */
.learning-section .section-header > div,
.detailed-example-section .section-header > div,
.practice-section .section-header > div {
    min-width: 0 !important;
    flex: 1 1 auto !important;
}


/* =========================================================
   MOBILE
========================================================= */

@media (max-width: 760px) {

    .learning-section .section-header,
    .detailed-example-section .section-header,
    .practice-section .section-header {
        gap: 14px !important;
    }

    .learning-section .section-icon,
    .detailed-example-section .section-icon,
    .practice-section .section-icon {
        flex: 0 0 52px !important;
        width: 52px !important;
        height: 52px !important;
    }
}







/* =========================================================
   FINAL PC PRACTICE QUESTION ALIGNMENT
   QUESTION = FULL WIDTH, START FROM LEFT
========================================================= */

@media (min-width: 769px) {

    .practice-question {
        display: grid !important;

        grid-template-columns: 1fr !important;

        width: 100% !important;

        margin: 0 0 32px 0 !important;
        padding: 0 !important;

        text-align: left !important;
    }


    /* QUESTION TEXT */
    .practice-question h3 {
        grid-column: 1 !important;
        grid-row: 1 !important;

        width: 100% !important;

        margin: 0 0 20px 0 !important;
        padding: 0 !important;

        text-align: left !important;

        justify-self: start !important;
        align-self: start !important;

        font-size: 18px !important;
        line-height: 1.5 !important;

        white-space: normal !important;
        overflow-wrap: break-word !important;
    }


    /* OPTIONS */
    .practice-question .practice-options {
        grid-column: 1 !important;
        grid-row: 2 !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;
    }
}