/**
 * 게시판 기본 스킨 CSS
 */

 /* 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;
}

.board-table thead {
    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);
}

.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: 300;
    line-height: 1.6;
    margin-bottom: 1em;
}

.document-editor {
    border: 1px solid #ddd;
    border-radius: 4px;
    margin-bottom: 1rem;
    overflow: auto;
    max-height: 700px;
}

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

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

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

.ck-editor__editable blockquote {
    font-style: normal !important;
}

.gallery-slideshow {
    margin-bottom: 30px;
}
.carousel-inner {
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}
.carousel-item {
    height: 450px;
    background-color: #f8f9fa;
}
.carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}
.carousel-caption {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 6px;
    padding: 10px;
    bottom: 20px;
}
.carousel-control-prev, .carousel-control-next {
    width: 5%;
    opacity: 0.8;
}
.carousel-control-prev:hover, .carousel-control-next:hover {
    opacity: 1;
}
.carousel-indicators {
    margin-bottom: -1rem;
}
.carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin: 0 5px;
}
/* 썸네일 갤러리 스타일 */
.thumbnail-gallery {
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.thumbnail-gallery::-webkit-scrollbar {
    display: none;
}
.thumbnail-item {
    cursor: pointer;
    height: 60px;
    overflow: hidden;
    transition: all 0.3s ease;
    opacity: 0.7;
}
.thumbnail-item:hover, .thumbnail-item.active {
    opacity: 1;
    transform: scale(1.05);
    border: 2px solid #0d6efd;
}
.thumbnail-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: invert(36%) sepia(98%) saturate(749%) hue-rotate(186deg) brightness(95%) contrast(101%);
}