/* (기존 스타일 그대로 유지) */

.bg_ex25 {
    background-color: #c3ffd1;
    /* 원하는 색상 */
}

.board-list {
    font-size: .9375rem
}

/* 전체 999 건 - 1 페이지 이 부분  */
.board-list .board-setup {
    position: relative;
    border: 1px solid #d5d5d5;
    height: 38px;
    margin-bottom: 20px
}

.board-list .board-setup .select {
    position: absolute;
    top: -1px;
    left: -1px;
    display: inline-block;
    width: 200px
}

.board-list .board-setup-btn-box {
    position: absolute;
    top: -1px;
    right: -1px;
    display: inline-block;
    width: 420px
}

.board-list .board-setup-btn {
    float: left;
    width: 25%;
    height: 38px;
    line-height: 38px;
    color: #fff;
    text-align: center;
    font-size: .8125rem
}

.board-list .board-setup-btn:nth-child(odd) {
    background-color: #000
}

.board-list .board-setup-btn:nth-child(even) {
    background-color: #3c3c3e
}

.board-list .board-setup-btn:hover {
    opacity: 0.8
}

.board-list .favorite-setup {
    display: inline-block;
    width: 125px;
    margin-left: 15px
}

.board-list .favorite-setup .toggle {
    padding-right: 45px
}

.board-list .bl-wrap {
    position: relative;
    border-top: 2px solid #757575;
    border-bottom: 1px solid #757575
}

.board-list .bl-wrap>div:nth-last-child(1),
.board-list .bl-wrap>div:nth-last-child(2) {
    border-bottom: 0
}

.board-list .bl-head {
    position: relative;
    display: table;
    width: 100%;
    height: 50px;
    border-bottom: 1px solid #757575;
    background-color: #f2f2f2;
    font-weight: 500
}

.board-list .bl-head>div {
    position: relative
}

.board-list .bl-head>div:before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 13px;
    background-color: #cacaca;
    transform: translateY(-50%)
}

.board-list .bl-head>div:last-child:before {
    display: none
}

.board-list .bl-head .bl-item {
    display: table-cell;
    vertical-align: middle;
    width: 120px;
    text-align: center
}

/* 섬네일 목록헤드 쪽 수정 */
.board-list .bl-head .bl-num {
    width: 90px
}

.board-list .bl-head .bl-num-short {
    width: 80px
}

.board-list .bl-head .bl-num-checkbox {
    width: 110px
}

.board-list .bl-head .bl-author {
    width: 150px;
    padding: 0 10
}

.board-list .bl-head .bl-subj {
    display: table-cell;
    vertical-align: middle;
    text-align: center
}

.board-list .bl-list {
    position: relative;
    display: table;
    table-layout: fixed;
    width: 100%;
    height: 46px;
    border-bottom: 1px dotted #353535;
    padding: 8px 0
}

/* 게시물리스트. 하단선 등 */
@media (max-width: 768px) {

    /* 모바일 화면 크기 기준 */
    .board-list .bl-list {
        padding-top: 25px !important;
        border-bottom: 1px dotted #353535 !important;
        /* 하단 라인 유지 */
    }
}

.board-list .bl-list .checkbox i {
    top: 5px
}

.board-list .bl-list.bl-notice {
    background-color: #FFF8EC
}

.board-list .bl-list>div {
    position: relative
}

.board-list .bl-list>div:before {
    content: "";
    position: absolute;
    top: 50%;
    right: 0;
    width: 1px;
    height: 13px;
    background-color: #dadada;
    transform: translateY(-50%)
}

.board-list .bl-list>div:last-child:before {
    display: none
}

.board-list .bl-list .bl-item {
    display: table-cell;
    vertical-align: middle;
    width: 120px;
    text-align: center;
}

/* 섬네일 쪽 수정 */
.board-list .bl-list .bl-num {
    width: 90px
}

.board-list .bl-list .bl-num-short {
    width: 80px
}

.board-list .bl-list .bl-num-checkbox {
    width: 110px
}

.board-list .bl-list .bl-author {
    width: 150px;
    padding: 0 10px;
    text-align: left
}

.board-list .bl-list .poll-label {
    display: inline-block;
    width: 70px;
    height: 20px;
    line-height: 20px;
    font-size: .75rem;
    text-align: center;
    color: #fff;
    background-color: #353535;
    margin-top: 3px;
    margin-bottom: 3px
}

.board-list .bl-list .poll-label.poll-label-image {
    background-color: #3949ab
}

.board-list .bl-list .poll-label.poll-label-video {
    background-color: #5e35b1
}

.board-list .bl-list .bl-subj {
    display: table-cell;
    vertical-align: middle;
    letter-spacing: -1px;
    font-size: 20px;
    padding-left: 5px;
    font-weight: 500;
    max-width: 100%;
}

/* 제목 쪽 수정 */

