/* =========================================================
   FUTUREVERSE — HTML FUNDAMENTALS
   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 — HTML FUNDAMENTALS
   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;
}



















/* =========================================================
   HTML FUNDAMENTALS — FINAL FONT SIZE
   Same typography for Hindi + English
   Same feel as CSS Fundamentals
========================================================= */


/* =========================
   PC / LAPTOP
========================= */

@media (min-width: 761px) {

    /* Main Lesson Title */
    .lesson-heading-area h2 {
        font-size: 32px !important;
        line-height: 1.25 !important;
    }

    /* Lesson Description */
    .lesson-description {
        font-size: 13px !important;
        line-height: 1.6 !important;
    }

    /* STEP / Learn / Practice */
    .section-heading h3 {
        font-size: 18px !important;
        line-height: 1.3 !important;
    }

    /* Hindi + English Main Content */
    .language-content,
    .language-content p {
        font-size: 16px !important;
        line-height: 1.8 !important;
    }

    /* Content Headings */
    .language-content h4 {
        font-size: 18px !important;
        line-height: 1.35 !important;
    }
}


/* =========================
   MOBILE
========================= */

@media (max-width: 760px) {

    /* Main Lesson Title */
    .lesson-heading-area h2 {
        font-size: 27px !important;
        line-height: 1.3 !important;
    }

    /* Lesson Description */
    .lesson-description {
        font-size: 12px !important;
        line-height: 1.65 !important;
    }

    /* STEP / Learn / Practice */
    .section-heading h3 {
        font-size: 17px !important;
        line-height: 1.3 !important;
    }

    /* Hindi + English Main Content */
    .language-content,
    .language-content p {
        font-size: 17px !important;
        line-height: 1.85 !important;
    }

    /* Content Headings */
    .language-content h4 {
        font-size: 22px !important;
        line-height: 1.35 !important;
    }
}


/* =========================
   SMALL MOBILE
========================= */

@media (max-width: 380px) {

    .lesson-heading-area h2 {
        font-size: 25px !important;
    }

    .language-content,
    .language-content p {
        font-size: 16px !important;
        line-height: 1.8 !important;
    }

    .language-content h4 {
        font-size: 21px !important;
    }
}

/* =========================================================
   FINAL — MATCH JAVASCRIPT COURSE VISUAL DESIGN
   HTML Fundamentals only
   (Content and 3-question practice data are untouched.)
========================================================= */

/* Section cards */
#lessonContent .learn-section,
#lessonContent .example-section,
#lessonContent .practice-section,
#lessonContent .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);
    overflow: hidden;
}

/* Section heading + icons */
#lessonContent .section-heading {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-bottom: 19px;
}

#lessonContent .section-icon {
    width: 38px;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    border-radius: 10px;
    background: var(--primary-soft);
    color: var(--primary);
}

#lessonContent .section-icon i {
    font-size: 14px;
}

#lessonContent .section-heading span {
    display: block;
    color: var(--primary);
    font-size: 8px;
    font-weight: 800;
    letter-spacing: .9px;
    line-height: 1.2;
}

#lessonContent .section-heading h3 {
    margin-top: 2px;
    color: var(--text-main);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
}

/* Compact reading typography */
#lessonContent .lesson-text,
#lessonContent .example-explanation,
#lessonContent .practice-intro,
#lessonContent .complete-card {
    color: var(--text-secondary);
    font-size: 13px;
    line-height: 1.75;
}

#lessonContent .lesson-text p,
#lessonContent .example-explanation p,
#lessonContent .complete-card p {
    margin-bottom: 12px;
}

#lessonContent .lesson-text p:last-child,
#lessonContent .example-explanation p:last-child {
    margin-bottom: 0;
}

#lessonContent .lesson-text h3 {
    margin: 24px 0 10px;
    color: var(--text-main);
    font-size: 16px;
    line-height: 1.4;
}

#lessonContent .lesson-text strong,
#lessonContent .example-explanation strong {
    color: var(--text-main);
}

/* Example */
#lessonContent .code-editor {
    margin-top: 0;
}

#lessonContent .example-explanation {
    margin-top: 16px;
    padding: 14px 16px;
    border-left: 3px solid var(--primary);
    border-radius: 0 10px 10px 0;
    background: var(--primary-soft);
}

/* Instruction box / left line */
#lessonContent .practice-intro {
    margin: 0 0 18px;
    padding: 12px 15px;
    border-left: 3px solid var(--primary);
    border-radius: 0 9px 9px 0;
    background: var(--primary-soft);
}

