.news-section {
    width: min(1280px, calc(100% - 32px));
    margin: 0 auto;
    padding: 108px 0 56px;
}

.news-heading {
    position: relative;
    margin: 0 0 28px;
    padding-bottom: 13px;
    color: #f7ead0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(1.75rem, 3vw, 2.35rem);
    line-height: 1.1;
    text-align: center;
    letter-spacing: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, .82);
}

.news-heading::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: 0;
    width: min(440px, 78vw);
    height: 1px;
    transform: translateX(-50%);
    background: linear-gradient(90deg, transparent, rgba(222, 170, 82, .86), transparent);
}

.news-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
    align-items: stretch;
}

.news-card {
    min-width: 0;
    height: 100%;
    display: flex;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(196, 151, 81, .34);
    border-radius: 12px;
    background: linear-gradient(180deg, rgba(24, 15, 11, .96), rgba(39, 26, 17, .96));
    box-shadow: 0 16px 32px rgba(12, 8, 5, .62), inset 0 1px 0 rgba(255, 236, 190, .07);
    transition: transform .3s ease, border-color .3s ease, box-shadow .3s ease;
    will-change: transform;
}

.news-card::after {
    content: "";
    position: absolute;
    inset: 0;
    pointer-events: none;
    border-radius: inherit;
    box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .035);
    transition: box-shadow .3s ease;
}

.news-card-link {
    position: relative;
    z-index: 1;
    flex: 1;
    min-width: 0;
    display: grid;
    grid-template-rows: 196px minmax(200px, 1fr);
    height: 100%;
    color: inherit;
    text-decoration: none;
}

.news-card-media {
    position: relative;
    display: block;
    overflow: hidden;
    background: #0d0907;
    border-bottom: 1px solid rgba(206, 163, 92, .3);
}

.news-card-media::before,
.news-card-media::after {
    content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    opacity: 0;
    pointer-events: none;
    transition: opacity .25s ease, transform .25s ease;
}

.news-card-media::before {
    inset: 0;
    z-index: 1;
    background: radial-gradient(circle at 50% 50%, transparent 32%, rgba(0, 0, 0, .58));
}

.news-card-media::after {
    content: "\f06e";
    z-index: 2;
    width: 56px;
    height: 56px;
    display: grid;
    place-items: center;
    border: 1px solid rgba(255, 212, 132, .62);
    border-radius: 50%;
    background: rgba(9, 8, 7, .74);
    color: #ffd27c;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 1.25rem;
    transform: translate(-50%, -50%) scale(.86);
}

.news-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    object-position: center;
    filter: saturate(.95) contrast(1.04);
    transition: transform .35s ease, filter .35s ease;
}

.news-card-content {
    min-width: 0;
    display: flex;
    flex-direction: column;
    padding: 16px;
}

.news-card-content h3 {
    min-height: 46px;
    margin: 0 0 9px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    color: #fff1d1;
    font-size: 1.06rem;
    line-height: 1.3;
    font-weight: 800;
    overflow-wrap: anywhere;
    transition: color .25s ease;
}

