/* Loader css start */
#main.width-100{
  /* padding: 0px!important; */
}
.owl-carousel {
    display: block !important;
}
#np-loader-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    /* background-color: rgba(0, 0, 0, 0.5); */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 9999;  /* make sure it's on top */
}

#np-loader img {
    width: 180px;
    height: auto;
    /* animation: spin 1s linear infinite; */
}
.np-load-more-wrapper{
  text-align: center;
}
.np-load-more-btn{
  background: #fff;
    padding: 10px 18px;
    font-size: 16px;
    color: #707070;
    border-radius: 25px;
    border: 1px solid #707070;
    margin-top: 30px;
    cursor: pointer;
    transition: transform 0.8s ease, box-shadow 0.8s ease;
}
.np-load-more-btn:hover {
  /*color: #add361;*/
  /*border: 1px solid #add361;*/
  transform: scale(1.1); /* Zoom in by 10% */
}
#np-loader.np-loader-wrapper {
    position: fixed;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 9999;
    /* background: rgba(255, 255, 255, 0.85); */
    padding: 20px;
    border-radius: 8px;
}

.np-loader-img {
    width: 60px;
    height: auto;
}

/* Loader css ends */

.np-go-back-button {
    position: fixed;
    left: 40px;
    top: 20px;
    z-index: 9999;
    color: #707070;
}

.np-tabs {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    /* margin-top: 30px; */
    margin-bottom: 60px;
  }

  .np-tab {
    position: relative;
    padding: 12px 20px;
    cursor: pointer;
    background: transparent;
    border-radius: 5px 5px 0 0;
    font-weight: normal;
    color: #333;
    overflow: hidden;
  }

  .np-tab::after {
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    height: 2px;
    width: 0;
    background-color: #000;
    transition: width 0.3s ease;
  }

  .np-tab.np-active::after,
  .np-tab:hover::after {
    width: 100%;
  }

  .np-tab.np-active,
  .np-tab:hover {
    color: #000;
    font-weight: bold;
  }

  

  .np-tab-content {
    /* display: none; */
    border-radius: 0 0 5px 5px;
    padding: 0px;
  }

  .np-tab-content.np-active {
    display: flex;
    flex-wrap: wrap;
    gap: 30px;
  }

  .np-tab-content.np-news.np-active {
    display: block;
  }

    #np-tab-content .np-article .np-tab-image img{
        width: 100%;
        height: 100%;
        border-radius: 0px;
    }
    
    #np-tab-content .np-article .np-tab-text h3{
        margin-top: 0px;
        font-size: 25px;
    }
    #np-tab-content .np-article .np-tab-text h4{
        margin-top: 0px;
    }
    .np-tab-text h3{
        margin-top: 0px;
        font-size: 25px!important;
    }
    
    
    
    .np-videos {
        display: flex;
        flex-wrap: wrap;
        gap: 50px;
        padding: 30px 0px;
        border-bottom: 1px solid #000;
    }
    
    .np-videos:last-child {
        border-bottom: none;
    }
    
    .np-videos .np-tab-video {
        flex: 1 1 100%;
        max-width: 510px;
    }
    
    .np-videos .np-tab-video .np-video-wrapper {
        position: relative;
        width: 100%;
        padding-bottom: 56.25%; /* 16:9 aspect ratio */
        height: 0;
        overflow: hidden;
    }
    .np-videos .np-tab-video .np-video-wrapper iframe {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        border: 0;
    }
    
    .np-videos .np-tab-text {
        flex: 2 1 100%;
        max-width: calc(100% - 570px);
    }
    .np-videos .np-tab-text h3{
        margin-top: 0px;
        font-size: 25px;
    }
    
    
    .np-blogs {
      display: flex;
      flex-wrap: wrap;
      gap: 50px;      
      border-bottom: 1px solid #000;
      padding: 30px 0px;
      width: 100%;
    }

