.bna-img-btn.active {
    background: #abd0d9;
    color: #fff;
    font-weight: bold;
    border: 1.5px solid #1a6d8f;
    box-shadow: 0 2px 8px 0 rgba(171, 208, 217, 0.12);
}
.bna-thumb-label {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    height: 2.8em;
    line-height: 1.4em;
    max-height: 2.8em;
    word-break: break-word;
    overflow-wrap: anywhere;
    font-size: 14px;
    margin-top: 6px;
    white-space: pre-line;
}

.bna-list {
    margin: 20px 0 32px 0;
}

.bna-list {
    margin: 40px auto 0 auto;
    max-width: 1000px;
}

#bna-img-rolling {
    width: 100%;
    max-width: 1000px;
    min-width: 0;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    margin: 20px auto;
}

.bna-img-roll {
    width: 100%;
    max-width: 1000px;
    height: auto;
    object-fit: contain;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: block;
}

.bna-img-btns {
    margin-top: 10px;
    text-align: center;
}

.bna-img-btn {
    margin: 0 4px;
    padding: 4px 12px;
    border-radius: 16px;
    border: 1px solid #abd0d9;
    background: #fff;
    color: #222;
    cursor: pointer;
    font-size: 13px;
}

.bna-category {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    margin: 0;
    padding: 0;
    list-style: none;
    border-bottom: 2px solid #e0e0e0;
    background: #fff;
    gap: 0;
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
}

.bna-category li {
    margin: 0;
    padding: 0;
    flex: 0 0 auto;
    min-width: auto;
}

.bna-category a {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 2.6em;
    box-sizing: border-box;
    padding: 8px 16px;
    background: #fff;
    color: #222;
    font-size: 13px;
    border: none;
    border-radius: 8px 8px 0 0;
    text-decoration: none;
    transition: background 0.2s, color 0.2s;
    white-space: normal; /* 줄바꿈 허용 */
    word-break: break-word; /* 단어 단위 줄바꿈 */
    text-align: center;
    position: relative;
    z-index: 1;
    min-width: 0;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.bna-category a:hover {
    background: #eaf6fa;
    color: #1a6d8f;
}

.bna-category .active a {
    background: #abd0d9;
    color: #1a6d8f;
    font-weight: bold;
    z-index: 2;
    box-shadow: 0 2px 8px 0 rgba(171, 208, 217, 0.08);
}

@media (max-width: 600px) {
        .bna-category {
            display: flex;
            flex-wrap: wrap;
            gap: 8px 0;
        }
        .bna-category li {
            flex: 0 0 33.33%;
            max-width: 33.33%;
            min-width: 0;
            box-sizing: border-box;
        }
    .bna-thumb-list {
        gap: 20px 0;
        display: flex;
        flex-wrap: wrap;
    }

    .bna-thumb-item {
        width: 48%;
        min-width: 140px;
        margin-bottom: 20px;
        box-sizing: border-box;
    }
}

@media (max-width: 400px) {
    .bna-thumb-item {
        width: 48%;
        min-width: 0;
        margin-bottom: 20px;
    }

    .bna-thumb-list {
        gap: 20px 0;
        display: flex;
        flex-wrap: wrap;
        justify-content: flex-start;
    }
}

.bna-list {
    width: 100%;
    max-width: 1000px;
    margin: 0 auto 32px auto;
}

.bna-thumb-list {
    display: flex;
    flex-wrap: wrap;
    gap: 24px 2%;
    justify-content: flex-start;
}

.bna-thumb-item {
    width: 32%;
    margin-bottom: 24px;
    background: #f8f8f8;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px 0 rgba(0, 0, 0, 0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.bna-thumb-img {
    width: 100%;
    aspect-ratio: 1/1;
    object-fit: cover;
    background: #eee;
}

.bna-thumb-title {
    font-size: 15px;
    font-weight: 500;
    margin: 10px 0 8px 0;
    color: #222;
    padding: 0 8px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

@media (max-width: 900px) {
    .bna-thumb-item {
        width: 48%;
    }
}

@media (max-width: 600px) {
    .bna-thumb-list {
        gap: 10px 2%;
    }

    .bna-thumb-item {
        width: 48%;
        margin-bottom: 12px;
    }
}

.bna-list-paging {
    text-align: center;
    margin-top: 16px;
}

/* 페이징 버튼 및 링크 스타일 */
.bna-list-paging button,
.bna-list-paging a.bna-paging-btn {
    margin: 0 4px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #abd0d9;
    background: #fff;
    color: #222;
    text-decoration: none;
    font-size: 15px;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}

.bna-list-paging a.bna-paging-btn.active {
    background: #abd0d9;
    color: #fff;
    font-weight: bold;
}

.bna-list-paging a.bna-paging-arrow {
    margin: 0 4px;
    padding: 4px 10px;
    border-radius: 8px;
    border: 1px solid #abd0d9;
    background: #f5f5f5;
    color: #222;
    text-decoration: none;
    font-size: 15px;
    display: inline-block;
    transition: background 0.2s, color 0.2s;
}

.bna-list-paging button.active {
    background: #abd0d9;
    color: #1a6d8f;
    font-weight: bold;
}

/* Category Tab Styles */
.category-tabs {
    width: 100%;
    overflow: hidden;
    margin: 0;
    padding: 0;
}

.category-tab-list {
    display: flex;
    flex-wrap: nowrap;
    width: 100%;
    margin: 10px 0 0 0;
    padding: 0;
}

.category-tab-item {
    flex: 1 1 0;
    margin: 0;
    min-width: 0;
}

.category-tab-item .nav-link {
    width: 100%;
    font-size: 12px;
    padding: 0 4px;
    height: 44px;
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1.1;
    white-space: normal;
    word-break: break-word;
    overflow-wrap: anywhere;
    text-align: center;
    border-radius: 0;
    background-color: #f8f9fa;
    border: 1px solid #dee2e6;
    color: #495057;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
}

.category-tab-item .nav-link.active {
    background-color: rgb(171 208 217);
    border: 1px solid #50aec5;
    color: #ffffff;
    font-weight: 700;
}

/* Responsive: Mobile 3-column layout */
@media (max-width: 768px) {
    .category-tab-list {
        flex-wrap: wrap;
    }
    .category-tab-item {
        flex: 0 0 33.3333%;
        max-width: 33.3333%;
    }
}

/* Subtitle note in heading */
.subtitle-note {
    font-weight: normal;
    font-size: 12px;
}

/* Image rolling display states */
.bna-img-roll {
    display: block;
}

.bna-img-roll-hidden {
    display: none;
}