/*==================================================
EDGEBREAK ACADEMY LESSONS
==================================================*/


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

:root{

    --lesson-bg:#071225;

    --lesson-surface:#101b2d;

    --lesson-surface-hover:#16253c;

    --lesson-border:#243956;

    --lesson-primary:#3b82f6;

    --lesson-primary-light:#60a5fa;

    --lesson-text:#ffffff;

    --lesson-text-light:#b6c4d7;

    --lesson-radius:18px;

    --lesson-shadow:
        0 12px 35px rgba(0,0,0,.25);

}


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

html{

    scroll-behavior:smooth;

}

body{

    margin:0;

    padding:0;

    background:var(--lesson-bg);

    color:var(--lesson-text);

    font-family:
        Inter,
        Arial,
        Helvetica,
        sans-serif;

    line-height:1.8;

}


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

.lesson-container{

    width:min(1000px,92%);

    margin:auto;

}


/*==================================================
SECTIONS
==================================================*/

.lesson-section{

    padding:90px 0;

}


/*==================================================
TYPOGRAPHY
==================================================*/

.lesson-section h2{

    font-size:2.4rem;

    font-weight:700;

    margin:0 0 30px;

    text-align:center;

    color:var(--lesson-text);

}

.lesson-section h3{

    font-size:1.5rem;

    font-weight:600;

    margin:50px 0 20px;

    color:var(--lesson-text);

}

.lesson-section p{

    margin:0 0 25px;

    color:var(--lesson-text-light);

    font-size:1.05rem;

    line-height:1.9;

}

.lesson-section strong{

    color:#fff;

}

.lesson-section a{

    color:var(--lesson-primary);

    text-decoration:none;

}

.lesson-section a:hover{

    color:var(--lesson-primary-light);

}


/*==================================================
TEXT ALIGNMENT
==================================================*/

.text-center{

    text-align:center;

}



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

.lesson-hero{

    position:relative;

    overflow:hidden;

    padding:120px 0 90px;

    text-align:center;

    background:
        linear-gradient(
            180deg,
            #071225 0%,
            #0b1830 100%
        );

}

.lesson-hero::before{

    content:"";

    position:absolute;

    inset:0;

    background:
        radial-gradient(
            circle at top,
            rgba(59,130,246,.12),
            transparent 65%
        );

    pointer-events:none;

}

.lesson-hero .lesson-container{

    position:relative;

    z-index:2;

}


/*==================================================
LOGO
==================================================*/

.hero-logo{

    display:block;

    width:90px;

    height:auto;

    margin:0 auto 35px;

}


/*==================================================
TAG
==================================================*/

.hero-tag{

    display:inline-flex;

    align-items:center;

    justify-content:center;

    padding:10px 22px;

    margin-bottom:25px;

    border-radius:50px;

    background:rgba(59,130,246,.12);

    border:1px solid rgba(59,130,246,.35);

    color:var(--lesson-primary);

    font-size:.85rem;

    font-weight:700;

    letter-spacing:1px;

    text-transform:uppercase;

}


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

.lesson-hero h1{

    font-size:clamp(2.8rem,5vw,4.4rem);

    font-weight:800;

    line-height:1.15;

    margin:0 0 25px;

    color:#fff;

}


/*==================================================
SUBTITLE
==================================================*/

.hero-sub{

    max-width:850px;

    margin:0 auto 45px;

    color:var(--lesson-text-light);

    font-size:1.2rem;

    line-height:1.9;

}


/*==================================================
META CARDS
==================================================*/

.lesson-meta{

    display:flex;

    justify-content:center;

    gap:20px;

    flex-wrap:wrap;

}

.meta-card{

    min-width:170px;

    padding:22px;

    border-radius:16px;

    background:rgba(255,255,255,.05);

    border:1px solid rgba(255,255,255,.08);

    backdrop-filter:blur(8px);

}

.meta-card strong{

    display:block;

    margin-bottom:8px;

    font-size:1.15rem;

    color:#fff;

}

