@charset "utf-8";

/* =========================== SUB */
#shSub{display:flex;align-items:center;justify-content:center;height:400px;margin:0 auto;background:url(../img/sub/sub_bg.jpg) center no-repeat;background-size:cover;font-family:var(--main-font)}
#shSub .txt_area{color:#fff;text-align:center}
#shSub .txt_area p{margin-bottom:20px;font-size:42px;font-weight:600}
#shSub .txt_area div{display:flex;justify-content:center;align-items:center;font-size:16px;font-weight:500}
#shSub .txt_area div a{color:#fff}
#shSub .txt_area div i{margin:0 20px;font-size:14px}

/* 반응형 [s] */
@media (max-width:1024px){
#shSub{height:300px}
#shSub .txt_area p{margin-bottom:15px;font-size:34px}
}
@media (max-width:768px){
#shSub{height:380px}
#shSub .txt_area p{margin-bottom:12px;font-size:30px}
#shSub .txt_area div{font-size:15px}
}
@media (max-width:580px){
#shSub{height:340px}
#shSub .txt_area p{margin-bottom:10px;font-size:28px}
#shSub .txt_area div{font-size:14px}
}
@media (max-width:480px){
#shSub{height:55px;border-top:1px solid #e1e1e1;border-bottom:1px solid #e1e1e1;background:none}
#shSub .txt_area{padding-top:0px}
#shSub .txt_area p{margin-bottom:0px;font-size:16px;color:#111}
#shSub .txt_area div{display:none}
}
/* 반응형 [e] */
/* =========================== SNB */
#shSnb{display:flex;justify-content:center;position:absolute;left:0;bottom:0;width:100%;background:var(--primary)}
#shSnb li a{display:block;min-width:160px;height:62px;padding:0 20px;font-size:17px;font-weight:500;line-height:62px;text-align:center;color:#fff}
#shSnb li.on a{font-weight:600;color:var(--primary);background:#fff}

@media (max-width:1024px){
#shSnb{display:none}
}
/* =========================== PAGE */
#greeting{font-size:15px;font-weight:400;line-height:1.8;letter-spacing:-.2px;color:#777;font-family:'Noto Sans KR'}
#greeting .tit_area{padding:0 0 40px 5%;font-size:38px;font-weight:100;line-height:1.35;letter-spacing:-.5px;color:#222}
#greeting .tit_area p{font-weight:600}
#greeting .img{height:420px;background:url(../img/sub/greeting_img.jpg) center no-repeat;background-size:cover}
#greeting .cont{padding:40px 0 0 25%}
#greeting .cont .pl{white-space:pre-line}
#greeting .cont .sign{margin-top:30px;font-weight:500;color:#222}
#greeting .cont .sign span{margin-left:20px;font-size:17px}

@media(max-width:1024px){
#greeting{padding:20px;font-size:14px;line-height:1.6}
#greeting .tit_area{padding:0;font-size:28px;line-height:1.4;color:#222;word-break:keep-all}
#greeting .img{height:200px;margin:15px 0}
#greeting .cont{padding:0}
#greeting .cont .sign{margin-top:20px}
#greeting .cont .sign span{margin-left:0;font-size:15px}
}
@media(max-width:768px){
#greeting .cont .pl{white-space:normal}
}
@media(max-width:480px){
#greeting{padding:15px 12px}	
#greeting .tit_area{font-size:22px}
}

