/* =========================
   Base
========================= */
:root {
  --brand:#00334d;
  --accent:#e91e63;
  --muted:#666;
}
* {box-sizing:border-box;margin:0;padding:0}
body {
  font-family: 'SolaimanLipi', sans-serif;
  font-size: 18px;
  line-height: 1.7;
  color: #111;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

p, a, li, span {
  font-size: 18px;
}

h1, h2, h3, h4 {
  font-family: 'SolaimanLipi', sans-serif;
  font-weight: bold;
}

a {color:inherit;text-decoration:none; transition:0.3s}

/* =========================
   Top Bar (logo, date, social)
========================= */
.top-bar {
  display:flex;
  align-items:center;
  justify-content:space-between;
  padding:8px 12px;
  border-bottom:1px solid #ddd;
  background:#fff;
  font-size:14px;
}
.top-bar .logo-wrap img {max-width:100%;width:299px;height:83px}
.top-bar .date {flex:1;text-align:center;color:#333;font-size:14px}
.top-bar .social-icons a {
  margin-left:10px;
  font-size:18px;
  color:#444;
}
.top-bar .social-icons a:hover {color:var(--accent)}

@media(max-width:768px){
  #logoImg {
    height: 45px;
    width: 180px;
  }
}

/* =========================
   Navbar
========================= */
.navbar {background:var(--brand)}
.navbar-nav .nav-link {
  color:#fff !important;
  font-weight:500;
  padding:8px 12px;
}
.navbar-nav .nav-link:hover {background:#002233}

/* =========================
   Headline / Breaking News
========================= */
.headline-bar {
  display: flex;
  align-items: center;
  background:#f8f8f8;
  border-top:1px solid #ddd;
  border-bottom:1px solid #ddd;
  font-size:15px;
  overflow:hidden;
}

.headline-bar .label {
  background:#d00;
  color:#fff;
  padding:4px 8px;
  font-weight:bold;
  flex-shrink: 0;
  z-index: 2;
}

.headline-bar .scroll-text {
  display:inline-block;
  white-space: nowrap;
  padding-left:100%;
  animation:ticker 35s linear infinite;
}
@keyframes ticker {
  0% {transform:translateX(0)}
  100% {transform:translateX(-100%)}
}

/* =========================
   Layout
========================= */
.container {padding:12px}
.featured img {width:100%;height:auto;border-radius:6px}
.featured h1 {font-size:20px;margin:10px 0}
.excerpt {color:var(--muted)}

.grid {
  display:grid;
  grid-template-columns:1fr;
  gap:12px;
  margin-top:12px;
}
.news-card {
  border-bottom:1px solid #eee;
  padding-bottom:12px;
}
.news-card img {
  width:100%;
  height:auto;
  border-radius:6px;
  margin-bottom:8px;
}
.news-card h2 {font-size:18px;margin-bottom:6px}
.news-card .meta {font-size:13px;color:var(--muted)}

/* =========================
   Tabs (Latest/Popular)
========================= */
.nav-tabs .nav-link {
  border:1px solid #ddd;
  color:#222;
  font-weight:600;
  padding:6px 12px;
}
.nav-tabs .nav-link.active {
  background:var(--brand);
  color:#fff !important;
}

/* =========================
   Footer
========================= */
.site-footer {
  border-top:1px solid #eee;
  padding:16px;
  text-align:center;
  color:var(--muted);
  margin-top:18px;
  background:#fafafa;
  font-size:14px;
}

/* =========================
   Headings / Section Titles
========================= */
.section-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--brand);
  border-left: 4px solid var(--accent);
  padding-left: 8px;
  margin-bottom: 12px;
}

/* =========================
   Featured Lead News
========================= */
.lead-news img {
  width: 100%;
  height: 370px;
  object-fit: cover;
  border-radius: 6px;
}
.lead-news h2 {
  font-size: 22px;
  font-weight: 700;
  margin-top: 10px;
}
.lead-news p {
  font-size: 15px;
  color: var(--muted);
}

/* =========================
   Grid Cards (Others)
========================= */
.news-grid .card {
  border: none;
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  border-radius: 6px;
  overflow: hidden;
}
.news-grid img {
  height: 180px;
  object-fit: cover;
}
.news-grid h6 {
  font-size: 15px;
  font-weight: 600;
  margin-top: 6px;
}

