/* বর্ণ টেলিভিশন — পাবলিক সাইট + অ্যাডমিন
   রঙ/ফন্ট অ্যাডমিন → সেটিংস → থিম ও রঙ থেকে বদলানো যায় (CSS ভ্যারিয়েবল)। */
:root {
  --brand: #b42318;
  --header-bg: #ffffff;
  --nav-bg: #b42318;
  --footer-bg: #1a1a1a;
  --page-bg: #ffffff;
  --text: #1a1a1a;
  --font: 'Hind Siliguri', sans-serif;
  --base: 17px;
}
* { box-sizing: border-box; }
body { margin: 0; font-family: var(--font); background: var(--page-bg); color: var(--text); font-size: var(--base); line-height: 1.6; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }
.wrap { max-width: 1180px; margin: 0 auto; padding: 0 14px; }

/* উপরের পাতলা বার */
.topbar { background: #111; color: #ddd; font-size: 14px; }
.topbar-in { display: flex; align-items: center; gap: 14px; padding-top: 5px; padding-bottom: 5px; }
.top-date { white-space: nowrap; }
.top-tag { color: #aaa; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.top-fb { margin-left: auto; color: #fff; background: #1877f2; padding: 2px 10px; border-radius: 5px; font-weight: 600; white-space: nowrap; }
.top-fb:hover { text-decoration: none; opacity: .92; }

/* মাস্টহেড — বড় নাম */
.masthead { background: var(--header-bg); border-top: 4px solid var(--brand); border-bottom: 1px solid #ddd; text-align: center; padding: 18px 0 14px; }
.mast-name { font-size: 54px; font-weight: 800; line-height: 1.15; color: var(--text); letter-spacing: .5px; }
.mast-name:hover { text-decoration: none; }
.mast-tag { color: #666; font-size: 15.5px; margin-top: 2px; }

/* লোগো (অ্যাডমিন → সেটিংস → লোগো) */
.mast-logo { display: inline-block; }
.mast-logo img { max-height: 76px; width: auto; max-width: 92%; }
.mast-both { display: flex; align-items: center; justify-content: center; gap: 16px; }
.mast-both:hover { text-decoration: none; }
.mast-both img { max-height: 76px; width: auto; max-width: 45%; }
.logo-preview { max-height: 90px; max-width: 320px; background: #f4f4f4; border: 1px solid #e6e2d8; border-radius: 8px; padding: 6px; }

/* বিভাগের মেনু (আটকে থাকে) */
.catnav { background: var(--nav-bg); position: sticky; top: 0; z-index: 50; box-shadow: 0 1px 4px rgba(0,0,0,.18); }
.nav-in { display: flex; align-items: center; gap: 2px; padding-top: 5px; padding-bottom: 5px; overflow-x: auto; white-space: nowrap; -webkit-overflow-scrolling: touch; }
.nav-in a { color: #fff; padding: 6px 12px; border-radius: 6px; font-weight: 600; }
.nav-in a:hover { background: rgba(255,255,255,.18); text-decoration: none; }
.nav-search { margin-left: auto; }
.searchbox { margin-left: auto; display: flex; gap: 6px; }
.searchbox input { border: 0; border-radius: 6px; padding: 7px 10px; font-family: inherit; font-size: 15px; width: 170px; }
.searchbox button, .bigsearch button { border: 0; border-radius: 6px; background: #1d2321; color: #fff; padding: 7px 12px; font-family: inherit; cursor: pointer; }

/* টিকার */
.ticker { display: flex; gap: 0; background: #fff; border: 1px solid #ead9d6; border-left: 4px solid var(--brand); margin: 14px 0; overflow: hidden; }
.ticker-label { background: var(--brand); color: #fff; font-weight: 700; padding: 8px 14px; white-space: nowrap; }
.ticker-track { padding: 8px 12px; white-space: nowrap; overflow-x: auto; }
.ticker-track a { color: var(--text); }

/* বিজ্ঞাপন */
.ad-slot { margin: 14px 0; text-align: center; }
.ad-label { display: block; font-size: 11.5px; color: #999; letter-spacing: 1px; margin-bottom: 3px; }
.ad-slot img { max-width: 100%; height: auto; border: 1px solid #eee; }
.ad-header img { max-height: 110px; }
.ad-sidebar { margin: 0 0 14px; }
.ad-article_bottom { margin: 18px 0; }

/* লিড (প্রধান) খবর */
.lead-wrap { display: grid; grid-template-columns: 1.9fr 1fr; gap: 20px; margin: 16px 0 6px; }
.lead-main { border-bottom: 2px solid #eee; padding-bottom: 12px; }
.lead-img { width: 100%; max-height: 420px; object-fit: cover; display: block; margin-bottom: 12px; }
.lead-title { font-size: 34px; line-height: 1.3; margin: 8px 0; }
.lead-title a { color: var(--text); }
.lead-title a:hover { color: var(--brand); text-decoration: none; }
.lead-sum { color: #444; font-size: calc(var(--base) + 1px); margin: 6px 0 10px; }
.lead-side { border-left: 1px solid #eee; padding-left: 18px; }
.side-title { font-size: 20px; margin: 0 0 10px; padding-bottom: 6px; border-bottom: 3px solid var(--brand); }
.side-item { display: flex; gap: 10px; padding: 9px 0; border-bottom: 1px solid #f0f0f0; color: var(--text); }
.side-item:hover { text-decoration: none; }
.side-item:hover .side-h { color: var(--brand); }
.side-item img { width: 82px; height: 60px; object-fit: cover; flex: none; }
.side-txt { display: flex; flex-direction: column; gap: 2px; }
.side-h { font-weight: 600; line-height: 1.4; font-size: 16.5px; }

/* দুই কলামের লেআউট (খবর/বিভাগ পেজ) */
.layout { display: grid; grid-template-columns: 1fr 320px; gap: 24px; margin: 16px 0; align-items: start; }
.sidebar .side-box { border: 1px solid #eee; padding: 14px 16px; }

/* কার্ড গ্রিড */
.sec-head { display: flex; align-items: end; justify-content: space-between; }
.sec-title { font-size: 24px; border-bottom: 3px solid var(--brand); padding-bottom: 4px; margin: 24px 0 14px; }
.more { font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; margin-bottom: 10px; }
.grid-2col { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.card { background: #fff; border: 1px solid #e8e8e8; overflow: hidden; }
.card img { width: 100%; height: 160px; object-fit: cover; display: block; }
.card-body { padding: 12px 14px; }
.card h3 { margin: 6px 0; font-size: 19px; line-height: 1.4; }
.card h3 a { color: var(--text); }
.card h3 a:hover { color: var(--brand); text-decoration: none; }
.card p { margin: 4px 0 8px; color: #44524b; font-size: 15.5px; }
.chip { display: inline-block; background: var(--brand); color: #fff; font-size: 13px; font-weight: 600; padding: 2px 9px; border-radius: 20px; }
a.chip:hover { text-decoration: none; opacity: .9; }
.chip.breaking { background: #e8590c; }
.meta { color: #75827a; font-size: 14px; }
.empty { background: #fff; border: 1px dashed #cbb; border-radius: 12px; padding: 26px; text-align: center; color: #66756c; margin: 16px 0; }
.pager { margin: 18px 0; display: flex; gap: 6px; }
.pager a, .pager .cur { padding: 6px 13px; border-radius: 8px; background: #fff; border: 1px solid #ddd6c6; }
.pager .cur { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.bigsearch { display: flex; gap: 8px; margin-bottom: 16px; }
.bigsearch input { flex: 1; padding: 11px 14px; border: 1px solid #d8d2c2; border-radius: 8px; font-family: inherit; font-size: 17px; }
.bigsearch button { padding: 11px 20px; font-size: 16px; }

/* একক খবর */
.single { background: #fff; padding: 6px 0 10px; }
.single h1 { font-size: 33px; line-height: 1.35; margin: 10px 0; }
.single .hero { width: 100%; margin: 8px 0 14px; }
.meta-top { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.lead { font-size: calc(var(--base) + 2px); font-weight: 600; }
.body-text { font-size: calc(var(--base) + 1px); }
.source-box { background: #fafafa; border: 1px solid #eee; border-left: 4px solid var(--brand); padding: 12px 16px; margin: 18px 0; }
.source-box p { margin: 4px 0; }
.share-row { display: flex; flex-wrap: wrap; gap: 8px; }
.share-btn { border: 0; border-radius: 8px; padding: 9px 16px; font-family: inherit; font-size: 15.5px; font-weight: 600; cursor: pointer; color: #fff; }
.share-btn.fb { background: #1877f2; }
.share-btn.copy { background: #47524c; }
.share-btn.page { background: var(--brand); }

/* ফুটার */
.site-foot { background: var(--footer-bg); color: #cfd8d1; margin-top: 34px; padding: 26px 0 0; }
.foot-cols { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 26px; }
.foot-name { font-size: 26px; font-weight: 800; color: #fff; margin: 0 0 6px; }
.foot-logo { max-height: 54px; width: auto; max-width: 80%; background: rgba(255,255,255,.08); padding: 4px 8px; border-radius: 6px; margin-bottom: 8px; display: block; }
.foot-head { color: #fff; font-weight: 700; font-size: 17px; margin: 0 0 10px; border-bottom: 2px solid var(--brand); padding-bottom: 5px; }
.foot-col a { display: block; color: #cfd8d1; padding: 3px 0; }
.foot-col a:hover { color: #fff; }
.foot-bottom { border-top: 1px solid rgba(255,255,255,.15); margin-top: 22px; padding-top: 12px; padding-bottom: 14px; text-align: center; font-size: 13.5px; color: #9aa79e; }
.foot-small { font-size: 13.5px; color: #8d9a92; }

/* ---------- অ্যাডমিন ---------- */
.admin-wrap { max-width: 1020px; margin: 0 auto; padding: 14px; }
.admin-bar { background: #b42318; color: #fff; border-radius: 12px; padding: 12px 16px; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.admin-bar .t { font-weight: 700; font-size: 20px; margin-right: auto; }
.admin-bar a { color: #fff; background: rgba(255,255,255,.16); padding: 6px 11px; border-radius: 7px; font-size: 15px; }
.admin-bar a:hover { text-decoration: none; background: rgba(255,255,255,.3); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin: 16px 0; }
.stat { background: #fff; border: 1px solid #e6e2d8; border-radius: 12px; padding: 16px; text-align: center; }
.stat b { font-size: 30px; display: block; color: #b42318; }
.panel { background: #fff; border: 1px solid #e6e2d8; border-radius: 12px; padding: 18px; margin: 16px 0; }
.panel h2 { margin-top: 0; font-size: 21px; }
.fld { margin-bottom: 13px; }
.fld label { display: block; font-weight: 600; margin-bottom: 5px; }
.fld input[type=text], .fld input[type=url], .fld input[type=tel], .fld input[type=password], .fld input[type=number], .fld input[type=date], .fld select, .fld textarea {
  width: 100%; padding: 10px 12px; border: 1px solid #cfc9b8; border-radius: 8px; font-family: inherit; font-size: 16.5px; background: #fff;
}
.fld input[type=color] { width: 70px; height: 42px; padding: 2px; border: 1px solid #cfc9b8; border-radius: 8px; background: #fff; }
.fld input[type=file] { font-family: inherit; font-size: 15.5px; }
.fld textarea { min-height: 110px; }
.fld .hint { font-size: 13.5px; color: #75827a; }
.btn { display: inline-block; background: #b42318; color: #fff; border: 0; border-radius: 8px; padding: 10px 18px; font-family: inherit; font-size: 16px; font-weight: 600; cursor: pointer; }
.btn:hover { opacity: .92; text-decoration: none; }
.btn.grey { background: #47524c; }
.btn.small { padding: 6px 11px; font-size: 14.5px; }
.btn.danger { background: #8f1d14; }
.flash { border-radius: 10px; padding: 11px 15px; margin: 14px 0; }
.flash.ok { background: #e6f4ea; border: 1px solid #9ccc9f; }
.flash.err { background: #fdecea; border: 1px solid #e5a09a; }
table.list { width: 100%; border-collapse: collapse; background: #fff; }
table.list th, table.list td { border-bottom: 1px solid #eee7da; padding: 10px 9px; text-align: left; vertical-align: top; }
table.list th { background: #faf6ee; }
.badge { font-size: 13px; font-weight: 700; padding: 2px 9px; border-radius: 20px; color: #fff; }
.badge.pub { background: #1e7e34; } .badge.draft { background: #8a6d1a; } .badge.brk { background: #e8590c; }
.badge.off { background: #777; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.filters input, .filters select { padding: 9px 11px; border: 1px solid #cfc9b8; border-radius: 8px; font-family: inherit; font-size: 15.5px; }
.checkline { display: flex; align-items: center; gap: 8px; font-weight: 500; }
.checkline input { width: 20px; height: 20px; }
.fbbox { background: #eef4fb; border: 1px solid #b9d2f2; border-radius: 10px; padding: 14px 16px; margin-top: 18px; }
.fbbox h3 { margin: 4px 0 8px; }
.fbbox textarea { width: 100%; min-height: 110px; border: 1px solid #b9d2f2; border-radius: 8px; padding: 10px; font-family: inherit; font-size: 15px; }
.login-card { max-width: 430px; margin: 7vh auto; background: #fff; border: 1px solid #e6e2d8; border-radius: 14px; padding: 26px; }
.login-card h1 { font-size: 24px; margin-top: 0; text-align: center; }
.warnbox { background: #fff7e0; border: 1px solid #ecd28a; border-radius: 10px; padding: 12px 16px; margin: 14px 0; }
.ad-thumb { width: 110px; max-height: 60px; object-fit: contain; display: block; }
@media (max-width: 900px) {
  .lead-wrap { grid-template-columns: 1fr; }
  .lead-side { border-left: 0; padding-left: 0; }
  .layout { grid-template-columns: 1fr; }
  .foot-cols { grid-template-columns: 1fr; gap: 14px; }
}
@media (max-width: 640px) {
  .mast-name { font-size: 36px; }
  .mast-logo img, .mast-both img { max-height: 56px; }
  .mast-both { flex-direction: column; gap: 6px; }
  .mast-both img { max-width: 70%; }
  .lead-title { font-size: 25px; }
  .top-tag { display: none; }
  .searchbox { margin-left: 0; width: 100%; }
  .searchbox input { flex: 1; width: auto; }
  .single h1 { font-size: 25px; }
  table.list { font-size: 14.5px; }
}
