/* ===== LexxWire news theme ===== */
:root {
  --nw-blue: #2563eb;
  --nw-navy: #0b1e3a;
  --nw-red: #dc2626;
  --nw-ink: #111827;
  --nw-muted: #6b7280;
  --nw-line: #e5e7eb;
  --nw-bg: #ffffff;
  --nw-soft: #f8fafc;
}

.nw-container { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.nw-container a { text-decoration: none; color: inherit; }

/* --- Topbar --- */
.nw-topbar { background: var(--nw-navy); color: #cbd5e1; font-size: 12.5px; }
.nw-topbar-inner { display: flex; justify-content: space-between; align-items: center; padding-top: 7px; padding-bottom: 7px; }
.nw-tagline { color: #94a3b8; }
@media (max-width: 640px) { .nw-tagline { display: none; } }

/* --- Masthead --- */
.nw-masthead { background: #fff; border-bottom: 1px solid var(--nw-line); }
.nw-masthead-inner { display: flex; align-items: center; gap: 14px; padding-top: 18px; padding-bottom: 18px; }
.nw-brand { display: flex; align-items: center; gap: 12px; }
.nw-logo { border-radius: 10px; display: block; }
.nw-wordmark { font-size: 34px; font-weight: 900; letter-spacing: -1px; color: var(--nw-ink); }
h1.nw-wordmark { margin: 0; font-size: 34px; }
.nw-wordmark em { font-style: normal; color: var(--nw-blue); }
.nw-masthead-tag { margin-left: auto; font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 2px; color: var(--nw-muted); border-left: 2px solid var(--nw-line); padding-left: 14px; }
@media (max-width: 640px) { .nw-wordmark, h1.nw-wordmark { font-size: 26px; } .nw-masthead-tag { display: none; } }

/* --- Nav --- */
.nw-nav { background: var(--nw-navy); position: sticky; top: 0; z-index: 50; box-shadow: 0 2px 8px rgba(0,0,0,.18); }
.nw-nav-list { list-style: none; margin: 0; padding: 0; display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none; }
.nw-nav-list::-webkit-scrollbar { display: none; }
.nw-nav-list a { display: block; color: #e2e8f0; font-size: 14px; font-weight: 600; padding: 13px 16px; white-space: nowrap; border-bottom: 3px solid transparent; }
.nw-nav-list a:hover { color: #fff; background: rgba(255,255,255,.06); border-bottom-color: var(--nw-blue); }

/* --- Ticker --- */
.nw-ticker { display: flex; align-items: stretch; margin: 18px 0 4px; border: 1px solid var(--nw-line); border-radius: 8px; overflow: hidden; background: #fff; }
.nw-ticker-label { background: var(--nw-red); color: #fff; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; display: flex; align-items: center; padding: 0 14px; flex-shrink: 0; }
.nw-ticker-view { overflow: hidden; flex: 1; display: flex; align-items: center; }
.nw-ticker-track { display: inline-flex; align-items: center; gap: 14px; padding: 10px 0; white-space: nowrap; animation: nw-tick 40s linear infinite; }
.nw-ticker:hover .nw-ticker-track { animation-play-state: paused; }
.nw-ticker-track a { font-size: 13.5px; font-weight: 600; color: var(--nw-ink); }
.nw-ticker-track a:hover { color: var(--nw-blue); }
.nw-ticker-dot { color: var(--nw-red); font-weight: 900; }
@keyframes nw-tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* --- Hero --- */
.nw-hero { display: grid; grid-template-columns: 1.9fr 1fr; gap: 18px; margin: 18px 0 8px; }
.nw-hero-main { position: relative; display: block; border-radius: 12px; overflow: hidden; min-height: 420px; background: var(--nw-navy); }
.nw-hero-main img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.nw-hero-main-text { position: absolute; left: 0; right: 0; bottom: 0; padding: 28px 24px 22px; background: linear-gradient(transparent, rgba(4,12,28,.92) 65%); color: #fff; }
.nw-hero-main-text h2 { font-size: 30px; line-height: 1.2; font-weight: 800; letter-spacing: -.5px; margin: 10px 0 8px; color: #fff; }
.nw-hero-main-text p { font-size: 14.5px; color: #dbe3ef; margin: 0 0 10px; }
.nw-hero-main-text .nw-meta { color: #9fb0c9; }
.nw-chip { display: inline-block; background: var(--nw-blue); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; padding: 5px 10px; border-radius: 4px; }
.nw-chip-sm { font-size: 10px; padding: 3px 8px; }
.nw-meta { font-size: 12.5px; color: var(--nw-muted); }

.nw-hero-side { display: flex; flex-direction: column; gap: 14px; }
.nw-hero-card { display: grid; grid-template-columns: 128px 1fr; gap: 12px; background: #fff; border: 1px solid var(--nw-line); border-radius: 10px; overflow: hidden; }
.nw-hero-card img { width: 128px; height: 100%; min-height: 96px; object-fit: cover; display: block; }
.nw-hero-card > div { padding: 10px 12px 10px 0; }
.nw-hero-card h3 { font-size: 15px; line-height: 1.35; font-weight: 700; margin: 6px 0; color: var(--nw-ink); }
.nw-hero-card:hover h3 { color: var(--nw-blue); }

/* --- Section heads --- */
.nw-section-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 3px solid var(--nw-navy); margin: 30px 0 4px; padding-bottom: 8px; }
.nw-section-head h2 { font-size: 20px; font-weight: 800; letter-spacing: -.3px; margin: 0; color: var(--nw-ink); text-transform: uppercase; }
.nw-section-head a { font-size: 13px; font-weight: 700; color: var(--nw-blue); white-space: nowrap; }

/* --- Main grid --- */
.nw-grid { display: grid; grid-template-columns: 1.9fr 1fr; gap: 28px; align-items: start; }
.nw-row { display: grid; grid-template-columns: 240px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--nw-line); }
.nw-row img { width: 240px; height: 135px; object-fit: cover; border-radius: 8px; display: block; }
.nw-row h3 { font-size: 18px; line-height: 1.35; font-weight: 750; margin: 4px 0 6px; color: var(--nw-ink); }
.nw-row:hover h3 { color: var(--nw-blue); }
.nw-row p { font-size: 14px; color: var(--nw-muted); margin: 0 0 8px; line-height: 1.55; }
.nw-kicker { font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: 1px; color: var(--nw-blue); }

/* --- Sidebar --- */
.nw-sidebar { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 64px; }
.nw-box { background: var(--nw-soft); border: 1px solid var(--nw-line); border-radius: 10px; padding: 18px; }
.nw-box .nw-section-head { margin-top: 0; }
.nw-trending { list-style: none; margin: 6px 0 0; padding: 0; counter-reset: trend; }
.nw-trending li { counter-increment: trend; display: flex; gap: 12px; padding: 10px 0; border-bottom: 1px dashed var(--nw-line); align-items: baseline; }
.nw-trending li:last-child { border-bottom: none; }
.nw-trending li::before { content: counter(trend); font-size: 26px; font-weight: 900; color: var(--nw-blue); opacity: .35; line-height: 1; }
.nw-trending a { font-size: 14px; font-weight: 650; line-height: 1.4; color: var(--nw-ink); }
.nw-trending a:hover { color: var(--nw-blue); }
.nw-newsletter { background: var(--nw-navy); border-color: var(--nw-navy); color: #e2e8f0; text-align: center; }
.nw-newsletter h3 { color: #fff; margin: 0 0 8px; font-size: 18px; }
.nw-newsletter p { font-size: 13.5px; color: #b6c4da; margin: 0 0 14px; }
.nw-newsletter small { display: block; margin-top: 10px; color: #7d8fb0; font-size: 11.5px; }
.nw-btn { display: inline-block; background: var(--nw-blue); color: #fff !important; font-weight: 700; font-size: 14px; padding: 10px 22px; border-radius: 8px; }
.nw-btn:hover { background: #1d4ed8; }

/* --- Web stories strip --- */
.nw-stories-row { display: grid; grid-auto-flow: column; grid-auto-columns: 168px; gap: 14px; overflow-x: auto; padding: 14px 2px 6px; scroll-snap-type: x mandatory; }
.nw-story-card { scroll-snap-align: start; position: relative; display: block; border-radius: 12px; overflow: hidden; aspect-ratio: 9/14; background: var(--nw-navy); }
.nw-story-card img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nw-story-card span { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px 10px 10px; font-size: 12.5px; font-weight: 700; line-height: 1.35; color: #fff; background: linear-gradient(transparent, rgba(4,12,28,.92) 60%); }

/* --- Category blocks --- */
.nw-catgrid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; padding-top: 14px; }
.nw-catcard { background: #fff; border: 1px solid var(--nw-line); border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; }
.nw-catcard img { width: 100%; aspect-ratio: 16/9; object-fit: cover; display: block; }
.nw-catcard > div { padding: 12px 14px 14px; }
.nw-catcard h3 { font-size: 14.5px; line-height: 1.4; font-weight: 700; margin: 0 0 8px; color: var(--nw-ink); }
.nw-catcard:hover h3 { color: var(--nw-blue); }

/* --- Footer --- */
.nw-footer { background: var(--nw-navy); color: #b6c4da; margin-top: 48px; }
.nw-footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; padding: 44px 0 30px; }
.nw-footer-brand .nw-wordmark { color: #fff; font-size: 26px; }
.nw-footer-brand p { font-size: 13.5px; line-height: 1.65; margin: 14px 0 0; max-width: 320px; }
.nw-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: 1.5px; margin: 0 0 14px; }
.nw-footer ul { list-style: none; margin: 0; padding: 0; }
.nw-footer ul li { margin: 9px 0; }
.nw-footer ul a { font-size: 14px; color: #b6c4da; }
.nw-footer ul a:hover { color: #fff; }
.nw-footer-bottom { display: flex; justify-content: space-between; align-items: center; border-top: 1px solid rgba(255,255,255,.12); padding: 16px 0; font-size: 12.5px; color: #7d8fb0; flex-wrap: wrap; gap: 8px; }
.nw-footer-bottom a { color: #9fb0c9; }

/* --- Responsive --- */
@media (max-width: 960px) {
  .nw-hero, .nw-grid { grid-template-columns: 1fr; }
  .nw-sidebar { position: static; }
  .nw-catgrid { grid-template-columns: repeat(2, 1fr); }
  .nw-footer-grid { grid-template-columns: 1fr 1fr; }
  .nw-hero-main { min-height: 340px; }
  .nw-hero-main-text h2 { font-size: 24px; }
}
@media (max-width: 640px) {
  .nw-row { grid-template-columns: 112px 1fr; gap: 12px; }
  .nw-row img { width: 112px; height: 84px; }
  .nw-row h3 { font-size: 15px; }
  .nw-row p { display: none; }
  .nw-hero-card { grid-template-columns: 104px 1fr; }
  .nw-hero-card img { width: 104px; min-height: 80px; }
  .nw-catgrid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .nw-footer-grid { grid-template-columns: 1fr; gap: 22px; }
  .nw-hero-main { min-height: 300px; }
  .nw-hero-main-text { padding: 20px 16px 16px; }
  .nw-hero-main-text h2 { font-size: 21px; }
  .nw-hero-main-text p { display: none; }
}

/* ---------- Author box (end of articles) & author page ---------- */
.nw-authorbox{display:flex;gap:16px;align-items:flex-start;background:#f1f5f9;border:1px solid #e2e8f0;border-radius:12px;padding:20px;margin:32px 0 8px}
.nw-author-avatar{flex:0 0 64px;width:64px;height:64px;border-radius:50%;background:#1e3a5f;color:#fff;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:22px;letter-spacing:1px}
.nw-authorbox-kicker{margin:0 0 2px;font-size:12px;text-transform:uppercase;letter-spacing:.08em;color:#64748b}
.nw-authorbox-name{margin:0 0 6px;font-size:19px;font-weight:700}
.nw-authorbox-name a{color:#1e3a5f;text-decoration:none}
.nw-authorbox-name a:hover{text-decoration:underline}
.nw-authorbox-bio{margin:0 0 8px;font-size:14.5px;line-height:1.6;color:#334155}
.nw-authorbox-links{margin:0;font-size:14px}
.nw-authorbox-links a{color:#2563eb;font-weight:600;text-decoration:none}
.nw-author-hero{display:flex;gap:24px;align-items:center;margin:8px 0 4px}
.nw-author-hero .nw-author-avatar{flex:0 0 96px;width:96px;height:96px;font-size:34px}
.nw-author-role{margin:6px 0 12px;color:#64748b;font-size:16px}
.nw-author-links{display:flex;gap:10px}
.nw-author-btn{display:inline-block;background:#1e3a5f;color:#fff;font-size:14px;font-weight:600;padding:9px 18px;border-radius:8px;text-decoration:none}
.nw-author-btn:hover{background:#2563eb}
.nw-author-stories{margin-top:36px}
.nw-author-stories h2{font-size:22px;margin-bottom:14px}
.nw-author-stories ul{list-style:none;margin:0;padding:0}
.nw-author-stories li{display:flex;justify-content:space-between;gap:12px;padding:12px 0;border-bottom:1px solid #e2e8f0}
.nw-author-stories li a{color:#1e3a5f;font-weight:600;text-decoration:none}
.nw-author-stories li a:hover{color:#2563eb}
.nw-author-stories time{flex:0 0 auto;color:#94a3b8;font-size:13px}
.post-meta a[rel="author"]{color:inherit;font-weight:600}
@media(max-width:640px){
  .nw-author-hero{flex-direction:column;align-items:flex-start;gap:14px}
  .nw-authorbox{padding:16px}
}
