  /* Home page */
  a.nav-link{
    color:#000 !important;
  }

  .navbar-brand img{
    width:200px;
    max-height: 50px;
    height: auto;
  }

  .nav-item.active .nav-link{
     color:#000 !important;
  }
  .banner-wrapper {
    padding: 0 20px;
    /* margin-top: 140px; */
  }

  .banner {
    position: relative;
    height: 620px;
    border-radius: 20px;
    overflow: hidden;
    background-image: url('https://www.biospectrumindia.com/media-kit/images/banner-image.avif');
    background-size: 125%;
    background-repeat: no-repeat;
    background-position: 90% top; /* ✅ Start from 90% horizontally */
    transition: background-position 0.2s ease-out;
  }

  .banner-overlay {
    position: absolute;
    inset: 0;
  }

 .banner-text {
  position: absolute;
  top: 50%;
  left: 5%;
  transform: translateY(-50%);
  color: #000;
  background-color: #fff;
  padding: 60px;
  border-radius: 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  /* height: 535px; */
  width: 600px;           /* ✅ Updated: fixed width */
  max-width: unset;       /* ✅ Remove the max-width limit */
  box-sizing: border-box;
}


.banner-text-content {
  flex-grow: 1; /* ✅ allows it to take up remaining space */
}

.banner-text-content h1{
  font-size: 62px;
  font-weight: 700;
}

.banner-subtitle{
  font-weight : 400 ;
  font-size: 18px;
}

.banner-btn {
  align-self: flex-start;
  margin-bottom: 10px; /* ✅ 10px above bottom */
}

.banner-btn:hover {
    background-color: #fff;
    color: #000;
    border-color: #000;
}
.about{
  padding:65px 0px 50px 58px;
  text-align:left;
  border-radius:20px;
}


.about-info{
  width:700px;
  font-size:18px;
}

.mid-banner{
  border-radius:20px;
  margin-top:30px;
  background-image: url('https://www.biospectrumindia.com/media-kit/images/mid-img.avif');
  height:300px;
  background-size: 100%;
  background-repeat: no-repeat;
}

.stats-section {
  background-color: #000;
  padding: 60px 20px;
  margin-top: 30px;
  text-align: center;
  color: #fff;
}

.section-title {
  font-size: 24px;
  font-weight: 600;
  margin-bottom: 40px;
}

.stats-logos {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 120px;
}

.logo-card {
  background-color: #1a1a1a;
  padding: 30px;
  width: 150px;
  height: 150px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: transform 0.3s ease;
}

.logo-card:hover {
  transform: scale(1.05);
}

.logo-card img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

.book-call {
  padding: 50px 50px;
  text-align: center;
  background-color :#f0f0f0cc;
}

.book-call h1 {
  font-weight: 700;
  font-size: 46px;
}

.book-call p {
  font-size: 20px;
}

.book-call a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background-color: #404040;
  color: #fff;
  width: 165px;       /* Set desired width */
  height: 40px;       /* Set desired height */
  margin-top: 20px;
  border-radius: 0px;
  text-decoration: none;
  font-size: 16px;
  font-weight: 500;
}

.book-call a:hover{
  color:#000 !important;
  background-color:#fff;
  border-color: #000;
}

.industry-heading{
   background-color:#000;
   padding : 20px 20px;
}

.custom-carousel-wrapper {
  max-width: 980px;
  margin: 0 auto;
  overflow: hidden;
  position: relative;
}

.custom-carousel .item {
  position: relative;
  width: 980px;
  height: 470px;
}

.custom-carousel img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.carousel-caption {
  position: absolute;
  color: white;
  font-size: 36px;
  font-weight: bold;
  padding: 10px 20px;
  border-radius: 8px;
  /* top: auto !important;
  bottom: auto !important;
  left: auto !important;
  right: auto !important; */
  transform: none;
}

/* Correctly positioned at top-left corner */
.carousel-caption.top-left {
  top: 20px;
  left: 20px;
  left : -40% !important;
  transform: none;
}

