.event-main {
    padding: 40px 0 70px;
}

.event-content {
    width: 100%;
}

.event-head {
    margin-bottom: 28px;
    text-align: center;
}

.event-head h2 {
    margin: 0 0 8px;
    font-size: 30px;
    font-weight: 700;
    color: #222;
}

.event-head p {
    margin: 0;
    font-size: 15px;
    color: #777;
}

.event-tabs {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 25px;
}

.event-tabs a {
    min-width: 160px;
    padding: 13px 20px;
    border: 1px solid #ddd;
    border-radius: 30px;
    text-align: center;
    font-size: 15px;
    color: #555;
    background: #fff;
}

.event-tabs a.active {
    border-color: #222;
    background: #222;
    color: #fff;
    font-weight: 600;
}

.event-search-form {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-bottom: 30px;
}

.event-search-form input[type="text"] {
    width: 320px;
    height: 42px;
    padding: 0 14px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.event-search-form button,
.event-search-reset {
    height: 42px;
    padding: 0 18px;
    border: 0;
    border-radius: 4px;
    background: #222;
    color: #fff;
    font-size: 14px;
    cursor: pointer;
    line-height: 42px;
}

.event-search-reset {
    background: #777;
}

.event-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 26px;
}

.event-card {
    display: block;
    border: 1px solid #eee;
    background: #fff;
    transition: 0.2s;
}

.event-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, 0.08);
}

.event-thumb {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    aspect-ratio: 4 / 2.2;
}

.event-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.event-no-image {
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    color: #aaa;
    font-size: 14px;
}

.event-ing-badge,
.event-end-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    color: #fff;
}

.event-ing-badge {
    background: #e60023;
}

.event-end-badge {
    background: #555;
}

.event-info {
    padding: 18px;
}

.event-info h3 {
    margin: 0 0 10px;
    font-size: 17px;
    font-weight: 600;
    color: #222;
    line-height: 1.4;
}

.event-date {
    font-size: 13px;
    color: #888;
}

.event-ended .event-thumb img {
    filter: grayscale(100%);
    opacity: 0.65;
}

.event-empty {
    grid-column: 1 / -1;
    padding: 60px 0;
    text-align: center;
    color: #888;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

@media (max-width: 900px) {
    .event-list {
        grid-template-columns: repeat(2, 1fr);
        gap: 18px;
    }
}

@media (max-width: 640px) {
    .event-main {
        padding: 25px 0 50px;
    }

    .event-head h2 {
        font-size: 24px;
    }

    .event-tabs {
        gap: 6px;
    }

    .event-tabs a {
        flex: 1;
        min-width: auto;
        padding: 12px 8px;
        font-size: 14px;
    }

    .event-search-form {
        flex-wrap: wrap;
    }

    .event-search-form input[type="text"] {
        width: 100%;
    }

    .event-search-form button,
    .event-search-reset {
        flex: 1;
        text-align: center;
    }

    .event-list {
        grid-template-columns: 1fr;
    }
}


.event-view {
    border-top: 2px solid #222;
}

.event-view-head {
    padding: 25px 10px;
    border-bottom: 1px solid #e5e5e5;
}

.event-view-head h2 {
    margin: 0;
    font-size: 28px;
}

.event-view-info {
    margin-top: 12px;
    color: #888;
    font-size: 14px;
}

.event-view-info span {
    margin-right: 20px;
}

.event-thumb-view {
    margin: 35px 0;
    text-align: center;
}

.event-thumb-view img {
    max-width: 100%;
}

.event-view-content {
    padding: 30px 10px 50px;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    line-height: 1.8;
}

.event-btn {
    margin-top: 40px;
    text-align: center;
}

.btn-list {
    display: inline-block;
    padding: 12px 45px;
    background: #222;
    color: #fff;
}

.event-view-content img {
    max-width: 100% !important;
    height: auto !important;
}