/* News Page – based on Figma news group (https://www.figma.com/design/oWC36KtK0MESU3SNSxRhAR/CF?node-id=4776-2434) */

.news-page {
    color: #F6F7F8;
    font-family: 'Inter', system-ui, -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

.news-main {
    padding-bottom: 100px;
    min-height: 100vh;
}

.team-cta {
    margin: 72px auto 0;
    padding: 50px 30px;
    background: #323A48;
    border: 1px solid #272B33;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 32px;
}

.team-cta__content {
    background-color: #323A48;
}

.team-cta__title {
    font-size: 52px;
    line-height: 1.5;
    font-weight: 400;
    margin-bottom: 20px;
}

/* Header section */
.news-header {
    display: flex;
    /*max-width: 1200px;
    margin: 72px auto 0;
    padding-bottom: 44px;*/
}

.news-header__inner {
    display: flex;
    flex-direction: column;
    gap: 0;
}

.news-breadcrumbs {
    font-size: 12px;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #666A70;
}

.gold-button {
    margin-top: 20px;
    width: fit-content;
}

.gold-button button {
    width: auto;
    padding: 20px 50px;
}

.news-breadcrumbs__item {
    color: inherit;
}

.news-breadcrumbs__item[href] {
    text-decoration: none;
    transition: color 0.2s ease;
}

.news-breadcrumbs__item[href]:hover {
    color: #FFFFFF;
}

.news-breadcrumbs__item--current {
    color: #9CA0A6;
}

.news-breadcrumbs__sep {
    margin: 0 6px;
    color: #4B4F55;
}

.news-header__text {
    max-width: 1120px;
    display: flex;
    justify-content: space-between;
}

.news-header__meta {
    font-size: 12px;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: #7E8288;
    margin-bottom: 12px;
}

.news-header__title {
    font-family: var(--font-primary);
    font-weight: 500;
    font-size: 50px;
    line-height: 1.06;
    color: var(--color-white);
    margin-bottom: 40px;
    min-width: 500px;
}

.news-header__description {
    font-size: 15px;
    line-height: 1.7;
    color: #C8CCD2;
}

/* Пагинация */

.news-years .pagination {
    display: none;
}
.news-years .pagination.pagination-year {
    display: flex;
}
.pagination_news_num .pagination.pagination-year {
    display: none;
}

.news-years {
    display: flex;
    flex-wrap: wrap;
    font-size: 27px;
}
.pagination {justify-content: flex-end;}
.pagination-year, .pagination {
    display: flex;
    list-style: none;
    margin-left: 0;
    padding-left: 0;
    gap: 26px 28px;
    flex-wrap: wrap;
    justify-content: flex-start;
    margin-bottom: 40px;
}

.pagination-year li.active, .pagination li.active{
    color: #C7AB6B;
}

.pagination-year li:hover, .pagination li:hover{
    color: #C7AB6B;
}



/* News list */
.news-list {
    /*max-width: 1200px;
    margin: 0 auto;*/
}

.news-list__inner {
    border-top: 1px solid #24272D;
}

.news-item {
    display: grid;
    grid-template-columns: 300px minmax(0, 1fr);
    column-gap: 200px;
    padding: 32px 0;
    border-top: 1px solid #8D97A6;
}

.news-item:last-child {
    border-bottom: none;
}

.news-item__date {
    font-size: 23px;
    line-height: 1.2;
    color: #F6F7F8;
}

.news-item__title {
    font-size: 34px;
    line-height: 1.2;
    font-weight: 500;
    color: #F6F7F8;
    margin-bottom: 12px;
}
.news-item__title a:hover{
    text-decoration: underline;
}

.title-desc {
    display: flex;
    flex-direction: column;
}

.news-item__excerpt {
    font-size: 18px;
    line-height: 1.2;
    color: #C8CCD2;
}

.news-item--featured .news-item__title {
    font-size: 32px;
}

.news-item--with-description .news-item__excerpt {
    margin-top: 4px;
}

/* Hover state */
.news-item {
    transition: background-color 0.15s ease;
}

.news-item:hover {
    background-color: rgba(255, 255, 255, 0.02);
}


/* Single article */
.article-content p {
    margin-bottom: 20px;
}
.article-content p img{
    margin-bottom: 40px;
}
.article-tags {
    margin-top: 50px;
}
.article-meta {
    margin-bottom: 20px;
    color: var(--color-gray-dark);
}
.article-main-page {
    border-bottom: 1px solid rgba(246, 247, 248, 0.18);
    padding-bottom: 50px;
}

/* Responsive */
@media (max-width: 1024px) {
    .news-item {
        grid-template-columns: 180px minmax(0, 1fr);
    }

    .team-cta {
        margin-left: 16px;
        margin-right: 16px;
    }

    .news-list, .news-header__inner {
        margin: 0 2rem;
    }

    .news-years {
        max-width: 500px;
    } 

    .news-breadcrumbs  {
        display: none;
    }
}

@media (max-width: 768px) {
    .news-main {
        padding-bottom: 72px;
    }

    .news-header__text {
        flex-direction: column;
        gap: 24px;
    }

    .news-list, .news-header__inner {
        margin: 0;
    }

    .team-cta {
        margin-left: 16px;
        margin-right: 16px;
    }

    .news-years {
        font-size: 20px;}

    .news-header__title {
        min-width: 100%;
        max-width: 100%;
        font-size: 34px;
    }
    .news-item__date {
        font-size: 12px;
    }
    .news-item__title {
        font-size: 24px;
    }

    .article-content p img {
        margin-bottom: 20px;
        max-width: 100%;
        height: auto;
    }

    .news-header {
        margin: 48px 16px 32px;
    }

    .news-list {
        margin: 0 16px;
    }

    .news-item {
        grid-template-columns: 1fr;
        row-gap: 8px;
        padding: 24px 0;
    }

    .team-cta {
        flex-direction: column;
        align-items: flex-start;
        padding: 32px 24px;
    }

    .team-cta__title {
        font-size: 32px;
    }
}