/* ==========================================================================
   GEvents Carrusel - Styles (Fixed Navigation & Full Height Image Coverage)
   ========================================================================== */

.events-card-slider-wrapper {
    position: relative;
    width: 100%;
    padding: 0 24px; /* Padding for floating navigation arrows */
    box-sizing: border-box;
}

.events-card-slider {
    position: relative;
    padding: 12px 0; /* Space for hover box-shadow translateY */
    overflow: visible; /* Allow floating arrows to hang outside without clipping */
}

/* Swiper Container (Expanded padding & negative margins for unclipped hover elevation & box-shadow) */
.events-slider-swiper {
    width: 100%;
    height: 100%;
    overflow: hidden;
    padding-top: 18px !important;
    padding-bottom: 24px !important;
    margin-top: -18px !important;
    margin-bottom: -24px !important;
}

.events-slider-swiper .swiper-wrapper {
    align-items: stretch;
}

.events-slider-swiper .swiper-slide {
    height: auto;
    display: flex;
}

/* Card Main Container */
.events-card {
    display: flex;
    flex-direction: row;
    width: 100%;
    background-color: #ffffff;
    border: 1px solid #e2e8f0;
    border-radius: 16px;
    overflow: hidden;
    transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1), box-shadow 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    box-sizing: border-box;
    align-items: stretch;
}

.events-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 14px 28px rgba(0, 0, 0, 0.06), 0 10px 10px rgba(0, 0, 0, 0.04);
}

/* Left Image Area (CSS Background Image Container) */
.events-card__image-wrapper {
    flex: 0 0 40%;
    max-width: 40%;
    position: relative;
    overflow: hidden;
    align-self: stretch;
    min-height: 100%;
}

.events-card__image-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    transition: transform 0.5s ease;
}

.events-card:hover .events-card__image-bg {
    transform: scale(1.05);
}

/* Right Content Area */
.events-card__content {
    flex: 1;
    padding: 28px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}

/* Location */
.events-card__location {
    font-size: 14px;
    font-weight: 500;
    color: #35586d;
    margin-bottom: 12px;
    line-height: 1.4;
}

/* Title */
.events-card__title {
    font-size: 20px;
    font-weight: 700;
    color: #182b39;
    margin: 0 0 14px 0;
    line-height: 1.25;
}

/* Date */
.events-card__date {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    font-weight: 600;
    color: #35586d;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 0.02em;
}

.events-card__date-icon {
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: #35586d;
    fill: none;
}

/* Tags List */
.events-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 22px;
}

.events-card__tag {
    display: inline-block;
    padding: 4px 12px;
    font-size: 12px;
    font-weight: 500;
    color: #35586d;
    background-color: #ffffff;
    border: 1px solid #cbd5e1;
    border-radius: 50px;
    white-space: nowrap;
    line-height: 1.4;
}

/* CTA Link */
.events-card__link {
    font-size: 14px;
    font-weight: 600;
    color: #0084ff;
    text-decoration: underline;
    text-underline-offset: 4px;
    text-decoration-thickness: 1.5px;
    display: inline-block;
    margin-top: auto;
    transition: color 0.2s ease, text-decoration-color 0.2s ease;
    width: fit-content;
}

.events-card__link:hover {
    color: #005bb5;
}

/* Floating Navigation Arrows */
.events-card-slider__arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    border: 1.5px solid #182b39;
    background-color: #ffffff;
    color: #182b39;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 20;
    transition: all 0.25s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.events-card-slider__arrow:hover {
    background-color: #182b39;
    color: #ffffff;
}

.events-card-slider__arrow--prev {
    left: 0;
}

.events-card-slider__arrow--next {
    right: 0;
}

.events-card-slider__arrow svg {
    width: 18px;
    height: 18px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.events-card-slider .swiper-button-disabled {
    opacity: 0.35;
    cursor: not-allowed;
    pointer-events: none;
}

/* Pagination Dots */
.events-card-slider-wrapper .swiper-pagination {
    position: relative;
    bottom: 0 !important;
    margin-top: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.events-card-slider-wrapper .swiper-pagination-bullet {
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background-color: #0084ff;
    opacity: 0.35;
    margin: 0 !important;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    cursor: pointer;
}

.events-card-slider-wrapper .swiper-pagination-bullet-active {
    width: 28px;
    height: 6px;
    border-radius: 10px;
    background-color: #0084ff;
    opacity: 1;
}

/* Responsive Media Queries */
@media (max-width: 1023px) {
    .events-card-slider-wrapper {
        padding: 0 16px;
    }
    .events-card-slider__arrow--prev {
        left: -4px;
    }
    .events-card-slider__arrow--next {
        right: -4px;
    }
}

@media (max-width: 767px) {
    .events-card-slider-wrapper {
        padding: 0;
    }

    .events-card {
        flex-direction: column !important;
        height: auto !important;
    }

    .events-card__image-wrapper {
        flex: none !important;
        max-width: 100% !important;
        width: 100% !important;
        height: 210px !important;
        min-height: 210px !important;
        position: relative !important;
    }

    .events-card__image-bg {
        position: absolute !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        background-size: cover !important;
        background-position: center center !important;
        background-repeat: no-repeat !important;
    }

    .events-card__content {
        flex: 1 1 auto !important;
        width: 100% !important;
        padding: 20px 18px !important;
        box-sizing: border-box !important;
    }

    .events-card-slider__arrow {
        display: none;
    }
}