/* Correctly positioned at bottom-right corner */
.carousel-caption.bottom-right {
  bottom: 13px;
  right: 20px;
  left : 60% !important;
  transform: none;
}

.owl-dots {
  position: absolute;
  bottom: 15px;
  width: 100%;
  text-align: center;
}

.banner1{
  padding: 50px 65px;
  border-radius:20px;
  margin-left:20px;
  margin-right:20px;
  margin-top:20px;
}

.banner1 h1{
  font-size:62px;
  font-size:700;
}
.banner1 p{
   font-size:20px;
   margin-bottom:0px!important;
}

.media-section-wrapper {
  width: 100%;
  padding-left: 30px !important;
  padding-right: 30px !important;
}

.media-card {
  background-color: #f0f0f0;
  border-radius: 20px;
  padding: 30px 20px;
  text-align: left;
  height: 100%;
  position: relative;
  min-width: 220px;
  width: 100%;
}

.media-line {
  width: 2px;
  height: 70px;
  background-color: black;
  margin-bottom:80px;
  margin-left:40px;
  transform-origin: center center;
  transition: transform 0.3s ease;
  text-align: left;
}

.stats-logos .media-card {
  background-color: gray;
}

.stats-logos .media-line {
  background-color: white !important;
}

.media-card h6 {
  font-weight: bold;
  font-size: 14px;
  letter-spacing: 1px;
  text-align: left;
}

.media-card h5 {
  font-weight: 800;
  margin-bottom: 15px;
  text-align: left;
}

.media-card p {
  font-size: 15px;
  color: #333;
  margin: 0;
  text-align: left;
}

.collab-section {
  padding: 60px 0;
  background-color: #fff;
  text-align: center;
}

.collab-title {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 50px;
}

.collab-grid {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  flex-wrap: nowrap;
}

.collab-card {
  width: 200px;
  min-height: 280px;
  padding: 20px;
  text-align: center;
  flex-shrink: 0;
}

.collab-card svg {
  width: 60px;
  height: 60px;
  margin-bottom: 20px;
}

.collab-card p {
  margin: 0;
  font-size: 16px;
  font-weight: 600;
}

.contact-us-section{
  margin-left:30px;
  margin-right:30px;
}
.contact-img {
  border-radius : 20px 20px 0px 0px;
}
.contact-info {
  text-align: left;
  margin-top:50px;
}
.contact-info p{
 font-size:20px;
}

.contact-heading{
  padding: 130px 80px;
}

/* responsive css home */
@media (min-width: 768px) {
  .media-card {
    padding: 30px 30px;
  }
}

@media (max-width: 768px) {
    .banner-text {
      padding: 30px 20px 60px;
      height: auto;
    }

    .banner-text h1 {
      font-size: 2rem;
    }
}

@media (max-width: 1199px) {
  .banner-text {
    max-width: 90%;
    padding: 40px 20px;
    height: auto;
  }
  .about-info {
    width: 100%;
    font-size: 16px;
  }
  .collab-grid {
    flex-wrap: wrap;
    justify-content: center;
  }
  .collab-card {
    width: 45%;
    margin-bottom: 30px;
  }
}

@media (max-width: 991px) {
  .banner {
    height: 500px;
    background-size: 150%;
  }
  .stats-logos {
    gap: 60px;
  }
  .logo-card {
    width: 120px;
    height: 120px;
    padding: 20px;
  }
  .book-call h1 {
    font-size: 36px;
  }
  .book-call p {
    font-size: 18px;
  }
}

