.events-top-wrapper {
    position: relative;
    height: fit-content;
    max-width: 1440px;
    margin: 0 auto;
}

.events-top-wrapper::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(270deg, rgba(217, 217, 217, 0.00) 51.81%, rgba(0, 0, 0, 0.40) 100%);
    pointer-events: none;
}

.events-top-image-wrapper {
    width: 100%;
}

.events-top-info {
    width: 644px;
    gap: 24px;
    left: 72px;
    bottom: 107px;
    z-index: 10;
    padding: 20px;
    border-radius: 20px;
    background: linear-gradient(113deg, rgba(255, 255, 255, 0.47) 0%, rgba(255, 255, 255, 0.00) 110.84%);
    backdrop-filter: blur(4px);
}

.events-top-info.no-img {
    bottom: 93px;
}

.events-top-category-tag {
    height: 24px;
    padding: 6px 12px;
    gap: 10px;
    border-radius: 12px;
    background: #D63384;
    color: #fff;
    line-height: 150%;
    font-weight: 700;
    font-size: 16px;
}

.events-top-category-tag.no-img {
    background: #fff;
    color: #000;
}

.events-top-content {
    gap: 32px;
}

.events-top-title {
    color: #fff;
}

.events-top-title.no-img {
    color: #000;
}

.events-top-time-place-wrapper {
    color: #fff;
    gap: 16px;
    font-size: 16px;
    font-weight: 700;
    line-height: 150%;
}

.events-top-time-place-wrapper.no-img {
    color: #000;
}

.events-top-time-place-wrapper span {
    font-size: 20px;
    font-weight: 700;
    line-height: 120%;
    min-width: 60px;
}

.events-top-location {
    right: 72px;
    bottom: 107px;
    min-width: 351px;
    width: fit-content;
    height: 80px;
    border-radius: 20px;
    border: 1px solid rgba(255, 255, 255, 0.70);
    background: linear-gradient(113deg, rgba(255, 255, 255, 0.47) 0%, rgba(255, 255, 255, 0.00) 110.84%);
    backdrop-filter: blur(21px);
}

.events-top-location.no-img {
    bottom: 93px;
}

.events-top-flex {
    padding: 16px 19px;
    gap: 12px;
}

.events-top-flex-right {
    color: #fff;
}

.events-top-flex-right.no-img {
    color: #000;
}

.events-top-location-wrapper p {
    line-height: 150%;
}


.events-not-found p {
    font-size: 32px;
    font-weight: 700;
}

.events-filter-section {
    padding-top: 40px;
    background-color: #fff;
    padding-bottom: 64px;
    padding-left: 72px;
    padding-right: 72px;
    max-width: 1440px;
    margin: 0 auto;
}

.events-filter-section .section-title {
    padding-bottom: 40px;
}

.events-filter-flex {
    gap: 8px;
}

.events-category-wrapper .input.select,
.events-location-wrapper,
.events-select-date-wrapper {
    width: 250px;
    padding: 6px 12px;
    background: #fff;
    border-radius: 4px;
    border: 1px solid #CED4DA;
    gap: 10px;
    font-size: 16px;
    color: #6C757D;
}

.events-select-date-wrapper {
    padding-right: 0px !important;
}

.events-category-filter,
.events-location-filter,
.events-date-filter {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 16px;
    color: #6C757D;
    outline: none;
}

.events-select-date-wrapper .input.date {
    width: 100%;
}

.events-search-wrapper {
    padding: 6px 12px;
    background: #212529;
    border-radius: 6px;
}

.events-search-btn {
    gap: 8px;
    border: none;
    background: transparent;
    color: #fff;
    font-size: 16px;
    font-weight: 700;
    cursor: pointer;
}

.events-search-btn img {
    display: inline-block;
    width: 16px;
    height: 16px;
}

.events {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding-bottom: 100px;
    background-color: #fff;
}

.event-card {
    width: 100%;
    min-height: 198px;
    height: fit-content;
    padding: 0px 72px 0px 72px;
    gap: 24px;
    border-top: 1px solid #ADB5BD;
    border-bottom: 1px solid #ADB5BD;
    background: #F8F9FA;
}

.event-card-element-1 {
    gap: 30px;
    max-width: 416px;
    width: 100%;
    padding-top: 8px;
}

.event-card-element-1-1 {
    text-wrap: nowrap;
}

.event-card-element-1-2 {
    font-size: 16px;
    font-weight: 400;
    line-height: 150%;
    color: #000;
}

.event-card-place {
    font-style: italic;
}

.event-card-element-2 {
    max-width: 634px;
    min-width: 595px;
    gap: 12px;
    flex-shrink: 0;
    padding-top: 8px;
    padding-bottom: 32px;
}

