/* =========================================================
   HABOD MOBILE PHONE GRAPHIC DESIGN COURSE
   COURSE LESSONS PAGE
   =========================================================
   
   BRAND:
   Primary: #9932CC
   This stylesheet is designed specifically for the
   HTML + phone-graphic.js + course-data.js supplied.
   
   IMPORTANT:
   This file is ONLY for styling.
   Do not change the JavaScript or course-data.js.
   ========================================================= */


/* =========================================================
   COURSE DESIGN VARIABLES
   ========================================================= */

.lessons-page {

    --course-purple: #9932CC;
    --course-purple-dark: #7B24A5;
    --course-purple-deep: #54156F;

    --course-purple-light: #B65FDB;
    --course-purple-soft: #F3E6F9;
    --course-purple-pale: #FBF7FD;

    --course-text: #211827;
    --course-text-secondary: #665C6C;
    --course-text-muted: #8B8291;

    --course-white: #FFFFFF;

    --course-background: #F8F7FA;

    --course-border: #E8E1EC;

    --course-green: #16A34A;
    --course-green-dark: #12813B;
    --course-green-soft: #EAF8EF;

    --course-shadow-small:
        0 4px 15px rgba(49, 20, 61, 0.06);

    --course-shadow:
        0 10px 30px rgba(49, 20, 61, 0.08);

    --course-shadow-large:
        0 20px 60px rgba(49, 20, 61, 0.13);

    --course-radius-small: 10px;
    --course-radius: 16px;
    --course-radius-large: 22px;
}


/* =========================================================
   PAGE
   ========================================================= */

.course-page.lessons-page {

    width: 100%;

    min-height: 100vh;

    background:
        linear-gradient(
            180deg,
            #FFFFFF 0%,
            #FAF9FB 25%,
            var(--course-background) 100%
        );

    color:
        var(--course-text);

    overflow-x: hidden;
}


/* =========================================================
   LESSON PAGE HERO
   ========================================================= */

.lessons-page-hero {

    position: relative;

    width: 100%;

    padding:
        55px 20px 95px;

    text-align: center;

    color: #FFFFFF;

    background:
        radial-gradient(
            circle at 12% 20%,
            rgba(255, 255, 255, 0.12),
            transparent 27%
        ),
        radial-gradient(
            circle at 90% 15%,
            rgba(255, 255, 255, 0.10),
            transparent 30%
        ),
        linear-gradient(
            135deg,
            #421052 0%,
            #681C88 45%,
            #9932CC 100%
        );

    isolation: isolate;

    overflow: hidden;
}


/* Decorative hero glow */

.lessons-page-hero::before {

    content: "";

    position: absolute;

    width: 350px;
    height: 350px;

    top: -210px;
    right: -90px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.07);

    pointer-events: none;
}


.lessons-page-hero::after {

    content: "";

    position: absolute;

    width: 300px;
    height: 300px;

    bottom: -210px;
    left: -100px;

    border-radius: 50%;

    background:
        rgba(255, 255, 255, 0.06);

    pointer-events: none;
}


/* =========================================================
   BACK TO COURSE
   ========================================================= */

.lessons-page-hero .back-to-course {

    position: relative;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    margin-bottom: 28px;

    padding:
        10px 17px;

    border:
        1px solid
        rgba(255, 255, 255, 0.25);

    border-radius: 50px;

    background:
        rgba(255, 255, 255, 0.10);

    color: #FFFFFF;

    font-size: 13px;

    font-weight: 600;

    text-decoration: none;

    backdrop-filter:
        blur(12px);

    -webkit-backdrop-filter:
        blur(12px);

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        transform 0.25s ease;
}


.lessons-page-hero .back-to-course:hover {

    background:
        rgba(255, 255, 255, 0.18);

    border-color:
        rgba(255, 255, 255, 0.38);

    transform:
        translateY(-2px);
}


/* =========================================================
   COURSE BADGE
   ========================================================= */

.lessons-page-hero .course-badge {

    position: relative;

    z-index: 2;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    margin-bottom: 18px;

    padding:
        7px 13px;

    border:
        1px solid
        rgba(255, 255, 255, 0.24);

    border-radius: 50px;

    background:
        rgba(255, 255, 255, 0.10);

    color:
        rgba(255, 255, 255, 0.94);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.5px;

    backdrop-filter:
        blur(10px);

    -webkit-backdrop-filter:
        blur(10px);
}


/* =========================================================
   HERO TITLE
   ========================================================= */

