﻿.board-theme .board-pages > span.prev,
.board-theme .board-pages > span.next {
    cursor: pointer;
    color: #666;
    padding: 10px;
}

/* board-list s */
.board-theme .theme-list {
    font-family: 'NanumSquare',san-serif ;
    overflow: hidden;
    width: 100%;
}

    .board-theme .theme-list .list-categories {
        margin-bottom: 12px;
    }

        .board-theme .theme-list .list-categories .category-group {
            vertical-align: top;
        }

            .board-theme .theme-list .list-categories .category-group:hover button {
                background-color: #e6e6e6;
                border-color: #adadad;
            }

            .board-theme .theme-list .list-categories .category-group .category-btn {
                margin-bottom: 2px;
            }

            .board-theme .theme-list .list-categories .category-group .addon-btn {
                padding-left: 5px;
                padding-right: 5px;
            }

            .board-theme .theme-list .list-categories .category-group ul {
                min-width: 100%;
                padding: 0;
                margin: 0;
                border-radius: 0;
            }

                .board-theme .theme-list .list-categories .category-group ul li:last-child {
                    border-bottom: 0;
                }

                .board-theme .theme-list .list-categories .category-group ul li a {
                    cursor: pointer;
                    font-size: 12px;
                    padding: 6px 12px;
                }

                .board-theme .theme-list .list-categories .category-group ul li.selected a {
                    background: #eee;
                }

    .board-theme .theme-list table {
        border-top-width: 1px;
    }

        .board-theme .theme-list table th,
        .board-theme .theme-list table td {
            font-size: 14px;
            text-align: center;
            padding: 14px;
        }

        .board-theme .theme-list table th {
            background: #fcfcfc;
            border-bottom-width: 1px;
            min-width: 70px;
            font-size:17px;
        }

            .board-theme .theme-list table th.document-title {
                width: 50%;
            }

        .board-theme .theme-list table td.document-title {
            text-align: left;
        }

        .board-theme .theme-list table tr.notice td.document-no,
        .board-theme .theme-list table tr.notice td.document-title {
            font-weight: 600;
        }

        .board-theme .theme-list table tr td.document-added_file {
            padding-top: 5px;
            padding-bottom: 5px;
        }

            .board-theme .theme-list table tr td.document-added_file .file-ico {
                display: inline-block;
                width: 30px;
                height: 30px;
                background: #333;
                margin-top: 5px;
            }

        .board-theme .theme-list table th input,
        .board-theme .theme-list table td input {
            margin: 0;
        }

        .board-theme .theme-list table thead th.title {
            width: 50%;
        }

        .board-theme .theme-list table tbody td.document-title a {
            color: #333;
            text-align: left;
            font-size:17px;
        }

            .board-theme .theme-list table tbody td.document-title a:hover {
                text-decoration: underline;
            }

            .board-theme .theme-list table tbody td.document-title a.comment-count {
                color: #333;
                margin-left: 6px;
                text-decoration: none;
                font-weight: 600;
            }

        .board-theme .theme-list table tbody td.document-title span.file {
            color: #000;
            vertical-align: middle;
        }

        .board-theme .theme-list table tbody td.document-title span.reserved {
            background: #444;
            color: #fff;
            padding: 2px 4px;
            margin-left: 6px;
        }

    .board-theme .theme-list .document-title a.active {
        text-decoration: underline;
    }

    .board-theme .theme-list .no-document {
        text-align: center;
        padding: 21px 0;
    }

.board-theme.list .board-pages {
    padding: 21px 0 30px 0;
    text-align: center;
    max-width: 1040px;
    margin: 0 auto;
}

    .board-theme.list .board-pages > span {
        padding-left: 11px;
        padding-right: 11px;
    }

        .board-theme.list .board-pages > span.page {
            margin-bottom: 5px;
            cursor: pointer;
            font-size: 13px;
            border-radius: 0;
        }

.board-theme.gallery .theme-list table {
    margin-bottom: 15px;
}

