/*
Theme Name: V51 Prothom Alo Clone (Clean Final Stable)
*/

/* =========================
RESET
========================= */
*{
  margin:0;
  padding:0;
  box-sizing:border-box;
}

html,body{
  width:100%;
  overflow-x:hidden;
}

/* =========================
BODY
========================= */
body{
  font-family:'SolaimanLipi','Noto Sans Bengali',sans-serif;
  font-size:15px;
  line-height:1.6;
  background:#e9e9e9;
  color:#111;
}

/* =========================
GLOBAL LAYOUT FIX (CRITICAL)
========================= */
#page{
  max-width:1300px;
  width:100%;
  margin:0 auto;
  background:#fff;
  box-shadow:0 0 8px rgba(0,0,0,0.08);
}

.container{
  width:100%;
  max-width:1200px;
  margin:0 auto;
  padding:0 15px;
}

/* =========================
LINKS
========================= */
a{
  color:#111;
  text-decoration:none;
  transition:0.2s;
}

a:hover{
  color:#e60000;
}

/* =========================
HEADER
========================= */
.top-bar{
  background:#f5f5f5;
  font-size:13px;
  padding:6px 0;
  border-bottom:1px solid #eee;
}

.top-flex{
  display:flex;
  justify-content:space-between;
}

/* LOGO */
.logo-bar{
  text-align:center;
  padding:8px 0;
  border-bottom:1px solid #eee;
}

.logo-center img{
  max-height:50px;
}

/* NAV */
.nav-bar{
  border-bottom:1px solid #ddd;
}

.nav-bar .container{
  display:flex;
  justify-content:center;
  align-items:center;
  position:relative;
}

.menu-list{
  display:flex;
  gap:18px;
}

.menu-list a{
  font-size:14px;
  font-weight:600;
}

/* MOBILE */
.menu-toggle{
  display:none;
  position:absolute;
  left:0;
  font-size:22px;
  cursor:pointer;
}

/* =========================
BREAKING
========================= */
.breaking{
  background:#e60000;
  color:#fff;
  font-size:14px;
  padding:6px 0;
}

.ticker-track{
  display:flex;
  gap:25px;
  white-space:nowrap;
}

.ticker-track a{
  padding-right:18px;
  position:relative;
}

.ticker-track a::after{
  content:"•";
  position:absolute;
  right:6px;
  color:#fff;
}

/* =========================
HERO GRID
========================= */
.hero-grid{
  display:grid;
  grid-template-columns:260px 1fr 260px;
  gap:20px;
  margin:25px 0;
  width:100%;
}

.list-news{
  border-bottom:1px solid #eee;
  padding:6px 0;
  font-size:13.5px;
}

.hero-center img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}

.hero-title{
  font-size:34px;
  font-weight:800;
  line-height:1.25;
  margin-top:6px;
}

/* =========================
MAIN GRID
========================= */
.main{
  display:grid;
  grid-template-columns:260px 1fr 300px;
  gap:25px;
  margin-top:25px;
  width:100%;
}

/* LEFT */
.left-news{
  padding-right:15px;
}

.left-news p{
  font-size:13.5px;
  line-height:1.45;
  padding:5px 0;
  border-bottom:1px solid #eee;
}

/* CENTER */
.center-news img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
  margin-bottom:6px;
}

.center-news h2{
  font-size:20px;
  font-weight:700;
  margin:6px 0;
}

/* SIDEBAR */
.sidebar{
  border-left:1px solid #eee;
  padding-left:18px;
}

.sidebar h3{
  font-size:18px;
  font-weight:700;
  border-bottom:2px solid #e60000;
  padding-bottom:5px;
  margin-bottom:10px;
}

.sidebar .item{
  display:flex;
  gap:10px;
  align-items:center;
  border-bottom:1px solid #eee;
  padding:6px 0;
}

.sidebar img{
  width:70px;
  height:55px;
  object-fit:cover;
}

/* =========================
CATEGORY
========================= */
.category-block{
  margin-top:40px;
}

.category-title{
  font-size:22px;
  font-weight:700;
  margin:20px 0;
  border-left:4px solid #e60000;
  padding-left:10px;
}

.category-grid{
  display:grid;
  grid-template-columns:2fr 1fr;
  gap:20px;
}

.cat-big img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}

.cat-small .item{
  display:flex;
  gap:10px;
  border-bottom:1px solid #eee;
  padding:6px 0;
}

.cat-small img{
  width:80px;
  height:60px;
  object-fit:cover;
}

/* =========================
NEWS GRID
========================= */
.news-grid{
  display:grid;
  grid-template-columns:repeat(3,1fr);
  gap:20px;
  margin-top:20px;
}

.news-item{
  padding:8px;
  border:1px solid #eee;
  border-radius:6px;
  transition:0.3s;
}

.news-item:hover{
  transform:translateY(-4px);
  box-shadow:0 8px 20px rgba(0,0,0,0.08);
}

.news-item img{
  width:100%;
  aspect-ratio:16/9;
  object-fit:cover;
}

.news-item h4{
  font-size:15px;
  line-height:1.4;
}

/* =========================
RESPONSIVE
========================= */
@media(max-width:768px){

  .menu-toggle{
    display:block;
  }

  .nav{
    display:none;
    position:absolute;
    top:50px;
    left:0;
    width:100%;
    background:#fff;
    padding:10px;
  }

  .nav.active{
    display:block;
  }

  .menu-list{
    flex-direction:column;
  }

  .hero-grid,
  .main,
  .category-grid,
  .news-grid{
    grid-template-columns:1fr;
  }

  .sidebar{
    border:none;
    padding:0;
  }
}
/* AI BOX */
.ai-box{
  background:#fff3cd;
  border-left:4px solid #ffc107;
  padding:15px;
  margin:20px 0;
}

/* ADS */
.ad-box{
  margin:20px 0;
  text-align:center;
}

/* VIDEO */
.video-row{
  display:flex;
  gap:15px;
  overflow-x:auto;
}
.video-card{
  min-width:220px;
}