@charset "UTF-8";

.portal-notice-search{display:flex; gap:6px; margin-bottom:20px; padding: 20px 18px; border: 1px solid #dfe5ec; border-radius: 12px; background: #fff;}
.portal-notice-search select{width:90px; height:42px; padding:0 8px; border:1px solid #ddd; border-radius:6px; background:#fff;}
.portal-notice-search input{flex:1; min-width:0; height:42px; padding:0 12px; border:1px solid #ddd; border-radius:6px;}
.portal-notice-search button{height:42px; padding:0 15px; border:0; border-radius:6px; background:#286ed5; color:#fff;}

.portal-notice-wrap{ padding: 20px 18px; border: 1px solid #dfe5ec; border-radius: 12px; background: #fff;}
.portal-notice-count{margin-bottom:10px; color:#777; font-size:13px;}
.portal-notice-count strong{color:#286ed5;}

.portal-notice-list{border-top:1px solid #333;}
.portal-notice-item{display:block; padding:17px 4px; border-bottom:1px solid #e5e5e5; color:#333; text-decoration:none;}

.portal-notice-title{display:flex; align-items:center; gap:7px;}
.portal-notice-title strong{overflow:hidden; font-size:15px; font-weight:600; text-overflow:ellipsis; white-space:nowrap;}

.portal-notice-badge{display:inline-flex; flex-shrink:0; align-items:center; justify-content:center; height:22px; padding:0 8px; border-radius:11px; background:#eef4ff; color:#286ed5; font-size:11px; font-weight:700;}

.portal-notice-meta{margin-top:8px; color:#999; font-size:12px;}

.portal-notice-empty{padding:60px 10px; border-top:1px solid #333; border-bottom:1px solid #ddd; color:#999; text-align:center;}

.portal-pagination{margin-top:25px; text-align:center;}

.portal-notice-article{width:100%; max-width:100%; overflow:hidden; border-top:2px solid #333; border-bottom:1px solid #ddd;}

.portal-notice-article-head{padding:20px 4px; border-bottom:1px solid #ddd;}
.portal-notice-article-head h3{margin:8px 0 10px; color:#222; font-size:19px; line-height:1.45;}
.portal-notice-article-meta{color:#999; font-size:12px;}
.portal-notice-article-meta strong{margin-left:5px; color:#666; font-weight:400;}


/* =====================================================
   공지사항 상세 본문
   ===================================================== */

.portal-notice-content{width:100%; max-width:100%; min-width:0; min-height:200px; padding:25px 4px; overflow-x:auto; overflow-y:hidden; color:#444; font-size:14px; line-height:1.8; word-break:break-word; overflow-wrap:anywhere; -webkit-overflow-scrolling:touch;}

/*
 * 에디터에서 들어온 고정 width / min-width를 최대한 무력화
 */
.portal-notice-content *{max-width:100% !important; box-sizing:border-box;}

/*
 * 이미지
 */
.portal-notice-content img{max-width:100% !important; height:auto !important;}

/*
 * 영상 / iframe
 */
.portal-notice-content iframe,.portal-notice-content video,.portal-notice-content embed,.portal-notice-content object{max-width:100% !important; height:auto;}

/*
 * 일반 텍스트 요소
 */
.portal-notice-content p,.portal-notice-content div,.portal-notice-content span,.portal-notice-content font,.portal-notice-content strong,.portal-notice-content em{max-width:100% !important; white-space:normal !important; overflow-wrap:anywhere !important; word-break:break-word !important;}

/*
 * 에디터가 width를 직접 준 경우
 */
.portal-notice-content [style*="width"]{max-width:100% !important;}

/*
 * 표
 *
 * 문서 표는 강제로 찌그러뜨리기보다
 * 모바일 안에서 최대한 줄여서 보이게 처리
 */
.portal-notice-content table{width:100% !important; max-width:100% !important; min-width:0 !important; table-layout:fixed !important; border-collapse:collapse !important;}

/*
 * 표 내부 고정 너비 제거
 */
.portal-notice-content col,.portal-notice-content colgroup{max-width:100% !important;}

.portal-notice-content th,.portal-notice-content td{width:auto !important; min-width:0 !important; max-width:100% !important; height:auto !important; padding:6px 4px !important; white-space:normal !important; overflow-wrap:anywhere !important; word-break:break-all !important;}

/*
 * pre/code가 있는 경우
 */
.portal-notice-content pre{max-width:100%; overflow-x:auto; white-space:pre-wrap; word-break:break-word;}
.portal-notice-content code{white-space:pre-wrap; word-break:break-word;}


/* =====================================================
   버튼
   ===================================================== */

.portal-notice-actions{display:flex; justify-content:center; margin-top:24px;}
.portal-notice-actions a{display:inline-flex; align-items:center; justify-content:center; min-width:90px; height:42px; border-radius:6px; background:#286ed5; color:#fff; text-decoration:none;}


/* =====================================================
   모바일
   ===================================================== */

@media(max-width:480px){

	.portal-notice,.portal-notice-view{padding:18px 16px 90px;}

	.portal-page-head h2{font-size:22px;}

	.portal-notice-search select{width:78px;}
	.portal-notice-search button{padding:0 12px;}

	.portal-notice-article-head{padding:18px 2px;}
	.portal-notice-article-head h3{font-size:18px;}

	.portal-notice-content{padding:20px 2px; font-size:14px; line-height:1.75;}

	/*
	 * PC용 에디터 문서에서 font-size가 직접 들어간 경우
	 * 모바일에서 과도하게 커지는 것 방지
	 */
	.portal-notice-content p,
	.portal-notice-content div,
	.portal-notice-content span,
	.portal-notice-content font,
	.portal-notice-content strong,
	.portal-notice-content em{font-size:inherit !important; line-height:1.75 !important;}

	.portal-notice-content table{font-size:12px !important;}
	.portal-notice-content th,.portal-notice-content td{padding:5px 3px !important; font-size:12px !important; line-height:1.45 !important;}
}

/* =====================================================
   공지사항 첨부파일
   ===================================================== */

.portal-notice-files{margin:25px 0; padding-top:20px; border-top:1px solid #e1e5e9;}
.portal-notice-files-head{display:flex; align-items:center; justify-content:space-between; margin-bottom:10px;}
.portal-notice-files-head strong{color:#333; font-size:15px; font-weight:700;}
.portal-notice-files-head span{color:#8a939c; font-size:12px;}

.portal-notice-file-list{display:flex; flex-direction:column; gap:10px;}

.portal-notice-file-item{overflow:hidden; border:1px solid #dfe4e9; border-radius:8px; background:#fff;}

.portal-notice-file-image{display:block; width:100%; overflow:hidden; border-bottom:1px solid #e4e8ec; background:#f6f7f9; text-align:center;}
.portal-notice-file-image img{display:block; width:auto; max-width:100%; max-height:400px; margin:0 auto; object-fit:contain;}

.portal-notice-file-info{display:flex; align-items:center; justify-content:space-between; gap:10px; min-height:54px; padding:10px 12px;}

.portal-notice-file-name{flex:1; min-width:0; overflow:hidden; color:#444; font-size:13px; font-weight:500; text-overflow:ellipsis; white-space:nowrap;}

.portal-notice-file-buttons{display:flex; flex:0 0 auto; align-items:center; gap:5px;}

.portal-file-btn{display:inline-flex; align-items:center; justify-content:center; height:32px; padding:0 10px; border-radius:5px; font-size:12px; font-weight:600;}

.portal-file-btn.view{border:1px solid #ccd5df; background:#fff; color:#596673;}
.portal-file-btn.download{background:#286ed5; color:#fff;}

.portal-file-btn.view:hover{border-color:#286ed5; color:#286ed5;}
.portal-file-btn.download:hover{background:#205fb5;}


/* 모바일 */

@media(max-width:480px){

	.portal-notice-file-image img{max-height:300px;}

	.portal-notice-file-info{align-items:flex-start; flex-direction:column;}

	.portal-notice-file-name{width:100%; white-space:normal; word-break:break-all;}

	.portal-notice-file-buttons{width:100%;}

	.portal-file-btn{flex:1;}
}