.global-events {
    --global-events-accent: #d95782;
    --global-events-deep: #991b45;
    position: relative;
    overflow: hidden;
    padding: clamp(70px, 8vw, 112px) 0 clamp(46px, 4.5vw, 68px);
    background: var(--secondary);
}

.global-events__inner {
    position: relative;
    z-index: 1;
}

.global-events__header {
    display: flex;
    align-items: center;
    flex-direction: column;
    margin-bottom: clamp(28px, 4vw, 46px);
}

.global-events__copy {
    display: flex;
    width: 100%;
    max-width: none;
    align-items: center;
    flex-direction: column;
    text-align: center;
}

.global-events__title {
    margin: 0;
}

.global-events__controls {
    position: absolute;
    z-index: 5;
    inset: 0;
    pointer-events: none;
}

.global-events__carousel {
    position: relative;
    margin-inline: -60px;
    padding-inline: 60px;
}

.global-events__arrow {
    position: absolute;
    top: 50%;
    display: grid;
    width: 50px;
    height: 50px;
    place-items: center;
    padding: 0;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 50%;
    color: #fff;
    background: rgba(255, 255, 255, 0.055);
    cursor: pointer;
    pointer-events: auto;
    transform: translateY(-50%);
    transition: transform 180ms ease, border-color 180ms ease, background-color 180ms ease,
        opacity 180ms ease;
}

.global-events__arrow:first-child {
    left: 0;
}

.global-events__arrow:last-child {
    right: 0;
}

.global-events__arrow:hover:not(:disabled) {
    border-color: var(--global-events-accent);
    background: var(--global-events-deep);
    transform: translateY(-50%) scale(1.06);
}

.global-events__arrow:disabled {
    opacity: 0.3;
    cursor: default;
}

.global-events__arrow:focus-visible,
.global-event-card__link:focus-visible,
.global-events__track:focus-visible {
    outline: 3px solid rgba(217, 87, 130, 0.72);
    outline-offset: 3px;
}

.global-events__track {
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc((100% - 36px) / 3);
    gap: 18px;
    margin-top: -8px;
    padding: 8px 1px 4px;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    scroll-behavior: smooth;
    scroll-snap-type: inline mandatory;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.global-events__track::-webkit-scrollbar {
    display: none;
}

.global-event-card {
    position: relative;
    display: flex;
    min-width: 0;
    min-height: 400px;
    flex-direction: column;
    padding: clamp(18px, 2vw, 22px);
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 24px;
    background:
        linear-gradient(145deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.018)),
        #101011;
    box-shadow: 0 24px 48px rgba(0, 0, 0, 0.26);
    scroll-snap-align: start;
    transition: transform 240ms ease, border-color 240ms ease, box-shadow 240ms ease;
}

.global-event-card:hover {
    z-index: 1;
    border-color: rgba(217, 87, 130, 0.68);
    box-shadow: 0 30px 64px rgba(0, 0, 0, 0.42), 0 0 30px rgba(153, 27, 69, 0.1);
    transform: translateY(-6px);
}

.global-event-card__topline {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    min-height: 40px;
    margin-bottom: 14px;
}

.global-event-card__status {
    display: inline-flex;
    padding: 7px 12px;
    border: 1px solid rgba(255, 255, 255, 0.13);
    border-radius: 999px;
    color: rgba(255, 255, 255, 0.66);
    font-size: 0.66rem;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
}

.global-event-card[data-event-status="upcoming"] .global-event-card__status {
    border-color: var(--global-events-accent);
    color: var(--global-events-accent);
    background: transparent;
    font-weight: 900;
    -webkit-text-stroke: 0.35px currentColor;
}

.global-event-card__edition {
    color: rgba(255, 255, 255, 0.3);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.06em;
    text-align: right;
    text-transform: uppercase;
}

.global-event-card__logo-stage {
    position: relative;
    z-index: 1;
    display: grid;
    width: 100%;
    height: 118px;
    place-items: center;
    margin-bottom: 18px;
    padding: 0;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, 0.09);
    border-radius: 18px;
    background: #fff;
}

