/* =========================================================
   EVENTS CAROUSEL
   ========================================================= */

.events-carousel {
    display: flex !important;
    flex-wrap: nowrap !important;
    gap: 28px !important;

    overflow-x: auto !important;
    overflow-y: hidden !important;

    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;

    padding: 0 0 18px 0 !important;
    margin: 0 !important;

    /* Hide scrollbar */
    scrollbar-width: none;
}

.events-carousel::-webkit-scrollbar {
    display: none;
}


/* Individual event cards */
.events-carousel > li.kb-post-list-item {
    flex: 0 0 calc((100% - 56px) / 3) !important;
    width: calc((100% - 56px) / 3) !important;
    max-width: none !important;
    min-width: 0 !important;

    scroll-snap-align: start;
}


/* Make article fill its slide */
.events-carousel > li.kb-post-list-item > article {
    width: 100% !important;
    height: 100% !important;
    margin: 0 !important;
}


/* Tablet */
@media (max-width: 1024px) {

    .events-carousel > li.kb-post-list-item {
        flex-basis: calc((100% - 24px) / 2) !important;
        width: calc((100% - 24px) / 2) !important;
    }

}


/* Mobile */
@media (max-width: 767px) {

    .events-carousel {
        gap: 16px !important;
        width: 100% !important;
    }

    .events-carousel > li.kb-post-list-item {
        flex-basis: 100% !important;
        width: 100% !important;
		margin-left:10px !important;
		margin-right:10px !important;
    }

}
/* =========================================================
   EVENTS CAROUSEL CARD REFINEMENT
   ========================================================= */

/* Don't force the slides/cards to equal vertical height */
.events-carousel {
    align-items: flex-start !important;
	border-radius:15px;
}

/* Individual slide */
.events-carousel > li.kb-post-list-item {
    height: auto !important;
    align-self: flex-start !important;
}

/* Actual event card */
.events-carousel > li.kb-post-list-item > article {
    height: auto !important;
    min-height: 220px !important;

    background: rgba(255, 255, 255, 0.98) !important;
    border: 1px solid rgba(53, 105, 163, 0.10) !important;
    border-radius: 14px !important;
    overflow: hidden;

    box-shadow:
        0 10px 28px rgba(20, 45, 55, 0.18),
        0 3px 8px rgba(20, 45, 55, 0.10) !important;

    transition:
        transform 0.25s ease,
        box-shadow 0.25s ease !important;
}

.events-carousel > li.kb-post-list-item > article:hover {
    transform: translateY(-6px);

    box-shadow:
        0 18px 40px rgba(20, 45, 55, 0.24),
        0 5px 12px rgba(20, 45, 55, 0.12) !important;
}
.events-carousel .post-thumbnail {
    overflow: hidden;
}

.events-carousel .post-thumbnail img {
    display: block;
    width: 100%;
    transition: transform 0.35s ease;
}

.events-carousel > li.kb-post-list-item > article:hover .post-thumbnail img {
    transform: scale(1.03);
}
/* Content spacing */
.events-carousel .entry-content-wrap {
    padding: 28px 30px !important;
}

/* Event title */
.events-carousel .entry-title,
.events-carousel .entry-title a {
    font-size: 27px !important;
    line-height: 1.15 !important;
    font-weight: 700 !important;
}

/* Excerpt/date */
.events-carousel .entry-summary,
.events-carousel .entry-summary p {
    font-size: 15px !important;
    line-height: 1.45 !important;
}

/* Navigation */
.events-carousel-nav {
    display: flex;
    justify-content: flex-end;
    gap: 8px;
    margin: 0 0 14px 0;
}

.events-carousel-nav button {
    width: 40px;
    height: 40px;

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 0 !important;

    background: rgba(255, 255, 255, 0.96) !important;
    color: #3569a3 !important;

    border: 0 !important;
    border-radius: 50% !important;

    box-shadow: 0 4px 12px rgba(20, 45, 55, 0.18);

    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

/* Description underneath */
.events-carousel .entry-summary p {
    margin: 0 0 14px !important;
    font-size: 15px !important;
    line-height: 1.45 !important;
}
.events-carousel .event-date {
    display: block !important;
    margin: 0 0 12px 0 !important;

    font-size: 15px !important;
    line-height: 1.4 !important;
    font-weight: 600 !important;

    color: #3569a3 !important;
}
/* Single event – slightly narrower card */
.upcoming-events.events-carousel > li.kb-post-list-item:only-child {
    flex: 0 0 75% !important;
    width: 75% !important;
    max-width: 75% !important;
}