.meta-card span{

    color:var(--lesson-text-light);

    font-size:.95rem;

}


/*==================================================
BREADCRUMB
==================================================*/

.lesson-breadcrumb{

    display:flex;

    justify-content:center;

    align-items:center;

    flex-wrap:wrap;

    gap:10px;

    margin-top:40px;

    font-size:.95rem;

}

.lesson-breadcrumb a{

    color:var(--lesson-primary);

    text-decoration:none;

}

.lesson-breadcrumb a:hover{

    color:var(--lesson-primary-light);

}

.lesson-breadcrumb span{

    color:var(--lesson-text-light);

}

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

.lesson-content{

    max-width:900px;

    margin:0 auto;

}


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

.lesson-intro{

    font-size:1.15rem;

    color:var(--lesson-text-light);

    line-height:2;

    margin-bottom:50px;

}


/*==================================================
CONTENT CARDS
==================================================*/

.lesson-card{

    background:var(--lesson-surface);

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

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

    padding:40px;

    margin:40px 0;

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

}

.lesson-card h3{

    margin-top:0;

}


/*==================================================
CALLOUT
==================================================*/

.lesson-callout{

    background:#0d1d34;

    border-left:4px solid var(--lesson-primary);

    border-radius:16px;

    padding:30px;

    margin:40px 0;

}

.lesson-callout h3{

    margin-top:0;

}


/*==================================================
RESEARCH REMINDER
==================================================*/

.research-reminder{

    background:rgba(59,130,246,.08);

    border:1px solid rgba(59,130,246,.25);

    border-radius:16px;

    padding:30px;

    margin:40px 0;

}

.research-reminder h3{

    color:var(--lesson-primary);

    margin-top:0;

}


/*==================================================
EXAMPLE BOX
==================================================*/

.example-box{

    background:#13233c;

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

    border-radius:16px;

    padding:35px;

    margin:40px 0;

}


/*==================================================
KEY TAKEAWAY
==================================================*/

.key-takeaway{

    background:#0d1d34;

    border-left:5px solid #38bdf8;

    padding:30px;

    border-radius:16px;

    margin:40px 0;

}

.key-takeaway h3{

    margin-top:0;

}


/*==================================================
LISTS
==================================================*/

.lesson-content ul{

    padding-left:25px;

    margin:25px 0;

}

.lesson-content li{

    margin-bottom:14px;

    color:var(--lesson-text-light);

}


/*==================================================
HORIZONTAL RULE
==================================================*/

.lesson-divider{

    width:120px;

    height:2px;

    background:var(--lesson-border);

    margin:70px auto;

}


/*==================================================
IMAGES
==================================================*/

.lesson-image{

    width:100%;

    border-radius:18px;

    margin:45px 0;

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

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

}

.lesson-image img{

    width:100%;

    display:block;

    border-radius:18px;

}


/*==================================================
CAPTIONS
==================================================*/

.image-caption{

    margin-top:15px;

    text-align:center;

    color:var(--lesson-text-light);

    font-size:.9rem;

}

/*==================================================
PRACTICAL EXERCISE
==================================================*/

.exercise{

    margin:60px 0;

    padding:40px;

    background:var(--lesson-surface);

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

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

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

}

.exercise h3{

    margin-top:0;

}

.exercise p:last-child{

    margin-bottom:0;

}


/*==================================================
CHECK YOUR UNDERSTANDING
==================================================*/

.lesson-question{

    margin:30px 0;

    padding:30px;

    background:#0d1d34;

    border-radius:16px;

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

}

.lesson-question h4{

    margin:0 0 20px;

    font-size:1.15rem;

}

.lesson-question ul{

    margin:0;

    padding-left:22px;

}


/*==================================================
KEY TAKEAWAYS
==================================================*/

.takeaway-grid{

    display:grid;

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

    gap:25px;

    margin-top:40px;

}

.takeaway-card{

    padding:30px;

    background:var(--lesson-surface);

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

    border-radius:16px;

}

