#news-container {
    max-width: 1425px;
    margin: auto;
}

.grid-container {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 1%;
}

.post {
    position: relative;
    display: flex;
    flex-direction: column;
    padding: 20px;
    text-align: center;
    flex-wrap: wrap;
    height: 520px;
}

.post img {
    max-width: 100%;
    display: block;
    height: 335px;
    border-radius: 35px 35px 35px 35px;
    object-fit: cover;
}

.post h2 {
    text-align: left;
    font-weight: 700;
    letter-spacing: 1px;
    font-size: 1.625rem;
    margin-top: 5.5%;
    padding-left: 10px;
    display: inline-flex;
    line-height: 1.435;
    justify-content: space-between;
    transition: 1.25s;
}

.post .nextButton {
    width: 85px;
    height: 85px;
    padding: 7px;
    border-radius: 35px 0 0 0;
    display: flex;
    justify-content: center;
    align-items: center;
    float: right;
    background-color: #ecf2f6;
    position: absolute;
    bottom: 30%;
    right: 10px;
    z-index: 1;
}
.post .nextButton i {
    width: 80%;
    height: 80%;
    font-size: 1.85rem;
    background-color: white;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: 1.5s;
}

.post .nextButton i.hovered {
    color: white;
    background-color: #3f78e0;
}
.hovered {
    color: #3f78e0;
}
@media (max-width: 1400px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }
    .post h2 {
        font-size: 1.4rem;
    }

    .post .nextButton {
        width: 75px;
        height: 75px;
        bottom: 30%;
    }

    .post .nextButton i {
        font-size: 1.6rem;
    }
}

@media (max-width: 1200px) {
    .grid-container {
        grid-template-columns: repeat(2, 1fr);
    }

    .post {
        height: 520px;
    }

    .post h2 {
        font-size: 1.5rem;
    }

    .post .nextButton {
        width: 70px;
        height: 70px;
        bottom: 30%;
    }

    .post .nextButton i {
        font-size: 1.5rem;
    }
}

@media (max-width: 800px) {
    .grid-container {
        grid-template-columns: 1fr;
    }

    .post {
        height: 500px;
    }
    .post h2 {
        font-size: 1.25rem;
    }

    .post .nextButton {
        width: 65px;
        height: 65px;
        bottom: 26.5%;
    }

    .post .nextButton i {
        font-size: 1.4rem;
    }
}
