﻿.news-page {
    padding: 0;
    background: transparent;
}

.news-shell {
    display: flex;
    flex-direction: column;
    gap: 15px;
    padding-left: 0;
    padding-right: 0;
}

.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7d879e;
    font-size: 14px;
    line-height: 1.5;
}

    .news-breadcrumb a {
        color: #51607d;
        text-decoration: none;
    }

.news-breadcrumb__current {
    color: #1f2a44;
    font-weight: 600;
}

.news-masthead {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
    padding-bottom: 0;
    border-bottom: none;
}

.news-masthead__copy h1 {
    margin: 8px 0 12px;
    color: #14213d;
    font-size: 25px;
    line-height: 1.04;
    font-weight: 800;
}

.news-masthead__copy p {
    max-width: 720px;
    margin: 0;
    color: #5d677f;
    font-size: 17px;
    line-height: 1.75;
    display: none;
}

.news-masthead__eyebrow {
    color: #ee4d85;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.14em;
    text-transform: uppercase;
}

.news-masthead__all-link {
    color: #14213d;
    font-size: 16px;
    font-weight: 700;
    text-decoration: none;
    white-space: nowrap;
    display: none;
}

    .news-masthead__all-link:hover,
    .news-breadcrumb a:hover,
    .news-kicker:hover,
    .news-accordion__link:hover,
    .news-accordion__child:hover,
    .news-mini-card:hover .news-mini-card__title {
        color: #ee4d85;
    }

.news-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 40px;
    align-items: start;
}

.news-main,
.news-detail-article {
    min-width: 0;
}

.news-main {
    display: flex;
    flex-direction: column;
    gap: 36px;
}

.news-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
    position: sticky;
    top: 98px;
}

.news-sidebar-panel {
    background: transparent;
}

.news-sidebar-panel--boxed {
    overflow: hidden;
    border: 1px solid #ede8f5;
    border-radius: 6px;
    background: #ffffff;
    box-shadow: 0 18px 42px rgba(38, 53, 93, 0.06);
}

    .news-sidebar-panel--boxed .news-panel-title:not(.news-panel-title--boxed) {
        padding: 16px 18px 0;
        margin-bottom: 12px;
    }

.news-panel-title {
    margin: 0 0 12px;
    color: #14213d;
    font-size: 18px;
    font-weight: 800;
}

.news-panel-title--boxed {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 0;
    padding: 10px 18px;
    background: linear-gradient(135deg, #2d63ea 0%, #5a7ff0 100%);
    color: #fff;
    font-size: 17px;
    letter-spacing: 0.01em;
}

    .news-panel-title--boxed i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 32px;
        height: 32px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.18);
        font-size: 14px;
    }

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

.news-accordion__item {
    border: 0 !important;
    border-bottom: 1px solid #ece8f3 !important;
    border-radius: 0 !important;
    overflow: hidden;
    background: #fff;
    padding: 0;
}

    .news-accordion__item:last-child {
        border-bottom: 0 !important;
    }

.news-accordion__heading-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 54px;
    align-items: stretch;
}

.news-accordion__link {
    display: flex;
    align-items: center;
    min-height: 45px;
    padding: 0 18px;
    color: #1f2a44;
    font-size: 15px;
    font-weight: 600;
    text-decoration: none;
    background: #fff;
    transition: color 0.2s ease, background-color 0.2s ease;
}

    .news-accordion__link.is-active {
        color: #2d63ea;
        background: linear-gradient(90deg, rgba(45, 99, 234, 0.08) 0%, rgba(45, 99, 234, 0.02) 100%);
    }