.takeaway-card h4{

    margin:0 0 15px;

}

.takeaway-card p{

    margin:0;

}


/*==================================================
LESSON SUMMARY
==================================================*/

.lesson-summary{

    margin-top:70px;

    padding:40px;

    text-align:center;

    background:linear-gradient(
        180deg,
        #101b2d,
        #16253c
    );

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

    border-radius:20px;

}

.lesson-summary h2{

    margin-top:0;

}

.lesson-summary p{

    max-width:750px;

    margin:20px auto;

}


/*==================================================
LESSON NAVIGATION
==================================================*/

.lesson-navigation{

    display:grid;

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

    gap:20px;

    margin:80px 0;

}

.lesson-navigation a{

    display:block;

    padding:28px;

    text-align:center;

    text-decoration:none;

    color:#fff;

    background:var(--lesson-surface);

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

    border-radius:18px;

    transition:
        background .25s,
        border-color .25s,
        transform .25s;

}

.lesson-navigation a:hover{

    background:var(--lesson-surface-hover);

    border-color:var(--lesson-primary);

    transform:translateY(-4px);

}

.lesson-navigation strong{

    display:block;

    margin-bottom:10px;

    font-size:1rem;

}

.lesson-navigation span{

    color:var(--lesson-text-light);

    font-size:.95rem;

}


/*==================================================
LESSON CTA
==================================================*/

.lesson-cta{

    text-align:center;

    margin:80px 0;

}

.lesson-cta p{

    max-width:700px;

    margin:0 auto 30px;

}

/*==================================================
RESPONSIVE
==================================================*/

/*------------------------------
1200px
------------------------------*/

@media (max-width:1200px){

    .lesson-container{

        width:94%;

    }

}


/*------------------------------
992px
------------------------------*/

@media (max-width:992px){

    .lesson-hero{

        padding:100px 0 80px;

    }

    .lesson-hero h1{

        font-size:3rem;

    }

    .lesson-meta{

        gap:18px;

    }

    .meta-card{

        min-width:150px;

    }

    .lesson-section{

        padding:80px 0;

    }

    .takeaway-grid{

        grid-template-columns:1fr;

    }

}


/*------------------------------
768px
------------------------------*/

@media (max-width:768px){

    .lesson-hero{

        padding:80px 0 60px;

    }

    .hero-logo{

        width:70px;

        margin-bottom:25px;

    }

    .lesson-hero h1{

        font-size:2.4rem;

    }

    .hero-sub{

        font-size:1.05rem;

    }

    .lesson-meta{

        flex-direction:column;

        align-items:center;

    }

    .meta-card{

        width:100%;

        max-width:320px;

    }

    .lesson-section{

        padding:70px 0;

    }

    .lesson-section h2{

        font-size:2rem;

    }

    .lesson-card,

    .lesson-callout,

    .example-box,

    .exercise,

    .research-reminder,

    .lesson-summary{

        padding:30px;

    }

    .lesson-navigation{

        grid-template-columns:1fr;

    }

}


/*------------------------------
480px
------------------------------*/

@media (max-width:480px){

    .lesson-container{

        width:92%;

    }

    .lesson-hero{

        padding:70px 0 50px;

    }

    .lesson-hero h1{

        font-size:2rem;

        line-height:1.2;

    }

    .hero-sub{

        font-size:1rem;

    }

    .lesson-section{

        padding:55px 0;

    }

    .lesson-section h2{

        font-size:1.7rem;

    }

    .lesson-section h3{

        font-size:1.3rem;

    }

    .lesson-card,

    .lesson-callout,

    .example-box,

    .exercise,

    .research-reminder,

    .lesson-summary{

        padding:22px;

        border-radius:14px;

    }

    .lesson-navigation a{

        padding:22px;

    }

}

/*==================================================
LESSON LAYOUT IMPROVEMENTS
==================================================*/

/* Better reading width */

