.ll-events-wrap {
    --ll-events-title: #2e4392;
    --ll-events-body: #ecf6fc;
    --ll-events-button: #11a2d7;
    --ll-events-text: #050505;
    --ll-events-border: #eeeeee;
    --ll-events-gap: 28px;
    width: 100%;
    box-sizing: border-box;
}

.ll-events-wrap *,
.ll-events-wrap *::before,
.ll-events-wrap *::after {
    box-sizing: border-box;
}

.ll-events-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--ll-events-gap);
    align-items: stretch;
}

.ll-event-card {
    width: 100%;
    height: 100%;
    min-width: 0;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    border: 1px solid var(--ll-events-border);
    background: var(--ll-events-body);
    color: var(--ll-events-text);
    box-shadow: none;
}

.ll-event-image-wrap {
    width: 100%;
    aspect-ratio: 1 / 1;
    overflow: hidden;
    background: #f2f2f2;
}

.ll-event-image-wrap-placeholder {
    background: #eef8fc;
}

.ll-event-image-placeholder {
    width: 100%;
    height: 100%;
    min-height: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16%;
    text-align: center;
    background:
        radial-gradient(circle at 18% 18%, rgba(17, 162, 215, .12) 0, rgba(17, 162, 215, .12) 14%, transparent 14.5%),
        radial-gradient(circle at 82% 22%, rgba(46, 67, 146, .10) 0, rgba(46, 67, 146, .10) 12%, transparent 12.5%),
        linear-gradient(135deg, #e6f7fd 0%, #f5fbfe 100%);
}

.ll-event-placeholder-logo {
    display: block;
    width: min(62%, 240px);
    height: auto;
    max-height: 62%;
    object-fit: contain;
}

.ll-event-image {
    display: block;
    width: 100%;
    height: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
}

.ll-event-heading {
    min-height: 116px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 14px 18px;
    background: var(--ll-events-title);
    color: #fff;
    text-align: center;
}

.ll-event-title {
    width: 100%;
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(21px, 1.7vw, 27px);
    line-height: 1.08;
    font-weight: 700;
}


.ll-event-body {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    padding: 17px 17px 17px;
    background: var(--ll-events-body);
}

.ll-event-description {
    font-size: 15px;
    line-height: 1.45;
}

.ll-event-description > :first-child { margin-top: 0; }
.ll-event-description > :last-child { margin-bottom: 0; }
.ll-event-description p { margin: 0 0 14px; }

.ll-event-meta {
    margin: 20px 0 20px 1.25em;
    padding: 0;
    font-size: 14px;
    line-height: 1.42;
}

.ll-event-meta li {
    margin: 0 0 10px;
    padding-left: 3px;
}

.ll-event-date,
.ll-event-time,
.ll-event-venue {
    display: block;
}

.ll-event-meta-label {
    font-weight: 700;
}

.ll-event-card-footer {
    margin-top: auto;
}

.ll-event-fee {
    margin: 0 0 14px;
    padding: 12px 14px;
    border-left: 4px solid var(--ll-events-button);
    background: rgba(255, 255, 255, .72);
    box-shadow: inset 0 0 0 1px rgba(17, 162, 215, .14);
    font-size: 14px;
    line-height: 1.35;
}

.ll-event-fee-label {
    display: block;
    margin-bottom: 3px;
    color: var(--ll-events-title);
    font-size: 11px;
    line-height: 1.2;
    font-weight: 700;
    letter-spacing: .08em;
    text-transform: uppercase;
}

.ll-event-fee-value {
    display: block;
    color: #10224f;
    font-size: 18px;
    line-height: 1.2;
    font-weight: 700;
}

.ll-event-button {
    display: block;
    width: 100%;
    margin-top: 0;
    padding: 13px 14px;
    border: 0;
    background: var(--ll-events-button);
    color: #fff !important;
    text-align: center;
    text-decoration: none !important;
    text-transform: uppercase;
    font-size: 14px;
    line-height: 1.2;
    font-weight: 700;
    transition: filter .2s ease, transform .2s ease;
}

.ll-event-button-no-link {
    cursor: default;
}

.ll-event-button:hover,
.ll-event-button:focus {
    color: #fff !important;
    filter: brightness(.93);
}

.ll-event-button:focus-visible,
.ll-carousel-nav:focus-visible,
.ll-carousel-dot:focus-visible,
.ll-events-pagination a:focus-visible {
    outline: 3px solid rgba(17, 162, 215, .45);
    outline-offset: 2px;
}

/* Grid pagination */
.ll-events-pagination {
    margin-top: 30px;
}

.ll-events-pagination ul.page-numbers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.ll-events-pagination .page-numbers li { margin: 0; }

.ll-events-pagination a,
.ll-events-pagination span {
    min-width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 10px;
    border: 1px solid #dfe5ea;
    background: #fff;
    color: #1f2d3d;
    text-decoration: none;
}

.ll-events-pagination .current {
    border-color: var(--ll-events-title);
    background: var(--ll-events-title);
    color: #fff;
}

/* Carousel */
.ll-events-carousel {
    position: relative;
    width: 100%;
    padding: 0 42px;
}

.ll-events-viewport {
    width: 100%;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.ll-events-viewport::-webkit-scrollbar { display: none; }

.ll-events-track {
    display: flex;
    gap: 24px;
    align-items: stretch;
}

.ll-event-slide {
    flex: 0 0 100%;
    min-width: 0;
    display: flex;
    scroll-snap-align: start;
}

.ll-visible-2 .ll-event-slide { flex-basis: calc((100% - 24px) / 2); }
.ll-visible-3 .ll-event-slide { flex-basis: calc((100% - 48px) / 3); }
.ll-visible-4 .ll-event-slide { flex-basis: calc((100% - 72px) / 4); }
.ll-visible-5 .ll-event-slide { flex-basis: calc((100% - 96px) / 5); }
.ll-visible-6 .ll-event-slide { flex-basis: calc((100% - 120px) / 6); }

.ll-carousel-nav {
    position: absolute;
    top: 50%;
    z-index: 3;
    width: 34px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0;
    padding: 0;
    border: 0;
    border-radius: 0;
    background: var(--ll-events-title);
    color: #fff;
    font-size: 24px;
    line-height: 1;
    cursor: pointer;
    transform: translateY(-50%);
}

.ll-carousel-prev { left: 0; }
.ll-carousel-next { right: 0; }
.ll-carousel-nav[disabled] { opacity: .35; cursor: default; }

.ll-carousel-dots {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
    margin-top: 18px;
}

.ll-carousel-dot {
    width: 10px;
    height: 10px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    background: #cbd4dc;
    cursor: pointer;
}

.ll-carousel-dot.is-active { background: var(--ll-events-title); }

.ll-events-empty {
    padding: 18px;
    background: #f6f7f7;
    border: 1px solid #e1e1e1;
}

@media (max-width: 1024px) {
    .ll-events-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .ll-events-carousel.ll-visible-2 .ll-event-slide,
    .ll-events-carousel.ll-visible-3 .ll-event-slide,
    .ll-events-carousel.ll-visible-4 .ll-event-slide,
    .ll-events-carousel.ll-visible-5 .ll-event-slide,
    .ll-events-carousel.ll-visible-6 .ll-event-slide {
        flex-basis: calc((100% - 24px) / 2);
    }
}

@media (max-width: 767px) {
    .ll-events-grid {
        grid-template-columns: 1fr;
        gap: 22px;
    }

    .ll-events-carousel {
        padding: 0 34px;
    }

    .ll-events-carousel .ll-event-slide {
        flex-basis: 100%;
    }

    .ll-carousel-nav {
        width: 28px;
        height: 44px;
        font-size: 20px;
    }

    .ll-event-heading {
        min-height: 96px;
        padding: 14px 15px;
    }

    .ll-event-title {
        font-size: 22px;
    }

}
