.headline-container {
    padding-top: 8rem;
    position: relative;
    background: var(--color-green);
    text-align: center;
    color: var(--color-white);
    padding-bottom: 3rem;
}
.headline-container p {
    max-width: 1000px;
    margin: 0 auto;
}
@media screen and (min-width: 1024px){
    .headline-container {
        padding-top: 10rem;
        padding-bottom: 5rem;
    }
}
@media screen and (min-width: 1440px){
    .headline-container {
        padding-top: 12rem;
        padding-bottom: 7rem;
    }
}

.events-list {
    list-style: none;
    display: grid;
    grid-template-columns: 1fr;
    column-gap: 1.4rem;
    row-gap: 1.4rem;
}
.events-list li {
    border-radius: 20px;
    background: var(--color-green-lighter);
    color: var(--color-white);
}
.events-list li.dark {
    border-radius: 20px;
    background: var(--color-green-darkest);
    color: var(--color-white);
}
.events-list li.light {
    border-radius: 20px;
    background: var(--color-green);
    color: var(--color-white);
}
.imagebox {
    display: block;
    width: 100%;
    height: 200px;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    overflow: hidden;
}
.imagebox img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    line-height: 0;
}
.textbox {
    padding: 1rem;
    display: block;
}
.textbox p:last-of-type {
    margin-bottom: 1.6rem;
    margin-top: 0.6rem;
}
.textbox .button {
    margin-top: 0.4rem;
}
.textbox a:first-of-type {
    margin-right: 0.4rem;
}
.past .textbox p:first-of-type {
    opacity: 0.6;
}
.events-list li.dark .button-sec {
    background: var(--color-green);
}
.events-list li.dark .button:hover {
    background: var(--color-green-lighter);
    color: var(--color-white);
}
li.light .button.button-sec {
    background: var(--color-green-darkest);
}
li.light .button.button-sec:hover {
    background: var(--color-green-lighter);
}

.pagination {
    display: flex;
    justify-content: space-between;
    margin: 3rem auto 0;
    max-width: 300px;
}
.pagination span {
    opacity: 0.5;
}
.pagination svg {
    width: 64px;
    height: auto;
}
.pagination a svg {
    transform: translateY(7px);
}
.pagination > *:first-child{
    transform: rotate(180deg);
}
.pagination a:hover {
    transform: translateX(5px);
}
.pagination a:first-child:hover {
    transform: translateX(-5px) rotate(180deg);
}
@media screen and (min-width: 360px) { 
    .imagebox {
        height: 250px;
    }
}
@media screen and (min-width: 900px) { 
    .imagebox {
        height: 310px;
    }
    .pagination svg {
        width: 80px;
    }
}
@media screen and (min-width: 1024px){
    .events-list {
        grid-template-columns: 1fr 1fr;
    }
}
@media screen and (min-width: 1200px){
    .textbox {
        padding: 1.6rem;
    }
}
@media screen and (min-width: 1920px) { 
    .imagebox {
        height: 340px;
    }
}
