/* ============================================
   이벤트 리스트 페이지
   시안: docs/event_renewal_20261018/event_renewal_design.jpeg
   레퍼런스: daprs.com/board/event/list
============================================ */

.event-page {
    background: #fff;
    color: #222;
    font-family: 'NanumSquare', 'Nanum Gothic', sans-serif;
    padding: 80px 0 120px;
    min-height: 70vh;
}

.event-inner {
    max-width: 1088px;
    margin: 0 auto;
    padding: 0 24px;
}

.event-header {
    text-align: center;
    margin-bottom: 56px;
}

.event-header h1 {
    font-size: 48px;
    font-weight: 800;
    letter-spacing: -1px;
    color: #111;
    margin-bottom: 14px;
}

.event-header .lead {
    font-size: 15px;
    color: #999;
    line-height: 1.6;
}

/* 카테고리 탭 */
.event-tabs {
    display: flex;
    border: 1px solid #e5e5e5;
    margin-bottom: 52px;
}

.event-tab {
    flex: 1 1 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 15px 8px;
    font-size: 15px;
    color: #444;
    text-decoration: none;
    text-align: center;
    background: #fff;
    border-left: 1px solid #e5e5e5;
    transition: background .15s ease, color .15s ease;
}

.event-tab:first-child {
    border-left: 0;
}

.event-tab:hover {
    color: #111;
    text-decoration: none;
}

.event-tab.is-active {
    background: #222;
    color: #fff;
    font-weight: 700;
}

/* 카드 그리드 */
.event-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 34px 28px;
}

.event-card {
    display: block;
    text-decoration: none;
    color: inherit;
}

.event-card:hover {
    text-decoration: none;
    color: inherit;
}

.event-card .thumb {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    border-radius: 14px;
    background: #f1f1f1;
    margin-bottom: 18px;
}

.event-card .thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.event-card:hover .thumb img {
    transform: scale(1.04);
}

.event-card .thumb.no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    color: #bbb;
    font-size: 14px;
}

/* 이미지 하단 검정 타이틀 바 */
.event-card .title {
    display: flex;
    align-items: center;
    height: 30px;
    padding: 0 22px;
    margin: 0;
    background: #fdecef;
    color: #d94b72;
    font-size: 18px;
    font-weight: 800;
    letter-spacing: -0.5px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    transition: background .15s ease;
}

.event-card:hover .title {
    background: #fbdbe2;
}

/* 빈 상태 */
.event-empty {
    text-align: center;
    padding: 100px 0;
    color: #aaa;
    font-size: 16px;
}

/* 페이지네이션 */
.event-pagination {
    display: flex;
    justify-content: center;
    margin-top: 60px;
}

.event-pagination .pagination {
    display: flex;
    gap: 4px;
    list-style: none;
    padding: 0;
    margin: 0;
}

.event-pagination .page-item {
    display: inline-block;
}

.event-pagination .page-link,
.event-pagination .page-item span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 38px;
    height: 38px;
    padding: 0 10px;
    border: 1px solid #e5e5e5;
    border-radius: 4px;
    color: #555;
    text-decoration: none;
    font-size: 14px;
    background: #fff;
    transition: all .15s ease;
}

.event-pagination .page-link:hover {
    border-color: #111;
    color: #111;
}

.event-pagination .page-item.active .page-link,
.event-pagination .page-item.active span {
    background: #111;
    border-color: #111;
    color: #fff;
}

.event-pagination .page-item.disabled .page-link,
.event-pagination .page-item.disabled span {
    color: #ccc;
    cursor: not-allowed;
    background: #fafafa;
}

/* 태블릿 */
@media (max-width: 1024px) {
    .event-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 30px 22px;
    }
    .event-header h1 { font-size: 38px; }
    .event-tab { font-size: 14px; padding: 14px 6px; }
}