/* 모바일에서 한 줄 유지 및 ... 적용 */
@media (max-width: 768px) {
    .board-list .bl-list .bl-subj {
        font-size: 18px;
        /* 모바일에서 글자 크기 조정 */
        max-width: 100%;
        width: 1px;
        /* 중요: 테이블 셀에서 ellipsis가 적용되도록 함 */
    }

    .board-list .bl-list .bl-subj a {
        display: block;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        width: 100%;
    }
}

.board-list .bl-list .bl-subj a {
    position: relative;
    display: inline-block;
    padding: 20px 10px 10px 10px
}

/* 제목 쪽 수정: 여백등 */
.board-list .bl-list .bl-subj a:hover {
    color: #000;
    text-decoration: underline
}

.board-list .bl-list .bl-subj .reply-indication {
    display: inline-block;
    width: 7px;
    height: 10px;
    border-left: 1px dotted #b5b5b5;
    border-bottom: 1px dotted #b5b5b5
}

.board-list .bl-list .bl-subj .bl-label {
    display: inline-block;
    width: 70px;
    height: 20px;
    line-height: 20px;
    font-size: .8125rem;
    text-align: center;
    color: #fff;
    background-color: #a5a5a5;
    margin-left: 10px;
    margin-top: 3px;
    margin-bottom: 3px
}

.board-list .bl-list .bl-subj .bl-new-icon {
    position: relative;
    display: inline-block;
    width: 18px;
    height: 14px;
    background-color: #ab0000;
    margin-right: 2px
}

.board-list .bl-list .bl-subj .bl-new-icon:before {
    content: "";
    position: absolute;
    top: 4px;
    left: 5px;
    width: 2px;
    height: 6px;
    background-color: #fff
}

.board-list .bl-list .bl-subj .bl-new-icon:after {
    content: "";
    position: absolute;
    top: 4px;
    right: 5px;
    width: 2px;
    height: 6px;
    background-color: #fff
}

.board-list .bl-list .bl-subj .bl-new-icon b {
    position: absolute;
    top: 3px;
    left: 8px;
    width: 2px;
    height: 8px;
    background-color: #fff;
    transform: rotate(-60deg)
}

.board-list .bl-list .bl-comment {
    color: #f4511e
}

.board-list .bl-list .blind-subject {
    color: #b5b5b5;
    cursor: not-allowed
}

.board-list .bl-photo {
    display: inline-block;
    margin-right: 2px
}

.board-list .bl-photo img {
    width: 17px;
    height: 17px;
    border-radius: 50%
}

.board-list .bl-photo .bl-user-icon {
    font-size: .9375rem
}

.board-list .bl-mobile {
    display: none
}

.board-list .bl-mobile.bl-notice {
    background-color: #FFF8EC
}

.board-list .star-ratings-list {
    width: 75px;
    margin: 0 auto
}

.board-list .star-ratings-list li {
    padding: 0;
    float: left;
    margin-right: 0
}

.board-list .star-ratings-list li .rating {
    color: #a5a5a5;
    font-size: .8125rem;
    line-height: normal
}

.board-list .star-ratings-list li .rating-selected {
    color: #ab0000;
    font-size: .8125rem
}

.board-list .bl-no-list {
    text-align: center;
    color: #959595;
    padding: 70px 0
}

@media (max-width:991px) {
    .board-list .bl-head {
        display: none
    }

    .board-list .bl-head-checkbox {
        display: table
    }

    .board-list .bl-head>div:before,
    .board-list .bl-list>div:before,
    .board-list .bl-head .bl-item,
    .board-list .bl-list .bl-item {
        display: none
    }

    .board-list .bl-head .bl-num-checkbox,
    .board-list .bl-list .bl-num-checkbox {
        display: table-cell;
        width: 20px
    }

    .board-list .bl-head .bl-num-checkbox .bl-txt,
    .board-list .bl-list .bl-num-checkbox .bl-txt {
        visibility: visible;
        opacity: 0
    }

    .board-list .bl-head .checkbox,
    .board-list .bl-list .checkbox {
        z-index: 1
    }

    .board-list .bl-list {
        border-bottom: 0
    }

    .board-list .bl-list .bl-subj a {
        padding: 0
    }

    .board-list .bl-mobile {
        position: relative;
        display: block;
        border-bottom: 1px solid #eaeaea;
        padding: 0 0 8px;
        color: #959595
    }

    .board-list .bl-mobile.bl-notice {
        background-color: #FFF8EC
    }

    .board-list .bl-mobile-right {
        position: absolute;
        top: 0;
        right: 0
    }
}