.lesson-container{

    width:min(1200px,92%);

    margin:auto;

}

/* Main content stays comfortable to read */

.lesson-content{

    max-width:900px;

    margin:0 auto;

}


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

.lesson-hero{

    padding:140px 0 110px;

}

.lesson-hero h1{

    margin:20px 0 30px;

    font-size:clamp(3rem,5vw,4.5rem);

}

.hero-sub{

    max-width:850px;

    margin:0 auto 50px;

    font-size:1.25rem;

}


/*==================================================
META CARDS
==================================================*/

.lesson-meta{

    margin-top:45px;

    gap:25px;

}

.meta-card{

    min-width:180px;

    padding:24px 30px;

}


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

.lesson-section{

    padding:100px 0;

}

.lesson-intro{

    font-size:1.15rem;

    line-height:2;

    margin-bottom:70px;

}


/*==================================================
HEADINGS
==================================================*/

.lesson-section h2{

    margin:90px 0 30px;

    font-size:2.5rem;

    line-height:1.2;

}

.lesson-section h2:first-child{

    margin-top:0;

}

.lesson-section h3{

    margin:60px 0 20px;

    font-size:1.7rem;

}

.lesson-section p{

    margin-bottom:30px;

    font-size:1.08rem;

    line-height:2;

}


/*==================================================
WHAT YOU'LL LEARN
==================================================*/

.lesson-card{

    max-width:850px;

    margin:60px auto;

    padding:45px;

    border-radius:22px;

}


/*==================================================
CALLOUT BOXES
==================================================*/

.lesson-callout,

.example-box,

.exercise,

.research-reminder,

.key-takeaway{

    margin:60px auto;

    padding:40px;

    border-radius:22px;

}


/*==================================================
LISTS
==================================================*/

.lesson-content ul{

    margin:25px 0;

    padding-left:30px;

}

.lesson-content li{

    margin-bottom:16px;

    line-height:1.9;

}


/*==================================================
DIVIDERS
==================================================*/

.lesson-divider{

    width:120px;

    height:2px;

    background:rgba(255,255,255,.08);

    margin:90px auto;

}


/*==================================================
IMAGES
==================================================*/

.lesson-image{

    margin:60px auto;

}


/*==================================================
SUMMARY
==================================================*/

.lesson-summary{

    max-width:900px;

    margin:90px auto;

}


/*==================================================
NAVIGATION
==================================================*/

.lesson-navigation{

    max-width:1000px;

    margin:100px auto 40px;

    gap:25px;

}

.lesson-navigation a{

    padding:30px;

    border-radius:18px;

}


/*==================================================
SECTION SPACING
==================================================*/

.lesson-section > *{

    margin-left:auto;

    margin-right:auto;

}

/*==================================================
OVERRIDE ACADEMY STYLES
==================================================*/

.academy-container.lesson-container{

    width:min(1200px,92%);

    max-width:1200px;

    margin:0 auto;

    padding:0;

}

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

.lesson-hero{

    padding:160px 0 100px;

    text-align:center;

}


/*==================================================
LESSON TAG
==================================================*/

.lesson-tag{

    display:block;

    margin-bottom:20px;

    text-align:center;

    color:var(--lesson-primary);

    font-size:.95rem;

    font-weight:700;

    letter-spacing:1px;

    text-transform:uppercase;

}


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

.lesson-hero h1{

    margin:0 0 30px;

    text-align:center;

    font-size:clamp(3rem,5vw,4.5rem);

    font-weight:800;

    line-height:1.15;

}


/*==================================================
META
==================================================*/

.lesson-meta{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:20px;

    margin-top:20px;

}

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

.lesson-hero{

    padding:140px 0 100px;

    text-align:center;

}

.lesson-hero h1{

    max-width:900px;

    margin:20px auto 25px;

    text-align:center;

}

.lesson-intro{

    max-width:900px;

    margin:0 auto 60px;

    text-align:center;

}

.lesson-meta{

    justify-content:center;

    margin-bottom:70px;

}


