.events-page {
    padding: 40px 0;
}

.events-page__header {
    text-align: center;
    margin-bottom: 60px;
    color:  #42587B;
}

.events-page__title {
    font-size: 48px;
    font-weight: 600;
    color: var(--dark-charcoal);
    margin-bottom: 16px;
}

.events-page__subtitle {
    font-size: 18px;
    color: var(--slate-grey);
    max-width: 600px;
    margin: 0 auto;
}

.events-page__header-actions {
    margin-top: 28px;
    display: flex;
    justify-content: center;
}

.events-page__summary-btn {
    display: inline-block;
    padding: 10px 28px;
    border-radius: 999px;
    font-size: 15px;
    font-weight: 600;
    color: var(--white);
    background: #2977f5;
    box-shadow: 0 8px 20px rgba(41,119,245,0.10);
    transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.12s ease;
    text-decoration: none;
    border: 0;
}

.events-page__summary-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(41,119,245,0.12);
}

.events-page__summary-btn:active {
    transform: translateY(0) scale(0.995);
    box-shadow: 0 6px 14px rgba(41,119,245,0.08);
}

@media (max-width: 768px) {
    .events-page__summary-btn { padding: 9px 22px; font-size: 14px; }
}

@media (max-width: 480px) {
    .events-page__summary-btn { padding: 8px 18px; font-size: 14px; width: 85%; max-width: 340px; }
}

.events-page__content {
    width: 100%;
    padding: 0 40px;
    display: flex;
    justify-content: center;
}

.events-page__grid {
    display: flex;
    flex-wrap: wrap;
    gap: 32px;
    justify-content: center;
    max-width: 1200px;
}

.events-page__filters {
    position: relative;
    display: flex;
    width: max-content;
    max-width: 100%;
    gap: 0;
    margin: 0 auto 40px;
    justify-content: center;
    align-items: stretch;
    flex-wrap: wrap;
    background: var(--white);
    border: 2px solid #2977f5;
    border-radius: 999px;
    padding: 0;
}

.filter-slider {
    position: absolute;
    left: 0;
    top: 0;
    width: 0;
    height: 0;
    background: var(--exun-blue);
    border-radius: 999px;
    z-index: 0;
    pointer-events: none;
    transition:
        transform 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        width 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        top 0.35s cubic-bezier(0.4, 0, 0.2, 1),
        height 0.35s cubic-bezier(0.4, 0, 0.2, 1);
}

.filter-btn {
    position: relative;
    z-index: 1;
    padding: 12px 30px;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: #2977f5;
    cursor: pointer;
    white-space: nowrap;
    transition: color 0.3s ease, background 0.3s ease;
    font-weight: 500;
    font-size: 17px;
    font-family: "Outfit", sans-serif;
    transform: none;
    box-shadow: none;
}

.filter-btn:not(.filter-btn--active):hover {
    background: rgba(41, 119, 245, 0.08);
    color: #2977f5;
    border-color: transparent;
    transform: none;
    box-shadow: none;
}

.filter-btn--active,
.filter-btn--active:hover {
    background: transparent;
    border-color: transparent;
    color: var(--white);
    transform: none;
    box-shadow: none;
}

.loading-placeholder {
    text-align: center;
    color: var(--slate-grey);
    font-size: 18px;
    padding: 40px;
}

.no-events {
    text-align: center;
    color: var(--slate-grey);
    font-size: 18px;
    padding: 40px;
    grid-column: 1 / -1;
}

@media (max-width: 768px) {
    .events-page__content {
        padding: 0 20px;
    }

    .events-page__title {
        font-size: 36px;
    }

    .events-page__subtitle {
        font-size: 16px;
    }

    .events-page__filters {
        gap: 12px;
    }

    .filter-btn {
        padding: 10px 18px;
        font-size: 14px;
    }
}

@media (max-width: 640px) {
    .events-page__filters {
        flex-wrap: nowrap;
        justify-content: flex-start;
        width: 100%;
        overflow-x: auto;
        scrollbar-width: none;
    }
}

@media (max-width: 480px) {
    .events-page__title {
        font-size: 28px;
    }

    .events-page__grid {
        gap: 20px;
    }
}
