/* News (home page list + one article): modern cards in the site blue.
   Rewritten 2026-11-22 (the old castle-frame / gold look is in battlewarsmu-project/backups/news.css.20261122). */

.content-wrapper > .bw-news-shell { padding: 22px 26px 8px !important; background: transparent !important; border: 0 !important; box-shadow: none !important; }
.bw-news-list { display: flex; flex-direction: column; gap: 14px; }

/* ---- card ---- */
.bw-news-card {
    position: relative; overflow: hidden;
    background: linear-gradient(180deg, rgba(14, 30, 48, .94), rgba(5, 11, 19, .97)) padding-box,
                linear-gradient(160deg, rgba(110, 190, 245, .32), rgba(30, 60, 90, .22) 55%, rgba(110, 190, 245, .1)) border-box;
    border: 1px solid transparent; border-radius: 10px;
    box-shadow: 0 10px 26px rgba(0, 0, 0, .38);
    transition: box-shadow .2s ease, background .2s ease;
}
.bw-news-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: linear-gradient(180deg, #6fc1e2, rgba(111, 193, 226, .15)); opacity: .35; transition: opacity .2s ease; }
.bw-news-card.bw-open::before, .bw-news-card:hover::before { opacity: 1; }
.bw-news-card:hover { box-shadow: 0 14px 32px rgba(0, 0, 0, .5), 0 0 22px rgba(85, 175, 255, .1); }

/* ---- header ---- */
.bw-news-header { display: flex; align-items: center; gap: 16px; padding: 16px 18px 16px 22px; cursor: pointer; user-select: none; }
.bw-news-header:focus-visible { outline: 2px solid rgba(111, 193, 226, .6); outline-offset: -2px; border-radius: 10px; }
.bw-news-title-wrap { flex: 1 1 auto; min-width: 0; }
.bw-news-meta { display: flex; align-items: center; gap: 10px; margin-bottom: 7px; }
.bw-news-badge { padding: 2px 9px; color: #9fd3ff; font-size: 9.5px; font-weight: 800; letter-spacing: 1.4px; text-transform: uppercase; background: rgba(96, 176, 232, .12); border: 1px solid rgba(96, 176, 232, .35); border-radius: 20px; }
.bw-news-date { display: inline-flex; align-items: center; gap: 6px; color: #7f98ad; font-size: 11.5px; font-weight: 600; font-variant-numeric: tabular-nums; }
.bw-news-date i { color: #5f86a3; font-size: 11px; }
.bw-news-title { margin: 0; font: 700 19px/1.3 Georgia, 'Times New Roman', serif; letter-spacing: .2px; }
.bw-news-title a { color: #eef4f9 !important; text-decoration: none !important; transition: color .15s ease; }
.bw-news-title a:hover { color: #9fd3ff !important; }
.bw-news-toggle-btn { flex: 0 0 34px; width: 34px; height: 34px; display: flex; align-items: center; justify-content: center; color: #9fc7e4; background: rgba(96, 176, 232, .08); border: 1px solid rgba(96, 176, 232, .25); border-radius: 50%; transition: background .15s ease, border-color .15s ease, color .15s ease; }
.bw-news-toggle-btn svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s ease; }
.bw-news-header:hover .bw-news-toggle-btn { color: #fff; background: rgba(96, 176, 232, .2); border-color: rgba(150, 212, 255, .55); }
.bw-news-card.bw-open .bw-news-toggle-btn svg { transform: rotate(180deg); }

/* ---- open / closed (height animates through the grid row) ---- */
.bw-news-collapsible { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .28s ease; }
.bw-news-card.bw-open .bw-news-collapsible { grid-template-rows: 1fr; }
.bw-news-collapsible-inner { overflow: hidden; min-height: 0; }

/* ---- body ---- */
.bw-news-body { margin: 0 18px 0 22px; padding: 16px 0 6px; border-top: 1px solid rgba(110, 190, 245, .12); }
.bw-news-content { color: #c3d1de; font-size: 14px; line-height: 1.7; overflow-wrap: anywhere; }
.bw-news-content p { margin: 0 0 12px; }
.bw-news-content p:last-child { margin-bottom: 0; }
.bw-news-content strong, .bw-news-content b { color: #f1f6fa; font-weight: 700; }
.bw-news-content a { color: #8fd0f0; text-decoration: underline; text-decoration-color: rgba(143, 208, 240, .4); text-underline-offset: 2px; }
.bw-news-content a:hover { color: #c6e9ff; }
.bw-news-content h1, .bw-news-content h2, .bw-news-content h3, .bw-news-content h4 { margin: 18px 0 8px; color: #eef4f9; font-family: Georgia, 'Times New Roman', serif; line-height: 1.3; }
.bw-news-content h1 { font-size: 20px; } .bw-news-content h2 { font-size: 18px; } .bw-news-content h3, .bw-news-content h4 { font-size: 16px; }
.bw-news-content ul, .bw-news-content ol { margin: 0 0 12px; padding-left: 20px; }
.bw-news-content li { margin-bottom: 4px; }
.bw-news-content li::marker { color: #6fc1e2; }
.bw-news-content img { max-width: 100%; height: auto; border-radius: 8px; border: 1px solid rgba(110, 190, 245, .15); }
.bw-news-content blockquote { margin: 0 0 12px; padding: 10px 14px; color: #b9cddd; background: rgba(96, 176, 232, .06); border-left: 3px solid #6fc1e2; border-radius: 0 6px 6px 0; }
.bw-news-content hr { border: 0; border-top: 1px solid rgba(110, 190, 245, .15); margin: 16px 0; }
.bw-news-content table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-size: 13px; }
.bw-news-content th, .bw-news-content td { padding: 6px 10px; border: 1px solid rgba(110, 190, 245, .14); }
.bw-news-content th { color: #eef4f9; background: rgba(96, 176, 232, .08); }

/* ---- footer ---- */
.bw-news-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 10px 18px 0 22px; padding: 12px 0 16px; border-top: 1px solid rgba(110, 190, 245, .08); }
.bw-news-author { display: flex; align-items: center; gap: 9px; color: #7f98ad; font-size: 12px; }
.bw-news-author b { color: #cfe4f5; font-weight: 700; }
.bw-news-avatar { width: 26px; height: 26px; display: flex; align-items: center; justify-content: center; color: #0b1722; font-size: 12px; font-weight: 900; background: linear-gradient(180deg, #9fd3ff, #4f9ccc); border-radius: 50%; }
.bw-news-more { color: #8fd0f0 !important; font-size: 12px; font-weight: 700; letter-spacing: .4px; text-decoration: none !important; }
.bw-news-more:hover { color: #c6e9ff !important; }

/* ---- one article page ---- */

.bw-empty { padding: 30px 16px; color: #7f98ad; text-align: center; background: rgba(255, 255, 255, .02); border: 1px dashed rgba(110, 190, 245, .18); border-radius: 10px; }

@media (max-width: 600px) {
    .content-wrapper > .bw-news-shell { padding: 14px 6px 0 !important; }
    .bw-news-header { padding: 14px 14px 14px 18px; gap: 12px; }
    .bw-news-title { font-size: 17px; }
    .bw-news-body, .bw-news-footer { margin-left: 18px; margin-right: 14px; }
    .bw-news-content { font-size: 13.5px; }
}
.bw-news-shell .bw-back-link { margin: 14px 0 0; }
.bw-news-shell .bw-back-link a { color: #8fd0f0 !important; font-size: 12.5px; font-weight: 700; text-decoration: none !important; }
.bw-news-shell .bw-back-link a:hover { color: #c6e9ff !important; }

/* Room inside the content frame (its art sits inside the box edge): clear of the top ornament and the sides */
body .content-wrapper > .bw-news-shell { padding: 52px 50px 18px !important; }
@media (max-width: 992px) { body .content-wrapper > .bw-news-shell { padding: 30px 20px 10px !important; } }
@media (max-width: 640px) { body .content-wrapper > .bw-news-shell { padding: 22px 6px 4px !important; } }
