/* =====================================================
   DIGITAL LITERACY TRAINING
   Shared Site Styles
===================================================== */

:root {

    --navy: #10213f;
    --navy-dark: #09172e;

    --blue: #2368a2;
    --blue-light: #eaf4fb;

    --green: #287a58;
    --green-light: #eaf7f0;

    --orange: #c96d32;
    --orange-light: #fff2e8;

    --purple: #6655a6;
    --purple-light: #f1effb;

    --gold: #d9a72e;

    --text: #25364a;
    --muted: #64748b;

    --background: #f7f9fc;
    --white: #ffffff;

    --border: #dce4ed;

    --shadow:
        0 12px 35px rgba(16, 33, 63, 0.10);

    --radius: 18px;
}


/* =====================================================
   RESET
===================================================== */

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Arial,
        Helvetica,
        sans-serif;

    color: var(--text);
    background: var(--background);

    line-height: 1.65;
}

a {
    color: inherit;
    text-decoration: none;
}

img {
    max-width: 100%;
}

button,
input {
    font: inherit;
}


/* =====================================================
   GENERAL
===================================================== */

.container {
    width: min(1160px, 92%);
    margin: 0 auto;
}

.section {
    padding: 80px 0;
}

.section-heading {
    max-width: 650px;
}

.section-heading.centered {
    text-align: center;
    margin: 0 auto 45px;
}

.section-label {
    display: inline-block;

    color: var(--blue);

    font-size: 0.78rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1.4px;

    margin-bottom: 8px;
}

.section-label.light {
    color: #dcecff;
}

.section-heading h2,
.platform-box h2,
.final-cta h2 {

    margin: 4px 0 12px;

    color: var(--navy);

    font-size: clamp(
        1.75rem,
        3vw,
        2.55rem
    );

    line-height: 1.18;
}

.section-heading p {
    margin: 0;
    color: var(--muted);
}


/* =====================================================
   HEADER
===================================================== */

.site-header {

    background: var(--white);

    border-bottom:
        1px solid var(--border);

    position: sticky;
    top: 0;

    z-index: 1000;
}

.header-inner {

    width: min(1160px, 92%);
    min-height: 76px;

    margin: 0 auto;

    display: flex;
    align-items: center;
    justify-content: space-between;

    gap: 30px;
}

.brand {

    display: flex;
    align-items: center;

    gap: 12px;
}

.brand-icon {

    width: 45px;
    height: 45px;

    border-radius: 12px;

    background: var(--navy);
    color: var(--white);

    display: grid;
    place-items: center;

    font-size: 0.9rem;
    font-weight: 800;
}

.brand-text {

    display: flex;
    flex-direction: column;

    line-height: 1.2;
}

.brand-text strong {

    color: var(--navy);

    font-size: 1rem;
}

.brand-text span {

    color: var(--muted);

    font-size: 0.75rem;

    margin-top: 3px;
}

.main-nav {

    display: flex;
    align-items: center;

    gap: 28px;

    font-size: 0.92rem;
    font-weight: 700;
}

.main-nav a {

    color: #46566a;

    padding: 8px 2px;

    border-bottom:
        2px solid transparent;
}

.main-nav a:hover,
.main-nav a.active {

    color: var(--blue);

    border-bottom-color:
        var(--blue);
}


/* =====================================================
   HERO
===================================================== */

.hero {

    position: relative;

    overflow: hidden;

    background:
        linear-gradient(
            135deg,
            #edf6fb 0%,
            #ffffff 48%,
            #f2f6fc 100%
        );

    border-bottom:
        1px solid var(--border);
}

.hero::before {

    content: "";

    position: absolute;

    width: 420px;
    height: 420px;

    border-radius: 50%;

    background:
        rgba(35, 104, 162, 0.07);

    right: -180px;
    top: -180px;
}

.hero-inner {

    width: min(1160px, 92%);

    margin: 0 auto;

    min-height: 610px;

    display: grid;

    grid-template-columns:
        1.05fr 0.95fr;

    align-items: center;

    gap: 70px;

    padding: 75px 0;
}

.eyebrow {

    display: inline-flex;

    padding: 7px 13px;

    border-radius: 999px;

    background: var(--green-light);
    color: var(--green);

    font-size: 0.78rem;
    font-weight: 800;

    text-transform: uppercase;
    letter-spacing: 1px;
}

.hero h1 {

    margin:
        18px 0 16px;

    color: var(--navy);

    font-size: clamp(
        2.5rem,
        5vw,
        4.4rem
    );

    line-height: 1.03;

    letter-spacing: -2px;
}

.hero h1 span {

    display: block;

    color: var(--blue);
}

.hero-subtitle {

    margin: 0 0 12px;

    color: var(--green);

    font-size: 1.3rem;
    font-weight: 700;
}

.hero-description {

    max-width: 620px;

    margin:
        0 0 27px;

    color: #526174;

    font-size: 1.05rem;
}

.btn {

    display: inline-flex;
    align-items: center;
    justify-content: center;

    gap: 10px;

    min-height: 50px;

    padding:
        12px 24px;

    border-radius: 10px;

    font-weight: 800;

    transition:
        transform .2s ease,
        box-shadow .2s ease,
        background .2s ease;
}

.btn:hover {

    transform:
        translateY(-2px);
}

.btn-primary {

    color: var(--white);

    background:
        var(--blue);

    box-shadow:
        0 8px 20px
        rgba(35, 104, 162, 0.22);
}

.btn-primary:hover {

    background:
        #18578d;
}

.access-note {

    margin:
        10px 0 0;

    color: var(--muted);

    font-size: 0.82rem;
}


/* =====================================================
   HERO DEVICE
===================================================== */

.hero-visual {

    display: flex;
    justify-content: center;

    position: relative;
}

.device-card {

    width: min(440px, 100%);

    padding: 10px;

    border-radius: 22px;

    background: #dbe4ed;

    box-shadow:
        0 25px 55px
        rgba(16, 33, 63, .18);

    transform:
        rotate(1.2deg);
}

