/* NEWS */

.news {
    padding: 0;
    padding-top: 68px;
}

.news__title {
    margin: 0;
    margin-bottom: 80px;
    font-weight: 700;
    font-size: 36px;
    line-height: 47px;
    text-align: center;
}

.news__main-list {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    justify-content: center;
    gap: 40px;
    padding: 0;
}

.news__main-list--inner {
    margin-bottom: 72px;
}

.news__main-item {
    width: 100%;
    min-height: 536px;
    display: flex;
    flex-direction: column;
    border: 1px solid #eeeeee;
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
}

.news__main-item:hover {
    box-shadow: 0px 0px 30px #dedede;
}

.news__img {
    background-color: #ccc;
}

.news__img img {
    display: block;
    width: 100%;
    height: 202px;
    object-fit: cover;
    object-position: center center;
}

.news__top {
    display: flex;
    margin-bottom: 20px;
}

.news__top-action {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    font-weight: bold;
    font-size: 10px;
    line-height: 13px;
    letter-spacing: -0.015em;
    background-color: #000;
    color: var(--accent);
    position: relative;
}

.news__top-action-title {
    font-size: 10px;
    padding: 0 6px;
    margin: 0;
}

.news__top-action-star {
    width: 7px;
    height: 7px;
    background-repeat: no-repeat;
    background-image: url("../icons/star-yellow7x7.png");
}

.news__top-date {
    display: flex;
    align-items: center;
    text-align: center;
    padding: 7px 5px;
    font-size: 10px;
    line-height: 13px;
    background-color: var(--accent);
}

.news__content {
    padding: 20px 54px 24px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.news__content-title {
    margin: 0;
    margin-bottom: 20px;
    font-style: normal;
    font-weight: bold;
    font-size: 18px;
    line-height: 23px;
    letter-spacing: -0.015em;
}

.news__content-text {
    margin: 0;
    margin-bottom: 20px;
    font-weight: normal;
    font-size: 14px;
    line-height: 157%;
    letter-spacing: -0.015em;
    color: #121212;
}

.news__content-about {
    display: flex;
    justify-content: center;
    align-items: center;
    max-width: 160px;
    width: 100%;
    height: 48px;
    font-weight: 700;
    font-size: 14px;
    background-color: transparent;
    border: 2px solid var(--accent);
    border-radius: 57px;
    transition: all 0.4s ease;
}

.news__content-about::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
}

.news__content-about span {
    margin-right: 5px;
}
.news__content-about .arrow {
    width: 16px;
    height: 16px;
    background-image: url("../icons/arrow_right.svg");
    background-repeat: no-repeat;
    background-position: center;
}

.news__content-about:hover {
    color: var(--main-dark);
    background-color: var(--accent);
}

/* PAGINATION */

.pagination {
    padding-top: 80px;
}

.pagination__wrapper {
    max-width: 1190px;
    padding: 0 15px;
    margin: 0 auto;
}

.pagination__page-list {
    display: flex;
    justify-content: center;
}

.pagination__page {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #ccc;
    border-radius: 50%;
    color: #8f8f8f;
    cursor: pointer;
    transition: all 0.4s ease;
}

.pagination__page a {
    padding: 18px;
}

.pagination__page:not(:last-child) {
    margin-right: 16px;
}

.pagination__page--active,
.pagination__page:hover {
    border: 1px solid var(--accent);
    color: #000;
    background-color: var(--accent);
}

.pagination__page:hover {
    border: 1px solid #ccc;
}

@media screen and (max-width: 1100px) {
    .news__content {
        padding: 14px;
    }
}
@media screen and (min-width: 550px) and (max-width: 767px) {
    .news__main-list {
        grid-template-columns: repeat(auto-fill, minmax(300px, 400px));
    }
}
@media screen and (max-width: 767px) {
    .news {
        padding-top: 64px;
    }
    .news__title {
        padding-top: 32px;
        margin-bottom: 40px;
    }
    .news__content {
        padding: 16px;
    }

    .news__content-title {
        height: fit-content;
    }

    .news__content-text {
        overflow: hidden;
    }
    .pagination__page:not(:last-child) {
        margin-right: 5px;
    }

    .news-item-img img {
        height: 100%;
    }
}

@media screen and (max-width: 550px) {
    .news__content-about {
        max-width: none;
    }
}

@media screen and (max-width: 380px) {
    .pagination__page {
        width: 35px;
        height: 35px;
    }
}
