@charset "utf-8";

/* 분류 탭 */
#bo_cate .active a {
    font-weight: 700;
}

/* 모바일 분류 — 2줄×5칸 격자(핫딜과 동일 톤), Sly·화살표 없음 */
@media all and (max-width: 767px) {
    #bo_cate.news-cate-grid--mo .news-cate-wrap {
        overflow: hidden;
        border-radius: 6px;
    }

    #bo_cate.news-cate-grid--mo .news-cate-ul {
        display: flex;
        flex-wrap: wrap;
        width: 100%;
        margin: 0;
        padding: 0;
        border-left: 1px solid #e5e5e5;
        border-top: 1px solid #e5e5e5;
        border-radius: 6px;
    }

    #bo_cate.news-cate-grid--mo .news-cate-ul > li {
        flex: 0 0 20%;
        max-width: 20%;
        box-sizing: border-box;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    #bo_cate.news-cate-grid--mo .news-cate-ul > li a {
        display: block;
        white-space: normal;
        word-break: keep-all;
        line-height: 1.35;
        font-size: 13px;
        padding: 0.55rem 0.15rem !important;
        text-align: center;
        color: #333;
        background: #fafafa;
        border-right: 1px solid #e5e5e5;
        border-bottom: 1px solid #e5e5e5;
        border-left: 0;
        border-top: 0;
        text-decoration: none;
    }

    #bo_cate.news-cate-grid--mo .news-cate-ul > li.active a {
        background: #fff;
        font-weight: 700;
        color: #212529;
        position: relative;
        z-index: 1;
    }

    /* 전체+7분류=8칸 → 5열(1행 5 + 2행 3) 모서리 */
    #bo_cate.news-cate-grid--mo .news-cate-ul > li:first-child a {
        border-top-left-radius: 5px;
    }

    /* 1행 마지막(훈련): 2행이 3칸만 있어 우하단 외곽 모서리도 라운드 */
    #bo_cate.news-cate-grid--mo .news-cate-ul > li:nth-child(5) a {
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    #bo_cate.news-cate-grid--mo .news-cate-ul > li:nth-child(6) a {
        border-bottom-left-radius: 5px;
    }

    #bo_cate.news-cate-grid--mo .news-cate-ul > li:nth-child(8) a {
        border-bottom-right-radius: 5px;
    }
}

.profile_img {display:none !important;}
.kind-select {
    display: inline-block;
    height: calc(1.5em + .75rem + 2px);
    padding: .375rem 1.75rem .375rem .75rem;
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.5;
    color: #495057;
    vertical-align: middle;
    background: #fff url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' width='4' height='5' viewBox='0 0 4 5'%3e%3cpath fill='%23343a40' d='M2 0L0 2h4zm0 5L0 3h4z'/%3e%3c/svg%3e") right .75rem center/8px 10px no-repeat;
    border: 1px solid #ced4da;
    border-radius: .25rem;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
}

/* 커뮤니티 글쓰기: 유튜브 URL 자동 처리 사용으로 동영상 버튼 숨김 */
#bo_w .btn-group button[title="동영상"][onclick^="na_clip('video'"] {
	display: none !important;
}
/* 동영상 버튼이 DOM상 첫번째로 남아 btn-group 라운드가 깨지는 문제 보정 */
#bo_w .btn-group button[title="동영상"][onclick^="na_clip('video'"] + .btn {
	border-top-left-radius: 0.3rem !important;
	border-bottom-left-radius: 0.3rem !important;
}
/* 모바일 목록 */
@media all and (max-width:767px) {
	.responsive #bo_list .float-left.float-md-none {
		margin-right:1.0rem;
	}
	.responsive #bo_list .na-title {
		margin-bottom:0.14rem;
	}
}

/* 게시판 읽기 */
#bo_v_title {
	font-size:23px;
	font-weight:bold;
	line-height:1.4;
	letter-spacing:-1px;
}
#bo_v_con {
	min-height:200px; 
	word-break:break-all;
	overflow:hidden
}
@media all and (max-width:575px) {
	.responsive #bo_v_title {
		font-size:20px;
		line-height:1.5;
	}
	.responsive #bo_v_con { 
		min-height:140px; 
	}
}