.global-event-card__logo-stage img {
    --global-event-logo-offset-y: 0px;
    display: block;
    width: 100%;
    max-width: none;
    height: 100%;
    border-radius: inherit;
    object-fit: contain;
    transform: translateY(var(--global-event-logo-offset-y));
    transition: transform 260ms ease;
}

.global-event-card__logo-stage .global-event-card__logo--offset-up {
    --global-event-logo-offset-y: -7px;
}

.global-event-card__logo-stage .global-event-card__logo--offset-up-more {
    --global-event-logo-offset-y: -13px;
}

.global-event-card__logo-stage img.global-event-card__logo--zoom-out {
    width: 94%;
    height: 94%;
}

.global-event-card__logo-stage img.global-event-card__logo--centered-zoom {
    --global-event-logo-offset-y: -3px;
}

.global-event-card:hover .global-event-card__logo-stage img {
    transform: translateY(var(--global-event-logo-offset-y)) scale(1.045);
}

.global-event-card h3 {
    position: relative;
    z-index: 1;
    margin: 0;
    min-height: 3.54em;
    color: #fff;
    font-size: clamp(1.08rem, 1.45vw, 1.3rem);
    font-weight: 650;
    line-height: 1.18;
}

.global-event-card__meta {
    position: relative;
    z-index: 1;
    display: grid;
    min-height: calc(2.6em + 5px);
    grid-template-rows: repeat(2, 1.3em);
    gap: 5px;
    margin: 12px 0 18px;
    color: rgba(255, 255, 255, 0.68);
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.035em;
    text-transform: uppercase;
}

.global-event-card__meta strong {
    color: var(--global-events-accent);
    font-weight: 800;
}

.global-event-card__link {
    position: relative;
    z-index: 2;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 14px;
    width: 100%;
    min-height: 44px;
    margin-top: auto;
    padding: 0 18px;
    border: 1px solid rgba(255, 255, 255, 0.16);
    border-radius: 999px;
    color: #fff;
    background: rgba(255, 255, 255, 0.07);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 0.11em;
    text-decoration: none;
    text-transform: uppercase;
    transition: color 180ms ease, border-color 180ms ease, background-color 180ms ease;
}

.global-event-card__link:hover {
    border-color: var(--global-events-accent);
    color: #fff;
    background: var(--global-events-deep);
}

.global-event-card__link svg {
    flex: 0 0 auto;
    transition: transform 180ms ease;
}

.global-event-card__link:hover svg {
    transform: translate(2px, -2px);
}

@media (max-width: 1200px) {
    .global-events__carousel {
        margin-inline: -52px;
        padding-inline: 52px;
    }

    .global-events__track {
        grid-auto-columns: calc((100% - 36px) / 3);
    }
}

@media (max-width: 900px) {
    .global-events__carousel {
        margin-inline: 0;
        padding-inline: 54px;
    }

    .global-events__track {
        grid-auto-columns: calc((100% - 18px) / 2);
    }

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

    .global-events__arrow:first-child {
        left: 2px;
    }

    .global-events__arrow:last-child {
        right: 2px;
    }
}

@media (max-width: 700px) {
    .global-events {
        padding: 24px 0 22px;
    }

    .global-events__header {
        align-items: center;
    }

    .global-events__carousel {
        margin-inline: 0;
        padding-inline: 0;
    }

    .global-events__arrow {
        width: 44px;
        height: 44px;
    }

    .global-events__arrow:first-child {
        left: 8px;
    }

    .global-events__arrow:last-child {
        right: 8px;
    }

    .global-events__track {
        grid-auto-columns: 100%;
    }

    .global-event-card {
        min-height: 400px;
    }
}

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

    .global-events__arrow,
    .global-event-card,
    .global-event-card__logo-stage img,
    .global-event-card__link,
    .global-event-card__link svg {
        transition: none;
    }
}