.device-top {

    height: 28px;

    display: flex;
    align-items: center;

    gap: 6px;

    padding: 0 8px;
}

.device-top span {

    width: 9px;
    height: 9px;

    border-radius: 50%;

    background: #95a4b5;
}

.device-screen {

    background: var(--white);

    border-radius: 14px;

    padding: 28px;
}

.screen-title {

    color: var(--navy);

    font-weight: 800;

    margin-bottom: 20px;
}

.mini-module {

    display: flex;
    align-items: center;

    gap: 15px;

    padding: 16px;

    border-radius: 12px;

    margin-bottom: 13px;
}

.mini-module:last-child {
    margin-bottom: 0;
}

.email-mini {
    background: var(--blue-light);
}

.file-mini {
    background: var(--orange-light);
}

.meeting-mini {
    background: var(--purple-light);
}

.mini-icon {

    width: 45px;
    height: 45px;

    border-radius: 10px;

    display: grid;
    place-items: center;

    background: var(--white);

    color: var(--navy);

    font-size: 1.25rem;
    font-weight: 900;
}

.mini-module div:last-child {

    display: flex;
    flex-direction: column;
}

.mini-module strong {

    color: var(--navy);
}

.mini-module span {

    color: var(--muted);

    font-size: 0.78rem;
}


/* =====================================================
   GOAL
===================================================== */

.goal-section {

    background:
        var(--white);
}

.goal-section .section-heading {

    max-width: 800px;
}


/* =====================================================
   SKILLS
===================================================== */

.skills-section {

    background:
        #f4f7fb;
}

.skills-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 24px;
}

.skill-card {

    position: relative;

    background:
        var(--white);

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    padding:
        30px;

    box-shadow:
        0 7px 25px
        rgba(16, 33, 63, .05);

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}

.skill-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        var(--shadow);
}

.skill-icon {

    width: 58px;
    height: 58px;

    display: grid;
    place-items: center;

    border-radius:
        15px;

    margin-bottom:
        18px;

    font-size:
        1.5rem;

    font-weight:
        900;
}

.email-icon {

    color: var(--blue);
    background: var(--blue-light);
}

.file-icon {

    color: var(--orange);
    background: var(--orange-light);
}

.meeting-icon {

    color: var(--purple);
    background: var(--purple-light);
}

.module-number {

    color: var(--muted);

    font-size: .72rem;
    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;
}

.skill-card h3 {

    color: var(--navy);

    font-size: 1.25rem;

    margin:
        4px 0 8px;
}

.skill-card > p {

    color: var(--muted);

    font-size: .92rem;
}

.skill-card ul {

    padding: 0;
    margin:
        20px 0 0;

    list-style: none;
}

.skill-card li {

    position: relative;

    padding:
        7px 0 7px 25px;

    color: #46566a;

    font-size: .9rem;
}

.skill-card li::before {

    content: "✓";

    position: absolute;

    left: 0;

    color: var(--green);

    font-weight: 900;
}


/* =====================================================
   OBJECTIVES
===================================================== */

.objectives-section {

    background:
        var(--white);
}

.two-column {

    display: grid;

    grid-template-columns:
        .85fr 1.15fr;

    gap: 75px;

    align-items: start;
}

.objective-list {

    display: grid;

    gap: 14px;
}

.objective-item {

    display: flex;
    align-items: flex-start;

    gap: 15px;

    padding: 18px;

    border:
        1px solid var(--border);

    border-radius:
        13px;

    background:
        #fbfcfe;
}

.objective-number {

    flex: 0 0 auto;

    width: 34px;
    height: 34px;

    display: grid;
    place-items: center;

    border-radius: 50%;

    background: var(--navy);
    color: var(--white);

    font-weight: 800;
}

.objective-item p {

    margin: 2px 0 0;
}


/* =====================================================
   PROCESS
===================================================== */

.process-section {

    background:
        linear-gradient(
            180deg,
            #eef5fa,
            #f8fafc
        );
}

.process-grid {

    display: grid;

    grid-template-columns:
        1fr auto 1fr auto 1fr auto 1fr auto 1fr;

    gap: 12px;

    align-items: center;
}

.process-card {

    text-align: center;

    background: var(--white);

    border:
        1px solid var(--border);

    border-radius:
        15px;

    padding:
        22px 14px;

    min-height:
        190px;
}

.process-number {

    width: 38px;
    height: 38px;

    display: grid;
    place-items: center;

    margin:
        0 auto 10px;

    border-radius: 50%;

    background:
        var(--blue-light);

    color:
        var(--blue);

    font-weight: 900;
}

.process-card h3 {

    color:
        var(--navy);

    margin:
        4px 0 8px;
}

.process-card p {

    margin: 0;

    color:
        var(--muted);

    font-size:
        .86rem;
}

.process-arrow {

    color:
        var(--blue);

    font-size:
        1.4rem;

    font-weight:
        900;
}


/* =====================================================
   PLATFORM
===================================================== */

.platform-section {

    background:
        var(--white);
}

.platform-box {

    display: grid;

    grid-template-columns:
        .8fr 1.2fr;

    gap: 65px;

    padding:
        45px;

    border-radius:
        22px;

    background:
        var(--navy);

    color:
        var(--white);

    box-shadow:
        var(--shadow);
}

.platform-box h2 {

    color:
        var(--white);
}

.platform-box > div:first-child p {

    color:
        #c6d3e2;
}

.platform-box .section-label {

    color:
        #8fc8f0;
}

.platform-steps {

    display:
        grid;

    gap:
        11px;
}

.platform-step {

    display:
        flex;

    gap:
        13px;

    align-items:
        center;

    padding:
        12px 15px;

    border-radius:
        10px;

    background:
        rgba(255,255,255,.07);
}

.platform-step span {

    flex:
        0 0 auto;

    width:
        30px;

    height:
        30px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        50%;

    background:
        var(--blue);

    font-size:
        .8rem;

    font-weight:
        900;
}

.platform-step p {

    margin:
        0;

    color:
        #edf3fa;

    font-size:
        .9rem;
}


