@charset "utf-8";

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

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

    #bo_cate.community-cate-grid--mo .community-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.community-cate-grid--mo .community-cate-ul > li {
        flex: 0 0 20%;
        max-width: 20%;
        box-sizing: border-box;
        list-style: none;
        margin: 0;
        padding: 0;
    }

    /* 1~4칸 1행: 탭 수만큼만 블록 너비 (빈 상단선 제거) — 공통 20%보다 구체적 선택자 */
    #bo_cate.community-cate-grid--mo .community-cate-ul.community-cate-tabs-1,
    #bo_cate.community-cate-grid--mo .community-cate-ul.community-cate-tabs-2,
    #bo_cate.community-cate-grid--mo .community-cate-ul.community-cate-tabs-3,
    #bo_cate.community-cate-grid--mo .community-cate-ul.community-cate-tabs-4 {
        width: fit-content;
        max-width: 100%;
    }

    #bo_cate.community-cate-grid--mo .community-cate-ul.community-cate-tabs-1 > li,
    #bo_cate.community-cate-grid--mo .community-cate-ul.community-cate-tabs-2 > li,
    #bo_cate.community-cate-grid--mo .community-cate-ul.community-cate-tabs-3 > li,
    #bo_cate.community-cate-grid--mo .community-cate-ul.community-cate-tabs-4 > li {
        flex: 1 1 auto;
        width: auto;
        min-width: 4.25rem;
        max-width: none;
    }

    /* 5칸 이상: 모든 칸 20% 고정(러닝뉴스) — 2행은 1행 1~3열 아래에 정렬, 우측 빈칸 */

    #bo_cate.community-cate-grid--mo .community-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.community-cate-grid--mo .community-cate-ul > li.active a {
        background: #fff;
        font-weight: 700;
        color: #212529;
        position: relative;
        z-index: 1;
    }

    /* 외곽 모서리 */
    #bo_cate.community-cate-grid--mo .community-cate-ul > li:first-child a {
        border-top-left-radius: 5px;
    }

    /* 8칸(전체+7) — 러닝뉴스 동일: 1행5 + 2행3(1~3열 아래), 5번·8번 모서리 */
    #bo_cate.community-cate-grid--mo .community-cate-ul.community-cate-tabs-8 > li:nth-child(5) a {
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }

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

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

    /* 10칸 — 핫딜 동일 */
    #bo_cate.community-cate-grid--mo .community-cate-ul.community-cate-tabs-10 > li:nth-child(5) a {
        border-top-right-radius: 5px;
    }

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

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

    /* 6·7·9칸 — 20% 그리드 L자 외곽 */
    #bo_cate.community-cate-grid--mo .community-cate-ul.community-cate-tabs-6 > li:nth-child(5) a,
    #bo_cate.community-cate-grid--mo .community-cate-ul.community-cate-tabs-7 > li:nth-child(5) a,
    #bo_cate.community-cate-grid--mo .community-cate-ul.community-cate-tabs-9 > li:nth-child(5) a {
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }

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

    #bo_cate.community-cate-grid--mo .community-cate-ul.community-cate-tabs-7 > li:nth-child(7) a,
    #bo_cate.community-cate-grid--mo .community-cate-ul.community-cate-tabs-9 > li:nth-child(9) a {
        border-bottom-right-radius: 5px;
    }

    /* 1~4칸 1행만: 마지막 칸 우측 모서리 */
    #bo_cate.community-cate-grid--mo .community-cate-ul > li:last-child:nth-child(-n+4) a {
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }

    /* 5칸 1행만(전체+4분류) */
    #bo_cate.community-cate-grid--mo .community-cate-ul.community-cate-tabs-5 > li:nth-child(5):last-child a {
        border-top-right-radius: 5px;
        border-bottom-right-radius: 5px;
    }
}

/* 글쓰기 — 분류 라디오 */
.community-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;
}

.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;
}

#bo_v_con .view-content img,
#bo_v_img 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;
	}
}

