 /* General */
 :root {
	--border-radius: 4px;
	--border-radius2x: 8px;
	--default: var(--tertiary);
}
:root {
	--primary: #005eae;
	--primary-100: #00549e;
	--primary-200: #004a8e;
	--primary-300: #00407e;
	--primary--100: #0068be;
	--primary--200: #0072ce;
	--primary--300: #007cde;
	--primary-rgba-0: rgba(0, 94, 174, 0);
	--primary-rgba-10: rgba(0, 94, 174, 0.1);
	--primary-rgba-20: rgba(0, 94, 174, 0.2);
	--primary-rgba-30: rgba(0, 94, 174, 0.3);
	--primary-rgba-40: rgba(0, 94, 174, 0.4);
	--primary-rgba-50: rgba(0, 94, 174, 0.5);
	--primary-rgba-60: rgba(0, 94, 174, 0.6);
	--primary-rgba-70: rgba(0, 94, 174, 0.7);
	--primary-rgba-80: rgba(0, 94, 174, 0.8);
	--primary-rgba-90: rgba(0, 94, 174, 0.9);
	--secondary: #8B4513;
	--secondary-100: #7d3d10;
	--secondary-200: #6f350d;
	--secondary-300: #612d0a;
	--secondary--100: #994d16;
	--secondary--200: #a75519;
	--secondary--300: #b55d1c;
	--secondary-rgba-0: rgba(139, 69, 19, 0);
	--secondary-rgba-10: rgba(139, 69, 19, 0.1);
	--secondary-rgba-20: rgba(139, 69, 19, 0.2);
	--secondary-rgba-30: rgba(139, 69, 19, 0.3);
	--secondary-rgba-40: rgba(139, 69, 19, 0.4);
	--secondary-rgba-50: rgba(139, 69, 19, 0.5);
	--secondary-rgba-60: rgba(139, 69, 19, 0.6);
	--secondary-rgba-70: rgba(139, 69, 19, 0.7);
	--secondary-rgba-80: rgba(139, 69, 19, 0.8);
	--secondary-rgba-90: rgba(139, 69, 19, 0.9);
	--tertiary: #4B0082;
	--tertiary-100: #430075;
	--tertiary-200: #3b0068;
	--tertiary-300: #33005b;
	--tertiary--100: #53008f;
	--tertiary--200: #5b009c;
	--tertiary--300: #6300a9;
	--tertiary-rgba-0: rgba(75, 0, 130, 0);
	--tertiary-rgba-10: rgba(75, 0, 130, 0.1);
	--tertiary-rgba-20: rgba(75, 0, 130, 0.2);
	--tertiary-rgba-30: rgba(75, 0, 130, 0.3);
	--tertiary-rgba-40: rgba(75, 0, 130, 0.4);
	--tertiary-rgba-50: rgba(75, 0, 130, 0.5);
	--tertiary-rgba-60: rgba(75, 0, 130, 0.6);
	--tertiary-rgba-70: rgba(75, 0, 130, 0.7);
	--tertiary-rgba-80: rgba(75, 0, 130, 0.8);
	--tertiary-rgba-90: rgba(75, 0, 130, 0.9);
	--quaternary: #F5F5F5;
	--quaternary-100: #e8e8e8;
	--quaternary-200: #dbdbdb;
	--quaternary-300: #cecece;
	--quaternary--100: #ffffff;
	--quaternary--200: #ffffff;
	--quaternary--300: #ffffff;
	--quaternary-rgba-0: rgba(245, 245, 245, 0);
	--quaternary-rgba-10: rgba(245, 245, 245, 0.1);
	--quaternary-rgba-20: rgba(245, 245, 245, 0.2);
	--quaternary-rgba-30: rgba(245, 245, 245, 0.3);
	--quaternary-rgba-40: rgba(245, 245, 245, 0.4);
	--quaternary-rgba-50: rgba(245, 245, 245, 0.5);
	--quaternary-rgba-60: rgba(245, 245, 245, 0.6);
	--quaternary-rgba-70: rgba(245, 245, 245, 0.7);
	--quaternary-rgba-80: rgba(245, 245, 245, 0.8);
	--quaternary-rgba-90: rgba(245, 245, 245, 0.9);
	--dark: #212529;
	--dark-100: #16181b;
	--dark-200: #101214;
	--dark-300: #0a0c0d;
	--dark--100: #2c3237;
	--dark--200: #32383e;
	--dark--300: #383f45;
	--dark-rgba-0: rgba(33, 37, 41, 0);
	--dark-rgba-10: rgba(33, 37, 41, 0.1);
	--dark-rgba-20: rgba(33, 37, 41, 0.2);
	--dark-rgba-30: rgba(33, 37, 41, 0.3);
	--dark-rgba-40: rgba(33, 37, 41, 0.4);
	--dark-rgba-50: rgba(33, 37, 41, 0.5);
	--dark-rgba-60: rgba(33, 37, 41, 0.6);
	--dark-rgba-70: rgba(33, 37, 41, 0.7);
	--dark-rgba-80: rgba(33, 37, 41, 0.8);
	--dark-rgba-90: rgba(33, 37, 41, 0.9);
	--light: #FFF;
	--light-100: #f2f2f2;
	--light-200: #ececec;
	--light-300: #e6e6e6;
	--light--100: #ffffff;
	--light--200: #ffffff;
	--light--300: #ffffff;
	--light-rgba-0: rgba(255, 255, 255, 0);
	--light-rgba-10: rgba(255, 255, 255, 0.1);
	--light-rgba-20: rgba(255, 255, 255, 0.2);
	--light-rgba-30: rgba(255, 255, 255, 0.3);
	--light-rgba-40: rgba(255, 255, 255, 0.4);
	--light-rgba-50: rgba(255, 255, 255, 0.5);
	--light-rgba-60: rgba(255, 255, 255, 0.6);
	--light-rgba-70: rgba(255, 255, 255, 0.7);
	--light-rgba-80: rgba(255, 255, 255, 0.8);
	--light-rgba-90: rgba(255, 255, 255, 0.9);
}
/* Skin Colors - Inverse */
:root {
	--primary-inverse: #FFF;
	--secondary-inverse: var(--tertiary);
	--tertiary-inverse: #FFF;
	--quaternary-inverse: var(--tertiary);
	--dark-inverse: #FFF;
	--light-inverse: var(--tertiary);
}
/* Grey Colors */
:root {
	--grey: #969696;
	--grey-100: #f4f4f4;
	--grey-200: #eaeaea;
	--grey-300: #e5e5e5;
	--grey-400: #e0e0e0;
	--grey-500: #dbdbdb;
	--grey-600: #cecece;
	--grey-700: #c1c1c1;
	--grey-800: #a8a8a8;
	--grey-900: #8e8e8e;
	--grey-1000: #757575;
}