#lessonContent .practice-intro p {
    margin: 0;
}

/* Practice */
#lessonContent .practice-container {
    width: 100%;
}

#lessonContent .practice-question {
    margin-bottom: 28px;
    text-align: left;
}

#lessonContent .practice-question h3,
#lessonContent .practice-question h4 {
    width: 100%;
    margin: 0 0 14px;
    padding: 0;
    color: var(--text-main);
    font-size: 13px;
    font-weight: 650;
    line-height: 1.55;
    text-align: left;
}

#lessonContent .practice-options {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    width: 100%;
}

#lessonContent .practice-option {
    width: 100%;
    min-height: 44px;
    display: flex;
    align-items: center;
    gap: 10px;
    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;
    line-height: 1.45;
    transition: var(--transition);
}

#lessonContent .practice-option:hover:not(:disabled) {
    border-color: #bfd3ff;
    background: var(--primary-soft);
    color: var(--primary);
}

#lessonContent .practice-option .option-label {
    flex: 0 0 auto;
    min-width: 20px;
    color: var(--text-main);
    font-weight: 800;
}

#lessonContent .practice-option .option-text {
    min-width: 0;
    flex: 1;
}

#lessonContent .practice-feedback {
    min-height: 18px;
    margin-top: 9px;
    font-size: 10px;
    font-weight: 600;
}

#lessonContent .practice-option.correct {
    border-color: #86efac;
    background: var(--success-soft);
    color: var(--success);
}

#lessonContent .practice-option.wrong {
    border-color: #fecaca;
    background: var(--danger-soft);
    color: var(--danger);
}

/* Complete */
#lessonContent .complete-card {
    padding: 16px 18px;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: #fbfcfe;
}

#lessonContent .complete-card h3 {
    margin: 0 0 7px;
    color: var(--text-main);
    font-size: 15px;
}

/* Previous / Next — same compact JS layout */
.lesson-navigation {
    width: 100%;
    max-width: var(--content-width);
    margin: 26px auto 0;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr) !important;
    align-items: center;
    gap: 15px;
}

.lesson-nav-btn {
    min-height: 58px;
    display: flex !important;
    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;
}

.lesson-nav-btn.next {
    justify-content: flex-end;
    text-align: right;
}

.lesson-nav-btn span {
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.lesson-nav-btn small {
    color: var(--text-light);
    font-size: 8px;
    font-weight: 700;
}

.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;
}

/* Accordion: one module at a time */
.course-module .lesson-list {
    display: none;
}

.course-module.active .lesson-list {
    display: block;
}

.course-module.active .module-header > i {
    transform: rotate(180deg);
}

/* Keep icons inside their cards */
#lessonContent .section-heading,
#lessonContent .section-icon {
    position: relative;
    left: auto;
    right: auto;
    transform: none;
    box-sizing: border-box;
}

@media (max-width: 760px) {

    #lessonContent .learn-section,
    #lessonContent .example-section,
    #lessonContent .practice-section,
    #lessonContent .complete-section {
        padding: 17px;
        margin-bottom: 16px;
        border-radius: 14px;
    }

    #lessonContent .section-heading {
        gap: 10px;
        margin-bottom: 15px;
    }

    #lessonContent .section-icon {
        width: 36px;
        height: 36px;
        flex-basis: 36px;
    }

    #lessonContent .section-heading h3 {
        font-size: 16px;
    }

    #lessonContent .lesson-text,
    #lessonContent .example-explanation,
    #lessonContent .practice-intro,
    #lessonContent .complete-card {
        font-size: 12px;
    }

    #lessonContent .practice-options {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    #lessonContent .practice-option {
        min-height: 42px;
        font-size: 11px;
    }

    .lesson-navigation {
        grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) !important;
        gap: 10px;
    }

    .lesson-navigation-progress {
        display: none;
    }

    .lesson-nav-btn {
        min-height: 54px;
        padding: 9px 10px;
    }

    .lesson-nav-btn strong {
        max-width: 120px;
        font-size: 10px;
    }
}









/* =========================================================
   MARK LESSON COMPLETE BUTTON
   EDUCATION FUNDAMENTALS
========================================================= */

.complete-btn,
.complete-lesson-btn,
#completeLessonBtn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;

    margin-top: 16px;
    padding: 0 18px;

    border: none;
    border-radius: 9px;

    background: #2563eb;
    color: #ffffff;

    font-family: inherit;
    font-size: 11px;
    font-weight: 700;
    line-height: 1;

    cursor: pointer;
    transition:
        background 0.2s ease,
        box-shadow 0.2s ease,
        transform 0.2s ease;
}

