.bg_sdow { 
    position: fixed; 
    left: 0; 
    top: 0; 
    width: 100%; 
    height: 100vh; 
    display: none; 
    background-color: #f5f5f5; 
    z-index: 1000; 
    opacity: 0.7; 
}

/* ==========================================
   1. 데스크톱 기본 / 대형 화면 (1281px 이상)
   ================================---------- */
@media all and (min-width: 1281px) {
    /* 기본 데스크톱 스타일 영역 */
}

/* ==========================================
   2. 노트북 / 태블릿 가로 (1025px ~ 1280px)
   ================================---------- */
@media all and (max-width: 1280px) {

    .wrap { width: 100%; }
    
    section { padding: 20px 10px 50px 10px; }
    header { padding: 0 5px; }
    header .login { padding-right: 10px; }

    footer div.copy > .wrap ul { padding: 0 10px; }    
    footer div.q .wrap ul:nth-child(2) > li { border-right: 0; }
    footer div.q .wrap ul:nth-child(1) > li { padding: 0 10px; }

    .Lec > ul img { max-width: 100%; }
    .Lec .s_lec > ul { font-size: 18px; }
    .Lec .c_lec img { max-width: 100%; }
}

/* ==========================================
   3. 태블릿 세로 (769px ~ 1024px)
   ================================---------- */
@media all and (max-width: 1024px) {

    section { padding: 20px 10px 50px 10px; }

    header { padding: 0 10px; }
    header .login { padding-right: 10px; }

    header .t_banner { 
        background-image: url("/ONL/img/수강후기배너.jpg"); /* 모바일용 이미지 경로 */
    }

    footer div.copy > .wrap ul { padding: 0 10px; }    
    footer div.q .wrap ul:nth-child(2) > li { border-right: 0; }

    /* index */
    .main_b_div > ul.ul1 { width: 65%; }
    .main_b_div > ul.ul2 { width: 33%; }
    .main_b_div > ul.ul1 .div_btnn { width: 100%; height: 300px; }
    .main_b_div > ul.ul1 iframe { width: 100%; height: 300px; }
    .main_b_div > ul.ul2 li img { max-width: 100%; }

    .LecL div.mov ul.m_u2 { width: 23%; margin: 1%; }
    /* index */

    .Lec > ul img { max-width: 100%; } 
    .Lec .s_lec > ul { font-size: 18px; }
    .Lec .c_lec img { max-width: 100%; }
}

/* ==========================================
   4. 태블릿 소형 / 대형 스마트폰 (426px ~ 768px)
================================---------- */
@media all and (max-width: 768px) {

    header .top .login { display: none; }
    
    header .top .logo img { height: 35px; }
    header .top .logo div.a_go { display: none; } /* other site bar */

    header .nav { display: none; } /* top메뉴 bar */

    header .t_banner { 
        background-image: url("/ONL/img/수강후기배너_모바일.jpg"); /* 모바일용 이미지 경로 */
    }

    .pgtitle { text-align: center; padding:15px 0; }

    section { padding: 0 10px; }
    section .inner > ul.Lef { display: none; }
    section .inner > ul.Rig { width: 100%; }

    footer div.q .wrap ul:nth-child(2) > li { border-right: 0; }
    footer div.copy > .wrap ul { padding: 0 10px 60px 10px; }

    .m_footer { display: block; }

    /* index */
    .main_b_div { margin-bottom: 5px; }
    .main_b_div > ul { display: block; height: auto; }
    .main_b_div > ul.ul1 { width: 100%; margin-bottom: 10px; }
    .main_b_div > ul.ul2 { width: 100%; }
    .main_b_div > ul img { max-width: 100%; }
    .main_b_div > ul > li { display: inline-block; float: left; width: 50%; padding: 0 5px; text-align: center; }
    .main_b_div > ul > li:nth-child(1) { margin-bottom: 0; }

    .main_b_div > ul.ul1 .div_btnn { width: 100%; height: 300px; }
    .main_b_div > ul.ul1 iframe { width: 100%; height: 300px; }

    .LecL { margin-bottom: 20px; }
    .LecL div.mov { margin-bottom: 15px; }
    .LecL div.mov ul.m_u2 { width: 40%; height: 305px; margin: 0 5% 15px 5%; }

    .LecL div.rev > ul > li { width: 29.3%; margin: 2%; }
    /* index */

    .login_div > ul { padding: 70px 0; }
    .login_div > ul .login_f { width: 50%; }

    .Lec > ul img { max-width: 100%; }
    .Lec .s_lec { display: block; padding-top: 10px; }
    .Lec .s_lec > ul { width: 100%; margin-bottom: 5px; font-size: 18px; }
    
    .Lec .c_lec { flex-wrap: wrap; padding: 0 5px; }
    .Lec .c_lec .c_lec1 { order: 2; width: 100%; }
    .Lec .c_lec .c_lec2 { order: 1; width: 100%; font: 15px 'Pretendard'; }
    .Lec .c_lec img { max-width: 100%; }

    .img_b img { max-width: 100%; }

    .reviewR ul.ul1 { display: none;  }
    .reviewR ul.ul2 { width: 100%;  }
    
    footer div.q .wrap ul:nth-child(2) {  display: none;  }
    footer div.q .wrap ul li:last-child { display: none;  }
}

/* ==========================================
   5. 모바일 일반 (425px 이하)
   ================================---------- */