.lessons-page-hero h1 {

    position: relative;

    z-index: 2;

    max-width: 850px;

    margin:
        0 auto 18px;

    color: #FFFFFF;

    font-size:
        clamp(32px, 5vw, 58px);

    line-height:
        1.08;

    font-weight:
        800;

    letter-spacing:
        -1.5px;
}


.lessons-page-hero p {

    position: relative;

    z-index: 2;

    max-width: 650px;

    margin:
        0 auto;

    color:
        rgba(255, 255, 255, 0.82);

    font-size:
        clamp(14px, 2vw, 18px);

    line-height:
        1.7;
}


/* =========================================================
   PROGRESS SECTION
   ========================================================= */

.lessons-progress-section {

    position: relative;

    z-index: 10;

    width:
        min(
            calc(100% - 32px),
            1050px
        );

    margin:
        -48px auto 0;

    padding:
        28px;

    border:
        1px solid
        rgba(255, 255, 255, 0.80);

    border-radius:
        var(--course-radius-large);

    background:
        rgba(255, 255, 255, 0.98);

    box-shadow:
        var(--course-shadow-large);

    backdrop-filter:
        blur(15px);

    -webkit-backdrop-filter:
        blur(15px);
}


/* =========================================================
   PROGRESS TOP
   ========================================================= */

.lessons-progress-top {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 25px;

    margin-bottom: 21px;
}


.lessons-progress-top .eyebrow {

    display: block;

    margin-bottom: 7px;

    color:
        var(--course-purple);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.6px;
}


.lessons-progress-top h2 {

    margin:
        0 0 5px;

    color:
        var(--course-text);

    font-size: 25px;

    line-height: 1.2;

    font-weight: 800;
}


.lessons-progress-top p {

    margin: 0;

    color:
        var(--course-text-secondary);

    font-size: 14px;

    line-height: 1.6;
}


/* =========================================================
   PROGRESS PERCENTAGE
   ========================================================= */

.lessons-progress-top strong {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    width: 72px;
    height: 72px;

    border-radius: 50%;

    background:
        var(--course-purple-soft);

    color:
        var(--course-purple);

    font-size: 19px;

    font-weight: 800;

    box-shadow:
        inset 0 0 0 7px
        rgba(153, 50, 204, 0.045);
}


/* =========================================================
   LARGE PROGRESS BAR
   ========================================================= */

.large-progress-bar {

    position: relative;

    width: 100%;

    height: 11px;

    overflow: hidden;

    border-radius: 50px;

    background:
        #EDE8F0;
}


.large-progress-bar div {

    width: 0;

    height: 100%;

    border-radius: inherit;

    background:
        linear-gradient(
            90deg,
            var(--course-purple-dark),
            var(--course-purple),
            var(--course-purple-light)
        );

    box-shadow:
        0 2px 9px
        rgba(153, 50, 204, 0.28);

    transition:
        width 0.5s ease;
}


/* =========================================================
   NEXT LESSON SECTION
   ========================================================= */

.next-lesson-section {

    width:
        min(
            calc(100% - 32px),
            1050px
        );

    margin:
        72px auto 38px;

    padding:
        27px;

    border:
        1px solid
        var(--course-border);

    border-radius:
        var(--course-radius);

    background:
        linear-gradient(
            135deg,
            #FFFFFF 0%,
            #FCF8FE 100%
        );

    box-shadow:
        var(--course-shadow-small);
}


/* =========================================================
   NEXT LESSON LABEL
   ========================================================= */

.next-lesson-label {

    display: flex;

    align-items: center;

    gap: 9px;

    margin-bottom: 18px;

    color:
        var(--course-purple);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.6px;
}


.next-lesson-label::before {

    content: "";

    width: 8px;
    height: 8px;

    flex-shrink: 0;

    border-radius: 50%;

    background:
        var(--course-purple);

    box-shadow:
        0 0 0 5px
        var(--course-purple-soft);
}


/* =========================================================
   NEXT LESSON CARD
   ========================================================= */

.next-lesson-card {

    display: grid;

    grid-template-columns:
        230px 1fr;

    gap: 24px;

    width: 100%;

    padding: 14px;

    border:
        1px solid
        var(--course-border);

    border-radius:
        15px;

    background:
        #FFFFFF;

    box-shadow:
        var(--course-shadow-small);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.next-lesson-card:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(153, 50, 204, 0.20);

    box-shadow:
        var(--course-shadow);
}


/* =========================================================
   NEXT LESSON THUMBNAIL
   ========================================================= */

.next-lesson-thumbnail {

    position: relative;

    width: 100%;

    min-height: 155px;

    overflow: hidden;

    border-radius:
        11px;

    background:
        linear-gradient(
            135deg,
            #E9D5F1,
            #F5EAF8
        );
}


