/* Events Swiper Block Styles */

.events-swiper-container {
    width: 100%;
    height: 100%;
}

.events-swiper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    position: relative;
}

.events-swiper .swiper-wrapper {
    display: flex;
    transition-property: transform;
    box-sizing: content-box;
}

.events-swiper .swiper-slide {
    height: auto;
    flex-shrink: 0;
    width: 100%;
    height: 100%;
    display: flex;
    justify-content: center;
}

.events-swiper .sw_event-card {
    display: flex;
    flex-direction: column;
    overflow: hidden;
    cursor: pointer;
    width: 100%;
    text-decoration: none;
}


.events-swiper .sw_event-card-top {
    width: 100%;
    height: 120%;
    display: flex;
    flex-direction: column;
    gap: 9.2rem;
    align-items: center;
    justify-content: center;
    transition: all .3s ease-in-out;
    position: relative;
}

.events-swiper .sw_event-card-top::after {
    content: "";
    background-image: url('../../images/external-link.png');
    background-size: 5%;
    background-repeat: no-repeat;
    background-position: top 10% right 3%;
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity .3s ease-in-out;
}


.events-swiper .event-card:hover .sw_event-card-top::after {
    opacity: 1;
}

.events-swiper .event-card-image {
    width: 50%;
    max-height: 100%;
    object-fit: contain;
}

.events-swiper .sw_event-card-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1.6rem;
    width: 100%;
}

.events-swiper h3.sw_event-card-title {
    font-size: 3.6rem !important;
    font-weight: 400;
    font-family: var(--redhat-display);
    color: var(--color-secondary);
    line-height: 1.2;
    margin-bottom: 0 !important;
}

.events-swiper .sw_event-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.6rem;
}

.events-swiper .sw_event-card-meta img {
    width: 2rem;
    height: 2rem;
    flex-shrink: 0;
}

.events-swiper .sw_event-card-meta span {
    font-size: 1.6rem;
    font-weight: 400;
    font-family: var(--redhat-display);
    color: var(--color-text);
}


.events-swiper .swiper-pagination {

    text-align: center;
}

.events-swiper .swiper-pagination-bullet {
    background: var(--accent-gray-subtle);
    opacity: 0.5;
    transition: all 0.3s ease;
    margin: 0 6px;
    border-radius: 50%;
    display: inline-block;
    cursor: pointer;
}

.events-swiper .swiper-pagination-bullet-active {
    background: var(--color-secondary);
    opacity: 1;
    transform: scale(1.2);
}

/* Responsive Design */
@media screen and (max-width: 768px) {
    .events-swiper .event-card-top {
        height: 25rem;
    }
    
    .events-swiper .event-card-image {
        width: 70%;
    }
    
    .events-swiper h3.event-card-title {
        font-size: 2rem;
    }
    
    .events-swiper .event-card-meta{
        flex-direction: column;
        align-items: flex-start;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .events-swiper .sw_event-card-content {
        flex-direction: column;
        align-items: center;
        justify-content: flex-start;
        gap: 0.5rem;
    }

    .events-swiper .event-card-meta span {
        font-size: 1.4rem;
    }
}
