/* 페이징 전체 스타일 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 4px;
    margin-top: 20px;
}

/* 페이지 숫자 버튼 */
.pagination a,
.pagination strong {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background-color: transparent;
    color: #333;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
    line-height: 36px;
    text-decoration: none;
    transition: background-color 0.2s;
    display: inline-block;
}

/* 현재 페이지 스타일 */
.pagination strong {
    background-color: #e57373;
    color: white;
    font-weight: 600;
}

/* hover 효과 */
.pagination a:hover {
    background-color: #f0f0f0;
}

/* 방향 버튼 (Font Awesome 아이콘 대체) */
.pagination .first::before {
    font-family: "Font Awesome 5 Free";
    content: "\f100"; /* fas fa-angle-double-left */
    font-weight: 900;
}
.pagination .prev::before {
    font-family: "Font Awesome 5 Free";
    content: "\f104"; /* fas fa-angle-left */
    font-weight: 900;
}
.pagination .next::before {
    font-family: "Font Awesome 5 Free";
    content: "\f105"; /* fas fa-angle-right */
    font-weight: 900;
}
.pagination .last::before {
    font-family: "Font Awesome 5 Free";
    content: "\f101"; /* fas fa-angle-double-right */
    font-weight: 900;
}

/* 텍스트 숨김 (접근성 유지) */
.pagination .first,
.pagination .prev,
.pagination .next,
.pagination .last {
    text-indent: -9999px;
    overflow: hidden;
    position: relative;
}
.pagination .first::before,
.pagination .prev::before,
.pagination .next::before,
.pagination .last::before {
    text-indent: 0;
    position: absolute;
    left: 50%;
    top: 50%;
    transform: translate(-50%, -50%);
}

/* 반응형 조정 */
@media (max-width: 768px) {
    .pagination a,
    .pagination strong {
        width: 32px;
        height: 32px;
        line-height: 32px;
        font-size: 13px;
    }
}

/*사용여부*/
.check-switch {
    position: relative;
    display: inline-flex;
    vertical-align: middle;
    align-items: center;
    cursor: pointer;
}
.check-switch .label {
    position: relative;
    display: inline-flex;
    align-items: center;
    text-align: center;
    min-width: 48px;
    height: 24px;
    border-radius: 15px;
    padding-left: 28px;
    padding-right: 8px;
    background-color: #a6adb9;
    color: #fff;
    font-size: 12px;
    line-height: 1;
    text-align: center;
    white-space: nowrap;
    transition-duration: 0.3s;
    transition-property: background-color, hover;
}
.check-switch .label:after {
    content: "";
    position: absolute;
    top: 3px;
    left: 3px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background-color: #fff;
    transition-duration: 0.3s;
}
.check-switch .label span {
    display: block;
    line-height: 23px;
}
.check-switch .label .text-checked {
    display: none;
    opacity: 0;
    transition-duration: 0.3s;
    transition-timing-function: ease-in;
}
.check-switch input {
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
}
.check-switch input:focus + label,
.check-switch input:focus + .label {
    outline: 2px solid rgba(53, 127, 237, 0.5);
}
.check-switch input:not(:focus-visible) + label,
.check-switch input:not(:focus-visible) + .label {
    outline: 0;
}
.check-switch input:checked + .label {
    background-color: #357fed;
    padding-left: 12px;
    padding-right: 23px;
}
.check-switch input:checked + .label:after {
    left: calc(100% - 21px);
}
.check-switch input:checked + .label .text-uncheck {
    display: none;
    opacity: 0;
}
.check-switch input:checked + .label .text-checked {
    display: inline;
    opacity: 1;
}
.check-switch input:disabled + .label {
    opacity: 0.5;
}
.check-switch.check-switch-fix {
    max-width: 60px;
    width: 80px;
}
.check-switch.check-switch-fix .label {
    width: 100%;
    padding-left: 23px;
}
.check-switch.check-switch-fix .label span {
    line-height: 1;
}
.check-switch.check-switch-fix input:checked + .label {
    padding-left: 10px;
}