.next-lesson-thumbnail img {

    display: block;

    width: 100%;
    height: 100%;

    min-height: 155px;

    object-fit: cover;
}


/* =========================================================
   NEXT LESSON INFO
   ========================================================= */

.next-lesson-info {

    display: flex;

    flex-direction: column;

    align-items: flex-start;

    justify-content: center;

    padding:
        8px 10px 8px 0;
}


.next-lesson-info > span {

    display: inline-flex;

    margin-bottom: 8px;

    color:
        var(--course-purple);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.2px;

    text-transform: uppercase;
}


.next-lesson-info h3 {

    margin:
        0 0 8px;

    color:
        var(--course-text);

    font-size: 21px;

    line-height: 1.3;

    font-weight: 800;
}


.next-lesson-info p {

    max-width: 650px;

    margin:
        0 0 17px;

    color:
        var(--course-text-secondary);

    font-size: 13px;

    line-height: 1.65;
}


/* =========================================================
   CONTINUE LEARNING BUTTON
   ========================================================= */

.next-lesson-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 8px;

    min-height: 43px;

    padding:
        10px 18px;

    border: none;

    border-radius:
        10px;

    background:
        var(--course-purple);

    color:
        #FFFFFF;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 6px 17px
        rgba(153, 50, 204, 0.20);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.next-lesson-button:hover {

    background:
        var(--course-purple-dark);

    transform:
        translateY(-2px);

    box-shadow:
        0 9px 22px
        rgba(153, 50, 204, 0.28);
}


/* =========================================================
   ALL LESSONS COMPLETED
   ========================================================= */

.next-lesson-section.all-lessons-completed {

    border-color:
        #D9EEDD;

    background:
        linear-gradient(
            135deg,
            #FFFFFF,
            #F7FCF8
        );
}


.course-finished-message {

    display: flex;

    align-items: center;

    gap: 18px;

    padding:
        20px;

    border:
        1px solid
        #DCEFE0;

    border-radius:
        14px;

    background:
        #FFFFFF;
}


.finished-icon {

    display: flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    width: 56px;
    height: 56px;

    border-radius: 50%;

    background:
        var(--course-green-soft);

    color:
        var(--course-green);

    font-size: 24px;

    font-weight: 800;
}


.course-finished-message h3 {

    margin:
        0 0 5px;

    color:
        var(--course-text);

    font-size: 18px;

    font-weight: 800;
}


.course-finished-message p {

    margin: 0;

    color:
        var(--course-text-secondary);

    font-size: 13px;

    line-height: 1.6;
}


/* =========================================================
   LESSONS CONTAINER
   ========================================================= */

.lessons-container {

    width:
        min(
            calc(100% - 32px),
            1050px
        );

    margin:
        0 auto 85px;
}


/* =========================================================
   LESSONS HEADING
   ========================================================= */

.lessons-heading {

    display: flex;

    align-items: flex-end;

    justify-content: space-between;

    gap: 25px;

    margin-bottom: 27px;
}


.lessons-heading .eyebrow {

    display: block;

    margin-bottom: 7px;

    color:
        var(--course-purple);

    font-size: 10px;

    font-weight: 800;

    letter-spacing: 1.6px;
}


.lessons-heading h2 {

    margin:
        0 0 8px;

    color:
        var(--course-text);

    font-size:
        clamp(27px, 4vw, 36px);

    line-height:
        1.15;

    font-weight:
        800;

    letter-spacing:
        -0.7px;
}


.lessons-heading p {

    max-width: 620px;

    margin: 0;

    color:
        var(--course-text-secondary);

    font-size: 14px;

    line-height: 1.65;
}


/* =========================================================
   LESSON COUNT
   ========================================================= */

.lesson-count {

    display: inline-flex;

    align-items: center;

    gap: 3px;

    flex-shrink: 0;

    padding:
        10px 15px;

    border:
        1px solid
        var(--course-border);

    border-radius: 50px;

    background:
        #FFFFFF;

    color:
        var(--course-text-secondary);

    font-size: 12px;

    font-weight: 600;

    box-shadow:
        var(--course-shadow-small);
}


.lesson-count span:first-child {

    color:
        var(--course-purple);

    font-weight: 800;
}


.lesson-count span:last-child {

    color:
        var(--course-text);
}


/* =========================================================
   LESSON LIST
   ========================================================= */

.lesson-list {

    display: flex;

    flex-direction: column;

    gap: 14px;
}


