/* ======================================================
UNIVERSAL LESSON DESIGN SYSTEM
Daily English With AI
Mobile First Modern Learning UI
====================================================== */

/* =========================
GLOBAL LESSON
========================= */

.lesson-page-wrapper{
    width:100%;
    padding:10px 0 50px;
}

.lesson-container{
    width:100%;
}

/* =========================
LESSON HERO
========================= */

.lesson-hero{

    background:linear-gradient(135deg,#f5f3ff,#ede9fe);

    border-radius:32px;

    padding:55px;

    margin-bottom:28px;

    position:relative;

    overflow:hidden;
}

.lesson-hero::before{

    content:"";

    position:absolute;

    top:-80px;

    right:-80px;

    width:220px;

    height:220px;

    background:rgba(255,255,255,0.35);

    border-radius:50%;
}

.lesson-badge{

    display:inline-flex;

    align-items:center;

    gap:10px;

    background:white;

    color:#6d28d9;

    padding:12px 20px;

    border-radius:50px;

    font-size:15px;

    font-weight:700;

    margin-bottom:24px;

    box-shadow:0 8px 20px rgba(109,40,217,0.08);
}

.lesson-hero h1{

    font-size:68px;

    line-height:1.1;

    font-family:'Poppins',sans-serif;

    font-weight:800;

    color:#111827;

    margin-bottom:22px;

    max-width:850px;
}

.lesson-hero p{

    font-size:21px;

    line-height:1.9;

    color:#475569;

    max-width:850px;
}

/* =========================
MAIN CONTENT BOX
========================= */

.lesson-content-box{

    background:white;

    border-radius:32px;

    padding:45px;

    border:1px solid #eee7ff;

    box-shadow:0 10px 30px rgba(109,40,217,0.04);

    margin-bottom:30px;
}

.lesson-content{

    color:#334155;

    font-size:18px;

    line-height:1.9;
}

/* =========================
HEADINGS
========================= */

.lesson-content h1,
.lesson-content h2,
.lesson-content h3,
.lesson-content h4{

    font-family:'Poppins',sans-serif;

    color:#111827;

    line-height:1.4;

    margin-top:45px;

    margin-bottom:20px;
}

.lesson-content h2{

    font-size:42px;

    position:relative;

    padding-left:18px;
}

.lesson-content h2::before{

    content:"";

    position:absolute;

    left:0;

    top:10px;

    width:6px;

    height:38px;

    border-radius:20px;

    background:#6d28d9;
}

.lesson-content h3{
    font-size:30px;
}

.lesson-content h4{
    font-size:24px;
}

/* =========================
PARAGRAPH
========================= */

.lesson-content p{
    margin-bottom:22px;
}

/* =========================
LIST
========================= */

.lesson-content ul,
.lesson-content ol{

    padding-left:22px;

    margin-bottom:25px;
}

.lesson-content li{

    margin-bottom:12px;

    color:#475569;
}

/* =========================
TABLE
========================= */

.lesson-content table{

    width:100%;

    border-collapse:collapse;

    margin:30px 0;

    overflow:hidden;

    border-radius:20px;
}

.lesson-content table th{

    background:#6d28d9;

    color:white;

    padding:16px;

    text-align:left;

    font-size:16px;
}

.lesson-content table td{

    padding:16px;

    border:1px solid #ede9fe;

    background:white;
}

/* =========================
BLOCKQUOTE
========================= */

.lesson-content blockquote{

    background:#f5f3ff;

    border-left:6px solid #6d28d9;

    padding:24px;

    border-radius:22px;

    margin:30px 0;

    color:#6d28d9;

    font-weight:600;

    line-height:1.8;

    font-size:18px;
}

/* =========================
CODE
========================= */

.lesson-content pre{

    background:#111827;

    color:white;

    padding:24px;

    border-radius:22px;

    overflow-x:auto;

    margin:30px 0;
}

.lesson-content code{

    background:#f3f4f6;

    padding:4px 8px;

    border-radius:8px;

    font-size:15px;
}

/* =========================
LESSON CARDS
Use inside content manually
========================= */

.lesson-card-grid{

    display:grid;

    grid-template-columns:repeat(2,1fr);

    gap:22px;

    margin:35px 0;
}

.lesson-card{

    background:#faf7ff;

    border:1px solid #ede9fe;

    border-radius:28px;

    padding:28px;

    transition:0.3s ease;
}

.lesson-card:hover{

    transform:translateY(-5px);

    box-shadow:0 10px 25px rgba(109,40,217,0.08);
}

.lesson-card-icon{

    width:65px;

    height:65px;

    border-radius:20px;

    background:white;

    display:flex;

    align-items:center;

    justify-content:center;

    font-size:30px;

    margin-bottom:18px;

    box-shadow:0 6px 15px rgba(109,40,217,0.06);
}

.lesson-card h3{

    font-size:28px;

    margin-bottom:14px;
}

.lesson-card p{

    font-size:16px;

    color:#64748b;

    line-height:1.8;
}

/* =========================
EXAMPLE BOX
========================= */

.example-box{

    background:#f8fafc;

    border-radius:24px;

    padding:26px;

    margin:30px 0;

    border:1px solid #e2e8f0;
}

.example-title{

    font-size:22px;

    font-weight:700;

    color:#6d28d9;

    margin-bottom:16px;
}

/* =========================
MEMORY TRICK
========================= */

.memory-box{

    background:linear-gradient(135deg,#fff7ed,#fef9c3);

    border-radius:26px;

    padding:28px;

    margin:35px 0;
}

.memory-box h3{

    color:#d97706;

    margin-bottom:14px;
}

.memory-box p{

    color:#78350f;

    margin:0;
}

/* =========================
WARNING BOX
========================= */

.warning-box{

    background:#fff1f2;

    border-radius:24px;

    padding:26px;

    margin:30px 0;

    border:1px solid #fecdd3;
}

.warning-box h3{

    color:#e11d48;

    margin-bottom:12px;
}

/* =========================
PRACTICE CTA
========================= */

.lesson-practice-section{

    background:linear-gradient(135deg,#ede9fe,#f5f3ff);

    border-radius:32px;

    padding:35px;

    display:flex;

    justify-content:space-between;

    align-items:center;

    gap:25px;

    flex-wrap:wrap;

    margin-bottom:60px;
}

.lesson-practice-left{

    display:flex;

    align-items:center;

    gap:20px;
}

.lesson-practice-icon{

    width:80px;

    height:80px;

    border-radius:24px;

    background:white;

    display:flex;

    justify-content:center;

    align-items:center;

    font-size:36px;
}

.lesson-practice-left h3{

    font-size:38px;

    font-family:'Poppins',sans-serif;

    margin-bottom:8px;
}

.lesson-practice-left p{

    color:#64748b;

    line-height:1.8;
}

.lesson-practice-btn{

    background:#6d28d9;

    color:white;

    padding:18px 34px;

    border-radius:18px;

    font-weight:700;

    transition:0.3s ease;

    display:inline-flex;

    align-items:center;

    justify-content:center;
}

.lesson-practice-btn:hover{

    background:#5b21b6;

    transform:translateY(-2px);
}

/* =========================
TABLET
========================= */

@media(max-width:1100px){

.lesson-hero h1{
    font-size:54px;
}

.lesson-card-grid{
    grid-template-columns:1fr;
}

.lesson-practice-section{

    flex-direction:column;

    text-align:center;
}

.lesson-practice-left{
    flex-direction:column;
}

}

/* =========================
MOBILE
========================= */

@media(max-width:768px){

.lesson-page-wrapper{
    padding:0 0 40px;
}

/* HERO */

.lesson-hero{

    padding:32px 22px;

    border-radius:26px;
}

.lesson-badge{

    width:100%;

    justify-content:center;

    font-size:13px;

    padding:11px 16px;
}

.lesson-hero h1{

    font-size:40px;

    line-height:1.2;

    margin-bottom:18px;
}

.lesson-hero p{

    font-size:16px;

    line-height:1.8;
}

/* CONTENT */

.lesson-content-box{

    padding:24px 18px;

    border-radius:24px;
}

.lesson-content{

    font-size:15px;

    line-height:1.9;
}

.lesson-content h2{

    font-size:30px;

    padding-left:14px;
}

.lesson-content h2::before{

    height:30px;

    top:7px;
}

.lesson-content h3{
    font-size:24px;
}

.lesson-content h4{
    font-size:20px;
}

/* TABLE */

.lesson-content table{
    display:block;
    overflow-x:auto;
}

/* BLOCKQUOTE */

.lesson-content blockquote{

    padding:18px;

    font-size:15px;

    border-radius:18px;
}

/* PRE */

.lesson-content pre{

    padding:18px;

    border-radius:18px;

    font-size:13px;
}

/* CARDS */

.lesson-card{

    padding:22px;

    border-radius:24px;
}

.lesson-card-icon{

    width:55px;

    height:55px;

    border-radius:18px;

    font-size:24px;
}

.lesson-card h3{

    font-size:22px;
}

.lesson-card p{

    font-size:15px;
}

/* EXAMPLE */

.example-box{

    padding:20px;

    border-radius:20px;
}

.example-title{
    font-size:18px;
}

/* MEMORY */

.memory-box{

    padding:22px;

    border-radius:22px;
}

/* WARNING */

.warning-box{

    padding:22px;

    border-radius:22px;
}

/* PRACTICE CTA */

.lesson-practice-section{

    padding:24px 18px;

    border-radius:24px;
}

.lesson-practice-icon{

    width:60px;

    height:60px;

    border-radius:18px;

    font-size:28px;
}

.lesson-practice-left h3{

    font-size:28px;
}

.lesson-practice-left p{

    font-size:15px;
}

.lesson-practice-btn{

    width:100%;
}
}