/* ======================================================
   Newz Basket — Fully Responsive CSS with Fixed Desktop Header
   ====================================================== */

/* ======================  VARIABLES  ====================== */
:root{
  --red: #d80000;
  --purple: #974971;
  --blue: #1894b8;
  --green: #83b82e;
  --orange: #f89c1d;
  --sky: #0f86f5;
  --bg: #ffffff;
  --text-main: #111;
  --text-muted: rgba(0,0,0,0.7);
  --max-width: 1200px;
}

/* ======================  RESET  ====================== */
*{box-sizing:border-box;margin:0;padding:0}
html,body{width:100%;height:100%;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
img{max-width:100%;display:block;height:auto}
a{color:inherit;text-decoration:none}
ul{list-style:none}

/* ======================  GLOBAL LAYOUT  ====================== */
body{
  font-family:"Inter","Noto Sans Devanagari",system-ui,-apple-system,"Segoe UI",sans-serif;
  background:var(--bg);
  color:var(--text-main);
  line-height:1.45;
}
.page{min-height:100vh;display:flex;flex-direction:column}
.wrapper{width:100%;max-width:var(--max-width);margin:0 auto;padding:0 16px}

/* ======================  TOPBAR / NAV - MOBILE FIRST  ====================== */
.nb-topbar{
  position:sticky;
  top:0;
  z-index:1200;
  width:100%;
  background:#0c0d12;
  box-shadow:0 8px 22px rgba(6,10,20,0.35);
  border-bottom:1px solid rgba(255,255,255,0.03);
}

/* Mobile first - simple layout */
.nb-inner{
  display:flex;
  justify-content:space-between;
  align-items:center;
  padding:12px 16px;
  position:relative;
}

/* Hide desktop nav on mobile */
.nb-nav{
  display:none;
}

/* Logo */
.nb-logo img{
  height:100px;
  width:auto;
}

/* Hamburger menu mobile */
.nb-hamb{
  display:flex;
  flex-direction:column;
  justify-content:center;
  width:36px;
  height:36px;
  background:#fff;
  border:none;
  border-radius:8px;
  cursor:pointer;
  padding:6px;
  z-index:2000;
}
.nb-hamb span{
  display:block;
  height:2px;
  background:#111;
  margin:3px 0;
  border-radius:2px;
  width:100%;
  transition:all .22s ease;
}

/* Mobile menu overlay */
.nb-mobile{
  display:none;
  position:fixed;
  inset:0;
  background:rgba(4,6,8,0.95);
  z-index:1500;
  /* padding-top:80px; */
  overflow-y:auto;
}
.nb-mobile.show{
  display:block;
  
 z-index: 9999;
}
.nb-mobile nav{
  display:flex;
  flex-direction:column;
  gap:0;
  padding:20px;
  max-width:420px;
  margin:0 auto;
}
.nb-mobile a{
  color:#fff;
  padding:16px 0;
  font-size:18px;
  font-weight:700;
  border-bottom:1px solid rgba(255,255,255,0.1);
  text-align:center;
}
.nb-mobile a:last-child{
  border-bottom:none;
}

/* Mobile close button */
.nb-mobile-close{
  position:absolute;
  right:20px;
  top:20px;
  background:transparent;
  border:none;
  color:#fff;
  font-size:28px;
  cursor:pointer;
  z-index:1600;
}

/* Search popup */
.nb-search{
  position:fixed;
  inset:0;
  display:none;
  place-items:center;
  z-index:1400;
  background:rgba(6,8,12,0.45);
  backdrop-filter:blur(6px);
}
.nb-search.show{
  display:grid;
}
.nb-search-box{
  width:min(840px,94%);
  background:rgba(255,255,255,0.98);
  border-radius:12px;
  padding:18px;
  box-shadow:0 20px 40px rgba(6,10,20,0.25);
  border:1px solid rgba(0,0,0,0.06);
  position:relative;
}
.nb-search-close{
  position:absolute;
  right:15px;
  top:15px;
  background:transparent;
  border:none;
  font-size:24px;
  cursor:pointer;
  color:#333;
}
.nb-search-form{
  display:flex;
  gap:10px;
  align-items:center;
}
.nb-search-form input[type="search"]{
  flex:1;
  padding:12px 14px;
  border-radius:10px;
  border:1px solid rgba(0,0,0,0.08);
  font-size:16px;
  outline:none;
}
.nb-search-form button{
  padding:10px 14px;
  background:var(--red);
  color:#fff;
  border-radius:10px;
  border:none;
  cursor:pointer;
  font-weight:700;
}
.nb-search-sample{
  margin-top:12px;
  font-size:13px;
  color:#333;
}
.nb-search-sample a{
  margin-left:8px;
  color:var(--red);
  font-weight:700;
}

/* ======================  DESKTOP HEADER FIX (768px and up)  ====================== */
@media (min-width:768px){
  .nb-inner{
    display:grid;
    grid-template-columns: 1fr auto 1fr;
    gap:20px;
    align-items:center;
    padding:12px 16px;
    max-width:var(--max-width);
    margin:0 auto;
  }

  /* Show desktop nav on tablet and desktop */
  .nb-nav{
    display:block;
  }

  .nb-nav ul{
    display:flex;
    gap:12px;
    align-items:center;
    margin:0;
    padding:0;
  }

  .nb-nav a{
    display:inline-block;
    padding:8px 12px;
    border-radius:20px;
    font-family:"Noto Sans Devanagari",sans-serif;
    font-weight:600;
    font-size:14px;
    color:#fff;
    position:relative;
    transition:color .18s ease;
    white-space: nowrap;
  }

  .nb-nav a::after{
    content:"";
    position:absolute;
    left:50%;
    right:50%;
    bottom:-2px;
    height:3px;
    background:var(--red);
    border-radius:2px;
    transform-origin:center;
    transition:left .22s ease,right .22s ease;
  }
  .nb-nav a:hover::after,.nb-nav a:focus::after{
    left:8%;
    right:8%;
  }

  /* Left nav */
  .nb-left{
    justify-self:start;
  }

  /* Right nav */
  .nb-right{
    justify-self:end;
  }

  .nb-right-group{
    display:flex;
    align-items:center;
    gap:10px;
  }

  /* Hide hamburger on desktop */
  .nb-hamb{
    display:none;
  }

  .nb-logo{
    justify-self:center;
  }

  .nb-logo img{
    height:60px;
  }
}

/* ======================  LARGE DESKTOP HEADER (992px and up)  ====================== */
@media (min-width:992px){
  .nb-inner{
    gap:30px;
    padding:12px 16px;
  }

  .nb-nav a{
    font-size:15px;
    padding:8px 14px;
  }

  .nb-logo img{
    height:120px;
  }
}

/* Mega menu desktop only */
@media (min-width:768px){
  .has-mega{
    position:relative;
  }
  
  .nb-mega{
    position:absolute;
    left:50%;
    transform:translateX(-50%);
    top:100%;
    margin-top:8px;
    width:800px;
    background:#fff;
    border-radius:10px;
    padding:18px;
    box-shadow:0 18px 40px rgba(9,12,20,0.12);
    display:none;
    z-index:1300;
    border:1px solid rgba(0,0,0,0.06);
  }
  
  .has-mega:hover .nb-mega{
    display:block;
  }
  
  .nb-mega-grid{
    display:grid;
    grid-template-columns:1fr 1fr 220px;
    gap:14px;
    align-items:start;
  }
  
  .mega-card img{
    width:100%;
    height:120px;
    object-fit:cover;
    border-radius:8px;
  }
  
  .mega-card h4{
    margin:8px 0 6px;
    font-size:16px;
    font-weight:700;
  }
  
  .mega-card p{
    margin:0;
    color:#444;
    font-size:13px;
  }
  
  .mega-list h5,.mega-trending h5{
    margin:0 0 8px;
    font-size:14px;
    font-weight:700;
  }
  
  .mega-list a{
    display:flex;
    gap:8px;
    padding:8px 6px;
    align-items:center;
    color:#111;
    font-weight:600;
    border-radius:6px;
  }
  
  .mega-list a img{
    width:72px;
    height:44px;
    object-fit:cover;
    border-radius:6px;
  }
  
  .mega-trending a{
    display:block;
    padding:6px 0;
    color:#111;
  }
}

/* ======================  MAIN CONTENT - MOBILE FIRST  ====================== */
.main{
  flex:1;
  padding:20px 0;
}

/* Top grid - mobile: single column, image above content */
.top-grid{
  display:flex;
  flex-direction:column;
  gap:24px;
  margin-top:6px;
}

.main-story{
  display:flex;
  flex-direction:column;
  gap:16px;
}

.main-story img{
  width:100%;
  border-radius:6px;
  order:1; /* Image first on mobile */
}

.main-story-title{
  font-size:20px;
  font-weight:600;
  font-family:"Noto Sans Devanagari",sans-serif;
  order:2; /* Title after image */
  line-height:1.3;
}

.main-story-title .highlight-purple{
  color:var(--purple);
}

.main-story-body{
  font-size:14px;
  color:var(--text-muted);
  font-family:"Noto Sans Devanagari",sans-serif;
  order:3; /* Body after title */
  line-height:1.5;
}

/* Side stories - mobile: image above text */
.side-stories{
  display:flex;
  flex-direction:column;
  gap:20px;
}

.side-item{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:12px;
  border-radius:6px;
  background:#f8f8f8;
}

.side-thumb img{
  width:100%;
  border-radius:4px;
  height:180px;
  object-fit:cover;
}

.side-item p{
  font-size:14px;
  font-weight:600;
  font-family:"Noto Sans Devanagari",sans-serif;
  margin:0;
}

.side-item .tag-green{color:var(--green)}
.side-item .tag-orange{color:var(--orange)}
.side-item .tag-blue{color:var(--sky)}

/* Section strip */
.section-strip{
  background:var(--red);
  color:#fff;
  padding:14px 18px;
  margin:28px 0 16px;
  border-radius:4px;
  font-size:20px;
  font-weight:600;
  display:flex;
  align-items:center;
  justify-content:space-between;
}
.section-strip .arrow{
  font-size:20px;
}

/* Card grid - mobile: single column */
.card-grid-4{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}

.card{
  display:flex;
  flex-direction:column;
  gap:12px;
  cursor:pointer;
  transition:transform .2s ease,box-shadow .2s ease;
}

.card img{
  width:100%;
  border-radius:6px;
  aspect-ratio:4/3;
  object-fit:cover;
  order:1; /* Image first */
}

.card-title{
  font-size:16px;
  font-weight:600;
  font-family:"Noto Sans Devanagari",sans-serif;
  order:2; /* Title after image */
  line-height:1.3;
}

.card-title .green{color:var(--green)}
.card-title .orange{color:var(--orange)}
.card-title .blue{color:var(--sky)}

.card:hover{
  transform:translateY(-4px);
  box-shadow:0 12px 28px rgba(0,0,0,0.08);
}

/* Feature section - mobile */
.feature-head{
  background:var(--red);
  color:#fff;
  padding:10px 20px;
  display:flex;
  align-items:center;
}
.feature-head h2{
  font-size:20px;
  font-weight:700;
  margin:0;
}
.ft-arrow{
  margin-left:auto;
  font-size:24px;
  font-weight:700;
}

.feature-box{
  background:#000;
  padding:20px 15px 0;
  color:#fff;
  border-radius:6px;
}
.feature-grid{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:6px;
}
.feature-grid img{
  width:100%;
  height:auto;
  border-radius:2px;
  object-fit:cover;
}
.feature-caption{
  background:var(--red);
  color:#fff;
  text-align:center;
  padding:20px 10px;
  margin-top:10px;
}
.feature-caption h3{
  font-size:18px;
  font-weight:700;
  margin:0 0 8px;
}
.feature-caption p{
  margin:0;
  font-size:14px;
  opacity:.95;
}

/* Video section - mobile */
.fig-video-section{
  margin-top:40px;
  background:#fff;
}
.video-head{
  display:flex;
  align-items:center;
  gap:10px;
  background:var(--red);
  padding:8px 15px;
  color:#fff;
  font-size:20px;
  font-weight:700;
}
.vh-arrow{
  margin-left:auto;
  font-size:24px;
  font-weight:700;
}

.video-wrapper{
  background:#000;
  padding:20px;
  display:flex;
  flex-direction:column;
  gap:20px;
  color:#fff;
  border-radius:6px;
}

.video-left-thumb{
  position:relative;
  border-radius:4px;
  overflow:hidden;
}
.play-icon-big{
  position:absolute;
  top:50%;
  left:50%;
  transform:translate(-50%,-50%);
  font-size:50px;
  color:red;
  background:#fff;
  border-radius:50%;
  width:70px;
  height:70px;
  display:flex;
  align-items:center;
  justify-content:center;
  opacity:.95;
  cursor:pointer;
}
.yt-logo{
  position:absolute;
  bottom:10px;
  right:10px;
  width:70px;
  opacity:.9;
}
.v-main-title{
  color:#fff;
  font-size:18px;
  font-weight:700;
  margin-top:12px;
  line-height:1.35;
}

.video-right .v-item{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:18px;
  cursor:pointer;
}
.v-thumb{
  width:100%;
  height:120px;
  border-radius:4px;
  object-fit:cover;
}
.video-right p{
  color:#fff;
  font-size:14px;
  line-height:1.3;
  font-weight:500;
  margin:0;
}

/* Special quad - mobile: single column, image above content */
.special-quad{
  margin-top:40px;
  display:flex;
  flex-direction:column;
  gap:24px;
}

.sq-card{
  background:#fff;
  border-radius:6px;
  padding-bottom:12px;
  overflow:hidden;
  box-shadow:0 4px 12px rgba(0,0,0,0.1);
}

.sq-head{
  display:flex;
  align-items:center;
  color:#fff;
  padding:10px 16px;
  font-weight:700;
}
.sq-head h3{
  margin:0;
  font-size:18px;
}
.sq-arrow{
  margin-left:auto;
  font-size:22px;
  font-weight:700;
}

.sq-row{
  display:flex;
  flex-direction:column;
  gap:12px;
  padding:16px;
}

.sq-left img{
  width:100%;
  border-radius:5px;
  object-fit:cover;
  height:150px;
}

.sq-desc{
  font-size:15px;
  color:#333;
  line-height:1.45;
  margin-bottom:8px;
}
.sq-info{
  font-size:14px;
  color:#555;
  line-height:1.45;
  margin-bottom:10px;
}
.sq-main{
  font-size:16px;
  font-weight:700;
  line-height:1.45;
}

.sq-purple .sq-head{background:#a333a8}
.sq-blue .sq-head{background:#0079c9}
.sq-red .sq-head{background:#d70000}
.sq-teal .sq-head{background:#0a9ea8}

.hl-purple{color:#a333a8}
.sq-blue-text{color:#0079c9}
.sq-red-text{color:#d70000}
.sq-teal-text{color:#0a9ea8}

/* All news section - mobile */
.all-news-head{
  margin-top:40px;
  background:var(--red);
  color:#fff;
  padding:10px 18px;
  border-radius:4px;
  font-size:20px;
  font-weight:600;
  display:inline-flex;
}

.all-news-layout{
  margin-top:18px;
  display:flex;
  flex-direction:column;
  gap:20px;
}

.all-news-thumbs{
  display:grid;
  grid-template-columns:repeat(2,1fr);
  gap:12px;
}

.all-news-thumbs img{
  width:100%;
  border-radius:4px;
  height:120px;
  object-fit:cover;
}

.all-news-list{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.all-news-item-title{
  font-size:16px;
  font-weight:700;
  margin-bottom:8px;
  line-height:1.3;
}

.all-news-item-body{
  font-size:14px;
  color:rgba(0,0,0,0.8);
  line-height:1.5;
}

.all-news-item-title .orange{color:var(--orange)}
.all-news-item-title .green{color:var(--green)}
.all-news-item-title .purple{color:var(--purple)}

/* Pagination */
.pagination{
  margin-top:24px;
  display:flex;
  justify-content:center;
  gap:8px;
  font-size:16px;
  flex-wrap:wrap;
}
.pagination span{
  width:34px;
  height:34px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#f0f0f0;
  cursor:pointer;
}
.pagination .current{
  background:#000;
  color:#fff;
}

/* Article page - mobile */
.article-wrapper{
  display:flex;
  flex-direction:column;
  gap:24px;
}

.article-main-title{
  font-size:22px;
  font-weight:600;
  margin-bottom:8px;
  line-height:1.3;
  order:1;
}

.article-image-main{
  order:2;
  margin:12px 0;
}

.article-image-main img{
  width:100%;
  border-radius:6px;
}

.article-body{
  order:3;
  font-size:15px;
  color:rgba(0,0,0,0.9);
  line-height:1.6;
}

.article-body p{
  margin-bottom:16px;
}

.article-side-head{
  margin:24px 0 12px;
  background:var(--red);
  color:#fff;
  padding:10px 12px;
  border-radius:4px;
  font-size:18px;
  font-weight:600;
  order:4;
}

.article-side-item{
  display:flex;
  flex-direction:column;
  gap:10px;
  margin-bottom:16px;
  padding:12px;
  border-radius:6px;
  background:#f8f8f8;
  order:5;
}

.article-side-item img{
  width:100%;
  height:140px;
  object-fit:cover;
  border-radius:4px;
}

.article-side-text{
  font-size:14px;
  font-weight:600;
  line-height:1.3;
}

/* List page - mobile */
.list-title-main{
  font-size:24px;
  font-weight:700;
  margin-top:20px;
  margin-bottom:10px;
  text-align:center;
}
.list-top-line{
  height:3px;
  background:var(--red);
  border:none;
  margin:10px 0 30px;
}
.list-grid{
  display:grid;
  grid-template-columns:1fr;
  gap:20px;
}
.list-card{
  display:flex;
  flex-direction:column;
  gap:12px;
  text-decoration:none;
  color:inherit;
}
.list-card img{
  border-radius:6px;
  aspect-ratio:4/3;
  object-fit:cover;
  width:100%;
  order:1;
}
.list-card-title{
  font-size:16px;
  font-weight:600;
  line-height:1.3;
  order:2;
}

/* Footer */
footer{
  margin-top:40px;
  background:#000;
  color:rgba(255,255,255,0.7);
  padding:24px 0 18px;
}
.footer-inner{
  display:flex;
  flex-direction:column;
  align-items:center;
  gap:14px;
  text-align:center;
  font-size:14px;
}
.footer-logos{
  display:flex;
  align-items:center;
  gap:18px;
}
.footer-logo-main{
  width:180px;
  height:auto;
  object-fit:cover;
}

/* Animations */
.fade-up{
  opacity:0;
  transform:translateY(12px);
  animation:fadeUp .6s ease-out forwards;
}
.fade-up.delay-1{animation-delay:.1s}
.fade-up.delay-2{animation-delay:.2s}
.fade-up.delay-3{animation-delay:.3s}
@keyframes fadeUp{to{opacity:1;transform:translateY(0)}}

/* ======================  TABLET STYLES (768px and up)  ====================== */
@media (min-width:768px){
  .wrapper{
    padding:0 20px;
  }

  .main-story-title{
    font-size:22px;
  }

  .side-stories{
    display:grid;
    grid-template-columns:repeat(2,1fr);
    gap:20px;
  }

  .side-item{
    flex-direction:row;
    gap:15px;
  }

  .side-thumb img{
    width:120px;
    height:100px;
    flex-shrink:0;
  }

  .card-grid-4{
    grid-template-columns:repeat(2,1fr);
  }

  .feature-grid{
    grid-template-columns:repeat(3,1fr);
  }

  .video-wrapper{
    flex-direction:row;
  }

  .video-right .v-item{
    flex-direction:row;
    gap:12px;
  }

  .v-thumb{
    width:120px;
    height:70px;
    flex-shrink:0;
  }

  .special-quad{
    display:grid;
    grid-template-columns:1fr;
    gap:28px;
  }

  .sq-row{
    flex-direction:row;
    gap:18px;
  }

  .sq-left img{
    width:150px;
    height:120px;
    flex-shrink:0;
  }

  .all-news-layout{
    display:grid;
    grid-template-columns:200px 1fr;
    gap:16px;
  }

  .all-news-thumbs{
    grid-template-columns:1fr;
  }

  .all-news-thumbs img{
    height:90px;
  }

  .article-wrapper{
    display:grid;
    grid-template-columns:1fr;
  }

  .list-grid{
    grid-template-columns:repeat(2,1fr);
  }
}

/* ======================  DESKTOP STYLES (992px and up)  ====================== */
@media (min-width:992px){
  /* Main content desktop */
  .top-grid{
    display:grid;
    grid-template-columns:minmax(0,2fr) minmax(0,3fr);
    gap:24px;
  }

  .main-story{
    display:block;
  }

  .main-story img{
    order:0;
    margin-bottom:12px;
  }

  .main-story-title{
    order:0;
    font-size:24px;
    margin-bottom:8px;
  }

  .main-story-body{
    order:0;
  }

  .side-stories{
    display:grid;
    grid-template-columns:100px minmax(0,1fr);
    gap:14px 18px;
  }

  .side-item{
    flex-direction:row;
    background:transparent;
    padding:0;
    gap:0;
  }

  .side-thumb img{
    width:100%;
    height:80px;
  }

  .card-grid-4{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .card{
    display:block;
  }

  .card img{
    order:0;
    margin-bottom:8px;
  }

  .card-title{
    order:0;
  }

  .special-quad{
    grid-template-columns:repeat(2,1fr);
    gap:40px;
  }

  .sq-row{
    display:grid;
    grid-template-columns:150px 1fr;
  }

  .sq-left img{
    width:100%;
    height:120px;
  }

  .all-news-layout{
    grid-template-columns:200px minmax(0,1.5fr) minmax(0,1.5fr);
  }

  .all-news-thumbs{
    grid-template-columns:1fr;
  }

  .article-wrapper{
    grid-template-columns:minmax(0,3fr) minmax(0,2fr);
  }

  .article-main-title{
    order:0;
  }

  .article-image-main{
    order:0;
  }

  .article-body{
    order:0;
  }

  .article-side-head{
    order:0;
    margin:0 0 12px;
  }

  .article-side-item{
    order:0;
    display:grid;
    grid-template-columns:90px minmax(0,1fr);
    background:transparent;
    padding:0;
    margin-bottom:12px;
  }

  .article-side-item img{
    width:90px;
    height:70px;
  }

  .list-grid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }

  .list-card{
    display:block;
  }

  .list-card img{
    order:0;
    margin-bottom:10px;
  }

  .list-card-title{
    order:0;
  }
}

/* ======================  LARGE DESKTOP STYLES (1200px and up)  ====================== */
@media (min-width:1200px){
  .wrapper{
    max-width:var(--max-width);
  }

  .main-story-title{
    font-size:26px;
  }

  .article-main-title{
    font-size:28px;
  }
}

/* ======================  UTILITY CLASSES  ====================== */
.hidden{display:none !important}
.visually-hidden{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}

/* END */