/* =====================================================
   HELP
===================================================== */

.help-section {

    background:
        #f5f8fc;
}

.help-layout {

    align-items:
        center;
}

.help-cards {

    display:
        grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap:
        12px;
}

.help-card {

    min-height:
        150px;

    display:
        flex;

    flex-direction:
        column;

    justify-content:
        center;

    padding:
        20px;

    border:
        1px solid var(--border);

    border-radius:
        14px;

    background:
        var(--white);
}

.help-card strong {

    color:
        var(--blue);

    font-size:
        1.05rem;

    margin-bottom:
        5px;
}

.help-card span {

    color:
        var(--muted);

    font-size:
        .85rem;
}


/* =====================================================
   FINAL CTA
===================================================== */

.final-cta {

    padding:
        80px 0;

    background:
        linear-gradient(
            135deg,
            #18578d,
            #10213f
        );

    text-align:
        center;

    color:
        var(--white);
}

.cta-content {

    max-width:
        760px;

    margin:
        0 auto;
}

.final-cta h2 {

    color:
        var(--white);
}

.final-cta p {

    color:
        #d5e1ee;

    margin:
        0 auto 25px;

    max-width:
        650px;
}

.btn-light {

    background:
        var(--white);

    color:
        var(--navy);
}


/* =====================================================
   FOOTER
===================================================== */

.site-footer {

    background:
        var(--navy-dark);

    color:
        #c8d5e3;

    padding:
        32px 0;
}

.footer-inner {

    display:
        flex;

    justify-content:
        space-between;

    align-items:
        center;

    gap:
        30px;
}

.site-footer strong {

    color:
        var(--white);
}

.site-footer p {

    margin:
        4px 0 0;

    font-size:
        .82rem;
}

.footer-brand {

    color:
        var(--gold);

    font-weight:
        900;

    font-size:
        1.15rem;
}


/* =====================================================
   ACCESSIBILITY
===================================================== */

a:focus-visible,
button:focus-visible,
input:focus-visible {

    outline:
        3px solid #f4b942;

    outline-offset:
        4px;
}


/* =====================================================
   TABLET
===================================================== */

@media (max-width: 960px) {

    .hero-inner {

        grid-template-columns:
            1fr;

        gap:
            45px;

        min-height:
            auto;
    }

    .hero-content {

        text-align:
            center;
    }

    .hero-description {

        margin-left:
            auto;

        margin-right:
            auto;
    }

    .skills-grid {

        grid-template-columns:
            1fr;
    }

    .skill-card {

        max-width:
            700px;

        width:
            100%;

        margin:
            0 auto;
    }

    .two-column {

        grid-template-columns:
            1fr;

        gap:
            35px;
    }

    .process-grid {

        grid-template-columns:
            1fr;

        max-width:
            600px;

        margin:
            0 auto;
    }

    .process-card {

        min-height:
            auto;
    }

    .process-arrow {

        transform:
            rotate(90deg);

        text-align:
            center;
    }

    .platform-box {

        grid-template-columns:
            1fr;

        gap:
            30px;
    }

    .help-cards {

        grid-template-columns:
            1fr;
    }

    .help-card {

        min-height:
            auto;
    }
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 680px) {

    .section {

        padding:
            58px 0;
    }

    .header-inner {

        min-height:
            68px;
    }

    .brand-text span {

        display:
            none;
    }

    .brand-text strong {

        font-size:
            .86rem;
    }

    .brand-icon {

        width:
            39px;

        height:
            39px;
    }

    .main-nav {

        gap:
            12px;

        font-size:
            .78rem;
    }

    .main-nav a {

        padding:
            7px 0;
    }

    .hero-inner {

        padding:
            55px 0;
    }

    .hero h1 {

        letter-spacing:
            -1px;
    }

    .hero-subtitle {

        font-size:
            1.08rem;
    }

    .device-screen {

        padding:
            18px;
    }

    .platform-box {

        padding:
            28px 20px;
    }

    .footer-inner {

        flex-direction:
            column;

        align-items:
            flex-start;
    }

}


/* =====================================================
   VERY SMALL MOBILE
===================================================== */

@media (max-width: 470px) {

    .brand-text strong {

        display:
            none;
    }

    .main-nav {

        gap:
            10px;
    }

    .hero h1 {

        font-size:
            2.35rem;
    }

    .btn {

        width:
            100%;
    }

}

/* =====================================================
   PAGE 2 - LEARNING CENTER / MODULE SELECTION
===================================================== */


/* -----------------------------------------------------
   LEARNING CENTER HERO
----------------------------------------------------- */

.learning-center-hero {

    padding: 70px 0 55px;

    text-align: center;

    background:
        linear-gradient(
            135deg,
            #edf6fb 0%,
            #ffffff 52%,
            #f3f6fb 100%
        );

    border-bottom:
        1px solid var(--border);
}


.learning-center-heading {

    max-width: 760px;

    margin: 0 auto;
}


.learning-center-heading h1 {

    margin: 17px 0 14px;

    color: var(--navy);

    font-size: clamp(
        2.2rem,
        4vw,
        3.7rem
    );

    line-height: 1.08;

    letter-spacing: -1.5px;
}


.learning-center-heading h1 span {

    display: block;

    color: var(--blue);
}


.learning-center-heading p {

    max-width: 650px;

    margin: 0 auto;

    color: var(--muted);

    font-size: 1.02rem;
}


/* -----------------------------------------------------
   LEARNER NAME
----------------------------------------------------- */

.learner-section {

    padding: 55px 0 30px;

    background: var(--white);
}


.learner-card {

    max-width: 1000px;

    margin: 0 auto;

    display: grid;

    grid-template-columns:
        .9fr 1.1fr;

    gap: 55px;

    align-items: center;

    padding: 35px;

    border:
        1px solid var(--border);

    border-radius:
        var(--radius);

    background:
        #fbfcfe;

    box-shadow:
        0 8px 25px
        rgba(16, 33, 63, .05);
}


