/* =========================================================
   ROOT VARIABLES
   ========================================================= */

:root {

    --primary: #9932CC;
    --primary-dark: #7e04bb;
    --primary-deep: #3b176d;

    --primary-light: #f3e8ff;
    --primary-soft: #faf5ff;

    --text: #18131f;
    --text-secondary: #625b69;
    --text-muted: #89818f;

    --white: #ffffff;
    --background: #f7f6f9;

    --border: #e8e4eb;

    --success: #16a34a;
    --success-light: #dcfce7;

    --whatsapp: #16a34a;

    --radius: 16px;

    --shadow:
        0 10px 35px rgba(31, 18, 45, 0.07);
}


/* =========================================================
   RESET
   ========================================================= */

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}


html {
    scroll-behavior: smooth;
}


body {

    font-family:
        Inter,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        Roboto,
        Arial,
        sans-serif;

    color: var(--text);

    background: var(--background);

    line-height: 1.6;
}


button,
input,
textarea,
select {
    font: inherit;
}


button {
    cursor: pointer;
}


a {
    text-decoration: none;
}


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

.course-page {
    min-height: 100vh;
}


/* =========================================================
   ACCESS NOTICE
   ========================================================= */

.access-notice {

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

    margin:
        28px auto 0;

    padding:
        17px 19px;

    display: flex;

    align-items: center;

    gap: 16px;

    background:
        var(--white);

    border:
        1px solid #ddd6fe;

    border-left:
        5px solid var(--primary);

    border-radius:
        var(--radius);

    box-shadow:
        0 5px 20px rgba(109, 40, 217, 0.06);
}


.notice-icon {

    width: 42px;
    height: 42px;

    flex-shrink: 0;

    display: flex;

    align-items: center;
    justify-content: center;

    background:
        var(--primary-light);

    color:
        var(--primary);

    border-radius: 50%;

    font-size: 17px;

    font-weight: 800;
}


.notice-content {
    flex: 1;
}


.notice-content strong {
    display: block;

    font-size: 13px;
}


.notice-content p {

    margin-top: 1px;

    color:
        var(--text-secondary);

    font-size: 12px;

    line-height: 1.55;
}


.notice-content small {

    display: block;

    margin-top: 3px;

    color:
        var(--text-muted);

    font-size: 10px;
}


.whatsapp-button {

    display: inline-flex;

    align-items: center;
    justify-content: center;

    gap: 8px;

    flex-shrink: 0;

    padding:
        11px 16px;

    background:
        var(--whatsapp);

    color:
        white !important;

    border-radius:
        9px;

    font-size: 11px;

    font-weight: 700;

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


.whatsapp-button:hover {

    transform:
        translateY(-1px);

    opacity:
        0.92;
}


.whatsapp-icon {
    font-size: 14px;
}

.hero-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 20px;
}

.primary-course-button {

    padding:
        11px 13px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    border:
        0;

    background:
        var(--primary);

    color:
        white;

    border-radius:
        8px;

    font-size:
        11px;

    font-weight:
        700;

    transition:
        background 0.2s ease;
}


.primary-course-button:hover {

    background:
        var(--primary-dark);
}




/* =========================================================
   COURSE HERO
   ========================================================= */

.course-hero {

    margin-top:
        28px;

    color:
        white;

    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%
        )
}


.hero-inner {

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

    margin:
        auto;
}


.hero-content {

    padding:
        62px 0 65px;
}


.course-badge {

    display: inline-flex;

    margin-bottom:
        14px;

    padding:
        6px 11px;

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

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

    border-radius:
        50px;

    color:
        #e9d5ff;

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        1.4px;
}


.hero-content h1 {

    max-width:
        820px;

    font-size:
        clamp(34px, 5vw, 56px);

    line-height:
        1.07;

    letter-spacing:
        -1.8px;
}


.hero-description {

    max-width:
        710px;

    margin-top:
        20px;

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

    font-size:
        15px;
}


.course-meta {

    display:
        flex;

    flex-wrap:
        wrap;

    gap:
        10px;

    margin-top:
        28px;
}


.meta-item {

    display:
        flex;

    align-items:
        center;

    gap:
        9px;

    padding:
        9px 13px;

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

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

    border-radius:
        9px;
}


