
#team-slider-container {
  position: relative;
  padding: 20px 0;
  overflow-x: auto; /* Allow horizontal scrolling */
  white-space: nowrap; /* Prevent wrapping of team cards */
}

#team-slider {
  display: flex;
  flex-wrap: nowrap; /* Prevent cards from wrapping to the next line */
  gap: 20px; /* Maintain consistent spacing */
  overflow-x: auto; /* Enable horizontal scrolling */
  scroll-behavior: smooth; /* Smooth scrolling for horizontal overflow */
  padding: 10px;
}

#team-slider::-webkit-scrollbar {
  display: none; /* Hides scrollbar for Chrome, Safari, and Edge */
}

#team-slider .team-card {
  flex: 0 0 auto; /* Prevent cards from wrapping */
  width: 300px; /* Consistent card width */
  position: relative;
  overflow: hidden;
  border-radius: 10px;
  cursor: pointer;
  display: inline-block; /* Ensure proper alignment for all cards */
  vertical-align: top; /* Align all cards to the top */
}

#team-slider .team-card img {
  display: block; /* Prevent extra spacing below images */
  width: 100%;
  height: 300px; /* Consistent image height */
  object-fit: cover; /* Ensure images fill their containers */
}

#team-slider .team-card .overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  background: rgba(0, 0, 0, 0.7); /* Consistent overlay background */
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start; /* Align text to the left */
  color: #fff;
  padding: 10px 0;
  padding-bottom: 5px;
  height: 70px; /* Fixed height to avoid distortion */
  box-sizing: border-box;
}

#team-slider .team-card .team-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 16px;
  font-weight: 700;
  margin: 0;
  padding-bottom: 2px; /* Add spacing below the name */
  padding-left: 5px

}

#team-slider .team-card .team-designation {
  font-family: 'Montserrat', sans-serif;
  font-size: 14px;
  font-weight: 400;
  margin: 0;
  padding-top; 0;
  padding-left: 5px;
  padding-bottom: 3px;
  line-height: 1.2; /* Adjust this value to tighten or loosen line spacing */


}

/* Navigation Arrows */
#team-slider-container .nav-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  cursor: pointer;
  z-index: 100;
  width: 40px;
  height: 40px;
  background-size: contain;
}

#team-slider-container .arrow-left {
  left: 10px;
  background: url('https://info.aisinfo.com/hubfs/images%20for%20AIS%20INFO%20website/left_arrow1.png') no-repeat center center;
}

#team-slider-container .arrow-right {
  right: 10px;
  background: url('https://info.aisinfo.com/hubfs/images%20for%20AIS%20INFO%20website/right_arrow1.png') no-repeat center center;
}

/* Ensure arrows are visible on all devices */
@media (max-width: 768px) {
  #team-slider {
    gap: 15px; /* Adjust spacing for smaller screens */
  }

  #team-slider .team-card {
    width: 250px; /* Adjust card width */
  }
}

@media (max-width: 576px) {
  #team-slider {
    gap: 10px; /* Adjust spacing for smaller screens */
  }

  #team-slider .team-card {
    width: 200px; /* Further reduce card width */
  }

  #team-slider .team-card img {
    height: 200px; /* Adjust image height for smaller screens */
  }

  #team-slider .team-card .overlay {
    height: 60px; /* Fixed height to maintain consistency */
    padding: 5px;
  }

  #team-slider .team-card .team-name {
    font-size: 14px;
  }

  #team-slider .team-card .team-designation {
    font-size: 12px;
  }

  #team-slider-container .nav-arrow {
    display: block;
  }
}

/* Modal Popup Styles */
#modal-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.8); /* Black transparent background */
  z-index: 999;
  display: none;
}

#team-bio-modal {
  position: fixed;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 90%;
  max-width: 600px;
  background: rgba(0, 0, 0, 0.9); /* Black transparent background for modal */
  color: #fff;
  border-radius: 10px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0, 0, 0, 0.3);
  z-index: 1000;
  display: none;
  font-family: 'Montserrat', sans-serif;
}

#team-bio-modal.active,
#modal-overlay.active {
  display: block;
}

#team-bio-modal .close-btn {
  position: absolute;
  top: 10px;
  right: 10px;
  background: none;
  border: none;
  font-size: 20px;
  cursor: pointer;
  color: #fff;
}