.learner-card h2 {

    margin: 3px 0 8px;

    color: var(--navy);

    font-size: 1.55rem;
}


.learner-card-text > p {

    color: var(--muted);

    margin:
        0 0 8px;
}


.privacy-note {

    font-size: .82rem;
}


.name-form label {

    display: block;

    margin-bottom: 8px;

    color: var(--navy);

    font-size: .88rem;

    font-weight: 800;
}


.name-input-row {

    display: flex;

    gap: 10px;
}


.name-input-row input {

    width: 100%;

    min-height: 50px;

    padding:
        11px 14px;

    border:
        1px solid #bac8d7;

    border-radius:
        10px;

    background:
        var(--white);

    color:
        var(--text);

    outline: none;
}


.name-input-row input:focus {

    border-color:
        var(--blue);

    box-shadow:
        0 0 0 3px
        rgba(35, 104, 162, .10);
}


.name-message {

    min-height: 22px;

    margin-top: 8px;

    font-size: .82rem;
}


.name-message.success {

    color: var(--green);

    font-weight: 700;
}


.name-message.notice {

    color: #9a621e;
}


/* -----------------------------------------------------
   MODULE SELECTION
----------------------------------------------------- */

.module-selection {

    padding: 65px 0 75px;

    background:
        #f4f7fb;
}


.module-choice-grid {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 25px;

    align-items: stretch;
}


.module-choice-card {

    position: relative;

    display: flex;

    flex-direction: column;

    padding: 28px;

    border:
        1px solid var(--border);

    border-radius:
        18px;

    background:
        var(--white);

    box-shadow:
        0 8px 25px
        rgba(16, 33, 63, .06);

    overflow: hidden;

    transition:
        transform .2s ease,
        box-shadow .2s ease;
}


.module-choice-card::before {

    content: "";

    position: absolute;

    top: 0;
    left: 0;
    right: 0;

    height: 5px;
}


.email-module::before {

    background:
        var(--blue);
}


.file-module::before {

    background:
        var(--orange);
}


.meeting-module::before {

    background:
        var(--purple);
}


.module-choice-card:hover {

    transform:
        translateY(-5px);

    box-shadow:
        var(--shadow);
}


.module-card-top {

    display: flex;

    align-items: center;

    justify-content:
        space-between;

    gap: 15px;

    margin-bottom: 15px;
}


.module-large-icon {

    width: 60px;
    height: 60px;

    display: grid;

    place-items: center;

    border-radius:
        15px;

    font-size:
        1.55rem;

    font-weight:
        900;
}


.module-choice-card h3 {

    min-height: 60px;

    margin:
        0 0 8px;

    color:
        var(--navy);

    font-size:
        1.35rem;

    line-height:
        1.25;
}


.module-description {

    min-height: 72px;

    margin:
        0 0 15px;

    color:
        var(--muted);

    font-size:
        .9rem;
}


.module-skills {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;

    margin-bottom:
        17px;
}


.module-skills span {

    padding:
        5px 9px;

    border-radius:
        999px;

    background:
        #f0f4f8;

    color:
        #526174;

    font-size:
        .72rem;

    font-weight:
        700;
}


.email-module .module-skills span {

    background:
        var(--blue-light);

    color:
        var(--blue);
}


.file-module .module-skills span {

    background:
        var(--orange-light);

    color:
        var(--orange);
}


.meeting-module .module-skills span {

    background:
        var(--purple-light);

    color:
        var(--purple);
}


.module-topic-list {

    flex: 1;

    list-style:
        none;

    padding: 0;

    margin:
        0 0 24px;
}


.module-topic-list li {

    position:
        relative;

    padding:
        7px 0 7px 24px;

    color:
        #46566a;

    font-size:
        .88rem;
}


.module-topic-list li::before {

    content:
        "✓";

    position:
        absolute;

    left:
        0;

    color:
        var(--green);

    font-weight:
        900;
}


/* -----------------------------------------------------
   MODULE BUTTONS
----------------------------------------------------- */

.module-start-btn {

    width: 100%;

    min-height: 50px;

    display: flex;

    align-items: center;

    justify-content:
        center;

    gap: 9px;

    border: 0;

    border-radius:
        10px;

    color:
        var(--white);

    cursor:
        pointer;

    font-weight:
        800;

    transition:
        transform .2s ease,
        filter .2s ease;
}


.module-start-btn:hover {

    transform:
        translateY(-2px);

    filter:
        brightness(.94);
}


.email-btn {

    background:
        var(--blue);
}


.file-btn {

    background:
        var(--orange);
}


.meeting-btn {

    background:
        var(--purple);
}


/* -----------------------------------------------------
   LEARNING PATH NOTE
----------------------------------------------------- */

.learning-choice-note {

    padding:
        0 0 70px;

    background:
        #f4f7fb;
}


.choice-note-box {

    max-width:
        900px;

    margin:
        0 auto;

    display:
        flex;

    align-items:
        center;

    gap:
        18px;

    padding:
        24px 28px;

    border:
        1px solid #cce3d7;

    border-radius:
        15px;

    background:
        var(--green-light);
}


.choice-note-icon {

    flex:
        0 0 auto;

    width:
        46px;

    height:
        46px;

    display:
        grid;

    place-items:
        center;

    border-radius:
        50%;

    background:
        var(--green);

    color:
        var(--white);

    font-size:
        1.2rem;

    font-weight:
        900;
}


.choice-note-box h3 {

    margin:
        0 0 4px;

    color:
        #185b41;
}


.choice-note-box p {

    margin: 0;

    color:
        #47685a;

    font-size:
        .9rem;
}


/* =====================================================
   PAGE 2 TABLET
===================================================== */

@media (max-width: 960px) {

    .learner-card {

        grid-template-columns:
            1fr;

        gap:
            25px;
    }


    .module-choice-grid {

        grid-template-columns:
            1fr;

        max-width:
            680px;

        margin:
            0 auto;
    }


    .module-choice-card h3,
    .module-description {

        min-height:
            auto;
    }

}