.meta-icon {

    color:
        #d8b4fe;

    font-size:
        14px;
}


.meta-item strong,
.meta-item small {
    display: block;
}


.meta-item strong {

    font-size:
        12px;
}


.meta-item small {

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

    font-size:
        9px;
}


/* =========================================================
   MAIN LAYOUT
   ========================================================= */

.course-layout {

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

    margin:
        38px auto 60px;

    display:
        grid;

    grid-template-columns:
        minmax(0, 1fr) 315px;

    gap:
        28px;

    align-items:
        start;
}


.course-main {
    min-width:
        0;
}


/* =========================================================
   COMMON SECTION
   ========================================================= */

.course-section {

    padding:
        29px;

    margin-bottom:
        24px;

    background:
        var(--white);

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

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


.section-heading {

    margin-bottom:
        21px;
}


.eyebrow {

    display:
        block;

    margin-bottom:
        4px;

    color:
        var(--primary);

    font-size:
        9px;

    font-weight:
        800;

    letter-spacing:
        1.5px;
}


.section-heading h2,
.lessons-heading h2 {

    font-size:
        23px;

    line-height:
        1.25;

    letter-spacing:
        -0.5px;
}


/* =========================================================
   INTRODUCTION VIDEO
   ========================================================= */

.intro-video {

    overflow:
        hidden;

    aspect-ratio:
        16 / 9;

    background:
        #0b0810;

    border-radius:
        12px;
}


.intro-video iframe {

    width:
        100%;

    height:
        100%;

    display:
        block;

    border:
        0;
}


.intro-copy {

    margin-top:
        23px;
}


.intro-copy h3 {

    margin-bottom:
        8px;

    font-size:
        18px;
}


.intro-copy p {

    margin-top:
        8px;

    color:
        var(--text-secondary);

    font-size:
        13px;
}


/* =========================================================
   OVERVIEW
   ========================================================= */

.overview-content p {

    margin-bottom:
        11px;

    color:
        var(--text-secondary);

    font-size:
        13px;
}


.learning-section {

    margin-top:
        25px;
}


.learning-section h3 {

    margin-bottom:
        12px;

    font-size:
        16px;
}


.learning-grid {

    display:
        grid;

    grid-template-columns:
        repeat(2, 1fr);

    gap:
        9px;
}


.learning-card {

    display:
        flex;

    align-items:
        flex-start;

    gap:
        9px;

    padding:
        12px;

    background:
        var(--primary-soft);

    border:
        1px solid #ede9fe;

    border-radius:
        9px;
}


.learning-card span {

    color:
        var(--primary);

    font-weight:
        800;

    font-size:
        13px;
}


.learning-card p {

    color:
        #514958;

    font-size:
        12px;

    line-height:
        1.45;
}


/* =========================================================
   MOBILE COURSE TOOLS
   ========================================================= */

.mobile-course-tools {
    display:
        none;
}


/* =========================================================
   SIDEBAR
   ========================================================= */

.course-sidebar {

    position:
        sticky;

    top:
        22px;
}


.progress-card,
.sidebar-card {

    padding:
        21px;

    margin-bottom:
        17px;

    background:
        var(--white);

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

    border-radius:
        var(--radius);

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


.progress-header {

    display:
        flex;

    align-items:
        flex-start;

    justify-content:
        space-between;

    gap:
        10px;
}


.progress-header h3 {

    font-size:
        16px;
}


.progress-percentage {

    color:
        var(--primary);

    font-size:
        23px;

    line-height:
        1;

    font-weight:
        800;
}


.progress-bar {

    height:
        8px;

    margin-top:
        17px;

    overflow:
        hidden;

    background:
        #ede9fe;

    border-radius:
        50px;
}


.progress-fill {

    width:
        0%;

    height:
        100%;

    background:
        var(--primary);

    border-radius:
        inherit;

    transition:
        width 0.4s ease;
}


.progress-card > p {

    margin-top:
        11px;

    color:
        var(--text-secondary);

    font-size:
        11px;
}


.continue-button {

    width:
        100%;

    margin-top:
        15px;

    padding:
        11px 13px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    border:
        0;

    background:
        var(--primary);

    color:
        white;

    border-radius:
        8px;

    font-size:
        11px;

    font-weight:
        700;

    transition:
        background 0.2s ease;
}


.continue-button:hover {

    background:
        var(--primary-dark);
}


.sidebar-card h3 {

    margin-bottom:
        14px;

    font-size:
        15px;
}


.info-row {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    padding:
        10px 0;

    border-bottom:
        1px solid #f0edf2;

    font-size:
        11px;
}


.info-row:last-child {
    border-bottom:
        0;
}


.info-row span {
    color:
        var(--text-secondary);
}


.info-row strong {
    color:
        var(--text);
}


.support-card {

    padding:
        21px;

    background:
        var(--primary-soft);

    border:
        1px solid #ddd6fe;

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


.support-icon {

    width:
        34px;

    height:
        34px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin-bottom:
        12px;

    background:
        var(--primary);

    color:
        white;

    border-radius:
        50%;

    font-weight:
        800;
}


.support-card h3 {

    margin-top:
        1px;

    font-size:
        15px;
}


.support-card p {

    margin:
        6px 0 12px;

    color:
        var(--text-secondary);

    font-size:
        11px;

    line-height:
        1.55;
}


.support-card a {

    color:
        var(--primary);

    font-size:
        11px;

    font-weight:
        800;
}


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

.lessons-heading {

    display:
        flex;

    align-items:
        flex-end;

    justify-content:
        space-between;

    gap:
        15px;

    margin-bottom:
        21px;
}


.lessons-heading p {

    margin-top:
        5px;

    color:
        var(--text-secondary);

    font-size:
        12px;
}


.lesson-count {

    flex-shrink:
        0;

    padding:
        7px 10px;

    background:
        var(--primary-light);

    color:
        var(--primary);

    border-radius:
        7px;

    font-size:
        10px;

    font-weight:
        700;
}


.lesson-list {

    display:
        flex;

    flex-direction:
        column;

    gap:
        11px;
}


.lesson-card {

    display:
        grid;

    grid-template-columns:
        145px minmax(0, 1fr) auto;

    align-items:
        center;

    gap:
        15px;

    padding:
        12px;

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

    border-radius:
        11px;

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


.lesson-card:hover {

    border-color:
        #c4b5fd;

    box-shadow:
        0 5px 18px rgba(109, 40, 217, 0.06);

    transform:
        translateY(-1px);
}


.lesson-card.completed {

    background:
        #fcfffd;

    border-color:
        #dcfce7;
}


.lesson-thumbnail {

    width:
        145px;

    height:
        88px;

    overflow:
        hidden;

    background:
        #ede9fe;

    border-radius:
        8px;
}


.lesson-thumbnail img {

    width:
        100%;

    height:
        100%;

    display:
        block;

    object-fit:
        cover;
}


.lesson-details {
    min-width:
        0;
}


.lesson-number {

    display:
        block;

    color:
        var(--primary);

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        1px;
}


.lesson-details h3 {

    margin:
        2px 0 3px;

    font-size:
        14px;

    line-height:
        1.35;
}


.lesson-details p {

    display:
        -webkit-box;

    -webkit-box-orient:
        vertical;

    -webkit-line-clamp:
        2;

    overflow:
        hidden;

    color:
        var(--text-secondary);

    font-size:
        11px;

    line-height:
        1.45;
}


.lesson-actions {

    display:
        flex;

    align-items:
        center;

    gap:
        7px;
}


.watch-button {

    padding:
        9px 12px;

    border:
        0;

    background:
        var(--primary);

    color:
        white;

    border-radius:
        7px;

    font-size:
        10px;

    font-weight:
        700;

    white-space:
        nowrap;

    transition:
        background 0.2s ease;
}


.watch-button:hover {

    background:
        var(--primary-dark);
}


.completed-badge {

    color:
        var(--success);

    font-size:
        9px;

    font-weight:
        700;

    white-space:
        nowrap;
}


/* =========================================================
   COMPLETION
   ========================================================= */

.completion-section {

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

    margin:
        0 auto 60px;

    padding:
        55px 25px;

    display:
        none;

    text-align:
        center;

    background:
        radial-gradient(
            circle at center,
            #faf5ff,
            white 65%
        );

    border:
        1px solid #ddd6fe;

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


.completion-section.show {
    display:
        block;
}


.completion-icon {

    width:
        65px;

    height:
        65px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    margin:
        0 auto 17px;

    background:
        var(--success-light);

    color:
        var(--success);

    border-radius:
        50%;

    font-size:
        27px;

    font-weight:
        800;
}


.completion-section h2 {

    margin-bottom:
        9px;

    font-size:
        28px;

    letter-spacing:
        -0.6px;
}


.completion-section > p {

    max-width:
        600px;

    margin:
        auto;

    color:
        var(--text-secondary);

    font-size:
        13px;
}


.completion-stats {

    display:
        inline-flex;

    flex-direction:
        column;

    margin-top:
        22px;
}


.completion-stats strong {

    color:
        var(--primary);

    font-size:
        35px;
}


.completion-stats span {

    color:
        var(--text-secondary);

    font-size:
        10px;
}


/* =========================================================
   VIDEO MODAL
   ========================================================= */

.video-modal {

    position:
        fixed;

    inset:
        0;

    z-index:
        9999;

    display:
        none;

    align-items:
        center;

    justify-content:
        center;

    padding:
        20px;
}


.video-modal.active {
    display:
        flex;
}


.modal-overlay {

    position:
        absolute;

    inset:
        0;

    background:
        rgba(13, 8, 20, 0.88);

    backdrop-filter:
        blur(5px);
}


.video-modal-content {

    position:
        relative;

    z-index:
        2;

    width:
        min(900px, 100%);

    max-height:
        94vh;

    overflow:
        auto;

    background:
        white;

    border-radius:
        15px;

    box-shadow:
        0 30px 80px rgba(0,0,0,0.35);
}


.close-modal {

    position:
        absolute;

    top:
        12px;

    right:
        60px;

    z-index:
        5;

    width:
        38px;

    height:
        38px;

    display:
        flex;

    align-items:
        center;

    justify-content:
        center;

    border:
        0;

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

    color:
        white;

    border-radius:
        50%;

    font-size:
        25px;

    line-height:
        1;
}


.modal-video-wrapper {

    aspect-ratio:
        16 / 9;

    background:
        black;
}


.modal-video-wrapper iframe {

    width:
        100%;

    height:
        100%;

    display:
        block;

    border:
        0;
}


.modal-information {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    gap:
        20px;

    padding:
        21px 23px;
}


.modal-text {
    min-width:
        0;
}


.modal-lesson-number {

    color:
        var(--primary);

    font-size:
        8px;

    font-weight:
        800;

    letter-spacing:
        1px;
}


.modal-information h2 {

    margin-top:
        3px;

    font-size:
        20px;

    line-height:
        1.3;
}


.modal-information p {

    margin-top:
        5px;

    color:
        var(--text-secondary);

    font-size:
        12px;
}


.mark-complete-button {

    flex-shrink:
        0;

    padding:
        10px 14px;

    border:
        1px solid #ddd6fe;

    background:
        var(--primary-light);

    color:
        var(--primary);

    border-radius:
        8px;

    font-size:
        10px;

    font-weight:
        700;
}


.mark-complete-button.completed {

    border-color:
        #bbf7d0;

    background:
        var(--success-light);

    color:
        var(--success);
}


.lesson-navigation {

    display:
        flex;

    align-items:
        center;

    justify-content:
        space-between;

    padding:
        12px 23px;

    background:
        #fafafa;

    border-top:
        1px solid var(--border);
}


.navigation-button {

    padding:
        8px 11px;

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

    background:
        white;

    color:
        var(--text);

    border-radius:
        7px;

    font-size:
        10px;

    font-weight:
        700;
}


.navigation-button:disabled {

    opacity:
        0.4;

    cursor:
        not-allowed;
}


#lessonPosition {

    color:
        var(--text-secondary);

    font-size:
        10px;
}


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

@media (max-width: 1000px) {

    .course-layout {

        grid-template-columns:
            1fr;
    }


    .course-sidebar {

        display:
            none;
    }


    .mobile-course-tools {

        display:
            grid;

        grid-template-columns:
            1fr 1fr;

        gap:
            15px;

        margin-bottom:
            24px;
    }


    .mobile-course-tools .progress-card,
    .mobile-course-tools .sidebar-card {

        margin:
            0;
    }

}


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

@media (max-width: 700px) {


    /* ACCESS NOTICE */

    .access-notice {

        width:
            calc(100% - 20px);

        margin-top:
            14px;

        align-items:
            flex-start;

        flex-wrap:
            wrap;

        gap:
            12px;
    }


    .notice-icon {

        width:
            36px;

        height:
            36px;

        font-size:
            14px;
    }


    .notice-content {

        width:
            calc(100% - 50px);

        flex:
            none;
    }


    .notice-content strong {
        font-size:
            12px;
    }


    .notice-content p {
        font-size:
            11px;
    }


    .notice-content small {
        font-size:
            9px;
    }


    .whatsapp-button {

        width:
            100%;

        padding:
            10px;
    }



    /* HERO */

    .course-hero {

        margin-top:
            14px;
    }


    .hero-inner {

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


    .hero-content {

        padding:
            42px 0 45px;
    }


    .hero-content h1 {

        font-size:
            32px;

        letter-spacing:
            -1px;
    }


    .hero-description {

        margin-top:
            15px;

        font-size:
            13px;
    }


    .course-meta {

        display:
            grid;

        grid-template-columns:
            repeat(2, 1fr);

        gap:
            8px;

        margin-top:
            22px;
    }


    .meta-item {

        width:
            100%;

        padding:
            8px 10px;
    }


    .meta-item strong {
        font-size:
            11px;
    }


    .meta-item small {
        font-size:
            8px;
    }



    /* MAIN */

    .course-layout {

        width:
            calc(100% - 20px);

        margin:
            20px auto 45px;
    }


    .course-section {

        padding:
            20px;

        margin-bottom:
            17px;
    }


    .section-heading h2,
    .lessons-heading h2 {

        font-size:
            20px;
    }



    /* OVERVIEW */

    .learning-grid {

        grid-template-columns:
            1fr;
    }



    /* MOBILE COURSE TOOLS */

    .mobile-course-tools {

        display:
            block;

        margin-bottom:
            17px;
    }


    .mobile-course-tools .progress-card,
    .mobile-course-tools .sidebar-card {

        margin-bottom:
            12px;
    }



    /* LESSON HEADING */

    .lessons-heading {

        align-items:
            flex-start;
    }


    .lesson-count {

        font-size:
            9px;

        white-space:
            nowrap;
    }



    /* LESSON CARD */

    .lesson-card {

        grid-template-columns:
            88px minmax(0, 1fr);

        align-items:
            start;

        gap:
            11px;

        padding:
            10px;
    }


    .lesson-thumbnail {

        width:
            88px;

        height:
            66px;
    }


    .lesson-details h3 {

        font-size:
            12px;
    }


    .lesson-details p {

        font-size:
            10px;

        -webkit-line-clamp:
            2;
    }


    .lesson-actions {

        grid-column:
            1 / -1;

        width:
            100%;

        display:
            flex;

        align-items:
            center;

        justify-content:
            space-between;

        padding-top:
            2px;
    }


    .watch-button {

        width:
            100%;

        padding:
            10px;
    }


    .completed-badge {

        margin-right:
            8px;
    }



    /* COMPLETION */

    .completion-section {

        width:
            calc(100% - 20px);

        margin-bottom:
            30px;

        padding:
            45px 20px;
    }


    .completion-section h2 {

        font-size:
            24px;
    }



    /* MODAL */

    .video-modal {

        padding:
            10px;
    }


    .video-modal-content {

        width:
            100%;

        max-height:
            96vh;

        border-radius:
            12px;
    }


    .modal-information {

        flex-direction:
            column;

        align-items:
            stretch;

        padding:
            18px;
    }


    .modal-information h2 {

        font-size:
            18px;
    }


    .mark-complete-button {

        width:
            100%;

        padding:
            11px;
    }


    .lesson-navigation {

        padding:
            11px 15px;
    }

}


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

@media (max-width: 400px) {

    .hero-content h1 {
        font-size:
            29px;
    }


    .course-meta {
        grid-template-columns:
            1fr;
    }


    .lesson-card {

        grid-template-columns:
            78px minmax(0, 1fr);
    }


    .lesson-thumbnail {

        width:
            78px;

        height:
            60px;
    }


    .course-section {
        padding:
            17px;
    }

}