@charset "utf-8";

/* =========================================
   1. ±âº» ½ºÅ¸ÀÏ
   ========================================= */
img { border: 0; vertical-align: middle;}
#kboard-thumbnail-card * {box-sizing: border-box;}
#kboard-thumbnail-card a {text-decoration: none;}
#kboard-card-document * {box-sizing: border-box;}

/* =========================================
   2. ¸®½ºÆ® ±×¸®µå ·¹ÀÌ¾Æ¿ô
   ========================================= */
#kboard-thumbnail-card .kboard-list {
    width: 100%;
    margin-top: 20px;
    border: 0 !important;
}

#kboard-thumbnail-card .kboard-grid-list {
    display: grid !important; 
    grid-template-columns: repeat(4, 1fr) !important;
    gap: 20px !important;
    list-style: none !important;
    padding: 0 !important;
    margin: 0 !important;
    width: 100% !important;
}

#kboard-thumbnail-card .kboard-grid-item {
    width: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: 1px solid #ddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

#kboard-thumbnail-card .kboard-grid-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
    border-color: #333;
}

.kboard-item-card .imgbox {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background: #f5f5f5;
    position: relative;
}

.kboard-item-card .imgbox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.kboard-grid-item:hover .imgbox img { transform: scale(1.1); }
.kboard-item-card .no-image { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: #ccc; font-size: 30px; }
.kboard-item-card .infobox { padding: 20px; }

.item-title {
    font-size: 18px;
    font-weight: 600;
    color: #111;
    margin-bottom: 10px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.item-excerpt {
    font-size: 14px;
    color: #666;
    line-height: 1.5;
    height: 4.5em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    margin-bottom: 15px;
}

.item-date { font-size: 13px; color: #999; text-align: right; }

/* =========================================
   3. ¸ð´Þ ½ºÅ¸ÀÏ
   ========================================= */
.kboard-modal-overlay {
    display: none;
    position: fixed;
    z-index: 999999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.7);
    backdrop-filter: blur(2px);
}

.kboard-modal-window {
    background-color: #fff;
    margin: 5vh auto;
    width: 90%;
    max-width: 1000px;
    position: relative;
    border-radius: 8px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.5);
    overflow: hidden;
    animation: fadeIn 0.3s;
}

@keyframes fadeIn { from {opacity: 0; transform:translateY(-20px);} to {opacity: 1; transform:translateY(0);} }

.kboard-modal-close-btn {
    position: absolute;
    top: 15px;
    right: 20px;
    width: 40px;
    height: 40px;
    line-height: 40px;
    text-align: center;
    background: #111;
    color: #fff;
    font-size: 20px;
    font-weight: bold;
    border-radius: 50%;
    cursor: pointer;
    z-index: 100;
    box-shadow: 0 2px 10px rgba(0,0,0,0.06);
    transition: all 0.2s;
}
.kboard-modal-close-btn:hover {transform: rotate(90deg); }

.kboard-modal-body { display: flex; width: 100%; height: 600px; }

.modal-left-col {
    flex: 0 0 50%; width: 50%;
    background-color: #000;
    display: flex; align-items: center; justify-content: center;
    overflow: hidden;
}
.modal-left-col img { width: 100%; height: 100%; object-fit: contain; }

.modal-right-col {
    flex: 1; width: 50%;
    padding: 40px;
    box-sizing: border-box;
    display: flex; flex-direction: column;
}

.modal-header h3 {
    margin: 0 0 20px 0; font-size: 24px; font-weight: 600; color: #111;
    border-bottom: 2px solid #333; padding-bottom: 15px;
}

.modal-content-scroll { flex: 1; overflow-y: auto; font-size: 15px; line-height: 1.6; color: #444; }
.modal-content-scroll img { max-width: 100%; height: auto; }

/* =========================================
   4. º»¹® ½ºÅ¸ÀÏ
   ========================================= */
#kboard-card-document { margin: 0 auto; width: 100%; }
#kboard-card-document .kboard-title p { 
    margin: 0; padding: 12px 0; color: #111; font-weight: bold; font-size: 24px; border-bottom: 2px solid #333; 
}
#kboard-card-document .kboard-detail { 
    width: 100%; border-bottom: 1px solid #ddd; background: #f8f8f8; overflow: hidden; padding: 10px; margin-bottom: 20px;
}
#kboard-card-document .detail-attr { display: inline-block; margin-right: 20px; font-size: 13px; color: #666; }
#kboard-card-document .content-view { line-height: 1.6; font-size: 15px; }
#kboard-card-document .thumbnail-area { text-align: center; margin-bottom: 30px; }
#kboard-card-document .thumbnail-area img { max-width: 100%; border-radius: 10px; }
#kboard-card-document .kboard-control { margin-top: 50px; text-align: right; border-top: 1px solid #ddd; padding-top: 20px;}

