:root {
    --news-ink: #101828;
    --news-muted: #7783a4;
    --news-line: #e6eaf1;
    --news-accent: #2563eb;
    --news-blue: #1473e6;
    --news-surface: #ffffff;
    --news-radius: 10px;
}

.news-page {
    min-height: 70vh;
    background: #fff;
    color: var(--news-ink);
    padding: 20px 0 56px;
}

.news-container {
    width: min(100% - 32px, 1356px);
    margin-inline: auto;
}

.news-breadcrumb {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 9px;
    min-height: 32px;
    margin-bottom: 14px;
    color: #a2abc2;
    font-size: 13px;
}

.news-breadcrumb a {
    color: #66759e;
    text-decoration: none;
}

.news-breadcrumb a:hover {
    color: var(--news-blue);
}

.news-page__header {
    display: grid;
    gap: 16px;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--news-line);
}

.news-page__header h1,
.news-article__header h1 {
    margin: 0;
    color: #080b12;
    font-size: clamp(1.6rem, 5vw, 2rem);
    font-weight: 800;
    line-height: 1.2;
    text-transform: uppercase;
}

.news-search {
    position: relative;
    display: flex;
    align-items: center;
}

.news-search svg {
    position: absolute;
    left: 14px;
    width: 18px;
    height: 18px;
    fill: none;
    stroke: #9da9c3;
    stroke-linecap: round;
    stroke-width: 1.8;
    pointer-events: none;
}

.news-search input[type="search"] {
    width: 100%;
    min-height: 46px;
    padding: 10px 14px 10px 42px;
    border: 1px solid #dbe2ec;
    border-radius: 7px;
    background: #fff;
    color: var(--news-ink);
    font: inherit;
    outline: none;
    transition: border-color .2s ease, box-shadow .2s ease;
}

.news-search input[type="search"]:focus {
    border-color: #6aa8ef;
    box-shadow: 0 0 0 3px rgba(20, 115, 230, .12);
}

.news-layout {
    display: grid;
    gap: 24px;
}

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

.news-card {
    min-width: 0;
    overflow: hidden;
    border: 1px solid var(--news-line);
    border-radius: var(--news-radius);
    background: var(--news-surface);
    box-shadow: 0 7px 22px rgba(19, 38, 68, .035);
    transition: transform .22s ease, box-shadow .22s ease, border-color .22s ease;
}

.news-card:hover {
    transform: translateY(-3px);
    border-color: #d5dce8;
    box-shadow: 0 14px 32px rgba(19, 38, 68, .09);
}

.news-card__media {
    position: relative;
    display: block;
    overflow: hidden;
    aspect-ratio: 16 / 8.8;
    background: #e8edf3;
}

.news-card__image,
.news-card__placeholder {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .4s ease;
}