/* =========================== NOTICE BOARD */
.notice-page{font-family:'Pretendard';padding:0 20px}
.notice-page .page-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:30px;padding-bottom:20px;border-bottom:2px solid #222}
.notice-page .page-header h2{font-size:28px;font-weight:700;color:#222}
.notice-page .btn-write{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;background:var(--brand-color);color:#fff;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;text-decoration:none;transition:background 0.2s}
.notice-page .btn-write:hover{background:var(--primary)}
.notice-page .btn-write svg{width:18px;height:18px}

/* Notice List Table */
.notice-list{width:100%;border-collapse:collapse}
.notice-list thead{background:#f8f9fa}
.notice-list th{padding:16px 12px;font-size:14px;font-weight:600;color:#666;text-align:center;border-bottom:1px solid #e1e1e1}
.notice-list th.title{text-align:left}
.notice-list td{padding:18px 12px;font-size:15px;color:#555;text-align:center;border-bottom:1px solid #eee}
.notice-list td.title{text-align:left}
.notice-list td.title a{color:#333;text-decoration:none;transition:color 0.2s}
.notice-list td.title a:hover{color:var(--brand-color)}
.notice-list tr.pinned{background:#fffbf0}
.notice-list tr.pinned td.title a{font-weight:600}
.notice-list .badge-pin{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;margin-right:10px;background:var(--brand-color);border-radius:4px;color:#fff;font-size:11px;font-weight:600}
.notice-list .badge-new{margin-left:8px;padding:2px 6px;background:#ff4757;color:#fff;font-size:11px;font-weight:600;border-radius:3px}

/* Pagination */
.pagination{display:flex;justify-content:center;gap:8px;margin-top:40px}
.pagination button,.pagination a{display:flex;align-items:center;justify-content:center;min-width:40px;height:40px;padding:0 12px;border:1px solid #ddd;background:#fff;color:#666;font-size:14px;border-radius:6px;cursor:pointer;text-decoration:none;transition:all 0.2s}
.pagination button:hover,.pagination a:hover{border-color:var(--brand-color);color:var(--brand-color)}
.pagination button.active,.pagination a.active{background:var(--brand-color);border-color:var(--brand-color);color:#fff}
.pagination button:disabled{opacity:0.5;cursor:not-allowed}

/* Notice View */
.notice-view{padding:0 20px;font-family:'Pretendard'}
.notice-view .view-header{padding:30px 0;border-bottom:1px solid #eee}
.notice-view .view-title{font-size:26px;font-weight:700;color:#222;line-height:1.4;margin-bottom:15px}
.notice-view .view-meta{display:flex;gap:20px;font-size:14px;color:#888}
.notice-view .view-meta span{display:flex;align-items:center;gap:6px}
.notice-view .view-content{padding:40px 0;min-height:300px;line-height:1.8;font-size:16px;color:#444}
.notice-view .view-content img{max-width:100%;height:auto;border-radius:8px;margin:20px 0}
.notice-view .view-content h1,.notice-view .view-content h2,.notice-view .view-content h3{margin:24px 0 12px;color:#222}
.notice-view .view-content h1{font-size:28px}
.notice-view .view-content h2{font-size:24px}
.notice-view .view-content h3{font-size:20px}
.notice-view .view-content p{margin:12px 0}
.notice-view .view-content ul,.notice-view .view-content ol{margin:12px 0;padding-left:24px}
.notice-view .view-content li{margin:6px 0}
.notice-view .view-content code{background:#f5f5f5;padding:2px 6px;border-radius:4px;font-family:'Consolas',monospace;font-size:14px}
.notice-view .view-content pre{background:#1e1e1e;color:#d4d4d4;padding:20px;border-radius:8px;overflow-x:auto;margin:16px 0}
.notice-view .view-content pre code{background:none;padding:0;color:inherit}
.notice-view .view-content blockquote{border-left:4px solid var(--brand-color);margin:16px 0;padding:12px 20px;background:#f8f9fa;color:#666}
.notice-view .view-actions{display:flex;justify-content:space-between;align-items:center;padding:20px 0;border-top:1px solid #eee}
.notice-view .btn-group{display:flex;gap:10px}
.notice-view .btn{padding:10px 20px;border:1px solid #ddd;background:#fff;color:#666;font-size:14px;font-weight:500;border-radius:6px;cursor:pointer;text-decoration:none;transition:all 0.2s}
.notice-view .btn:hover{border-color:#999;color:#333}
.notice-view .btn-edit{border-color:var(--brand-color);color:var(--brand-color)}
.notice-view .btn-edit:hover{background:var(--brand-color);color:#fff}
.notice-view .btn-delete{border-color:#e74c3c;color:#e74c3c}
.notice-view .btn-delete:hover{background:#e74c3c;color:#fff}

/* Notice Nav */
.notice-nav{border-top:1px solid #eee;margin-top:20px}
.notice-nav a{display:flex;align-items:center;gap:15px;padding:18px 0;border-bottom:1px solid #eee;font-size:15px;color:#555;text-decoration:none;transition:color 0.2s}
.notice-nav a:hover{color:var(--brand-color)}
.notice-nav .label{flex-shrink:0;width:60px;font-weight:600;color:#222}

/* Notice Write/Edit */
.notice-write{padding:0 20px;font-family:'Pretendard'}
.notice-write .write-header{margin-bottom:30px}
.notice-write .write-header h2{font-size:28px;font-weight:700;color:#222}
.notice-write .form-group{margin-bottom:20px}
.notice-write .form-group label{display:block;margin-bottom:8px;font-size:14px;font-weight:600;color:#444}
.notice-write .form-group input[type="text"]{width:100%;padding:14px 16px;border:1px solid #ddd;border-radius:8px;font-size:16px;transition:border-color 0.2s}
.notice-write .form-group input[type="text"]:focus{outline:none;border-color:var(--brand-color)}
.notice-write .checkbox-group{display:flex;align-items:center;gap:10px}
.notice-write .checkbox-group input[type="checkbox"]{width:18px;height:18px;accent-color:var(--brand-color)}
.notice-write .checkbox-group span{font-size:15px;color:#555}

/* Markdown Editor */
.md-editor-wrap{display:flex;gap:20px;min-height:500px}
.md-editor,.md-preview{flex:1;min-width:0}
.md-editor{display:flex;flex-direction:column}
.md-toolbar{display:flex;gap:4px;padding:10px;background:#f8f9fa;border:1px solid #ddd;border-bottom:none;border-radius:8px 8px 0 0}
.md-toolbar button{display:flex;align-items:center;justify-content:center;width:36px;height:36px;border:none;background:transparent;color:#555;font-size:16px;border-radius:4px;cursor:pointer;transition:all 0.2s}
.md-toolbar button:hover{background:#e9ecef;color:#222}
.md-toolbar .separator{width:1px;margin:0 6px;background:#ddd}
.md-textarea{flex:1;width:100%;padding:16px;border:1px solid #ddd;border-radius:0 0 8px 8px;font-family:'Consolas','Monaco',monospace;font-size:15px;line-height:1.6;resize:none}
.md-textarea:focus{outline:none;border-color:var(--brand-color)}
.md-preview{border:1px solid #ddd;border-radius:8px;padding:20px;background:#fafafa;overflow-y:auto}
.md-preview-label{display:block;margin-bottom:10px;font-size:13px;font-weight:600;color:#888;text-transform:uppercase;letter-spacing:0.5px}
.md-preview-content{line-height:1.8;font-size:15px;color:#444}
.md-preview-content h1,.md-preview-content h2,.md-preview-content h3{margin:20px 0 10px;color:#222}
.md-preview-content img{max-width:100%;height:auto;border-radius:6px}

/* Image Upload */
.image-upload-zone{padding:30px;border:2px dashed #ddd;border-radius:8px;text-align:center;color:#888;cursor:pointer;transition:all 0.2s;margin-bottom:20px}
.image-upload-zone:hover,.image-upload-zone.dragover{border-color:var(--brand-color);background:#f8f9ff}
.image-upload-zone svg{width:40px;height:40px;margin-bottom:10px;opacity:0.5}
.image-upload-zone p{font-size:14px}

/* Write Actions */
.write-actions{display:flex;justify-content:flex-end;gap:12px;margin-top:30px;padding-top:30px;border-top:1px solid #eee}
.write-actions .btn{padding:14px 32px;border:none;border-radius:8px;font-size:15px;font-weight:600;cursor:pointer;transition:all 0.2s}
.write-actions .btn-cancel{background:#f5f5f5;color:#666}
.write-actions .btn-cancel:hover{background:#e5e5e5}
.write-actions .btn-submit{background:var(--brand-color);color:#fff}
.write-actions .btn-submit:hover{background:var(--primary)}

/* Empty State */
.empty-state{padding:80px 20px;text-align:center;color:#888}
.empty-state svg{width:60px;height:60px;margin-bottom:15px;opacity:0.3}
.empty-state p{font-size:16px}

/* Responsive */
@media(max-width:1024px){
.notice-page .page-header h2{font-size:24px}
.notice-list th,.notice-list td{padding:14px 10px;font-size:14px}
.md-editor-wrap{flex-direction:column}
.md-editor,.md-preview{min-height:300px}
}
@media(max-width:768px){
.notice-page .page-header{flex-direction:column;gap:15px;align-items:flex-start}
.notice-list th.views,.notice-list td.views{display:none}
.notice-view .view-title{font-size:22px}
.notice-view .view-content{padding:25px 0;font-size:15px}
}
@media(max-width:480px){
.notice-page .page-header h2{font-size:20px}
.notice-list{display:block}
.notice-list thead{display:none}
.notice-list tbody tr{display:block;padding:15px 0;border-bottom:1px solid #eee}
.notice-list tbody td{display:block;padding:5px 0;text-align:left;border:none}
.notice-list tbody td.num{display:none}
.notice-list tbody td.date{font-size:13px;color:#888}
}