/* =========================================================
   NURSING STUDY HUB
   COMPLETE STYLESHEET
========================================================= */


/* =========================================================
   RESET
========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Arial,
        Helvetica,
        sans-serif;

    background:
        radial-gradient(
            circle at top left,
            rgba(99, 102, 241, 0.10),
            transparent 30%
        ),
        radial-gradient(
            circle at top right,
            rgba(14, 165, 233, 0.08),
            transparent 30%
        ),
        #f7f9fc;

    color: #172033;

    min-height: 100vh;

    line-height: 1.6;

    transition:
        background 0.3s ease,
        color 0.3s ease;
}


/* =========================================================
   VARIABLES
========================================================= */

:root {

    --primary: #4f46e5;
    --primary-dark: #3730a3;
    --primary-light: #eef2ff;

    --secondary: #0ea5e9;

    --success: #16a34a;
    --warning: #f59e0b;
    --danger: #dc2626;

    --text-main: #172033;
    --text-secondary: #667085;
    --text-light: #98a2b3;

    --background: #f7f9fc;
    --card: #ffffff;
    --border: #e7eaf0;

    --shadow-sm:
        0 2px 8px rgba(15, 23, 42, 0.05);

    --shadow-md:
        0 12px 30px rgba(15, 23, 42, 0.08);

    --shadow-lg:
        0 22px 55px rgba(15, 23, 42, 0.12);

    --radius-small: 12px;
    --radius-medium: 18px;
    --radius-large: 26px;
}


/* =========================================================
   GENERAL
========================================================= */

button,
input {
    font: inherit;
}

button {
    cursor: pointer;
}

a {
    color: inherit;
}

.hidden {
    display: none !important;
}


/* =========================================================
   WELCOME SCREEN
========================================================= */

#welcome-screen {
    min-height: 100vh;
    width: 100%;

    display: flex;
    justify-content: center;
    align-items: center;

    padding: 30px;

    position: relative;
    overflow: hidden;
}


#welcome-screen::before {
    content: "";

    position: absolute;

    width: 430px;
    height: 430px;

    border-radius: 50%;

    background:
        rgba(79, 70, 229, 0.08);

    top: -160px;
    left: -130px;

    filter: blur(3px);
}


#welcome-screen::after {
    content: "";

    position: absolute;

    width: 380px;
    height: 380px;

    border-radius: 50%;

    background:
        rgba(14, 165, 233, 0.08);

    bottom: -140px;
    right: -120px;

    filter: blur(3px);
}


.welcome-container {
    width: 100%;
    max-width: 620px;

    background:
        rgba(255, 255, 255, 0.94);

    border:
        1px solid rgba(255, 255, 255, 0.85);

    border-radius: 30px;

    padding: 55px;

    box-shadow:
        var(--shadow-lg);

    text-align: center;

    position: relative;
    z-index: 2;

    backdrop-filter: blur(14px);
}


.welcome-container::before {
    content: "✚";

    width: 72px;
    height: 72px;

    display: flex;
    justify-content: center;
    align-items: center;

    margin:
        0 auto 24px;

    border-radius: 22px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    color: white;

    font-size: 34px;
    font-weight: 700;

    box-shadow:
        0 15px 35px
        rgba(79, 70, 229, 0.28);
}


.welcome-container h1 {
    font-size:
        clamp(
            34px,
            6vw,
            52px
        );

    line-height: 1.08;

    letter-spacing: -2px;

    color:
        var(--text-main);

    margin-bottom: 18px;
}


.welcome-container > p {
    max-width: 470px;

    margin:
        0 auto 34px;

    color:
        var(--text-secondary);

    font-size: 17px;
}


.username-box {
    text-align: left;

    background: #f8fafc;

    border:
        1px solid
        var(--border);

    border-radius: 22px;

    padding: 24px;
}


.username-box label {
    display: block;

    font-size: 14px;

    font-weight: 700;

    margin-bottom: 10px;

    color: #344054;
}


#username {
    width: 100%;

    height: 56px;

    border:
        1.5px solid
        #d9dee8;

    background: white;

    border-radius: 14px;

    padding:
        0 18px;

    outline: none;

    color:
        var(--text-main);

    transition:
        0.25s ease;

    margin-bottom: 14px;
}


#username::placeholder {
    color: #a3aab7;
}


#username:focus {
    border-color:
        var(--primary);

    box-shadow:
        0 0 0 4px
        rgba(79, 70, 229, 0.10);
}


#start-button {
    width: 100%;

    min-height: 56px;

    border: none;

    border-radius: 14px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            #6366f1
        );

    color: white;

    font-weight: 750;

    font-size: 16px;

    box-shadow:
        0 12px 25px
        rgba(79, 70, 229, 0.22);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease;
}


#start-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        0 16px 32px
        rgba(79, 70, 229, 0.30);
}


#start-button:active {
    transform:
        translateY(0);
}


/* =========================================================
   MAIN APP
========================================================= */

#app {
    width: 100%;

    min-height: 100vh;

    padding-bottom: 50px;
}


/* =========================================================
   TOP HEADER
========================================================= */

.top-header {
    min-height: 76px;

    padding:
        0 6%;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    background:
        rgba(255, 255, 255, 0.88);

    border-bottom:
        1px solid
        rgba(231, 234, 240, 0.85);

    backdrop-filter:
        blur(14px);

    position: sticky;

    top: 0;

    z-index: 100;
}


.brand {
    display: flex;

    align-items: center;

    gap: 12px;
}


.brand::before {
    content: "✚";

    width: 42px;
    height: 42px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 13px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    color: white;

    font-size: 21px;

    box-shadow:
        0 8px 18px
        rgba(79, 70, 229, 0.20);
}


.brand h2 {
    font-size: 19px;

    letter-spacing: -0.5px;
}


.user-area {
    display: flex;

    align-items: center;

    gap: 14px;
}


#welcome-name {
    font-size: 14px;

    color:
        var(--text-secondary);

    font-weight: 600;
}


#theme-button {
    width: 42px;
    height: 42px;

    border:
        1px solid
        var(--border);

    background: white;

    border-radius: 13px;

    display: flex;

    align-items: center;

    justify-content: center;

    box-shadow:
        var(--shadow-sm);

    transition:
        0.2s ease;
}


#theme-button:hover {
    transform:
        translateY(-2px);

    box-shadow:
        var(--shadow-md);
}


