
.board-cont {
    margin-top:20px;
    /* padding: 10px; */
    background: #ffffff;
    border-radius: 5px;
}


.board-title {    
    font-size: 18px;
    /* font-weight: bold; */
    /* color: #171717; */
    color: #fff;
    position: relative;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #fdfdfd;
    border-bottom: 2px solid #eee;
    border-bottom-left-radius: 8px;
    width: 100%;
    margin: 0 auto 20px;
    height: 50px;
    line-height: 1;
}

.board-title .main-title {
    background: #a31717;
    padding: 15px 30px;
    border-top-left-radius: 6px;
    color: white;
    border-bottom-left-radius: 6px;
    white-space: nowrap;
    letter-spacing: 5px;
}

.board-title .btn-write {
        display: flex ;
        align-items: center;
        /* background-color: #f7f7f7; */
        background-color: #fff;
        /* color: #171717; */
        color: #000;
        border: 1px solid #aaa;
        padding: 10px 20px;
        border-radius: 4px;
        cursor: pointer;
        font-size: 14px;
        font-weight: 400;
        white-space: nowrap;
}

.board-list {width:100%;}
.board-tabs {
    width:100%;
    /* display:grid;
    grid-template-columns: repeat(8, minmax(0, 1fr));gap: 0px 0px;  */
    padding: 38px;
    white-space: nowrap;
}

.board-tabs dd {display:inline-flex;align-items: center;justify-content:center;height:44px;
    /* border:solid 1px #ddd; */
    margin-left:-1px;margin-top:-1px;font-size:12px;}
.board-tabs dd a {color: #121212; padding:20px;
    font-size: 18px;display:flex;align-items: center;width:100%;height:100%;justify-content: center;}
/* .board-tabs dd.active {background:white;} */
.board-tabs dd.active a {    
    color: black;
    font-weight: bold;
    padding: 24px;
    width: 80%;
    border-bottom: 3px solid #db3232;
    white-space: nowrap;

}