/* =========================================================
   LESSON CARD
   ========================================================= */

.lesson-card {

    display: grid;

    grid-template-columns:
        245px 1fr;

    gap: 22px;

    width: 100%;

    padding: 14px;

    border:
        1px solid
        var(--course-border);

    border-radius:
        var(--course-radius);

    background:
        #FFFFFF;

    box-shadow:
        var(--course-shadow-small);

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease,
        border-color 0.25s ease;
}


.lesson-card:hover {

    transform:
        translateY(-3px);

    border-color:
        rgba(153, 50, 204, 0.20);

    box-shadow:
        var(--course-shadow);
}


/* =========================================================
   NEXT LESSON HIGHLIGHT
   ========================================================= */

.lesson-card.next-lesson-highlight {

    border-color:
        rgba(153, 50, 204, 0.30);

    box-shadow:
        0 8px 30px
        rgba(153, 50, 204, 0.10);
}


.lesson-card.next-lesson-highlight::before {

    content: "";

    position: absolute;
}


/* =========================================================
   LESSON THUMBNAIL
   ========================================================= */

.lesson-thumbnail {

    position: relative;

    width: 100%;

    min-height: 155px;

    overflow: hidden;

    border-radius:
        12px;

    background:
        linear-gradient(
            135deg,
            #EBD8F2,
            #F8EFFB
        );
}


.lesson-thumbnail img {

    display: block;

    width: 100%;
    height: 100%;

    min-height: 155px;

    object-fit: cover;

    transition:
        transform 0.4s ease;
}


.lesson-card:hover
.lesson-thumbnail img {

    transform:
        scale(1.04);
}


/* =========================================================
   THUMBNAIL PLACEHOLDER
   ========================================================= */

.lesson-thumbnail.thumbnail-placeholder {

    display: flex;

    align-items: center;

    justify-content: center;

    background:
        linear-gradient(
            135deg,
            #E8D0F1,
            #F6EAF9
        );
}


.lesson-thumbnail.thumbnail-placeholder::after {

    content: "COMPLETE MOBILE PHONE GRAPHIC DESIGN COURSE";

    color:
        rgba(153, 50, 204, 0.28);

    font-size: 18px;

    font-weight: 800;

    letter-spacing: 2px;

    text-align: center;
}


/* =========================================================
   LESSON NUMBER ON THUMBNAIL
   ========================================================= */

.lesson-thumbnail .lesson-number {

    position: absolute;

    left: 12px;

    bottom: 12px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 28px;

    padding:
        5px 10px;

    border:
        1px solid
        rgba(255, 255, 255, 0.25);

    border-radius:
        7px;

    background:
        rgba(25, 12, 31, 0.72);

    color:
        #FFFFFF;

    font-size: 10px;

    font-weight: 800;

    letter-spacing:
        0.5px;

    backdrop-filter:
        blur(7px);

    -webkit-backdrop-filter:
        blur(7px);
}


/* =========================================================
   COMPLETED BADGE
   ========================================================= */

.completed-badge {

    position: absolute;

    top: 11px;

    right: 11px;

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 27px;

    padding:
        5px 9px;

    border-radius:
        50px;

    background:
        rgba(22, 163, 74, 0.94);

    color:
        #FFFFFF;

    font-size: 9px;

    font-weight: 800;

    box-shadow:
        0 4px 12px
        rgba(22, 163, 74, 0.22);

    backdrop-filter:
        blur(5px);
}


/* =========================================================
   LESSON CONTENT
   ========================================================= */

.lesson-content {

    display: flex;

    flex-direction: column;

    justify-content: center;

    min-width: 0;

    padding:
        6px 10px 6px 0;
}


/* =========================================================
   LESSON TOP ROW
   ========================================================= */

.lesson-top-row {

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 15px;

    margin-bottom: 8px;
}


.lesson-label {

    display: inline-flex;

    align-items: center;

    color:
        var(--course-purple);

    font-size: 9px;

    font-weight: 800;

    letter-spacing:
        1.4px;
}


.lesson-status {

    display: inline-flex;

    align-items: center;

    gap: 4px;

    color:
        var(--course-green);

    font-size: 10px;

    font-weight: 700;
}


/* =========================================================
   LESSON TITLE
   ========================================================= */

.lesson-content h3 {

    margin:
        0 0 8px;

    color:
        var(--course-text);

    font-size:
        clamp(17px, 2vw, 21px);

    line-height:
        1.35;

    font-weight:
        800;
}


/* =========================================================
   LESSON DESCRIPTION
   ========================================================= */

