/* =====================================================================
   World Current Bulletin — Design System
   Premium editorial / newspaper UI inspired by Indian Express & The Hindu
   ===================================================================== */

:root {
    --wcb-primary: #B00020;
    --wcb-primary-dark: #8a0019;
    --wcb-secondary: #1A1A1A;
    --wcb-accent: #F5F5F5;
    --wcb-success: #1E7E34;
    --wcb-ink: #1a1a1a;
    --wcb-muted: #6b6b6b;
    --wcb-border: #e7e7e7;
    --wcb-bg: #ffffff;
    --wcb-bg-soft: #fafafa;
    --wcb-font-head: "Playfair Display", "Merriweather", Georgia, serif;
    --wcb-font-body: "Inter", "Source Sans Pro", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    --wcb-radius: 6px;
    --wcb-shadow: 0 1px 3px rgba(0,0,0,.06), 0 6px 18px rgba(0,0,0,.04);
}

/* ---------- Base ---------- */
* { -webkit-font-smoothing: antialiased; }
body {
    font-family: var(--wcb-font-body);
    color: var(--wcb-ink);
    background: var(--wcb-bg);
    font-size: 16px;
    line-height: 1.6;
}
h1, h2, h3, h4, .font-head { font-family: var(--wcb-font-head); font-weight: 800; line-height: 1.2; color: var(--wcb-secondary); }
a { color: var(--wcb-secondary); text-decoration: none; transition: color .15s ease; }
a:hover { color: var(--wcb-primary); }
img { max-width: 100%; height: auto; }

.container-wcb { max-width: 1240px; margin: 0 auto; padding-left: 16px; padding-right: 16px; }

/* ---------- Utility ---------- */
.text-primary-wcb { color: var(--wcb-primary) !important; }
.bg-primary-wcb { background: var(--wcb-primary) !important; }
.bg-ink { background: var(--wcb-secondary) !important; }
.bg-soft { background: var(--wcb-bg-soft) !important; }
.text-muted-wcb { color: var(--wcb-muted) !important; }
.divider { height: 3px; background: var(--wcb-primary); width: 54px; border: 0; opacity: 1; }

