.events-title-section {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 48px;
    padding-top: 80px;
    margin-top: 160px;
}

.events-title-container {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 16px;
    flex-direction: column;
}

.events-main-title {
    color: var(--gold-crayola);
    font-family: Forum;
    font-size: 64px;
    font-style: normal;
    font-weight: 400;
    line-height: 56px;
    text-align: center;
    /* 87.5% */
}

.events-title-description-text {
    color: var(--grey-80);
    text-align: center;
    font-family: var(--fontFamily-dm_sans);
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    width: 560px;
}


.events-tab-container {
    display: flex;
    height: 82px;
    padding: 16px 0;
    align-items: center;
    justify-content: center;
    gap: 64px;
    background: #252525;
    width: 100%;
}

.events-tab-button {
    display: flex;
    padding: 12px 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--gray-50, #808080);
    font-family: Forum;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    /* 18px */
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transition: 0.5s;
}

.events-tab-button.active {
    display: flex;
    padding: 12px 8px;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 8px;
    color: var(--gold-crayola, #E4C590);
    font-family: Forum;
    font-size: 18px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    /* 18px */
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-bottom: solid 1px var(--grey-90)
}

.events-tab-button:is(:hover, :focus-visible, :focus-within) {
    color: var(--gray-90);
    cursor: pointer;
}

.events-tab-button.active:is(:hover, :focus-visible, :focus-within) {
    color: var(--gold-crayola);
    cursor: pointer;

}

.events-section {
    width: 100%;
    height: auto;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 64px 0 156px 0;
    background-image: url('../images/Illustrations/background-illustration.svg');
    background-position: bottom;
    background-repeat: no-repeat;
    background-size: cover;
}

.events-width-container {
    width: min(1280px, calc(100% - 48px));
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    gap: 120px;
}

.event-previous-upcoming-container {
    width: 100%;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    flex-direction: column;
    gap: 40px;
}

.events-previous-upcoming-title {
    color: var(--grey-90, #E6E6E6);
    text-shadow: 0 4px 4px rgba(0, 0, 0, 0.10);
    font-family: Forum;
    font-size: 32px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    /* 32px */
    letter-spacing: 2%;
    text-transform: uppercase;
}

.event-cards-grid-container {
    width: 100%;
    display: grid;
    grid-template-rows: auto;
    grid-template-columns: repeat(3, 1fr);
    justify-content: center;
    align-items: center;
    gap: 48px 24px;
}

.event-card {
    width: 100%;
    height: 520px;
    position: relative;
    overflow: hidden;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
    object-fit: cover;
    display: flex;
    justify-content: flex-end;
    align-items: flex-start;
    flex-direction: column;
    gap: 16px;
    padding: 24px;
    transition: 0.5s;
}

.event-card::before {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.20) 0%, #000000 100%);
    z-index: 0;
    pointer-events: none;
}

.event-card>* {
    position: relative;
    z-index: 1;
}

.event-date-container {
    display: flex;
    padding: 8px 12px;
    justify-content: center;
    align-items: center;
    gap: 8px;
    border: 1px solid #F0DFC1;
    background: rgba(26, 26, 26, 0.95);
    color: var(--grey-95, #F2F2F2);
    font-family: var(--fontFamily-dm_sans);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    /* 14px */
}

.event-name {
    color: var(--grey-95, #F2F2F2);
    font-family: Forum;
    font-size: 28px;
    font-style: normal;
    font-weight: 400;
    line-height: 28px;
    /* 100% */
}

.event-price-container {
    display: flex;
    justify-content: flex-start;
    align-items: center;
    gap: 8px;
}

.event-price-text {
    color: var(--grey-95, #F2F2F2);
    font-family: Forum;
    font-size: 20px;
    font-style: normal;
    font-weight: 400;
    line-height: 20px;
    /* 100% */
}

.event-price-text-person {
    color: var(--grey-95, #F2F2F2);
    font-family: Forum;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    /* 16px */
}

.event-reservation-button {
    margin-top: 24px;
    width: 100%;
    display: flex;
    height: 44px;
    padding: 14px 24px;
    justify-content: center;
    align-items: center;
    gap: 10px;
    align-self: stretch;
    background: var(--gold-crayola, #E4C590);
    color: var(--grey-05, #0D0D0D);
    font-family: var(--fontFamily-dm_sans);
    font-size: 14px;
    font-style: normal;
    font-weight: 400;
    line-height: 100%;
    /* 14px */
    letter-spacing: 1px;
    text-transform: uppercase;
    transition: 0.5s;
}

.event-card:is(:hover, :focus-visible, :focus-within) {
    scale: 1.05;
}

.event-card:is(:hover, :focus-visible, :focus-within) .event-reservation-button {
    border: 1px solid #F0DFC1;
    background: rgba(26, 26, 26, 0.95);
    color: var(--grey-95, #F2F2F2);
}

@media (max-width: 767px) {
    .events-title-section {
        gap: 40px;
        padding-top: 48px;
        margin-top: 113px;
    }

    .events-title-container {
        padding: 0 32px;
    }

    .events-main-title {
        max-width: 280px;
        font-size: 32px;
        line-height: 36px;
    }

    .events-title-description-text {
        width: 100%;
        max-width: 320px;
        font-size: 14px;
        line-height: 22px;
    }

    .events-tab-container {
        height: 66px;
        padding: 12px 16px;
        gap: 24px;
        justify-content: flex-start;
        overflow-x: auto;
        scrollbar-width: none;
    }

    .events-tab-container::-webkit-scrollbar {
        display: none;
    }

    .events-tab-button,
    .events-tab-button.active {
        flex: 0 0 auto;
        padding: 10px 4px;
        font-size: 14px;
        letter-spacing: 0.5px;
        white-space: nowrap;
    }

    .events-section {
        padding: 56px 0 96px;
        overflow: hidden;
        background-size: auto 100%;
    }

    .events-width-container {
        width: 100%;
        gap: 80px;
    }

    .event-previous-upcoming-container {
        gap: 32px;
    }

    .events-previous-upcoming-title {
        padding: 0 16px;
        font-size: 24px;
        line-height: 28px;
        letter-spacing: 0;
    }

    .event-cards-grid-container {
        width: 100%;
        display: flex;
        justify-content: flex-start;
        align-items: stretch;
        gap: 16px;
        overflow-x: auto;
        padding: 0 16px 12px;
        scroll-padding-inline: 16px;
        scroll-snap-type: x mandatory;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
    }

    .event-cards-grid-container::-webkit-scrollbar {
        display: none;
    }

    .event-card {
        flex: 0 0 280px;
        width: 280px;
        height: 350px;
        padding: 16px;
        gap: 10px;
        scroll-snap-align: start;
    }

    .event-date-container {
        padding: 7px 10px;
        font-size: 12px;
    }

    .event-name {
        font-size: 22px;
        line-height: 24px;
    }

    .event-price-container {
        gap: 6px;
    }

    .event-price-text {
        font-size: 18px;
        line-height: 18px;
    }

    .event-price-text-person {
        font-size: 14px;
    }

    .event-reservation-button {
        height: 44px;
        margin-top: 10px;
        padding: 14px 18px;
        font-size: 12px;
        font-weight: 700;
    }

    .event-card:is(:hover, :focus-visible, :focus-within) {
        scale: 1;
    }
}
