@import url('https://fonts.cdnfonts.com/css/helvetica-neue-9');

body, html {
    margin: 0;
    padding: 0;
}

* {
    box-sizing: border-box;
}

body {
    font-family: 'Helvetica 65 Medium', sans-serif;
}

img {
    max-width: 100%;
    height: auto;
}

h2 {
    font-size: 18px;
    color: rgb(30,57,113);
    font-weight: 600;
    line-height: 22px;
    margin-bottom: 0;
}

.container {
    width: 1170px;
    margin: 0 auto;
}

.news {
    padding: 100px 0;
}
.news #cats {
    display: flex;
    gap: 30px;
    margin-bottom: 30px;
}
.news #cats button {
    flex: 1;
    flex-basis: 0;
    background: #fff;
    border-radius: 5px;
    border: 1px solid #A0AFAC;
    background-color: #A0AFAC;
    height: 54px;
    color: #fff;
    text-transform: uppercase;
    font-weight: bold;
    cursor: pointer;
    transition: all .3s ease;
}
.news #cats button.active, .news #cats button:hover {
    background-color: #003672;
    color: #fff;
}
#list-news {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 40px;
}
#list-news > div {
    margin-top: 30px;
    display: block;
    position: relative;
    padding-bottom: 100px;
}
#list-news p {
    color: rgb(51,51,51);
    line-height: 24px;
    font-size: 14px;
    /* border-top: 1px solid rgb(153,153,153);
    padding-top: 20px;
    margin-top: 20px; */
    padding: 0;
    margin: 10px 0 0;
}
#list-news img {
    border-radius: 5px;
}
#list-news .btn {
    width: 100%;
    max-width: 154px;
    height: 46px;
    display: flex;
    color: #fff;
    background-color: #003672;
    text-decoration: none;
    justify-content: center;
    align-items: center;
    border-radius: 5px;
    font-weight: 600;
    position: absolute;
    bottom: 0;
}
#list-news span {
    color: #003672;
    font-size: 14px;
    margin-bottom: 10px;
    display: block;
}
#list-news span.date {
    margin-top: 20px;
    display: flex;
    align-items: center;
    position: absolute;
    bottom: 54px;
    gap: 10px;
}
#list-news span.date:before {
    content: '';
    background: url(../img/ico-clock.svg) center center no-repeat;
    width: 16px;
    height: 16px;
    display: inline-block;
}

.pagination {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 80px;
    gap: 10px;
}
.pagination #page-numbers {
    display: flex;
    gap: 5px;
}

.pagination button {
    height: 40px;
    display: block;
    border: none;
    color: #000;
    background-color: #fff;
    border-radius: 50px;
    min-width: 50px;
    padding: 0 15px;
    cursor: pointer;
    font-weight: bold;
}
.pagination #page-numbers button:hover, .pagination #page-numbers button.active {
    background-color: #003672;
    color: #fff;
}
.pagination button#btn-next, .pagination button#btn-prev {
    border: none;
    position: relative;
}
.pagination button#btn-next:after {
    content: '';
    background: url(../img/arrow.svg);
    width: 6px;
    height: 9px;
    display: inline-block;
    margin-left: 5px;
}
.pagination button#btn-prev:before {
    content: '';
    background: url(../img/arrow.svg);
    width: 6px;
    height: 9px;
    display: inline-block;
    margin-right: 5px;
    transform: rotate(180deg);
}
.pagination button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}
.txt-decoration {
    text-decoration: none;
}

@media (max-width: 1199px) {
    .container {
        width: 100%;
        max-width: 100%;
        padding: 0 30px;
    }
    .news #cats {
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
    }
    #list-news {
        grid-template-columns: 1fr 1fr;
    }
}
@media (max-width: 767px) {
    .news #cats {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    #list-news {
        grid-template-columns: 1fr;
    }
    .pagination button#btn-next, .pagination button#btn-prev {
        display: none !important;
    }
}