/* 본문 */  
/* 메인베너 */
.main_top {
    height: 450px;
    /* margin-top: 30px; */
    margin-bottom: 50px;
}
.main_banner {
    /* width: 100%; */
    height: 100%;
    
    background: url(../img/main_banner1.png) no-repeat center / cover; 
}
.banner {
    width: 65%;
    height: 100%;
    float: left;
    background: skyblue;
}

.notice {
    width: 35%;
    height: 100%;
    float: right;
    background: hotpink;
}


/* 오프라인 강좌 */
.offline {
    width: 100%;
    /* height: 400px; */
    /* margin-top: 30px; */
    padding: 30px 0 35px;
    box-sizing: border-box;
    background: #f5f5f5;
}
.title {
    font-size: 22px;
}
.item_container {
    width: 100%; 
    height: 305px; 
    margin-top: 10px;
    /* background: blue; */
}
.offline .item_contents {
    width: calc((100% - (10px * 2)) / 3 - 0.01px);
    /* height: 300px; */
    margin-right: 10px;
    background: #fff;
    box-shadow: 0 2px 5px 0px rgba(0,0,0,0.1);
    float: left;
    cursor: pointer;
}
.offline .item_contents:nth-child(4n) {
    margin-right: 0;
}
.offline .item_contents_img {
    width: 100%;
    height: 200px;
    background: gray;
}
.offline .item_contents_desc {
    padding: 10px;
    box-sizing: border-box;
}
.content_title { 
    overflow:hidden;
    text-overflow:ellipsis;
    display:-webkit-box;
    -webkit-line-clamp:2; /* 라인수 */
    -webkit-box-orient:vertical;
    word-wrap:break-word;
    line-height:25px;
    height:50px; /* height = line-height * 줄수 : 비wekkit 계열 */
    color: #454545;
    font-size: 16px;
}
.content_title:hover {
    text-decoration: underline;
}
.content_desc  {
    height: 20px;
    margin-top: 12px;
    font-size: 12px;
    color: #595959;
}  
.level, .group {
    float: left;
}
.selected {
    float: right;
    width: 20px;
    height: 20px;
    
    background: url(../img/heart_empty.png) no-repeat center / contain;
    cursor: pointer;
}
.selected_active {
    background: url(../img/heart.png) no-repeat center / contain;
}

