

          *{
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: 'Poppins', sans-serif;
        }
        
        
        /* --- Fix horizontal scroll on mobile --- */
        html, body {
          height: 100%;
          
        }

                
        a{
            text-decoration: none;
        }
        ul{   
            list-style: none;
        }
        
        
        body{
            margin: 0;
            padding: 0;
            font-family: 'poppins', sans-serif;
            overflow-x: hidden;
        }

        html, body {
  overflow-x: hidden;
  margin: 0;
  padding: 0;
}

/* Make sure all elements fit inside the screen */


        .home{
            width: 100%;
            height: 100vh;
            background-image: url('IronMan-Feature.jpg');
            background-position: center;
            background-repeat: no-repeat;
            background-size: cover;
            position: relative;
        }

    .navbar {
    width: 90%;
    margin-left: 5%;
    position:relative;
    top: 5%;
    padding: 10px 40px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: transparent;
    /*border-bottom: 1px solid rgba(255, 255, 255, 0.2);*/
    z-index: 1000;
    color: white;
}

.nav-logo {
    height: 50px;
    margin-bottom: 5px;
}


.nav-left {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 13px;
  font-weight: 500;
  position: absolute;
}


/* When visible */
.search-bar.visible {
  display: inline-block;
}

.search-icon.hide {
  display: none;
}

.nav-date {
  line-height: 1.8;
}

.nav-date strong {
  display: block;
  font-weight: 600;
}

.nav-date span {
  color: #ccc;
  font-size: 12px;
}


.nav-center {
    flex: 1;
    text-align: center;
}



/*  bottom nav in Most viewed section*/



.most-viewed-section {

    position: absolute;
    left: 15vw;
    bottom: 1vh;
    color: white;
    font-family: 'Inter', sans-serif;
    /* background: black;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px); */
    background: hsla(0, 0%, 100%, .5);
    box-shadow: 0 4px 12px -1px rgba(0, 0, 0, .1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid hsla(0, 0%, 100%, .3);
    overflow: hidden;
    width: 71%;
    height: 55px;
    display: flex;
    justify-content: center;
    align-items: center;
    border-radius: 10px;
}

.nav-links-wrapper {
    position: relative;
    overflow-x: auto;
    scrollbar-width: none; 
    padding: 0 1% 0 1%;
}
.nav-links-wrapper::-webkit-scrollbar {
  display: none; /* Hide scrollbar in Chrome/Safari */
}
.nav-links-wrapper::before {
    display: none;
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    
    width: 100%;
    height: 1px;
    background-color: rgba(255, 255, 255, 0.3); /* Light white line */
}

.nav-links {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    white-space: nowrap;
    gap: 35px;
}


.nav-links li {
    font-size: 14px;
    color: #000000;
    cursor: pointer;
    transition: color 0.3s ease;
    font-weight: 500;
    flex: 0 0 auto;
}

.nav-links li:hover {
    color: #ffffff;
}




/* Mobile view: make nav horizontally scrollable */
@media (max-width: 768px) {
  .home{
    height: 100%;

  }

  .most-viewed-section {
    position: absolute;
    width: 90%;
    bottom: 1vh;
    height: 6%;
    padding: 10px 10px;
    left: 5%;
    /* background: rgba(0, 0, 0, 0.8); */
    background: hsla(0, 0%, 100%, .5);
    box-shadow: 0 4px 12px -1px rgba(0, 0, 0, .1);
    -webkit-backdrop-filter: blur(15px);
    backdrop-filter: blur(15px);
    border: 1px solid hsla(0, 0%, 100%, .3);

    overflow: hidden;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    border-radius:10px;
  }

  .nav-links-wrapper {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;             /* Hide scrollbar in Firefox */
  }

  .nav-links-wrapper::before {
    display: none;
  }

  .nav-links-wrapper::-webkit-scrollbar {
    display: none; /* Hide scrollbar in Chrome/Safari */
  }

  .nav-links {
    display: flex;
    gap: 24px;
    padding: 10px 20px;
    flex-wrap: nowrap;
    justify-content: flex-start;
    align-items: center;
    white-space: nowrap;
  }

  .nav-links li {
    font-size: 14px;
    color: white;
    font-weight: 500;
    cursor: pointer;
    transition: color 0.3s ease;
    flex: 0 0 auto;
  }

  .nav-links li:hover {
    color: #000000 !important;
  }
  .subscribe-btn{
    margin-left: 0;
  }


  .navbar{
    /* border-bottom: 1px solid rgba(255, 255, 255, 0.2); */
    justify-content: center; 
    width: 100%;
    padding: 10px 10px;
    margin-left: 0;
    }
    /* 
  .nav-logo{
    height: 30px;
    transform: translate(36%);
  }

  .search-icon{
    top: 0;
  } */

  .nav-date{
    display: none;
  }
}







/* ==============================Popular section css===================*/
.nav-item{
  color: rgb(0, 0, 0);
}
.nav-item:hover{
  color: white;
}



/* container & title */
.popular-section {
  position: absolute;
  top: 50%;
  right: 8vw;

  transform: translateY(-50%); /* perfect vertical centering */

  background: #fff;
  border-radius: 12px;
  padding: 20px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.05);
  width: 300px;
  max-height: 70vh;

  z-index: 10;
  font-family: "Inter", sans-serif;

}

.category-title {
  font-size: 10px;
  font-weight: 600;
  color: #666;
  text-transform: uppercase;
  margin-bottom: 12px;
}

/* Container shows exactly one "page" (3 items) at a time */
.popular-articles-container {
  max-height: calc(70vh - 60px);
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  /* max-height: calc( (95px * 3) + (16px * 2) + 32px ); 
  scroll-snap-type: y mandatory;
  overflow-y: auto; */
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  padding-right: 8px;
  border-radius: 8px;
  scrollbar-width: none;
  /* enable scroll snapping vertically */
}

/* WebKit scrollbar visual */
.popular-articles-container::-webkit-scrollbar {
  width: 8px;
}
.popular-articles-container::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 6px;
}

/* Each page is a snap stop */
.blog-page {
  scroll-snap-align: start;
  /* ensure a page stacks its children vertically */
  display: flex;
  flex-direction: column;
  gap: 16px;
  padding: 8px 0; /* small padding to make breathing room inside page */
  box-sizing: border-box;
}

/* blog card styles (keep your look) */
.popular-article {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 15px;
  padding: 8px 6px;
  border-bottom: 1px solid  #bbbbbb;
  cursor: pointer;
  margin-top: 2%;
  min-height: 75px; /* set consistent height so 3 rows align perfectly */
  box-sizing: border-box;
  background: transparent;
  transition: transform 0.16s ease;
}

.popular-article:hover {
  transform: translateY(-3px);
}

.popular-article .text {
  flex: 1;
}

.popular-article .title {
    font-family: "clash display";
    font-size: 12px;
    font-weight: 600;
    line-height: 1.2;
    color: #111;
    word-spacing: 3.2px;
    margin-bottom: 8px;
}

.popular-article .author {
  display: flex;
  align-items: center;
  gap: 1px;
  font-size: 10px;
  color: #09090B;
  text-transform: uppercase;
  font-weight: 500;
}

.popular-article .author img {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  object-fit: cover;
}

.popular-article .thumbnail {
  width: 75px;
  height: 75px;
  border-radius: 4px;
  object-fit: cover;
  flex-shrink: 0;
}

/* Responsive: reduce sizes on small screens */
@media(max-width:768px){
    .nav-item:hover{
        color:  rgb(0, 0, 0) !important;
    }
}

@media (max-width: 480px) {
    .popular-section{
        display: none;
    }
    

}








 













    