@media (max-width: 767px) {
  .banner-wrapper {
    margin-top: 100px;
  }
  .banner {
    height: auto;
    background-size: 160%;
  }
  .banner-text {
    position: static;
    transform: none;
    margin-top: 30px;
  }
  .mid-banner {
    height: 200px;
    background-size: cover;
  }
  .custom-carousel .item {
    width: 100%;
    height: auto;
  }
  .carousel-caption {
    font-size: 20px;
  }

  .carousel-caption.bottom-right{
    left: 45% !important;
  }
  .collab-card {
    width: 100%;
  }
  .banner1 {
    padding: 30px 20px;
  }
  .banner1 h1 {
    font-size: 32px;
  }
  .banner1 p {
    font-size: 18px;
  }
  .media-card {
    padding: 40px 20px;
  }
  .contact-heading {
    padding: 30px 20px;
  }
  .contact-info p {
    font-size: 16px;
  }
}

@media (max-width: 575px) {
  .stats-logos {
    gap: 30px;
  }
  .logo-card {
    width: 100px;
    height: 100px;
    padding: 15px;
  }
  .collab-title {
    font-size: 1.5rem;
  }
  .book-call a {
    width: 100%;
  }
  .contact-info {
    margin-top: 30px;
  }
  .about {
    padding: 40px 20px;
  }
  .carousel-caption {
    font-size: 12px !important;
  }
}