.GalleryType{display: grid;grid-template-columns: repeat(auto-fill,minmax(min(100%,var(--width)),1fr));gap: var(--gap);--gap: 30px;--width: 20%;}
.board-theme.gallery .theme-list .GalleryType > .each-document {
    display: inline-block;
    vertical-align: top;
}

    .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image {
        display: inline-block;
        width: 100%;
        height:var(--height);
        --height:260px;
        position: relative;
        border: 1px solid #ddd;
        background-repeat: no-repeat;
        background-size: cover;
        background-position: 50% 50%;
        background-color: #000;
        float:left;
    }
        .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image .document-checkbox{display: flex;z-index: 1;position: relative;}

        .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image > .no-image {
            position: absolute;
            left: 0;
            width: 100%;
            text-align: center;
            color: #333;
            margin-top: 0;
            height: 100%;
            top: 0;
            background: #eee;
        }

            .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image > .no-image span {
                position: absolute;
                top: 50%;
                left: 0;
                width: 100%;
                margin-top: -9px;
            }

        .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image > .list-items {
            width: 100%;
            height: 100%;
            background: rgba(0,0,0,0.63);
            position: absolute;
            left: 0;
            top: 0;
            display: table;
            transition: opacity 0.21s;
            opacity: 0;
        }

        .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image:hover > .list-items {
            opacity: 1;
        }

        .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image > .list-items .items-wrapper {
            display: table-cell;
            color: #fff;
            vertical-align: middle;
        }

            .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image > .list-items .items-wrapper > .list-item {
                font-size:17px;
                display: block;
                text-align: center;
            }

                .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image > .list-items .items-wrapper > .list-item.title {
                    font-size: 16px;
                    margin-bottom: 4px;
                }

    .board-theme.gallery .theme-list .GalleryType > .each-document > a.title {
        width: 100%;
        display: block;
        overflow: hidden;
        text-align: center;
        color: #333;
        line-height:2;
        text-overflow: ellipsis;
        white-space: nowrap;
        font-size:16px;
        text-decoration:none;color:inherit;
    }

.board-theme.webzine .each-document {
    display: block;
    text-decoration: none;
    border: 1px solid #ddd;
    color: #333;
    position: relative;
    height: 172px;
    transition: border 0.4s;
    margin-top: 15px;
    display: inline-block;
    width: 100%;
}

    .board-theme.webzine .each-document:first-child {
        margin-top: 0;
    }

    .board-theme.webzine .each-document:hover {
        border-color: #07c;
    }

    .board-theme.webzine .each-document span {
        display: block;
    }

    .board-theme.webzine .each-document > span {
        height: 100%;
    }

    .board-theme.webzine .each-document .list-img {
        height: 100%;
        background-size: auto 100%;
        background-repeat: no-repeat;
        background-position: 50% 50%;
        background-color: #eee;
        height: 170px;
    }

    .board-theme.webzine .each-document .list-content .top {
        color: #333;
        font-weight: bold;
        padding: 15px;
        position: absolute;
        left: 0;
        top: 0;
        width: 100%;
    }

        .board-theme.webzine .each-document .list-content .top .title {
            font-size: 16px;
            display: inline-block;
            width: 50%;
            overflow: hidden;
            text-overflow: ellipsis;
            white-space: nowrap;
        }

        .board-theme.webzine .each-document .list-content .top .date {
            float: right;
        }

        .board-theme.webzine .each-document .list-content .top .writer {
            float: right;
            margin-right: 10px;
        }

    .board-theme.webzine .each-document .list-content .content {
        padding: 50px 0 15px 0;
        height: 100%;
    }

        .board-theme.webzine .each-document .list-content .content .wrapper {
            height: 100%;
            display: block;
            overflow: hidden;
            width: 100%;
            display: -webkit-box;
            -webkit-line-clamp: 6;
            -webkit-box-orient: vertical;
        }

            .board-theme.webzine .each-document .list-content .content .wrapper img {
                display: none;
            }
/* board-list e */
/* board-detail s */
.board-theme .theme-detail .detail-top {
    background: #fbfbfb;
    padding: 14px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    display: inline-block;
    width: 100%;
}

    .board-theme .theme-detail .detail-top .document-title {
        float: left;
        color: #333;
        overflow: hidden;
        font-weight: 600;
        font-size:17px;
    }

        .board-theme .theme-detail .detail-top .document-title .category {
            margin-right: 3px;
        }

    .board-theme .theme-detail .detail-top .document-regdate {
        float: right;
        font-size:17px;
    }