@media (max-width:1399px) {
    .board-list .bl-head {
        display: none
    }

    .board-list .bl-head-checkbox {
        display: table
    }

    .board-list .bl-head>div:before,
    .board-list .bl-list>div:before,
    .board-list .bl-head .bl-item,
    .board-list .bl-list .bl-item {
        display: none
    }

    .board-list .bl-head .bl-num-checkbox,
    .board-list .bl-list .bl-num-checkbox {
        display: table-cell;
        width: 20px
    }

    .board-list .bl-head .bl-num-checkbox .bl-txt,
    .board-list .bl-list .bl-num-checkbox .bl-txt {
        visibility: visible;
        opacity: 0
    }

    .board-list .bl-head .checkbox,
    .board-list .bl-list .checkbox {
        z-index: 1
    }

    .board-list .bl-list {
        border-bottom: 0
    }

    .board-list .bl-list .bl-subj a {
        padding: 0
    }

    .board-list .bl-mobile {
        position: relative;
        display: block;
        border-bottom: 1px solid #eaeaea;
        padding: 0 0 8px;
        color: #959595
    }

    .board-list .bl-mobile-right {
        position: absolute;
        top: 0;
        right: 0
    }
}

.webzine-img-box {
    width: 100%;
    /* 원하는 너비 설정 */
    height: 150px;
    /* 원하는 높이 설정 */
    overflow: hidden;
    /* 이미지가 박스를 벗어나지 않도록 */
    position: relative;
}

.webzine-img-box-in {
    width: 100%;
    height: 100%;
}

.webzine-img-box-in img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* 이미지를 비율에 맞게 크롭하여 영역을 채움 */
    object-position: top;
    /* 이미지의 중앙 부분을 노출 */
}


@media (max-width: 768px) {
    .board-list .bl-list {
        display: flex;
        align-items: center;
        justify-content: space-between;
        border-bottom: 1px dotted #353535;
        padding: 10px 0;
        /* 상하 여백 5px 적용 */
        min-height: 140px;
        /* 일관성 유지 */
    }

    /* 섬네일 영역 (20%) */
    .board-list .bl-list .bl-item {
        flex: 0 0 20%;
        max-width: 20%;
        min-width: 20%;
        padding-left: 10px;
        padding-bottom: 20px;
        text-align: center;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    .webzine-img-box {
        width: 70px;
        max-height: 105px;
        aspect-ratio: 16/9;
        overflow: hidden;
        background: #f2f2f2;
    }

    .webzine-img-box-in {
        width: 70px;
        height: 105px;
    }

    .webzine-img-box-in img {
        display: block;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

    /* 제목 영역 (80%) */
    .board-list .bl-list .bl-subj {
        flex: 0 0 80%;
        max-width: 80%;
        min-width: 80%;
        text-align: left;
        padding-left: 10px;
        font-size: 16px;
        display: flex;
        flex-direction: column;
        justify-content: center;
        min-height: 180px;
        /* 리스트 높이와 동일하게 조정 */
        box-sizing: border-box;
        /* 패딩 포함 크기 계산 */
    }
}

/****************************************************************************************************/

/* 상단 검색 및 정렬버튼 : 동일 너비(120px), 폰트 14px  */


/* 버튼 기본 스타일 */
/* 상단 검색 및 정렬버튼 : 리디자인 */
.center-buttons {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 5px 0 2px 0 !important;
    flex-wrap: wrap;
}

.btn-custom {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    padding: 6px 14px;
    font-family: inherit;
    font-size: 0.85rem;
    font-weight: 600;
    color: #334155;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
    min-width: 100px;
    margin: 1px;
}

.btn-custom i {
    font-size: 0.85rem;
    color: #409814;
    transition: color 0.2s ease;
}

.btn-custom:hover {
    background-color: #f8fafc;
    border-color: #409814;
    color: #409814;
    transform: translateY(-1px);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.08);
}

.btn-custom:hover i {
    color: #409814;
}

.btn-custom.active {
    background-color: #409814 !important;
    border-color: #409814 !important;
    color: #ffffff !important;
    box-shadow: 0 3px 10px rgba(64, 152, 20, 0.3) !important;
}

.btn-custom.active i {
    color: #ffffff !important;
}

#searchPanel {
    font-size: 13px;
    margin-top: 2px !important;
    margin-bottom: 5px !important;
    padding: 6px 10px !important;
}

.search-table {
    width: 100%;
    border: 1px solid #ddd;
    border-collapse: collapse;
    table-layout: fixed;
}

.search-table th,
.search-table td {
    border: 1px solid #ddd;
    text-align: center;
    vertical-align: middle;
    padding: 3px 5px !important;
}

.search-table th {
    width: 150px;
    /* 왼쪽 셀 가로길이 */
    background: #f2f2f2;
}

/* --- 모바일 버튼 그룹 가로 스크롤 및 디자인 수정 (최종) --- */
@media (max-width: 767px) {
    .center-buttons {
        display: flex;
        justify-content: flex-start;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        padding: 2px 2px 4px 2px;
        margin-bottom: 2px;
        gap: 4px;
    }

    .center-buttons::-webkit-scrollbar {
        display: none;
    }

    .center-buttons .btn-custom {
        width: auto !important;
        min-width: unset !important;
        font-size: 13px;
        padding: 7px 12px;
        border-radius: 20px;
        flex-shrink: 0;
        margin: 0;
    }
}

