/* custom events v18 */
.custom-events-v18 {
    --events-section-title-color: var(--primary-color);
    --section-text-color: var(--events-section-title-color);
    --slider-arrow-circle-size: 35px;
    padding-inline: 20px;

    @media only screen and (min-width: 1024px) {
        --slider-arrow-circle-size: 40px; 
        padding-inline: calc(var(--slider-arrow-circle-size) + 40px);
    }
    @media only screen and (min-width: 1600px) {
        --slider-arrow-circle-size: 50px;
    }
    box-sizing: border-box;
    
    background-color: var(--events-section-bg-color, #F2F2F2);
    

    

    *, *::after, *::before {
        box-sizing: border-box;
    }

    .header-slot-container {
        color: var(--events-section-title-color);
    }
    .see-all-container .see-all-button {
        background-color: var(--see-all-bg-color, var(--primary-color));
        color: var(--see-all-link-color, var(--primary-color-contrast));

        &:hover {
            background-color: var(--see-all-bg-hover-color, var(--secondary-color));
            color: var(--see-all-link-hover-color, var(--secondary-color-contrast));
        }
    }

    .event-item-v18 .event-item-v18_details {
        margin-bottom: 18px;

        &:has(+ .event-item-v18__more) {
            margin-bottom: 0;
        }
    }

    .event-item-v18_details:not(:last-child):not(:has(+ .event-item-v18__more)) {
        position: relative;
        padding-bottom: 8px;
    
        &::after {
        content: '';
        position: absolute;
        bottom: -5px;
        left: 0;
        width: 25px;
        height: 2px;
        border-radius: 2px;
        background: var(--third-color, var(--secondary-color));
        }
    }

    .event-item-v18 .event-item-v18__more {
        font-size: 16px;
        line-height: 1.2;
        text-transform: uppercase;
        color: var(--more-events-button-text-color, #333);
        display: flex;
        justify-content: flex-end;
        padding-top: 10px;
        margin-top: 10px;
        border-top: 1px solid var(--event-date-border-color, #9B9B9B); 
    }

    .event-item-v18 .event-item-v18__more a {
        color: var(--more-events-button-text-color, #333);
        background-color: var(--more-events-button-bg-color, transparent);
        text-decoration: none;
        display: inline-flex;
        align-items: center;
        gap: 4px;
        padding: 5px 2px 5px 4px;
        border-radius: 5px;
    }

    .event-item-v18 .event-item-v18__more a::after {
        display: inline-block;
        content: '';
        width: 30px;
        height: 22px;
        background-color: var(--more-events-button-text-color, #333);
        mask-image: url("data:image/svg+xml,%3Csvg width='46' height='46' viewBox='0 0 46 46' fill='none' xmlns='http://www.w3.org/2000/svg' data-v-7016a291=''%3E%3Cpath d='M26.5 12L38 23L26.5 35L25 33.5L34 24H8V22H34L25 13.5L26.5 12Z' fill='%23fff'%3E%3C/path%3E%3C/svg%3E");
        mask-repeat: no-repeat no-repeat;
        mask-position: left right;
        mask-size: contain;
        transition: all .35s ease-in-out;

    }

    .event-item-v18 .event-item-v18__more a:hover {
        color: var(--more-events-button-hover-text-color, var(--primary-color));
        background-color: var(--more-events-button-hover-bg-color, transparent);
    }

    .event-item-v18 .event-item-v18__more a:hover::after {
        background-color: var(--more-events-button-hover-text-color, var(--primary-color));
        transform: translateX(4px);
    }

    .event-item-v18 .event-item-v18__date .start-date {
        display: flex;
        align-items: center;
        gap: 7px;
        text-transform: uppercase;
        color: var(--event-top-date-text-color, var(--primary-color));
        border-bottom: solid 3px var(--event-date-border-color, #9B9B9B);
        padding-bottom: 8px;
        margin-bottom: 15px;
        font-size: 32px;
        line-height: 1.1;
        font-weight: 600;
        font-family: var(--secondary-font-family);
    }

    .event-item-v18 .event-item-v18__title a {
        color: var(--event-title-color, #4B4B4B);
        text-decoration: none;
    }

    .event-item-v18 .event-item-v18__title a:hover {
        text-decoration: underline;
        color: var(--event-title-color-hover, var(--primary-color));
    }

    .event-item-v18 .event-item-v18__title h3 {
        font-size: 18px;
        line-height: 1.2;
        font-weight: 600;
    }

    .event-item-v18 .event-item-v18__date {
        color: var(--event-date-time-color, #5d5c5c);
        text-transform: uppercase;
        padding-top: 3px;
        font-size: 18px;
        line-height: 1.3;
        margin-top: 4px;
    }

    .events-slider-container:has(.swiper-initialized) {
        position: relative;
    }
    .custom-swiper-controls {
        position: static;
        margin: 0;
    }
    .custom-swiper-pagination {
        justify-content: center;
        flex-wrap: wrap;
        text-align: center;
        padding-top: 25px;

        .swiper-pagination-bullet {
            min-width: 12px;
            height: 12px;  
            color: var(--events-slider-pagination-color, var(--primary-color));    
            transition: all .35s ease-in-out;     

            &:hover:not(.swiper-pagination-bullet-active) {
                opacity: 0.5;
            }

            &::after {
                margin: 0;
                height: 12px;
                border-radius: 50%;
            }            
        }
    }
    .swiper-button-disabled {
        opacity: 0.2 !important;
        cursor: not-allowed !important;
    }
    .custom-swiper-navigation>div {
        width: var(--slider-arrow-circle-size);
        height: var(--slider-arrow-circle-size);
        cursor: pointer;
        background-color: var(--events-slider-arrows-bg-color, var(--secondary-color));
        color: var(--events-slider-arrows-color, var(--secondary-color-contrast));
        border-radius: 50%;
        transition: all .35s ease-in-out;
        box-sizing: border-box;
        border: 1px solid transparent;

        @media only screen and (min-width: 1024px) { 
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
        } 

        &::after {
            font-size: 16px;
            padding: 0;
            margin: 0;
            transition: all .35s ease-in-out;
        }

        &:not(.swiper-button-disabled):hover {
            background-color: var(--events-slider-arrows-hover-bg-color, var(--primary-color-contrast));
            color: var(--events-slider-arrows-hover-color, var(--primary-color)); 
            border-color: #9B9B9B; 
        }

        &:hover:not(.swiper-button-disabled)::after {
            color: var(--primary-color);
        }

        &.custom-swiper-prev::after {
            margin-left: 6px;
        }

        &.custom-swiper-next::after {
            margin-left: -6px;
        }
        @media only screen and (min-width: 1024px) {
            &.custom-swiper-prev {
                left: 5px;
            }
            &.custom-swiper-next {
                right: 5px;
            }
        }
        


    }
    @media only screen and (max-width: 1023px) {
        .custom-swiper-controls { 
            margin-top: 20px;
            flex-direction: column;
            align-items: center;
            gap: 20px;
        }
    
        .custom-swiper-navigation, .custom-swiper-pagination {
            flex: 1; 
            padding: 0;
            margin: 0;
        }
        .custom-swiper-pagination {
            order: -1;
        }
    
        .custom-swiper-controls .custom-swiper-navigation>div::after {
            font-size: 11px;
        }
    }
}

/* end custom events v18 */