/* 게시판 헤더 */
.board-header {
    margin-bottom: 20px;
}

.board-title {
    font-size: 24px;
    font-weight: bold;
    margin-bottom: 10px;
}

/* 게시판 테이블 */
.board-table {
    width: 100%;
    border-top: 2px solid var(--primary);
    border-bottom: 1px solid #ddd;
}

.board-table th {
    padding: 12px 8px;
    background-color: #f8f9fa;
    border-bottom: 1px solid #ddd;
    font-weight: bold;
    text-align: center;
}

.board-table td {
    padding: 12px 8px;
    border-bottom: 1px solid #eee;
}

.board-table tr:hover {
    background-color: #f8f9fa;
}

/* 게시글 보기 */
.post-header {
    border-top: 2px solid var(--primary);
    border-bottom: 1px solid #ddd;
    padding: 15px 0;
}

/* 게시글 내용 기본 패딩 */
.content {
    padding: 50px;
}

.post-title {
    margin-bottom: 10px;
}

.post-title a {
    color: var(--dark) !important;
}
.post-title a:hover {
    color: var(--primary) !important;
}

.post-info {
    color: #666;
    font-size: 14px;
}

.post-content {
    padding: 20px 0;
    min-height: 300px;
    border-bottom: 1px solid #ddd;
}

/* 게시글 쓰기/수정 */
.write-form {
    max-width: 1000px;
    margin: 0 auto;
    padding: 20px;
    background: #fff;
    border-radius: 5px;
    box-shadow: 0 0 10px rgba(0,0,0,0.1);
    position: relative;
}