.news-card-content p {
    min-height: 60px;
    margin: 0 0 14px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
    color: #bcc6ce;
    font-size: .82rem;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.news-meta {
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-top: auto;
    padding-top: 11px;
    border-top: 1px solid rgba(255, 255, 255, .07);
    color: #87939d;
    font-size: .7rem;
    transition: border-color .25s ease, color .25s ease;
}

.news-meta time { white-space: nowrap; }

.news-tag {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 3;
    max-width: calc(100% - 24px);
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 5px 10px;
    overflow: hidden;
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 999px;
    background: linear-gradient(135deg, rgba(255, 255, 255, .1), rgba(10, 8, 7, .84));
    color: #eef3f6;
    font-size: .64rem;
    line-height: 1;
    font-weight: 900;
    letter-spacing: .06em;
    text-overflow: ellipsis;
    text-transform: uppercase;
    white-space: nowrap;
    backdrop-filter: blur(6px);
    box-shadow: 0 6px 16px rgba(0, 0, 0, .45);
    transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}

.news-tag::before {
    content: "\f05a";
    flex: none;
    font-family: "Font Awesome 6 Free";
    font-weight: 900;
    font-size: .74rem;
}

.news-tag.update {
    border-color: rgba(74, 178, 132, .72);
    color: #a8f0cf;
    background: linear-gradient(135deg, rgba(74, 178, 132, .3), rgba(10, 8, 7, .86));
}
.news-tag.update::before { content: "\f135"; }

.news-tag.news {
    border-color: rgba(236, 110, 140, .72);
    color: #ffd0dc;
    background: linear-gradient(135deg, rgba(236, 110, 140, .3), rgba(10, 8, 7, .86));
}
.news-tag.news::before { content: "\f1ea"; }

.news-tag.event {
    border-color: rgba(184, 114, 213, .72);
    color: #e5bdff;
    background: linear-gradient(135deg, rgba(184, 114, 213, .3), rgba(10, 8, 7, .86));
}
.news-tag.event::before { content: "\f073"; }

.news-tag.maintenance {
    border-color: rgba(210, 139, 69, .75);
    color: #ffd09b;
    background: linear-gradient(135deg, rgba(210, 139, 69, .3), rgba(10, 8, 7, .86));
}
.news-tag.maintenance::before { content: "\f7d9"; }

.news-tag.notice,
.news-tag.unknown {
    border-color: rgba(117, 158, 210, .7);
    color: #bdd8ff;
    background: linear-gradient(135deg, rgba(117, 158, 210, .3), rgba(10, 8, 7, .86));
}
.news-tag.notice::before,
.news-tag.unknown::before { content: "\f071"; }

.news-author {
    min-width: 0;
    margin-left: auto;
    overflow: hidden;
    color: #d8c394;
    font-weight: 700;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.news-card:hover,
.news-card:focus-within {
    transform: translateY(-6px);
    border-color: rgba(237, 188, 99, .82);
    box-shadow: 0 24px 44px rgba(0, 0, 0, .58), 0 0 24px rgba(211, 146, 56, .3), inset 0 1px 0 rgba(255, 239, 200, .16);
}

.news-card:hover::after,
.news-card:focus-within::after {
    box-shadow: inset 0 0 0 1px rgba(255, 214, 130, .35);
}

.news-card:hover .news-card-media::before,
.news-card:focus-within .news-card-media::before,
.news-card:hover .news-card-media::after,
.news-card:focus-within .news-card-media::after {
    opacity: 1;
}

.news-card:hover .news-card-media::after,
.news-card:focus-within .news-card-media::after {
    transform: translate(-50%, -50%) scale(1);
}

.news-card:hover img,
.news-card:focus-within img {
    transform: scale(1.06);
    filter: saturate(1.08) contrast(1.06);
}

.news-card:hover .news-tag,
.news-card:focus-within .news-tag {
    transform: translateY(-1px);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .5), 0 0 12px rgba(255, 210, 124, .3);
}

.news-card:hover .news-card-content h3,
.news-card:focus-within .news-card-content h3 {
    color: #fff8e4;
}

.news-card:hover .news-meta,
.news-card:focus-within .news-meta {
    border-color: rgba(255, 214, 130, .28);
    color: #aab6c0;
}

.news-card-link:focus-visible {
    outline: 2px solid #e5b45e;
    outline-offset: -3px;
}

.news-pagination {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 7px;
    margin: 30px 0 0;
}

.page-number {
    width: 34px;
    height: 34px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(190, 151, 88, .34);
    border-radius: 5px;
    background: rgba(15, 18, 21, .88);
    color: #dce4e9;
    font-size: .78rem;
    font-weight: 800;
    text-decoration: none;
    transition: border-color .2s ease, background .2s ease, color .2s ease;
}

.page-number:hover,
.page-number:focus-visible {
    border-color: #d9a957;
    background: rgba(67, 48, 25, .92);
    color: #fff0c9;
    outline: none;
}

.page-number.active {
    border-color: #e4b45e;
    background: linear-gradient(180deg, #a8762e, #5c3918);
    color: #fff7df;
    cursor: default;
}

@media (max-width: 980px) {
    .news-section { width: min(860px, calc(100% - 28px)); }
    .news-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 560px) {
    .news-section {
        width: calc(100% - 20px);
        padding-top: 88px;
    }

    .news-heading { margin-bottom: 20px; }
    .news-grid { grid-template-columns: minmax(0, 1fr); gap: 14px; }
    .news-card-link { grid-template-columns: 132px minmax(0, 1fr); grid-template-rows: minmax(164px, auto); }
    .news-card-media { width: 132px; }
    .news-card-media::after { width: 46px; height: 46px; font-size: 1.05rem; }
    .news-card-content { padding: 13px; }
    .news-card-content h3 { min-height: 0; font-size: .95rem; }
    .news-card-content p { min-height: 0; -webkit-line-clamp: 2; font-size: .75rem; }
    .news-meta { align-items: flex-start; flex-direction: column; gap: 4px; }
    .news-author { width: 100%; margin-left: 0; }
}

@media (max-width: 390px) {
    .news-card-link { grid-template-columns: 104px minmax(0, 1fr); }
    .news-card-media { width: 104px; }
    .news-card-content p { display: none; }
}

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