.news-card__placeholder {
    background: linear-gradient(135deg, #e6ebf2, #f8fafc);
}

.news-card:hover .news-card__image {
    transform: scale(1.025);
}

.news-card__category {
    position: absolute;
    top: 10px;
    left: 10px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    max-width: calc(100% - 20px);
    min-height: 25px;
    padding: 4px 9px;
    border-radius: 999px;
    background: var(--news-accent);
    color: #fff;
    font-size: 11px;
    font-weight: 800;
    line-height: 1.1;
}

.news-card__category svg {
    width: 12px;
    height: 12px;
    flex: 0 0 auto;
    fill: currentColor;
}

.news-card__body {
    display: flex;
    min-height: 174px;
    flex-direction: column;
    padding: 12px 13px 13px;
}

.news-card__title {
    margin: 0 0 8px;
    font-size: 15px;
    font-weight: 800;
    line-height: 1.25;
}

.news-card__title a {
    display: -webkit-box;
    overflow: hidden;
    color: #080b12;
    text-decoration: none;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
}

.news-card__excerpt {
    display: -webkit-box;
    overflow: hidden;
    margin: 0;
    color: var(--news-muted);
    font-size: 13px;
    line-height: 1.5;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

.news-card__footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: auto;
    padding-top: 12px;
    color: #8996b3;
    font-size: 11px;
}

.news-card__more {
    flex: 0 0 auto;
    color: #080b12;
    font-size: 12px;
    font-weight: 700;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.news-sidebar {
    display: grid;
    align-content: start;
    gap: 18px;
}

.news-sidebar__panel {
    overflow: hidden;
    border: 1px solid #dde3eb;
    border-radius: 12px;
    background: #fff;
    padding: 14px;
}

.news-sidebar__heading {
    margin: 0 0 9px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--news-line);
    color: #162038;
    font-size: 17px;
    font-weight: 800;
}

.news-sidebar__categories {
    display: grid;
    gap: 2px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.news-sidebar__categories a {
    display: flex;
    min-height: 44px;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    color: #344363;
    font-size: 13px;
    text-decoration: none;
}

.news-sidebar__categories a:hover {
    color: var(--news-blue);
}

.news-sidebar__categories strong {
    color: #060910;
    font-size: 11px;
}

.news-sidebar__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
}

.news-sidebar__tags a {
    display: inline-flex;
    min-height: 30px;
    align-items: center;
    padding: 5px 10px;
    border: 1px solid #dce2ec;
    border-radius: 999px;
    color: #26334e;
    font-size: 11px;
    line-height: 1.2;
    text-decoration: none;
    transition: border-color .2s ease, color .2s ease, background .2s ease;
}

.news-sidebar__tags a:hover {
    border-color: #a8c9ef;
    background: #f4f8fd;
    color: #075ebd;
}

.news-pagination {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: center;
    gap: 6px;
    margin-top: 28px;
}

.news-pagination .page-numbers {
    display: inline-flex;
    min-width: 40px;
    min-height: 44px;
    align-items: center;
    justify-content: center;
    border: 1px solid transparent;
    border-radius: 7px;
    color: #0c1628;
    font-size: 13px;
    font-weight: 700;
    text-decoration: none;
}

.news-pagination .page-numbers.current {
    border-color: #d9e5f3;
    background: #f5f9fe;
    color: var(--news-blue);
}

.news-pagination a.page-numbers:hover {
    border-color: #d9e5f3;
}

.news-empty {
    padding: 32px;
    border: 1px dashed #ccd5e2;
    border-radius: 12px;
    color: var(--news-muted);
    text-align: center;
}

.news-page--single {
    padding-top: 20px;
}

.news-article__header {
    margin-bottom: 20px;
    padding-bottom: 18px;
    border-bottom: 1px solid var(--news-line);
}

.news-article__header h1 {
    font-size: clamp(1.55rem, 4.7vw, 2.15rem);
}

.news-article__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    margin-top: 10px;
    color: #8996b3;
    font-size: 13px;
}

.news-article__content {
    color: #111827;
    font-size: 16px;
    line-height: 1.65;
}

.news-article__content > :first-child {
    margin-top: 0;
}

.news-article__content h2,
.news-article__content h3 {
    margin: 1.5em 0 .55em;
    color: #0a1020;
    line-height: 1.3;
}

.news-article__content p {
    margin: 0 0 1em;
}

.news-article__content img,
.news-article__content figure,
.news-article__content .wp-block-image {
    max-width: 100%;
    height: auto;
}

.news-article__content figure,
.news-article__content .wp-block-image {
    margin: 1rem 0;
}

.news-article__content img {
    display: block;
}

.news-article__content iframe {
    max-width: 100%;
}

.related-news {
    margin-top: 38px;
}

.related-news > h2 {
    margin: 0 0 16px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--news-line);
    color: #080b12;
    font-size: clamp(1.45rem, 4vw, 1.8rem);
    font-weight: 800;
}

@media (min-width: 640px) {
    .news-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 900px) {
    .news-page {
        padding-top: 24px;
        padding-bottom: 72px;
    }

    .news-container {
        width: min(100% - 48px, 1356px);
    }

    .news-page__header {
        grid-template-columns: minmax(0, 1fr) minmax(300px, 410px);
    }

    .news-layout {
        grid-template-columns: minmax(0, 1fr) 310px;
        gap: 20px;
    }

    .news-sidebar {
        position: sticky;
        top: 92px;
    }

    .news-page--single .news-layout {
        align-items: start;
    }
}

@media (min-width: 1180px) {
    .news-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

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

@media (prefers-reduced-motion: reduce) {
    .news-card,
    .news-card__image {
        transition: none;
    }
}