.write-form .form-group {
    margin-bottom: 15px;
}

.write-form label {
    font-weight: bold;
    color: #333;
}

.write-form .form-control {
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
}

.write-form .form-control:focus {
    border-color: var(--primary);
    box-shadow: 0 0 0 0.2rem rgba(0,136,204,0.25);
}

/* Summernote 에디터 스타일 */
.note-editor {
    border: 1px solid #ddd !important;
    border-radius: 4px !important;
}

.note-toolbar {
    background-color: #f8f9fa !important;
    border-bottom: 1px solid #ddd !important;
    padding: 5px !important;
}

.note-btn-group {
    margin: 0 !important;
    vertical-align: middle !important;
}

.note-btn {
    background-color: #fff !important;
    border: 1px solid #ddd !important;
    padding: 5px 10px !important;
    font-size: 13px !important;
    height: 34px !important;
    line-height: 1.5 !important;
    box-shadow: none !important;
    margin: 2px !important;
    border-radius: 3px !important;
    vertical-align: middle !important;
}

.note-btn.dropdown-toggle {
    height: 34px !important;
    padding: 5px 10px !important;
}

.note-btn-group .note-btn {
    margin-left: -1px !important;
}

.note-btn:hover,
.note-btn:focus,
.note-btn.active {
    background-color: #f8f9fa !important;
    border-color: #ddd !important;
}

.note-dropdown-menu {
    min-width: 100px !important;
    padding: 5px 0 !important;
}

.note-dropdown-item {
    padding: 5px 15px !important;
}

.note-editing-area {
    background-color: #fff !important;
}

.note-editable {
    padding: 15px !important;
    min-height: 300px !important;
    background: #fff !important;
}

/* 댓글 영역 */
.comment-area {
    margin-top: 30px;
}

.comment-list {
    border-top: 1px solid #ddd;
}

.comment-item {
    padding: 15px 0;
    border-bottom: 1px solid #eee;
}

.comment-form {
    margin-top: 20px;
    padding: 15px;
    background-color: #f8f9fa;
    border: 1px solid #eee;
}

/* 페이지네이션 */
.pagination {
    margin-top: 20px;
    text-align: center;
}

.pagination .page-item {
    display: inline-block;
    margin: 0 3px;
}

.pagination .page-link {
    display: block;
    padding: 6px 12px;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--primary);
}

.pagination .page-item.active .page-link {
    background-color: var(--primary);
    color: white;
    border-color: var(--primary);
}

/* 버튼 영역 */
.btn-group {
    margin: 15px 0;
}
.btn{
	color: var(--light) !important;
}
.btn-primary {
    background-color: var(--primary) !important;
    border-color: var(--primary) !important;
}

.btn-primary:hover {
    background-color: var(--dark--300) !important;
    border-color: var(--dark--300) !important;
}

.btn-secondary {
    background-color: var(--secondary) !important;
    border-color: var(--secondary) !important;
}

.btn-secondary:hover {
    background-color: var(--dark--300) !important;
    border-color:var(--dark--300) !important;
}

/* 비밀글 아이콘 */
.secret-icon {
    color: #dc3545;
    margin-right: 5px;
}

/* 새 글 아이콘 */
.new-icon {
    color: #28a745;
    margin-left: 5px;
}

/* 첨부파일 영역 */
.file-area {
    padding: 10px 0;
    border-bottom: 1px solid #eee;
}

/* 반응형 디자인 */
@media (max-width: 768px) {
    .board-table {
        font-size: 14px;
    }
    
    .board-table th, 
    .board-table td {
        padding: 8px 4px;
    }
    
    .mobile-hide {
        display: none;
    }
    
    .write-form {
        padding: 10px;
    }
    
    .note-editor {
        margin-bottom: 15px;
    }

    /* 게시글 내용 모바일 패딩 조정 */
    .content {
        padding: 20px !important;
    }
} 

/* 태블릿 반응형 */
@media (max-width: 1024px) and (min-width: 769px) {
    .content {
        padding: 30px !important;
    }
} 

.content figure.table {
	display: table;
	margin-left: auto;
	margin-right: auto;
	margin-top: 1em;
	margin-bottom: 1em;
}

.content table {
	width: 80%;
	border-collapse: collapse;
	font-size: 1em;
	margin: 1em auto;
}