/* =========================================
   5. ±âÅ¸ UI ¹× ¹ÝÀÀÇü
   ========================================= */
#kboard-thumbnail-card .kboard-header { overflow: hidden; margin-bottom: 20px; }
#kboard-thumbnail-card .kboard-category select, 
#kboard-card-document .kboard-search { /*float: left; padding-bottom: 15px; width: 100%; text-align: center;*/ }

#kboard-thumbnail-card .kboard-header { float: none; display: flex; padding-bottom: 15px; width: 100%; justify-content: space-between; align-items: center;}
#kboard-thumbnail-card .kboard-header .kboard-total-count { *float: left; display: table-cell; font-size: 14px; }
#kboard-thumbnail-card .kboard-header .kboard-sort { *float: right; display: table-cell; text-align: right; }
#kboard-thumbnail-card .kboard-header .kboard-sort select { display: inline; margin: 0; padding: 0; width: auto; min-width: 0; max-width: none; height: 26px; min-height: 0; line-height: 26px; font-size: 13px; color: #666666; border-radius: 0; border: 1px solid #f1f1f1; background: white; vertical-align: middle; box-shadow: none; box-sizing: content-box; text-indent: 0; -webkit-appearance: menulist; -moz-appearance: menulist; appearance: menulist; }
#kboard-thumbnail-card .kboard-search select {
    display: inline;
    margin: 0;
    padding: 0 30px 0 20px;
    width: 97px;
    min-width: 0;
    max-width: 100px;
    height: 40px;
    min-height: 0;
    font-size: 14px;
    color: #666666;
    border: 1px solid #cccccc;
    line-height: 26px;
    vertical-align: middle;
    box-shadow: none;
    box-sizing: border-box;
    border-radius: 5px;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-color: white;
    background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23666666' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e");
    background-repeat: no-repeat;
    background-size: 12px;
    background-position: right 10px center;
}

#kboard-thumbnail-card .kboard-total-count-wrapper {
    color: #666; 
    font-size: 15px;
    font-weight: bold;
    /*margin-bottom: 10px;*/
}

/* ¼ýÀÚ ºÎºÐ °­Á¶ ½ºÅ¸ÀÏ */
#kboard-thumbnail-card .kboard-count-number {
   color: #e53935; 
    font-weight: 800;
    margin: 0 2px; 
}

#kboard-thumbnail-card .kboard-search select::-ms-expand {
    display: none;
}
#kboard-thumbnail-card .kboard-search input { display: inline; margin: 0; padding: 0 5px; width: 200px; min-width: 0; max-width: 200px; height: 38px; min-height: 0; font-size: 14px; color: #666666; border-radius: 0; border: 1px solid #cccccc; background: none; background-color: white; line-height: 26px; vertical-align: middle; box-shadow: none; box-sizing: content-box;  border-radius: 5px;}
#kboard-thumbnail-card .kboard-thumbnail-button-small,
#modal-admin-controls .kboard-thumbnail-button-small {
	text-align: center;
     position: relative; display: inline-block; *display: inline; zoom: 1; margin: 0; padding: 9px 20px; width: 55px; height: 20px; line-height: 20px; font-size: 14px; font-weight: normal; letter-spacing: normal; color: #666 !important; background: #fff !important; border: 1px solid #ddd; border-radius: 0; text-decoration: none !important; cursor: pointer; vertical-align: middle; text-shadow: none; box-shadow: none; transition-duration: 0.3s; box-sizing: content-box;  border-radius: 5px; 
}

#modal-admin-controls .kboard-thumbnail-button-small{color: #fff !important;}