.np-blogs:last-child{
    border-bottom: none;
}
  .np-tab-image {
    flex: 1 1 500px;
    max-width: 500px;
  }

  .np-tab-image img {
    width: 100%;
    height: auto;
    border-radius: 0px;
  }

  .np-tab-text {
    flex: 2 1 600px;
  }

  /* .np-tab-text h3 {
    font-size: 22px;
    margin-bottom: 10px;
  }

  .np-tab-text h4 {
    font-size: 20px;
    font-weight: normal;
    margin-bottom: 10px;
  } */

  .np-tab-text .np-date {
    color: #777;
    font-size: 15px;
    margin-bottom: 10px;
  }

  .np-tab-text p {
    font-size: 17px;
    color: #555;
    line-height: 1.6;
    margin-bottom: 20px !important;
    padding-top: 25px;
  }

  .np-read-btn {
    display: inline-block;
    padding: 0px 20px;
    background: #fff;
    color: #707070;
    text-decoration: none;
    border-radius: 25px;
    font-weight: normal;
    margin-top: 45px;
    border: 1px solid #707070;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
  }

  .np-article {
    display: flex;
    flex-wrap: wrap;
    gap: 50px;    
    border-bottom: 1px solid #000;
    padding: 30px 0px;
    width: 100%;
  }

  .np-article:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
  }

  .np-grid-container .np-posts-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(31%, 1fr));
    gap: 40px
  }

  .np-card {
    background: #fff;
    box-shadow: 0 3px 8px #0000002b;
    overflow: hidden;
    border-radius: 0px;
    /*margin-bottom: 30px;*/
  }

  .np-image-wrapper {
    position: relative;
    display: inline-block;
  }

  .np-image-wrapper img {
    width: 100%;
    height: auto;
    display: block;
  }

  .np-image-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(0, 0, 0, 0.6); /* semi-transparent background */
    color: #fff;
    padding: 10px;
    text-align: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    pointer-events: none;
  }


  .np-image-wrapper:hover .np-image-caption {
        opacity: 1;
        pointer-events: auto;
    }

  .np-card-content {
    padding: 16px;
  }

  .np-card-content h3 {
    font-size: 14px !important;
    font-weight: bold !important;
    margin-bottom: 0px !important;
    margin-top: 0px;
    
  }

  .np-card-content p {
    font-size: 14px;
    color: #555;
    margin-bottom: 10px;
  }

  .np-blog-btn {
    text-align: center;
  }

  .np-read-link {
    font-size: 13px;
    color: #707070;
    text-decoration: underline;
    font-weight: bold;
  }

  .np-read-link:hover {
    text-decoration: underline;
  }

  /* ========== Base Layout ========== */
.np-post-details {
  padding: 40px 0px 0px;
  width: 100%;
  margin: 0 auto;
  box-sizing: border-box;
  /*border-top: 1px solid #707070;*/
}

.np-post-details h2, .np-post-details h3 {
  font-size: 25px;
  margin-bottom: 15px;
  color: #111;
  line-height: 1.3rem!important;
  text-align: center;
}

.np-post-details .np-featured-img,
.np-post-details .np-extra-img {
  margin: 20px 0;
  text-align: center;
}

.np-post-details .np-featured-img img,
.np-post-details .np-extra-img img {
  max-width: 100%;
  height: auto;
  border-radius: 0px;
  width: 100%;
}
.np-post-details .np-content img{
  max-width: 100%;
  height: auto;
  width: 100%;
}


.np-post-details .np-news-layout {
  display: flex;
  gap: 35px;
  align-items: flex-start;
  margin-top: 40px;
  margin-bottom:50px;
}

.np-post-details .np-news-left {
  width: 35%;
  overflow-y: auto; /* enable vertical scroll */
  max-height: 100%; 
  padding-right: 5px; /* for scrollbar spacing */
}

.np-post-details .np-news-left .np-content .np-content-wrap{
    font-size: 1rem;
    line-height: 1.75;
    color: #444;
    margin-bottom: 30px;
    padding: 0px 25px 0px 0px;
    text-align: justify;
    overflow-y: auto;
}

.np-content-wrap img,
.np-content-wrap video,
.np-content-wrap iframe {
    max-width: 100%;
    height: auto;
    display: block;
    margin: 10px 0;
}

.video-wrap {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 ratio */
    height: 0;
    overflow: hidden;
    max-width: 100%;
    margin-bottom: 15px;
}