/* =========================================================
   DASHBOARD INTRO
========================================================= */

.dashboard-intro {
    width: 88%;

    max-width: 1400px;

    margin:
        55px auto 26px;
}


.section-label {
    color:
        var(--primary);

    font-weight: 800;

    font-size: 11px;

    letter-spacing: 1.8px;

    margin-bottom: 7px;
}


.dashboard-intro h1 {
    font-size:
        clamp(
            31px,
            5vw,
            48px
        );

    line-height: 1.12;

    letter-spacing: -1.5px;

    margin-bottom: 10px;
}


.dashboard-intro >
p:last-child {
    color:
        var(--text-secondary);

    font-size: 16px;
}


/* =========================================================
   PROGRESS CARDS
========================================================= */

.progress-overview {
    width: 88%;

    max-width: 1400px;

    margin:
        0 auto 52px;

    display: grid;

    grid-template-columns:
        2fr 1fr 1fr 1fr;

    gap: 16px;
}


.progress-card {
    min-height: 150px;

    background:
        var(--card);

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-medium);

    padding: 24px;

    box-shadow:
        var(--shadow-sm);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.progress-card:hover {
    transform:
        translateY(-4px);

    box-shadow:
        var(--shadow-md);
}


.progress-card h3 {
    color:
        var(--text-secondary);

    font-size: 13px;

    margin-bottom: 16px;
}


.mastery-number {
    font-size: 38px;

    font-weight: 800;

    letter-spacing: -1px;

    color:
        var(--text-main);
}


.stat-number {
    font-size: 35px;

    font-weight: 800;

    color:
        var(--text-main);

    letter-spacing: -1px;
}


.progress-bar {
    width: 100%;

    height: 9px;

    margin-top: 14px;

    background: #eef1f6;

    border-radius: 999px;

    overflow: hidden;
}


.progress-fill {
    width: 0%;

    height: 100%;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    transition:
        width 0.5s ease;
}


/* =========================================================
   COURSE DASHBOARD
========================================================= */

.courses-section {
    width: 88%;

    max-width: 1400px;

    margin:
        0 auto;
}


.section-heading {
    display: flex;

    justify-content:
        space-between;

    align-items:
        end;

    margin-bottom: 22px;
}


.section-heading h2 {
    font-size: 27px;

    letter-spacing: -0.8px;
}


.course-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 20px;
}


/* =========================================================
   COURSE CARDS
========================================================= */

.course-card {
    min-height: 325px;

    padding: 25px;

    background:
        var(--card);

    border:
        1px solid
        var(--border);

    border-radius:
        var(--radius-large);

    box-shadow:
        var(--shadow-sm);

    display: flex;

    flex-direction: column;

    position: relative;

    overflow: hidden;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.course-card::after {
    content: "";

    position: absolute;

    width: 130px;
    height: 130px;

    border-radius: 50%;

    right: -60px;

    top: -60px;

    background:
        rgba(79, 70, 229, 0.045);

    transition:
        0.25s ease;
}


.course-card:hover {
    transform:
        translateY(-7px);

    box-shadow:
        var(--shadow-md);

    border-color:
        rgba(79, 70, 229, 0.22);
}


.course-card:hover::after {
    transform:
        scale(1.35);
}


.course-icon {
    width: 58px;
    height: 58px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 18px;

    background:
        var(--primary-light);

    font-size: 28px;

    margin-bottom: 20px;
}


.course-card h3 {
    font-size: 20px;

    margin-bottom: 10px;

    line-height: 1.25;

    letter-spacing: -0.4px;
}


.course-card >
p:not(.special-badge) {
    color:
        var(--text-secondary);

    font-size: 14px;

    margin-bottom: 25px;
}


.course-progress {
    margin-top: auto;

    padding-top: 16px;

    border-top:
        1px solid
        #eef0f4;

    display: flex;

    justify-content:
        space-between;

    font-size: 12px;

    color:
        var(--text-secondary);

    font-weight: 650;
}


.course-button {
    min-height: 46px;

    margin-top: 14px;

    border-radius: 13px;

    border:
        1px solid
        #dddff7;

    color:
        var(--primary);

    background:
        var(--primary-light);

    font-weight: 750;

    transition:
        0.2s ease;
}


.course-button:hover {
    color: white;

    border-color:
        var(--primary);

    background:
        var(--primary);

    transform:
        translateY(-1px);
}


/* =========================================================
   COURSE CARD IDENTITIES
========================================================= */

.course-card[
data-course="anatomy1"
]
.course-icon {
    background: #fff1f2;
}


.course-card[
data-course="anatomy2"
]
.course-icon {
    background: #f5f3ff;
}


.course-card[
data-course="chemistry"
]
.course-icon {
    background: #eff6ff;
}


.course-card[
data-course="microbiology"
]
.course-icon {
    background: #ecfdf3;
}


.course-card[
data-course="statistics"
]
.course-icon {
    background: #f0f9ff;
}


.course-card[
data-course="nutrition"
]
.course-icon {
    background: #f7fee7;
}


.course-card[
data-course="labs"
]
.course-icon {
    background: #faf5ff;
}


/* =========================================================
   TEAS CARD
========================================================= */

.teas-card {
    background:
        linear-gradient(
            145deg,
            #312e81 0%,
            #4338ca 45%,
            #2563eb 100%
        );

    color: white;

    border: none;

    box-shadow:
        0 18px 40px
        rgba(67, 56, 202, 0.22);
}


.teas-card::before {
    content: "";

    position: absolute;

    width: 180px;
    height: 180px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.08);

    right: -60px;

    bottom: -65px;
}


.teas-card::after {
    background:
        rgba(255, 255, 255, 0.07);
}


.teas-card
.course-icon {
    background:
        rgba(255, 255, 255, 0.15);

    backdrop-filter:
        blur(5px);
}


.special-badge {
    width: fit-content;

    padding:
        5px 9px;

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.14);

    color: #e0e7ff;

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.4px;

    margin-bottom: 11px;
}


.teas-card >
p:not(.special-badge) {
    color:
        rgba(255, 255, 255, 0.78);
}


.teas-card
.course-progress {
    border-color:
        rgba(255, 255, 255, 0.13);

    color:
        rgba(255, 255, 255, 0.78);
}


.teas-card
.course-button {
    color: #312e81;

    background: white;

    border: none;
}


.teas-card
.course-button:hover {
    background: #eef2ff;

    color: #312e81;
}


