/* শিবপুরের আলো — classic newspaper theme
   Green = main (header/menu, local labels) · Red = breaking/ticker · Blue = links & general labels */
:root {
  --green: #006a4e;
  --green-dark: #004d38;
  --green-soft: #e8f2ee;
  --red: #d71920;
  --blue: #1d4e89;
  --ink: #1a1a1a;
  --muted: #5f6368;
  --rule: #d9d9d9;
  --paper: #ffffff;
  --head: "Noto Serif Bengali", "SolaimanLipi", serif;
  --body: "Hind Siliguri", "Noto Sans Bengali", "SolaimanLipi", sans-serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--paper); color: var(--ink); font-family: var(--body); font-size: 17px; line-height: 1.7; }
a { color: inherit; text-decoration: none; }
a:hover { color: var(--blue); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.main { padding-top: 16px; padding-bottom: 32px; min-height: 60vh; }
h1, h2, h3 { font-family: var(--head); line-height: 1.35; margin: 0; }

/* Top bar */
.topbar { background: var(--green-dark); color: #fff; font-size: 14px; }
.topbar-in { display: flex; justify-content: space-between; gap: 12px; padding-top: 5px; padding-bottom: 5px; flex-wrap: wrap; }
.topbar .sep { opacity: .5; margin: 0 4px; }
.topbar-links a { margin-left: 14px; }
.topbar-links a:hover { color: #ffd7d8; }

/* Masthead */
.masthead { border-bottom: 1px solid var(--rule); }
.masthead-in { display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 16px; padding-top: 14px; padding-bottom: 14px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-sun { width: 52px; height: 52px; }
.logo-text { font-family: var(--head); font-size: 40px; font-weight: 800; color: var(--green); line-height: 1; }
.logo-text b { color: var(--red); }
.tagline { margin: 0; color: var(--muted); font-size: 15px; text-align: center; }
.search-mini { display: flex; }
.search-mini input, .search-big input { border: 1px solid var(--rule); border-right: 0; padding: 8px 10px; font: inherit; font-size: 15px; min-width: 0; width: 190px; }
.search-mini button, .search-big button { background: var(--green); color: #fff; border: 0; padding: 0 14px; font: inherit; font-size: 15px; cursor: pointer; }
.search-mini button:hover, .search-big button:hover { background: var(--green-dark); }

/* Main menu */
.mainnav { background: var(--green); position: sticky; top: 0; z-index: 10; box-shadow: 0 1px 3px rgba(0,0,0,.15); }
.mainnav-in { display: flex; overflow-x: auto; scrollbar-width: none; }
.mainnav-in::-webkit-scrollbar { display: none; }
.mainnav a { color: #fff; padding: 10px 13px; white-space: nowrap; font-weight: 600; font-size: 16px; }
.mainnav a:hover, .mainnav a.on { background: var(--green-dark); color: #fff; box-shadow: inset 0 -3px 0 var(--red); }

/* Ticker */
.ticker { display: flex; align-items: stretch; border: 1px solid var(--rule); margin-bottom: 18px; background: #fff; overflow: hidden; }
.ticker-label { background: var(--red); color: #fff; font-weight: 700; padding: 6px 14px; white-space: nowrap; flex: none; }
.ticker-track { overflow: hidden; flex: 1; display: flex; align-items: center; }
.ticker-move { display: inline-flex; white-space: nowrap; padding-left: 100%; animation: ticker var(--tick-time, 40s) linear infinite; }
.ticker:hover .ticker-move { animation-play-state: paused; }
.ticker-move a { padding: 0 22px; position: relative; font-weight: 500; }
.ticker-move a::before { content: "●"; color: var(--red); font-size: 10px; position: absolute; left: 4px; top: 50%; transform: translateY(-50%); }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) { .ticker-move { animation: none; padding-left: 0; } }

/* Layout */
.two-col { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; }
.sidebar { border-left: 1px solid var(--rule); padding-left: 24px; }

/* Category labels */
.cat { display: inline-block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.cat-local { color: var(--green); }
.cat-general { color: var(--blue); }
.tag-red { color: var(--red); font-weight: 700; }

/* Lead story */
.lead { display: grid; grid-template-columns: 1.25fr 1fr; gap: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); margin-bottom: 18px; }
.lead h1 { font-size: 32px; font-weight: 800; margin-bottom: 8px; }
.lead p { margin: 0 0 8px; color: #333; }
.lead time, .card time { color: var(--muted); font-size: 14px; }
.thumb { display: block; aspect-ratio: 16 / 9; background: var(--green-soft); overflow: hidden; }
.thumb img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
.thumb:hover img { transform: scale(1.03); }
.noimg { display: flex; align-items: center; justify-content: center; height: 100%; color: var(--green); font-family: var(--head); font-weight: 700; opacity: .55; font-size: 18px; }

/* Cards */
.grid-4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-bottom: 18px; border-bottom: 1px solid var(--rule); }
.card h3 { font-size: 18px; font-weight: 700; margin: 2px 0 4px; }
.card p { margin: 0 0 4px; color: #444; font-size: 15px; }
.card-sm .thumb { margin-bottom: 8px; }
.list { display: flex; flex-direction: column; }
.card-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.card-row h3 { font-size: 20px; }

.section-title { font-size: 22px; font-weight: 800; color: var(--green); border-top: 3px solid var(--green); padding-top: 6px; margin: 22px 0 6px; }
.section-title-dark a { color: inherit; }
.page-title { font-size: 28px; font-weight: 800; border-bottom: 3px solid var(--green); padding-bottom: 6px; margin-bottom: 8px; }
.cat-local-border { border-color: var(--green); color: var(--green); }
.cat-general-border { border-color: var(--blue); color: var(--blue); }
.more-link { text-align: right; margin: 12px 0 0; }
.more-link a, .article-body a, .static-page a { color: var(--blue); font-weight: 600; }
.empty-big { padding: 40px 0; color: var(--muted); font-size: 18px; }
.note { color: var(--muted); font-size: 13px; margin: 8px 0 0; }

/* Sidebar boxes */
.box { margin-bottom: 24px; }
.box-title { font-size: 20px; color: #fff; background: var(--green); padding: 6px 12px; }
.tab-heads { display: grid; grid-template-columns: 1fr 1fr; }
.tab-head { font: inherit; font-weight: 700; font-size: 17px; border: 0; padding: 8px; cursor: pointer; background: #eef0ef; color: var(--ink); border-bottom: 3px solid transparent; }
.tab-head.on { background: var(--green); color: #fff; border-bottom-color: var(--red); }
.tab-pane { display: none; }
.tab-pane.on { display: block; }
.rank { list-style: none; margin: 0; padding: 0; }
.rank li { display: grid; grid-template-columns: 34px 1fr; gap: 6px; padding: 10px 0; border-bottom: 1px solid var(--rule); font-size: 16px; line-height: 1.5; }
.rank-no { font-family: var(--head); font-size: 24px; font-weight: 800; color: var(--red); line-height: 1; }
.rank li.empty { display: block; color: var(--muted); }

/* Gallery */
.gallery-strip { background: #141414; color: #fff; margin: 28px 0 0; padding: 4px 16px 20px; }
.gallery-strip .section-title { color: #fff; border-top-color: var(--red); }
.gallery-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.gal-item { position: relative; display: block; aspect-ratio: 16 / 10; overflow: hidden; background: #333; }
.gal-item img { width: 100%; height: 100%; object-fit: cover; opacity: .9; }
.gal-cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 20px 10px 8px; background: linear-gradient(transparent, rgba(0,0,0,.85)); font-weight: 600; color: #fff; }
.play { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); background: var(--red); color: #fff; width: 52px; height: 52px; border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 20px; }
.gallery-page { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.gal-card { margin: 0; }
.gal-card figcaption { font-size: 15px; padding-top: 6px; }
.gal-card time { color: var(--muted); font-size: 13px; }
.video { position: relative; aspect-ratio: 16 / 9; }
.video iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }

/* Article */
.article h1 { font-size: 34px; font-weight: 800; margin: 4px 0 10px; }
.crumb { font-size: 14px; color: var(--muted); }
.crumb a { color: var(--green); font-weight: 600; }
.kicker { color: var(--red); font-weight: 700; margin: 6px 0 0; }
.standfirst { font-size: 19px; color: #333; margin: 0 0 12px; }
.byline { font-size: 15px; color: var(--muted); border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 8px 0; }
.byline strong { color: var(--ink); }
.lead-fig { margin: 16px 0; }
.lead-fig figcaption { font-size: 14px; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--rule); }
.article-body { font-size: 19px; line-height: 1.85; }
.article-body p { margin: 0 0 1em; }
.article-body h2 { font-size: 24px; margin: 1.2em 0 .5em; }
.article-body blockquote { margin: 1em 0; padding: 4px 18px; border-left: 4px solid var(--red); background: #faf6f6; font-style: italic; }
.article-body img { margin: 1em 0; }
.static-page { max-width: 820px; }

/* Share */
.share { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 14px 0; }
.share-label { font-weight: 600; font-size: 15px; }
.sh { font: inherit; font-size: 14px; font-weight: 600; color: #fff; border: 0; border-radius: 4px; padding: 5px 12px; cursor: pointer; }
.sh:hover { color: #fff; opacity: .88; }
.sh-fb { background: #1877f2; }
.sh-wa { background: #25d366; }
.sh-ms { background: #0084ff; }
.sh-copy { background: #555; }

/* Search & pager */
.search-big { display: flex; max-width: 620px; margin: 10px 0; }
.search-big input { flex: 1; width: auto; font-size: 18px; padding: 10px 12px; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 20px; color: var(--muted); }
.pager a { color: var(--blue); font-weight: 600; }

/* Footer */
.footer { background: #111; color: #ccc; margin-top: 20px; font-size: 15px; }
.footer-in { display: grid; grid-template-columns: 2fr 1fr; gap: 24px; padding-top: 24px; padding-bottom: 16px; }
.footer p { margin: 0 0 8px; }
.footer-logo { font-family: var(--head); font-size: 28px; font-weight: 800; color: #fff; margin-bottom: 8px; }
.footer-logo b { color: var(--red); }
.footer-links { display: flex; flex-direction: column; gap: 6px; }
.footer-links a:hover { color: #fff; }
.copyright { text-align: center; padding: 10px; border-top: 3px solid var(--green); background: #000; font-size: 14px; }

/* Tablet */
@media (max-width: 960px) {
  .two-col { grid-template-columns: 1fr; }
  .sidebar { border-left: 0; padding-left: 0; }
  .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tagline { display: none; }
  .masthead-in { grid-template-columns: 1fr auto; }
}
/* Phone */
@media (max-width: 640px) {
  body { font-size: 16px; }
  .masthead-in { grid-template-columns: 1fr; justify-items: center; gap: 10px; }
  .logo-text { font-size: 34px; }
  .logo-sun { width: 42px; height: 42px; }
  .search-mini { width: 100%; }
  .search-mini input { flex: 1; width: auto; }
  .lead { grid-template-columns: 1fr; gap: 10px; }
  .lead h1 { font-size: 25px; }
  .card-row { grid-template-columns: 120px minmax(0, 1fr); gap: 12px; }
  .card-row h3 { font-size: 17px; }
  .card-row p { display: none; }
  .card-sm h3 { font-size: 16px; }
  .gallery-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gallery-page { grid-template-columns: 1fr; }
  .article h1 { font-size: 26px; }
  .article-body { font-size: 18px; }
  .footer-in { grid-template-columns: 1fr; }
  .topbar-in { justify-content: center; }
  .topbar-links { display: none; }
}
