.main-container {
    background-color: var(--color-background);
}

.events {
    padding: 4rem 0;
    width: 94%;
    max-width: 1200px;
    margin: auto;
}

.events h1 {
    font-size: 3.5rem;
    margin-left: 4%;
}

.events-container {
    display: flex;
    margin-top: 2rem;
    gap: 2rem;
    flex-wrap: wrap;
    margin-bottom: 6rem;
    justify-content: center;
}

.events-container.prev .top-events-item {
    opacity: 0.5;
}

.events-container.prev .top-events-item a {
    display: none;
}

.top-events-item {
    display: flex;
    flex-direction: column;
    background-color: #fff;
    padding: 2rem;
    gap: 2rem;
    width: 30%;
    justify-content: space-between;
}

.event-item-time {
    color: var(--color-button);
}

.event-item-time span {
    color: var(--color-green);
    font-weight: bold;
}

.top-events-date {
    display: flex;
    flex-direction: column;
    background-color: #e6f0f9;
    justify-content: center;
    padding: 0.5rem 1rem;
    color: var(--color-button);
    width: fit-content;
}

.top-events-date span {
    display: block;
    text-align: center;
}

.top-events-day {
    font-size: 2rem;
}

.top-events-month {
    font-size: 1.25rem;
    text-transform: uppercase;
}

.top-events-wrapper {
    flex: 1;
    display: flex;
    flex-direction: column;
}

.top-events-title {
    flex: 1;
    font-size: 1.75rem;
    text-decoration: none;
    color: var(--color-text);
}

h3.top-events-title {
    font-weight: normal;
    margin-bottom: 0.75rem;
}

.top-events-detail {
    font-size: 1.125rem;
    text-decoration: none;
    font-weight: bold;
}

.top-events-detail::after {
    content: "";
    position: relative;
    margin-left: 0.5rem;
    display: inline-block;
    vertical-align: middle;
    background-color: var(--color-button);
    mask-image: url("/assets/icons/arrow_outward.svg");
    mask-size: contain;
    width: 1.75rem;
    height: 1.75rem;
}

.event-item-top-part {
    display: flex;
    justify-content: space-between;
    /*align-items: center;*/
    gap: 2rem;
}

.event-item-abstract {
    color: var(--color-yellow);
    font-size: 1.5rem;
    text-transform: uppercase;
    font-weight: 500;
}

@media only screen and (max-width: 800px) {
    .top-events-item {
        width: 45%;
    }

    .events h1 {
        font-size: 2.5rem;
    }

    .top-events-title {
        font-size: 1.5rem;
    }
}

@media only screen and (max-width: 640px) {
    .top-events-item {
        width: 100%;
    }

    .events h1 {
        font-size: 2rem;
    }

    .top-events-detail {
        font-size: 1rem;
    }
}