/* =========================================================
   SMART REVIEW
========================================================= */

.weak-areas-section {
    width: 88%;

    max-width: 1400px;

    margin:
        44px auto;
}


.weak-area-card {
    border-radius: 28px;

    padding: 32px;

    background:
        linear-gradient(
            135deg,
            #ffffff,
            #f8f9ff
        );

    border:
        1px solid
        var(--border);

    box-shadow:
        var(--shadow-sm);

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 30px;
}


.weak-area-card h2 {
    margin-bottom: 6px;

    font-size: 25px;

    letter-spacing: -0.7px;
}


.weak-area-card >
div >
p:last-child {
    color:
        var(--text-secondary);

    max-width: 630px;

    font-size: 14px;
}


#weak-area-button {
    min-width: 150px;

    min-height: 48px;

    border: none;

    border-radius: 14px;

    color: white;

    background: #172033;

    font-weight: 700;

    transition:
        0.2s ease;
}


#weak-area-button:hover {
    transform:
        translateY(-2px);

    background: #27334a;
}


/* =========================================================
   FOOTER
========================================================= */

footer {
    width: 88%;

    max-width: 1400px;

    margin:
        70px auto 0;

    padding-top: 25px;

    border-top:
        1px solid
        var(--border);

    display: flex;

    justify-content:
        space-between;

    color:
        var(--text-light);

    font-size: 12px;
}


/* =========================================================
   A&P I COURSE PAGE
========================================================= */

.course-page {
    width: 88%;

    max-width: 1400px;

    margin:
        45px auto 70px;
}


/* =========================================================
   COURSE PAGE HEADER
========================================================= */

.course-page-header {
    margin-bottom: 30px;
}


.back-button {
    min-height: 44px;

    padding:
        0 16px;

    margin-bottom: 28px;

    border:
        1px solid
        var(--border);

    border-radius: 12px;

    background: white;

    color:
        var(--text-main);

    font-weight: 700;

    transition:
        0.2s ease;
}


.back-button:hover {
    transform:
        translateX(-3px);

    border-color:
        var(--primary);

    color:
        var(--primary);
}


.course-page-title {
    display: flex;

    align-items: center;

    gap: 22px;

    padding: 30px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #fff7f8,
            #ffffff
        );

    border:
        1px solid
        #f2dfe3;

    box-shadow:
        var(--shadow-sm);
}


.course-page-icon {
    width: 82px;
    height: 82px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            #ffe4e6,
            #fff1f2
        );

    font-size: 40px;
}


.course-page-title h1 {
    font-size:
        clamp(
            30px,
            5vw,
            44px
        );

    line-height: 1.1;

    letter-spacing: -1.4px;

    margin-bottom: 8px;
}


.course-page-title >
div:last-child >
p:last-child {
    color:
        var(--text-secondary);

    max-width: 760px;

    font-size: 15px;
}


/* =========================================================
   COURSE MASTERY
========================================================= */

.course-main-progress {
    padding:
        26px 30px;

    margin-bottom: 42px;

    background:
        var(--card);

    border:
        1px solid
        var(--border);

    border-radius: 22px;

    display: grid;

    grid-template-columns:
        160px 1fr;

    align-items: center;

    gap: 26px;

    box-shadow:
        var(--shadow-sm);
}


.course-main-progress p {
    color:
        var(--text-secondary);

    font-size: 13px;

    font-weight: 700;

    margin-bottom: 4px;
}


.course-main-progress h2 {
    font-size: 35px;

    letter-spacing: -1px;
}


.course-progress-large {
    width: 100%;

    height: 13px;

    border-radius: 999px;

    overflow: hidden;

    background: #edf0f5;
}


.course-progress-large-fill {
    width: 0%;

    height: 100%;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            #ef4444,
            #f97316,
            var(--primary)
        );

    transition:
        width 0.5s ease;
}


/* =========================================================
   COURSE MODULES
========================================================= */

.module-section {
    margin-bottom: 52px;
}


.module-heading {
    display: flex;

    align-items: center;

    gap: 16px;

    margin-bottom: 18px;
}


.module-number {
    width: 52px;
    height: 52px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 15px;

    background: #172033;

    color: white;

    font-weight: 800;

    font-size: 14px;

    letter-spacing: 0.5px;
}


.module-heading h2 {
    font-size: 25px;

    letter-spacing: -0.7px;
}


/* =========================================================
   TOPIC LIST
========================================================= */

.topic-list {
    display: flex;

    flex-direction: column;

    gap: 13px;
}


.topic-card {
    min-height: 120px;

    padding:
        20px 22px;

    display: grid;

    grid-template-columns:
        54px
        minmax(0, 1fr)
        auto;

    align-items: center;

    gap: 20px;

    background:
        var(--card);

    border:
        1px solid
        var(--border);

    border-radius: 20px;

    box-shadow:
        var(--shadow-sm);

    transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;
}


.topic-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(79, 70, 229, 0.28);

    box-shadow:
        var(--shadow-md);
}


.topic-status {
    width: 48px;
    height: 48px;

    display: flex;

    justify-content: center;

    align-items: center;

    border-radius: 15px;

    background:
        var(--primary-light);

    color:
        var(--primary);

    font-weight: 800;

    font-size: 14px;
}


.topic-information h3 {
    font-size: 18px;

    margin-bottom: 5px;

    letter-spacing: -0.3px;
}


.topic-information > p {
    color:
        var(--text-secondary);

    font-size: 13px;

    max-width: 750px;

    margin-bottom: 10px;
}


.topic-tags {
    display: flex;

    gap: 7px;

    flex-wrap: wrap;
}


.topic-tags span {
    padding:
        4px 8px;

    border-radius: 999px;

    background: #f2f4f7;

    color: #667085;

    font-size: 10px;

    font-weight: 750;

    letter-spacing: 0.3px;
}


.topic-button {
    min-width: 94px;

    min-height: 42px;

    padding:
        0 15px;

    border:
        1px solid
        #dfe2f5;

    border-radius: 12px;

    background: #f4f4ff;

    color:
        var(--primary);

    font-weight: 750;

    transition:
        0.2s ease;
}


.topic-button:hover {
    background:
        var(--primary);

    border-color:
        var(--primary);

    color: white;

    transform:
        translateX(3px);
}


/* =========================================================
   A&P I FINAL PRACTICE
========================================================= */

