.elementor-element.afz-events-section-host {
    width: 100%;
    max-width: none;
    padding: 90px 30px;
    background: #f3f8fb;
}

.afz-events {
    width: 100%;
    max-width: 1240px;
    margin: 0 auto;
    font-family: "Fira Sans", sans-serif;
}

.afz-events__header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 30px;
    margin-bottom: 42px;
}

.afz-events__header h2 {
    display: flex;
    align-items: center;
    gap: 22px;
    margin: 0;
    color: #073874;
    font-family: "Fira Sans", sans-serif;
    font-size: clamp(42px, 5vw, 68px);
    font-weight: 500;
    line-height: 1.05;
}

.afz-events__header h2::before {
    width: 112px;
    height: 4px;
    background: #073874;
    content: "";
}

.afz-events__controls {
    display: flex;
    gap: 12px;
}

.afz-events__controls[hidden] {
    display: none;
}

.afz-events__arrow {
    display: inline-grid;
    width: 48px;
    height: 48px;
    padding: 0;
    place-items: center;
    border: 1px solid #073874;
    border-radius: 50%;
    background: transparent;
    color: #073874;
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
    transition: background-color 180ms ease, color 180ms ease, opacity 180ms ease;
}

.afz-events__arrow:hover:not(:disabled),
.afz-events__arrow:focus-visible:not(:disabled) {
    background: #073874;
    color: #fff;
}

.afz-events__arrow:disabled {
    opacity: 0.35;
    cursor: default;
}

.afz-events__viewport {
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
}

.afz-events__viewport::-webkit-scrollbar {
    display: none;
}

.afz-events__viewport:focus-visible {
    outline: 3px solid #12aee0;
    outline-offset: 5px;
}

.afz-events__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 90px) / 4);
    gap: 30px;
}

.afz-events__card {
    min-width: 0;
    overflow: hidden;
    scroll-snap-align: start;
    background: #fff;
    box-shadow: 0 12px 35px rgba(5, 45, 91, 0.12);
}

.afz-events__art {
    aspect-ratio: 4 / 5;
    margin: 0;
    overflow: hidden;
    background: #071c42;
}

.afz-events__art img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.afz-events__details {
    min-height: 116px;
    padding: 20px 20px 22px;
    border-top: 4px solid #12aee0;
}

.afz-events__details time {
    display: block;
    margin-bottom: 7px;
    color: #6c7785;
    font-size: 15px;
    font-weight: 400;
    line-height: 1.3;
}

.afz-events__details h3 {
    margin: 0;
    color: #073874;
    font-family: "Fira Sans", sans-serif;
    font-size: clamp(20px, 1.7vw, 25px);
    font-weight: 500;
    line-height: 1.15;
}

@media screen and (max-width: 900px) {
    .elementor-element.afz-events-section-host {
        padding: 70px 24px;
    }

    .afz-events__track {
        grid-auto-columns: calc((100% - 22px) / 2);
        gap: 22px;
    }

    .afz-events__controls {
        display: flex;
    }
}

@media screen and (max-width: 767px) {
    .elementor-element.afz-events-section-host {
        padding: 58px 20px 64px;
    }

    .afz-events__header {
        align-items: center;
        margin-bottom: 30px;
    }

    .afz-events__header h2 {
        display: block;
        font-size: 42px;
    }

    .afz-events__header h2::before {
        display: block;
        width: 76px;
        margin-bottom: 15px;
    }

    .afz-events__arrow {
        width: 42px;
        height: 42px;
    }

    .afz-events__track {
        grid-auto-columns: min(83vw, 330px);
        gap: 18px;
    }

    .afz-events__details {
        min-height: 124px;
        padding: 23px 24px 25px;
    }

    .afz-events__details time {
        font-size: 16px;
    }

    .afz-events__details h3 {
        font-size: 27px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .afz-events__viewport {
        scroll-behavior: auto;
    }
}
