/* ======================================
   DWALLNET LESSON VIEWER
====================================== */


.dw-lesson-page{

padding:60px 0;

background:#f8fafc;

}


.dw-lesson-layout{

display:grid;

grid-template-columns:320px 1fr;

gap:30px;

align-items:start;

}




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


.dw-lesson-sidebar{

background:#ffffff;

border-radius:18px;

padding:25px;

box-shadow:0 10px 30px rgba(0,0,0,.08);

position:sticky;

top:30px;

}



.dw-lesson-sidebar h3{

font-size:20px;

margin-bottom:20px;

color:#111827;

}



.dw-lesson-sidebar ul{

list-style:none;

padding:0;

margin:0;

}



.dw-lesson-sidebar li{

margin-bottom:8px;

}



.dw-lesson-sidebar a{

display:block;

padding:12px 15px;

border-radius:10px;

text-decoration:none;

color:#374151;

font-size:15px;

transition:.3s;

}



.dw-lesson-sidebar a:hover{

background:#f1f5f9;

}





.dw-lesson-sidebar li.active a{

background:#2563eb;

color:white;

font-weight:600;

}





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


.dw-lesson-content{

background:white;

padding:35px;

border-radius:18px;

box-shadow:0 10px 30px rgba(0,0,0,.08);

}



.dw-lesson-header h1{

font-size:34px;

margin-bottom:25px;

color:#111827;

}




/* VIDEO */

.dw-video-box{

position:relative;

width:100%;

padding-bottom:56.25%;

height:0;

overflow:hidden;

border-radius:15px;

margin-bottom:30px;

}



.dw-video-box iframe{

position:absolute;

width:100%;

height:100%;

left:0;

top:0;

border:0;

}





/* TEXT */

.dw-lesson-text{

font-size:17px;

line-height:1.8;

color:#374151;

}



.dw-lesson-text h2{

margin-top:30px;

}



.dw-lesson-text img{

max-width:100%;

height:auto;

}



/* NAVIGATION */


.dw-lesson-navigation{

display:flex;

justify-content:space-between;

gap:20px;

margin-top:40px;

padding-top:25px;

border-top:1px solid #e5e7eb;

}



.dw-lesson-navigation a{

background:#2563eb;

color:white;

padding:12px 25px;

border-radius:10px;

text-decoration:none;

font-weight:600;

transition:.3s;

}



.dw-lesson-navigation a:hover{

background:#1d4ed8;

}





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


@media(max-width:992px){


.dw-lesson-layout{

grid-template-columns:1fr;

}



.dw-lesson-sidebar{

position:relative;

top:auto;

}



.dw-lesson-content{

padding:25px;

}



}




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


@media(max-width:600px){



.dw-lesson-page{

padding:30px 15px;

}



.dw-lesson-content{

padding:20px;

}



.dw-lesson-header h1{

font-size:25px;

}



.dw-lesson-navigation{

flex-direction:column;

}



.dw-lesson-navigation a{

text-align:center;

}



}

/* ======================================
 MOBILE LESSON MENU
====================================== */


.dw-lesson-toggle{

display:none;

background:#2563eb;

color:white;

border:none;

padding:12px 18px;

border-radius:10px;

font-size:16px;

cursor:pointer;

margin-bottom:20px;

}



.dw-close-lessons{

display:none;

}





@media(max-width:600px){



.dw-lesson-toggle{

display:block;

}



.dw-lesson-sidebar{


position:fixed;

top:0;

left:-100%;

width:85%;

height:100vh;

z-index:9999;

overflow-y:auto;

transition:.3s;

border-radius:0;

}



.dw-lesson-sidebar.active{

left:0;

}



.dw-close-lessons{

display:block;

background:none;

border:none;

font-size:18px;

cursor:pointer;

margin-bottom:20px;

}



}

.dw-lesson-overlay{

display:none;

}


@media(max-width:600px){


.dw-lesson-overlay{

position:fixed;

top:0;

left:0;

width:100%;

height:100%;

background:rgba(0,0,0,.5);

z-index:9998;

}


.dw-lesson-sidebar.active + .dw-lesson-overlay{

display:block;

}


}