.final-practice-card {
    margin-top: 60px;

    padding: 34px;

    border-radius: 28px;

    background:
        linear-gradient(
            135deg,
            #111827,
            #312e81,
            #1d4ed8
        );

    color: white;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 35px;

    box-shadow:
        0 22px 50px
        rgba(49, 46, 129, 0.20);
}


.final-practice-card
.section-label {
    color: #c7d2fe;
}


.final-practice-card h2 {
    font-size: 29px;

    margin-bottom: 7px;

    letter-spacing: -0.8px;
}


.final-practice-card >
div:first-child >
p:last-child {
    color:
        rgba(255, 255, 255, 0.75);

    max-width: 650px;

    font-size: 14px;
}


.final-practice-actions {
    display: flex;

    gap: 10px;

    flex-shrink: 0;
}


.final-practice-actions
button {
    min-height: 48px;

    padding:
        0 18px;

    border-radius: 13px;

    font-weight: 750;

    transition:
        0.2s ease;
}


#anatomy1-practice-button {
    border:
        1px solid
        rgba(255, 255, 255, 0.28);

    color: white;

    background:
        rgba(255, 255, 255, 0.10);
}


#anatomy1-practice-button:hover {
    background:
        rgba(255, 255, 255, 0.18);

    transform:
        translateY(-2px);
}


#anatomy1-exam-button {
    border: none;

    color: #312e81;

    background: white;
}


#anatomy1-exam-button:hover {
    background: #eef2ff;

    transform:
        translateY(-2px);
}


/* =========================================================
   LESSON PAGE
========================================================= */

.lesson-page {
    width: 88%;

    max-width: 1400px;

    margin:
        35px auto 80px;
}


/* =========================================================
   LESSON TOP BAR
========================================================= */

.lesson-top-bar {
    min-height: 56px;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 20px;

    margin-bottom: 18px;
}


.lesson-top-bar
.back-button {
    margin-bottom: 0;
}


.lesson-progress-text {
    display: flex;

    align-items: center;

    gap: 10px;

    color:
        var(--text-secondary);

    font-size: 12px;

    font-weight: 700;
}


.lesson-progress-text
span:first-child {
    padding:
        6px 10px;

    background:
        var(--primary-light);

    color:
        var(--primary);

    border-radius:
        999px;
}


/* =========================================================
   LESSON HERO
========================================================= */

.lesson-hero {
    min-height: 310px;

    padding:
        45px;

    border-radius: 32px;

    background:
        linear-gradient(
            135deg,
            #ffffff 0%,
            #f9f9ff 55%,
            #eef2ff 100%
        );

    border:
        1px solid
        var(--border);

    box-shadow:
        var(--shadow-md);

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 35px;

    position: relative;

    overflow: hidden;

    margin-bottom: 18px;
}


.lesson-hero::before {
    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    right: -90px;

    top: -100px;

    border-radius: 50%;

    background:
        rgba(79, 70, 229, 0.07);
}


.lesson-hero::after {
    content: "";

    position: absolute;

    width: 170px;
    height: 170px;

    right: 150px;

    bottom: -100px;

    border-radius: 50%;

    background:
        rgba(14, 165, 233, 0.06);
}


.lesson-hero-content {
    position: relative;

    z-index: 2;

    max-width: 900px;
}


.lesson-hero-content h1 {
    font-size:
        clamp(
            34px,
            5vw,
            52px
        );

    line-height: 1.06;

    letter-spacing: -1.8px;

    margin-bottom: 18px;
}


.lesson-description {
    max-width: 800px;

    color:
        var(--text-secondary);

    font-size: 16px;

    margin-bottom: 24px;
}


.lesson-meta {
    display: flex;

    flex-wrap: wrap;

    gap: 9px;
}


.lesson-meta span {
    padding:
        7px 11px;

    border:
        1px solid
        var(--border);

    border-radius:
        999px;

    background:
        rgba(255, 255, 255, 0.82);

    color:
        var(--text-secondary);

    font-size: 11px;

    font-weight: 750;
}


.lesson-hero-number {
    width: 120px;
    height: 120px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 30px;

    background:
        linear-gradient(
            135deg,
            var(--primary),
            var(--secondary)
        );

    color: white;

    font-size: 42px;

    font-weight: 900;

    box-shadow:
        0 18px 38px
        rgba(79, 70, 229, 0.26);

    position: relative;

    z-index: 2;
}


/* =========================================================
   LESSON NAVIGATION
========================================================= */

.lesson-navigation {
    display: flex;

    align-items: center;

    gap: 8px;

    padding:
        12px;

    margin-bottom: 28px;

    border:
        1px solid
        var(--border);

    border-radius: 18px;

    background:
        rgba(255, 255, 255, 0.88);

    backdrop-filter:
        blur(12px);

    overflow-x: auto;

    box-shadow:
        var(--shadow-sm);

    position: sticky;

    top: 87px;

    z-index: 80;
}


.lesson-navigation a {
    white-space: nowrap;

    text-decoration: none;

    padding:
        8px 12px;

    border-radius: 10px;

    color:
        var(--text-secondary);

    font-size: 11px;

    font-weight: 750;

    transition:
        0.2s ease;
}


.lesson-navigation a:hover {
    background:
        var(--primary-light);

    color:
        var(--primary);
}


/* =========================================================
   LESSON LAYOUT
========================================================= */

.lesson-layout {
    display: grid;

    grid-template-columns:
        minmax(0, 1fr)
        300px;

    align-items: start;

    gap: 26px;
}


.lesson-content {
    min-width: 0;
}


/* =========================================================
   LESSON SECTIONS
========================================================= */

.lesson-section {
    display: grid;

    grid-template-columns:
        56px
        minmax(0, 1fr);

    gap: 22px;

    padding:
        32px;

    margin-bottom: 20px;

    background:
        var(--card);

    border:
        1px solid
        var(--border);

    border-radius: 25px;

    box-shadow:
        var(--shadow-sm);

    scroll-margin-top: 160px;
}


.lesson-section-number {
    width: 50px;
    height: 50px;

    border-radius: 15px;

    display: flex;

    align-items: center;

    justify-content: center;

    color:
        var(--primary);

    background:
        var(--primary-light);

    font-size: 12px;

    font-weight: 900;
}


.lesson-small-label {
    color:
        var(--primary);

    font-size: 10px;

    font-weight: 850;

    letter-spacing: 1.6px;

    margin-bottom: 5px;
}