/* 상세검색 폼 버튼 영역 */

.toggle-group {
    display: flex;
    flex-wrap: wrap;
    /* 줄 바꿈 허용 */
    justify-content: center;
    /* 가운데 정렬 */
    gap: 3px;
    /* 아이템 간 간격 줄임 */
}

.toggle-label {
    display: flex;
    align-items: center;
    white-space: nowrap;
    /* 텍스트 줄 바꿈 방지 */
}

.toggle-label input[type="checkbox"] {
    display: none;
}

.toggle-label span {
    display: flex;
    /* Flexbox 사용 */
    align-items: center;
    /* 수직 중앙 정렬 */
    justify-content: center;
    /* 수평 중앙 정렬 */
    padding: 3px 6px;
    /* 위아래 여백 1px 줄임 (기존 5px -> 4px) */
    border: 1px solid #ccc;
    border-radius: 3px;
    background: #f9f9f9;
    color: #333;
    cursor: pointer;
    font-size: 13px;
    /* 항목버튼안 폰트 */
    font-weight: 600;
    min-width: 38px;
    /* 최소 너비 설정 */
    min-height: 25px;
    /* 최소 높이 설정 */
    text-align: center;
}

.toggle-label input[type="checkbox"]:checked+span {
    background: #409814;
    color: #fff;
    border-color: #409814;
}

.btn-search {
    padding: 3px 6px;
    font-size: 11px;
    cursor: pointer;
    margin-left: 5px;
}

@media (max-width:767px) {
    .toggle-group {
        white-space: normal;
        overflow: visible;
    }
}


/* 모달 버튼 *?


/* 모달 기본 스타일 */
.modal {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    align-items: center;
    justify-content: center;
}

/* 모달 콘텐츠 */
.modal-content {
    background: #fff;
    width: 60%;
    max-width: 800px;
    min-width: 300px;
    height: 80vh;
    max-height: calc(100vh - 60px);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0px 0px 20px rgba(0, 0, 0, 0.3);
    position: relative;
    display: flex;
    flex-direction: column;
}

/* iframe (내용 표시) */
#modal-iframe {
    width: 100%;
    flex-grow: 1;
    border: none;
}

/* 닫기 버튼 */
.close-modal {
    position: absolute;
    top: 10px;
    right: 15px;
    font-size: 24px;
    cursor: pointer;
    z-index: 10001;
}

/* 새창 미리보기 버튼 스타일 */
.preview-btn {
    margin-top: 10px;
    padding: 8px 12px;
    background-color: #007bff;
    color: white;
    border: none;
    cursor: pointer;
    border-radius: 5px;
}

.preview-btn:hover {
    background-color: #0056b3;
}

/***** [행 높이 200 고정 + 가운데 영역 수직정렬 강제] *****/

/* 모든 해상도에서 한 줄(행) 높이 200px 고정 */
.board-list .bl-list {
    height: 150px !important;
    min-height: 150px !important;
    max-height: 150px !important;
    padding-top: 0 !important;
    /* 위아래 여백으로 높이 늘어나는 것 방지 */
    padding-bottom: 0 !important;
    overflow: hidden !important;
    /* 스크롤 금지, 넘치는 부분은 깔끔히 감춤 */
}

/* 각 셀도 행 높이에 맞춰 꽉 차도록 */
.board-list .bl-list>div {
    height: 100% !important;
}

/* 가운데(제목) 영역: 수직 가운데 정렬 유지 */
.board-list .bl-list .bl-subj {
    vertical-align: middle !important;
    /* 데스크톱(table-cell)에서 가운데 */
    display: table-cell;
    /* 데스크톱 구조 유지 */
}

/* 제목 a의 과한 상단 패딩을 줄여 가운데 정렬 방해 제거 */
.board-list .bl-list .bl-subj a {
    padding: 10px !important;
    /* 좌우/상하 균등 패딩 */
    display: inline-block;
    /* 기존 구조 유지 */
}

/* 인라인으로 들어온 margin-bottom:20px 무력화 (제목 아래 보조정보) */
.board-list .bl-list .bl-subj>div[style*="margin-bottom"] {
    margin-bottom: 0 !important;
}



/* 제목 한 줄 말줄임 */
.board-list .bl-list .bl-subj a {
    display: block;
    /* inline-block → block로 전환 */
    width: 100%;
    box-sizing: border-box;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    /* 한 줄 고정 */
    /* 필요시 여백 조정 */
    /* padding:6px 8px; */
}

/* 결과/수상작 버튼 컨테이너: 한 줄 유지 */
.board-list .winner-buttons {
    display: flex;
    gap: 6px;
    align-items: center;
    flex-wrap: nowrap;
    /* 줄바꿈 금지 */
}

