/* 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: 96px;
}

.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: 32px;
}

.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-size: 40px;
    line-height: 1.1;
    font-weight: 500;
    margin-bottom: 20px;
    letter-spacing: 0.04em;
    text-transform: uppercase;
}

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

.news-years {
    max-width: 700px;
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    font-size: 27px;
}

.news-year {
    cursor: pointer;
    transition: color 0.2s ease;
    user-select: none;
}

.news-year:hover {
    color: #FFFFFF;
}

.news-year--active {
    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: 220px 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: 27px;
    line-height: 1.2;
    color: #C8CCD2;
}

.news-item__title {
    font-size: 44px;
    line-height: 1.2;
    font-weight: 500;
    color: #F6F7F8;
    margin-bottom: 12px;
}

.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);
}

/* 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;
    }

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


    .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;
    }
}