/* =========================
   Sidebar Latest / Popular
========================= */
.sidebar-news img {
  border-radius: 4px;
}
.sidebar-news a {
  font-size: 14px;
  font-weight: 500;
  line-height: 1.3;
}
.sidebar-news .d-flex {
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

/* =========================
   Category Lists
========================= */
.category-block img {
  border-radius: 4px;
}
.category-block a {
  font-size: 14px;
  font-weight: 600;
  color: #222;
}
.category-block a:hover {
  color: var(--accent);
}

/* =========================
   Single Article Page
========================= */
.article-full h1 {
  font-size: 26px;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 10px;
  color: #111;
}

.article-full .meta {
  font-size: 14px;
  color: #777;
  margin-bottom: 12px;
}

.article-full img.article-img,
.article-full .img-fluid {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
  border-radius: 6px;
  margin-bottom: 16px;
}

.article-full .content {
  font-size: 17px;
  line-height: 1.7;
  color: #333;
}

.article-full .content p {
  margin-bottom: 14px;
}

.article-full .badge {
  font-size: 13px;
  padding: 5px 10px;
  border-radius: 4px;
}

/* Social share */
.article-full .bi {
  font-size: 20px;
  transition: 0.3s;
}

.article-full a:hover .bi-facebook {color:#1877f2}
.article-full a:hover .bi-twitter {color:#1da1f2}
.article-full a:hover .bi-whatsapp {color:#25d366}

/* Related news */
.related h5 {
  font-size: 18px;
  margin-bottom: 12px;
  color: #111;
}

.related .card {
  border: none;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  transition: transform 0.2s;
}

.related .card:hover {
  transform: translateY(-3px);
}

.related .card h6 {
  font-size: 15px;
  font-weight: 600;
  margin: 8px 0 0;
  line-height: 1.4;
}

/* Sidebar */
.nav-tabs .nav-link {
  border: 1px solid #ddd;
  border-radius: 0;
  font-weight: 600;
  font-size: 14px;
  padding: 6px 12px;
  color: #333;
}

.nav-tabs .nav-link.active {
  background: #00334d;
  color: #fff !important;
}

.tab-content .d-flex {
  border-bottom: 1px solid #eee;
  padding-bottom: 6px;
}

.tab-content img {
  border-radius: 4px;
}

.tab-content a {
  color: #222;
  font-size: 18px;
  line-height: 1.3;
  text-decoration: none;
}

.tab-content a:hover {
  color: #e91e63;
}

/* Responsive */
@media (max-width: 768px) {
  .article-full h1 {font-size: 22px;}
  .article-full .content {font-size: 16px;}
}

/* =========================
   Mobile Navbar Toggler Icon
========================= */
.offcanvas {
    background-color: #fff; /* Offcanvas background white */
}

.offcanvas .nav-link {
    color: #00334d !important;      /* Normal অবস্থায় লেখা dark blue */
    font-weight: 500;
    padding: 10px 15px;
    display: block;
    transition: all 0.3s ease;
}

.offcanvas .nav-link:hover {
    background-color: #00334d; /* Hover background dark blue */
    color: #fff !important;    /* Hover text white */
    border-radius: 4px;
}

.related h5 {
  font-weight: 600;
}
.related-full {
  background: #fafafa;
  width: 100%;
  overflow: hidden;
}
.related-full .card:hover {
  transform: translateY(-3px);
  transition: all 0.3s ease;
}
.related .card:hover {
  transform: translateY(-3px);
  transition: all 0.3s ease;
}
.related .card a:hover {
  color: #d00;
}
/* কম gap করার জন্য */
.container-fluid {
  max-width: 1400px;
}

.text-truncate {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  display: block;
}

.gallery-big {
    width: 100%;
    height: 330px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-small {
    width: 100%;
    height: 155px;
    object-fit: cover;
    border-radius: 8px;
}

.gallery-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 10px 14px;
    background: rgba(0,0,0,0.45);
    color: #fff;
    font-weight: 600;
    border-radius: 0 0 8px 8px;
}

@media (max-width: 768px) {
  aside .card img {
    height: 100px !important;
  }
  aside .card {
    border-radius: 8px;
  }
  aside .card-body a {
    font-size: 0.85rem;
  }
}

/* =========================
   Responsive
========================= */
@media(max-width:768px){
  .top-bar .date, .top-bar .social-icons {display:none}
  .navbar-brand img {height:40px}
}
@media(min-width:768px){
  .grid {grid-template-columns:repeat(2,1fr)}
}
@media(min-width:1000px){
  .container {max-width:1100px;margin:0 auto}
  .grid {grid-template-columns:repeat(3,1fr)}
}
@media (max-width: 991px){
  aside{order:2;}
  .col-lg-6{order:1;}
}
@media (max-width: 991px) {
  aside h5 {
    text-align: center;
  }
}