/*이전 - 다음글*/
.article-nav {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    width: 100%;
}
.article-nav .item {
    display: flex;
    flex-direction: column;
    padding: 20px;
    background: #fff;
    border-radius: 16px;
}
.article-nav .item > span {
    display: inline-flex;
    align-items: center;
    font-size: 12px;
}
.article-nav .item:hover {
    background: #f9fafb;
}
.article-nav .link-info {
    display: block;
    margin-top: 8px;
    font-weight: 500;
    max-width: 100%;
    white-space: nowrap;
    max-height: 1.3em;
    line-height: 1.3em;
    text-overflow: ellipsis;
    overflow: hidden;
}
@media (min-width: 1025px) {
    .article-nav {
       /* min-height: 82px;*/
        margin-top: 20px;
        gap: 20px;
    }
    .article-nav > li {
        width: calc(50% - 10px);
    }
    .article-nav .item {
       /* min-height: 82px;*/
    }
    .article-nav .prev {
        position: absolute;
        left: 0;
    }
    .article-nav .next {
        position: absolute;
        right: 0;
    }
}
@media (max-width: 1024.98px) {
    .article-nav {
        flex-direction: column;
        padding-bottom: 0;
    }
    .article-nav > li {
        width: 100%;
        border-top: 1px solid #e5e7eb;
    }
    .article-nav > li + li {
        margin-left: 0;
        margin-left: 0;
    }
    .article-nav .item {
        min-height: 82px;
        border-radius: 0;
    }
    .article-nav .link-info {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        white-space: normal;
        max-height: 2.6em;
        line-height: 1.3em;
        text-overflow: ellipsis;
        overflow: hidden;
    }
}

/*게시판테이블*/
/* tables */

.table table {
    width: 100%;
    border-spacing: 0;
    border-collapse: collapse;
    border-bottom: 1px solid #e5e7eb;
    table-layout: fixed;
}
.table th {
    background-color: #f9fafb;
    font-weight: 500;
    color: #1f2937;
}
.table th > * {
    vertical-align: middle;
}
.table th,
.table td {
    height: 40px;
    padding: 4px 12px;
    border: 1px solid #e5e7eb;
    border-right: 0;
    border-left: 0;
    background-clip: padding-box;
}
.table .req {
    position: relative;
    width: 0.5em;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    vertical-align: middle;
    overflow: hidden;
    text-indent: -9999px;
    overflow: hidden;
    text-align: left;
}
.table .req:after {
    content: "";
    position: absolute;
    left: 2px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #ef4444;
}
@media (max-width: 1024.98px) {
    /*.table {
        margin-left: -20px;
        margin-right: -20px;
    }
    .table .table-inner {
        padding-left: 20px;
        padding-right: 20px;
    }*/
}

.table-scroll-x .table-inner {
    overflow-x: auto;
}

.table-list {
    text-align: center;
}
.table-list table {
    border: 0;
    border-top: 1px solid #e5e7eb;
    table-layout: auto;
}
.table-list .table-inner {
    overflow-x: auto;
    overflow-y: hidden;
}
.table-list th,
.table-list td {
    height: 40px;
    border-bottom: 1px solid #e5e7eb;
    padding: 4px 12px;
}
.table-list tbody tr:hover {
    background-color: #eff6ff;
}
.table-list th {
    color: #1f2937;
    white-space: nowrap;
}
.table-list th > strong {
    font-weight: 500;
    line-height: 1.3;
    vertical-align: baseline;
}
.table-list td.text-left {
    padding-left: 16px;
    padding-right: 16px;
}
.table-list td.text-ellipsis {
    /* 240619 text-ellipsis 클래스 적용 시 무조건 495px로 고정 */
    max-width: 100%;
    white-space: nowrap;
    max-height: 1.3em;
    line-height: 1.3em;
    text-overflow: ellipsis;
    overflow: hidden;
    max-width: 495px;
}
.table-list td.link-ellipsis {
    max-width: 495px;
}
.table-list td.link-ellipsis a {
    max-width: 100%;
    white-space: nowrap;
    max-height: 1.3em;
    line-height: 1.3em;
    text-overflow: ellipsis;
    overflow: hidden;
    display: inline-block;
    vertical-align: middle;
}
.table-list td.link-ellipsis .link[target=_blank]:before {
    top: 50%;
    transform: translateY(-50%);
}
.table-list td.link-ellipsis.new {
    position: relative;
}
.table-list td.link-ellipsis.new a {
    max-width: calc(100% - 20px);
}
.thumb-preview {
    width: 51.2px;
    height: 32px;
    border-radius: 4px;
    background: #e5e7eb url(../images/img-no-img@2x.png) no-repeat center center;
    background-size: 19.5px auto;
    overflow: hidden;
}
.thumb-preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    vertical-align: top;
}

.table-list .thumb-preview {
    display: block;
    margin: 0 auto;
}
.table-list .thumb-preview.video {
    position: relative;
}
.table-list .thumb-preview.video::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #17171c;
    opacity: 0.5;
}
.table-list .thumb-preview.video::after {
    content: "";
    position: absolute;
    top: calc(50% - 8px);
    left: calc(50% - 8px);
    width: 16px;
    height: 16px;
    background: url(../images/ico-player.png) no-repeat center center;
    background-size: 16px 16px;
    opacity: 1;
}