.board-list .desktop {width:100%;   }
.board-list .desktop tr th {height: 46px;
    border-bottom: solid 1px #999;
    color: #333;
    border-top: solid 2px #000000;
    text-align: center;
    font-size: 14px;
    background: #ffffff;
    color: #232323;
    font-weight: 500;
    white-space: nowrap;;
}
.board-list .desktop tr td {
    /* padding:5px 10px;font-size:14px;text-align:center;border-top:solid 1px #eee; */
    padding: 5px 10px;
    font-size: 14px;
    text-align: center;
    border-top: solid 1px #eee;
    white-space: nowrap; /* ✅ 줄바꿈 방지 */
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 50% /* ✅ 가로 최대 너비 제한 */
}
.board-list .desktop tr td .content {
    /* color: #454545; display: inline-block;  white-space: nowrap;overflow: hidden; text-overflow: ellipsis; */
    display: inline-block; /* ✅ inline-block 대신 flex 사용 */
    align-items: center; /* ✅ 수직 정렬 */
    /* max-width: 100%; */
    max-width: 450px;
    min-width: 50px; /* ✅ 최소 너비 지정 → 글자 앞부분 보이게 */
    flex-shrink: 1; /* ✅ 글자가 넘칠 경우만 줄어들게 설정 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-top:10px;
}

.board-list .desktop tr td .content .new {
    position: relative;
    top: -1px;
    display: inline-block;
    padding: 0;
    margin: 0;
    color: #fff;
    overflow: hidden;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: left top;
    width: 12px;
    height: 12px;
    margin-right:5px;
}

.board-list .mobile .item .content .subject .new {
    position: relative;
    top: -1px;
    display: inline-block;
    padding: 0;
    margin: 0;
    color: #fff;
    overflow: hidden;
    vertical-align: middle;
    background-repeat: no-repeat;
    background-position: left top;
    width: 12px;
    height: 12px;
    margin-right:5px;
}

.board-list .desktop tr td strong {font-weight:bold;}
.board-list .desktop tr td span.bold {color:#000;}
.board-list .desktop tr td .bd_tags {display:block;font-size:12px;color:#666;margin-top:8px;}
.board-list .desktop tr td .bd_tags span {color:#666;}
.board-list .desktop tr td .bd_tags span + span {margin-left:5px;}
.board-list .desktop tr.desc {display:none;background:#f8f8f8;}

.board-list .desktop tr td .cmt {
    color: #d31900;
    margin-left: 3px;
    font-size: 13px;
    display: inline-flex;
    align-items: center;
    line-height: 1;
}
.board-list .desktop tr td .cmt i {    color: #f33;font-size:13px;}
.board-list .desktop tr td.num {color:#999;}
.board-list .desktop tr td.date {color:#999;font-size:12px; white-space: nowrap;}
.board-list .desktop tr td.name {color:#454545;font-size:13px;}
.board-list .desktop tr td.name .profile {display:flex;align-items: center;justify-content: center;cursor:pointer;}
.board-list .desktop tr td.name .profile.justify_left {justify-content: left;}
.board-list .desktop tr td.name img {
    width: 38px;
    height: 38px;
    /* border-radius: 28px; */
    padding: 1px;
    background: #f7f7f7;
    border: none;
    object-fit: cover;
}
.board-list .desktop tr td.name .nick {color:#666;font-size:12px; white-space: nowrap;}
.board-list .desktop tr td.name .grade img {margin-left:4px;width:14px;height:14px;border-radius:0px;display:flex;}
.board-list .desktop tr td.fav {color:#a31717;font-size:12px;}
.board-list .desktop tr td.hate { color:#1809f5;font-size:12px;}
.board-list .desktop tr td.fav span {color:#a31717;font-size:12px;}
.board-list .desktop tr td.fav span.hate {color:#f33;font-size:12px;}
.board-list .desktop tr td.click {color:#454545;font-size:12px;}
.board-list .desktop tr td .btn-start {background:#333;padding:4px 10px;color:#fff;font-size:13px;border-radius:5px;}
.board-list .desktop tr td a:hover {text-decoration: underline;color:#444;}
.board-list .desktop tr td .img {width:16px;height:16px;border-radius:5px;color:#aaa;display:inline-flex;align-items: center;justify-content: center;margin-left:5px;}
.board-list .desktop tr td .video {width:20px;height:20px;border-radius:5px;color:#aaa;display:inline-flex;align-items: center;justify-content: center;margin-left:5px;}
.board-list .desktop tr td .cate {padding:2px 6px;background:#eee;border-radius:5px;margin-right:5px;font-size:11px;}
.board-list .desktop tr:hover {background:#F9F9F9;}

.board-list .desktop .info .team {

}
.board-list .desktop .info img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 5px;
    aspect-ratio: 1 / 1;
}

.board-list .desktop .info2 img {
    width: 80px;
    height: 80px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 10px;
    aspect-ratio: 1 / 1;
}




.board-list .mobile {display:none;border-top:solid 1px #454545;} 
.board-list .mobile .item {background:#fff;border-bottom:solid 1px #eee; padding:4px;}
.board-list .mobile .item .inner {display:flex;align-items: start; img {width: 40px;height: 40px;border-radius: 5px;object-fit: cover;margin-right: 10px;aspect-ratio: 1/1;}}
.board-list .mobile .item .left {width:60px;display:inline-flex;align-items: center;margin-top:5px;}
.board-list .mobile .item .left .member-image {width:40px !important;height:40px !important;}
.board-list .mobile .item .left .member-image i {color:#454545;}
.board-list .mobile .item .content {width:100%;}
/* .board-list .mobile .item .content .subject {font-size:14px;color:#454545;line-height:22px;} */
.board-list .mobile .item .content .subject {
    font-size:13px;color:#000;
    /* line-height:15px;  */
    display: -webkit-box;             
    -webkit-line-clamp: 1;           
    -webkit-box-orient: vertical;     
    overflow: hidden;                
    text-overflow: ellipsis;          
}
.board-list .mobile .item .inner img {
    width: 40px;
    height: 40px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 5px;
    aspect-ratio: 1 / 1;
}







.board-list .mobile .item .content .subject .img {color:#ddd;margin-left:5px;font-size:13px;}
.board-list .mobile .item .content .subject .video {color:#ddd;margin-left:5px;font-size:13px;}
.board-list .mobile .item .content .subject .cmt {color:#ddd;margin-left:5px;font-size:13px;}
.board-list .mobile .item .content .subject .cmt i {color:#ddd;font-size:13px;}
.board-list .mobile .item .add-info {font-size:13px;color:#aaa;margin-top:4px;line-height: 1.5;}
.board-list .mobile .item .add-info .nick {
    color:#44a1ef;
}
.board-list .mobile .item .add-info span i {margin-right:2px;}
.board-list .mobile .item .add-info span + span {margin-left:5px;}
.board-list .mobile .item .bd_tags {display:block;font-size:12px;color:#666;margin-top:5px;padding-left:50px;}
.board-list .mobile .item .bd_tags span {color:#666;}
.board-list .mobile .item .bd_tags span + span {margin-left:5px;}
.board-list .mobile .item .cate {padding:2px 6px;background:#eee;border-radius:5px;margin-right:5px;font-size:11px;}
.board-list .mobile .item:last-child {border-bottom:none;}


.wrap-detail .board .main_banner {

}

.wrap-detail .board .main_banner img{
    /* height:140px; */
    height:100px;
}
.wrap-detail .board .ad_banner {
        /* 
        display: flex;
        flex-direction: row;
        gap: 10px;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: center; 
        */

        display: grid;
        flex-direction: row;
        gap: 10px;
        flex-wrap: nowrap;
        align-content: center;
        justify-content: center;
        grid-template-columns: repeat(2, 1fr);

}

.wrap-detail .board .ad_banner a{
    width:100%;
}
/* .wrap-detail .board .ad_banner img {
   width:50%;
   margin-top: 10px;
} */
.wrap-detail .board .ad_banner img:nth-child(1) {
    margin-top: 10px;
}
.wrap-detail .board .ad_banner img {
    width:100%;
    margin-top: 5px;
    height: 100px;
 }
div.inputTags-list span.inputTags-item i {margin-top:-3px;}
.note-editor {width:100%;}

.wrap-detail .board .user-info .inner li{
    height: 100%;
    margin-top: 5px;
}

.wrap-detail .board .title2 {
    height:100%;
    width: 100%;
}



/* 대회 게시판 */
.board-list .mobile .item2 {
    background:#fff;border-bottom:solid 1px #eee; padding:4px;
}
.board-list .mobile .item2 .inner2 .content .subject {
    padding-left: 5px;
    font-size: 18px;
    height: 40px;
    margin-top: 15px;
    color: #454545;
    display: -webkit-box;
    /* -webkit-line-clamp: 1; */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;        
}


.board-list .mobile .item2 .inner2 {

    display:flex; 
    flex-direction: row; /* 세로 정렬 */
    height: 100%; /* 부모 높이를 꽉 채우도록 설정 */
    
}

.board-list .mobile .item2 .inner2 img {
    width: 80px;
    height: 120px;
    border-radius: 5px;
    object-fit: cover;
    margin-right: 5px;
    aspect-ratio: 1 / 1;
}

.board-list .mobile .item2 .content .subject .img {color:#ddd;margin-left:5px;font-size:13px;}
.board-list .mobile .item2 .content .subject .video {color:#ddd;margin-left:5px;font-size:13px;}
.board-list .mobile .item2 .content .subject .cmt {color:#ddd;margin-left:5px;font-size:13px;}
.board-list .mobile .item2 .content .subject .cmt i {color:#ddd;font-size:13px;}
.board-list .mobile .item2 .add-info {
         display: flex;
        font-size: 13px;
        color: #aaa;
        margin-top: auto;
        padding: 0px 4px;
        /* justify-content: space-between; */
        position: relative;
        bottom: -40px;
}
.board-list .mobile .item2 .add-info .nick {
    color:#44a1ef;
}
.board-list .mobile .item2 .add-info span i {margin-right:2px;}
.board-list .mobile .item2 .add-info span + span {margin-left:5px;}
.board-list .mobile .item2 .bd_tags {display:block;font-size:12px;color:#666;margin-top:5px;padding-left:50px;}
.board-list .mobile .item2 .bd_tags span {color:#666;}
.board-list .mobile .item2 .bd_tags span + span {margin-left:5px;}
.board-list .mobile .item2 .cate {padding:2px 6px;background:#eee;border-radius:5px;margin-right:5px;font-size:11px;}
.board-list .mobile .item2:last-child {border-bottom:none;}




.board-list .desktop { display: table;}
.board-list .mobile { display: none;}

.board-list .view-title {
    text-align: right;
    padding:5px 0;
}

.board-list .view-title .view-button {
    padding: 4px;
    cursor: pointer;
}

.board-list .view-title .view-button.active {
    padding: 4px;
    cursor: pointer;
}

.board-list .view-title .view-button img {
    width: 30px;
    height: 30px;
    cursor: pointer;
}


/* 헤더 반응형 처리 : 960 */
@media screen and (max-width:680px) {
    .board-cont {
        padding:0px;
    }
    #contents {
        padding:0px;
    }
    .board-title {
        
    }
    .board-title .main-title {
       
    }
    .board-tabs {
        display:flex;
        padding:0px;
        margin-left: 30px;
    }
    .board-tabs dd {
        margin-left:0px;margin-top:0px;display: inline-block;margin-right:2px;padding:0px 12px;cursor: pointer;
        /* background:#f9f9f9; */
        height:40px;font-size:12px;border-radius:3px;display:inline-flex;align-items: center;justify-content: center;
    }

    .board-tabs dd a {
        font-size: 16px;
        padding:0px;
        margin-top: -15px;
        width: 100%;
    }
    .board-tabs dd.active a {
        padding:0px;
    }
    .board-list .desktop { display: none;}
    .board-list .mobile { display: block;}
  
    .wrap-detail .board .ad_banner {
        display: flex;
        /* flex-direction: row; */
        flex-direction: column;
        /* gap: 10px; */
        width: 100%;
        gap:0;
        height: auto;
        /* object-fit:cover;
        aspect-ratio: 8.6415 / 1; */
    }
    
}

@media screen and (max-width:500px) { 
    .wrap-detail .board .main_banner img {
        height:80px;
    }
}
@media screen and (max-width:360px) { 
    .wrap-detail .board .main_banner img {
        height:70px;
    }
    

    .board-list .mobile .item2 .inner2 .content .subject {
        height: 35px;
        font-size:16px;
        margin-top:5px;
    }
    
    .board-list .mobile .item2 .add-info {
        display: flex;
        font-size: 13px;
        color: #aaa;
        flex-direction: column;
        margin-top: 4px;
        line-height: 1.5;
    }

}

@media screen and (min-width:680px) and  (max-width:1000px){
    .wrap-detail .board .ad_banner {
        /* display: flex;
        flex-direction: row; */
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap:5px;
        /* gap: 10px; */
        width: 100%;
        height: auto;
        /* object-fit:cover;
        aspect-ratio: 10.6415 / 1; */
    }
    .board-list .desktop tr td .content {
        color: black; display: inline-block; max-width: 250px; white-space: nowrap;overflow: hidden; text-overflow: ellipsis; 
    }
}
