/* 학습지원센터 게시판 (awsHtml/dep_05/board.html) — 게시판 엔진(awsPanMain.do) 마크업 스타일 */

/* 색·모서리·그림자는 guide_modern.css(:root --sj-guide-*)와 같은 값 */
body div.sub.sj-board.cf{
	--bd-accent:#243447;
	--bd-navy:#3d5a80;
	--bd-soft:rgba(61,90,128,.08);
	--bd-line:#e4e8ee;
	--bd-head:#f4f6f8;
	--bd-text:#2c3340;
	--bd-sub:#6b7380;
	--bd-radius:12px;
	--bd-shadow:0 8px 22px rgba(36,52,71,.07);
	width:min(1200px, 92%);
	max-width:none;
	margin:0 auto;
	padding-bottom:6.25rem;
	color:var(--bd-text);
	font-size:15px;
}
.sj-board ul, .sj-board li{list-style:none; margin:0; padding:0;}
.sj-board section{padding:0; margin:0;}
.sj-board .social-btn{display:none;}

/* ===== 상단: 총 게시글 + 검색 ===== */
.sj-board .sj-board-top{
	display:flex;
	flex-wrap:wrap;
	align-items:flex-end;
	justify-content:space-between;
	gap:12px 20px;
	margin:3rem 0 16px;
}
.sj-board .sj-board-total{font-size:14px; color:#555;}
.sj-board .sj-board-total b{color:var(--bd-accent); font-family:"Montserrat_B", Montserrat, Arial, sans-serif;}
.sj-board .sj-board-top form{margin:0;}
.sj-board .boardSearch{display:flex; align-items:center; gap:10px;}
.sj-board .boardSearch select{
	height:38px;
	min-width:100px;
	padding:0 26px 0 4px;
	border:0;
	border-bottom:1px solid #333;
	border-radius:0;
	background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='6'%3E%3Cpath d='M0 0h10L5 6z' fill='%23333'/%3E%3C/svg%3E") no-repeat right 4px center;
	font-size:14px;
	color:#333;
	-webkit-appearance:none;
	        appearance:none;
}
.sj-board .boardSearch input[type=text]{
	width:260px;
	height:38px;
	padding:0 8px;
	border:0;
	border-bottom:1px solid #333;
	border-radius:0;
	background:transparent;
	font-size:14px;
}
.sj-board .boardSearch input[type=text]::placeholder{color:#b5bbc2;}
.sj-board .boardSearch input[type=text]:focus{outline:0; border-bottom-color:var(--bd-navy);}
.sj-board .btn_bbs_search{
	width:38px;
	height:38px;
	margin-left:-10px;
	border:0;
	border-bottom:1px solid #333;
	background:transparent url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%23222' stroke-width='2.4' stroke-linecap='round'%3E%3Ccircle cx='10.5' cy='10.5' r='7'/%3E%3Cpath d='m16 16 5 5'/%3E%3C/svg%3E") no-repeat center;
	font-size:0;
	cursor:pointer;
}

/* ===== 카테고리 탭 ===== */
.sj-board .category-tap{margin-top:3rem; text-align:center;}
.sj-board .category-tap:empty{display:none;}
.sj-board .cate-tap{display:flex; flex-wrap:wrap; justify-content:center; gap:8px;}
.sj-board .cate-tap li a{
	display:block;
	min-width:72px;
	padding:9px 20px;
	border:1px solid #d5d9de;
	border-radius:30px;
	background:#fff;
	color:#666;
	font-size:1rem;
	transition:all .2s ease;
}
.sj-board .cate-tap li a:hover{border-color:var(--bd-navy); color:var(--bd-navy); background:var(--bd-soft);}
.sj-board .cate-tap li.active a{border-color:transparent; background:var(--bd-accent); color:#fff; box-shadow:0 8px 18px rgba(36,52,71,.16);}
.sj-board #formCate{display:none;}
.sj-board .category-tap + .sj-board-top{margin-top:2rem;}

/* ===== 목록 ===== */
.sj-board .contable{width:100%; margin:0; overflow:visible;}
.sj-board > ul.contable,
.sj-board .detail_notice{
	overflow:hidden;
	border:1px solid var(--bd-line) !important;
	border-radius:var(--bd-radius);
	background:#fff;
	box-shadow:var(--bd-shadow);
}
.sj-board > ul.contable .section-box:last-child .ul-1,
.sj-board > ul.contable .ul-faq:last-child,
.sj-board .detail_notice .dtable:last-child{border-bottom:0;}
.sj-board .contable .section-box{display:block; width:100%;}
.sj-board .contable .ul-1{
	display:flex;
	align-items:center;
	min-height:50px;
	border-bottom:1px solid var(--bd-line);
	background:#fff;
}
.sj-board .contable .ul-1 > li{
	flex:0 0 13%;
	padding:12px 6px;
	box-sizing:border-box;
	text-align:center;
	font-size:14px;
	color:#555;
}
.sj-board .contable .ul-1 > li:first-child{flex-basis:9%;}
.sj-board .contable .ul-1 > li:nth-child(2){
	flex:1 1 auto;
	min-width:0;
	padding-left:20px;
	text-align:left !important;
	color:var(--bd-text);
}
.sj-board .contable .ul-1 > li:nth-child(3){display:none;}
.sj-board .table-title .ul-1,
.sj-board > ul.contable .table-title .section-box:last-child .ul-1{
	min-height:50px;
	border-bottom:1px solid var(--bd-line);
	background:var(--bd-head);
}
.sj-board .table-title .ul-1 > li{color:var(--bd-accent); font-weight:600;}
.sj-board .table-title .ul-1 > li:nth-child(2){padding-left:6px; text-align:center !important;}
.sj-board .table-textlist .section-box{cursor:pointer;}
.sj-board .table-textlist .section-box:hover .ul-1{background:rgba(61,90,128,.04);}
.sj-board .table-textlist .bbsSubject,
.sj-board .table-textlist .ul-1 > li:nth-child(2){
	overflow:hidden;
	text-overflow:ellipsis;
	white-space:nowrap;
}
.sj-board .table-textlist .section-box:hover .subject{color:var(--bd-navy); text-decoration:underline; text-underline-offset:3px;}
.sj-board .max480{display:none;}
.sj-board .cateName{margin-right:6px; color:var(--bd-navy); font-weight:600;}
.sj-board .lockIcon{width:13px; height:auto; margin-left:6px; vertical-align:-1px; opacity:.6;}
.sj-board .icon_qna_notice{
	padding:3px 10px;
	border:0;
	border-radius:20px;
	background:var(--bd-accent);
	color:#fff;
	font-size:12px;
}
.sj-board .repl-1, .sj-board .repl-2, .sj-board .repl-3{
	width:auto;
	height:auto;
	padding:4px 10px;
	border:0;
	border-radius:20px;
	color:#fff;
	font-size:12px;
	line-height:1.2;
	cursor:default;
}
.sj-board .repl-1{background:#c9534a;}
.sj-board .repl-2{background:#3f9a5c;}
.sj-board .repl-3{background:var(--bd-navy);}
.sj-board .nodata, .sj-board .no-data{padding:40px 0; text-align:center; color:var(--bd-sub);}
.sj-board .table-textlist:not(:has(.section-box))::before{
	content:"게시글이 없습니다.";
	display:block;
	padding:44px 0;
	border-bottom:1px solid var(--bd-line);
	text-align:center;
	color:var(--bd-sub);
	font-size:14px;
}

/* ===== FAQ ===== */
.sj-board .ul-faq{border-bottom:1px solid var(--bd-line);}
.sj-board .ul-faq .flip{
	position:relative;
	display:flex;
	align-items:center;
	gap:14px;
	padding:20px 54px 20px 16px;
	cursor:pointer;
	font-size:15px;
	color:var(--bd-text);
	transition:background .2s ease;
}
.sj-board .ul-faq .flip:hover{background:rgba(61,90,128,.04);}
.sj-board .ul-faq .flip::after{
	content:"";
	position:absolute;
	right:22px;
	top:50%;
	width:9px;
	height:9px;
	border-right:2px solid #8a939c;
	border-bottom:2px solid #8a939c;
	transform:translateY(-70%) rotate(45deg);
	transition:transform .25s ease;
}
.sj-board .ul-faq .flip.active::after{transform:translateY(-30%) rotate(-135deg);}
.sj-board .ul-faq .flip.active{color:var(--bd-navy); font-weight:600;}
.sj-board .ul-faq .q-icon{flex:0 0 26px; width:26px; height:26px; fill:var(--bd-navy);}
.sj-board .ul-faq .panel{
	padding:22px 24px 26px 56px;
	border-top:1px solid var(--bd-line);
	background:#f7f9fb;
	font-size:14px;
	line-height:1.8;
	color:#555;
}
.sj-board .ul-faq .panel img{max-width:100%; height:auto;}

/* ===== 읽기 ===== */
.sj-board .detail_notice{display:block; margin-top:3rem !important;}
.sj-board .dtable{display:flex; width:100%; border-bottom:1px solid var(--bd-line);}
.sj-board .dtable .table-th{
	flex:0 0 120px;
	padding:14px 16px;
	box-sizing:border-box;
	background:var(--bd-head);
	color:var(--bd-accent);
	font-size:14px;
	font-weight:600;
}
.sj-board .dtable .table-td{flex:1 1 auto; min-width:0; padding:14px 16px; box-sizing:border-box; font-size:14px;}
.sj-board .dtable:first-child .table-td{font-size:17px; font-weight:600; color:#222;}
.sj-board .dtable.col2 .table-td{flex:1 1 0;}
.sj-board .dtable .table-td a{color:#444;}
.sj-board .dtable .table-td a:hover{color:var(--bd-navy); text-decoration:underline;}
.sj-board .dtable:has(.content_box) .table-td{padding:36px 20px !important;}
.sj-board .content_box{font-size:15px; line-height:1.85; color:#333; word-break:keep-all;}
.sj-board .content_box img{max-width:100%; height:auto;}

/* ===== 버튼 / 페이지 ===== */
.sj-board .bbs-normalbtn{
	min-width:96px;
	height:42px;
	margin:24px 0 0 6px;
	padding:0 20px;
	border:1px solid #c5d0de;
	border-radius:999px;
	background:#fff;
	color:var(--bd-accent);
	font-size:14px;
	cursor:pointer;
	transition:transform .25s ease, box-shadow .25s ease, background .25s ease, color .25s ease;
}
.sj-board .bbs-normalbtn:hover{
	border-color:transparent;
	background:var(--bd-accent);
	color:#fff;
	transform:translateY(-3px);
	box-shadow:0 10px 22px rgba(36,52,71,.16);
}
.sj-board .bbslist.btn_left{float:left;}
.sj-board .bbslist.btn_right{float:right;}
.sj-board .page{margin-top:36px; text-align:center;}
.sj-board .cd-pagination{display:inline-flex; align-items:center; gap:4px;}
.sj-board .cd-pagination li a{
	display:flex;
	align-items:center;
	justify-content:center;
	width:30px;
	height:30px;
	border-radius:50%;
	color:#666;
	font-family:"Montserrat_R", Montserrat, Arial, sans-serif;
	font-size:14px;
	transition:all .2s ease;
}
.sj-board .cd-pagination li a:hover:not(.disabled):not(.current){color:var(--bd-accent);}
.sj-board .cd-pagination li a.current{background:var(--bd-accent); color:#fff; font-weight:600;}
.sj-board .cd-pagination li.button a{color:#999;}
.sj-board .cd-pagination li.button a.disabled{color:#d3d6da; cursor:default;}
.sj-board .cd-pagination .pg-ico{width:15px; height:15px;}

/* ===== mobile ===== */
@media (max-width:768px){
	div.sub.sj-board{padding:0 16px 3rem; box-sizing:border-box; font-size:14px;}
	.sj-board .sj-board-top{flex-direction:column; align-items:stretch;}
	.sj-board .boardSearch{flex-wrap:wrap; gap:8px 10px;}
	.sj-board .boardSearch select{flex:1 1 100%;}
	.sj-board .boardSearch #scate{display:none;}
	.sj-board .boardSearch input[type=text]{flex:1 1 0; width:auto; min-width:0;}
	.sj-board .cate-tap{display:none;}
	.sj-board #formCate{display:block; width:100%; height:42px; padding:0 10px; border:1px solid #d5d9de; border-radius:6px;}
	.sj-board .table-title{display:none;}
	.sj-board .table-textlist .ul-1{flex-wrap:wrap; padding:14px 4px;}
	.sj-board .table-textlist .ul-1 > li{display:none; padding:0;}
	.sj-board .table-textlist .ul-1 > li:nth-child(2){display:block; flex:1 0 100%; padding:0 0 6px; font-size:15px;}
	.sj-board .table-textlist .ul-1 > li:nth-child(3){display:block; flex:1 0 100%; text-align:left; font-size:0;}
	.sj-board .table-textlist .max480{display:flex; gap:12px; font-size:12px; color:var(--bd-sub);}
	.sj-board .table-textlist .ul-1 > li:nth-child(6){display:block; flex:0 0 auto; margin-top:6px;}
	.sj-board .ul-faq .flip{padding:16px 44px 16px 8px; font-size:14px;}
	.sj-board .ul-faq .panel{padding:18px 16px;}
	.sj-board .dtable, .sj-board .dtable.col2{flex-wrap:wrap;}
	.sj-board .dtable .table-th{flex:0 0 90px; padding:12px 10px;}
	.sj-board .dtable .table-td{flex:1 1 calc(100% - 90px); padding:12px 10px;}
	.sj-board .dtable:has(.content_box) .table-td{padding:24px 6px !important;}
}

/* Q&A — 원본(cybersjhi 5300) 기준: 번호·제목·작성일·조회수, [분류] 제목 [답변수] */
.sj-board:has(.category-tap) #scate{display:none;}
.sj-board .board_qna .ul-1 > li:nth-child(6){display:none !important;}
.sj-board .board_qna .cateName{margin-right:8px; color:var(--bd-accent); font-weight:700;}
.sj-board .board_qna .cateName::before{content:'[';}
.sj-board .board_qna .cateName::after{content:']';}
.sj-board .replyCnt{margin-left:6px; color:var(--bd-navy); font-weight:600;}
.sj-board .qnaLock{
	display:inline-block; width:12px; height:14px; margin-right:6px; vertical-align:-2px;
	background:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 14'%3E%3Cpath d='M3 6V4a3 3 0 0 1 6 0v2' fill='none' stroke='%23b3263f' stroke-width='1.8'/%3E%3Crect x='0.5' y='6' width='11' height='8' rx='1.5' fill='%23b3263f'/%3E%3Ccircle cx='6' cy='10' r='1.2' fill='%23fff'/%3E%3C/svg%3E") no-repeat center/contain;
}
.sj-board .qnaRe{display:inline-block; margin-right:6px; padding:0 6px; border-radius:4px; background:#eef2f7; color:var(--bd-navy); font-size:12px; line-height:18px; font-weight:600;}