.lesson-section-content > h2 {
    font-size: 27px;

    line-height: 1.2;

    letter-spacing: -0.8px;

    margin-bottom: 18px;
}


.lesson-section-content > p {
    color:
        var(--text-secondary);

    margin-bottom: 15px;

    font-size: 15px;
}


.lesson-section-content
strong {
    color:
        var(--text-main);
}


/* =========================================================
   LESSON SUBHEADINGS
========================================================= */

.lesson-subheading {
    font-size: 19px;

    margin:
        27px 0 10px;

    color:
        var(--text-main);
}


/* =========================================================
   CONCEPT EXAMPLE
========================================================= */

.concept-example {
    display: flex;

    align-items: flex-start;

    gap: 18px;

    padding: 22px;

    margin:
        24px 0;

    border-radius: 18px;

    background:
        #fff7f8;

    border:
        1px solid
        #ffe0e4;
}


.concept-example-icon {
    width: 50px;
    height: 50px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 15px;

    background: white;

    font-size: 25px;
}


.concept-example h3 {
    font-size: 17px;

    margin-bottom: 8px;
}


.concept-example p {
    color:
        var(--text-secondary);

    font-size: 13px;

    margin-bottom: 5px;
}


/* =========================================================
   IMPORTANT BOX
========================================================= */

.important-box {
    padding:
        22px;

    margin-top: 22px;

    border-radius: 18px;

    background:
        linear-gradient(
            135deg,
            #f5f3ff,
            #eef2ff
        );

    border:
        1px solid
        #ddd6fe;
}


.important-box p {
    color:
        #4c4c70;

    font-size: 14px;

    margin-bottom: 8px;
}


.important-box p:last-child {
    margin-bottom: 0;
}


.important-title {
    color:
        #4338ca !important;

    font-weight: 850;

    font-size:
        12px !important;

    letter-spacing: 0.3px;
}


/* =========================================================
   STUDY LIST
========================================================= */

.study-list {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-top: 18px;
}


.study-list > div {
    padding:
        18px;

    background: #f8fafc;

    border:
        1px solid
        var(--border);

    border-radius: 15px;
}


.study-list strong {
    display: block;

    margin-bottom: 5px;

    font-size: 14px;
}


.study-list p {
    color:
        var(--text-secondary);

    font-size: 12px;
}


/* =========================================================
   MEMORY TIP
========================================================= */

.memory-tip {
    display: flex;

    align-items: flex-start;

    gap: 14px;

    margin-top: 24px;

    padding: 18px;

    border-radius: 17px;

    background: #fffbeb;

    border:
        1px solid
        #fde68a;
}


.memory-tip >
span {
    font-size: 24px;
}


.memory-tip strong {
    display: block;

    color: #92400e;

    margin-bottom: 4px;
}


.memory-tip p {
    color: #a16207;

    font-size: 13px;
}


/* =========================================================
   ORGANIZATION FLOW
========================================================= */

.organization-flow {
    margin-top: 24px;
}


.organization-item {
    display: flex;

    align-items: flex-start;

    gap: 16px;

    padding:
        18px;

    background: #f8fafc;

    border:
        1px solid
        var(--border);

    border-radius: 17px;
}


.organization-number {
    width: 37px;
    height: 37px;

    flex-shrink: 0;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 12px;

    background:
        var(--primary);

    color: white;

    font-weight: 850;

    font-size: 12px;
}


.organization-item h3 {
    font-size: 15px;

    margin-bottom: 4px;
}


.organization-item p {
    color:
        var(--text-secondary);

    font-size: 13px;

    margin-bottom: 4px;
}


.organization-item small {
    color:
        var(--text-light);

    font-size: 11px;
}


.organization-arrow {
    text-align: center;

    color:
        var(--primary);

    font-size: 20px;

    font-weight: 900;

    height: 28px;
}


/* =========================================================
   DEFINITIONS
========================================================= */

.definition-grid {
    display: grid;

    grid-template-columns:
        repeat(
            2,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-top: 22px;
}


.definition-card {
    padding: 19px;

    border-radius: 16px;

    border:
        1px solid
        var(--border);

    background: #f9fafb;
}


.definition-card h3 {
    font-size: 15px;

    margin-bottom: 6px;
}


.definition-card p {
    color:
        var(--text-secondary);

    font-size: 12px;
}


/* =========================================================
   ORGAN SYSTEM GRID
========================================================= */

.organ-system-grid {
    display: grid;

    grid-template-columns:
        repeat(
            3,
            minmax(0, 1fr)
        );

    gap: 12px;

    margin-top: 22px;
}


.organ-system-card {
    padding: 20px;

    background: #f9fafb;

    border:
        1px solid
        var(--border);

    border-radius: 17px;

    transition:
        0.2s ease;
}


.organ-system-card:hover {
    transform:
        translateY(-3px);

    border-color:
        rgba(79, 70, 229, 0.28);

    box-shadow:
        var(--shadow-sm);
}


.organ-system-card > span {
    display: block;

    font-size: 26px;

    margin-bottom: 10px;
}


.organ-system-card h3 {
    font-size: 15px;

    margin-bottom: 5px;
}


.organ-system-card p {
    color:
        var(--text-secondary);

    font-size: 12px;

    margin-bottom: 7px;

    font-weight: 650;
}


.organ-system-card small {
    color:
        var(--text-light);

    font-size: 11px;
}


/* =========================================================
   CLINICAL CASE
========================================================= */

.clinical-case {
    padding: 24px;

    margin-top: 20px;

    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #ecfeff,
            #f0f9ff
        );

    border:
        1px solid
        #bae6fd;
}


.clinical-case-header {
    display: flex;

    align-items: center;

    gap: 13px;

    margin-bottom: 18px;
}


.clinical-case-header >
span {
    width: 47px;
    height: 47px;

    display: flex;

    align-items: center;

    justify-content: center;

    border-radius: 14px;

    background: white;

    font-size: 24px;
}


.clinical-case-header
p {
    color: #0284c7;

    font-size: 9px;

    font-weight: 850;

    letter-spacing: 1.4px;
}


.clinical-case-header h3 {
    color: #0c4a6e;

    font-size: 18px;
}


.clinical-case > p {
    color: #3b6478;

    font-size: 13px;

    margin-bottom: 11px;
}


.clinical-question {
    margin-top: 19px;

    padding: 18px;

    border-radius: 15px;

    background:
        rgba(255, 255, 255, 0.72);

    border:
        1px solid
        rgba(125, 211, 252, 0.55);
}