/* Hover */
.complete-btn:hover,
.complete-lesson-btn:hover,
#completeLessonBtn:hover {
    background: #1d4ed8;
    box-shadow: 0 5px 14px rgba(37, 99, 235, 0.18);
    transform: translateY(-1px);
}

/* Click */
.complete-btn:active,
.complete-lesson-btn:active,
#completeLessonBtn:active {
    transform: translateY(0);
}

/* Completed */
.complete-btn.completed,
.complete-lesson-btn.completed,
#completeLessonBtn.completed {
    background: #16a34a;
    color: #ffffff;
    cursor: default;
}

/* Icon */
.complete-btn i,
.complete-lesson-btn i,
#completeLessonBtn i {
    font-size: 12px;
}

/* Mobile */
@media (max-width: 760px) {
    .complete-btn,
    .complete-lesson-btn,
    #completeLessonBtn {
        width: 100%;
        min-height: 44px;
        margin-top: 16px;
        font-size: 11px;
    }
}










/* =========================================================
   HTML FUNDAMENTALS
   MOBILE TYPOGRAPHY — SAME COMPACT SIZE AS CSS / JS CARDS
========================================================= */

@media (max-width: 760px) {

    /* Main lesson title */
    .lesson-heading-area h2 {
        font-size: 24px !important;
        line-height: 1.3 !important;
    }

    /* Lesson description */
    .lesson-description {
        font-size: 11px !important;
        line-height: 1.6 !important;
    }

    /* Card / Section headings */
    .section-heading h3,
    .step-heading h2 {
        font-size: 15px !important;
        line-height: 1.35 !important;
    }

    /* Main Hindi + English content */
    .language-content,
    .language-content p,
    .lesson-text,
    .lesson-text p,
    .content-block,
    .content-block p {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }

    /* Small headings inside cards */
    .language-content h4,
    .lesson-text h3,
    .content-block h3 {
        font-size: 16px !important;
        line-height: 1.4 !important;
    }

    /* Lists */
    .language-content li,
    .lesson-text li,
    .content-block li {
        font-size: 14px !important;
        line-height: 1.8 !important;
    }

    /* Example explanation */
    .example-explanation {
        font-size: 11px !important;
        line-height: 1.7 !important;
    }

    /* Practice questions */
    .practice-question-text {
        font-size: 14px !important;
        line-height: 1.6 !important;
    }

    .practice-option {
        font-size: 13px !important;
        line-height: 1.5 !important;
    }
}


/* =========================================================
   VERY SMALL MOBILE
========================================================= */

@media (max-width: 380px) {

    .lesson-heading-area h2 {
        font-size: 23px !important;
    }

    .language-content,
    .language-content p,
    .lesson-text,
    .lesson-text p,
    .content-block,
    .content-block p {
        font-size: 13.5px !important;
        line-height: 1.8 !important;
    }

    .language-content h4,
    .lesson-text h3,
    .content-block h3 {
        font-size: 15px !important;
    }

    .practice-question-text {
        font-size: 13.5px !important;
    }

    .practice-option {
        font-size: 12.5px !important;
    }
}

















/* =========================================================
   HTML FUNDAMENTALS
   PRACTICE SECTION — SAME AS JAVASCRIPT PC LAYOUT
========================================================= */

@media (min-width: 761px) {

    /* -----------------------------------------
       PRACTICE QUESTION
       QUESTION ON TOP
    ----------------------------------------- */

    .practice-question {
        width: 100% !important;

        display: block !important;

        margin: 0 0 38px 0 !important;

        padding: 0 !important;

        box-sizing: border-box !important;
    }


    /* -----------------------------------------
       QUESTION TEXT
    ----------------------------------------- */

    .practice-question h3 {
        width: 100% !important;

        display: block !important;

        margin: 0 0 22px 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;
    }


    /* -----------------------------------------
       OPTIONS
       2 × 2 LIKE JAVASCRIPT
    ----------------------------------------- */

    .practice-options {
        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 BOX
    ----------------------------------------- */

    .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;
    }


    /* -----------------------------------------
       A B C D LABEL
    ----------------------------------------- */

    .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: #000000 !important;

        background: #f5f7fb !important;

        transform: translateY(-1px) !important;
    }

}