.events {
    background: radial-gradient(198.13% 90.64% at 12.47% 29.59%, #c3daf9 0%, #e8eaff 100%);
}

body .events .events__heading {
    font-weight: 700;
}

body .events .events__subheading {
    font-weight: 600;
    margin-bottom: 30px;
}

.events__row {
    display: flex;
    flex-direction: column;
    gap: 30px;
}

.events__item {
    background: linear-gradient(118deg, #e6eefe 0%, #f3faff 100%);
    display: none;
}

.events__item-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    margin-bottom: 20px;
}

.events__item-header .events__name {
    color: #1B1E21;
    font-weight: 700;
}

.events__date-wrap {
    display: flex;
    align-items: center;
    gap: 10px;
}

.events__date-item {
    padding: 14px 20px;
    background: #6032ed;
    border-radius: 20px;
    font-weight: 500;
    font-size: 20px;
    line-height: 120%;
    color: #fff;
}

.events__item-body {
    background: #fff;
    display: flex;

}

.events__sliders {
    max-width: 410px;
    position: relative;
    margin-left: auto;
    margin-right: auto;
    width: 100%;

}

.events__gallery-old .events__image img,
.events__gallery .events__image img{
    height: 460px;
    width: 100%;
    object-fit: cover;
    border-radius: 30px;
}

.events__gallery_thumbs-old .events__image img,
.events__gallery_thumbs .events__image img{
    height: 85px;
    border-radius: 12px;
    border: 1px solid #9d9d9d;
}

.events__gallery-old ,
.events__gallery {
    margin-bottom: 12px;
}

.events__info-top {
    background: #e6f0ff;
    padding: 20px;
    border-radius: 30px;
}

.events__info-top-inner {
    max-height: 437px;
    overflow-y: auto;
    padding-right: 14px;
}

.events__info-top-inner br {
    display: none;
}

.events__info-top-inner p {
    line-height: 150%;
}

.events__info-top-inner::-webkit-scrollbar {
    width: 6px; /* товщина скролбару */
    border-radius: 4px;
}

.events__info-top-inner::-webkit-scrollbar-track {
    background: #bdd7ff; /* колір треку */
    border-radius: 4px;
}

.events__info-top-inner::-webkit-scrollbar-thumb {
    background-color: #82aef0;
    border-radius: 6px;
}

.events__info-top-inner::-webkit-scrollbar-thumb:hover {
    background-color: #82aef0;
}

.events__info-top-inner {
    scrollbar-width: thin;
    scrollbar-color: #82aef0 #bdd7ff ;
}

.events__info-top-inner::-webkit-scrollbar-button {
    display: none;
}

/* У Firefox стрілки не показуються за замовчуванням, додатково можна тонко налаштувати */
.events__info-top-inner {
    scrollbar-width: thin; /* лише смужка без стрілок */
}

.events__table {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 20px;
}

.events__table-row {
    padding-bottom: 10px;
    border-bottom: 1px solid #36abff;
    display: flex;
    gap: 20px;
}

.events__row-name {
    font-weight: 700;
    font-size: 16px;
    line-height: 140%;
    color: #565656;
}

.events img {
    object-fit: cover;
}

.events__row-description {
    font-weight: 400;
    font-size: 16px;
    line-height: 140%;
    color: #565656;
}

.events__excerpt {

}

.events__btn {
    border-radius: 100px;
    padding: 28px 24px;
    background: #ffed39;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    text-align: center;
    color: #1b1e21;
}

.events__gallery_thumbs-swiper-button-next,
.events__gallery_thumbs-swiper-button-prev,
.events__gallery_thumbs-old-swiper-button-next,
.events__gallery_thumbs-old-swiper-button-prev {
    position: absolute;
    bottom: 34px;
    transform: translateY(-50%);
    z-index: 3;
    left: 18px;
    display: flex;
    cursor: pointer;
}

.events__gallery_thumbs-swiper-button-next,
.events__gallery_thumbs-old-swiper-button-next {
    left: unset;
    right: 18px;
}

.events__ended {
    font-weight: 500;
    font-size: 20px;
    line-height: 120%;
    text-align: center;
    color: #1b1e21;
    background: #70ed32;
    border-radius: 20px;
    padding: 14px 32px;
}

.events__row .events__item:nth-child(1) {
    display: block;
}

.row-active .events__item{
    display: block;
}

.row-active .events__more-old, .row-active .events__more{
    display: none;
}

.events__more-old, .events__more {
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 100px;
    padding: 28px 24px;
    background: #6032ed;
    cursor: pointer;
    font-weight: 700;
    font-size: 20px;
    line-height: 120%;
    text-align: center;
    color: #fff;
}

@media screen and (min-width: 1024px) {
    .events__heading {
        margin-bottom: 70px;
    }

    .events__item {
        padding: 30px;
        border-radius: 40px;
    }

    .events__subheading-second {
        margin-top: 100px;
    }

    .events__item-body {
        padding: 30px;
        border-radius: 40px;
        gap: 40px;
    }

    .events__sliders {
        flex-basis: 410px;
    }

    .events__info {
        flex-basis: 670px;
    }

    .events__row-name {
        flex-basis: 230px;
    }

    .events__row-description {
        flex-basis: 360px;
    }

    .events__btn {
        margin-top: 40px;
    }
}

@media screen and (max-width: 1023.98px) {
    .events__heading {
        margin-bottom: 30px;
    }

    .events__item {
        padding: 10px;
        border-radius: 20px;
    }

    .events__subheading-second {
        margin-top: 60px;
    }

    .events__item-body {
        padding: 10px;
        border-radius: 20px;
        gap: 20px;
        flex-direction: column;
    }

    .events__gallery-old .events__image img,
    .events__gallery .events__image img{
        border-radius: 20px;
    }

    .events__btn {
        margin-top: 20px;
    }

    .events__info-top {
        border-radius: 20px;
    }

    .events__gallery_thumbs-swiper-button-next,
    .events__gallery_thumbs-swiper-button-prev,
    .events__gallery_thumbs-old-swiper-button-next,
    .events__gallery_thumbs-old-swiper-button-prev {
        bottom: 18px;
    }

    .events__gallery_thumbs-old .events__image img, .events__gallery_thumbs .events__image img {
        height: 45px;
        border-radius: 6px;
    }

    .events__gallery-old .events__image img, .events__gallery .events__image img {
        height: 260px;
        border-radius: 20px;
    }

    .events__item-header {
        flex-direction: column;
    }

    .events__gallery_thumbs-swiper-button-next, .events__gallery_thumbs-swiper-button-prev, .events__gallery_thumbs-old-swiper-button-next, .events__gallery_thumbs-old-swiper-button-prev {
        bottom: -12px;

    }

    .events__gallery_thumbs-swiper-button-next svg, .events__gallery_thumbs-swiper-button-prev svg, .events__gallery_thumbs-old-swiper-button-next svg, .events__gallery_thumbs-old-swiper-button-prev svg{
        width: 35px;
        height: 35px;
    }

    .events__date-wrap {
        width: 100%;
    }

    .events__date-item {
        font-size: 16px;
    }
}

@media screen and (max-width: 440px) {
    .events__table-row {
        flex-direction: column;
        gap: 5px;
    }
}