.lesson-content > p {

    max-width: 700px;

    margin:
        0 0 18px;

    color:
        var(--course-text-secondary);

    font-size: 13px;

    line-height:
        1.65;
}


/* =========================================================
   LESSON ACTIONS
   ========================================================= */

.lesson-actions {

    display: flex;

    align-items: center;

    flex-wrap: wrap;

    gap: 9px;

    margin-top: auto;
}


/* =========================================================
   WATCH LESSON BUTTON
   ========================================================= */

.watch-lesson-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-height: 42px;

    padding:
        10px 17px;

    border: none;

    border-radius:
        9px;

    background:
        var(--course-purple);

    color:
        #FFFFFF;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 5px 15px
        rgba(153, 50, 204, 0.20);

    transition:
        background 0.25s ease,
        transform 0.25s ease,
        box-shadow 0.25s ease;
}


.watch-lesson-button:hover {

    background:
        var(--course-purple-dark);

    transform:
        translateY(-2px);

    box-shadow:
        0 8px 20px
        rgba(153, 50, 204, 0.28);
}


/* =========================================================
   COMPLETE BUTTON
   ========================================================= */

.complete-lesson-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    gap: 7px;

    min-height: 42px;

    padding:
        9px 15px;

    border:
        1px solid
        var(--course-border);

    border-radius:
        9px;

    background:
        #FFFFFF;

    color:
        var(--course-text-secondary);

    font-size: 11px;

    font-weight: 700;

    cursor: pointer;

    transition:
        background 0.25s ease,
        border-color 0.25s ease,
        color 0.25s ease,
        transform 0.25s ease;
}


.complete-lesson-button:hover {

    border-color:
        rgba(153, 50, 204, 0.35);

    background:
        var(--course-purple-pale);

    color:
        var(--course-purple);

    transform:
        translateY(-2px);
}


/* =========================================================
   COMPLETED LESSON CARD
   ========================================================= */

.lesson-card.lesson-completed {

    border-color:
        #D9ECDD;

    background:
        linear-gradient(
            135deg,
            #FFFFFF 0%,
            #FBFEFC 100%
        );
}


.lesson-card.lesson-completed
.lesson-label {

    color:
        var(--course-green);
}


.lesson-card.lesson-completed
.complete-lesson-button {

    border-color:
        #CFE8D5;

    background:
        var(--course-green-soft);

    color:
        var(--course-green);
}


.lesson-card.lesson-completed
.complete-lesson-button:hover {

    border-color:
        #B9DDBF;

    background:
        #DDF4E4;

    color:
        var(--course-green-dark);
}


/* =========================================================
   PULSE HIGHLIGHT
   ========================================================= */

.lesson-card.pulse-highlight {

    animation:
        lessonPulse 1.6s ease-in-out 2;
}


@keyframes lessonPulse {

    0%,
    100% {

        box-shadow:
            var(--course-shadow-small);
    }

    50% {

        box-shadow:
            0 0 0 5px
            rgba(153, 50, 204, 0.10),
            0 14px 35px
            rgba(153, 50, 204, 0.16);
    }
}


/* =========================================================
   VIDEO MODAL — UNIQUE "lvm-" NAMESPACE
   These classes are prefixed specifically so nothing in
   style.css or phone-graphic.css (or any future stylesheet)
   can ever collide with or override them. All element IDs
   referenced by phone-graphic.js are unchanged.
   ========================================================= */

.lvm-modal {

    position: fixed;

    inset: 0;

    z-index: 99999;

    display: none;

    align-items: center;

    justify-content: center;

    padding: 20px;

    box-sizing: border-box;

    opacity: 0;

    visibility: hidden;

    transition:
        opacity 0.25s ease,
        visibility 0.25s ease;
}


/* IMPORTANT:
This matches your JavaScript:
modal.classList.add("modal-active");
*/

.lvm-modal.modal-active {

    display: flex;

    opacity: 1;

    visibility: visible;
}


/* Backdrop */

.lvm-backdrop {

    position: absolute;

    inset: 0;

    background:
        rgba(17, 8, 22, 0.84);

    backdrop-filter:
        blur(8px);

    -webkit-backdrop-filter:
        blur(8px);
}


/* Panel (the white/dark card that holds everything) */

.lvm-panel {

    position: relative;

    z-index: 2;

    width: 100%;

    max-width: 940px;

    max-height: calc(100vh - 40px);

    overflow-y: auto;

    overflow-x: hidden;

    box-sizing: border-box;

    border-radius: 20px;

    background: #0B0710;

    box-shadow:
        0 30px 90px
        rgba(0, 0, 0, 0.34);

    animation:
        lvmPanelEnter 0.28s ease;
}