#bo_v_con img {
	max-width:100%;
	height:auto
}
#bo_v_img {
	width:100%;
	text-align:center;
	overflow:hidden;
	zoom:1;
}
#bo_v_img:after {
	display:block;
	visibility:hidden;
	clear:both;
	content:"";
}
#bo_v_img img {
	display: block;
	margin-bottom: 1.0rem;
	cursor: default;
}

#bo_v_con .view-content img {
	cursor: default;
}

/* 게시판 읽기 : SNS 공유 */
#bo_v_sns_icon { 
	margin:-5px auto; 
}
#bo_v_sns_icon img { 
	width:40px; 
	border-radius:50%; 
	margin:5px;
}

/* 게시판 댓글 : 내용 */
.cmt-reply {
	top:0;
	left:-16px;
}
.by-writer { 
	background:#fbefef !important;
	border-top:1px solid #f6cece !important;
}
.cmt-content {
	word-break:break-all;
	overflow:hidden
}
.cmt-content img {
	max-width:100%;
	height:auto
}

/* 게시판 댓글 : 대댓글, 수정, 삭제 */
.cmt-btn ul { 
	list-style: none; 
	margin: 0; 
}
.cmt-btn ul > li { 
	float: left; 
	font-size:12px;
	padding: 0 10px; 
}
.cmt-btn ul > li::before { 
	float: left; 
	color:#ccc; 
	content: "|"; 
	margin-left:-12px;
}
.cmt-btn ul > li:last-child { 
	padding-right:0;
}
.cmt-btn ul > li:first-child::before, 
.cmt-btn ul > li.no-bar::before { 
	content: ""; 
	margin-left:0; 
}
.cmt-btn ul > li > a { 
	float:left;
	color:#888;
	white-space:nowrap;	
}

/* 게시판 댓글 : 쓰기폼 */
#fviewcomment #wr_content { 
	resize:none; 
}

.cmt-best .cmt-header {background:#eaf2ff; border-top:1px solid #3180ff}
span.best {background:#3180ff; color:#ffffff; font-size:11px; display:inline-block;  padding:1px 4px; margin-bottom:4px;}
@media all and (max-width:575px) {
	.responsive .cmt-box {
		border-right:0 !important;
	}
	.responsive #bo_vc_w .cmt-box {
		border-left:0 !important;
		border-radius:0 !important;
	}
	.responsive #bo_vc_login {
		border-left:0 !important;
		border-right:0 !important;
		border-radius:0 !important;
	}
}

/* 게시판 댓글 : SNS 등록 */
#bo_vc_opt ol {	
	margin:0;
	padding:0;
	list-style:none;
	zoom:1; 
	background:#ccc;
	border-radius:3px;
}
#bo_vc_opt ol:after { 
	display:block;
	visibility:hidden;
	clear:both;
	content:""; 
}
#bo_vc_opt ol li { 
	float:left;
	margin:0; 
}
#bo_vc_send_sns ul { 
	margin:0;
	padding:0;
	list-style:none;
	zoom:1; 
}
#bo_vc_send_sns ul:after { 
	display:block;
	visibility:hidden;
	clear:both;
	content:""; 
}
#bo_vc_send_sns ul li {	
	float:left;
	margin:0 1.0rem 0 0;
}
#bo_vc_send_sns input {	
	margin:0 0 0 0.5rem;
}

/* 게시판 쓰기 */
#bo_w .list-group-item {
	padding-left:0;
	padding-right:0;
	border-left:0;
	border-right:0;
}
#bo_w #wr_content { 
	margin-bottom:1.0rem !important;
}
@media all and (max-width:575px) {
	#bo_w .list-group-item {
		padding-left:1.0rem;
		padding-right:1.0rem;
	}
	.responsive #bo_w #wr_content {
		max-height:160px !important;
	}
}

/* 글쓰기 — 분류 라디오 */
.news-write-cate .custom-control-inline {
    margin-right: 0.75rem;
    margin-bottom: 0.5rem;
}