.board-theme .theme-detail .detail-upper {
    padding: 8px 14px;
    border-bottom: 1px solid #eee;
    display: inline-block;
    width: 100%;
}

    .board-theme .theme-detail .detail-upper .document-writer {
        float: left;
        font-size:17px;
    }

    .board-theme .theme-detail .detail-upper .document-readed_count {
        float: right;
        font-size:17px;
    }

.board-theme .theme-detail .detail-video > * {
    margin-top: 12px;
}
.board-theme .theme-detail .donw-pdf{padding: 15px;font-size: 38px;cursor: pointer;
text-align: center;background-color: #fff;color: #fff;margin: 10px 0;border:2px solid #adadad;}
.board-theme .theme-detail .donw-pdf a{color:#000;text-decoration:none;}

.board-theme .theme-detail .detail-video > a.video-button {
    display: block;
    width: 100%;
    text-align: center;
    background: #4e4e4e;
    color: #fff;
    padding: 16px 0;
    border-radius: 2px;
    font-size: 14px;
    text-decoration: none;
}

.board-theme .theme-detail .detail-video .video-js {
    width: 100%;
    height: auto;
}

    .board-theme .theme-detail .detail-video .video-js .vjs-tech {
        height: auto;
        position: relative;
    }

.board-theme .theme-detail .detail-video iframe {
    width: 100%;
    height: 540px;
}

.board-theme .theme-detail .detail-audio > * {
    margin-top: 12px;
}

.board-theme .theme-detail .detail-audio-downlad {
    text-align: center;
    margin: 12px 0 21px 0;
}

    .board-theme .theme-detail .detail-audio-downlad > a {
        font-size: 14px;
        background: #07c;
        color: #fff;
        text-decoration: none;
        padding: 12px 24px;
        display: inline-block;
    }

.board-theme .theme-detail .detail-pdf iframe {
    width: 100%;
    height: 550px;
}

.board-theme .theme-detail .detail-content {
    padding: 14px;
    word-break: break-all;
    font-size: 13px;
}

    .board-theme .theme-detail .detail-content img {
        cursor: pointer;
    }
/* board-detail e */

/* board-write s */
.board-theme .theme-write {
    padding: 21px 21px 0 21px;
    background: #eee;
}

    .board-theme .theme-write .title-category {
        padding: 0;
    }

    .board-theme .theme-write .title-content {
        padding: 0;
    }

    .board-theme .theme-write .document-title {
        margin: 0;
    }

    .board-theme .theme-write .document-extended_keys {
        margin-top: 12px;
        padding: 1px;
    }

        .board-theme .theme-write .document-extended_keys table {
            border: 1px solid #ccc;
        }

            .board-theme .theme-write .document-extended_keys table tr {
                background: #f9f9f9;
            }

                .board-theme .theme-write .document-extended_keys table tr th {
                    font-size: 11px;
                    vertical-align: middle;
                }

                .board-theme .theme-write .document-extended_keys table tr td select,
                .board-theme .theme-write .document-extended_keys table tr td input {
                    font-size: 12px;
                }

                .board-theme .theme-write .document-extended_keys table tr td textarea {
                    width: 100% !important;
                    height: 120px;
                    min-height: 70px;
                }

        .board-theme .theme-write .document-extended_keys select {
            max-width: 210px;
        }

    .board-theme .theme-write .document-content {
        margin-top: 12px;
    }

        .board-theme .theme-write .document-content #cke_content {
            margin: 0 auto;
        }
/* board-write e */

@media(min-width:768px) {
    .board-theme .theme-write .title-category {
        padding-right: 15px;
    }
}
@media (max-width:1199px) {
	.GalleryType{--width: 30%;}
}
@media (max-width:992px) {
	.GalleryType{--width: 40%;}
}

@media(max-width:767px) {


        .board-theme .theme-list table td.document-category,
        .board-theme .theme-list table td.document-title {
            display: table-cell;
        }

    .board-theme .theme-detail .detail-top .document-title {
        width: 100%;
    }

    .board-theme.gallery {
        text-align: center;
    }
     .board-theme .theme-list table thead {
        display: none;
    }

    .board-theme .theme-list table td {
        display: none;
    }

        .board-theme .theme-list table td.document-category,
        .board-theme .theme-list table td.document-title {
            display: table-cell;
        }

    .board-theme .theme-detail .detail-top .document-title {
        width: 100%;
    }

    .board-theme.gallery {
        text-align: center;
    }
	.GalleryType{--width: 100%;}
}

/* ======================================================================
   갤러리 썸네일 비율 고정
   - 기존 : height 260px 고정 → 화면 너비에 따라 비율이 계속 달라짐
   - 변경 : --ratio 로 비율을 잡고 높이는 너비에 맞춰 자동 계산
   - 문서(교재/주보) 썸네일이 잘리지 않도록 contain 사용
     사진 위주 게시판이면 아래 background-size 를 cover 로 바꾸면 됩니다
   ====================================================================== */
.board-theme.gallery .theme-list .GalleryType > .each-document {
    position: relative;
}

    .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image {
        height: auto;
        aspect-ratio: var(--ratio, 4 / 3);
        background-size: contain;
        background-color: #f4f4f4;
        border: 1px solid #e4e4e4;
    }

/* aspect-ratio 미지원 구형 브라우저 대비 */
@supports not (aspect-ratio: 1 / 1) {
    .board-theme.gallery .theme-list .GalleryType > .each-document > a.title-image {
        height: var(--height, 260px);
    }
}

/* ======================================================================
   갤러리 썸네일 위 첨부파일(PDF) 버튼
   ====================================================================== */
.board-theme.gallery .theme-list .GalleryType > .each-document > .file-btns {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 3;
    display: flex;
    gap: 6px;
    line-height: 0;
}

    .board-theme.gallery .theme-list .GalleryType > .each-document > .file-btns > .file-btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 36px;
        height: 36px;
        border-radius: 50%;
        background: rgba(0,0,0,0.55);
        color: #fff;
        font-size: 16px;
        text-decoration: none;
        transition: background 0.2s ease, transform 0.2s ease;
    }

        .board-theme.gallery .theme-list .GalleryType > .each-document > .file-btns > .file-btn:hover,
        .board-theme.gallery .theme-list .GalleryType > .each-document > .file-btns > .file-btn:focus {
            background: #c0392b;
            color: #fff;
            text-decoration: none;
            transform: translateY(-2px);
        }

