.container {
    max-width: 1100px;
    margin: 0 auto;
    margin-top: 40px;
}

/* 타이틀 */
.pageTitle {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 24px;
    line-height: 1.5em;
    letter-spacing: -0.03em;
    color: #040404;
    margin-bottom: 30px;
}

/* 상단 컨트롤 영역 */
.topControls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 96px;
    margin-bottom: 30px;
}

/* 카테고리 탭 */
.categoryTabs {
    display: flex;
    gap: 10px;
    padding: 5px;
    background: #EFF2F6;
    border-radius: 10px;
    flex-wrap: wrap;
}

.categoryTab {
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px 12px;
    background: transparent;
    border: none;
    border-radius: 8px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5em;
    letter-spacing: -0.02em;
    color: #2F3642;
    cursor: pointer;
    transition: all 0.2s ease;
}

.categoryTab:hover {
    background: rgba(25, 30, 36, 0.05);
}

.categoryTab.active {
    background: #191E24;
    color: #FFFFFF;
    box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.37);
}

/* 관리 영역 */
.manageArea {
    display: flex;
    align-items: center;
    gap: 10px;
}

.manageText {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5em;
    letter-spacing: -0.02em;
    color: #2F3642;
    cursor: pointer;
}

.btnWinnerAnnounce {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 34px;
    padding: 10px 14px;
    background: #FFFFFF;
    border: 1px solid #66768F;
    border-radius: 8px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 13px;
    line-height: 1.5em;
    letter-spacing: -0.02em;
    color: #040404;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btnWinnerAnnounce:hover {
    background: #F8F9FA;
    border-color: #4A5668;
}

/* 이벤트 그리드 */
.eventGrid {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
    margin-bottom: 60px;
}

/* 이벤트 카드 */
.eventCard {
    display: flex;
    flex-direction: column;
    gap: 10px;
    width: 346px;
    cursor: pointer;
}

.eventCard:hover .eventTitle {
    color: #1082DA;
}

/* 이벤트 썸네일 */
.eventThumbnail {
    position: relative;
    width: 346px;
    height: 204px;
    border-radius: 8px;
    overflow: hidden;
}

.eventThumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.eventThumbnail .placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    color: #FFFFFF;
    font-size: 14px;
}

/* D-day 배지 */
.dDayBadge {
    position: absolute;
    top: 10px;
    right: 10px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 5px;
    background: rgba(25, 25, 25, 0.8);
    border-radius: 7px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 600;
    font-size: 11px;
    line-height: 1em;
    letter-spacing: -0.02em;
    color: #F6F5F5;
}

/* 이벤트 정보 */
.eventInfo {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.eventTitleArea {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.eventTitle {
    font-family: 'Pretendard', sans-serif;
    font-weight: 700;
    font-size: 16px;
    line-height: 1.5em;
    letter-spacing: -0.03em;
    color: #191E24;
    height: 47px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: color 0.2s ease;
}

.eventMeta {
    display: flex;
    align-items: center;
    gap: 8px;
}

.eventDate {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 12px;
    line-height: 1.4em;
    letter-spacing: -0.02em;
    color: #595959;
}

/* 댓글/좋아요 */
.eventStats {
    display: flex;
    align-items: center;
    gap: 8px;
    width: 100%;
}

.statItem {
    display: flex;
    align-items: center;
    gap: 2px;
}

.statItem.comment {
    gap: 2px;
}

.statItem.like {
    gap: 4px;
}

._mb2{
    margin-bottom: 2px;
}

.bottomTitle {
    color: #7D879B;
    font-size: 11px;
    font-weight: 400;
    display: flex;
    justify-content: space-between;
    width: 100%;
}

.bottomTitleRight {
    display: flex;
    gap: 9.5px;
    align-items: center;
}

.bottomTitleRight div {
    display: flex;
    align-items: center;
    gap: 2px;
}

.commentIcon {
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

.commentIcon svg {
    width: 12px;
    height: 13px;
}

.likeIcon {
    width: 16px;
    height: 16px;
    display: flex;
    justify-content: center;
    align-items: center;
}

.likeIcon svg {
    width: 13px;
    height: 12px;
}

.statCount {
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 11px;
    line-height: 1em;
    letter-spacing: -0.02em;
    color: #595959;
}

.onlyPc {
    display: block;
}

.onlyPcFlex {
    display: flex;
}

.onlyMo {
    display: none;
}

.nullDataText {
    font-size: 14px;
    font-weight: 500;
    color: #4A5668;
    height: 200px;
    display: flex;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}


/* 페이지네이션 */
.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 5px;
    padding: 20px 0 0;
    margin-bottom: 50px;
}

.page-btn {
    width: 32px;
    height: 32px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #FFFFFF;
    border: 1px solid #C6CFDC;
    border-radius: 8px;
    font-family: 'Pretendard', sans-serif;
    font-weight: 400;
    font-size: 14px;
    line-height: 1.5em;
    letter-spacing: -0.03em;
    color: #303740;
    cursor: pointer;
    transition: all 0.2s ease;
}

.page-btn:hover {
    background-color: #F8FAFB;
}

.page-btn.active {
    background: #2094EE;
    border-color: #2094EE;
    color: #FFFFFF;
}

.page-btn.arrow {
    font-size: 16px;
    /* padding-bottom: 3px; */
    /* height: 29px; */
}


@media screen and (max-width: 768px) {
    .onlyPc {
        display: none;
    }

    .onlyPcFlex {
        display: none;
    }

    .onlyMo {
        display: block;
    }

    #header {
        display: none;
    }

    #footer {
        display: none;
    }

    .container {
        width: auto;
        margin: 0px;
        padding: 20px 16px;
    }

    .manageTextMo {
        font-size: 12px;
        color: #1082DA;
    }

    .pageTitle {
        font-size: 20px;
        margin-bottom: 0px;
    }

    .eventTitleRow {
        display: flex;
        justify-content: space-between;
    }

    .manageAreaMo {
        display: flex;
    }

    .btnWinnerAnnounce {
        font-size: 13px;
        border: 0px;
        padding: 0px;
        background: none;
    }

    .btnWinnerAnnounce:hover {
        background: none;
    }

    .categoryTabs {
        margin-top: 12px;
        padding: 0px;
        background: none;
        gap: 8px;
    }

    .categoryTab {
        background: #EFF2F6;
    }

    .topControls {
        margin-bottom: 20px;
    }

    .eventGrid a {
        width: 100%;
    }

    .eventCard {
        width: 100%;
    }

    .eventThumbnail {
        width: 100%;
        aspect-ratio: 16 / 9;
        height: auto;

    }

    .eventTitle {
        word-wrap: break-word;
        height: auto
    }

    .eventDate {
        font-size: 11px;
    }

    #top_btn,
    #top_btn2,
    #top_btn3,
    #topBtn4Rn {
        display: none;
    }

    .pagination {
        flex-wrap: wrap;
        gap: 5px;
        padding: 16px 0 0;
        margin-top: 14px;
    }

    .page-btn {
        width: 28px;
        height: 28px;
        font-size: 13px;
    }
}