@keyframes lvmPanelEnter {

    from {

        opacity: 0;

        transform:
            translateY(18px)
            scale(0.975);
    }

    to {

        opacity: 1;

        transform:
            translateY(0)
            scale(1);
    }
}


/* Close button */

.lvm-close {

    position: absolute;

    top: 12px;

    right: 12px;

    z-index: 10;

    display: flex;

    align-items: center;

    justify-content: center;

    width: 40px;

    height: 40px;

    padding: 0;

    border:
        1px solid
        rgba(255, 255, 255, 0.25);

    border-radius: 50%;

    background:
        rgba(0, 0, 0, 0.60);

    color:
        #FFFFFF;

    font-size: 22px;

    line-height: 1;

    cursor: pointer;

    transition:
        background 0.2s ease,
        transform 0.2s ease;
}


.lvm-close:hover {

    background:
        var(--course-purple);

    transform:
        rotate(90deg);
}


/* =========================================================
   VIDEO — the actual responsive player
   aspect-ratio + an absolutely positioned iframe is the same
   technique YouTube's own embed uses: it scales cleanly at
   any width with no vw math, so it can never overflow,
   shrink to the wrong size, or distort on any device.
   ========================================================= */

.lvm-video {

    position: relative;

    width: 100%;

    aspect-ratio: 16 / 9;

    overflow: hidden;

    background:
        #120C15;
}


.lvm-video iframe {

    position: absolute;

    inset: 0;

    display: block;

    width: 100%;

    height: 100%;

    border: 0;
}


/* =========================================================
   MOBILE WATCH BLOCK
   Hidden by default (desktop/tablet use the embedded
   video above). phone-graphic.js adds ".lvm-mobile-mode"
   to the panel on screens 700px and narrower, which hides
   the video and shows this block instead, since those
   screens open the real Google Drive page in a new tab.
   ========================================================= */

.lvm-mobile-watch {

    display: none;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    gap: 18px;

    padding: 56px 26px 28px;

    text-align: center;
}


.lvm-mobile-watch p {

    margin: 0;

    max-width: 320px;

    color: rgba(255, 255, 255, 0.65);

    font-size: 13px;

    line-height: 1.6;
}


.lvm-watch-again {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 46px;

    padding: 12px 22px;

    border: none;

    border-radius: 10px;

    background: var(--course-purple);

    color: #FFFFFF;

    font-size: 13px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 6px 17px
        rgba(153, 50, 204, 0.25);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.lvm-watch-again:hover {

    background: var(--course-purple-dark);

    transform: translateY(-2px);
}


/* Panel state toggled by JS: mobile screens hide the
   video and show the "Watch on Google Drive" block. */

.lvm-panel.lvm-mobile-mode .lvm-video {

    display: none;
}


.lvm-panel.lvm-mobile-mode .lvm-mobile-watch {

    display: flex;
}


/* =========================================================
   FOOTER — Mark as Complete + Prev/Next
   ========================================================= */

.lvm-footer {

    display: flex;

    align-items: center;

    justify-content: space-between;

    flex-wrap: wrap;

    gap: 16px;

    padding: 18px 22px;

    background: #150F1A;

    border-top:
        1px solid
        rgba(255, 255, 255, 0.08);
}


.lvm-complete {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    flex-shrink: 0;

    min-height: 44px;

    padding:
        10px 18px;

    border: none;

    border-radius: 10px;

    background:
        var(--course-purple);

    color: #FFFFFF;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    box-shadow:
        0 6px 17px
        rgba(153, 50, 204, 0.22);

    transition:
        background 0.25s ease,
        transform 0.25s ease;
}


.lvm-complete:hover {

    background:
        var(--course-purple-dark);

    transform:
        translateY(-2px);
}


.lvm-complete.already-completed {

    background:
        var(--course-green);

    box-shadow:
        0 6px 17px
        rgba(22, 163, 74, 0.18);
}


.lvm-complete.already-completed:hover {

    background:
        var(--course-green-dark);
}


.lvm-nav {

    display: flex;

    align-items: center;

    gap: 14px;
}


.lvm-nav-button {

    display: inline-flex;

    align-items: center;

    justify-content: center;

    min-height: 40px;

    padding:
        9px 14px;

    border:
        1px solid
        rgba(255, 255, 255, 0.16);

    border-radius: 9px;

    background:
        rgba(255, 255, 255, 0.05);

    color: #FFFFFF;

    font-size: 12px;

    font-weight: 700;

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease;
}


.lvm-nav-button:hover {

    border-color:
        var(--course-purple-light);

    background:
        rgba(153, 50, 204, 0.18);
}


.lvm-nav-button:disabled {

    opacity: 0.4;

    cursor: not-allowed;
}


#lessonPosition {

    color:
        rgba(255, 255, 255, 0.65);

    font-size: 12px;

    font-weight: 700;
}