/* =====================================================
   PAGE 2 MOBILE
===================================================== */

@media (max-width: 680px) {

    .learning-center-hero {

        padding:
            50px 0 40px;
    }


    .learner-card {

        padding:
            24px 20px;
    }


    .name-input-row {

        flex-direction:
            column;
    }


    .name-input-row .btn {

        width:
            100%;
    }


    .module-choice-card {

        padding:
            24px 20px;
    }


    .choice-note-box {

        align-items:
            flex-start;

        padding:
            21px 18px;
    }

}



/* =====================================================
   PAGE 3 - REUSABLE LEARNING WORKSPACE
===================================================== */


/* -----------------------------------------------------
   MODULE BAR
----------------------------------------------------- */

.module-workspace-bar {

    background: var(--navy);

    color: var(--white);

    border-bottom:
        4px solid var(--blue);
}


.workspace-bar-inner {

    width: min(1280px, 94%);

    margin: 0 auto;

    min-height: 100px;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.workspace-label {

    display: block;

    color: #a9bed5;

    font-size: .7rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1.2px;

    margin-bottom: 3px;
}


.module-workspace-bar h1 {

    margin: 0;

    font-size: clamp(
        1.45rem,
        2.5vw,
        2rem
    );

    line-height: 1.15;
}


.workspace-learner {

    text-align: right;

    display: flex;

    flex-direction: column;
}


.workspace-learner span {

    color: #a9bed5;

    font-size: .72rem;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.workspace-learner strong {

    color: var(--white);

    margin-top: 2px;
}


/* MODULE COLORS */

.module-email .module-workspace-bar {
    border-bottom-color: var(--blue);
}

.module-files .module-workspace-bar {
    border-bottom-color: var(--orange);
}

.module-meetings .module-workspace-bar {
    border-bottom-color: var(--purple);
}


/* -----------------------------------------------------
   WORKSPACE
----------------------------------------------------- */

.learning-workspace {

    width: min(1280px, 94%);

    margin: 35px auto 60px;

    display: grid;

    grid-template-columns:
        300px minmax(0, 1fr);

    gap: 28px;

    align-items: start;
}


/* -----------------------------------------------------
   SIDEBAR
----------------------------------------------------- */

.lesson-sidebar {

    position: sticky;

    top: 100px;

    border:
        1px solid var(--border);

    border-radius:
        16px;

    background:
        var(--white);

    box-shadow:
        0 7px 25px
        rgba(16, 33, 63, .06);

    overflow: hidden;
}


.sidebar-heading {

    padding:
        24px 22px 18px;

    border-bottom:
        1px solid var(--border);

    background:
        #f8fafc;
}


.sidebar-small-label {

    color: var(--blue);

    font-size: .68rem;

    font-weight: 800;

    text-transform: uppercase;

    letter-spacing: 1px;
}


.sidebar-heading h2 {

    margin:
        4px 0 5px;

    color:
        var(--navy);

    font-size:
        1.2rem;

    line-height:
        1.25;
}


.sidebar-heading p {

    margin: 0;

    color:
        var(--muted);

    font-size:
        .78rem;
}


/* -----------------------------------------------------
   LESSON NAVIGATION
----------------------------------------------------- */

.lesson-navigation {

    padding:
        10px;
}


.lesson-nav-button {

    width: 100%;

    display: flex;

    align-items: center;

    gap: 11px;

    padding:
        12px 10px;

    margin-bottom:
        4px;

    border: 0;

    border-radius:
        9px;

    background:
        transparent;

    color:
        var(--text);

    text-align:
        left;

    cursor:
        pointer;

    transition:
        background .2s ease,
        color .2s ease;
}


.lesson-nav-button:hover {

    background:
        #f1f5f9;
}


.lesson-nav-button.active {

    background:
        var(--blue-light);
}


.module-files
.lesson-nav-button.active {

    background:
        var(--orange-light);
}


.module-meetings
.lesson-nav-button.active {

    background:
        var(--purple-light);
}


.lesson-nav-number {

    flex:
        0 0 auto;

    width: 31px;

    height: 31px;

    display: grid;

    place-items: center;

    border-radius:
        50%;

    background:
        #e9eef4;

    color:
        var(--navy);

    font-size:
        .76rem;

    font-weight:
        900;
}


.lesson-nav-button.active
.lesson-nav-number {

    background:
        var(--blue);

    color:
        var(--white);
}


.module-files
.lesson-nav-button.active
.lesson-nav-number {

    background:
        var(--orange);
}


.module-meetings
.lesson-nav-button.active
.lesson-nav-number {

    background:
        var(--purple);
}


.lesson-nav-button.completed
.lesson-nav-number {

    background:
        var(--green);

    color:
        var(--white);
}


.lesson-nav-text {

    min-width: 0;

    display: flex;

    flex-direction: column;
}


.lesson-nav-text small {

    color:
        var(--muted);

    font-size:
        .65rem;

    margin-bottom:
        1px;
}


.lesson-nav-text strong {

    color:
        var(--navy);

    font-size:
        .79rem;

    line-height:
        1.25;
}


/* -----------------------------------------------------
   PROGRESS
----------------------------------------------------- */

.module-progress {

    margin:
        5px 18px 18px;

    padding-top:
        17px;

    border-top:
        1px solid var(--border);
}


.progress-heading {

    display: flex;

    justify-content:
        space-between;

    gap: 10px;

    margin-bottom:
        8px;

    color:
        var(--navy);

    font-size:
        .76rem;

    font-weight:
        800;
}


.progress-track {

    height:
        8px;

    border-radius:
        999px;

    background:
        #e7edf3;

    overflow:
        hidden;
}


.progress-fill {

    width:
        0;

    height:
        100%;

    border-radius:
        inherit;

    background:
        var(--blue);

    transition:
        width .35s ease;
}


.module-files .progress-fill {
    background: var(--orange);
}


.module-meetings .progress-fill {
    background: var(--purple);
}


.module-progress p {

    margin:
        7px 0 0;

    color:
        var(--muted);

    font-size:
        .7rem;
}


.change-module-link {

    display: block;

    margin:
        0 18px 20px;

    padding:
        10px;

    border-radius:
        8px;

    background:
        #f5f7fa;

    color:
        var(--blue);

    text-align:
        center;

    font-size:
        .76rem;

    font-weight:
        800;
}


/* -----------------------------------------------------
   CONTENT AREA
----------------------------------------------------- */

.lesson-content-area {

    min-width: 0;

    padding:
        30px;

    border:
        1px solid var(--border);

    border-radius:
        16px;

    background:
        var(--white);

    box-shadow:
        0 7px 25px
        rgba(16, 33, 63, .05);
}


.lesson-breadcrumb {

    display: flex;

    align-items: center;

    gap: 7px;

    margin-bottom:
        19px;

    color:
        var(--muted);

    font-size:
        .75rem;
}


.lesson-breadcrumb strong {

    color:
        var(--blue);
}


.module-files
.lesson-breadcrumb strong {

    color:
        var(--orange);
}


.module-meetings
.lesson-breadcrumb strong {

    color:
        var(--purple);
}


.lesson-header {

    padding-bottom:
        22px;

    border-bottom:
        1px solid var(--border);
}


.lesson-number-label {

    color:
        var(--blue);

    font-size:
        .72rem;

    font-weight:
        900;

    text-transform:
        uppercase;

    letter-spacing:
        1.2px;
}


.module-files
.lesson-number-label {

    color:
        var(--orange);
}


.module-meetings
.lesson-number-label {

    color:
        var(--purple);
}


.lesson-header h2 {

    margin:
        5px 0 7px;

    color:
        var(--navy);

    font-size:
        clamp(
            1.7rem,
            3vw,
            2.4rem
        );

    line-height:
        1.15;
}


.lesson-header p {

    max-width:
        780px;

    margin: 0;

    color:
        var(--muted);
}


/* -----------------------------------------------------
   LEARNING STAGES
----------------------------------------------------- */

.learning-stage-strip {

    display: flex;

    align-items: center;

    justify-content: center;

    gap: 10px;

    padding:
        24px 0;

    border-bottom:
        1px solid var(--border);
}


.stage-item {

    display: flex;

    align-items: center;

    gap: 6px;

    color:
        #8a97a6;

    font-size:
        .72rem;
}


.stage-item span {

    width:
        25px;

    height:
        25px;

    display: grid;

    place-items: center;

    border-radius:
        50%;

    background:
        #edf1f5;

    font-size:
        .65rem;

    font-weight:
        900;
}


.stage-item.active {

    color:
        var(--blue);
}


.stage-item.active span {

    background:
        var(--blue);

    color:
        var(--white);
}


.module-files
.stage-item.active {

    color:
        var(--orange);
}


.module-files
.stage-item.active span {

    background:
        var(--orange);
}


.module-meetings
.stage-item.active {

    color:
        var(--purple);
}


.module-meetings
.stage-item.active span {

    background:
        var(--purple);
}


.stage-line {

    width:
        40px;

    height:
        1px;

    background:
        var(--border);
}


/* -----------------------------------------------------
   LESSON CONTENT
----------------------------------------------------- */

.lesson-content {

    min-height:
        430px;

    padding:
        32px 0;
}


.lesson-placeholder {

    min-height:
        350px;

    display: flex;

    flex-direction: column;

    align-items: center;

    justify-content: center;

    text-align: center;
}


.placeholder-icon {

    width:
        65px;

    height:
        65px;

    display: grid;

    place-items: center;

    margin-bottom:
        15px;

    border-radius:
        16px;

    background:
        var(--blue-light);

    color:
        var(--blue);

    font-weight:
        900;
}


.lesson-placeholder h3 {

    margin:
        0 0 7px;

    color:
        var(--navy);
}


.lesson-placeholder p {

    margin: 0;

    color:
        var(--muted);
}


/* -----------------------------------------------------
   DEVELOPMENT PLACEHOLDER
----------------------------------------------------- */

.lesson-development-card {

    padding:
        28px;

    border:
        1px solid var(--border);

    border-radius:
        14px;

    background:
        #fbfcfe;
}


.development-badge {

    display:
        inline-block;

    padding:
        5px 9px;

    border-radius:
        999px;

    background:
        var(--blue-light);

    color:
        var(--blue);

    font-size:
        .65rem;

    font-weight:
        900;

    text-transform:
        uppercase;

    letter-spacing:
        .8px;
}


.module-files
.development-badge {

    background:
        var(--orange-light);

    color:
        var(--orange);
}


.module-meetings
.development-badge {

    background:
        var(--purple-light);

    color:
        var(--purple);
}


.lesson-development-card > h3 {

    margin:
        12px 0 7px;

    color:
        var(--navy);

    font-size:
        1.45rem;
}


.lesson-development-card > p {

    margin:
        0 0 24px;

    color:
        var(--muted);
}


.planned-learning-grid {

    display: grid;

    grid-template-columns:
        repeat(4, 1fr);

    gap:
        12px;
}


.planned-item {

    padding:
        17px;

    border:
        1px solid var(--border);

    border-radius:
        11px;

    background:
        var(--white);
}


.planned-item > span {

    display:
        block;

    margin-bottom:
        8px;

    color:
        var(--blue);

    font-size:
        .68rem;

    font-weight:
        900;
}


.module-files
.planned-item > span {

    color:
        var(--orange);
}


.module-meetings
.planned-item > span {

    color:
        var(--purple);
}


.planned-item strong {

    display:
        block;

    color:
        var(--navy);

    margin-bottom:
        5px;
}


.planned-item p {

    margin: 0;

    color:
        var(--muted);

    font-size:
        .76rem;

    line-height:
        1.5;
}


.development-note {

    margin-top:
        20px;

    padding:
        13px 15px;

    border-left:
        4px solid var(--gold);

    background:
        #fff9e8;

    color:
        #66592f;

    font-size:
        .8rem;
}


/* -----------------------------------------------------
   LESSON CONTROLS
----------------------------------------------------- */

.lesson-controls {

    display: grid;

    grid-template-columns:
        auto 1fr auto;

    align-items: center;

    gap: 12px;

    padding-top:
        22px;

    border-top:
        1px solid var(--border);
}


.lesson-control-btn {

    min-height:
        44px;

    padding:
        10px 16px;

    border:
        0;

    border-radius:
        9px;

    cursor:
        pointer;

    font-size:
        .78rem;

    font-weight:
        800;
}


.lesson-control-btn.secondary {

    background:
        #eef2f6;

    color:
        var(--navy);
}


.lesson-control-btn.primary {

    background:
        var(--blue);

    color:
        var(--white);
}


.module-files
.lesson-control-btn.primary {

    background:
        var(--orange);
}


.module-meetings
.lesson-control-btn.primary {

    background:
        var(--purple);
}


.lesson-control-btn.complete {

    justify-self:
        center;

    background:
        var(--green-light);

    color:
        var(--green);
}


.lesson-control-btn.complete.is-complete {

    background:
        var(--green);

    color:
        var(--white);
}


.lesson-control-btn:disabled {

    opacity:
        .4;

    cursor:
        not-allowed;
}


/* -----------------------------------------------------
   FOOTER
----------------------------------------------------- */

.learning-footer {

    margin-top:
        0;
}


/* =====================================================
   PAGE 3 TABLET
===================================================== */

@media (max-width: 960px) {

    .learning-workspace {

        grid-template-columns:
            250px minmax(0, 1fr);

        gap:
            18px;
    }


    .planned-learning-grid {

        grid-template-columns:
            repeat(2, 1fr);
    }


    .lesson-content-area {

        padding:
            24px;
    }

}


/* =====================================================
   PAGE 3 MOBILE
===================================================== */

@media (max-width: 720px) {

    .workspace-bar-inner {

        min-height:
            85px;
    }


    .workspace-learner {

        font-size:
            .8rem;
    }


    .learning-workspace {

        width:
            92%;

        grid-template-columns:
            1fr;

        margin-top:
            20px;
    }


    .lesson-sidebar {

        position:
            static;
    }


    .lesson-navigation {

        display:
            grid;

        grid-template-columns:
            1fr 1fr;

        gap:
            5px;
    }


    .lesson-nav-button {

        margin-bottom:
            0;
    }


    .lesson-content-area {

        padding:
            20px;
    }


    .learning-stage-strip {

        gap:
            5px;
    }


    .stage-item {

        flex-direction:
            column;

        text-align:
            center;
    }


    .stage-line {

        width:
            18px;
    }


    .planned-learning-grid {

        grid-template-columns:
            1fr;
    }


    .lesson-controls {

        grid-template-columns:
            1fr;
    }


    .lesson-control-btn {

        width:
            100%;
    }


    .lesson-control-btn.complete {

        justify-self:
            stretch;
    }

}


/* =====================================================
   SMALL MOBILE
===================================================== */

@media (max-width: 480px) {

    .workspace-bar-inner {

        align-items:
            flex-start;

        flex-direction:
            column;

        gap:
            10px;

        padding:
            17px 0;
    }


    .workspace-learner {

        text-align:
            left;
    }


    .lesson-navigation {

        grid-template-columns:
            1fr;
    }


    .learning-stage-strip {

        justify-content:
            space-between;
    }


    .stage-line {

        display:
            none;
    }


    .lesson-development-card {

        padding:
            20px 16px;
    }

}

/* =====================================================
   PAGE 3 - HEADER + FOOTER LAYOUT FIX
   Keep this at the VERY BOTTOM of styles.css
===================================================== */


/* -----------------------------------------------------
   MAKE PAGE FILL THE SCREEN
----------------------------------------------------- */

html,
body {
    min-height: 100%;
}

body.learning-page {
    min-height: 100vh;

    display: flex;
    flex-direction: column;

    background: #f4f7fb;
}


/* -----------------------------------------------------
   PAGE 3 HEADER
   Match the proportions of Pages 1 and 2
----------------------------------------------------- */

.learning-page .site-header {
    width: 100%;

    background: #ffffff;

    border-bottom: 1px solid var(--border);

    position: relative;

    z-index: 100;
}


.learning-page .header-inner {
    width: min(1180px, 92%);

    min-height: 70px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.learning-page .brand {
    display: flex;

    align-items: center;

    gap: 10px;

    text-decoration: none;
}


.learning-page .brand-icon {
    width: 38px;
    height: 38px;

    flex: 0 0 38px;

    display: grid;

    place-items: center;

    border-radius: 9px;

    background: var(--navy);

    color: #ffffff;

    font-size: .72rem;

    font-weight: 900;
}


.learning-page .brand-text {
    display: flex;

    flex-direction: column;

    line-height: 1.15;
}


.learning-page .brand-text strong {
    color: var(--navy);

    font-size: .88rem;
}


.learning-page .brand-text span {
    margin-top: 2px;

    color: var(--muted);

    font-size: .66rem;
}


.learning-page .main-nav {
    display: flex;

    align-items: center;

    gap: 28px;
}


.learning-page .main-nav a {
    position: relative;

    padding: 25px 0 22px;

    color: var(--navy);

    text-decoration: none;

    font-size: .76rem;

    font-weight: 700;
}


.learning-page .main-nav a:hover {
    color: var(--blue);
}


/* -----------------------------------------------------
   MODULE BAR
----------------------------------------------------- */

.learning-page .module-workspace-bar {
    width: 100%;

    flex: 0 0 auto;
}


.learning-page .workspace-bar-inner {
    width: min(1180px, 92%);

    min-height: 92px;

    margin: 0 auto;
}


/* -----------------------------------------------------
   MAIN WORKSPACE
   Grow so footer stays at bottom of screen
----------------------------------------------------- */

.learning-page .learning-workspace {
    flex: 1 0 auto;

    width: min(1180px, 92%);

    margin: 35px auto 55px;
}


/* -----------------------------------------------------
   FOOTER
----------------------------------------------------- */

.learning-page .site-footer {
    width: 100%;

    margin-top: auto;

    padding: 0;

    background: var(--navy);

    color: #ffffff;
}


.learning-page .footer-inner {
    width: min(1180px, 92%);

    min-height: 95px;

    margin: 0 auto;

    display: flex;

    align-items: center;

    justify-content: space-between;

    gap: 30px;
}


.learning-page .footer-inner strong {
    display: block;

    color: #ffffff;

    font-size: .82rem;
}


.learning-page .footer-inner p {
    margin: 4px 0 0;

    color: #b7c7da;

    font-size: .68rem;
}


.learning-page .footer-brand {
    color: var(--gold);

    font-size: .9rem;

    font-weight: 900;
}


/* -----------------------------------------------------
   TABLET
----------------------------------------------------- */

@media (max-width: 900px) {

    .learning-page .header-inner,
    .learning-page .workspace-bar-inner,
    .learning-page .learning-workspace,
    .learning-page .footer-inner {
        width: 94%;
    }

}


/* -----------------------------------------------------
   MOBILE
----------------------------------------------------- */

@media (max-width: 680px) {

    .learning-page .header-inner {
        min-height: 64px;
    }


    .learning-page .main-nav {
        gap: 14px;
    }


    .learning-page .main-nav a {
        padding: 22px 0 19px;

        font-size: .68rem;
    }


    .learning-page .footer-inner {
        min-height: 100px;

        flex-direction: column;

        align-items: flex-start;

        justify-content: center;

        gap: 10px;
    }

}


/* -----------------------------------------------------
   VERY SMALL MOBILE
----------------------------------------------------- */

@media (max-width: 480px) {

    .learning-page .brand-text span {
        display: none;
    }


    .learning-page .main-nav {
        gap: 10px;
    }


    .learning-page .main-nav a {
        font-size: .62rem;
    }

}

/* =====================================================
   PAGE 3 - FIXED / STICKY TWO-LEVEL HEADER
   Keep this at the VERY BOTTOM of styles.css
===================================================== */


/* -----------------------------------------------------
   1. MAIN WHITE HEADER
----------------------------------------------------- */

.learning-page .site-header {
    position: sticky;
    top: 0;

    width: 100%;

    z-index: 1000;

    background: #ffffff;
}


/* -----------------------------------------------------
   2. MODULE HEADER
   Sits immediately below main header
----------------------------------------------------- */

.learning-page .module-workspace-bar {
    position: sticky;

    /* Same height as white header */
    top: 70px;

    width: 100%;

    z-index: 990;

    background: var(--navy);

    box-shadow:
        0 4px 12px
        rgba(16, 33, 63, .10);
}


/* -----------------------------------------------------
   LESSON SIDEBAR
   Keep sidebar visible below BOTH headers
----------------------------------------------------- */

.learning-page .lesson-sidebar {
    position: sticky;

    /*
       70px white header
       + 92px module header
       + 25px breathing room
    */
    top: 187px;

    max-height: calc(100vh - 205px);

    overflow-y: auto;

    z-index: 20;
}


/* -----------------------------------------------------
   MAIN LESSON AREA
----------------------------------------------------- */

.learning-page .lesson-content-area {
    scroll-margin-top: 190px;
}


/* -----------------------------------------------------
   TABLET
----------------------------------------------------- */

@media (max-width: 900px) {

    .learning-page .site-header {
        top: 0;
    }

    .learning-page .module-workspace-bar {
        top: 70px;
    }

    .learning-page .lesson-sidebar {
        top: 187px;
    }

}


/* -----------------------------------------------------
   MOBILE
   Sidebar becomes normal content because there is
   not enough screen space for three fixed areas.
----------------------------------------------------- */

@media (max-width: 720px) {

    .learning-page .site-header {
        position: sticky;
        top: 0;
    }

    .learning-page .module-workspace-bar {
        position: sticky;
        top: 64px;
    }

    .learning-page .lesson-sidebar {
        position: static;

        max-height: none;

        overflow: visible;
    }

    .learning-page .lesson-content-area {
        scroll-margin-top: 165px;
    }

}


/* =====================================================
   PAGE 3 - COMPACT MODULE LESSONS PANEL
   Entire menu visible without internal scrolling
===================================================== */

.learning-page .lesson-sidebar {
    position: sticky;
    top: 187px;

    /* IMPORTANT: no internal scrollbar */
    max-height: none;
    height: auto;
    overflow: visible;
}


/* Compact heading */

.learning-page .sidebar-heading {
    padding: 16px 18px 13px;
}

.learning-page .sidebar-heading h2 {
    margin: 0 0 3px;

    font-size: 1.08rem;
}

.learning-page .sidebar-heading p {
    margin: 0;

    font-size: .73rem;
}


/* Compact lesson list */

.learning-page .lesson-navigation {
    padding: 7px 10px;
}

.learning-page .lesson-nav-button {
    min-height: 52px;

    margin-bottom: 2px;

    padding: 7px 9px;

    gap: 9px;
}

.learning-page .lesson-nav-number {
    width: 30px;
    height: 30px;

    flex: 0 0 30px;
}

.learning-page .lesson-nav-text small {
    font-size: .61rem;

    line-height: 1.1;

    margin-bottom: 1px;
}

.learning-page .lesson-nav-text strong {
    font-size: .76rem;

    line-height: 1.18;
}


/* Compact progress section */

.learning-page .module-progress {
    margin: 3px 16px 10px;

    padding-top: 11px;
}

.learning-page .progress-heading {
    margin-bottom: 6px;
}

.learning-page .module-progress p {
    margin-top: 5px;
}


/* Compact Choose Another Module */

.learning-page .change-module-link {
    margin: 0 16px 14px;

    padding: 9px 8px;

    font-size: .73rem;
}


/* Keep sidebar visible under the two fixed headers */

@media (min-width: 721px) {

    .learning-page .lesson-sidebar {
        position: sticky;
        top: 187px;

        overflow: visible;
        max-height: none;
    }

}