/* -------------About page ---------------*/
  .banner2 {
    padding: 50px 30px 150px 30px;
    border-radius: 20px;
    margin: 0px 30px 0 30px;
  }

  .banner2 h1 {
    font-size: 75px;
    font-weight: 800;
    line-height: 0.85;
    margin: 0;
  }

  .banner2 p {
    font-size: 20px;
    margin-bottom: 0 !important;
  }

  .abt-sec-2,
  .abt-section-layout,
  .abt-sec-4-container,
  .abt-sec-5 {
    margin: 30px;
  }

  .bg-image-wrapper,
  .bg-image-wrapper-left {
    position: relative;
    width: 100%;
    height: 900px;
    overflow: hidden;
    border-radius: 12px;
    background-size: 120%;
    background-repeat: no-repeat;
    background-position: center;
    transition: background-position 0.1s linear;
  }

  .bg-image-wrapper {
    background-image: url('https://www.biospectrumindia.com/media-kit/images/abt.avif');
    background-position: right center;
  }

  .bg-image-wrapper-left {
    background-image: url('https://www.biospectrumindia.com/media-kit/images/abt-sec-5.jpg');
    background-size: 150%;
    background-position: left center;
  }

  .text-box,
  .text-box-left {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: white;
    padding: 60px 40px;
    border-radius: 16px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 75%;
    width: 45%;
  }

  .text-box {
    right: 50px;
  }

  .text-box-left {
    left: 50px;
    height: 85%;
  }

  .text-box h1,
  .text-box-left h1 {
    font-size: 62px;
    font-weight: 800;
    margin: 0;
    line-height: 1.2;
  }

  .text-box p,
  .text-box-left p {
    font-size: 18px;
    margin: 0;
    color: #333;
    font-weight: 400;
  }

  .label {
    font-weight: 500;
    font-size: 0.9rem;
    text-transform: uppercase;
    margin-bottom: 10px;
  }

  .abt-section-layout {
    display: flex;
    gap: 30px;
    align-items: stretch;
    flex-wrap: wrap;
  }

  .abt-img-col {
    flex: 7;
  }

  .abt-text-col {
    flex: 3;
    display: flex;
    flex-direction: column;
    gap: 30px;
  }

  .abt-img-col img,
  .abt-sec-4-col img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
  }

  .abt-box {
    flex: 1;
    padding: 40px;
    border-radius: 12px;
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    min-height: 200px;
  }

  .gray-bg {
    background-color: #404040;
  }

  .black-bg {
    background-color: #000;
  }

  .abt-sec-4-container {
    display: flex;
    gap: 30px;
    flex-wrap: wrap;
  }

  .abt-sec-4-col {
    flex: 1;
  }

  /* ----------- RESPONSIVE ----------- */
  @media (max-width: 992px) {
    .banner2 h1 {
      font-size: 50px;
    }

    .banner2 p {
      font-size: 18px;
    }

    .text-box,
    .text-box-left {
      position: static;
      transform: none;
      width: 100%;
      margin-top: 20px;
      height: auto;
    }

    .abt-section-layout,
    .abt-sec-4-container {
      flex-direction: column;
    }

    .abt-img-col,
    .abt-text-col,
    .abt-sec-4-col {
      width: 100%;
    }

    .bg-image-wrapper,
    .bg-image-wrapper-left {
      height: auto;
    }

    .abt-box {
      min-height: 150px;
    }

    .text-box h1,
    .text-box-left h1 {
      font-size: 36px;
    }

    .text-box p,
    .text-box-left p {
      font-size: 16px;
    }
  }

  @media (max-width: 576px) {
    .banner2 {
      padding: 30px 20px 100px 20px;
      margin: 50px 20px 0 20px;
    }

    .banner2 h1 {
      font-size: 40px;
    }

    .banner2 p {
      font-size: 16px;
    }

    .text-box,
    .text-box-left {
      padding: 30px 20px;
    }
  }

  /* -----------contact us page --------- */
   .contact-wrapper {
    margin: 0px 30px;
  }

  .contact-video-col,
  .contact-form-col {
    height: 723px;
    position: relative;
    overflow: hidden;
    border-radius: 10px;
  }

  .contact-video-col {
    color: #fff;
  }

  .contact-video-col video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
  }

  .contact-video-col::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: #494242;
    opacity: 0.4;
    z-index: 1;
  }

  .contact-video-col .text-overlay {
    position: relative;
    z-index: 2;
    padding: 30px;
  }

  .contact-video-col p {
    font-size: 18px;
    font-weight: 500;
    margin-bottom: 10px;
  }

  .contact-video-col h1 {
    font-size: 62px;
    font-weight: bold;
    margin: 0;
    line-height: 1.2;
  }

  .contact-form-col {
    background-color: #f0f0f0;
    display: flex;
    align-items: center;
    padding: 30px;
  }

  .contact-form-col form {
    width: 100%;
  }

  .contact-form-col .form-label {
    font-weight: 500;
    margin-bottom: 5px;
  }

  .contact-form-col .form-control {
    background: transparent;
    border: none;
    border-bottom: 1px solid #000;
    border-radius: 0;
    padding: 10px 5px;
    font-size: 16px;
    box-shadow: none;
  }

  .contact-form-col .form-control:focus {
    outline: none;
    border-color: #000;
    box-shadow: none;
  }

  .contact-form-col textarea.form-control {
    resize: none;
  }

  .contact-form-col .btn {
    background-color: black;
    color: white;
    border-radius: 8px;
    padding: 10px 25px;
    font-weight: 500;
  }

  .contact-form-col .btn:hover {
    background-color: #333;
  }

  @media (max-width: 991.98px) {
    .contact-wrapper {
      margin: 0px 15px;
    }

    .contact-video-col,
    .contact-form-col {
      height: auto;
    }

    .contact-video-col video {
      position: relative;
      height: auto;
    }

    .contact-video-col .text-overlay {
      padding: 20px;
    }

    .contact-video-col h1 {
      font-size: 40px;
    }

    .contact-form-col {
      padding: 20px;
    }
  }

  @media (max-width: 575.98px) {
    .contact-video-col h1 {
      font-size: 32px;
    }

    .contact-video-col p {
      font-size: 16px;
    }

    .contact-form-col .btn {
      width: 100%;
    }
  }

  /* ========== BOOTSTRAP 5.3 NAVBAR RESPONSIVE STYLES ========== */
  
  /* Enhanced navbar responsiveness for Bootstrap 5.3 */
  .navbar {
    padding: 0.75rem 1rem;
    transition: all 0.3s ease;
    box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  }

  .navbar-brand {
    margin-right: auto;
  }

  .navbar-brand img {
    transition: all 0.3s ease;
  }

  .navbar-toggler {
    border: 2px solid transparent;
    padding: 0.4rem 0.6rem;
    font-size: 1.1rem;
    border-radius: 0.5rem;
    transition: all 0.3s ease;
  }

  .navbar-toggler:hover {
    border-color: #dee2e6;
    background-color: #f8f9fa;
  }

  .navbar-toggler:focus {
    box-shadow: 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
  }

  .navbar-nav .nav-link {
    font-weight: 500;
    transition: all 0.3s ease;
    border-radius: 0.5rem;
    margin: 0 0.25rem;
  }

  .navbar-nav .nav-link:hover {
    color: #0d6efd !important;
    background-color: rgba(13, 110, 253, 0.1);
    transform: translateY(-1px);
  }

  .navbar-nav .nav-item.active .nav-link {
    background-color: #e7f1ff;
    color: #0d6efd !important;
    font-weight: 600;
    box-shadow: 0 2px 4px rgba(13, 110, 253, 0.2);
  }

  /* Bootstrap 5.3 Offcanvas-style mobile menu enhancement */
  @media (max-width: 991.98px) {
    .navbar-collapse {
      background-color: #fff;
      border-radius: 0.5rem;
      margin-top: 1rem;
      padding: 1rem;
      box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
      border: 1px solid #dee2e6;
    }

    .navbar-nav {
      gap: 0.5rem;
    }
    
    .navbar-nav .nav-link {
      padding: 0.875rem 1rem;
      text-align: center;
      border-radius: 0.5rem;
      margin: 0;
      font-size: 1.1rem;
    }
    
    .navbar-nav .nav-item:not(:last-child) .nav-link {
      border-bottom: 1px solid #f8f9fa;
      margin-bottom: 0.5rem;
      padding-bottom: 1rem;
    }

    .navbar-brand img {
      width: 160px;
      max-height: 45px;
    }
  }

  /* Mobile responsive */
  @media (max-width: 767.98px) {
    .navbar {
      padding: 0.75rem;
    }
    
    .navbar-brand img {
      width: 140px;
      max-height: 40px;
    }
    
    .navbar-collapse {
      margin-top: 1.25rem;
      padding: 1.25rem;
    }
    
    .navbar-nav .nav-link {
      padding: 1rem;
      font-size: 1.125rem;
      font-weight: 600;
    }
  }

  /* Small mobile devices - Bootstrap 5.3 enhanced */
  @media (max-width: 575.98px) {
    .container-fluid {
      padding: 0 0.75rem;
    }
    
    .navbar {
      padding: 0.625rem 0.75rem;
    }
    
    .navbar-brand img {
      width: 120px;
      max-height: 35px;
    }
    
    .navbar-toggler {
      font-size: 1rem;
      padding: 0.35rem 0.5rem;
    }

    .navbar-collapse {
      padding: 1rem 0.75rem;
      margin-top: 1rem;
    }

    .navbar-nav .nav-link {
      padding: 0.875rem 0.75rem;
      font-size: 1.1rem;
    }
  }

  /* Extra small screens */
  @media (max-width: 480px) {
    .navbar-brand img {
      width: 110px;
      max-height: 32px;
    }

    .navbar-toggler {
      font-size: 0.9rem;
      padding: 0.3rem 0.45rem;
    }
  }

  /* Ultra small screens */
  @media (max-width: 360px) {
    .navbar-brand img {
      width: 100px;
      max-height: 30px;
    }

    .container-fluid {
      padding: 0 0.5rem;
    }

    .navbar {
      padding: 0.5rem;
    }

    .navbar-collapse {
      padding: 0.75rem 0.5rem;
    }
  }

  /* Dark mode support for Bootstrap 5.3 */
  @media (prefers-color-scheme: dark) {
    .navbar-light .navbar-nav .nav-link:hover {
      background-color: rgba(13, 110, 253, 0.2);
    }
  }

  /* Enhanced accessibility and focus states */
  .navbar-nav .nav-link:focus {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
  }

  /* Print styles */
  @media print {
    .navbar-toggler {
      display: none !important;
    }
    
    .navbar-collapse {
      display: block !important;
    }
  }