/* =========================================================
   FOCUS ACCESSIBILITY
   ========================================================= */

.lessons-page
.watch-lesson-button:focus-visible,
.lessons-page
.complete-lesson-button:focus-visible,
.lessons-page
.next-lesson-button:focus-visible,
.lessons-page
.lvm-complete:focus-visible,
.lessons-page
.lvm-nav-button:focus-visible,
.lessons-page
.lvm-close:focus-visible,
.lessons-page
.back-to-course:focus-visible {

    outline:
        3px solid
        rgba(153, 50, 204, 0.25);

    outline-offset:
        3px;
}


/* =========================================================
   TEXT SELECTION
   ========================================================= */

.lessons-page ::selection {

    background:
        var(--course-purple);

    color:
        #FFFFFF;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 850px) {


    .lesson-card {

        grid-template-columns:
            200px 1fr;

        gap:
            18px;
    }


    .next-lesson-card {

        grid-template-columns:
            190px 1fr;
    }


    .lesson-thumbnail,
    .lesson-thumbnail img {

        min-height:
            140px;
    }


    .next-lesson-thumbnail,
    .next-lesson-thumbnail img {

        min-height:
            140px;
    }


    .lesson-content h3 {

        font-size:
            17px;
    }
}


/* =========================================================
   MOBILE / TABLET
   ========================================================= */