/* 버튼 자체: 고정 가로폭, 말줄임 */
.board-list .winner-buttons a {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    height: 20px;
    width: 90px;
    /* ← 고정 가로폭 */
    min-width: 90px;
    flex: 0 0 90px;
    /* flex 항목도 고정 폭 */
    padding: 0 6px;
    font-size: 11px;
    line-height: 1;
    border-radius: 5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    box-sizing: border-box;
    text-decoration: none;
    color: #fff;
}

/* =================================================================== */
/* =================== PC/모바일 최종 정리 코드 ====================== */
/* =================================================================== */

@media (max-width: 768px) {

    /* 기존 PC용 테이블 헤더는 모바일에서 숨김 */
    .bl-head {
        display: none !important;
    }

    /* PC용 리스트 구조를 모바일에서 숨기되, 모바일 전용 레이아웃이 존재할 때만 숨김 */
    .bl-list:not(.mobile-layout) {
        display: none !important;
    }

    /* 혹시라도 PHP가 PC 버전으로 출력했는데 화면이 작은 경우를 대비해 최소한의 노출 보장 */
    .board-list:not(:has(.mobile-layout)) .bl-list {
        display: block !important;
        height: auto !important;
    }

    /* "전체 ... 건" 텍스트 영역 숨기기 */
    .board-info {
        display: none !important;
    }

    /* 모바일 레이아웃 스타일 - 강제 노출 보장 */
    .bl-list.mobile-layout,
    .bl-list.is-mobile-detected {
        display: flex !important;
        visibility: visible !important;
        opacity: 1 !important;
        padding: 10px 10px 20px 0 !important;
        border-bottom: 1px solid #f0f0f0 !important;
        height: auto !important;
        min-height: 100px !important;
        position: relative !important;
    }

    /* 왼쪽 이미지 */
    .mobile-layout .mobile-img-wrap {
        flex: 0 0 110px !important;
        width: 110px !important;
        height: 110px !important;
        aspect-ratio: 1 / 1 !important;
        overflow: hidden !important;
        border-radius: 10px !important;
    }

    .mobile-layout .mobile-img-wrap img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        border-radius: 10px !important;
        border: none !important;
        outline: none !important;
        box-shadow: none !important;
    }

    /* 오른쪽 텍스트 */
    .mobile-text-wrap {
        flex: 1 !important;
        margin-left: 12px !important;
        height: 110px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: space-between !important;
        letter-spacing: -0.05em !important;
    }

    .mobile-text-wrap .text-top {}

    /* D-day를 감싸는 하단 영역 오른쪽 정렬 */
    .mobile-text-wrap .text-bottom {
        margin-top: 8px;
        text-align: right !important;
    }

    .mobile-text-wrap .m-title {
        font-size: 16px !important;
        color: #212121 !important;
        line-height: 1.4 !important;
        font-weight: 500 !important;
        overflow: hidden !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
    }

    .mobile-text-wrap .m-meta {
        font-size: 13px !important;
        color: #777 !important;
        margin-top: 4px !important;
        font-weight: 500 !important;
    }

    .mobile-text-wrap .d-day {
        font-size: 12px !important;
    }

    /* 투명 링크 스타일 */
    .mobile-link-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
    }
}

.board-info {
    display: none;
}



/* 수상작 버튼 */
.btn-winner {
    background: #c62828;
    color: #fff;
    border: none;
    padding: 2px 8px;
    font-size: 12px;
    display: inline-block;
    font-weight: bold;
    border-radius: 5px;
    cursor: pointer;
    vertical-align: top;
    position: relative;
    /* 덮개형 링크 위에 나오도록 */
    z-index: 10;
}

@media (max-width: 768px) {

    /* 테이블 레이아웃: 레이블(th) 폭을 글자 길이만큼만 사용 */
    #searchPanel .search-table {
        width: 100%;
        border-collapse: collapse;
        table-layout: auto;
    }

    #searchPanel .search-table th {
        width: 1%;
        /* 내용 칸이 최대한 넓어지도록 */
        white-space: nowrap;
        /* 줄바꿈 없이 딱 붙게 */
        vertical-align: top;
        padding: 16px 15px;
    }

    #searchPanel .search-table td {
        width: auto;
        /* 오른쪽 칸이 나머지 전부 */
        padding: 6px 0;
    }

    /* 토글 체크박스 그룹: 모바일 간격 최적화 */
    #searchPanel .toggle-group {
        display: flex;
        flex-wrap: wrap;
        gap: 6px 8px;
    }

    #searchPanel .toggle-label {
        font-size: 13px;
    }

    /* 모바일 전용 검색 인풋(테이블 밖) */
    #searchPanel .search-text-mobile {
        margin-top: 10px;
        display: flex;
        gap: 8px;
    }

    #searchPanel .search-text-mobile input[type="text"] {
        flex: 1;
        font-size: 14px;
        padding: 8px 10px;
        border: 1px solid #ddd;
        border-radius: 6px;
    }

    #searchPanel .search-text-mobile .btn-search {
        padding: 8px 12px;
        border: 1px solid #ddd;
        background: #f6f6f6;
        border-radius: 6px;
    }
}