.table-form-basic .table-inner {
    padding-left: 14px;
    padding-right: 14px;
}
.table-form-basic table {
    display: block;
    border-bottom: 0;
}
.table-form-basic colgroup {
    display: none;
}
.table-form-basic thead th {
    text-align: center;
}
.table-form-basic tbody {
    display: block;
}
.table-form-basic tr {
    display: flex;
}
.table-form-basic th,
.table-form-basic td {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    border: 0;
    height: auto;
    min-height: 48px;
    padding: 6px 10px;
}
.table-form-basic th {
    background: #fff;
}
.table-form-basic td {
    gap: 8px;
}
.table-form-basic + .btn-group {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
@media (min-width: 1025px) {
    .table-form-basic th {
        flex: 0 0 auto;
        text-align: left;
        width: 10.31%;
    }
    .table-form-basic td {
        flex: 1 1 39.69%;
    }
    .card .table-form-basic .table-inner {
        padding-left: 14px;
        padding-right: 14px;
    }
    .table-form-basic + .btn-group {
        position: relative;
    }
    .table-form-basic + .btn-group:after {
        display: block;
        border-radius: 12px;
        padding: 12px;
        background: red;
        opacity: 0.5;
        position: absolute;
        top: 100%;
        color: #fff;
        content: "[마크업] .btn-group -> .btn-group-center로 변경 요망";
    }
    .table-form-basic + .btn-group-center {
        margin-top: 10px;
    }
}
@media (max-width: 1024.98px) {
    .table-form-basic {
        margin: 0 !important;
    }
    .table-form-basic tr {
        flex-wrap: wrap;
    }
    .table-form-basic th {
        width: 20%;
    }
    .table-form-basic td {
        flex: 1 0 80%;
    }
    .table-form-basic .table-inner {
        padding: 0;
    }
    .table-form-basic table {
        border-top: 0;
    }
    .table-form-basic tbody {
        margin-top: -20px;
    }
    .table-form-basic tr {
        flex-direction: column;
    }
    .table-form-basic th,
    .table-form-basic td {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 0;
        border: 0;
        height: auto;
        min-height: auto;
    }
    .table-form-basic th {
        width: auto;
        min-height: auto;
        background: none;
        margin-top: 20px;
    }
    .table-form-basic td {
        margin-top: 8px;
        flex-basis: 100%;
        gap: 8px;
        font-size: 16px;
    }
    .table-form-basic + .btn-group-center {
        margin-top: 32px;
    }
}

.table-row table {
    border-bottom: 0;
    border-top: 1px solid #e5e7eb;
}
.table-row colgroup {
    display: none;
}
.table-row thead th {
    text-align: center;
}
.table-row tbody {
    display: block;
}
.table-row tr {
    display: flex;
    text-align: left;
    color: #1f2937;
}
.table-row th,
.table-row td {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    align-content: center;
    border-top: 0;
    height: auto;
    min-height: 48px;
    padding: 6px 16px;
}
.table-row th {
    flex: 0 0 auto;
}
.table-row td {
    gap: 8px;
}
.table-row + .btn-group .btn {
    margin-top: 0;
    margin-bottom: 0;
}
@media (min-width: 1025px) {
    .table-row th {
        width: 11.75%;
        min-width: 120px;
    }
    .table-row td {
        min-width: 0;
        flex: 1 1 38.25%;
    }
}
@media (min-width: 768px) {
    .table-row-sm th,
    .table-row-sm td {
        min-height: 40px;
        padding: 4px 12px;
    }
    .table-row-sm th {
        width: 100px;
    }
}
@media (max-width: 1024.98px) {
    .table-row tr {
        flex-wrap: wrap;
    }
    .table-row th {
        width: 20%;
    }
    .table-row td {
        flex: 1 0 80%;
    }
}
@media (max-width: 767.98px) {
    .table-row {
        margin: 0 !important;
    }
    .table-row .table-inner {
        padding: 0;
    }
    .table-row table {
        border-top: 0;
    }
    .table-row tbody {
        margin-top: -20px;
    }
    .table-row tr {
        flex-direction: column;
    }
    .table-row th,
    .table-row td {
        display: flex;
        flex-wrap: wrap;
        align-items: center;
        padding: 0;
        border: 0;
        height: auto;
        min-height: auto;
    }
    .table-row th {
        width: auto;
        min-height: auto;
        background: none;
        margin-top: 20px;
    }
    .table-row td {
        margin-top: 8px;
        flex-basis: 100%;
        gap: 8px;
        font-size: 16px;
    }
}

th > .req,
label + .req {
    overflow: visible !important;
}
th > .req:before,
label + .req:before {
    display: block;
    position: absolute;
    z-index: 10;
    width: 200px;
    margin-left: 10px;
    padding: 12px;
    border-radius: 0 12px 12px 12px;
    color: #fff;
    text-indent: 0;
    font-style: normal;
    white-space: pre-wrap;
}

/*다운로드*/
.file-add-area {
    width: 100%;
}
.file-add-area .file-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}
.file-add-area .file-list .file-item {
    display: flex;
    align-items: center;
    width: 100%;
    height: 100%;
    padding: 12px;
    background: #f3f4f6;
    border-radius: 12px;
}
.file-add-area .file-list .file-item .preview {
    display: inline-block;
    min-width: 40px;
    max-height: auto;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: url(/media/assets/neibis/images/img-upload-file@2x.jpg);
    background-repeat: no-repeat;
    background-position: center center;
    background-size: 40px auto;
}
.file-add-area .file-list .file-item .preview img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-fit: scale-down;
    border-radius: 8px;
}
.file-add-area .file-list .info {
    width: calc(100% - 92px);
    margin-left: 12px;
    margin-right: 12px;
}
.file-add-area .file-list .info .name {
    font-weight: 500;
    font-size: 14px;
    line-height: 130%;
    letter-spacing: -0.01em;
    color: #374151;
}
.file-add-area .file-list .info .size {
    font-weight: 400;
    font-size: 12px;
    line-height: 130%;
    letter-spacing: -0.01em;
    color: #7e8594;
}
.file-add-area .file-list .info .size strong {
    font-weight: 400;
}
.file-add-area .file-list .btn-area {
    display: flex;
    align-items: center;
}
.file-add-area .file-list .btn-area .btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
}
.file-add-area .file-list .btn-area .btn .ico {
    margin-right: 0;
}
.file-add-area .file-list .btn-area .btn + .btn {
    margin-left: 4px;
}
.file-add-area .file-list .btn-area .btn:hover {
    background-color: #e5e7eb;
}