@media (max-width: 700px) {


    .lessons-page-hero {

        padding:
            43px 18px 78px;
    }


    .lessons-page-hero h1 {

        letter-spacing:
            -0.8px;
    }


    .lessons-progress-section {

        width:
            calc(100% - 24px);

        margin-top:
            -38px;

        padding:
            23px;
    }


    .next-lesson-section,
    .lessons-container {

        width:
            calc(100% - 24px);
    }


    .next-lesson-section {

        margin-top:
            58px;

        padding:
            21px;
    }


    .next-lesson-card {

        grid-template-columns:
            1fr;

        gap:
            0;

        padding:
            12px;
    }


    .next-lesson-thumbnail,
    .next-lesson-thumbnail img {

        min-height:
            190px;

        height:
            190px;
    }


    .next-lesson-info {

        padding:
            18px 8px 8px;
    }


    .next-lesson-info h3 {

        font-size:
            19px;
    }


    .next-lesson-button {

        width:
            100%;
    }


    .lessons-heading {

        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            15px;
    }


    .lesson-card {

        grid-template-columns:
            1fr;

        gap:
            0;

        padding:
            12px;
    }


    .lesson-thumbnail,
    .lesson-thumbnail img {

        min-height:
            200px;

        height:
            200px;
    }


    .lesson-content {

        padding:
            18px 7px 7px;
    }


    .lesson-content h3 {

        font-size:
            18px;
    }


    .lesson-actions {

        margin-top:
            4px;
    }


    .watch-lesson-button,
    .complete-lesson-button {

        flex:
            1 1 auto;
    }


    /* ---- VIDEO MODAL: MOBILE ----
       Mobile no longer shows an embedded video at all
       (see phone-graphic.js: it opens the real Google
       Drive page in a new tab instead, since that is
       where the touchscreen-only stuck-controls bug
       happens). The panel here just needs the footer
       actions to stack nicely; the video wrapper is
       already hidden via .lvm-mobile-mode above. ---- */

    .lvm-footer {

        flex-direction: column;

        align-items: stretch;

        gap: 12px;
    }

    .lvm-complete {

        width: 100%;
    }

    .lvm-nav {

        justify-content: space-between;

        width: 100%;
    }

    .lvm-close {

        top: 10px;

        right: 10px;

        width: 36px;

        height: 36px;

        font-size: 20px;
    }
}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 560px) {


    .lessons-page-hero {

        padding:
            32px 15px 65px;
    }


    .lessons-page-hero .back-to-course {

        margin-bottom:
            22px;

        font-size:
            12px;
    }


    .lessons-page-hero .course-badge {

        font-size:
            9px;

        letter-spacing:
            1.2px;
    }


    .lessons-page-hero h1 {

        font-size:
            30px;

        line-height:
            1.12;
    }


    .lessons-page-hero p {

        font-size:
            14px;

        line-height:
            1.6;
    }


    /* Progress */

    .lessons-progress-section {

        width:
            calc(100% - 20px);

        margin-top:
            -29px;

        padding:
            20px;

        border-radius:
            18px;
    }


    .lessons-progress-top {

        align-items:
            center;

        gap:
            13px;
    }


    .lessons-progress-top h2 {

        font-size:
            21px;
    }


    .lessons-progress-top p {

        font-size:
            12px;
    }


    .lessons-progress-top strong {

        width:
            58px;

        height:
            58px;

        font-size:
            15px;
    }


    .large-progress-bar {

        height:
            9px;
    }


    /* Next lesson */

    .next-lesson-section {

        width:
            calc(100% - 20px);

        margin-top:
            45px;

        padding:
            17px;

        border-radius:
            16px;
    }


    .next-lesson-thumbnail,
    .next-lesson-thumbnail img {

        min-height:
            175px;

        height:
            175px;
    }


    .next-lesson-info {

        padding:
            16px 6px 6px;
    }


    .next-lesson-info h3 {

        font-size:
            18px;
    }


    .next-lesson-info p {

        font-size:
            12px;
    }


    /* Lessons */

    .lessons-container {

        width:
            calc(100% - 20px);

        margin-bottom:
            60px;
    }


    .lessons-heading h2 {

        font-size:
            26px;
    }


    .lessons-heading p {

        font-size:
            13px;
    }


    .lesson-count {

        font-size:
            11px;

        padding:
            9px 12px;
    }


    /* Lesson cards */

    .lesson-list {

        gap:
            12px;
    }


    .lesson-card {

        padding:
            10px;

        border-radius:
            14px;
    }


    .lesson-thumbnail,
    .lesson-thumbnail img {

        min-height:
            180px;

        height:
            180px;
    }


    .lesson-thumbnail .lesson-number {

        left:
            10px;

        bottom:
            10px;

        font-size:
            9px;

        min-height:
            26px;
    }


    .completed-badge {

        top:
            9px;

        right:
            9px;

        font-size:
            8px;
    }


    .lesson-content {

        padding:
            16px 5px 5px;
    }


    .lesson-top-row {

        margin-bottom:
            7px;
    }


    .lesson-label {

        font-size:
            8px;
    }


    .lesson-status {

        font-size:
            9px;
    }


    .lesson-content h3 {

        font-size:
            16px;

        line-height:
            1.4;
    }


    .lesson-content > p {

        font-size:
            12px;

        line-height:
            1.65;

        margin-bottom:
            15px;
    }


    .lesson-actions {

        display:
            grid;

        grid-template-columns:
            1fr;

        width:
            100%;

        gap:
            8px;
    }


    .watch-lesson-button,
    .complete-lesson-button {

        width:
            100%;

        min-height:
            41px;

        font-size:
            11px;
    }


    /* Modal */

    .lvm-close {

        width: 35px;

        height: 35px;

        font-size: 21px;
    }

    .lvm-footer {

        padding: 15px;
    }

    .lvm-complete,
    .lvm-nav-button {

        min-height: 40px;

        font-size: 11px;
    }


    /* Completion */

    .course-finished-message {

        align-items:
            flex-start;

        padding:
            16px;

        gap:
            13px;
    }


    .finished-icon {

        width:
            45px;

        height:
            45px;

        font-size:
            19px;
    }


    .course-finished-message h3 {

        font-size:
            16px;
    }


    .course-finished-message p {

        font-size:
            12px;
    }
}


/* =========================================================
   VERY SMALL PHONES
   ========================================================= */

@media (max-width: 380px) {


    .lessons-page-hero h1 {

        font-size:
            27px;
    }


    .lessons-progress-top strong {

        width:
            52px;

        height:
            52px;

        font-size:
            14px;
    }


    .lesson-thumbnail,
    .lesson-thumbnail img {

        min-height:
            160px;

        height:
            160px;
    }


    .next-lesson-thumbnail,
    .next-lesson-thumbnail img {

        min-height:
            155px;

        height:
            155px;
    }


    .lesson-content h3 {

        font-size:
            15px;
    }

    .lvm-close {

        top: 8px;

        right: 8px;

        width: 34px;

        height: 34px;

        font-size: 19px;
    }
}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .lessons-page *,
    .lessons-page *::before,
    .lessons-page *::after {

        animation-duration:
            0.01ms !important;

        animation-iteration-count:
            1 !important;

        scroll-behavior:
            auto !important;

        transition-duration:
            0.01ms !important;
    }
}