.event-wrap {
    background: #fff;
}

.event-wrap .event-inner {
    max-width: 1320px;
    margin: 0 auto;
    padding: 0 20px;
}

.event-wrap .event-header {
    margin-bottom: 32px;
}

.event-wrap .event-header:not(.sub-page-head) h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.2;
    color: #111;
}

.event-wrap .event-header:not(.sub-page-head) p {
    margin: 12px 0 0;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.event-wrap .event-admin-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    margin-bottom: 24px;
    padding: 14px 16px;
    border: 1px solid #e3e6eb;
    border-radius: 12px;
    background: #f8fafc;
}

.event-wrap .event-admin-bar__title {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
}

.event-wrap .event-admin-bar__actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.event-wrap .event-admin-bar__btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 2.25rem;
    padding: 0 0.875rem;
    border-radius: 0.5rem;
    border: 1px solid #d2d6dc;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1;
    text-decoration: none;
}

.event-wrap .event-admin-bar__btn--primary {
    background: #111;
    border-color: #111;
    color: #fff;
}

.event-wrap .event-admin-bar__btn--secondary {
    background: #fff;
    color: #333;
}

.event-wrap .event-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 24px;
}

.event-wrap .event-item {
    border: 1px solid #e8e8e8;
    border-radius: 18px;
    background: #fff;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    overflow: hidden;
}

.event-wrap .event-link {
    display: flex;
    align-items: center;
    gap: 22px;
    min-height: 230px;
    padding: 18px;
    color: inherit;
    text-decoration: none;
}

.event-wrap .event-thumb {
    width: 230px;
    height: 230px;
    border-radius: 14px;
    flex: 0 0 230px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(145deg, #f3f5f8, #e8edf3);
    border: 1px solid #dbe1e8;
    position: relative;
    overflow: hidden;
}

.event-wrap .event-thumb span {
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.08em;
    color: #8b98aa;
}

.event-wrap .event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 14px;
}

.event-wrap .event-dday {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: #111;
    color: #fff;
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 0.85rem;
    font-weight: 700;
    line-height: 1;
}

.event-wrap .event-content {
    display: flex;
    flex: 1;
    flex-direction: column;
    justify-content: center;
    min-width: 0;
}

.event-wrap .event-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: fit-content;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
    color: #0b5cd7;
    background: #eaf2ff;
}

.event-wrap .event-badge--alt {
    color: #7a4b00;
    background: #fff2da;
}

.event-wrap .event-title {
    margin: 14px 0 10px;
    font-size: 24px;
    font-weight: 700;
    line-height: 1.35;
    color: #111;
    text-decoration: none;
}

.event-wrap .event-summary {
    margin: 0;
    font-size: 15px;
    line-height: 1.6;
    color: #666;
}

.event-wrap .event-period {
    margin: 14px 0 0;
    font-size: 14px;
    color: #9a9a9a;
}

.event-wrap .event-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.08);
}

.event-wrap .event-item:hover .event-title {
    text-decoration: underline;
}

.event-wrap .event-empty {
    grid-column: 1 / -1;
    padding: 40px 20px;
    border: 1px solid #e8e8e8;
    border-radius: 16px;
    color: #666;
    text-align: center;
}

.event-wrap .event-paging {
    margin-top: 1.75rem;
    text-align: center;
}

.event-wrap .event-paging .paging-nav {
    display: inline-flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 0.375rem;
}

.event-wrap .event-paging .paging-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 2.25rem;
    height: 2.25rem;
    padding: 0 0.625rem;
    border-radius: 0.5rem;
    background: #eee;
    text-decoration: none;
    color: #333;
    font-size: 0.875rem;
    font-weight: 500;
    line-height: 1;
}

.event-wrap .event-paging .paging-num.active {
    background: #111;
    color: #fff;
    font-weight: 600;
}

.event-wrap .event-paging .paging-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 0.5rem;
    background: #eee;
    text-decoration: none;
    color: #333;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
}

.event-wrap .event-paging .paging-icon.is-disabled {
    opacity: 0.38;
    cursor: not-allowed;
    pointer-events: none;
}

.event-wrap .event-view {
    max-width: 760px;
    margin: 0 auto;
}

.event-wrap .event-view-head {
    text-align: center;
}

.event-wrap .event-view-head h1 {
    margin: 0;
    font-size: 36px;
    font-weight: 700;
    line-height: 1.3;
    color: #111;
}

.event-wrap .event-view-head .event-period {
    margin-top: 12px;
}

.event-wrap .event-view-content {
    margin-top: 44px;
    font-size: 16px;
    line-height: 1.7;
    color: #222;
}

.event-wrap .event-view-content img {
    max-width: 100%;
    height: auto;
}

.event-wrap .event-view-content p,
.event-wrap .event-view-content h2,
.event-wrap .event-view-content h3,
.event-wrap .event-view-content ul,
.event-wrap .event-view-content ol {
    margin: 0 0 16px;
}

.event-wrap .event-view-content ul,
.event-wrap .event-view-content ol {
    padding-left: 20px;
}

.event-wrap .event-view-actions {
    margin-top: 48px;
    text-align: center;
}

.event-wrap .event-view-list-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 120px;
    height: 46px;
    padding: 0 20px;
    border: 1px solid #d8d8d8;
    border-radius: 8px;
    background: #fff;
    color: #222;
    text-decoration: none;
    font-size: 1rem;
    font-weight: 600;
    line-height: 1;
    transition: all 0.2s ease;
}

.event-wrap .event-view-list-btn:hover {
    border-color: #111;
    background: #111;
    color: #fff;
}

@media (max-width: 900px) {
    .event-wrap .event-list {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {


    .event-wrap .event-header:not(.sub-page-head) h1 {
        font-size: 30px;
    }

    .event-wrap .event-link {
        flex-direction: column;
        align-items: stretch;
        min-height: 0;
    }

    .event-wrap .event-thumb {
        width: 100%;
        height: 220px;
        flex-basis: auto;
    }

    .event-wrap .event-title {
        font-size: 22px;
    }

    .event-wrap .event-admin-bar {
        flex-direction: column;
        align-items: stretch;
    }

    .event-wrap .event-admin-bar__actions {
        width: 100%;
    }

    .event-wrap .event-admin-bar__btn {
        flex: 1 1 50%;
    }

    .event-wrap .event-view-head h1 {
        font-size: 30px;
    }
}
