h5 {
    margin: 0;
}

.category-name {
    margin: auto 0;
}

/* 상태에 따라 다른 스타일 적용 */
.post-card-status {
    font-weight: bold;
    padding: 5px 10px;
    margin-left: 10px;
    border-radius: 5px;
    display: flex;
    align-items: center; /* 세로 중앙 정렬 */
}

/* 진행 예정 스타일 */
.status-scheduled {
    color: #ffc400; /* 진행 예정 스타일 */
    border: 2px solid #ffc400;
    background-color: rgba(255, 196, 0, 0.1); /* 자연스러운 배경색 (오렌지색의 투명도) */
}

/* 진행중 스타일 */
.status-ongoing {
    color: #4caf50; /* 진행중 스타일 */
    border: 2px solid #4caf50;
    background-color: rgba(76, 175, 80, 0.1); /* 자연스러운 배경색 (초록색의 투명도) */
}

/* 마감 스타일 */
.status-closed {
    color: gray; /* 마감 스타일 */
    border: 2px solid gray;
    background-color: rgba(169, 169, 169, 0.1); /* 자연스러운 배경색 (회색의 투명도) */
}

.remaining-day {
    color: #ff4444;
    background-color: #fff0f0;
    border: 2px solid #ffcccc;
    margin-left: 10px;
    padding: 5px 10px;
    border-radius: 5px;
}

/* 게시글 목록 스타일 */
.post-list {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-top: 20px;
    overflow-y: auto;
}

.post-card {
    min-width: 0; /* ★ 그리드 내 확장 제한 필수 */
    flex-direction: column;
    width: 100%;
    display: flex;
    align-items: center;
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    text-decoration: none; /* 기본 밑줄 제거 */
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.post-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.1);
    text-decoration: none; /* 기본 밑줄 제거 */
}

.post-card img {
    width: 100%;
    aspect-ratio: 1 / 1.5;
    object-fit: cover;
    border-radius: 5px 5px 0 0;
}

.post-card-body {
    white-space: nowrap; /* 줄 바꿈 방지 */
    overflow: hidden; /* 넘치는 텍스트 숨김 */
    text-overflow: ellipsis; /* 말줄임표 (...) 표시 */
    padding: 0 10px 10px 10px;
}

.post-card-title-container {
    font-size: 18px;
    font-weight: bold;
    margin: 0 0 5px 0;
    white-space: nowrap; /* 줄 바꿈 방지 */
    overflow: hidden; /* 넘치는 텍스트 숨김 */
    text-overflow: ellipsis; /* 말줄임표 (...) 표시 */
}

.post-card-title {
    color: #007bff;
}

.post-card-stats {
    display: flex;
    font-size: 14px;
    color: black;
    gap: 10px;
    white-space: nowrap; /* 줄 바꿈 방지 */
    overflow: hidden; /* 넘치는 텍스트 숨김 */
    text-overflow: ellipsis; /* 말줄임표 (...) 표시 */
}

.festival-slider-header {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 10px;
    gap: 20px;
}

.nav-btn {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #333;
}

.page-indicator {
    font-size: 16px;
    font-weight: bold;
}

.festival-slider-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-auto-rows: auto;
    gap: 20px;
}

@media screen and (max-width: 480px) {
    
    .post-list {
        gap: 5px;
    }

    .post-card-title-container span {
        font-size: 14px !important;
    }

    .post-card span, .post-card div {
        font-size: 12px;
    }

    .post-card > img {
        width: 90px;
    }

    .category-name {
        margin: 5px 0;
    }

    .festival-slider-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}