.page-news-detail {
    padding-bottom: 40px;
}

.page-news-list .section {
    padding-bottom: 42px;
}

.news-list-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
    margin-top: 16px;
    margin-bottom: 22px;
    padding: 0 2px;
}

.news-list-toolbar .page-search-form {
    margin-left: auto;
    width: min(100%, 410px);
    gap: 6px;
    padding: 4px;
    box-shadow: 0 8px 18px rgba(32, 64, 101, 0.07);
}

.news-list-toolbar .page-search-form input {
    height: 38px;
    padding: 0 12px;
    font-size: 14px;
}

.news-results__head {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0;
    padding: 0;
}

.news-results__head h2 {
    position: relative;
    margin: 0;
    padding-left: 12px;
    color: var(--color-text);
    font-size: 20px;
    line-height: 1.35;
    font-weight: 800;
}

.news-results__head h2::before {
    position: absolute;
    top: 2px;
    bottom: 2px;
    left: 0;
    width: 3px;
    border-radius: 3px;
    background: var(--color-primary);
    content: "";
}

.news-search-button {
    gap: 7px;
    min-height: 38px;
    padding: 0 16px;
    border: 1px solid rgba(47, 111, 174, 0.18);
    background: linear-gradient(135deg, #72b8e8 0%, #2f6fae 100%);
    box-shadow: 0 6px 14px rgba(47, 111, 174, 0.18);
    font-size: 14px;
    transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.news-search-button:hover,
.news-search-button:focus-visible {
    box-shadow: 0 9px 18px rgba(47, 111, 174, 0.24);
    filter: brightness(1.04);
    transform: translateY(-1px);
}

.news-search-button svg {
    width: 16px;
    height: 16px;
    fill: none;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 1.9;
}

.news-list-layout {
    display: grid;
    grid-template-columns: minmax(0, 1.15fr) minmax(360px, 0.95fr);
    gap: 22px;
    align-items: start;
    min-width: 0;
}

.news-feature {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 260px;
    gap: 24px;
    align-items: center;
    align-self: stretch;
    grid-row: span 2;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 26px;
    border: 1px solid rgba(217, 231, 243, 0.92);
    border-radius: 22px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.96) 0, rgba(255, 255, 255, 0) 32%),
        linear-gradient(180deg, rgba(232, 243, 255, 0.92) 0%, rgba(255, 255, 255, 0.98) 62%);
    box-shadow: 0 16px 30px rgba(32, 64, 101, 0.08);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.news-feature:hover,
.news-feature:focus-visible {
    border-color: rgba(169, 199, 229, 0.96);
    box-shadow: 0 20px 34px rgba(32, 64, 101, 0.11);
    transform: translateY(-2px);
}

.news-feature__body,
.news-stream__content {
    min-width: 0;
}

.news-feature__body {
    display: grid;
    gap: 14px;
}

.news-feature__meta,
.news-stream__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    color: var(--color-text-muted);
    font-size: 13px;
}

.news-feature__meta span,
.news-stream__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 32px;
    padding: 0 12px;
    border: 1px solid rgba(217, 231, 243, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.86);
}

.news-feature__body h3 {
    margin: 0;
    color: var(--color-text);
    font-size: clamp(26px, 3vw, 38px);
    line-height: 1.2;
}

.news-feature__body p,
.news-stream__content p {
    margin: 0;
    color: var(--color-text-muted);
    line-height: 1.78;
}

.news-feature__body p {
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 4;
    overflow: hidden;
    font-size: 16px;
}

.news-feature__cta {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 800;
}

.news-feature__cta::after {
    content: ">";
    font-size: 16px;
}

.news-feature__media {
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border: 1px solid rgba(217, 231, 243, 0.92);
    border-radius: 18px;
    background: #ffffff;
}

.news-feature__media img,
.news-stream__thumb img,
.news-image-fallback {
    width: 100%;
    height: 100%;
}

.news-feature__media img,
.news-stream__thumb img {
    object-fit: cover;
}

.news-image-fallback {
    display: grid;
    place-items: center;
    background: linear-gradient(135deg, rgba(223, 237, 255, 0.92), rgba(247, 251, 255, 0.98));
    color: var(--color-primary);
    font-size: 24px;
    font-weight: 800;
    letter-spacing: 0.18em;
}

.news-image-fallback.is-hidden {
    display: none;
}

.news-stream {
    display: contents;
    min-width: 0;
}

.news-stream__item {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 160px;
    gap: 18px;
    height: 236px;
    width: 100%;
    min-width: 0;
    box-sizing: border-box;
    padding: 18px;
    border: 1px solid rgba(217, 231, 243, 0.92);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.92);
    box-shadow: 0 10px 20px rgba(32, 64, 101, 0.05);
    transition: transform 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease;
}

