/* ===== NewsCMS – Public theme ===== */
:root{
  --brand:#0B4DB8;--brand2:#0B1F3A;--accent:#C8102E;
  --bg:#F4F6FA;--card:#FFFFFF;--text:#13233F;--muted:#5A6882;--line:#E2E7EF;--ph:#CBD5E4;
  --radius:12px;
}
[data-bs-theme="dark"]{
  --bg:#0F1A2B;--card:#16243A;--text:#E6ECF5;--muted:#A3B1C7;--line:#24364F;--ph:#2C3E5C;
}
body{background:var(--bg);color:var(--text);font-family:Inter,system-ui,-apple-system,sans-serif;font-size:16px}
a{color:inherit;text-decoration:none}
a:hover{color:var(--brand)}
[data-bs-theme="dark"] a:hover{color:#7FB0FF}
h1,h2,h3,.brand-name,.footer-brand{font-family:"Space Grotesk",Inter,sans-serif}
.text-brand{color:var(--brand)}
.btn-brand{background:var(--brand);color:#fff;border:0}
.btn-brand:hover{background:var(--brand);filter:brightness(1.1);color:#fff}
.btn-outline-brand{border:1px solid var(--brand);color:var(--brand)}
.btn-outline-brand:hover{background:var(--brand);color:#fff}
[data-bs-theme="dark"] .btn-outline-brand{color:#7FB0FF;border-color:#7FB0FF}

/* Topbar */
.topbar{background:var(--brand2);color:#C9D3E3;padding:6px 0}
.topbar a{color:#C9D3E3}.topbar a:hover{color:#fff}
.btn-topbar{background:rgba(255,255,255,.1);color:#fff;border:0;border-radius:20px;padding:4px 12px}
.btn-topbar:hover{background:rgba(255,255,255,.2);color:#fff}
[data-bs-theme="dark"] .t-dark,[data-bs-theme="light"] .t-light{display:none}

/* Header */
.site-header{background:var(--card);border-bottom:1px solid var(--line)}
.brand{display:flex;align-items:center;gap:10px}
.brand-logo{max-height:52px;width:auto}
.brand-mark{width:44px;height:44px;border-radius:10px;background:var(--brand);color:#fff;display:flex;align-items:center;justify-content:center;font-family:"Space Grotesk";font-weight:700;font-size:22px}
.brand-name{font-weight:700;font-size:28px;letter-spacing:-.5px}
.search-form{gap:8px;flex:1;max-width:420px}
.cat-nav a{display:inline-block;padding:12px 10px;font-weight:600;font-size:15px;border-bottom:3px solid transparent}
.cat-nav a.active,.cat-nav a:hover{border-bottom-color:var(--brand);color:var(--brand)}
[data-bs-theme="dark"] .cat-nav a.active{color:#7FB0FF}

/* Breaking */
.breaking{background:var(--card);border-bottom:1px solid var(--line);padding:8px 0}
.breaking-label{background:var(--accent);color:#fff;font-weight:700;font-size:13px;padding:6px 10px;border-radius:4px;white-space:nowrap;flex:none}
.breaking-track{overflow:hidden;flex:1;mask-image:linear-gradient(90deg,transparent,#000 3%,#000 97%,transparent)}
.breaking-inner{display:inline-flex;gap:40px;white-space:nowrap;animation:ticker 40s linear infinite;padding-left:10px}
.breaking-inner a,.breaking-inner span{font-weight:500}
.breaking-track:hover .breaking-inner,.breaking.paused .breaking-inner{animation-play-state:paused}
.breaking-toggle{flex:none;min-width:44px}
@keyframes ticker{from{transform:translateX(0)}to{transform:translateX(-50%)}}
@media (prefers-reduced-motion:reduce){.breaking-inner{animation-duration:120s}}

/* Boxes & sections */
.box{background:var(--card);border-radius:var(--radius);padding:20px;border:1px solid var(--line)}
.section-title{font-size:20px;font-weight:700;margin:0 0 14px}
.section-title.accent{border-left:4px solid var(--accent);padding-left:10px;font-size:18px}

/* Hero */
.hero{position:relative;display:block;border-radius:var(--radius);overflow:hidden;aspect-ratio:4/3;background:var(--ph)}
.hero img{width:100%;height:100%;object-fit:cover}
.hero-caption{position:absolute;left:0;right:0;bottom:0;padding:20px;background:linear-gradient(transparent,rgba(5,14,30,.92) 40%);color:#fff}
.hero-cat{background:var(--brand);font-size:12px;font-weight:700;padding:3px 10px;border-radius:4px;text-transform:uppercase}
.hero-title{font-size:24px;line-height:1.25;margin:10px 0 6px;color:#fff}
.hero:hover .hero-title{text-decoration:underline}

/* Cards */
.news-card{background:var(--card);border-radius:var(--radius);overflow:hidden;border:1px solid var(--line);display:flex;flex-direction:column}
.news-card-img{display:block;aspect-ratio:16/10;background:var(--ph);overflow:hidden}
.news-card-img img{width:100%;height:100%;object-fit:cover;transition:transform .3s}
.news-card:hover img{transform:scale(1.04)}
.news-card-body{padding:14px}
.news-cat{font-size:12px;font-weight:700;color:var(--brand);text-transform:uppercase}
[data-bs-theme="dark"] .news-cat{color:#7FB0FF}
.badge-important{display:inline-block;margin-left:6px;background:var(--accent);color:#fff;font-size:11px;font-weight:700;padding:2px 8px;border-radius:4px}
.news-title{font-size:16px;font-weight:600;line-height:1.35;margin:6px 0;font-family:Inter,sans-serif}
.news-meta{font-size:12px;color:var(--muted)}
.news-row{display:flex;gap:12px;background:var(--card);border:1px solid var(--line);border-radius:10px;padding:10px}
.news-row img{width:96px;height:68px;object-fit:cover;border-radius:6px;flex:none;background:var(--ph)}
.news-row-title{font-weight:600;font-size:14px;line-height:1.35}

/* Sidebar */
.sidebar{display:flex;flex-direction:column;gap:20px;position:sticky;top:12px}
.box-title{font-size:18px;font-weight:700;margin-bottom:10px}
.top-list{list-style:none;padding:0;margin:0}
.top-list li{display:flex;gap:12px;padding:10px 0;border-bottom:1px solid var(--line);font-size:14px;font-weight:500;line-height:1.4}
.top-list li:last-child{border:0}
.top-list .num{font-family:"Space Grotesk";font-size:22px;font-weight:700;color:var(--brand);min-width:26px}

/* Ads */
.ad-slot{text-align:center;position:relative}
.ad-slot img{max-width:100%;height:auto;border-radius:6px}
.ad-label{display:block;font-size:10px;color:var(--muted);text-transform:uppercase;letter-spacing:1px;margin-bottom:2px}
.ad-text{display:block;padding:12px;border:1px dashed var(--line);border-radius:8px;font-weight:600}
.ad-html{overflow:hidden;max-width:100%}

/* Article */
.article-title{font-size:30px;line-height:1.25;margin:8px 0 12px}
.article-meta{display:flex;flex-wrap:wrap;gap:16px;font-size:14px;color:var(--muted);margin-bottom:16px}
.article-figure img{width:100%;border-radius:10px}
.article-lead{font-weight:500}
.article-content{font-size:18px;line-height:1.75}
.article-content img{max-width:100%;height:auto;border-radius:8px}
.article-content blockquote{border-left:4px solid var(--brand);padding:8px 16px;margin:16px 0;background:var(--bg);border-radius:0 8px 8px 0;font-style:italic}
.article-content iframe{max-width:100%}
.article-source{font-size:14px;color:var(--muted);margin-top:16px}
.article-source a{color:var(--brand);text-decoration:underline}
.gallery img{width:100%;aspect-ratio:4/3;object-fit:cover;border-radius:8px}
.tag{font-size:13px;background:var(--bg);border:1px solid var(--line);border-radius:20px;padding:4px 12px}
.share{display:flex;flex-wrap:wrap;gap:8px;margin-top:20px}
.share-btn{border:0;border-radius:8px;padding:10px 16px;font-weight:600;font-size:14px;color:#fff;min-height:44px;display:inline-flex;align-items:center}
.share-btn:hover{color:#fff;filter:brightness(1.08)}
.share-btn.wa{background:#1DA851}.share-btn.fb{background:#1877F2}.share-btn.tg{background:#1B8BC4}.share-btn.x{background:#111}.share-btn.copy{background:#5A6882}

.cat-head{display:flex;align-items:center;gap:14px}
.cat-head img{width:56px;height:56px;border-radius:10px;object-fit:cover}

/* Footer */
.site-footer{background:var(--brand2);color:#C9D3E3}
.site-footer a{color:#C9D3E3}.site-footer a:hover{color:#fff}
.site-footer h6{color:#fff;font-weight:700}
.footer-brand{font-size:24px;font-weight:700;color:#fff}
.footer-bottom{border-top:1px solid rgba(255,255,255,.1)}
.social-pill{background:rgba(255,255,255,.1);padding:6px 12px;border-radius:20px;font-size:13px}
.box .social-pill{background:var(--bg);border:1px solid var(--line)}

/* Cookie */
.cookie-bar{position:fixed;left:12px;right:12px;bottom:12px;z-index:1080;background:var(--card);border:1px solid var(--line);border-radius:12px;padding:12px 16px;display:flex;gap:12px;align-items:center;justify-content:space-between;box-shadow:0 10px 30px rgba(0,0,0,.15);max-width:720px;margin:auto;font-size:14px}
.cookie-bar[hidden]{display:none}

[data-bs-theme="dark"] .form-control,[data-bs-theme="dark"] .form-select{background-color:#0F1A2B;border-color:var(--line)}
[data-bs-theme="dark"] img{filter:brightness(.92)}

/* Mobile */
@media (max-width: 767.98px){
  body{font-size:16px}
  .brand-name{font-size:22px}
  .article-title{font-size:24px}
  .article-content{font-size:17px}
  .hero-title{font-size:20px}
  .box{padding:14px}
  .sidebar{position:static}
  .ad-slot img{width:100%}
  .ad-header,.ad-below_logo{display:none}
  .ad-f-970x250 img,.ad-f-728x90 img{width:100%}
}
