<style>
:root{
--bg:#f5f5f5; --text:#111; --card:#fff; --accent:#c40000;
}
body.dark{
--bg:#111; --text:#eee; --card:#1f1f1f; --accent:#ff3b3b;
}
*{margin:0;padding:0;box-sizing:border-box;font-family:SolaimanLipi,Arial,sans-serif}
body{background:var(--bg);color:var(--text)}


header{background:var(--card);border-bottom:1px solid #ddd}
.header{max-width:1200px;margin:auto;padding:15px;display:flex;justify-content:space-between;align-items:center}
.logo{font-size:34px;font-weight:900;color:var(--accent)}
.dark-btn{cursor:pointer;border:1px solid #ccc;padding:6px 10px}


/* Navigation Menu */
nav ul{
  list-style:none;
  display:flex;
  flex-wrap:wrap;
  justify-content:center; /* মেনু কেন্দ্রস্থলে দেখাবে */
  background:#111; /* নেভিগেশন ব্যাকগ্রাউন্ড */
  padding:0;
  margin:0;
  border-radius:6px;
  overflow:hidden;
}

nav li{
  margin:0;
}

nav li a{
  display:block;
  padding:12px 20px;
  text-decoration:none;
  color:#fff;
  font-weight:500;
  transition:all 0.3s;
  font-size:15px;
}

/* Hover effect */
nav li a:hover{
  background:#c40000; /* hover ব্যাকগ্রাউন্ড লাল */
  color:#fff;
  transform:scale(1.05); /* subtle zoom effect */
}

/* Active link style */
nav li a.active{
  background:#ff4d4d;
  color:#fff;
}

/* Responsive */
@media(max-width:768px){
  nav ul{
    flex-direction:column;
  }
  nav li a{
    text-align:center;
    padding:12px 0;
    border-bottom:1px solid #222;
  }
  nav li a:last-child{
    border-bottom:none;
  }
}


.breaking{
  background:#fff3cd; /* হালকা হলুদ ব্যাকগ্রাউন্ড */
  padding:12px 20px;
  display:flex;
  align-items:center;
  border-left:5px solid #c40000; /* লাল সাইড বার */
  border-radius:4px;
  box-shadow:0 2px 5px rgba(0,0,0,0.1); /* হালকা শ্যাডো */
  overflow:hidden;
  margin-bottom:20px;
}

.breaking span{
  color:#c40000;
  font-weight:700;
  font-size:16px;
  margin-right:12px;
  text-transform:uppercase; /* বড় অক্ষরে দেখাবে */
  letter-spacing:1px;
  font-family:'SolaimanLipi',Arial,sans-serif;
}

.ticker{
  display:inline-block;
  white-space:nowrap;
  animation:scroll 15s linear infinite;
  color:#222;
  font-weight:500;
}


@keyframes scroll{0%{transform:translateX(100%)}100%{transform:translateX(-100%)}}


.ad-leaderboard {
  width: 100%;
  max-width: 728px;
  height: 90px;
  margin: 20px auto;
  background: #eee;
  border: 1px solid #ccc;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #555;
  font-weight: bold;
  border-radius: 4px;
}

header{
  max-width:1200px;
  margin:auto;
  padding:15px;
  display:flex;
  justify-content:space-between;
  align-items:center;
  flex-wrap:wrap; /* Mobile friendly */
}

/* Leaderboard ad next to logo */
.header-ad{
  width:728px;
  height:90px;
  background:#eee;
  border:1px solid #ccc;
  display:flex;
  align-items:center;
  justify-content:center;
  margin-left:20px;
  border-radius:4px;
  font-weight:bold;
  color:#555;
  flex-shrink:0;
}

/* Responsive for smaller screens */
@media(max-width:1024px){
  .header-ad{
    width:100%;
    height:60px;
    margin:10px 0;
    font-size:14px;
  }
}

.main-section{
  display:grid;
  grid-template-columns:1fr 2fr 1fr; /* Left - Center - Right */
  gap:20px;
  max-width:1200px;
  margin:auto;
  padding:20px;
}

.container{
  display:flex;
  flex-direction:column;
  gap:15px;
}

.container.center .sub-news{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(150px,1fr));
  gap:10px;
}

/* News box styling */
.news-box{
  background:#fff;
  padding:12px;
  border-radius:4px;
  box-shadow:0 2px 5px rgba(0,0,0,0.05);
}

.news-box h3 a, .news-box h2 a{
  text-decoration:none;
  color:#111;
}

.news-box h2{
  font-size:22px;
  margin:10px 0;
}

.news-box img{
  width:100%;
  border-radius:4px;
}

/* Ad Styling */
.ad-300x250{
  width:100%;
  max-width:300px;
  height:250px;
  background:#eee;
  display:flex;
  justify-content:center;
  align-items:center;
  margin-bottom:15px;
  border:1px solid #ccc;
  border-radius:4px;
  font-weight:bold;
  color:#555;
}

/* Responsive */
@media(max-width:992px){
  .main-section{
    grid-template-columns:1fr;
  }
  .ad-300x250{
    max-width:100%;
    height:200px;
  }
}


footer{background:#111;color:#ccc;text-align:center;padding:25px;margin-top:40px}
</style>