@import url('https://fonts.googleapis.com/css2?family=Noto+Sans+Bengali:wght@400;500;600;700;800&display=swap');

:root{
  --primary:#071d3b;
  --accent:#d61f2c;
  --ink:#172033;
  --muted:#697386;
  --bg:#f5f7fa;
  --white:#fff;
  --border:#e5e9ef;
  --shadow:0 10px 30px rgba(15,30,55,.08);
}
*{box-sizing:border-box}
html{scroll-behavior:smooth}
body{
  margin:0;
  font-family:'Noto Sans Bengali',Arial,sans-serif;
  background:var(--bg);
  color:var(--ink);
  line-height:1.65;
}
a{color:inherit;text-decoration:none}
img{max-width:100%}
button,input{font-family:inherit}
.container{width:min(1180px,calc(100% - 32px));margin:auto}

/* TOP BAR */
.top-strip{background:#06152c;color:#cbd5e1;font-size:13px}
.top-inner{height:34px;display:flex;align-items:center;justify-content:space-between}

/* HEADER */
.site-header{
  background:#fff;
  position:sticky;
  top:0;
  z-index:100;
  box-shadow:0 3px 18px rgba(0,0,0,.06)
}
.header-main{min-height:82px;display:flex;align-items:center;gap:30px}
.brand{display:flex;align-items:center;gap:12px;min-width:300px}
.brand-mark{
  width:48px;height:48px;border-radius:12px;background:var(--accent);
  color:#fff;display:grid;place-items:center;font-size:28px;font-weight:800
}
.brand strong{display:block;font-size:27px;color:var(--primary);line-height:1.15}
.brand small{display:block;color:var(--muted);font-size:12px}
.header-ad{margin-left:auto;color:#a0a8b5;font-size:13px}
.menu-btn{display:none;border:0;background:none;font-size:28px;cursor:pointer}

/* NAVIGATION */
.nav{border-top:1px solid var(--border);background:#fff}
.nav-inner{display:flex;align-items:center;gap:4px;overflow-x:auto}
.nav-inner>a{
  padding:13px 12px;font-size:14px;font-weight:600;white-space:nowrap
}
.nav-inner>a:hover{color:var(--accent)}
.nav-search{
  margin-left:auto;display:flex;border:1px solid var(--border);
  border-radius:8px;overflow:hidden;min-width:210px
}
.nav-search input{border:0;padding:9px 10px;width:100%;outline:none}
.nav-search button{border:0;background:var(--primary);color:#fff;width:42px;cursor:pointer}

/* BREAKING */
.breaking{background:#fff;border-bottom:1px solid var(--border)}
.breaking-inner{display:flex;align-items:center;gap:15px;height:42px;font-size:13px}
.breaking strong{background:var(--accent);color:#fff;padding:5px 12px;border-radius:4px}

/* SECTION */
.section-head{
  display:flex;justify-content:space-between;align-items:center;
  margin:26px 0 16px;border-left:4px solid var(--accent);padding-left:12px
}
.section-head h1,.section-head h2{margin:0;font-size:24px}
.section-head a,.section-head span{font-size:13px;color:var(--muted)}

/* HERO */
.hero-grid{display:grid;grid-template-columns:1.55fr 1fr;gap:18px}
.hero-card{
  position:relative;min-height:470px;background:#000;
  border-radius:12px;overflow:hidden
}
.hero-card img{width:100%;height:470px;object-fit:cover;opacity:.88}
.hero-overlay{
  position:absolute;left:0;right:0;bottom:0;padding:80px 25px 25px;
  color:#fff;background:linear-gradient(transparent,rgba(0,0,0,.92))
}
.hero-overlay h2{font-size:30px;line-height:1.35;margin:8px 0}
.hero-overlay p{margin:0;color:#e6e6e6}

/* LABEL */
.category-label{
  display:inline-block;background:var(--accent);color:#fff;font-size:11px;
  padding:3px 9px;border-radius:4px;font-weight:700
}

/* NEWS CARD */
.news-card{
  background:#fff;border:1px solid var(--border);border-radius:10px;
  overflow:hidden;box-shadow:0 4px 16px rgba(0,0,0,.025);transition:.2s
}
.news-card:hover{transform:translateY(-2px);box-shadow:var(--shadow)}
.card-image{display:block;height:200px;background:#eef1f5}
.card-image img{width:100%;height:100%;object-fit:cover}
.card-body{padding:13px 15px}
.card-body h3{font-size:18px;line-height:1.45;margin:5px 0 8px}
.card-body h3 a:hover{color:var(--accent)}
.card-body p{font-size:13px;color:#657084;margin:0 0 8px}
.meta{font-size:11px;color:#8a93a2}

/* SIDE NEWS */
.side-news{display:grid;gap:14px}
.side-news .news-card{display:grid;grid-template-columns:135px 1fr;min-height:110px}
.side-news .card-image{height:110px}
.side-news .card-body{padding:8px 12px}
.side-news .card-body p{display:none}
.side-news .card-body h3{font-size:15px;margin:3px 0}
.side-news .meta{font-size:10px}

/* GRIDS */
.news-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:18px}
.news-grid.large{grid-template-columns:repeat(3,1fr)}
.content-layout{display:grid;grid-template-columns:1fr 300px;gap:25px}

/* SIDEBAR */
.widget{background:#fff;border:1px solid var(--border);border-radius:10px;padding:18px}
.widget h3{margin:0 0 10px;font-size:18px}
.category-row{
  display:flex;justify-content:space-between;border-bottom:1px solid var(--border);
  padding:9px 0;font-size:14px
}
.category-row:last-child{border:0}
.category-row b{font-size:11px;background:#eef2f6;border-radius:20px;padding:2px 8px}

/* ADS */
.ad-box{
  height:105px;background:#edf0f4;color:#a0a7b2;display:grid;place-items:center;
  margin:25px 0;border:1px dashed #ccd2db;border-radius:8px;font-size:12px
}
.ad-box.small{height:250px}

/* PAGES */
.page-wrap{padding:25px 0 50px}
.breadcrumb{font-size:12px;color:var(--muted);margin:5px 0 18px}
.breadcrumb a{color:var(--accent)}
.empty{
  background:#fff;border:1px solid var(--border);border-radius:10px;
  padding:50px;text-align:center;color:var(--muted)
}
.pagination{display:flex;justify-content:center;gap:7px;margin:30px 0;flex-wrap:wrap}
.page-link{
  background:#fff;border:1px solid var(--border);padding:8px 13px;
  border-radius:6px;font-size:13px
}
.page-link.active,.page-link:hover{background:var(--primary);color:#fff}

/* ARTICLE */
.article-wrap{padding:25px 0 60px;max-width:1000px}
.article{background:#fff;border:1px solid var(--border);border-radius:12px;padding:28px}
.article h1{font-size:38px;line-height:1.35;margin:12px 0}
.article-meta{
  display:flex;gap:20px;color:var(--muted);font-size:13px;
  border-bottom:1px solid var(--border);padding-bottom:16px;flex-wrap:wrap
}
.article-image{
  width:100%;max-height:580px;object-fit:cover;border-radius:10px;margin:22px 0
}
.article-body{font-size:18px;line-height:2;color:#263246;white-space:normal}
.share{
  display:flex;align-items:center;gap:8px;border-top:1px solid var(--border);
  padding-top:18px;margin-top:25px;flex-wrap:wrap
}
.share a,.share button{
  border:1px solid var(--border);background:#fff;padding:6px 12px;
  border-radius:6px;cursor:pointer
}
.related{margin-top:30px}

/* SEARCH */
.search-box-large{
  background:#fff;border:1px solid var(--border);border-radius:12px;
  padding:25px;margin-bottom:25px
}
.search-box-large h1{margin-top:0}
.search-box-large form{display:flex;gap:10px}
.search-box-large input{
  flex:1;border:1px solid var(--border);border-radius:7px;
  padding:13px;outline:none
}
.search-box-large input:focus{border-color:var(--primary)}
.search-box-large button,.btn{
  background:var(--primary);color:#fff;border:0;border-radius:7px;
  padding:12px 22px;cursor:pointer
}

/* STATIC PAGES */
.static-page{
  background:#fff;border:1px solid var(--border);border-radius:12px;
  padding:30px 35px;margin-top:25px;margin-bottom:50px;min-height:450px
}
.static-page h1{font-size:32px}
.static-page p{font-size:16px;color:#4d596c}
.contact-card{background:var(--bg);padding:20px;border-radius:10px}

/* 404 */
.error-page{text-align:center;padding:90px 0}
.error-code{font-size:100px;font-weight:800;color:var(--accent);line-height:1}
.error-page h1{font-size:30px}
.error-page p{color:var(--muted)}

/* FOOTER */
.footer{background:#06152c;color:#c8d0dc;margin-top:30px}
.footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:50px;padding:45px 0}
.footer-brand{font-size:25px;color:#fff;font-weight:800}
.footer p{font-size:13px;max-width:500px}
.footer h3{color:#fff;font-size:16px}
.footer a{display:block;font-size:13px;margin:7px 0;color:#b9c2cf}
.footer a:hover{color:#fff}
.copyright{border-top:1px solid rgba(255,255,255,.1);padding:15px 0;font-size:12px;color:#8e9bad}

/* TABLET */
@media(max-width:900px){
  .hero-grid{grid-template-columns:1fr}
  .content-layout{grid-template-columns:1fr}
  .sidebar{display:none}
  .news-grid,.news-grid.large{grid-template-columns:repeat(2,1fr)}
  .header-ad{display:none}
  .nav-search{min-width:170px}
}

/* MOBILE */
@media(max-width:650px){
  .container{width:min(100% - 20px,1180px)}
  .header-main{min-height:70px}
  .brand{min-width:0}
  .brand strong{font-size:20px}
  .brand-mark{width:40px;height:40px;font-size:22px}
  .menu-btn{display:block;margin-left:auto}
  .nav{display:none}
  .nav.open{display:block}
  .nav-inner{display:flex;flex-wrap:wrap;padding:5px 0}
  .nav-inner>a{padding:8px 7px}
  .nav-search{width:100%;margin:4px 0 8px}
  .hero-card,.hero-card img{min-height:350px;height:350px}
  .hero-overlay h2{font-size:23px}
  .side-news .news-card{grid-template-columns:105px 1fr}
  .side-news .card-image{height:95px}
  .news-grid,.news-grid.large{grid-template-columns:1fr}
  .card-image{height:210px}
  .article{padding:18px}
  .article h1{font-size:27px}
  .article-body{font-size:16px}
  .footer-grid{grid-template-columns:1fr;gap:20px;padding:30px 0}
  .top-inner span:last-child{display:none}
}


/* =========================================================
   ADVANCED MOBILE / APP-LIKE UI
   ========================================================= */
.mobile-bottom-nav{
  display:none;
}

.mobile-menu-overlay{
  display:none;
}

@media(max-width:650px){
  body{
    padding-bottom:72px;
    -webkit-tap-highlight-color:transparent;
  }

  .site-header{
    position:sticky;
    top:0;
  }

  .header-main{
    min-height:62px;
    padding:5px 0;
  }

  .brand-mark{
    width:38px;
    height:38px;
    border-radius:10px;
  }

  .brand strong{
    font-size:19px;
  }

  .brand small{
    font-size:10px;
  }

  .nav{
    box-shadow:0 8px 20px rgba(0,0,0,.08);
  }

  .nav.open{
    display:block;
    max-height:70vh;
    overflow:auto;
  }

  .nav-inner{
    padding:7px 0 12px;
    gap:2px;
  }

  .nav-inner>a{
    background:#f4f6f9;
    border-radius:20px;
    margin:2px;
    padding:7px 11px;
    font-size:12px;
  }

  .nav-search{
    border-radius:22px;
    min-height:42px;
  }

  .nav-search input{
    font-size:13px;
  }

  .breaking-inner{
    height:38px;
    overflow:hidden;
    white-space:nowrap;
  }

  .breaking-inner span{
    overflow:hidden;
    text-overflow:ellipsis;
  }

  .section-head{
    margin:20px 0 12px;
  }

  .section-head h1,
  .section-head h2{
    font-size:20px;
  }

  .hero-card,
  .hero-card img{
    height:300px;
    min-height:300px;
  }

  .hero-card{
    border-radius:14px;
    box-shadow:0 7px 24px rgba(0,0,0,.10);
  }

  .hero-overlay{
    padding:75px 16px 18px;
  }

  .hero-overlay h2{
    font-size:22px;
    line-height:1.4;
  }

  .hero-overlay p{
    font-size:12px;
    line-height:1.6;
  }

  .side-news{
    gap:10px;
  }

  .side-news .news-card{
    grid-template-columns:112px 1fr;
    border-radius:12px;
  }

  .side-news .card-image{
    height:98px;
  }

  .side-news .card-body{
    padding:7px 10px;
  }

  .side-news .card-body h3{
    font-size:14px;
    line-height:1.45;
  }

  .news-grid,
  .news-grid.large{
    display:grid;
    grid-template-columns:1fr;
    gap:12px;
  }

  .news-card{
    border-radius:13px;
    box-shadow:0 4px 14px rgba(15,30,55,.06);
  }

  .news-card:active{
    transform:scale(.99);
  }

  .card-image{
    height:205px;
  }

  .card-body{
    padding:12px 13px 14px;
  }

  .card-body h3{
    font-size:17px;
  }

  .card-body p{
    font-size:12px;
  }

  .meta{
    font-size:10px;
  }

  .ad-box{
    margin:16px 0;
    height:75px;
  }

  .article-wrap{
    padding-top:12px;
  }

  .article{
    padding:15px;
    border-radius:13px;
  }

  .article h1{
    font-size:25px;
    line-height:1.45;
  }

  .article-image{
    margin:15px 0;
    border-radius:10px;
  }

  .article-body{
    font-size:16px;
    line-height:1.95;
  }

  .article-meta{
    gap:9px;
    font-size:11px;
  }

  .share{
    gap:6px;
  }

  .share a,
  .share button{
    padding:8px 10px;
    font-size:11px;
  }

  .static-page{
    padding:20px 16px;
    border-radius:13px;
  }

  .static-page h1{
    font-size:25px;
  }

  .search-box-large{
    padding:16px;
    border-radius:13px;
  }

  .search-box-large form{
    flex-direction:column;
  }

  .search-box-large button{
    width:100%;
  }

  /* Fixed app-style bottom navigation */
  .mobile-bottom-nav{
    position:fixed;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    left:0;
    right:0;
    bottom:0;
    height:68px;
    z-index:9999;
    background:rgba(255,255,255,.97);
    border-top:1px solid #dfe4eb;
    box-shadow:0 -8px 28px rgba(0,0,0,.10);
    padding-bottom:env(safe-area-inset-bottom);
    backdrop-filter:blur(14px);
  }

  .bottom-item{
    border:0;
    background:transparent;
    display:flex;
    flex-direction:column;
    align-items:center;
    justify-content:center;
    gap:1px;
    color:#6b7280;
    font-size:9px;
    text-decoration:none;
    cursor:pointer;
    font-family:inherit;
  }

  .bottom-icon{
    width:34px;
    height:29px;
    display:grid;
    place-items:center;
    font-size:22px;
    line-height:1;
  }

  .bottom-item:first-child,
  .bottom-item:hover{
    color:var(--accent);
  }

  .bottom-menu{
    position:relative;
  }

  .bottom-menu .bottom-icon{
    width:42px;
    height:42px;
    margin-top:-17px;
    border-radius:50%;
    background:var(--accent);
    color:#fff;
    box-shadow:0 7px 18px rgba(214,31,44,.32);
  }

  .bottom-menu span:last-child{
    margin-top:2px;
  }

  .footer{
    margin-top:20px;
  }

  .footer-grid{
    padding-bottom:20px;
  }

  /* mobile drawer */
  .mobile-drawer-toggle{position:absolute;left:-9999px;opacity:0}
  .mobile-drawer{
    position:fixed;
    inset:0;
    z-index:10000;
    pointer-events:none;
    visibility:hidden;
  }

  .mobile-drawer-toggle:checked ~ .mobile-drawer{
    pointer-events:auto;
    visibility:visible;
  }

  .mobile-drawer-backdrop{
    position:absolute;
    inset:0;
    background:rgba(0,0,0,.45);
    opacity:0;
    transition:.2s;
  }

  .mobile-drawer-toggle:checked ~ .mobile-drawer .mobile-drawer-backdrop{
    opacity:1;
  }

  .mobile-drawer-panel{
    position:absolute;
    right:0;
    top:0;
    bottom:0;
    width:min(88%,360px);
    background:#fff;
    transform:translateX(100%);
    transition:.25s ease;
    overflow:auto;
    box-shadow:-10px 0 30px rgba(0,0,0,.18);
  }

  .mobile-drawer-toggle:checked ~ .mobile-drawer .mobile-drawer-panel{
    transform:translateX(0);
  }

  .mobile-drawer-head{
    padding:18px;
    background:var(--primary);
    color:#fff;
    display:flex;
    justify-content:space-between;
    align-items:center;
  }

  .mobile-drawer-head strong{
    font-size:20px;
  }

  .mobile-drawer-close{
    border:0;
    background:rgba(255,255,255,.12);
    color:#fff;
    width:38px;
    height:38px;
    border-radius:50%;
    font-size:20px;
  }

  .mobile-drawer-links{
    padding:12px;
  }

  .mobile-drawer-links a{
    display:flex;
    align-items:center;
    justify-content:space-between;
    padding:13px 12px;
    border-bottom:1px solid #edf0f4;
    font-size:14px;
  }

  .mobile-drawer-links a:active{
    background:#f5f7fa;
  }
}

/* desktop: never show drawer */
@media(min-width:651px){
  .mobile-drawer{
    display:none !important;
  }
}

/* =========================================================
   UPDATED HEADER LOGO + MOBILE MENU FIX
   No JavaScript required
   ========================================================= */

.brand{
  display:flex;
  align-items:center;
  gap:12px;
  min-width:300px;
}

.brand-logo{
  width:100px;
  height:70px;
  object-fit:cover;
  border-radius:1px;
  flex:none;
  box-shadow:0 4px 12px rgba(0,0,0,.12);
}

.brand-text{
  display:block;
}

.brand-text strong{
  display:block;
  font-size:27px;
  color:var(--primary);
  line-height:1.15;
}

.brand-text small{
  display:block;
  color:var(--muted);
  font-size:11px;
}

.mobile-drawer-toggle{
  position:absolute !important;
  width:1px !important;
  height:1px !important;
  opacity:0 !important;
  pointer-events:none !important;
}

@media(max-width:650px){

  body{
    padding-bottom:74px;
  }

  .brand{
    min-width:0;
    gap:9px;
  }

     .brand-logo {
        width: 25%;
        height: 20%;
        border-radius: 1px;
    }

  .brand-text strong{
    font-size:19px;
  }

  .brand-text small{
    font-size:9px;
  }

  /* drawer closed */
  .mobile-drawer{
    position:fixed;
    inset:0;
    z-index:100000;
    display:block;
    visibility:hidden;
    opacity:0;
    pointer-events:none;
    transition:opacity .22s ease, visibility .22s ease;
  }

  /* drawer OPEN */
  .mobile-drawer-toggle:checked ~ .mobile-drawer{
    visibility:visible;
    opacity:1;
    pointer-events:auto;
  }

  .mobile-drawer-backdrop{
    position:absolute;
    inset:0;
    display:block;
    background:rgba(0,0,0,.52);
    opacity:0;
    transition:opacity .22s ease;
    cursor:pointer;
  }

  .mobile-drawer-toggle:checked ~ .mobile-drawer .mobile-drawer-backdrop{
    opacity:1;
  }

  .mobile-drawer-panel{
    position:absolute;
    top:0;
    right:0;
    bottom:0;
    width:min(88vw,370px);
    background:#fff;
    overflow-y:auto;
    -webkit-overflow-scrolling:touch;
    transform:translateX(105%);
    transition:transform .25s cubic-bezier(.2,.8,.2,1);
    box-shadow:-12px 0 35px rgba(0,0,0,.22);
  }

  .mobile-drawer-toggle:checked ~ .mobile-drawer .mobile-drawer-panel{
    transform:translateX(0);
  }

  .mobile-drawer-head{
    min-height:76px;
    padding:12px 14px;
    background:var(--primary);
    color:#fff;
    display:flex;
    align-items:center;
    justify-content:space-between;
    gap:10px;
    position:sticky;
    top:0;
    z-index:2;
  }

  .mobile-menu-brand{
    display:flex;
    align-items:center;
    gap:10px;
  }

  .mobile-menu-brand img{
    width:45px;
    height:45px;
    border-radius:10px;
    object-fit:cover;
  }

  .mobile-menu-brand strong{
    display:block;
    color:#fff;
    font-size:18px;
    line-height:1.2;
  }

  .mobile-menu-brand small{
    display:block;
    color:#cbd5e1;
    font-size:9px;
    margin-top:2px;
  }

  .mobile-drawer-close{
    width:42px;
    height:42px;
    border-radius:50%;
    background:rgba(255,255,255,.14);
    color:#fff;
    display:grid;
    place-items:center;
    font-size:30px;
    line-height:1;
    cursor:pointer;
    user-select:none;
    flex:none;
  }

  .mobile-drawer-close:active{
    transform:scale(.92);
  }

  .mobile-drawer-links{
    padding:9px 12px 30px;
  }

  .mobile-drawer-links a{
    min-height:49px;
    display:grid;
    grid-template-columns:28px 1fr 18px;
    align-items:center;
    gap:4px;
    padding:9px 8px;
    border-bottom:1px solid #edf0f4;
    color:#172033;
    font-size:14px;
    font-weight:600;
  }

  .mobile-drawer-links a span{
    overflow:hidden;
    text-overflow:ellipsis;
    white-space:nowrap;
  }

  .mobile-drawer-links a b{
    color:#a0a7b2;
    font-size:21px;
    font-weight:400;
  }

  .mobile-drawer-links a:active{
    background:#f3f5f8;
    border-radius:8px;
  }

  /* bottom navigation */
  .mobile-bottom-nav{
    position:fixed;
    left:0;
    right:0;
    bottom:0;
    z-index:99999;
    display:grid;
    grid-template-columns:repeat(5,1fr);
    height:68px;
    padding-bottom:env(safe-area-inset-bottom);
    background:rgba(255,255,255,.98);
    border-top:1px solid #dfe4eb;
    box-shadow:0 -7px 24px rgba(0,0,0,.10);
    backdrop-filter:blur(12px);
  }

  .bottom-item{
    min-width:0;
    border:0;
    background:transparent;
    display:flex;
    flex-direction:column;
    justify-content:center;
    align-items:center;
    gap:2px;
    color:#697386;
    font-family:inherit;
    font-size:9px;
    font-weight:600;
    text-decoration:none;
    cursor:pointer;
    user-select:none;
  }

  .bottom-icon{
    width:31px;
    height:29px;
    display:grid;
    place-items:center;
    font-size:21px;
    line-height:1;
  }

  .bottom-item:active{
    transform:scale(.94);
  }

  .bottom-menu .bottom-icon{
    width:44px;
    height:44px;
    margin-top:-20px;
    border-radius:50%;
    background:var(--accent);
    color:#fff;
    box-shadow:0 7px 18px rgba(214,31,44,.30);
    border:4px solid #fff;
  }

  /* When drawer is open, turn bottom menu icon into a close indicator */
  .mobile-drawer-toggle:checked ~ .mobile-drawer + .mobile-bottom-nav .bottom-menu .bottom-icon{
    font-size:0;
  }

  .mobile-drawer-toggle:checked ~ .mobile-drawer + .mobile-bottom-nav .bottom-menu .bottom-icon:before{
    content:"×";
    font-size:28px;
  }
}

@media(min-width:651px){
  .mobile-drawer,
  .mobile-bottom-nav,
  .mobile-drawer-toggle{
    display:none !important;
  }
}