.content th, .content td {
	border: 1px solid #ddd;
	padding: 8px 12px;
	text-align: left;
}

.content th {
	background: #f8f9fa;
	font-weight: bold;
}

/* CKEditor 본문 스타일 */
.content h2, .ck-editor__editable h2 {
    font-size: 2em !important;
    font-weight: 900 !important;
    margin-top: 1.2em !important;
    margin-bottom: 0.6em !important;
}

.content h3, .ck-editor__editable h3 {
    font-size: 1.5em !important;
    font-weight: 700 !important;
    margin-top: 1em !important;
    margin-bottom: 0.5em !important;
}

.content h4, .ck-editor__editable h4 {
    font-size: 1.1em !important;
    font-weight: 500 !important;
    margin-top: 1em !important;
    margin-bottom: 0.5em !important;
}

.content p, .ck-editor__editable p {
    font-size: 1em;
    font-weight: 400;
    line-height: 1.6;
    margin-bottom: 1em;
    color: #2C2C2C;
}

.content blockquote, .ck-editor__editable blockquote {
    font-style: normal !important;
    color: #2C2C2C;
}

.write-form .document-editor {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    position: relative;
}

.write-form .document-editor__toolbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #ddd !important;
    width: 100% !important;
}

.write-form .document-editor__editable-container {
    padding: 1rem;
    min-height: 400px;
}

.ck-editor__editable {
    min-height: 400px !important;
    font-family: 'Noto Sans KR', sans-serif;
}

.ck.ck-editor {
    position: relative;
}

.ck.ck-editor__editable_inline {
    min-height: 400px;
}

.ck.ck-toolbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #ddd !important;
    width: 100% !important;
}

.document-editor {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    position: relative;
}

.document-editor__toolbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #ddd !important;
    width: 100% !important;
}

.document-editor__toolbar .ck-toolbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 9999 !important;
    background: #f8f9fa !important;
    border-bottom: 1px solid #ddd !important;
    width: 100% !important;
}

.document-editor__editable-container {
    padding: 1rem;
    min-height: 400px;
}

/* CKEditor 이미지 크기 조정 스타일 */
.post-content .content figure.image,
.content figure.image {
    margin: 1em auto;
    display: table;
    text-align: center;
    max-width: 100%;
}

.post-content .content figure.image img,
.content figure.image img {
    display: block;
    margin: 0 auto;
    width: 100% !important;
    height: auto !important;
    max-width: 100% !important;
    object-fit: contain !important;
}

/* CKEditor에서 설정한 크기 우선 적용 */
.post-content .content figure.image.image_resized,
.content figure.image.image_resized {
    display: table;
    margin: 1em auto;
}

.post-content .content figure.image.image_resized img,
.content figure.image.image_resized img {
    width: 100%;
    height: auto;
}

/* 인라인 스타일 width 속성이 있는 경우 해당 크기로 표시 */
.post-content .content figure.image[style*="width"],
.content figure.image[style*="width"] {
    display: table;
    margin: 1em auto;
    /* 인라인 스타일의 width 값을 그대로 사용 */
}

.post-content .content figure.image[style*="width"] img,
.content figure.image[style*="width"] img {
    width: 100% !important;
    height: auto !important;
    /* 원본 크기 속성 강제 무시 */
    max-width: none !important;
}

/* HTML 속성으로 설정된 width, height 강제 무시 */
.post-content .content figure.image img[width],
.content figure.image img[width] {
    width: 100% !important;
}

.post-content .content figure.image img[height],
.content figure.image img[height] {
    height: auto !important;
}

/* 추가 강제 설정 - HTML 속성 무시 */

/* figure 요소의 크기 제한 */
.post-content .content figure.image,
.content figure.image {
    overflow: hidden !important;
    box-sizing: border-box !important;
}

/* 모바일 반응형 - 화면보다 큰 이미지는 화면에 맞춤 */
@media (max-width: 768px) {
    .post-content .content figure.image,
    .content figure.image {
        max-width: 100% !important;
        width: 100% !important;
    }
    
    .post-content .content figure.image img,
    .content figure.image img {
        max-width: 100% !important;
        width: 100% !important;
        height: auto !important;
    }
}