.news-accordion__toggle {
    border: 0;
    border-left: 1px solid #ece8f3;
    background: #fbfaff;
    box-shadow: none;
    border-radius: 0;
    padding: 0;
    transition: background-color 0.2s ease;
}

    .news-accordion__toggle:focus {
        box-shadow: none;
    }

    .news-accordion__toggle:hover {
        background: #f2f5ff;
    }

    .news-accordion__toggle:not(.collapsed) {
        background: linear-gradient(180deg, #eef3ff 0%, #e4ecff 100%);
    }

    .news-accordion__toggle::after {
        margin: 0 auto;
        width: 12px;
        height: 12px;
        background-size: 12px;
    }

.news-accordion__body {
    display: flex;
    flex-direction: column;
    gap: 0;
    padding: 4px 16px 12px;
    background: linear-gradient(180deg, #ffffff 0%, #fcfdff 100%);
}

.news-accordion__child {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 0 8px 0 14px;
    border-radius: 0;
    border-bottom: 1px solid #edf1fb;
    background: transparent;
    color: #586178;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none;
    transition: color 0.2s ease, padding-left 0.2s ease;
}

    .news-accordion__child:hover {
        padding-left: 18px;
    }

    .news-accordion__child.is-active {
        background: transparent;
        color: #2d63ea;
        font-weight: 600;
    }

    .news-accordion__child:last-child {
        border-bottom: 0;
    }

.news-mini-list {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 4px 0 0;
}

.news-sidebar-panel--boxed .news-mini-list {
    padding: 0 14px 14px;
}

.news-mini-card {
    display: grid;
    grid-template-columns: 84px minmax(0, 1fr);
    gap: 12px;
    align-items: start;
    padding: 10px 0 0 0;
    border: none;
    border-radius: 6px;
    text-decoration: none;
    background: transparent;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

    .news-mini-card:hover {
        border-color: #d8def3;
        /* box-shadow: 0 10px 24px rgba(33, 44, 80, 0.06); */
        transform: translateY(-1px);
    }

.news-mini-card__title {
    color: #172033;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.4;
}

.news-mini-card__thumb {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    aspect-ratio: 1 / 1;
    background: #eef2fb;
}

    .news-mini-card__thumb img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

.news-mini-card__content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.news-mini-card__meta,
.news-mini-list__empty {
    color: #7d879e;
    font-size: 13px;
    line-height: 1.55;
    display: none;
}

.news-mini-list__empty {
    padding: 0 14px 14px;
}

.news-card-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 36px 28px;
}

.news-story-card {
    display: flex;
    flex-direction: column;
}

.news-story-card__media,
.news-detail-article__cover {
    display: block;
    overflow: hidden;
    border-radius: 6px;
    background: #f3f1ef;
    aspect-ratio: 1.08 / 0.82;
}

    .news-story-card__media img,
    .news-detail-article__cover img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
        transition: transform 0.35s ease;
    }

.news-story-card:hover .news-story-card__media img {
    transform: scale(1.035);
}

.news-story-card__body {
    padding-top: 18px;
}

.news-story-card__topline {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 16px;
}

.news-story-card__views {
    flex-shrink: 0;
    color: #7d879e;
    font-size: 13px;
    font-weight: 500;
    line-height: 1.5;
    white-space: nowrap;
}

.news-kicker {
    display: inline-flex;
    align-items: center;
    color: #ee4d85;
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    text-decoration: none;
}

.news-story-card__body h2,
.news-detail-article__head h1 {
    margin: 12px 0 10px;
    color: #121a2f;
    line-height: 1.16;
    font-weight: 800;
}

.news-story-card__body h2 {
    font-size: 18px;
}

.news-detail-article__head h1 {
    line-height: 38px;
    font-size: 35px;
    font-weight: 500;
}

.news-story-card__body h2 a {
    color: inherit;
    text-decoration: none;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-story-card__body p,
.news-detail-article__summary {
    margin: 0;
    color: #39445d;
    font-size: 16px;
    line-height: 1.72;
}

.news-story-card__body p {
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.news-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
    margin-top: 16px;
    color: #7d879e;
    font-size: 14px;
    font-weight: 500;
}

.news-empty-state {
    padding: 56px 28px;
    border: 1px solid #eadfd8;
    border-radius: 24px;
    background: #fff;
    text-align: center;
}

    .news-empty-state h3 {
        margin: 0 0 10px;
        color: #14213d;
        font-size: 26px;
        font-weight: 800;
    }

    .news-empty-state p {
        margin: 0;
        color: #65708a;
        font-size: 16px;
        line-height: 1.65;
    }

.news-breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #7d879e;
    font-size: 14px;
}

    .news-breadcrumb a {
        color: #51607d;
        text-decoration: none;
    }

.news-detail-article {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

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

.news-detail-article__cover {
    max-height: 520px;
}

.news-toc {
    display: flex;
    flex-direction: column;
    gap: 14px;
    padding: 0;
    border: none;
    border-radius: 0;
    /* background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%); */
    /* box-shadow: 0 18px 40px rgba(33, 44, 80, 0.05); */
}

.news-toc__title {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #14213d;
    font-size: 18px;
    font-weight: 800;
}

    .news-toc__title i {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 30px;
        height: 30px;
        border-radius: 50%;
        background: rgba(45, 99, 234, 0.12);
        color: #2d63ea;
        font-size: 13px;
    }

.news-toc__list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.news-toc__link {
    display: block;
    /* padding: 10px 14px; */
    /* border-radius: 12px; */
    /* background: #f6f8fe; */
    color: #33415f;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.5;
    text-decoration: none;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

    .news-toc__link:hover {
        /* background: #edf2ff; */
        color: #2d63ea;
        transform: translateX(2px);
    }

.news-toc__link--child {
    margin-left: 18px;
    padding-left: 16px;
    font-size: 13px;
    font-weight: 500;
    /* background: #fbfcff; */
}

.news-jobs-panel {
    display: flex;
    flex-direction: column;
    gap: 18px;
    padding: 0;
    /* border: 1px solid #ece8f3; */
    /* border-radius: 20px; */
    /* background: linear-gradient(180deg, #ffffff 0%, #fafcff 100%); */
    /* box-shadow: 0 18px 40px rgba(33, 44, 80, 0.05); */
}

.news-jobs-panel__head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

    .news-jobs-panel__head h2 {
        margin: 0;
        color: #14213d;
        font-size: 24px;
        font-weight: 800;
    }

    .news-jobs-panel__head a {
        color: #2d63ea;
        font-size: 14px;
        font-weight: 700;
        text-decoration: none;
    }

.news-jobs-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
}

    .news-jobs-grid > .recent-job-item {
        margin-bottom: 0;
    }

.news-job-card-shared {
    height: 100%;
}

.news-detail-article__content {
    color: #20283d;
    font-size: 16px;
    line-height: 1.78;
}

.news-content-html h2,
.news-content-html h3,
.news-content-html h4 {
    color: #14213d;
    font-weight: 800;
}

.news-content-html a {
    color: #ee4d85;
}

@media (max-width: 1199px) {
    .news-layout {
        grid-template-columns: minmax(0, 1fr) 290px;
        gap: 30px;
    }

    .news-card-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .news-mini-card {
        grid-template-columns: 72px minmax(0, 1fr);
    }
}

@media (max-width: 991px) {
    .news-page {
        padding: 28px 0 50px;
    }

    .news-masthead {
        flex-direction: column;
        align-items: flex-start;
    }

    .news-layout {
        grid-template-columns: 1fr;
    }

    .news-sidebar {
        position: static;
        order: 2;
    }

    .news-main {
        order: 1;
    }

    .news-toc {
        padding: 16px;
    }

    .news-jobs-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 767px) {
    .news-masthead__copy h1 {
        font-size: 34px;
    }

    .news-masthead__copy p {
        font-size: 15px;
    }

    .news-card-grid {
        grid-template-columns: 1fr;
        gap: 28px;
    }

    .news-accordion__link {
        min-height: auto;
        padding: 17px;
        font-size: 16px;
    }
}