.clinical-question strong {
    color: #0369a1;
}


.clinical-question p {
    color: #476a7d;

    font-size: 13px;

    margin-top: 6px;
}


.clinical-answer {
    margin-top: 12px !important;

    padding-top: 12px;

    border-top:
        1px solid
        #bae6fd;

    color:
        #0f5f7f !important;
}


/* =========================================================
   SUMMARY
========================================================= */

.summary-checklist {
    display: flex;

    flex-direction: column;

    gap: 9px;

    margin-top: 18px;
}


.summary-checklist > div {
    padding:
        13px 15px;

    border-radius: 12px;

    background: #f0fdf4;

    border:
        1px solid
        #dcfce7;

    color: #166534;

    font-size: 13px;

    font-weight: 650;
}


.mastery-reminder {
    display: flex;

    align-items: flex-start;

    gap: 14px;

    margin-top: 22px;

    padding: 18px;

    border-radius: 16px;

    background:
        var(--primary-light);

    border:
        1px solid
        #ddd6fe;
}


.mastery-reminder >
span {
    font-size: 24px;
}


.mastery-reminder strong {
    display: block;

    margin-bottom: 3px;

    color:
        var(--primary-dark);
}


.mastery-reminder p {
    color: #5b5f80;

    font-size: 13px;
}


/* =========================================================
   LESSON ACTIONS
========================================================= */

.lesson-actions {
    padding: 30px;

    border-radius: 24px;

    background:
        linear-gradient(
            135deg,
            #111827,
            #312e81,
            #1d4ed8
        );

    color: white;

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 25px;

    box-shadow:
        0 20px 45px
        rgba(49, 46, 129, 0.18);
}


.lesson-actions
.section-label {
    color: #c7d2fe;
}


.lesson-actions h2 {
    font-size: 25px;

    margin-bottom: 5px;
}


.lesson-actions >
div:first-child >
p:last-child {
    color:
        rgba(255, 255, 255, 0.72);

    font-size: 13px;
}


.lesson-action-buttons {
    display: flex;

    gap: 10px;

    flex-shrink: 0;
}


.lesson-action-buttons
button {
    min-height: 47px;

    padding:
        0 16px;

    border-radius: 12px;

    font-weight: 750;

    transition:
        0.2s ease;
}


.secondary-lesson-button {
    border:
        1px solid
        rgba(255, 255, 255, 0.28);

    color: white;

    background:
        rgba(255, 255, 255, 0.09);
}


.secondary-lesson-button:hover {
    background:
        rgba(255, 255, 255, 0.17);

    transform:
        translateY(-2px);
}


.primary-lesson-button {
    border: none;

    background: white;

    color: #312e81;
}


.primary-lesson-button:hover {
    background: #eef2ff;

    transform:
        translateY(-2px);
}


/* =========================================================
   LESSON SIDEBAR
========================================================= */

.lesson-sidebar {
    display: flex;

    flex-direction: column;

    gap: 14px;

    position: sticky;

    top: 160px;
}


.sidebar-card {
    padding: 20px;

    border:
        1px solid
        var(--border);

    border-radius: 18px;

    background:
        var(--card);

    box-shadow:
        var(--shadow-sm);
}


.sidebar-label {
    color:
        var(--text-light);

    font-size: 9px;

    font-weight: 850;

    letter-spacing: 1.4px;

    margin-bottom: 11px;
}


.sidebar-progress-number {
    font-size: 31px;

    font-weight: 850;

    letter-spacing: -1px;

    margin-bottom: 10px;
}


.sidebar-progress-bar {
    width: 100%;

    height: 8px;

    border-radius: 999px;

    overflow: hidden;

    background: #edf0f5;
}


.sidebar-progress-fill {
    width: 0%;

    height: 100%;

    border-radius: 999px;

    background:
        linear-gradient(
            90deg,
            var(--primary),
            var(--secondary)
        );

    transition:
        width 0.4s ease;
}


.sidebar-checklist {
    display: flex;

    flex-direction: column;

    gap: 11px;
}


.sidebar-checklist > div {
    display: flex;

    align-items: center;

    gap: 9px;

    color:
        var(--text-secondary);

    font-size: 12px;
}


.sidebar-checklist span {
    color:
        var(--primary);

    font-weight: 850;
}


.sidebar-card > p:last-child {
    color:
        var(--text-secondary);

    font-size: 12px;
}


.sidebar-tip {
    display: flex;

    align-items: flex-start;

    gap: 12px;

    background: #fffbeb;

    border-color: #fde68a;
}


.sidebar-tip >
span {
    font-size: 22px;
}


.sidebar-tip strong {
    display: block;

    color: #92400e;

    margin-bottom: 4px;
}


.sidebar-tip p {
    color: #a16207;

    font-size: 11px;
}


/* =========================================================
   DARK MODE
========================================================= */

body.dark-mode {
    --text-main: #f1f5f9;
    --text-secondary: #aab4c5;
    --text-light: #7f8a9d;

    --background: #0b1120;
    --card: #111827;
    --border: #263043;

    --primary-light: #1e1b4b;

    background:
        radial-gradient(
            circle at top left,
            rgba(99, 102, 241, 0.15),
            transparent 30%
        ),
        radial-gradient(
            circle at top right,
            rgba(14, 165, 233, 0.09),
            transparent 30%
        ),
        #0b1120;

    color:
        var(--text-main);
}


/* =========================================================
   DARK HEADER
========================================================= */

body.dark-mode
.top-header {
    background:
        rgba(11, 17, 32, 0.90);

    border-bottom-color:
        #263043;
}


body.dark-mode
#theme-button {
    background: #172033;

    border-color: #303b50;

    color: white;
}


/* =========================================================
   DARK DASHBOARD CARDS
========================================================= */

body.dark-mode
.progress-card,
body.dark-mode
.course-card {
    background: #111827;

    border-color: #263043;
}


body.dark-mode
.progress-card:hover,
body.dark-mode
.course-card:hover {
    border-color:
        rgba(129, 140, 248, 0.45);
}


body.dark-mode
.progress-card h3,
body.dark-mode
.dashboard-intro >
p:last-child,
body.dark-mode
.course-card >
p:not(.special-badge),
body.dark-mode
.course-progress {
    color: #aab4c5;
}


body.dark-mode
.progress-bar {
    background: #263043;
}


body.dark-mode
.course-progress {
    border-top-color:
        #263043;
}