.video-wrap iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Optional: nice scrollbar for left side */
/*.np-post-details .np-news-left .np-content-wrap::-webkit-scrollbar {*/
/*  width: 6px;*/
/*}*/
/*.np-post-details .np-news-left .np-content-wrap::-webkit-scrollbar-thumb {*/
/*  background: #ccc;*/
/*  border-radius: 3px;*/
/*}*/


.np-post-details .np-news-left .np-content p:first-of-type {
    margin-top:-5px;
}
.np-post-details .np-news-right {
  width: 65%;
}

.np-news-right.np-column-right iframe{
    width:100%;
    height:656px;
}

.np-news-right.np-column-right .np-image-error{
    height:656px;
}

.np-video-playing {
    background: #000;
}

.np-video-playing .owl-nav {
    opacity: 1;
}

.np-content-wrap {
    word-wrap: break-word;    /* For older browsers */
    overflow-wrap: break-word; /* Standard property */
}

/*.np-post-details .np-news-right .np-news-slider {*/
/*  margin-top:25px;*/
/*}*/

.np-news-slider img {
  width: 100%!important;
  height: auto;
  border-radius: 8px;
  object-fit: cover;
}

.np-image-error {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: #f5f5f5;
  color: #666;
  font-size: 16px;
  font-style: italic;
  text-align: center;
  border: 1px solid #ddd;
  border-radius: 8px;
}



.owl-nav button {
  position: absolute;
  top: 38%;
  transform: translateY(-50%);
  color: rgba(0,0,0,0.4) !important;
  border-radius: 50%;
  width: auto;
  height: auto;
}

.owl-nav button.owl-prev { left: -25px; }
.owl-nav button.owl-next { right: -23px; }

.owl-nav button.owl-prev span,
.owl-nav button.owl-next span { 
    font-size:60px;
    
}

/* ========== Responsive Video Embed ========== */
.np-video-embed {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 */
  height: 0;
  overflow: hidden;
  /* margin-bottom: 20px; */
}

.np-video-embed iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  border: 0;
}

/* ========== Post Content ========== */
.np-post-details .np-content {
  font-size: 1rem;
  line-height: 1.75;
  color: #444;
  margin-bottom: 30px;
  /*padding: 10px 150px;*/
  text-align: center;
}
/*============ BTN HOVER ============*/

.np-read-btn:hover{
  /*color: #add361;*/
  /*border: 1px solid #add361;*/
  transform: scale(1.1); /* Zoom in by 10% */
    /*box-shadow: 0 4px 10px rgba(0, 0, 0, 0.15);*/
}


  @media (max-width: 768px) {
    .np-tab {
      padding: 5px 10px;
    }
    .np-tab-image {
      max-width: initial;
  }
    .np-grid-container .np-posts-container{
        grid-template-columns: repeat(auto-fit, minmax(46%, 1fr));
    }
    .np-tab-content {
      flex-direction: column;
    }
     /* .np-videos {
        flex-direction: column;
    } */
    .np-videos .np-tab-video {
        max-width: 100%;
    }
    .np-videos .np-tab-text {
        max-width: 100%;
    }
    .np-videos .np-tab-text a{
        /*padding: 0px;*/
    }

    .np-blogs .np-read-btn{
      /*padding: 0px;*/
    }

    .np-post-details {
      padding: 15px;
    }

    .np-post-details h2,
    .np-post-details h3 {
      font-size: 1.5rem;
      line-height: 2rem !important;
    }

    .np-post-details .np-content {
        font-size: 0.95rem;
        padding: 10px 0px!important;
    }

    .np-post-details .np-extra-img img {
        margin-bottom: 10px;
    }
    
    .np-post-details .np-news-layout{
        width: 100%;
        flex-flow: column-reverse;
        gap: 20px;
    }
    .np-post-details .np-news-layout .np-news-left{
        max-height: 604.875px;
        width: 100% !important;
        overflow-y: hidden;
    }
    .np-post-details .np-news-layout .np-news-right{
        width: 100%;
    }
    
    
    
    
    
}
@media (max-width: 600px) {
  .np-tab {
    padding: 5px 5px;
  }
  .np-tabs {
    margin-bottom: 10px;
  }
  .np-content h1{
    font-size: 18px;
  }
  #main.width-100 {
    /* padding: 0px 10px !important; */
  }
}
