/* Team layout styles */
.team-swiper-section {
    overflow: hidden;
}
.team-slider.has-swiper {
    width: 100%;
    overflow: visible !important;
  }
.team-swiper-parent {
    position: relative;
    overflow: visible !important;
    height: auto;
}

.swiper-slide {
  /* height: auto; */
  pointer-events: auto !important;
  transition: all 0.3s ease, margin-left 0.3s ease;
}

.team-member-slide {
  cursor: pointer;
  height: auto !important;
}

.divided-slide-wrapper {
    display: flex;
    height: auto;
  overflow: visible;
}

.main-card-col {
  /* flex: 0 0 100%; */
  width: 100%;
  transition: all 0.3s ease;
}

.content-only-col {
  width: 0;
  opacity: 0;
  overflow: hidden;
  visibility: hidden;
  transition: all 0.3s ease;
  max-height: 0;
}

/* When slide is active */
.team-member-slide.active-slide {
  width: auto !important; 
  visibility: visible !important;
  opacity: 1 !important;
  /* min-width: 200%;  */
  z-index: 10; 
}

.team-member-slide .main-card-col {
    flex: 0 0 50%; 
  }

.team-member-slide.active-slide .main-card-col {
  /* flex: 0 0 50%;  */
}

.team-member-slide.active-slide .content-only-col {
  /* width: 300px; */
  width: 600px;
  opacity: 1;
  visibility: visible;
  padding-left: 20px;
}

.team-wrapper.swiper-parent {
    overflow: visible;
    position: relative;
    height: auto;
}
  
  /* Make sure content area has enough height */
  .content-only-col.active {
    max-height: 1000px; /* Allow enough height for content */
    transition: all 0.3s ease, max-height 0.5s ease;
  }

.team-member-image {
    max-height: 400px;
    height: 400px;
}

@media (min-width: 1200px) {
    .team-member-image {
        max-height: 450px;
        height: 450px;
    }
}

.team-member-image img {
    object-fit: cover;
    object-position: center;
    height: 100%;
}

.team-member-name h4 {
    margin-top: 0.5625rem;
    margin-bottom: 0.5625rem;
    font-weight: 700;
}

.team-member-role {
    margin-bottom: 2rem;
}

.team-member-linkedin a { 
    display: inline-block;
    width: fit-content;
    background-color: #b6c9cb;
    padding: 10px;
    border-radius: 100%;
}

.team-member-linkedin a svg {
    width: 25px;
    height: 25px;
}

.team-member-linkedin a svg path {
    fill: #0077B5;
}
/* For better mobile experience */
@media (max-width: 768px) {
  .team-member-slide.active-slide {
    min-width: 100%; /* Full width on mobile */
  }
  
  .team-member-slide, .team-member-slide.active-slide {
    flex-direction: column;
  }
  
  .team-member-slide.active-slide .main-card-col,
  .team-member-slide.active-slide .content-only-col {
    width: 100%;
  }
  
  .team-member-slide.active-slide .content-only-col {
    padding-left: 0;
    padding-top: 20px;
  }
}

/* Additional styles to ensure proper layout */
.team-swiper {
  overflow: visible !important;
  height: auto !important;
}

.swiper-wrapper {
  align-items: flex-start; /* Align slides to the top */
  transition-property: transform;
  transition-duration: 0.3s !important; /* Match our animation speed */
  height: auto !important; /* This will be controlled by JS */
}

.team-swiper.reaching-end .swiper-slide {
    transition: transform 0.3s ease;
  }

.swiper-navigation {
    display: flex;
    align-items: flex-end;
    position: relative; /* Take it out of the normal flow */
    z-index: 20; /* Ensure it's above content */
    margin-top: 20px;
    clear: both;
}

.swiper-navigation .swiper-button-prev,
.swiper-navigation .swiper-button-next {
    cursor: pointer;
} 

.swiper-navigation .swiper-button-prev {
    width: 40px;
    height: 40px;
}

.swiper-navigation .swiper-button-next {
    width: 58px;
    height: 58px;
    margin-left: 0.5rem;
}


.team-grid {
    display: grid;
    grid-template-columns: repeat(1, 1fr);
    gap: 20px;
}

.team-member-card {
}

.team-member-card .team-member-content {
    margin-top: 1rem;
    height: 0;
    opacity: 0;
}

.team-member-card .team-member-name {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.team-wrapper.swiper-parent {
    display: none;
}

.team-grid-wrapper {
    display: block;
}

@media (min-width: 768px) {
    .team-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .team-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width:1200px) {
    /* .team-wrapper.swiper-parent {
        display: block;
    }
    .team-grid-wrapper {
        display: none;
    } */
    .team-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}