body.dark-mode
.course-button {
    background: #1e1b4b;

    border-color: #3730a3;

    color: #c7d2fe;
}


body.dark-mode
.course-button:hover {
    background: #4f46e5;

    color: white;
}


/* =========================================================
   DARK COURSE ICONS
========================================================= */

body.dark-mode
.course-card[
data-course="anatomy1"
]
.course-icon {
    background: #3b1720;
}


body.dark-mode
.course-card[
data-course="anatomy2"
]
.course-icon {
    background: #2c1c4a;
}


body.dark-mode
.course-card[
data-course="chemistry"
]
.course-icon {
    background: #14294a;
}


body.dark-mode
.course-card[
data-course="microbiology"
]
.course-icon {
    background: #123326;
}


body.dark-mode
.course-card[
data-course="statistics"
]
.course-icon {
    background: #102f45;
}


body.dark-mode
.course-card[
data-course="nutrition"
]
.course-icon {
    background: #253616;
}


body.dark-mode
.course-card[
data-course="labs"
]
.course-icon {
    background: #321c46;
}


/* =========================================================
   DARK TEAS
========================================================= */

body.dark-mode
.teas-card {
    background:
        linear-gradient(
            145deg,
            #29256e 0%,
            #3730a3 45%,
            #1d4ed8 100%
        );

    border: none;
}


/* =========================================================
   DARK SMART REVIEW
========================================================= */

body.dark-mode
.weak-area-card {
    background:
        linear-gradient(
            135deg,
            #111827,
            #151c2e
        );

    border-color: #263043;
}


body.dark-mode
.weak-area-card >
div >
p:last-child {
    color: #aab4c5;
}


body.dark-mode
#weak-area-button {
    background: #e2e8f0;

    color: #111827;
}


body.dark-mode
#weak-area-button:hover {
    background: white;
}


/* =========================================================
   DARK FOOTER
========================================================= */

body.dark-mode
footer {
    border-top-color: #263043;
}


/* =========================================================
   DARK WELCOME
========================================================= */

body.dark-mode
.welcome-container {
    background:
        rgba(17, 24, 39, 0.95);

    border-color: #263043;
}


body.dark-mode
.username-box {
    background: #0f172a;

    border-color: #263043;
}


body.dark-mode
.username-box label {
    color: #d4dbea;
}


body.dark-mode
#username {
    background: #172033;

    border-color: #303b50;

    color: white;
}


body.dark-mode
#username::placeholder {
    color: #7f8a9d;
}


/* =========================================================
   DARK COURSE PAGE
========================================================= */

body.dark-mode
.back-button {
    background: #111827;

    border-color: #263043;

    color: #dce3ef;
}


body.dark-mode
.back-button:hover {
    color: #a5b4fc;

    border-color: #6366f1;
}


body.dark-mode
.course-page-title {
    background:
        linear-gradient(
            135deg,
            #24161d,
            #111827
        );

    border-color: #3a252e;
}


body.dark-mode
.course-page-icon {
    background:
        linear-gradient(
            135deg,
            #4b1f2b,
            #321923
        );
}


body.dark-mode
.course-main-progress {
    background: #111827;

    border-color: #263043;
}


body.dark-mode
.course-progress-large {
    background: #263043;
}


body.dark-mode
.topic-card {
    background: #111827;

    border-color: #263043;
}


body.dark-mode
.topic-card:hover {
    border-color:
        rgba(129, 140, 248, 0.45);
}


body.dark-mode
.topic-tags span {
    background: #202a3d;

    color: #aab4c5;
}


body.dark-mode
.topic-button {
    background: #1e1b4b;

    border-color: #3730a3;

    color: #c7d2fe;
}


body.dark-mode
.topic-button:hover {
    background: #4f46e5;

    color: white;
}


body.dark-mode
.module-number {
    background: #e2e8f0;

    color: #111827;
}


/* =========================================================
   DARK LESSON HERO
========================================================= */

body.dark-mode
.lesson-hero {
    background:
        linear-gradient(
            135deg,
            #111827,
            #171c2d,
            #1b1d3c
        );

    border-color: #263043;
}


body.dark-mode
.lesson-meta span {
    background:
        rgba(30, 41, 59, 0.85);

    border-color: #334155;

    color: #cbd5e1;
}


/* =========================================================
   DARK LESSON NAV
========================================================= */

body.dark-mode
.lesson-navigation {
    background:
        rgba(17, 24, 39, 0.92);

    border-color: #263043;
}


/* =========================================================
   DARK LESSON SECTIONS
========================================================= */

body.dark-mode
.lesson-section {
    background: #111827;

    border-color: #263043;
}


body.dark-mode
.study-list > div,
body.dark-mode
.organization-item,
body.dark-mode
.definition-card,
body.dark-mode
.organ-system-card {
    background: #151e2e;

    border-color: #263043;
}


/* =========================================================
   DARK CONCEPT BOX
========================================================= */

body.dark-mode
.concept-example {
    background: #25161d;

    border-color: #44212d;
}


body.dark-mode
.concept-example-icon {
    background: #321b24;
}


/* =========================================================
   DARK IMPORTANT BOX
========================================================= */

body.dark-mode
.important-box {
    background:
        linear-gradient(
            135deg,
            #1e1b4b,
            #172033
        );

    border-color: #3730a3;
}


body.dark-mode
.important-box p {
    color: #c7d2fe;
}


body.dark-mode
.important-title {
    color: #a5b4fc !important;
}


/* =========================================================
   DARK MEMORY TIP
========================================================= */

body.dark-mode
.memory-tip,
body.dark-mode
.sidebar-tip {
    background: #31270e;

    border-color: #5b4610;
}


body.dark-mode
.memory-tip strong,
body.dark-mode
.sidebar-tip strong {
    color: #fde68a;
}


body.dark-mode
.memory-tip p,
body.dark-mode
.sidebar-tip p {
    color: #e9c86a;
}


/* =========================================================
   DARK CLINICAL
========================================================= */

body.dark-mode
.clinical-case {
    background:
        linear-gradient(
            135deg,
            #102431,
            #10283b
        );

    border-color: #164e63;
}


body.dark-mode
.clinical-case-header >
span {
    background: #153548;
}


body.dark-mode
.clinical-case-header h3 {
    color: #bae6fd;
}


body.dark-mode
.clinical-case > p {
    color: #a5d3e7;
}