@media (min-width: 769px) {
    .board-info {
        display: block !important;
    }

    /* PC 강제 표시 */
}

@media (max-width: 768px) {
    .board-info {
        display: none !important;
    }

    /* 모바일 강제 숨김 (안전망) */
}

/* =================================================================== */

/* =================================================================== */
/* =================== ILoveCon Clean UI Redesign (Sync Complete) ==== */
/* =================================================================== */

/* 1. Base Setup */
.board-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 12px !important;
    padding: 10px 0 !important;
}

.board-list .bl-wrap,
.board-list .bl-head {
    display: none !important;
    /* Completely hide legacy Eyoom table structures if they exist */
}

/* 2. Premium Card Container */
.premium-list-item {
    display: flex !important;
    flex-direction: row !important;
    background: #ffffff !important;
    border: 1px solid #eef2f6 !important;
    border-radius: 12px !important;
    padding: 20px !important;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.02) !important;
    transition: all 0.25s ease !important;
    position: relative !important;
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    background: #ffffff !important;
}



.premium-list-item:after {
    display: none !important;
    content: none !important;
}

.premium-list-item.is-admin-card {
    padding-right: 200px !important;
}

.premium-list-item:hover {
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.06) !important;
    border-color: #cbd5e1 !important;
}

/* ========================================= */
/* Global Badge Styles (Applied to PC & Mobile) */
/* ========================================= */
.badge,
.badge-winner {
    width: 85px !important;
    padding: 6px 0 !important;
    border-radius: 6px !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    display: inline-block !important;
    text-align: center !important;
    flex-shrink: 0 !important;
}

.badge-winner {
    font-size: 11px !important;
    background: #f0fdf4 !important;
    color: #16a34a !important;
    border: 1px solid #bbf7d0 !important;
    cursor: pointer !important;
    margin-top: 5px !important;
}

.d-expired {
    background: #64748b !important;
    color: #fff !important;
}

.d-today {
    background: #ef4444 !important;
    color: #fff !important;
}

.d-tomorrow {
    background: #f97316 !important;
    color: #fff !important;
}

.d-imminent {
    background: #eab308 !important;
    color: #fff !important;
}

.d-default {
    background: #ffffff !important;
    color: #3b82f6 !important;
    border: 1px solid #bfdbfe !important;
}

/* ========================================= */
/* Thumbnail Fallback Text (No Image)        */
/* ========================================= */
.p-thumb.p-thumb-fallback a {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 100% !important;
    height: 100% !important;
    padding: 10px !important;
    background: #f1f5f9 !important;
    box-sizing: border-box !important;
    text-decoration: none !important;
    border-radius: inherit !important;
    transition: background 0.2s !important;
}

.premium-list-item:hover .p-thumb.p-thumb-fallback a {
    background: #e2e8f0 !important;
}

.thumb-fallback-text {
    font-size: 13px !important;
    font-weight: 600 !important;
    color: #94a3b8 !important;
    line-height: 1.3 !important;
    text-align: center !important;
    word-break: keep-all !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 4 !important;
    -webkit-box-orient: vertical !important;
    overflow: hidden !important;
}