@media all and (max-width: 425px) {

    header .top .login > div.lo_div button.b2 { display: none; }

    .LeftM { display: none; }
    .RigCon { width: 100%; padding-left: 0; }

    section .inner > ul.Lef { width: 0; }
    section .inner > ul.Rig { width: 100%; }

    footer div.q .wrap ul:nth-child(2) { display: none; }
    footer div.copy > .wrap ul { padding: 0 10px 60px 10px; }

    .m_footer { display: block; }

    /* index */
    .main_b_div > ul { display: block; height: auto; }

    .main_b_div > ul.ul1 img.mm { display: block; }
    .main_b_div > ul.ul1 img.pp { display: none; }

    .main_b_div > ul.ul1 .div_btnn { width: 100%; height: 270px; }
    .main_b_div > ul.ul1 iframe { width: 100%; height: 270px; }

    .LecL { margin: 20px 0; }
    .LecL img { max-width: 100%; }   

    .LecL div.mov ul.m_u2 { display:flex; justify-content: space-between; width: 100%; height: 110px; overflow: hidden; margin: 0 0 20px 0 ; }
    .LecL div.mov ul.m_u2 > p.p_1 { width:30%; height:auto; border-radius:0; }
    .LecL div.mov ul.m_u2 > p.p_2 { width:68%; }
    .LecL div.mov ul.m_u2 > p.p_1 img { width: 100%; height: 110px; object-fit: cover; display: block; }

    .mmm_div {
        grid-template-columns: 1fr; /* 한 줄에 1개씩 꽉 채우기 */
        gap: 15px; /* 세로로 쌓였을 때 위아래 간격 */
    }

    .mmm_div > div img {
        width: 100%;            /* 부모 너비(30% 영역)에 무조건 꽉 맞춤 */
        height: 120px;          /* 원하는 고정 세로 높이 (예: 120px, 필요시 조절) */
        object-fit: cover;      /* 찌그러짐 방지: 비율 유지하며 영역을 꽉 채우고 넘치는 부분은 컷팅 */
        display: block;         /* 하단에 생기는 쓸데없는 여백 제거 */
        border-radius: 4px;     /* 모서리가 둥글 필요가 있다면 추가 */
    }
    /* index */

    .pgtitle { display: none; }

    .login_div > ul { padding: 70px 0; }
    .login_div > ul .login_f { width: 70%; }

    .search_idpw { padding: 0 10px; margin: 0; }

    .policy_n div.box1 { width: 100%; }
    .join > ul { width: 100%; }

    .ntt { padding: 15px; }
    .ntt > ul > li > p { font-size: 15px; }

    .cour_tap { width: 1100px; }
    .courL .mobile_sy { display: block; overflow: scroll; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; transition-property: transform; transform-origin: 0px 0px 0px; transform: translate(-0px, 0px) scale(1) translateZ(0px); }
    ::-webkit-scrollbar { display: none; }
    .courL .BList1_p ul.chg { font-size: 15px; flex-wrap: wrap; }
    .courL .BList1_p ul.chg li { width: 100%; text-align: left; padding-left: 10px; }
    .courL .BList1_p ul.chg li img { max-height: 150px; width: auto; }
    .courL button.app_stt { margin-bottom: 5px; font-size: 15px; }

    .coursev { padding: 0 10px; }
    .coursev .con_div > ul:nth-child(1), .coursev .con_div > ul:nth-child(2) { display: block; overflow: hidden; float: left; width: 100%; }
    .coursev .con_div > ul:nth-child(1) { margin-bottom: 10px; }
    .coursev .con_div > ul img { width: auto; max-height: 150px; }

    .onSL > ul { flex-wrap: wrap; }
    .onSL > ul > li.li1 { width: 100%; }
    .onSL > ul > li.li4 { width: 100%; }

    .onSL > ul > li .ons2 > ul > li.li1 { width: 100%; }
    .onSL > ul > li .ons2 > ul > li.li2 { width: 100%; margin-top: 7px; }

    .Lec > ul img { max-width: 100%; }
    .Lec .s_lec { display: block; padding-top: 10px; }
    .Lec .s_lec > ul { width: 100%; margin-bottom: 5px; font-size: 18px; }
    
    .Lec .c_lec .c_lec1 { order: 1; width: 100%; }
    .Lec .c_lec .c_lec2 { order: 2; width: 100%; font: 15px 'Pretendard'; }
    .Lec .c_lec img { max-width: 100%; }

    .Lec .c_lec > .c_lec1 ul.u1 { width: 600px; }
    .Lec .c_lec > .c_lec1 ul.u1 li { width: 120px; font: 16px 'Pretendard'; } 
    .Lec .c_lec .mobile_sy { display: block; overflow: scroll; -ms-overflow-style: none; -webkit-overflow-scrolling: touch; transition-property: transform; transform-origin: 0px 0px 0px; transform: translate(-0px, 0px) scale(1) translateZ(0px); }
    ::-webkit-scrollbar { display: none; }

    .cour_reV div.uu div { width: 100%; }

    .img_b img { max-width: 100%; }

    .ft_ad { display: block; }

    .faq_conn { height: 400px; }
    #faq_conn_img { top: auto; bottom: 150px; left: 20px; }
    #faq_wrapper { top: 20px; left: 20px; }
    .faq_conn_tt { top: 413px; bottom: auto; left: 20px; }


}