.lesson-card{

    max-width:900px;

    margin:70px auto;

    padding:50px;

}

@media (max-width:768px){

    .lesson-meta{

        flex-direction:column;

        align-items:stretch;

    }

    .meta-card{

        width:100%;

        max-width:none;

    }

}

*,
*::before,
*::after{

    box-sizing:border-box;

}

.lesson-content,
.lesson-card{

    overflow-wrap:break-word;

    word-wrap:break-word;

}

.lesson-container > h1{

    display:block;

    width:100%;

    text-align:center !important;

    margin:20px auto 30px auto !important;

}

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

.lesson-hero{

    padding-top:180px;
    padding-bottom:100px;

}

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

.lesson-next{

    max-width:900px;
    margin:80px auto 0;

    padding:50px;

    text-align:center;

    background:linear-gradient(
        180deg,
        #101b2d,
        #16253c
    );

    border:1px solid #243956;
    border-radius:22px;

    box-shadow:
        0 20px 45px rgba(0,0,0,.30);

}

.lesson-next-tag{

    display:inline-block;

    padding:8px 18px;

    margin-bottom:20px;

    border-radius:40px;

    background:rgba(59,130,246,.10);

    border:1px solid rgba(59,130,246,.35);

    color:#3b82f6;

    font-size:.82rem;
    font-weight:700;
    letter-spacing:1px;
    text-transform:uppercase;

}

.lesson-next h2{

    color:#fff;
    margin-bottom:15px;

}

.lesson-next h3{

    color:#22c55e;
    font-size:1.6rem;
    margin-bottom:18px;

}

.lesson-next p{

    max-width:700px;
    margin:0 auto 35px;

    color:#b6c4d7;
    line-height:1.8;

}

.lesson-progress{

    margin-top:30px;

    color:#94a3b8;

    font-size:.9rem;

}

@media(max-width:768px){

    .lesson-next{

        padding:35px 25px;

    }

    .lesson-next h3{

        font-size:1.3rem;

    }

}

.lesson-nav{

    display:flex;
    justify-content:space-between;
    align-items:center;
    gap:20px;
    margin-bottom:35px;
    flex-wrap:wrap;

}

@media (max-width:768px){

    .lesson-nav{

        flex-direction:column;

    }

    .lesson-nav .btn{

        width:100%;
        text-align:center;

    }

}

.lesson-nav-buttons{

    display:flex;

    justify-content:center;

    align-items:center;

    gap:25px;

    flex-wrap:wrap;

    margin:40px 0;

}

.lesson-nav-buttons .btn,
.lesson-nav-buttons .btn-primary,
.lesson-nav-buttons .btn-secondary{

    min-width:260px;
    text-align:center;

}

@media (max-width:768px){

    .lesson-nav-buttons{

        flex-direction:column;

    }

}

.lesson-section{

    margin:55px 0;

    padding:38px;

    background:#0b162d;

    border:1px solid rgba(255,255,255,.06);

    border-radius:18px;

    box-shadow:0 12px 35px rgba(0,0,0,.22);

}

.lesson-section h2{

    font-size:2rem;

    color:#fff;

    margin-bottom:20px;

    position:relative;

    padding-bottom:14px;

}

.lesson-section h2:after{

    content:"";

    width:70px;

    height:4px;

    background:#00d084;

    border-radius:20px;

    position:absolute;

    left:0;

    bottom:0;

}

.lesson-section ul{

    list-style:none;

    padding:0;

}

.lesson-section li{

    padding:10px 0 10px 34px;

    position:relative;

}

.lesson-section li:before{

    content:"✓";

    position:absolute;

    left:0;

    color:#00d084;

    font-weight:bold;

}

.lesson-section p{

    font-size:1.08rem;

    line-height:1.9;

    color:#d8e2ef;

}

.lesson-tip{

    margin:35px 0;

    padding:25px;

    border-left:5px solid #00d084;

    background:#132342;

    border-radius:12px;

}