.tabs {
    position: relative;
}

.tabs-nav {
    position: absolute;
    right: 0;
    top: calc((var(--wp--preset--font-size--xx-large) * 1.6) / 2);
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: flex-end;
    width: 100%;
    flex-wrap: wrap;
    gap: var(--wp--preset--spacing--60);
}

.tabs-nav button {
    transition: opacity .3s ease;
    border: 0;
    background-color: transparent;
    text-transform: uppercase;
    font-weight: 700;
    font-size: var(--wp--preset--font-size--medium);
    color: var(--wp--preset--color--foreground-1);
    cursor: pointer;
    line-height: 1;
    letter-spacing: 0;
    padding: 10px 0;
    position: relative;
    font-family: var(--wp--preset--font-family--base);
}

.tabs-nav button::before {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 3px;
    background: linear-gradient(90deg, var(--wp--preset--color--mint), var(--wp--preset--color--yellow));
    transition: opacity .3s ease;
    opacity: 0;
}

.tabs-nav button[aria-selected="true"] {
    background: linear-gradient(170deg, var(--wp--preset--color--foreground-1) 25%, rgba(189, 222, 112, 0.75) 120%);
    background-clip: text;
    -webkit-background-clip: text;
    -webkit-text-fill-color: rgba(0, 0, 0, 0);
}

.tabs-nav button[aria-selected="true"]::before {
    opacity: 1;
}

.tabs-nav button[aria-selected="false"] {
    opacity: 0.4;
}

.tab-content-wrapper:not([hidden]) {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--60);
}

.year>h2 {
    margin: 0;
    line-height: 1.6;
    font-weight: 400;
}

.year,
.events-grid {
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--30);
}

.event-tile {
    padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--60) var(--wp--preset--spacing--20) var(--wp--preset--spacing--20);
    background-color: var(--wp--preset--color--background-1);
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: var(--wp--preset--spacing--80);
    color: inherit;
    text-decoration: none;
}

.event-image{
    overflow: hidden;
}
.event-image,
.event-image-wrapper {
    min-width: 400px;
    min-height: 500px;
    border-radius: 20px;
    background-repeat: no-repeat;
    background-size: cover;
    padding: var(--wp--preset--spacing--40);
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    position: relative;
    z-index: 1;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    text-decoration: none;
}

.event-image-wrapper {
    position: absolute;
    transition: transform 1s ease;
    top: 0;
    left: 0;
}

.event-image:hover .event-image-wrapper{
    transform: scale(1.1);
}

.event-image-wrapper::before {
    content: '';
    position: absolute;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.05) 0%, rgba(0, 0, 0, 1) 100%), linear-gradient(142deg, rgba(124, 228, 158, 1) 0%, rgba(228, 219, 85, 1) 100%);
    z-index: 0;
    border-radius: 20px;
    mix-blend-mode: multiply;
    opacity: 0.8;
}

.event-image.has-background-3-background-color .event-image-wrapper::before {
    display: none !important;
}

.event-image.has-background-3-background-color span {
    color: var(--wp--preset--color--foreground-1) !important;
}

.event-image>* {
    z-index: 4;
}

.event-image span {
    color: var(--wp--preset--color--background-1);
}

.event-image hr {
    width: 70px;
    opacity: 0.5;
    border-color: var(--wp--preset--color--background-4);
    margin: var(--wp--preset--spacing--40) auto;
}

.event-date-wrapper {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.event-date-days {
    font-size: var(--wp--preset--font-size--xx-large);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -2.4px;
}

.event-date-meta {
    font-weight: 500;
    font-size: var(--wp--preset--font-size--medium);
    line-height: 1.6;
}

.event-meta-location {
    font-size: var(--wp--preset--font-size--large);
    font-weight: 700;
    text-transform: uppercase;
    line-height: 1.1;
    letter-spacing: -0.96px;
}

.event-text {
    padding: var(--wp--preset--spacing--50) 0;
    display: flex;
    flex-direction: column;
    gap: var(--wp--preset--spacing--40)
}

.event-text h3 {
    margin: 0;
}

.event-text p {
    margin: 0;
}

.btn-wrapper {
    gap: var(--wp--preset--spacing--30);
}

@media (max-width:991px) {
    .event-tile {
        padding: var(--wp--preset--spacing--20) var(--wp--preset--spacing--20);
        gap: var(--wp--preset--spacing--40);
    }

    .event-text {
        padding: var(--wp--preset--spacing--30);
    }
}

@media (max-width:850px) {
    .tabs-nav {
        top: auto;
        position: relative;
        transform: none;
        margin: 1rem 0;
    }

    .event-tile {
        flex-direction: column;
    }

    .event-image,
    .event-image-wrapper {
        min-width: auto;
        min-height: 250px;
        width: 100%;
    }
}