.table + .info-editor-area {
    margin-top: 40px;
}

.info-editor-area .title1 + .editor-wrap {
    margin-top: 12px;
}
.info-editor-area .title1 .req {
    position: relative;
    width: 0.5em;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    vertical-align: middle;
    overflow: hidden;
    text-indent: -9999px;
    overflow: hidden;
    text-align: left;
}
.info-editor-area .title1 .req:after {
    content: "";
    position: absolute;
    left: 2px;
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #ef4444;
}
.info-editor-area .text-area {
    display: block;
    width: 100%;
    height: auto;
    padding: 24px 0;
}

.info-editor-area + .btn-group-between {
    margin-top: 16px;
}
@media (max-width: 767.98px) {
    .info-editor-area + .btn-group-between .btn-group-flex {
        display: flex;
        width: calc(100% + 8px);
        margin-left: -4px;
        margin-right: -4px;
    }
    .info-editor-area + .btn-group-between .btn-group-flex > * {
        flex: 1 1 auto;
        margin: 4px;
        min-width: calc(50% - 8px);
    }
}

.reply-area {
    display: none;
    padding: 20px 24px 24px;
    background: #f3f4f6;
    border: 1px solid #e5e7eb;
    border-radius: 16px;
}
.reply-area .title1 {
    margin-bottom: 12px;
}
.reply-area .reply-wrap {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.reply-area .reply-wrap + .btn-group-center {
    margin-top: 12px;
}
.reply-area .reply-wrap .item {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.reply-area .reply-wrap .item .label .req {
    position: relative;
    width: 0.5em;
    display: inline-block;
    background-repeat: no-repeat;
    background-position: center center;
    background-size: cover;
    vertical-align: middle;
    overflow: hidden;
    text-indent: -9999px;
    overflow: hidden;
    text-align: left;
}
.reply-area .reply-wrap .item .label .req:after {
    position: absolute;
    left: 2px;
    content: "";
    width: 3px;
    height: 3px;
    border-radius: 50%;
    background-color: #ef4444;
}

.card + .comment {
    display: none;
}

.comment-area {
    border-radius: 16px;
}
.comment-area .user-wrap {
    display: flex;
    gap: 8px;
}
.comment-area .user-img {
    position: relative;
    width: 36px;
    min-width: 36px;
    height: 36px;
    border: 1px solid #e5e7eb;
    border-radius: 50%;
    overflow: hidden;
    background: #f9fafb url(/media/assets/neibis/images/ico-user-lightgray-sm@2x.png) no-repeat center center;
    background-size: 16px auto;
}
.comment-area .user-img > img {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.comment-area .user-info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}
.comment-area .user-info .user > span {
    font-weight: 400;
}
.comment-area .user-info .date {
    font-weight: 400;
    font-size: 12px;
    color: #7e8594;
}
.comment-area .comment-write .write-wrap {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.comment-area .comment-cont {
    margin-top: 24px;
}
.comment-area .comment-cont .comment-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}
.comment-area .comment-cont .item {
    display: flex;
    flex-direction: column;
    gap: 8px;
    padding: 24px;
    border-radius: 16px;
    background: #f3f4f6;
}
.comment-area .comment-cont .item .user-img {
    border: 1px solid #e5e7eb;
    background: #fff url(/media/assets/neibis/images/ico-user-lightgray-sm@2x.png) no-repeat center center;
    background-size: 16px auto;
}
.comment-area .comment-cont .item.delete .text-delete {
    color: #7e8594;
}
@media (max-width: 1024.98px) {
    .comment-area .btn-group-center button {
        flex: 1 1 auto;
    }
}

.btn-group-between + .comment-area {
    margin-top: 20px;
    padding: 20px 24px 24px;
    background: #f3f4f6;
}
.btn-group-between + .comment-area .comment-write .write-wrap {
    gap: 8px;
}
.btn-group-between + .comment-area .comment-cont .item {
    background: #e5e7eb;
}

.list-replay.depth1 .replay-title {
    padding-left: 40px;
}
.list-replay.depth1 .replay-title::before {
    left: 20px;
}

.list-replay.depth2 .replay-title {
    padding-left: 48px;
}
.list-replay.depth2 .replay-title::before {
    left: 28px;
}

.list-replay.depth3 .replay-title {
    padding-left: 56px;
}
.list-replay.depth3 .replay-title::before {
    left: 36px;
}

.list-replay.depth4 .replay-title {
    padding-left: 64px;
}
.list-replay.depth4 .replay-title::before {
    left: 44px;
}

.list-replay.depth5 .replay-title {
    padding-left: 72px;
}
.list-replay.depth5 .replay-title::before {
    left: 52px;
}

.list-replay.depth6 .replay-title {
    padding-left: 80px;
}
.list-replay.depth6 .replay-title::before {
    left: 60px;
}

.list-replay.depth7 .replay-title {
    padding-left: 88px;
}
.list-replay.depth7 .replay-title::before {
    left: 68px;
}

.list-replay.depth8 .replay-title {
    padding-left: 96px;
}
.list-replay.depth8 .replay-title::before {
    left: 76px;
}

.list-replay.depth9 .replay-title {
    padding-left: 104px;
}
.list-replay.depth9 .replay-title::before {
    left: 84px;
}

.list-replay.depth10 .replay-title {
    padding-left: 112px;
}
.list-replay.depth10 .replay-title::before {
    left: 92px;
}

.list-replay {
    background: #f9fafb;
}
.list-replay .replay-title {
    position: relative;
    padding-left: 40px;
}
.list-replay .replay-title::before {
    position: absolute;
    top: 50%;
    left: 20px;
    content: "";
    display: inline-block;
    width: 12px;
    height: 12px;
    background: url(/media/assets/neibis/images/ico-reply-gray-sm@2x.png) no-repeat;
    background-position: center center;
    background-size: 12px auto;
    transform: translateY(-50%);
}

.comment-num {
    margin-left: 8px;
}
.comment-num .ico + span {
    margin-left: 4px;
    font-weight: 400;
    font-size: 14px;
    color: #374151;
}

.text-delete {
    color: #7e8594;
}

.form-control-sm.full {
    width: 100% !important;
}

/* 상태 표시 */
.label-status {
    display: inline-block;
    min-width: 48px;
    border-radius: 14px;
    padding: 0 6px;
    font-weight: 500;
    font-size: 12px;
    line-height: 24px;
    text-align: center;
}

.label-gray, .label-off {
    color: #4b5563;
    background: #f3f4f6;
}

.label-green, .label-on {
    color: #059669;
    background: #d1fae5;
}

.label-blue {
    color: #2563eb;
    background: #e3efff;
}

.label-orange {
    color: #ea580c;
    background: #ffe6c9;
}

.label-red {
    color: #dc2626;
    background: #fee2e2;
}

.label-violet {
    color: #7c3aed;
    background: #ede9fe;
}

/*영상*/
#videoContainer{
    display: flex;
    justify-content: center;
}