/* 상세 — 본문 가로 넘침 방지 */
#bo_v_con {
    max-width: 100%;
    word-break: break-word;
    overflow-wrap: anywhere;
    overflow-x: hidden;
}

#bo_v_con .view-content {
    max-width: 100%;
    overflow-x: hidden;
}

#bo_v_con iframe,
#bo_v_con video,
#bo_v_con embed,
#bo_v_con object {
    max-width: 100% !important;
    height: auto !important;
}

#bo_v_con table {
    max-width: 100% !important;
    width: 100% !important;
    table-layout: fixed;
}

#bo_v_con td,
#bo_v_con th {
    word-break: break-word;
    overflow-wrap: anywhere;
}

/* 상세 — 뉴스 정보 표 */
#news_v_info {
    --news-info-border-w: 0.334px;
    --news-info-border-c: #dee2e6;
}

#news_v_info .news-info-table-outer {
    border: var(--news-info-border-w) solid var(--news-info-border-c) !important;
    border-radius: 6px;
    overflow: hidden;
}

#news_v_info .news-info-table-outer .news-info-table {
    margin-bottom: 0;
    border: 0 !important;
}

#news_v_info .news-info-table-outer .news-info-table.table-bordered > tbody > tr > th,
#news_v_info .news-info-table-outer .news-info-table.table-bordered > tbody > tr > td {
    border: var(--news-info-border-w) solid var(--news-info-border-c) !important;
}

@media all and (min-width: 768px) {
    #news_v_info .news-info-table-outer {
        border: none !important;
        border-radius: 3px;
        overflow: hidden;
    }

    #news_v_info .news-info-table-outer .news-info-table {
        border-collapse: separate !important;
        border-spacing: 0 !important;
    }

    #news_v_info .news-info-table-outer .news-info-table.table-bordered > tbody > tr > th,
    #news_v_info .news-info-table-outer .news-info-table.table-bordered > tbody > tr > td {
        border: none !important;
        border-right: var(--news-info-border-w) solid var(--news-info-border-c) !important;
        border-bottom: var(--news-info-border-w) solid var(--news-info-border-c) !important;
    }

    #news_v_info .news-info-table-outer .news-info-table.table-bordered > tbody > tr > th:first-child,
    #news_v_info .news-info-table-outer .news-info-table.table-bordered > tbody > tr > td:first-child {
        border-left: var(--news-info-border-w) solid var(--news-info-border-c) !important;
    }

    #news_v_info .news-info-table-outer .news-info-table.table-bordered > tbody > tr:first-child > th,
    #news_v_info .news-info-table-outer .news-info-table.table-bordered > tbody > tr:first-child > td {
        border-top: var(--news-info-border-w) solid var(--news-info-border-c) !important;
    }
}

@media all and (max-width: 767px) {
    #news_v_info {
        max-width: 100%;
        overflow-x: hidden;
    }

    #news_v_info .news-info-table-outer {
        max-width: 100%;
        border-radius: 6px;
    }

    #news_v_info .news-info-table {
        width: 100%;
        max-width: 100%;
        table-layout: fixed;
    }

    #news_v_info .news-info-th {
        width: 5.75rem;
        min-width: 0;
        max-width: 32%;
        white-space: nowrap;
        vertical-align: middle;
    }

    #news_v_info .news-info-table td {
        min-width: 0;
        word-break: break-all;
        overflow-wrap: anywhere;
        vertical-align: middle;
    }

    #news_v_info .news-info-table td a {
        word-break: break-all;
        overflow-wrap: anywhere;
    }
}

.news-info-table,
.news-info-table th,
.news-info-table td {
    font-size: 1rem;
    vertical-align: middle;
}

.news-info-th {
    width: 8.5rem;
    min-width: 8.5rem;
    background: #f8f9fa;
    font-weight: 600;
    white-space: nowrap;
    text-align: left;
    padding-left: 0.65rem;
    padding-right: 0.75rem;
}

.news-info-th .vi {
    display: inline;
    width: auto;
    margin: 0;
    padding: 0;
    line-height: 1;
    vertical-align: baseline;
}

