/* ============= ---- Transitions ---- ================ */
a.news-img-link {
    -webkit-transition: all 0.3s ease;
    -moz-transition: all 0.3s ease;
    -ms-transition: all 0.3s ease;
    transition: all 0.3s ease;
}

/* ============= ---- Generic Styles ---- ================ */


/* ============= ---- News Results ---- ================ */
section#news-results {
    background-color: #F7F8FB;
    padding: 80px 0 150px;
    margin: 0;
}

.section-news-results header h3 {
    color: #005CA9;
}

ul.news-posts {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 60px;
    margin-top: 80px;
}

a.news-img-link {
    display: block;
    width: 100%;
}

a.news-img-link:hover {
    box-shadow: 8px 8px #d6d5d4;
    border-radius: 5px;

}

picture.news-img {
    width: 100%;
    height: auto;
    display: block;
    position: relative;
    pointer-events: none;
    overflow: hidden;
    padding-top: 60%;
    border-radius: 5px;
}

picture.news-img * {
    height: 100%;
    width: 100%;
    position: absolute;
    object-fit: cover;
    object-position: center top;
    left: 50%;
    top: 50%;
    transform: translateX(-50%) translateY(-50%);
}

.news-content {
    margin-top: 30px;
}

a.btn-newscategory {
    color: #fff;
    font-size: 12px;
    text-transform: uppercase;
    font-weight: 500;
    line-height: 12px;
    text-decoration: none;
}

.news-content header h2 a {
    display: block;
    margin-top: 20px;
    font-size: 24px;
    text-decoration: none;
}

.news-content time {
    display: block;
    margin-top: 10px;
    font-size: 14px;
}


/* ============= ---- Pagination ---- ================ */
.pagination {
    display: flex;
    justify-content: center;
    margin-top: 50px;
}

ul.page-numbers {
    display: block;
    padding: 10px 30px;
    border-radius: 10px;
    text-align: center;
}

ul.page-numbers li {
    display: inline-block;
    width: 40px;
    height: 40px;
    font-family: 'kepler-std', serif;
    font-size: 22px;
    font-weight: 500;
}

ul.page-numbers li:last-child {
    padding-right: 0;
}

span.page-numbers.current {
        width: 100%;
        height: 100%;
        display: flex;
        align-items: center;
        justify-content: center;
        outline: 0;
        margin: 0;
        border: 0;
        text-decoration: none;
        color: #000;
        cursor: pointer;
        border-radius: 8px;
        background-color: #ffffff;
        pointer-events: none;
}

a.page-numbers {
    text-decoration: none;
    font-family: 'kepler-std', serif;
    font-weight: 500;
}

a.next, a.prev {
    display: none;
}


/* ======================= -------- 7.0  Media Queries -------- ========================== */
@media (max-width: 850px) {
    ul.news-posts { grid-template-columns: 1fr 1fr; }
    picture.news-img {  height: auto; }
}

@media (max-width: 700px) {
    ul.news-posts { margin-top: 60px; }
    .news-content header h2 a { font-size: 17px; }
}

@media (max-width: 650px) {
    ul.news-posts { gap: 40px; }
}

@media (max-width: 550px) {
    ul.news-posts { grid-template-columns: 1fr; }
}

@media (max-width: 400px) {
    .pagination { justify-content: flex-start; }
}