.event-card-element-2-2 {
    font-size: 16px;
    line-height: 150%;
    font-weight: 400;
    color: #000;
    width: 595px;
}

.event-img {
    height: 196px;
    width: 196px;
    object-fit: cover;
}

.event-animation-img {
    opacity: 0;
    height: 196px;
    width: 196px;
    transform: translateY(30px);
    transition: opacity 0.4s ease, transform 0.6s ease;
    pointer-events: none;
    flex-shrink: 0;
}

.event-card.in-view .event-animation-img {
    opacity: 1;
    transform: translateY(0);
    pointer-events: auto;
}

.event-card.out-view .event-animation-img {
    opacity: 0;
    transform: translateY(-30px);
    pointer-events: none;
}

.badge-vb-color {
    background-color: #d20222 !important;
    border-radius: 50%;
}

.event-card.no-animation .event-animation-img {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
    pointer-events: auto !important;
}

.event-card.no-animation.out-view .event-animation-img {
    opacity: 1 !important;
    transform: none !important;
}

.ui-widget {
    font-family: 'Source Sans 3' !important;
}

.ui-menu-item-wrapper.ui-state-active,
.ui-menu-item-wrapper:hover {
    border-color: #0C2F64;
    color: #0C2F64;
}

.event-card-finished .event-card-time {
    min-width: 84px;
}

.event-card.finished {
    min-height: unset;
}

.events-location-wrapper input, .events-location-wrapper div {
    width: 100%;
}

@media (max-width: 1440px) {
    .events-filter-section {
        padding: 40px 16px;
    }
    .events {
        padding-bottom: 50px;
    }
    .event-card {
        padding: 0 16px;
    }
    .event-card-element-2 {
        min-width: 0;
        padding-bottom: 8px;
        max-width: 500px;
    }
    .event-card-element-1 {
        flex-direction: column;
        max-width: 280px;
    }
    .events-top-info h1 {
        font-size: 32px;
    }
}

@media (max-width: 1200px) {
    .events-top-info {
        width: fit-content;
        height: fit-content;
        gap: 16px;
        left: 16px;
        bottom: unset;
        top: 16px;
    }
    .events-top-info h1 {
        font-size: 28px;
    }
    .events-top-content {
        gap: 16px;
    }
    .events-top-location, .events-top-location.no-img {
        right: 16px;
        bottom: 16px;
    }
    .event-card-element-1 h1 {
        font-size: 24px;
    }
    .event-card{
        height: fit-content;
        gap: 16px;
    }
    .event-card-element-2-2 {
        max-width: fit-content;
    }
    .event-card-element-2 h3 {
        font-size: 20px;
    }
}

@media (max-width: 992px) {
    .events-top-info h1 {
        font-size: 22px;
    }
    .events-top-info {
        padding: 10px;
    }
    .events-filter-flex {
        flex-direction: column;
    }
    .events-category-wrapper .input.select,
    .events-location-wrapper,
    .events-location-wrapper .input.text,
    .events-category-wrapper,
    .events-select-date-wrapper,
    .events-search-wrapper {
        max-width: 662px;
        width: 100%;
    }
    .event-card-element-2 {
        max-width: 360px;
        height: fit-content;
    }
    .event-card-element-1 {
        max-width: 200px;
    }
    .event-card-finished {
        flex-direction: column;
    }
    .event-card-finished .event-card-element-1-2 {
        flex-direction: column;
    }
}

@media (max-width: 768px) {
    .events-filter-section {
        padding: 24px 16px;
    }
    .events {
        padding-bottom: 24px;
    }
    .events-main-img {
        min-height: 442px;
        object-fit: cover;
    }
    .events-top-location {
        right: unset;
        left: 16px;
    }
    .events-top-location.no-img {
        bottom: 55px !important;
    }
    .event-card-element-1 {
        flex-direction: row;
        max-width: 768px;
        width: 100%;
        padding: 0 16px;
    }
    .event-card-mobile {
        display: flex !important;
    }
    .event-img {
        width: 100%;
        height: auto;
        object-fit: cover;
    }
    .event-animation-img {
        height: fit-content;
    }

    .event-card-element-2-2 {
        max-height: fit-content;
    }
}

@media (max-width: 576px) {
    .events-top-info {
        top: 16px;
        left: 8px;
    }

    .events-top-info h1 {
        font-size: 20px;
    }
    
    .events-top-location {
        left: 8px;
    } 
}

.events-main-img {
    max-width: 1440px;
    max-height: 720px;
    height: 100%;
    width: 100%;
    object-fit: cover;
}