
:root{
  --bg:#ffffff; --text:#111111; --muted:#666666; --brand:#d20000;
  --fs:18px;
}
*{box-sizing:border-box}
html,body{margin:0;padding:0;font-family:"Noto Serif Bengali","SolaimanLipi",Serif; background:var(--bg); color:var(--text); font-size:var(--fs); line-height:1.7}
img{max-width:100%; display:block}
.container{max-width:1100px;margin:auto;padding:0 16px}
a{color:inherit;text-decoration:none}
a:hover{text-decoration:underline}

/* Header */
.site-header { margin-top:16px; position:sticky;top:0;background:#fff;border-bottom:1px solid #eee;z-index:10}
.header-row{display:flex;gap:14px;align-items:center;justify-content:space-between;padding:10px 0}
.brand{font-size:16px;white-space:nowrap}
.brand .dot{color:var(--brand)}
.nav{display:flex;gap:12px;flex-wrap:wrap}
.nav a{padding:4px 0}
.nav a.active{color:var(--brand);text-decoration:underline}
.actions{display:flex;gap:8px;align-items:center}
.actions input{border:1px solid #ddd;border-radius:4px;padding:6px 10px;min-width:220px}
.actions button{border:1px solid #ddd;background:#fff;border-radius:6px;padding:6px 10px}

/* Breaking ticker */
.breaking-wrap{border-bottom:1px solid #eee;background:#fafafa}
.breaking-title{display:inline-block;margin-right:8px;font-weight:700;color:#000}
.ticker{display:inline-block;overflow:hidden;white-space:nowrap;vertical-align:middle;width:calc(100% - 90px)}
.ticker::after{content:"";display:inline-block;width:50px}
.ticker span{display:inline-block;margin-right:18px}
@keyframes slideLeft{0%{transform:translateX(0)}100%{transform:translateX(-50%)}}
.ticker .track{display:inline-block;animation:slideLeft 20s linear infinite}

/* Main */
.main{padding:18px 0}
.section-title{margin:20px 0 12px;font-weight:700}

/* HERO */
.hero{display:grid;grid-template-columns:2fr 1fr;gap:16px;margin-bottom:20px}
.hero-big .item-title{font-size:28px;margin:10px 0 6px}
.hero-big img{aspect-ratio:16/9;object-fit:cover;width:100%}
.hero-list .mini{display:grid;grid-template-columns:1fr;gap:10px}
.hero-list a{display:grid;grid-template-columns:120px 1fr;gap:10px;align-items:start}
.hero-list img{width:120px;height:70px;object-fit:cover;aspect-ratio:auto}

/* Lists */
.list-plain a{display:block;padding:8px 0;border-top:1px solid #eee}
.list-rows .row{display:grid;grid-template-columns:160px 1fr;gap:12px;padding:12px 0;border-top:1px solid #eee}
.list-rows .row img{width:160px;height:100px;object-fit:cover}
.meta{color:var(--muted);font-size:.95em}
.badge{color:#fff;background:var(--brand);border-radius:4px;padding:1px 6px}

/* Detail */
.detail .hero{max-height:520px;border-radius:0}
.detail .summary{font-weight:600}

/* Footer */
.site-footer{border-top:1px solid #eee;margin-top:28px;padding:24px 0;background:#fff}
.footer-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:16px}
.center{text-align:center}

/* Ads placeholders (hidden) */
.ads{display:none;width:100%;height:0}

/* Dark mode */
body.dark{--bg:#0b0b0b;--text:#f0f0f0;--muted:#aaa}
body.dark .site-header, body.dark .site-footer{background:#0b0b0b;border-color:#1b1b1b}
body.dark .actions button{background:#0b0b0b}


/* ===== Mobile Responsive Fixes ===== */
.container{padding-left:12px;padding-right:12px}
@media(max-width:768px){
  .header-row{flex-wrap:wrap;gap:8px}
  .nav{flex-wrap:wrap;gap:10px;font-size:15px}
  .actions{flex-wrap:wrap;gap:6px;justify-content:flex-start;width:100%}
  .actions input{flex:1;min-width:140px}
  .hero{grid-template-columns:1fr;gap:12px}
  .hero-list a{grid-template-columns:100px 1fr}
  .list-rows .row{grid-template-columns:120px 1fr}
  .list-rows .row img{width:120px;height:80px}
}

/* ===== Brand Logo Style ===== */
.brand{font-size:24px;font-weight:700;display:flex;align-items:center;gap:6px}
.brand .dot{
  color:var(--brand);
  font-size:30px; /* bigger red earth */
  line-height:1;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

/* Brand Logo Styling */
.logo{position:relative;display:inline-block;text-align:center}
.brand-text{font-size:40px;font-weight:700;font-family:'Hind Siliguri', sans-serif;color:#c1171a;letter-spacing:1px;line-height:1;position:relative;z-index:2;text-shadow:1px 1px 3px rgba(0,0,0,0.15)}
.watch{width:50px;height:50px;background:radial-gradient(circle,#fff 60%,#000 100%);border:4px solid #000;border-radius:50%;box-shadow:0 5px 12px rgba(0,0,0,.35),inset 0 -4px 8px rgba(255,255,255,.1);position:absolute;top:-23px;left:50%;transform:translateX(-50%);z-index:1;overflow:hidden}
.hand{position:absolute;top:50%;left:50%;transform-origin:bottom center;transform:translate(-50%,-100%) rotate(0deg);border-radius:2px}
.hand.hour{height:22px;width:5px;background:#000}
.hand.minute{height:32px;width:3px;background:#444}
.hand.second{height:38px;width:2px;background:#c1171a}
.center{width:8px;height:8px;background:#000;border-radius:50%;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);z-index:3;border:2px solid #fff}
.tick{position:absolute;width:2px;height:8px;background:#000;top:0;left:50%;transform-origin:center 25px}


/* Reduce header size by 20% only for news.html */


/* News page header adjustments: smaller header and inline categories */

/* News page header adjustments */
body.news-page .header { font-size: 80% !important; }
body.news-page .header .nav a { font-size: 70% !important; }


/* Force smaller category nav text for news.html */
body.news-page .header .nav a {
  font-size: 12px !important;  /* force small fixed size */
  line-height: 1.2 !important;
}


/* === Header Navigation (Updated) === */
.navbar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 20px;
  white-space: nowrap;
  overflow-x: auto;
}

.navbar a {
  font-size: 1rem;
  font-weight: 600;
  color: #333;
  text-decoration: none;
  padding: 5px 10px;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.navbar a:hover {
  background: linear-gradient(45deg, #ff7e5f, #feb47b);
  color: white;
}

.navbar a.active {
  background: linear-gradient(45deg, #43cea2, #185a9d);
  color: white;
}



/* === Responsive Header / Mobile Menu === */
@media (max-width: 768px) {
  .navbar {
    display: none;
    flex-direction: column;
    gap: 10px;
    background: #fff;
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    padding: 10px;
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    z-index: 1000;
  }

  .navbar.show {
    display: flex;
  }

  .menu-toggle {
    display: block;
    font-size: 1.5rem;
    cursor: pointer;
    color: #333;
    margin-left: auto;
    padding: 10px;
  }
}

@media (min-width: 769px) {
  .menu-toggle {
    display: none;
  }
}




/* === Mobile UI/UX Optimizations === */
@media (max-width: 768px) {
  /* Reduce title size slightly for better readability */
  h1, h2, h3, .news-title {
    font-size: 90% !important;
  }

  /* Compact nav spacing */
  header nav {
    gap: 10px !important;
  }

  /* Container padding adjustment for news details */
  body.news-page .container {
    padding: 0 12px !important;
  }

  /* AdSense placeholder spacing */
  .adsbygoogle {
    margin: 16px 0 !important;
    display: block;
  }

  /* Optimize images for mobile with lazy loading hint */
  img {
    height: auto;
  }
}


/* === Breaking News Ticker Optimization === */
.ticker {
  display: flex;
  overflow: hidden;
  white-space: nowrap;
}
.ticker-content {
  display: inline-block;
  padding-left: 100%;
  animation: ticker 50s linear infinite; /* slow scrolling */
}
.ticker:hover .ticker-content,
.ticker:active .ticker-content {
  animation-play-state: paused; /* pause on hover or touch */
}
@keyframes ticker {
  0% { transform: translateX(0); }
  100% { transform: translateX(-100%); }
}
