/* ================================================================
   TaxNepal News CSS — /css/news.css
   All article pages include this alongside Bootstrap + style.css
   ================================================================ */
:root {
  --blue:   #1a3c5e;
  --blue2:  #2c5282;
  --red:    #c0392b;
  --green:  #16a34a;
  --orange: #d97706;
  --bg:     #f0f4f8;
  --card:   #ffffff;
  --border: #e2e8f0;
  --muted:  #64748b;
  --r:      12px;
  --shadow: 0 2px 12px rgba(0,0,0,.07);
}

/* ── Footer styles ── */
.tn-footer { background: var(--blue); color: rgba(255,255,255,.82); margin-top: 0; }
.footer-top { padding: 48px 0 32px; }
.ft-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: grid; grid-template-columns: 2fr 1.4fr 1.2fr 1.6fr; gap: 32px; }
@media(max-width:900px) { .ft-inner { grid-template-columns: 1fr 1fr; } }
@media(max-width:560px) { .ft-inner { grid-template-columns: 1fr; } }
.ft-logo { height: 38px; filter: brightness(0) invert(1); margin-bottom: 14px; display: block; }
.ft-desc { font-size: .8rem; opacity: .8; line-height: 1.7; margin-bottom: 16px; }
.ft-social { display: flex; gap: 10px; }
.ft-social a { width: 34px; height: 34px; border-radius: 50%; background: rgba(255,255,255,.15); display: flex; align-items: center; justify-content: center; color: #fff; font-size: .85rem; text-decoration: none; transition: background .2s; }
.ft-social a:hover { background: var(--red); color: #fff; }
.ft-heading { color: #fff; font-size: .88rem; font-weight: 700; margin-bottom: 16px; }
.ft-links { list-style: none; padding: 0; margin: 0; }
.ft-links li { margin-bottom: 8px; }
.ft-links a { color: rgba(255,255,255,.75); text-decoration: none; font-size: .8rem; display: flex; align-items: center; gap: 6px; transition: color .15s; }
.ft-links a .fas { color: var(--red); font-size: .65rem; }
.ft-links a:hover { color: #fff; }
.ft-contact { list-style: none; padding: 0; margin: 0 0 16px; }
.ft-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: .8rem; opacity: .85; }
.ft-contact li .fas, .ft-contact li .fab { width: 16px; margin-top: 2px; color: var(--red); flex-shrink: 0; }
.ft-contact a { color: rgba(255,255,255,.82); text-decoration: none; }
.ft-contact a:hover { color: #fff; }
.ft-consult-btn { display: inline-block; background: var(--red); color: #fff; padding: 9px 18px; border-radius: 8px; font-size: .8rem; font-weight: 700; text-decoration: none; transition: background .2s; }
.ft-consult-btn:hover { background: #a93226; color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.12); padding: 14px 0; text-align: center; }
.footer-bottom .ft-inner { display: block; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.footer-bottom p { font-size: .72rem; opacity: .65; margin: 4px 0; }
.footer-bottom a { color: rgba(255,255,255,.7); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.ft-disc { opacity: .55 !important; font-size: .68rem !important; }

/* ── WhatsApp & Back-to-top ── */
.wa-float { position: fixed; bottom: 28px; right: 28px; z-index: 9000; display: flex; flex-direction: column; align-items: flex-end; gap: 10px; }
.wa-tooltip { background: #25d366; color: #fff; font-size: .73rem; font-weight: 700; padding: 5px 12px; border-radius: 20px; white-space: nowrap; box-shadow: 0 2px 8px rgba(0,0,0,.15); }
.wa-btn { width: 56px; height: 56px; background: #25d366; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #fff; font-size: 1.6rem; box-shadow: 0 4px 16px rgba(37,211,102,.4); text-decoration: none; transition: transform .2s, box-shadow .2s; }
.wa-btn:hover { transform: scale(1.1); box-shadow: 0 6px 24px rgba(37,211,102,.55); color: #fff; }
.btt { position: fixed; bottom: 94px; right: 28px; width: 44px; height: 44px; background: var(--blue); color: #fff; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: .95rem; opacity: 0; transition: opacity .3s, background .2s; z-index: 8999; text-decoration: none; box-shadow: 0 2px 10px rgba(0,0,0,.2); }
.btt.vis { opacity: 1; }
.btt:hover { background: var(--red); color: #fff; }
@media(max-width:480px) { .wa-float { bottom: 16px; right: 16px; } .btt { right: 16px; bottom: 82px; } }

/* ── Article page layout ── */
.news-hero { background: linear-gradient(135deg, var(--blue) 0%, var(--blue2) 52%, #c0392b 100%); padding: 52px 0 40px; color: #fff; position: relative; overflow: hidden; }
.news-hero::before { content: ''; position: absolute; top: -70px; right: -90px; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.05); pointer-events: none; }
.news-hero .nh-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; position: relative; z-index: 1; }
.hero-badge { display: inline-flex; align-items: center; gap: 6px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); color: #fff; font-size: .67rem; font-weight: 700; padding: 4px 14px; border-radius: 20px; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 12px; }
.news-hero h1 { font-size: clamp(1.35rem, 3.5vw, 2.1rem); font-weight: 700; line-height: 1.3; margin-bottom: 12px; }
.hero-meta { display: flex; flex-wrap: wrap; gap: 12px; font-size: .78rem; opacity: .88; margin-bottom: 10px; }
.hero-meta span { display: flex; align-items: center; gap: 5px; }
.hero-counts { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
.hcount { display: flex; align-items: center; gap: 5px; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.25); border-radius: 20px; padding: 4px 12px; font-size: .72rem; font-weight: 600; color: #fff; }
.hcount.verified { background: rgba(22,163,74,.35); border-color: rgba(22,163,74,.5); }

/* Breadcrumb */
.news-bc { background: #fff; border-bottom: 1px solid var(--border); padding: 8px 0; font-size: .74rem; color: var(--muted); }
.news-bc .nbc-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.news-bc a { color: var(--muted); text-decoration: none; }
.news-bc a:hover { color: var(--blue); }

/* Lang + Audio bar */
.news-lang-bar { background: #fff; border-bottom: 2px solid var(--border); padding: 9px 0; position: sticky; top: 66px; z-index: 400; box-shadow: 0 2px 6px rgba(0,0,0,.05); }
.news-lang-bar .nlb-inner { max-width: 1200px; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.lpills { display: flex; border: 2px solid var(--blue); border-radius: 7px; overflow: hidden; }
.lpill { background: #fff; border: none; padding: 5px 20px; font-size: .79rem; font-weight: 700; cursor: pointer; color: var(--blue); font-family: 'Poppins', sans-serif; transition: all .18s; }
.lpill.on { background: var(--blue); color: #fff; }
.audio-pill { background: linear-gradient(90deg, var(--blue), var(--blue2)); border-radius: 30px; padding: 6px 14px; display: flex; align-items: center; gap: 8px; color: #fff; }
.audio-pill button { width: 30px; height: 30px; border-radius: 50%; background: var(--red); border: none; color: #fff; font-size: .78rem; cursor: pointer; display: flex; align-items: center; justify-content: center; transition: transform .15s; flex-shrink: 0; }
.audio-pill button:hover { transform: scale(1.1); }
.audio-pill .at { font-size: .72rem; }
.audio-pill .at strong { display: block; font-size: .76rem; }

/* Content grid */
.news-page-wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.news-grid { display: grid; grid-template-columns: 1fr 340px; gap: 28px; padding: 28px 0 60px; }
@media(max-width:960px) { .news-grid { grid-template-columns: 1fr; } }

/* Article body */
.article-body { font-size: .96rem; line-height: 1.9; color: #1e293b; }
.article-body p { margin-bottom: 1rem; }
.article-body ul, .article-body ol { padding-left: 22px; margin-bottom: 1rem; }
.article-body li { margin-bottom: .45rem; line-height: 1.7; }
html[lang="ne"] .article-body { font-family: 'Noto Sans Devanagari', 'Poppins', sans-serif; font-size: .93rem; line-height: 2.1; }
.sec-title { font-size: 1.08rem; font-weight: 700; color: var(--blue); margin: 32px 0 12px; padding-left: 14px; border-left: 4px solid var(--red); }

/* Callouts */
.callout { border-radius: var(--r); padding: 15px 19px; margin: 16px 0; }
.callout.yellow { background: #fffbeb; border: 1px solid #fcd34d; border-left: 5px solid var(--orange); }
.callout.green  { background: #f0fdf4; border: 1px solid #86efac; border-left: 5px solid var(--green); }
.callout.blue   { background: #eff6ff; border: 1px solid #93c5fd; border-left: 5px solid var(--blue); }
.callout.red    { background: #fff5f5; border: 1px solid #fca5a5; border-left: 5px solid var(--red); }
.ct { font-weight: 700; font-size: .76rem; text-transform: uppercase; letter-spacing: .5px; margin-bottom: 7px; }
.callout.yellow .ct { color: #92400e; }
.callout.green  .ct { color: #166534; }
.callout.blue   .ct { color: var(--blue); }
.callout.red    .ct { color: #991b1b; }

/* Tables */
.tw { overflow-x: auto; border-radius: var(--r); box-shadow: var(--shadow); margin: 14px 0; }
.tt { width: 100%; border-collapse: collapse; font-size: .83rem; }
.tt thead th { background: var(--blue); color: #fff; padding: 11px 14px; text-align: left; font-weight: 600; white-space: nowrap; }
.tt tbody td { padding: 10px 14px; border-bottom: 1px solid var(--border); }
.tt tr:nth-child(even) td { background: #f8fafc; }
.tt .hl td { background: #f0fdf4; color: var(--green); font-weight: 700; }

/* Stats boxes */
.stats-row { display: grid; grid-template-columns: repeat(4,1fr); gap: 12px; margin: 16px 0; }
@media(max-width:640px) { .stats-row { grid-template-columns: 1fr 1fr; } }
.sbox { background: var(--card); border: 1px solid var(--border); border-radius: var(--r); padding: 14px; text-align: center; box-shadow: var(--shadow); }
.sbox .sv { font-size: 1.15rem; font-weight: 700; color: var(--blue); }
.sbox .sl { font-size: .69rem; color: var(--muted); margin-top: 3px; line-height: 1.4; }

/* Merits/Demerits */
.md-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 14px 0; }
@media(max-width:600px) { .md-grid { grid-template-columns: 1fr; } }
.merit   { background: #f0fdf4; border: 1px solid #86efac; border-radius: var(--r); padding: 16px; }
.demerit { background: #fff5f5; border: 1px solid #fca5a5; border-radius: var(--r); padding: 16px; }
.merit h5   { color: #166534; font-weight: 700; font-size: .83rem; margin-bottom: 10px; }
.demerit h5 { color: #991b1b; font-weight: 700; font-size: .83rem; margin-bottom: 10px; }
.md-item { display: flex; gap: 7px; font-size: .8rem; padding: 5px 0; border-bottom: 1px dashed rgba(0,0,0,.07); line-height: 1.5; }
.md-item:last-child { border: none; }

/* Share bar */
.share-bar { display: flex; gap: 9px; flex-wrap: wrap; margin: 16px 0; align-items: center; }
.sh { padding: 8px 15px; border-radius: 8px; font-size: .75rem; font-weight: 700; border: none; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; text-decoration: none; transition: opacity .15s; }
.sh:hover { opacity: .88; }
.sh-fb { background: #1877f2; color: #fff; }
.sh-wa { background: #25d366; color: #fff; }
.sh-tw { background: #1da1f2; color: #fff; }
.sh-li { background: #0a66c2; color: #fff; }
.sh-cp { background: #6b7280; color: #fff; }
.sh-cnt { display: inline-flex; align-items: center; gap: 5px; background: var(--bg); border: 1px solid var(--border); border-radius: 8px; padding: 6px 12px; font-size: .73rem; font-weight: 600; color: var(--muted); }

/* CTA box */
.cta-box { background: linear-gradient(135deg, var(--blue), var(--blue2)); border-radius: 14px; padding: 26px; color: #fff; text-align: center; margin: 28px 0; }
.cta-box h4 { font-weight: 700; margin-bottom: 8px; }
.cta-box p { opacity: .88; font-size: .85rem; margin-bottom: 16px; }
.cta-box a { background: var(--red); color: #fff; padding: 11px 26px; border-radius: 8px; font-weight: 700; text-decoration: none; display: inline-block; transition: background .2s; }
.cta-box a:hover { background: #a93226; color: #fff; }

/* AI disclaimer */
.ai-disc { background: #f8fafc; border: 1px solid var(--border); border-radius: var(--r); padding: 12px 16px; font-size: .71rem; color: var(--muted); margin-top: 24px; line-height: 1.6; }
.ai-disc a { color: var(--muted); text-decoration: underline; }

/* Sidebar */
.sbc { background: var(--card); border-radius: var(--r); padding: 18px; border: 1px solid var(--border); margin-bottom: 18px; box-shadow: var(--shadow); }
.sbc h5 { font-weight: 700; color: var(--blue); font-size: .83rem; margin-bottom: 11px; padding-bottom: 8px; border-bottom: 2px solid var(--border); }
.rel-item { display: flex; gap: 9px; padding: 8px 0; border-bottom: 1px dashed var(--border); text-decoration: none; color: inherit; }
.rel-item:last-child { border: none; }
.rel-item:hover .ri-t { color: var(--red); }
.ri-n { width: 24px; height: 24px; border-radius: 50%; background: var(--blue); color: #fff; font-size: .65rem; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 2px; }
.ri-t { font-size: .79rem; font-weight: 600; color: var(--blue); line-height: 1.4; }
.tag-cloud { display: flex; flex-wrap: wrap; gap: 6px; }
.tag { background: var(--bg); color: var(--blue); padding: 3px 11px; border-radius: 20px; font-size: .71rem; font-weight: 600; }
/* Quick calc input */
.qc-input { width: 100%; padding: 9px 12px; border: 2px solid var(--border); border-radius: 8px; font-family: 'Poppins', sans-serif; font-size: .84rem; margin-bottom: 8px; outline: none; }
.qc-input:focus { border-color: var(--blue); }
.qc-res { font-size: .8rem; background: var(--bg); border-radius: 8px; padding: 10px; display: none; margin-bottom: 8px; }

/* Bilingual show/hide */
.ne- { display: none; }
.en- { display: block; }
html[lang="ne"] .ne- { display: block; }
html[lang="ne"] .en- { display: none; }
.nei { display: none; }
.eni { display: inline; }
html[lang="ne"] .nei { display: inline; }
html[lang="ne"] .eni { display: none; }