body.dark-mode
.clinical-question {
    background:
        rgba(15, 23, 42, 0.72);

    border-color: #164e63;
}


body.dark-mode
.clinical-question strong {
    color: #7dd3fc;
}


body.dark-mode
.clinical-question p {
    color: #aad1df;
}


body.dark-mode
.clinical-answer {
    color:
        #bae6fd !important;

    border-top-color: #164e63;
}


/* =========================================================
   DARK SUMMARY
========================================================= */

body.dark-mode
.summary-checklist > div {
    background: #10271a;

    border-color: #14532d;

    color: #86efac;
}


body.dark-mode
.mastery-reminder {
    background: #1e1b4b;

    border-color: #3730a3;
}


body.dark-mode
.mastery-reminder strong {
    color: #c7d2fe;
}


body.dark-mode
.mastery-reminder p {
    color: #a5b4fc;
}


/* =========================================================
   DARK SIDEBAR
========================================================= */

body.dark-mode
.sidebar-card {
    background: #111827;

    border-color: #263043;
}


body.dark-mode
.sidebar-progress-bar {
    background: #263043;
}


/* =========================================================
   TABLET
========================================================= */

@media
(max-width: 1050px) {

    .progress-overview {
        grid-template-columns:
            1fr 1fr;
    }


    .course-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .lesson-layout {
        grid-template-columns:
            1fr;
    }


    .lesson-sidebar {
        position: static;

        display: grid;

        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }


    .organ-system-grid {
        grid-template-columns:
            repeat(
                2,
                minmax(0, 1fr)
            );
    }

}


/* =========================================================
   MEDIUM TABLET
========================================================= */

@media
(max-width: 900px) {

    .course-main-progress {
        grid-template-columns:
            1fr;
    }


    .final-practice-card {
        flex-direction: column;

        align-items: stretch;
    }


    .final-practice-actions {
        width: 100%;
    }


    .final-practice-actions button {
        flex: 1;
    }


    .lesson-hero {
        align-items: flex-start;
    }


    .lesson-hero-number {
        width: 90px;
        height: 90px;

        border-radius: 24px;

        font-size: 32px;
    }


    .lesson-actions {
        flex-direction: column;

        align-items: stretch;
    }


    .lesson-action-buttons {
        width: 100%;
    }


    .lesson-action-buttons button {
        flex: 1;
    }

}


/* =========================================================
   MOBILE
========================================================= */

@media
(max-width: 700px) {

    #welcome-screen {
        padding: 18px;
    }


    .welcome-container {
        padding:
            36px 22px;

        border-radius: 24px;
    }


    .welcome-container h1 {
        letter-spacing: -1.3px;
    }


    .top-header {
        padding:
            0 20px;
    }


    .brand h2 {
        display: none;
    }


    #welcome-name {
        max-width: 170px;

        white-space: nowrap;

        overflow: hidden;

        text-overflow: ellipsis;
    }


    .dashboard-intro,
    .progress-overview,
    .courses-section,
    .weak-areas-section,
    footer,
    .course-page,
    .lesson-page {
        width:
            calc(
                100% - 34px
            );
    }


    .dashboard-intro {
        margin-top: 35px;
    }


    .progress-overview {
        grid-template-columns:
            1fr;

        gap: 12px;
    }


    .progress-card {
        min-height: 125px;
    }


    .course-grid {
        grid-template-columns:
            1fr;
    }


    .course-card {
        min-height: 305px;
    }


    .weak-area-card {
        flex-direction: column;

        align-items: stretch;
    }


    #weak-area-button {
        width: 100%;
    }


    footer {
        flex-direction: column;

        gap: 7px;

        text-align: center;
    }


    /* COURSE PAGE */

    .course-page {
        margin-top: 28px;
    }


    .course-page-title {
        flex-direction: column;

        align-items: flex-start;

        padding: 23px;
    }


    .course-page-icon {
        width: 68px;
        height: 68px;

        font-size: 33px;
    }


    .course-main-progress {
        padding: 22px;
    }


    .module-heading {
        align-items: flex-start;
    }


    .module-heading h2 {
        font-size: 21px;
    }


    .topic-card {
        grid-template-columns:
            45px
            minmax(0, 1fr);

        gap: 13px;

        padding: 18px;
    }


    .topic-status {
        width: 42px;
        height: 42px;
    }


    .topic-button {
        grid-column:
            1 / -1;

        width: 100%;

        margin-top: 3px;
    }


    .final-practice-card {
        padding: 25px;
    }


    .final-practice-actions {
        flex-direction: column;
    }


    /* LESSON */

    .lesson-page {
        margin-top: 22px;
    }


    .lesson-top-bar {
        align-items: flex-start;

        flex-direction: column;
    }


    .lesson-progress-text {
        width: 100%;

        justify-content:
            space-between;
    }


    .lesson-hero {
        padding: 27px;

        flex-direction: column;

        min-height: auto;
    }


    .lesson-hero-number {
        width: 70px;
        height: 70px;

        font-size: 27px;

        border-radius: 20px;
    }


    .lesson-navigation {
        top: 82px;
    }


    .lesson-section {
        grid-template-columns:
            1fr;

        padding: 22px;
    }


    .lesson-section-number {
        width: 43px;
        height: 43px;
    }


    .lesson-section-content > h2 {
        font-size: 23px;
    }


    .study-list {
        grid-template-columns:
            1fr;
    }


    .definition-grid {
        grid-template-columns:
            1fr;
    }


    .organ-system-grid {
        grid-template-columns:
            1fr;
    }


    .concept-example {
        flex-direction: column;
    }


    .lesson-actions {
        padding: 24px;
    }


    .lesson-action-buttons {
        flex-direction: column;
    }


    .lesson-sidebar {
        grid-template-columns:
            1fr;
    }

}


/* =========================================================
   SMALL MOBILE
========================================================= */

@media
(max-width: 400px) {

    .welcome-container {
        padding:
            30px 18px;
    }


    .welcome-container::before {
        width: 62px;
        height: 62px;

        font-size: 29px;
    }


    .dashboard-intro h1 {
        font-size: 30px;
    }


    .course-card {
        padding: 21px;
    }


    .lesson-hero {
        padding: 22px;
    }


    .lesson-hero-content h1 {
        font-size: 31px;
    }


    .lesson-section {
        padding: 19px;
    }


    .lesson-meta {
        flex-direction: column;

        align-items: flex-start;
    }

}