/* 3. PC Elements layout */
@media (min-width: 769px) {

    /* Admin Checkbox (Left) */
    .p-admin-checkbox {
        flex: 0 0 30px !important;
        display: flex !important;
        align-items: center !important;
        margin: 0 !important;
        padding: 0 !important;
        align-self: center !important;
    }

    /* ========================================= */
    /* 🌟 NEW PREMIUM THUMBNAIL DESIGN          */
    /* ========================================= */
    .p-thumb {
        flex: 0 0 130px !important;
        height: 130px !important;
        margin-right: 25px !important;
        border-radius: 16px !important;
        overflow: hidden !important;
        background: #f8fafc !important;
        box-shadow: 0 6px 15px rgba(0, 0, 0, 0.05), inset 0 0 0 1px rgba(0, 0, 0, 0.03) !important;
        position: relative !important;
        transform: translateZ(0) !important;
        /* Force hardware acceleration for smooth corners */
    }

    .p-thumb>a,
    .p-thumb .webzine-img-box,
    .p-thumb .webzine-img-box-in {
        display: block !important;
        position: static !important;
        /* Allow absolute children to position relative to .p-thumb */
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
    }

    .p-thumb img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        /* Forces crop to fill */
        object-position: center !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
        transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1) !important;
    }

    /* Hover scale effect for the image */
    .premium-list-item:hover .p-thumb img {
        transform: scale(1.08) !important;
    }

    /* Content Area */
    .p-content {
        flex: 1 !important;
        display: flex !important;
        flex-direction: column !important;
        gap: 8px !important;
        width: 100% !important;
    }

    .p-main-info {
        display: flex !important;
        flex-direction: column !important;
        gap: 0 !important;
    }

    .p-title {
        font-size: 1.15rem !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        margin: 0 !important;
        padding: 0 !important;
        text-decoration: none !important;
        display: block !important;
        overflow: visible !important;
        line-height: 1.3 !important;
    }

    .p-comment {
        font-size: 0.88rem !important;
        color: #64748b !important;
        margin: 0 !important;
        font-weight: 400 !important;
        line-height: 1.4 !important;
        overflow: visible !important;
        white-space: normal !important;
    }

    .p-meta-chips {
        display: flex !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        margin: 2px 0 !important;
    }

    .meta-chip {
        font-size: 13px !important;
        color: #64748b !important;
        background: #f1f5f9 !important;
        padding: 5px 12px !important;
        border-radius: 6px !important;
    }

    .meta-chip i {
        color: #94a3b8 !important;
        margin-right: 4px !important;
    }

    .p-info-right {
        flex: 0 0 130px !important;
        width: 130px !important;
        max-width: 130px !important;
        min-width: 130px !important;
        display: flex !important;
        flex-direction: column !important;
        align-items: center !important;
        justify-content: center !important;
        gap: 12px !important;
        border-left: 1px solid #f1f5f9 !important;
        padding-left: 20px !important;
        margin-left: 10px !important;
        align-self: stretch !important;
        box-sizing: content-box !important;
        overflow: hidden !important;
    }

    .p-info-right .org-name {
        font-size: 13px !important;
        color: #475569 !important;
        font-weight: 600 !important;
        text-align: center !important;
        word-break: keep-all !important;
        margin-top: 5px !important;
        width: 100% !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
    }


    .d-date {
        font-size: 13px !important;
        color: #94a3b8 !important;
    }

    .winner-buttons {
        display: flex !important;
        flex-direction: row !important;
        flex-wrap: wrap !important;
        gap: 6px !important;
        width: auto !important;
        margin: 0 !important;
        overflow: visible !important;
    }

    .winner-buttons a {
        display: inline-block !important;
        width: auto !important;
    }

    .btn-award-curr,
    .btn-award-past,
    .btn-winner {
        padding: 5px 15px !important;
        border-radius: 6px !important;
        font-size: 13px !important;
        font-weight: 700 !important;
        line-height: 1 !important;
        text-decoration: none !important;
        cursor: pointer !important;
        position: relative !important;
        z-index: 10 !important;
        text-align: center !important;
        display: block !important;
    }

    .btn-award-curr,
    .btn-winner {
        background: #fff5f5 !important;
        color: #dc2626 !important;
        border: 1px solid #fecaca !important;
    }

    .btn-award-past {
        background: #f0fdf4 !important;
        color: #16a34a !important;
        border: 1px solid #bbf7d0 !important;
    }

    /* Admin Tools (Absolute Positioned) */
    .p-admin-tools {
        position: absolute !important;
        right: 20px !important;
        top: 50% !important;
        transform: translateY(-50%) !important;
        width: 160px !important;
        border-left: 1px solid #f1f5f9 !important;
        padding-left: 20px !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: center !important;
        gap: 8px !important;
        background: #fff !important;
        z-index: 5 !important;
    }

    .p-admin-tools .admin-date {
        font-size: 12px !important;
        color: #94a3b8 !important;
        margin-bottom: 5px !important;
    }

    .p-admin-tools>div {
        font-size: 13px !important;
    }

    .ex25-text,
    .wr_hit-text {
        font-weight: 600 !important;
        background: #f8fafc !important;
        padding: 6px 10px !important;
        border-radius: 6px !important;
        display: inline-block !important;
    }

    .ex25-input input,
    .wr_hit-input input {
        width: 60px !important;
        padding: 4px !important;
        border: 1px solid #cbd5e1 !important;
        border-radius: 4px !important;
    }

    .ex25-input button,
    .wr_hit-input button {
        background: #3b82f6 !important;
        color: white !important;
        border: none !important;
        padding: 5px 8px !important;
        border-radius: 4px !important;
        cursor: pointer !important;
    }
}

/* =========================================
 * Kill legacy thumbnail wrapper box
 * ========================================= */
.eyoom-list-thumbnail-mobile {
    all: unset !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
    padding: 0 !important;
    border: none !important;
    background: none !important;
    box-shadow: none !important;
    overflow: visible !important;
}

.eyoom-list-thumbnail-mobile img {
    border: none !important;
    background: none !important;
    box-shadow: none !important;
}