.kboard-pagination { text-align: center; margin-top: 40px; }
.kboard-pagination-pages li { display: inline-block; margin: 0 2px; }
.kboard-pagination-pages li a { display: block; width: 30px; height: 30px; line-height: 30px; border: 1px solid #ddd; color: #999; border-radius: 8px; }
.kboard-pagination-pages li.active a { background: #1d4d9e; color: #fff; border-color: #1d4d9e; }

@media (max-width: 1024px) {
    #kboard-thumbnail-card .kboard-grid-list { grid-template-columns: repeat(3, 1fr) !important; }
}

@media (max-width: 776px) {

    #kboard-thumbnail-card .kboard-grid-list { grid-template-columns: repeat(2, 1fr) !important; }
    
    .kboard-item-card .infobox { padding: 15px; }
    .item-title { font-size: 16px; margin-bottom: 5px; }
    .item-excerpt {
        font-size: 13px;
        line-height: 1.4;
        height: 2.8em;
        -webkit-line-clamp: 2;
        margin-bottom: 10px;
    }
    
    .kboard-modal-window { 
        width: 90%; 
        margin: 5vh auto; 
        height: auto;
        max-height: 85vh;
        display: flex; 
        flex-direction: column; 
    }
    
    .kboard-modal-body { 
        flex-direction: column; 
        height: auto; 
        flex: 1; 
        overflow-y: auto; 
    }
    
    .modal-left-col { 
        width: 100%; 
        height: 200px;
        flex: none; 
    }
    
    .modal-right-col { 
        width: 100%; 
        flex: 1; 
        padding: 20px 15px;
    }
    
    .modal-header h3 { font-size: 18px; margin-bottom: 10px; padding-bottom: 10px; }
    
    .kboard-modal-close-btn { 
        top: 10px; right: 10px; width: 30px; height: 30px; line-height: 30px; font-size: 16px; 
        background: rgba(0,0,0,0.6); 
    }
    
    #kboard-thumbnail-card .kboard-category, 
    #kboard-thumbnail-card .kboard-search { float: none; width: 100%; display: none !important; margin-bottom: 10px; text-align: left;}
    #kboard-thumbnail-card .kboard-category select { width: 100%; margin-bottom: 5px; }
}

@media (max-width: 480px) {
    #kboard-thumbnail-card .kboard-grid-list { grid-template-columns: repeat(1, 1fr) !important; }
}

#kboard-thumbnail-editor { margin: 0 auto; width: 99%; }
#kboard-thumbnail-editor select,
#kboard-thumbnail-editor input { width: auto; height: auto; }
#kboard-thumbnail-editor .kboard-header { float: left; width: 100%; border-top: 1px solid #e3e3e3; line-height: 0; }
#kboard-thumbnail-editor .kboard-attr-row { float: left; padding: 5px 0; width: 100%; border-bottom: 1px solid #e3e3e3; background-color: white; }
#kboard-thumbnail-editor .kboard-attr-title { float: left; border-bottom: 1px solid #e3e3e3; }
#kboard-thumbnail-editor .kboard-attr-title input { display: inline-block; padding: 6px 2px; font-size: 12px; width: 50%; color: #666666; border-radius: 3px; border: 1px solid #cccccc; }
#kboard-thumbnail-editor .kboard-attr-row .attr-name { display: inline; float: left; margin: 0; padding: 0 10px 0 20px; width: 105px; line-height: 30px; color: #545861; font-size: 12px; font-weight: bold; text-align: right; }
#kboard-thumbnail-editor .kboard-attr-row .attr-name img { display: inline; max-width: 100%; vertical-align: middle; }
#kboard-thumbnail-editor .kboard-attr-row .attr-value { font-size: 12px; }
#kboard-thumbnail-editor .kboard-attr-row .attr-value select { margin: 0; padding: 5px 2px; font-size: 12px; min-width: 130px; color: #666666; border-radius: 3px; border: 1px solid #cccccc; }
#kboard-thumbnail-editor .kboard-attr-row .attr-value input[type=text],
#kboard-thumbnail-editor .kboard-attr-row .attr-value input[type=password] { margin: 0; padding: 6px 2px; font-size: 12px; color: #666666; border-radius: 3px; border: 1px solid #cccccc; height:31px; line-height:31px;}
#kboard-thumbnail-editor .kboard-attr-row .attr-value input[type=radio],
#kboard-thumbnail-editor .kboard-attr-row .attr-value input[type=checkbox] { margin-top: 8px; }
#kboard-thumbnail-editor .kboard-attr-row .attr-value input[type=file] { margin: 0; padding: 6px 2px; font-size: 12px; color: #666666; border: 0; }
#kboard-thumbnail-editor .kboard-content { float: left; padding: 9px 0; width: 100%; border-bottom: 1px solid #e3e3e3; text-align: center; background-color: white; }
#kboard-thumbnail-editor .kboard-content textarea { display: inline; margin: 0; padding: 0; width: 98%; height: 250px; border-radius: 3px; border: 1px solid #cccccc; font-size: 12px; }
#kboard-thumbnail-editor .kboard-control { float: left; padding: 15px 0; width: 100%; }
#kboard-thumbnail-editor .kboard-control .left { position: static; float: left; }
#kboard-thumbnail-editor .kboard-control .right { position: static; float: right; width: 50%; text-align: right; }

body[data-aos-duration='800'] [data-aos],
[data-aos][data-aos][data-aos-duration='800'] {
    transition-duration: 800ms !important;
}

body[data-aos-delay='200'] [data-aos],
[data-aos][data-aos][data-aos-delay='200'] {
    transition-delay: 0.2s !important;
}

body[data-aos-delay='400'] [data-aos],
[data-aos][data-aos][data-aos-delay='400'] {
    transition-delay: 0.4s !important;
}

body[data-aos-delay='600'] [data-aos],
[data-aos][data-aos][data-aos-delay='600'] {
    transition-delay: 0.6s !important;
}



/* ¸ðµç AOS ¿ä¼ÒÀÇ Æ®·£Áö¼Ç ¼Ó¼ºÀ» ÃÖ¿ì¼±À¸·Î ¼³Á¤ */
[data-aos] {
    transition-property: opacity, transform !important;
}