/* 테스트중 */
/* 실제 컨텐츠들 */
.sel_sort, .ckb_diff { display: none;}
.class_material {
    /* position: relative; */
    width: calc(((100% - (10px * 2)) / 3) - 0.1px);
    overflow: hidden;;
    margin-right: 10px;
    margin-bottom: 10px;
    float: left;
    background: #fff;
    box-shadow: 0 2px 5px 0px rgba(0,0,0,0.2);
    box-sizing: border-box;
    border-radius: 5px;
}
.class_material:last-child {
    margin-right: 0;
} 
.class_material > .sec_title{ 
    border-bottom: 2px solid #ff4848;
} 
.material_title {
    overflow: hidden;
    height: 40px;
    line-height: 40px;

    padding: 0 10px;
}
.material_title > h3 {
    float: left;
    font-size: 16px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    width: calc(100% - 50px);
    color: #2f2f2f;
}
.material_title > span {
    float: right; 
}
.material_title .show_more {
    width: 30px;
    height: 40px;
    display: block;
    position: relative;
    right: -10px;
}
.material_title .show_more:hover::before,
.material_title .show_more:hover::after {
    transform: translate(-50%, -50%) rotate(180deg);
    background: #222;
} 
.material_title .show_more::before,
.material_title .show_more::after {
    content: "";
    display: block;
    background: #656565;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
    border-radius: 5px;
    transition: all 0.3s;
}
.material_title .show_more::before {
    width: 12px;
    height: 3px;  
}
.material_title .show_more::after {
    width: 3px;
    height: 12px;  
}
.material_contents {
    width: 100%;
    height: 251px;
    color: #454545;
}
.contents_row:nth-child(6) {
    border-bottom: none;
}
.material_contents > h2,
.item_container > h2 {
    text-align: center;
    color: red;
    line-height: 250px;
    font-size: 20px;
}
.contents_row {
    width: 100%;
    line-height: 40px;
    padding: 0 10px;
    box-sizing: border-box;
    overflow: hidden;
    vertical-align: middle;
    display: inline-block;
}
.contents_row:hover { 
    cursor: pointer;
    background-color: #1596f9;
    color: #fff;
    box-shadow: none;
}
.contents_title {
    float: left;
    max-width: calc(100% - 80px);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.contents_title > span {
    margin-left: 5px;
    font-size: 14px;
}
.contents_upload_date {
    float: right;
    width: 80px;
    text-align: right;
    font-size: 13px;
}
/* 테스트중 끝 */


/* 온라인 강좌 */
.online {
    width: 100%; 
    padding: 30px 0 35px;
    box-sizing: border-box; 
}
.online .item_contents {
    width: calc((100% - (10px * 3)) / 4 - 0.01px);
    margin-right: 10px;
    margin-bottom: 20px;
    background: #fff;
    box-shadow: 0 2px 5px 0px rgba(0,0,0,0.1);
    float: left;
    cursor: pointer;
}
.online .item_contents:hover {
    box-shadow: 3px 3px 10px 2px rgba(55,55,55,0.5);
    transition: all 0.2s;
}
.online .item_contents:nth-child(4n) {
    margin-right: 0;
}
.online .item_contents_img {
    width: 100%;
    height: 200px;
    background: gray;
}
.online .item_contents_desc {
    padding: 10px;
    box-sizing: border-box;
    border-top: 1px solid #ddd;
} 
 

@media screen and (max-width: 900px) { 
    /* 본문 */
    .main_section { 
        /* padding: 0px 0 30px; */
    }
    .main_top {
        height: 48vw;
        margin-bottom: 0px;
    }
    .main_banner {
        background: url(../img/main_banner1.png) no-repeat left top / cover;
    }
    .main_section > div:not(:first-child) {
        padding: 0;
        box-sizing: border-box;
    }
    /* 오프라인 */ 
    .class_material { 
        width: calc(((100% - (10px * 1)) / 2) - 0.1px); 
        margin-bottom: 0px; 
    }
    .class_material:nth-child(2) {
        margin-right: 0;
    }
    .class_material:last-child {
        display: none;
    } 

    /* 온라인 */
    .online .item_contents {
        width: calc((100% - (10px * 2)) / 3 - 0.01px);
        /* height: 300px; */
        margin-right: 10px;
        background: #fff;
        box-shadow: 0 2px 5px 0px rgba(0,0,0,0.1);
        float: left;
        cursor: pointer;
    } 
    .class_material:nth-child(3n) {
        margin-right: 0;
    }
    .online .item_contents:nth-child(3n) {
        margin-right: 0px;
    }
    .online .item_contents:nth-child(4n) {
        margin-right: 10px;
    }
}

@media screen and (max-width: 550px) { 
    /* 본문 */ 
    .main_section > div:not(:first-child) {
        padding: 10px 5px; 
    }
    .title {
        font-size: 20px;
    } 
    /* 오프라인 */
    .offline .item_container {
        height: auto;
    }
    .class_material {
        /* position: relative; */
        width: 100%; 
        margin-right: 0px;
        margin-bottom: 10px; 
        float: none;
    }
    .class_material:nth-child(2) {
        margin-right: 0;
    }
    .class_material:last-child {
        display: none;
    } 
    .contents_title {
        max-width: 100%; 
    }
    .contents_upload_date {
        display: none;
    }

    /* 온라인 */
    .online .item_container {
        height: auto;
        overflow: hidden;
    }
    .online .item_contents {
        width: calc((100% - (10px * 1)) / 2 - 0.01px);
        margin-right: 10px !important;
        background: #fff;
        box-shadow: 0 2px 5px 0px rgba(0,0,0,0.1);
        float: left;
        cursor: pointer;
    }  
    .online .item_contents:nth-child(2n) {
        margin-right: 0 !important;
    }
    /* .online .item_contents:nth-child(4n) {
        margin-right: 0;
    } */

}
 