/* ---------- Top bar ---------- */
.top-bar { background: var(--wcb-secondary); color: #ddd; font-size: 13px; }
.top-bar a { color: #ddd; }
.top-bar a:hover { color: #fff; }
.top-bar .weather i { color: #ffd54f; }

/* ---------- Breaking ticker ---------- */
.breaking-ticker { display: flex; align-items: center; background: #fff; border-bottom: 1px solid var(--wcb-border); overflow: hidden; }
.breaking-ticker .label { background: var(--wcb-primary); color: #fff; font-weight: 700; text-transform: uppercase; font-size: 12px; letter-spacing: .5px; padding: 8px 14px; white-space: nowrap; display: flex; align-items: center; gap: 6px; }
.breaking-ticker .label .pulse { width: 8px; height: 8px; border-radius: 50%; background: #fff; animation: wcb-pulse 1.2s infinite; }
@keyframes wcb-pulse { 0%{opacity:.3} 50%{opacity:1} 100%{opacity:.3} }
.ticker-track { white-space: nowrap; overflow: hidden; position: relative; flex: 1; }
.ticker-move { display: inline-block; padding-left: 100%; animation: wcb-ticker 38s linear infinite; }
.ticker-move a { color: var(--wcb-ink); font-weight: 600; font-size: 14px; margin-right: 42px; }
.ticker-move a::before { content: "\2022"; color: var(--wcb-primary); margin-right: 12px; }
.breaking-ticker:hover .ticker-move { animation-play-state: paused; }
@keyframes wcb-ticker { 0%{transform:translateX(0)} 100%{transform:translateX(-100%)} }

/* ---------- Masthead ---------- */
.masthead { padding: 18px 0; border-bottom: 1px solid var(--wcb-border); }
.brand-logo { font-family: var(--wcb-font-head); font-weight: 900; font-size: 34px; letter-spacing: -.5px; color: var(--wcb-secondary); line-height: 1; }
.brand-logo .dot { color: var(--wcb-primary); }
.brand-tagline { font-size: 12px; color: var(--wcb-muted); letter-spacing: 2px; text-transform: uppercase; }

/* ---------- Primary nav ---------- */
.primary-nav { background: var(--wcb-secondary); position: sticky; top: 0; z-index: 1030; }
.primary-nav .nav-link { color: #f1f1f1; font-weight: 600; font-size: 14px; text-transform: uppercase; letter-spacing: .3px; padding: 12px 13px; border-bottom: 3px solid transparent; }
.primary-nav .nav-link:hover, .primary-nav .nav-link.active { color: #fff; border-bottom-color: var(--wcb-primary); }
.primary-nav .nav-link.home { color: var(--wcb-primary); }
.nav-scroll { display: flex; overflow-x: auto; scrollbar-width: none; }
.nav-scroll::-webkit-scrollbar { display: none; }

/* ---------- Badges ---------- */
.cat-badge { display: inline-block; background: var(--wcb-primary); color: #fff !important; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 3px 9px; border-radius: 3px; }
.cat-badge.outline { background: transparent; color: var(--wcb-primary) !important; border: 1px solid var(--wcb-primary); }
.format-badge { font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; padding: 2px 7px; border-radius: 3px; background: var(--wcb-accent); color: var(--wcb-secondary); }
.format-badge.explained { background: #fff3e0; color: #D84315; }
.format-badge.editorial { background: #ececec; color: #1A1A1A; }
.format-badge.opinion { background: #efe7e0; color: #5D4037; }
.format-badge.video { background: var(--wcb-primary); color:#fff; }
.format-badge.factcheck { background: #e8f5e9; color: var(--wcb-success); }

/* ---------- Section heading ---------- */
.section-head { display: flex; align-items: center; justify-content: space-between; border-bottom: 2px solid var(--wcb-secondary); margin-bottom: 18px; padding-bottom: 6px; }
.section-head h2 { font-size: 22px; margin: 0; position: relative; }
.section-head h2::before { content:""; display:inline-block; width: 5px; height: 20px; background: var(--wcb-primary); margin-right: 10px; vertical-align: -3px; }
.section-head .more { font-size: 13px; font-weight: 700; text-transform: uppercase; color: var(--wcb-primary); }

/* ---------- Article cards ---------- */
.article-card { display: block; margin-bottom: 22px; }
.article-card .thumb { position: relative; overflow: hidden; border-radius: var(--wcb-radius); background: var(--wcb-accent); aspect-ratio: 16/9; }
.article-card .thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.article-card:hover .thumb img { transform: scale(1.05); }
.article-card .thumb .cat-badge { position: absolute; left: 10px; top: 10px; }
.article-card .title { font-family: var(--wcb-font-head); font-weight: 700; line-height: 1.25; margin: 10px 0 6px; }
.article-card .title a { color: var(--wcb-secondary); }
.article-card .title a:hover { color: var(--wcb-primary); }
.article-card .excerpt { color: var(--wcb-muted); font-size: 14px; }
.article-meta { font-size: 12px; color: var(--wcb-muted); display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.article-meta .dot-sep::before { content: "\2022"; margin-right: 12px; color: #ccc; }

.card-lg .title { font-size: 24px; }
.card-md .title { font-size: 18px; }
.card-sm .title { font-size: 15px; }

/* Horizontal list item */
.list-item { display: flex; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--wcb-border); }
.list-item .thumb { flex: 0 0 110px; aspect-ratio: 16/11; border-radius: var(--wcb-radius); overflow: hidden; background: var(--wcb-accent); }
.list-item .thumb img { width: 100%; height: 100%; object-fit: cover; }
.list-item .title { font-size: 15px; font-weight: 700; font-family: var(--wcb-font-head); line-height: 1.3; }
.list-num { font-size: 26px; font-weight: 900; font-family: var(--wcb-font-head); color: var(--wcb-primary); line-height: 1; flex: 0 0 auto; width: 34px; }

/* ---------- Hero ---------- */
.hero-main { position: relative; border-radius: 8px; overflow: hidden; aspect-ratio: 16/9; }
.hero-main img { width: 100%; height: 100%; object-fit: cover; }
.hero-overlay { position: absolute; inset: 0; background: linear-gradient(180deg, rgba(0,0,0,0) 30%, rgba(0,0,0,.85) 100%); display: flex; align-items: flex-end; padding: 28px; }
.hero-overlay .h-title { color: #fff; font-size: 34px; font-weight: 800; line-height: 1.15; }
.hero-overlay .h-meta { color: #eee; font-size: 13px; }

/* ---------- Explained / cards grid ---------- */
.explained-card { border: 1px solid var(--wcb-border); border-radius: 8px; overflow: hidden; background: #fff; height: 100%; transition: box-shadow .2s, transform .2s; }
.explained-card:hover { box-shadow: var(--wcb-shadow); transform: translateY(-2px); }
.explained-card .body { padding: 14px; }
.explained-card .thumb { aspect-ratio: 16/9; background: var(--wcb-accent); overflow: hidden; }
.explained-card .thumb img { width:100%; height:100%; object-fit: cover; }

/* ---------- Author chip ---------- */
.author-chip { display: flex; align-items: center; gap: 10px; }
.author-chip img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }

/* ---------- Sidebar ---------- */
.sidebar-box { border: 1px solid var(--wcb-border); border-radius: 8px; padding: 16px; margin-bottom: 22px; background: #fff; }
.sticky-side { position: sticky; top: 70px; }

/* ---------- Ads ---------- */
.ad-slot { background: var(--wcb-accent); border: 1px dashed #d8d8d8; border-radius: 6px; text-align: center; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ad-slot img { display: block; margin: 0 auto; }
.ad-label { font-size: 10px; letter-spacing: 1px; text-transform: uppercase; color: #aaa; display: block; text-align: center; margin-bottom: 4px; }
.mobile-sticky-ad { position: fixed; left: 0; right: 0; bottom: 0; z-index: 1040; background: #fff; border-top: 1px solid var(--wcb-border); text-align: center; padding: 4px; box-shadow: 0 -2px 8px rgba(0,0,0,.08); }
.mobile-sticky-ad .close-ad { position: absolute; right: 6px; top: -22px; background: var(--wcb-secondary); color:#fff; border:0; width: 22px; height: 22px; border-radius: 4px 4px 0 0; font-size: 12px; }

/* ---------- Article page ---------- */
.article-header h1 { font-size: 38px; line-height: 1.15; }
.article-subtitle { font-size: 19px; color: var(--wcb-muted); font-weight: 400; }
.article-body { font-size: 18px; line-height: 1.8; color: #222; }
.article-body p { margin-bottom: 22px; }
.article-body h2 { font-size: 26px; margin: 32px 0 14px; }
.article-body h3 { font-size: 22px; margin: 26px 0 12px; }
.article-body blockquote { border-left: 4px solid var(--wcb-primary); background: var(--wcb-bg-soft); padding: 16px 20px; font-family: var(--wcb-font-head); font-size: 20px; font-style: italic; margin: 26px 0; }
.article-body img { border-radius: 6px; margin: 18px 0; }
.article-body a { color: var(--wcb-primary); text-decoration: underline; }

.toc { background: var(--wcb-bg-soft); border: 1px solid var(--wcb-border); border-radius: 8px; padding: 16px 18px; }
.toc h4 { font-size: 14px; text-transform: uppercase; letter-spacing: .5px; }
.toc ol { margin: 0; padding-left: 18px; }
.toc a { color: var(--wcb-secondary); font-size: 15px; }

.share-sticky { position: sticky; top: 80px; display: flex; flex-direction: column; gap: 10px; }
.share-btn { width: 42px; height: 42px; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 16px; }
.share-btn.fb { background: #1877f2; } .share-btn.tw { background: #111; }
.share-btn.wa { background: #25d366; } .share-btn.ln { background: #0a66c2; }
.share-btn.cp { background: var(--wcb-secondary); }

.keypoints { background: #fff7f7; border: 1px solid #f3d6da; border-radius: 8px; padding: 18px 20px; }
.keypoints li { margin-bottom: 8px; }

.faq-item { border-bottom: 1px solid var(--wcb-border); }
.faq-item summary { cursor: pointer; font-weight: 700; font-family: var(--wcb-font-head); padding: 14px 0; list-style: none; display:flex; justify-content: space-between; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item[open] summary { color: var(--wcb-primary); }

.breadcrumb-wcb { font-size: 13px; color: var(--wcb-muted); }
.breadcrumb-wcb a { color: var(--wcb-muted); }
.breadcrumb-wcb a:hover { color: var(--wcb-primary); }

/* ---------- Newsletter ---------- */
.newsletter-band { background: var(--wcb-secondary); color: #fff; border-radius: 10px; padding: 30px; }
.newsletter-band h3 { color: #fff; }
.newsletter-band .form-control { border: 0; }
.btn-wcb { background: var(--wcb-primary); color: #fff; font-weight: 700; border: 0; }
.btn-wcb:hover { background: var(--wcb-primary-dark); color: #fff; }
.btn-outline-wcb { border: 1.5px solid var(--wcb-primary); color: var(--wcb-primary); font-weight: 700; background: transparent; }
.btn-outline-wcb:hover { background: var(--wcb-primary); color: #fff; }

/* ---------- Footer ---------- */
.site-footer { background: var(--wcb-secondary); color: #cfcfcf; padding: 46px 0 0; margin-top: 40px; }
.site-footer h5 { color: #fff; font-size: 14px; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 16px; }
.site-footer a { color: #cfcfcf; font-size: 14px; }
.site-footer a:hover { color: #fff; }
.footer-brand { font-family: var(--wcb-font-head); font-weight: 900; font-size: 26px; color:#fff; }
.footer-bottom { border-top: 1px solid #333; margin-top: 30px; padding: 16px 0; font-size: 13px; color: #999; }
.footer-social a { width: 36px; height: 36px; display:inline-flex; align-items:center; justify-content:center; border:1px solid #444; border-radius:50%; margin-right:6px; }
.footer-social a:hover { background: var(--wcb-primary); border-color: var(--wcb-primary); }

/* ---------- Dark mode ---------- */
body.dark-mode { --wcb-bg:#121212; --wcb-bg-soft:#1c1c1c; --wcb-ink:#e8e8e8; --wcb-secondary:#f1f1f1; --wcb-muted:#9a9a9a; --wcb-border:#2b2b2b; --wcb-accent:#1f1f1f; background:#121212; color:#e8e8e8; }
body.dark-mode .masthead, body.dark-mode .breaking-ticker { background:#121212; }
body.dark-mode .brand-logo, body.dark-mode h1, body.dark-mode h2, body.dark-mode h3 { color:#f1f1f1; }
body.dark-mode .explained-card, body.dark-mode .sidebar-box, body.dark-mode .toc { background:#1c1c1c; }
body.dark-mode .article-card .title a { color:#f1f1f1; }
body.dark-mode .ticker-move a { color:#e8e8e8; }

.dark-toggle { background:none; border:1px solid var(--wcb-border); color:var(--wcb-secondary); width:38px; height:38px; border-radius:50%; }

/* ---------- Responsive ---------- */
@media (max-width: 991px){
    .article-header h1 { font-size: 28px; }
    .hero-overlay .h-title { font-size: 24px; }
    .article-body { font-size: 17px; }
    .brand-logo { font-size: 26px; }
}
@media (max-width: 575px){
    .hero-overlay { padding: 16px; }
    .hero-overlay .h-title { font-size: 19px; }
    .section-head h2 { font-size: 19px; }
}

/* pagination */
.pagination .page-link { color: var(--wcb-secondary); }
.pagination .page-item.active .page-link { background: var(--wcb-primary); border-color: var(--wcb-primary); }
