.contest-list {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
    max-width: 1000px;
    margin: auto;
    margin-bottom: 10px;
    box-sizing: border-box;
}


/* 공모전 리스트 시작*/
.contest-row {
    height: 240px; /* ✅ 고정 카드 너비 */
    display: flex;
    align-items: stretch;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.05);
    gap: 16px;
    min-height: 160px;
    cursor: pointer;
}

.contest-row:hover {
    background-color: #f9f9f9;
    cursor: pointer;
}


.contest-info {
    display: grid;
    grid-template-rows: auto auto auto auto auto auto auto;
    padding: 10px 0;
}


.categoryName {
    font-size: 11px;
}

.contest-subtitle {
    font-size: 15px;
    color: #666;
    margin-bottom: 6px;

    display: -webkit-box;
    -webkit-line-clamp: 2; /* ✅ 최대 줄 수 */
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}

.contest-host {
    font-size: 14px;
}

.contest-meta {
    font-size: 14px;
    color: #999;
    display: flex;
    justify-content: space-between;
}

.dday {
    color: red;
    font-weight: bold;
}


.contest-upload {
    margin: auto;
}

.contest-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 10px;
}

/* 공모전 리스트 끝 */


/* 시작일,마감일 시작 */
.date-range {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.date-range input[type="date"] {
    width: 140px;
    min-width: 120px;
}

.date-separator {
    margin: 0 4px;
    font-size: 16px;
    color: #555;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    white-space: nowrap;
}

@media (max-width: 480px) {
    .checkbox-label {
        margin-left: 0;
        margin-top: 8px;
    }

    .date-range {
        flex-direction: row;
    }
}

/* 시작일,마감일 시작 끝 */


/* 리스트 썸네일 시작 */

.poster-thumb-wrapper {
    position: relative;
    width: 160px; /* 너비 조정 가능 (반응형으로 줄이려면 %도 가능) */
    aspect-ratio: 3 / 4; /* 📌 3:4 비율 유지 */
    background-color: #f2f2f2;
    border-right: 1px solid #ddd;
    flex-shrink: 0; /* 포스터가 작아지지 않도록 */
    overflow: hidden;
}

.poster-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

/* 리스트 썸네일 끝 */







/* 상세보기 시작 끝 */

/* 모바일 시작*/
@media (max-width: 768px) {
    .contest-list {
        grid-template-columns: 1fr;
        padding: 0;
    }
}

/* 모바일 끝*/


/* 글쓰기 카테고리 디자인 시작 */

.category-checkbox-group {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 6px;
    margin-bottom: 16px;
}

.category-checkbox,
.closed-checkbox{
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 6px 10px;
    border: 1px solid #ccc;
    border-radius: 4px;
    background-color: #fff;
    font-size: 14px;
    line-height: 1;
    cursor: pointer;
    white-space: nowrap; /* ✅ 텍스트 줄바꿈 방지 */
    min-width: 80px; /* ✅ 항목 크기 균일하게 */
    height: 36px; /* ✅ 인풋과 높이 통일 */
    box-sizing: border-box;
    box-shadow: inset 0 0 0 1px #e0e0e0;
}

.category-checkbox:hover {
    background-color: #f5f5f5;
}

.category-checkbox input[type="checkbox"] {
    margin-right: 6px;
    transform: scale(0.9); /* ✅ 체크박스 작게 */
}

.form-label {
    font-weight: 600;
    margin-bottom: 4px;
    font-size: 14px;
    display: block;
}

/* 글쓰기 카테고리 디자인 끝 */


/* 공모전 최신순, 마감순 필터 시작 */
.sort-filter {
    display: flex;
    gap: 10px;
    margin: 0 0 20px 0; /* 상 우 하 좌*/
}

/* 공모전 최신순, 마감순 필터 끝 */

/* 디데이 디자인 시작*/
.dday-unknown {
    color: #999;
}
.dday-normal {
    color: #2563eb; /* 파란색 */
}
.dday-warning {
    color: #f59e0b; /* 노랑 */
}
.dday-today {
    color: #ea580c; /* 주황 */
}
.dday-passed {
    color: #dc2626; /* 빨강 */
}

/* 디데이 디자인 끝*/




/* START : 파일 업로드 시작 */
.img-upload {
    margin-top : 5px;
}
/* END : 파일 업로드 끝 */

/* 공모전 페이지의 검색바와 글쓰기 버튼 스타일 조정 */
.board-container .board-control-bar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 20px;
    width: 100%;
}

.board-container .board-search-box {
    margin-right: 20px;
}

.board-container .write-btn {
    margin-left: auto;
    min-width: 120px;
    text-align: center;
}