/* 4. Mobile Elements layout */
@media (max-width: 768px) {
    .premium-list-item.is-mobile-detected {
        flex-direction: row !important;
        padding: 12px !important;
        gap: 12px !important;
        align-items: stretch !important;
    }

    /* Premium Mobile Thumbnail */
    .p-thumb {
        flex: 0 0 90px !important;
        width: 90px !important;
        min-width: 90px !important;
        max-width: 90px !important;
        height: 120px !important;
        border-radius: 8px !important;
        overflow: hidden !important;
        position: relative !important;
        background: #f8fafc !important;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06), inset 0 0 0 1px rgba(0, 0, 0, 0.04) !important;
        transform: translateZ(0) !important;
        align-self: stretch !important;
    }

    .p-thumb>a,
    .p-thumb .webzine-img-box,
    .p-thumb .webzine-img-box-in {
        display: block !important;
        position: relative !important;
        width: 100% !important;
        height: 100% !important;
        margin: 0 !important;
        padding: 0 !important;
        overflow: hidden !important;
    }

    .p-thumb img {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        display: block !important;
        width: 100% !important;
        height: 100% !important;
        max-width: none !important;
        max-height: none !important;
        object-fit: cover !important;
        /* Forces crop to fill completely */
        object-position: center !important;
        margin: 0 !important;
        padding: 0 !important;
        border: none !important;
    }

    .thumb-fallback-text {
        font-size: 11px !important;
        -webkit-line-clamp: 3 !important;
    }

    .p-content {
        flex: 1 1 0 !important;
        min-width: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        justify-content: flex-start !important;
    }

    .p-title {
        font-size: 0.95rem !important;
        font-weight: 700 !important;
        color: #1e293b !important;
        line-height: 1.4 !important;
        margin-top: -4px !important;
        margin-bottom: 4px !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    /* Winner badge inline with mobile title */
    .winner-inline-badge {
        display: inline !important;
        vertical-align: middle !important;
        font-size: 10px !important;
        font-weight: 700 !important;
        color: #16a34a !important;
        background: #f0fdf4 !important;
        border: 1px solid #bbf7d0 !important;
        border-radius: 4px !important;
        padding: 2px 5px !important;
        margin-left: 4px !important;
        white-space: nowrap !important;
        cursor: pointer !important;
        line-height: 1 !important;
    }

    .p-comment {
        font-size: 0.85rem !important;
        color: #0284c7 !important;
        margin-bottom: 8px !important;
        font-weight: 600 !important;
        display: -webkit-box !important;
        -webkit-line-clamp: 2 !important;
        -webkit-box-orient: vertical !important;
        overflow: hidden !important;
    }

    .p-meta-chips {
        margin-bottom: 0 !important;
    }

    .p-meta-chips .meta-chip {
        font-size: 12px !important;
        color: #64748b !important;
    }

    /* Mobile Badges inside Thumb (D-day + Winner) */
    .thumb-badges-wrap {
        position: absolute !important;
        bottom: 0 !important;
        left: 0 !important;
        width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        z-index: 10 !important;
    }

    .thumb-badges-wrap span {
        width: 100% !important;
        text-align: center !important;
        font-size: 11px !important;
        font-weight: 700 !important;
        padding: 4px 0 !important;
    }

    /* Mobile Title Wrap (Title + Winner Badge) */
    .p-title-wrap {
        display: flex !important;
        align-items: center !important;
        gap: 6px !important;
        margin-bottom: 4px !important;
        width: 100% !important;
    }

    .p-title-wrap .p-title {
        flex: 1 !important;
        min-width: 0 !important;
        /* Crucial for flex truncation */
        margin: 0 !important;
    }

    .winner-thumb-badge {
        background: #16a34a !important;
        color: #ffffff !important;
        cursor: pointer !important;
    }

    /* Mobile Org Name Truncation */
    .org-name-mobile {
        font-size: 12px !important;
        color: #64748b !important;
        font-weight: 600 !important;
        margin-bottom: 6px !important;
        white-space: nowrap !important;
        overflow: hidden !important;
        text-overflow: ellipsis !important;
        width: 100% !important;
        display: block !important;
    }

    /* Hide the right column divider logic for mobile */
    .p-info-right {
        display: none !important;
    }

    .badge,
    .d-expired,
    .d-today,
    .d-tomorrow,
    .d-imminent,
    .d-default {
        padding: 4px 10px !important;
        border-radius: 4px !important;
        font-size: 11px !important;
        font-weight: 700 !important;
    }

    .d-expired {
        background: #64748b !important;
        color: #fff !important;
    }

    .d-today {
        background: #ef4444 !important;
        color: #fff !important;
    }

    .d-tomorrow {
        background: #f97316 !important;
        color: #fff !important;
    }

    .d-imminent {
        background: #eab308 !important;
        color: #fff !important;
    }

    .d-default {
        background: #ffffff !important;
        color: #3b82f6 !important;
        border: 1px solid #bfdbfe !important;
    }

    .btn-winner {
        padding: 4px 6px !important;
        border-radius: 4px !important;
        font-size: 11px !important;
        background: #fff5f5 !important;
        color: #dc2626 !important;
        border: 1px solid #fecaca !important;
        position: relative !important;
        z-index: 10 !important;
        text-align: center !important;
        display: block !important;
    }

    .mobile-link-overlay {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 1 !important;
    }
}