.events-discover {
    max-width: 1180px;
    margin: 0 auto;
    padding: 30px 48px 115px;
}

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.events-discover__search {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 0.75rem;
    margin-bottom: 2rem;
}

.events-discover__search-input {
    width: 100%;
    min-height: 44px;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-radius: 18px;
    padding: 15px 16px;
    font-size: 16px;
    font-family: inherit;
}

.events-discover__search-input:focus {
    outline: none;
    border-color: rgba(141, 92, 255, 0.75);
}

.events-discover__year {
    width: 100%;
    min-height: 44px;
    min-width: 8rem;
    background: rgba(255, 255, 255, 0.055);
    border: 1px solid rgba(255, 255, 255, 0.14);
    color: #ffffff;
    border-radius: 18px;
    padding: 15px 16px;
    font-size: 16px;
    font-family: inherit;
}

.events-discover__year:focus {
    outline: none;
    border-color: rgba(141, 92, 255, 0.75);
}

.events-discover__empty {
    color: #c7cada;
    font-size: 1.0625rem;
    line-height: 1.75;
}

.events-discover__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr));
    gap: 1.25rem;
}

.events-discover__card {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    height: 100%;
    padding: 1.5rem;
    border-radius: 31px;
    background: linear-gradient(145deg, rgba(255, 255, 255, 0.085), rgba(255, 255, 255, 0.026));
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.08),
        0 18px 55px rgba(0, 0, 0, 0.18);
    color: inherit;
    transition: border-color 0.2s ease, transform 0.2s ease;
}

.events-discover__card:hover {
    border-color: rgba(141, 92, 255, 0.55);
}

.events-discover__media {
    margin: -0.25rem 0 0.25rem;
    border-radius: 20px;
    overflow: hidden;
    background: rgba(255, 255, 255, 0.04);
    aspect-ratio: 16 / 9;
}

.events-discover__media img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.events-discover__body {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    flex: 1;
    color: inherit;
    text-decoration: none;
}

.events-discover__body:hover .events-discover__name {
    color: #ffffff;
}

.events-discover__body:hover {
    transform: translateY(-2px);
}

.events-discover__org {
    margin: 0;
    color: #b98cff;
    font-size: 0.85rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    text-decoration: none;
    align-self: flex-start;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
}

.events-discover__org:hover {
    color: #ffffff;
}

.events-discover__org--text {
    text-decoration: none;
    pointer-events: none;
}

.events-discover__name {
    margin: 0;
    color: #ffffff;
    font-size: 1.35rem;
    line-height: 1.25;
}

.events-discover__meta {
    margin: 0;
    color: #c7cada;
    font-size: 1rem;
    line-height: 1.6;
    flex: 1;
}

.events-discover__cta {
    margin-top: 0.5rem;
    color: #b98cff;
    font-weight: 700;
}

@media (max-width: 768px) {
    .events-discover {
        padding-left: 24px;
        padding-right: 24px;
    }

    .events-discover__search {
        grid-template-columns: 1fr;
    }

    .events-discover__year {
        min-width: 0;
    }

    .events-discover__search .btn {
        width: 100%;
    }
}