.news-stream__item:hover,
.news-stream__item:focus-visible {
    border-color: rgba(169, 199, 229, 0.96);
    box-shadow: 0 16px 28px rgba(32, 64, 101, 0.08);
    transform: translateY(-2px);
}

.news-stream__content {
    display: grid;
    align-content: center;
    gap: 10px;
}

.news-stream__content h3 {
    display: -webkit-box;
    margin: 0;
    overflow: hidden;
    color: var(--color-text);
    font-size: 22px;
    line-height: 1.3;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-stream__content p {
    display: -webkit-box;
    overflow: hidden;
    font-size: 15px;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-stream__thumb {
    align-self: center;
    width: 100%;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    border-radius: 16px;
    background: #ffffff;
}

.news-list-layout--single {
    grid-template-columns: minmax(0, 1fr);
}

.news-list-layout--single .news-feature {
    grid-row: auto;
}

@media (max-width: 1100px) {
    .news-list-layout {
        grid-template-columns: minmax(0, 1fr);
    }

    .news-stream {
        display: grid;
        grid-column: 1 / -1;
        width: 100%;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 14px;
    }

    .news-feature {
        grid-row: auto;
    }
}

@media (max-width: 680px) {
    .news-list-layout,
    .news-stream,
    .news-feature,
    .news-stream__item {
        width: 100%;
        max-width: 100%;
        min-width: 0;
    }

    .news-list-layout {
        gap: 14px;
    }

    .news-list-toolbar {
        display: flex;
        justify-content: flex-start;
        gap: 0;
        margin-top: 16px;
        margin-bottom: 12px;
        padding: 0 4px;
    }

    .news-list-toolbar .page-search-form {
        display: none;
    }

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

    body.page-news-list .news-feature,
    body.page-news-list .news-stream__item {
        border: 0;
        box-shadow: none;
        background: #fff;
        width: auto;
        margin-inline: 12px;
    }

    .news-feature,
    .news-stream__item {
        grid-template-columns: 1fr;
        gap: 14px;
        padding: 16px;
        height: auto;
    }

    .news-feature__media,
    .news-stream__thumb {
        order: -1;
        align-self: stretch;
        aspect-ratio: 16 / 9;
        min-height: 0;
        border-radius: 16px;
    }

    .news-feature__body,
    .news-stream__content {
        align-content: start;
        gap: 6px;
    }

    .news-feature__body h3,
    .news-stream__content h3 {
        display: -webkit-box;
        overflow: hidden;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 2;
        min-height: 1.35em;
        font-size: 18px;
        line-height: 1.35;
    }

    .news-feature__body p,
    .news-stream__content p {
        -webkit-line-clamp: 2;
        min-height: 3.2em;
        font-size: 14px;
        line-height: 1.6;
    }

    .news-feature__cta {
        display: none;
    }

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

.news-detail-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
}

.news-article {
    padding: 34px;
    border: 1px solid rgba(217, 231, 243, 0.92);
    border-radius: 24px;
    background:
        radial-gradient(circle at top left, rgba(255, 255, 255, 0.98) 0, rgba(255, 255, 255, 0) 28%),
        linear-gradient(180deg, rgba(246, 251, 255, 0.96) 0%, rgba(255, 255, 255, 0.98) 38%, rgba(248, 251, 254, 0.98) 100%);
    box-shadow: 0 18px 34px rgba(32, 64, 101, 0.08);
}

.news-article__head h1 {
    margin: 18px 0;
    font-size: clamp(30px, 4vw, 46px);
    line-height: 1.16;
    letter-spacing: -0.02em;
}

.news-article__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 12px;
    color: var(--color-text-muted);
    font-size: 14px;
}

.news-article__meta span {
    display: inline-flex;
    align-items: center;
    min-height: 36px;
    padding: 0 14px;
    border: 1px solid rgba(217, 231, 243, 0.92);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.82);
}

.news-article__source {
    margin-left: auto;
    color: var(--color-primary);
    font-size: 14px;
    font-weight: 700;
}

.news-article__source:hover,
.news-article__source:focus-visible {
    color: var(--color-primary-hover);
    text-decoration: underline;
}

.news-article__cover {
    margin: 26px 0 30px;
    overflow: hidden;
    border-radius: 22px;
    border: 1px solid rgba(217, 231, 243, 0.92);
    background: #fff;
}

.news-article__cover img {
    width: 100%;
    max-height: 520px;
    object-fit: cover;
}

.news-article__content {
    color: var(--color-text);
    font-size: 17px;
    line-height: 1.95;
}

.news-article__content p:first-child {
    margin-top: 0;
}

.news-article__content img {
    max-width: 100%;
    height: auto;
    border-radius: 18px;
}

@media (max-width: 720px) {
    .news-article {
        padding: 22px 18px;
        border-radius: 20px;
    }

    .news-article__cover {
        margin: 20px 0 24px;
        border-radius: 18px;
    }

    .news-article__content {
        font-size: 16px;
        line-height: 1.82;
    }
}
