.event-card {
    display: grid;
    margin: 50px auto;
    grid-template-columns: 140px auto 280px;
    grid-template-rows: auto;
    border-top-left-radius: 20px;
    border-bottom-left-radius: 20px;
    box-shadow: 1px 5px 6px grey;
    background-color: var(--color-green);

    min-height: 200px;
}

.event-card h2{
    margin: 0px;
}

.event-card>div:first-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.event-card>div:nth-child(2) {
    background-color: var(--color-white);
    padding: 10px 30px;
    position: relative;
    z-index: 2;

    display: flex;
    flex-direction: column;
    justify-content: center;
}

.event-card>div:nth-child(2)::after {
    content: "";
    position: absolute;
    top: 0;
    right: -40px;
    width: 80px;
    height: 100%;
    background-color: var(--color-white);
    transform: skewX(-12deg);
    z-index: 3;
}

.event-card>div:last-child {
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    overflow: hidden;
    position: relative;
    z-index: 1;
}


.event-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}

.event-card-date {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 4em;
    font-weight: bold;
    text-align: center;
    color: var(--color-white);
}

.event-card-month {
    font-family: Arial, Helvetica, sans-serif;
    font-size: 2.2em;
    text-align: center;
    color: var(--color-white);
    margin-top: -14px;
}


@media screen and (max-width: 700px) {
    .event-card {
        grid-template-columns: 90px auto 220px;
    }
}

@media screen and (max-width: 580px) {
    .event-card {
        grid-template-columns: auto 220px;
        grid-template-rows: 100px auto;
        border-top-right-radius: 20px;

    }

    .event-card>div:first-child {
        border-top-right-radius: 20px;
        grid-column: 1 / 3;
    }

    .event-card>div:nth-child(2) {
        padding: 10px 8px;
    }

    .event-card-title {
        font-size: 1.2em;
    }

    .event-card>div:nth-child(2)::after {
        width: 20px;
        right: -10px;

        transform: skewX(-4deg);
    }
}

@media screen and (max-width: 580px) {
    .event-card {
        grid-template-columns: 1fr 1fr;
    }

    .event-card>div:nth-child(2)::after {
        display: none;
    }
}