/* ======================================================================
   상세화면 첨부파일 카드
   - 기존 donw-pdf(38px 글자 + 회색 테두리 박스) 대체
   - 파일이 여러 개일 때 이름으로 구분되도록 파일명 표시
   - "새 창으로 보기" / "다운로드" 를 각각 별도 버튼으로 분리
   ====================================================================== */
.board-theme .theme-detail .detail-files {
    margin: 16px 0;
}

    .board-theme .theme-detail .detail-files .detail-files-head {
        font-size: 14px;
        color: #888;
        margin-bottom: 8px;
    }

    .board-theme .theme-detail .detail-files .file-item {
        display: flex;
        align-items: center;
        gap: 14px;
        padding: 14px 18px;
        margin-bottom: 10px;
        border: 1px solid #ececec;
        border-radius: 12px;
        background: #fafafa;
        color: #333;
        transition: border-color 0.2s ease, box-shadow 0.2s ease;
    }

        .board-theme .theme-detail .detail-files .file-item:last-child {
            margin-bottom: 0;
        }

        .board-theme .theme-detail .detail-files .file-item:hover {
            border-color: #e0c3c0;
            box-shadow: 0 2px 10px rgba(0,0,0,0.05);
        }

        .board-theme .theme-detail .detail-files .file-item .file-icon {
            flex: 0 0 42px;
            width: 42px;
            height: 42px;
            border-radius: 10px;
            background: #e63946;
            color: #fff;
            display: flex;
            align-items: center;
            justify-content: center;
            font-size: 21px;
        }

        .board-theme .theme-detail .detail-files .file-item .file-info {
            flex: 1 1 auto;
            min-width: 0;
        }

            .board-theme .theme-detail .detail-files .file-item .file-info .file-name {
                display: block;
                font-size: 16px;
                font-weight: 700;
                line-height: 1.4;
                color: #222;
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

            .board-theme .theme-detail .detail-files .file-item .file-info .file-meta {
                display: block;
                font-size: 12px;
                color: #999;
                margin-top: 3px;
            }

        .board-theme .theme-detail .detail-files .file-item .file-actions {
            flex: 0 0 auto;
            display: flex;
            align-items: center;
            gap: 8px;
        }

            .board-theme .theme-detail .detail-files .file-item .file-actions .file-btn {
                display: inline-flex;
                align-items: center;
                gap: 6px;
                height: 40px;
                padding: 0 18px;
                border-radius: 999px;
                font-size: 14px;
                font-weight: 600;
                white-space: nowrap;
                text-decoration: none;
                transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
            }

                .board-theme .theme-detail .detail-files .file-item .file-actions .file-btn:hover,
                .board-theme .theme-detail .detail-files .file-item .file-actions .file-btn:focus {
                    text-decoration: none;
                }

            /* 새 창으로 보기 : 강조(채워진) 버튼 */
            .board-theme .theme-detail .detail-files .file-item .file-actions .file-btn-view {
                background: #e63946;
                border: 1px solid #e63946;
                color: #fff;
            }

                .board-theme .theme-detail .detail-files .file-item .file-actions .file-btn-view:hover,
                .board-theme .theme-detail .detail-files .file-item .file-actions .file-btn-view:focus {
                    background: #c92a37;
                    border-color: #c92a37;
                    color: #fff;
                }

            /* 다운로드 : 보조(외곽선) 버튼 */
            .board-theme .theme-detail .detail-files .file-item .file-actions .file-btn-down {
                background: #fff;
                border: 1px solid #dcdcdc;
                color: #444;
            }

                .board-theme .theme-detail .detail-files .file-item .file-actions .file-btn-down:hover,
                .board-theme .theme-detail .detail-files .file-item .file-actions .file-btn-down:focus {
                    border-color: #aaa;
                    background: #f2f2f2;
                    color: #222;
                }

/* 모바일 : 카드를 세로로 쌓고 버튼은 가로 2등분 */
@media (max-width: 767px) {
    .board-theme .theme-detail .detail-files .file-item {
        flex-wrap: wrap;
        gap: 10px;
        padding: 14px;
    }

        .board-theme .theme-detail .detail-files .file-item .file-info {
            flex: 1 1 0;
        }

            .board-theme .theme-detail .detail-files .file-item .file-info .file-name {
                font-size: 15px;
            }

            .board-theme .theme-detail .detail-files .file-item .file-info .file-meta {
                white-space: nowrap;
                overflow: hidden;
                text-overflow: ellipsis;
            }

        .board-theme .theme-detail .detail-files .file-item .file-actions {
            flex: 1 1 100%;
            width: 100%;
        }

            .board-theme .theme-detail .detail-files .file-item .file-actions .file-btn {
                flex: 1 1 50%;
                justify-content: center;
                padding: 0 10px;
            }
}

/* ======================================================================
   PDF 미리보기 (브라우저 내장 뷰어)
   ====================================================================== */
.board-theme .theme-detail .pdf-viewer {
    margin: 16px 0;
}

    .board-theme .theme-detail .pdf-viewer > .pdf-ppt-viewer {
        display: block;
        width: 100%;
        height: 80vh;
        min-height: 520px;
        border: 1px solid #e4e4e4;
        border-radius: 8px;
        background: #f4f4f4;
    }

    .board-theme .theme-detail .pdf-viewer .pdf-viewer-fallback {
        padding: 32px 20px;
        text-align: center;
        border: 1px dashed #d8d8d8;
        border-radius: 12px;
        background: #fafafa;
    }

        .board-theme .theme-detail .pdf-viewer .pdf-viewer-fallback .pdf-viewer-msg {
            margin: 0 0 14px;
            font-size: 14px;
            color: #888;
        }

        /* 상세 첨부파일 카드와 같은 버튼 모양 재사용 */
        .board-theme .theme-detail .pdf-viewer .pdf-viewer-fallback .file-btn {
            display: inline-flex;
            align-items: center;
            gap: 6px;
            height: 40px;
            margin: 0 3px;
            padding: 0 18px;
            border-radius: 999px;
            font-size: 14px;
            font-weight: 600;
            white-space: nowrap;
            text-decoration: none;
            transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
        }

        .board-theme .theme-detail .pdf-viewer .pdf-viewer-fallback .file-btn-view {
            background: #e63946;
            border: 1px solid #e63946;
            color: #fff;
        }

            .board-theme .theme-detail .pdf-viewer .pdf-viewer-fallback .file-btn-view:hover,
            .board-theme .theme-detail .pdf-viewer .pdf-viewer-fallback .file-btn-view:focus {
                background: #c92a37;
                border-color: #c92a37;
                color: #fff;
                text-decoration: none;
            }

        .board-theme .theme-detail .pdf-viewer .pdf-viewer-fallback .file-btn-down {
            background: #fff;
            border: 1px solid #dcdcdc;
            color: #444;
        }

            .board-theme .theme-detail .pdf-viewer .pdf-viewer-fallback .file-btn-down:hover,
            .board-theme .theme-detail .pdf-viewer .pdf-viewer-fallback .file-btn-down:focus {
                border-color: #aaa;
                background: #f2f2f2;
                color: #222;
                text-decoration: none;
            }

@media (max-width: 767px) {
    .board-theme .theme-detail .pdf-viewer .pdf-viewer-fallback .file-btn {
        display: flex;
        width: 100%;
        justify-content: center;
        margin: 0 0 8px;
    }

        .board-theme .theme-detail .pdf-viewer .pdf-viewer-fallback .file-btn:last-child {
            margin-bottom: 0;
        }
}

/* ======================================================================
   목록형(List) 게시판 - 모바일 / 태블릿 카드 뷰 (max-width: 992px)
   - 기존에는 thead 와 대부분의 td 를 감추어 제목만 나열되어
     글 사이 구분이 없고 클릭 가능한 영역인지 알기 어려웠음
   - tr 을 카드로 바꾸고 제목 / 메타정보(작성자·날짜·조회수) 를 함께 노출
   ====================================================================== */
@media (max-width: 992px) {

    .board-theme .theme-list table {
        border: 0;
        border-top: 0;
        margin-bottom: 0;
        background: transparent;
    }

    .board-theme .theme-list table thead {
        display: none;
    }

    .board-theme .theme-list table tbody {
        display: block;
    }

    /* ── 한 건 = 카드 한 장 ── */
    .board-theme .theme-list table tbody tr {
        display: block;
        position: relative;
        margin: 0 0 10px 0;
        padding: 0 0 13px 0;
        border: 1px solid #e3e3e3;
        border-radius: 8px;
        background: #fff;
        box-shadow: 0 1px 2px rgba(0,0,0,0.04);
        cursor: pointer;
        transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
    }

    .board-theme .theme-list table tbody tr:last-child {
        margin-bottom: 0;
    }

    .board-theme .theme-list table tbody tr:hover,
    .board-theme .theme-list table tbody tr:active {
        border-color: #b9c4b9;
        box-shadow: 0 3px 10px rgba(0,0,0,0.08);
        transform: translateY(-1px);
    }

    /* ── 우측 화살표(클릭 가능 표시) ── */
    .board-theme .theme-list table tbody tr:after {
        content: "";
        position: absolute;
        top: 50%;
        right: 16px;
        width: 8px;
        height: 8px;
        margin-top: -4px;
        border-right: 2px solid #bbb;
        border-bottom: 2px solid #bbb;
        transform: rotate(-45deg);
        transition: border-color 0.18s ease, right 0.18s ease;
    }

    .board-theme .theme-list table tbody tr:hover:after {
        border-color: #6d8a6d;
        right: 12px;
    }

    /* ── 셀 공통 : 표 레이아웃 해제 ── */
    .board-theme .theme-list table tbody td {
        display: none;
        border: 0;
        text-align: left;
        padding: 0;
    }

    /* ── 제목 ── */
    .board-theme .theme-list table tbody td.document-title {
        display: block;
        padding: 14px 40px 0 16px;
    }

    .board-theme .theme-list table tbody td.document-title a {
        display: inline;
        font-size: 16px;
        font-weight: 600;
        line-height: 1.45;
        color: #222;
        word-break: keep-all;
    }

    .board-theme .theme-list table tbody td.document-title a:hover {
        text-decoration: none;
    }

    /* ── 메타 정보 : 작성자 / 날짜 / 조회수 ── */
    .board-theme .theme-list table tbody td.document-writer,
    .board-theme .theme-list table tbody td.document-regdate,
    .board-theme .theme-list table tbody td.document-readedcount {
        display: inline-block;
        margin: 7px 0 0 16px;
        padding: 0;
        font-size: 12px;
        font-weight: 400;
        color: #999;
        line-height: 1.2;
    }

    /* 메타 항목 사이 구분점 */
    .board-theme .theme-list table tbody td.document-regdate:before,
    .board-theme .theme-list table tbody td.document-readedcount:before {
        content: "";
        display: inline-block;
        width: 2px;
        height: 2px;
        margin: 0 8px 3px -9px;
        border-radius: 50%;
        background: #ccc;
        vertical-align: middle;
    }

    .board-theme .theme-list table tbody td.document-readedcount:after {
        content: " 회";
    }

    /* ── 분류(카테고리) : 제목 위 작은 배지 ── */
    .board-theme .theme-list table tbody td.document-category {
        display: block;
        padding: 14px 16px 0 16px;
    }

    .board-theme .theme-list table tbody td.document-category:empty {
        display: none;
    }

    .board-theme .theme-list table tbody td.document-category span {
        display: inline-block;
        padding: 2px 8px;
        border-radius: 3px;
        background: #f0f4f0;
        font-size: 11px;
        font-weight: 600;
        color: #5a7a5a;
        line-height: 1.6;
    }

    /* 분류가 있으면 제목 위 여백은 분류가 담당 */
    .board-theme .theme-list table tbody td.document-category + td.document-title {
        padding-top: 6px;
    }

    /* ── 공지 글 ── */
    .board-theme .theme-list table tbody tr.notice {
        border-color: #cdd8cd;
        background: #fafcfa;
    }

    .board-theme .theme-list table tbody tr.notice td.document-no,
    .board-theme .theme-list table tbody tr.notice td.document-number {
        display: block;
        padding: 13px 16px 0 16px;
        font-size: 0;
    }

    .board-theme .theme-list table tbody tr.notice td.document-no:before,
    .board-theme .theme-list table tbody tr.notice td.document-number:before {
        content: "공지";
        display: inline-block;
        padding: 2px 8px;
        border-radius: 3px;
        background: #5a7a5a;
        font-size: 11px;
        font-weight: 600;
        color: #fff;
        line-height: 1.6;
    }

    .board-theme .theme-list table tbody tr.notice td.document-no + td.document-title,
    .board-theme .theme-list table tbody tr.notice td.document-number + td.document-title {
        padding-top: 6px;
    }

    /* ── 첨부파일 / 댓글수 표시 ── */
    .board-theme .theme-list table tbody td.document-title span.file,
    .board-theme .theme-list table tbody td.document-title a.comment-count,
    .board-theme .theme-list table tbody td.document-title span.reserved {
        font-size: 12px;
        vertical-align: middle;
    }

    /* ── 관리자 체크박스 ── */
    .board-theme .theme-list table tbody td.document-checkbox {
        display: block;
        position: absolute;
        top: 12px;
        right: 38px;
        padding: 0;
    }

    .board-theme .theme-list table tbody tr:has(td.document-checkbox) td.document-title {
        padding-right: 70px;
    }

    /* ── 글이 없을 때 ── */
    .board-theme .theme-list .no-document {
        padding: 40px 16px;
        border: 1px dashed #e0e0e0;
        border-radius: 8px;
        color: #999;
        font-size: 14px;
    }
}

/* ── 태블릿 : 2단 배치 ── */
@media (min-width: 768px) and (max-width: 992px) {

    .board-theme .theme-list table tbody {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 10px;
    }

    .board-theme .theme-list table tbody tr {
        margin: 0;
        height: 100%;
    }
}
