.leadership-module {
  position: relative;
}
.leadership-module .background-color {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: var(--blue);
  z-index: 0;
}

.leadership-module .background-pattern {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-image: url(https://senwan.com/hubfs/raw_assets/public/Senwan/images/investment-pattern-lg.png);
  background-repeat: repeat;
  background-position: top left;
  background-size: 40rem 10rem;
  pointer-events: none;
  z-index: 1;
  opacity: 40%;
}
.leaders-main-content {
  position: relative;
  z-index: 2;
  display: flex;
  width: 100%;
}
  .leaders-content-container {
    width: 50%;
    padding: 7rem 1rem;
    padding-right: 12.31rem;
    min-height: 46rem;
  }
.leaders-image-container {
  width: 50%;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  justify-content: end;
  align-items: center;
}

  
 .leader-image {
  width: 45.375rem;
  height: auto;
  opacity: 0;
  pointer-events: none;
  display: none;
}

  .leader-image.active{
    opacity: 1;
    pointer-events: auto; /* Allow interaction when visible */
    transition: opacity 0.5s ease;
    display: block;
  }
  

.leaders-section-title {
  color: var(--beige);
  padding-bottom: 1.75rem;
  text-transform: uppercase;
  font-size: 1rem;
  line-height: 1.2;
  letter-spacing: 0.2em;
  margin-bottom: 1rem;
  font-weight: 300;
}


.leaders-heading {
  color: var(--green);
  font-weight: 300;
  font-size: 2.25rem;
  line-height: 1.4;
}

.leader-profile {
  display: none;
}

.leader-profile.active {
  display: block;
}

.leader-name {
  color: white;
  margin-bottom: 0.5rem;
}

.leader-title {
  color: var(--light-green);
  margin-bottom: 2rem;
}

.leadership-nav {
  display: flex;
  justify-content: end;
  margin-top: 3rem;
  justify-content: space-between;
}

.leader-tab {
  cursor: pointer;
  opacity: 0.8;
  transition: opacity 0.3s ease;
  font-weight: 300;
  color: var(--beige);
}
.leader-tab .leader-tab-icon-container {
  display: none;
}
.leader-tab.active .leader-tab-icon-container {
  display: block;
}
.leader-tab-icon {
  width: 1rem;
  height: 0.5rem;
}

.leader-bio {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  padding-top: 2.5rem;
}
.leader-bio p {
  font-size; 1.0625rem;
  line-height: 1.7;
  font-weight: 300;
  color: var(--white);
}

.leader-tab:hover {
  opacity: 1;
}

.leader-tab.active {
  opacity: 1;
  font-weight: 500;
}

.leader-tab .tab-name {
  line-height: 1.6;
}

.leader-tab .tab-title {
  line-height: 1.6;
}
.leaders-image-container-mobile {
  display: none;
}

@media screen and (max-width: 430px) {
  .leader-tab-icon-container {
    display: none !important;
  }
  .leader-image-mobile {
    display: none;
  }
  .leader-image-mobile.active {
    display: block;
  }
  .leaders-image-container-mobile {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 4rem;
    border-bottom: 0.03125rem solid var(--navyBlue);
  }
  .leader-image-mobile {
    width: calc(100% - 4rem); 
  }
  .leaders-image-container {
    display: none !important;
  }
  .leaders-main-content {
    flex-direction: column;
    flex-flow: column-reverse;
    width: calc(100% - 4rem);
    padding: 0 2rem;
  }
  .leaders-content-container {
    width: 100%;
    padding: 5rem 0rem;
  }
  .leaders-image-container {
    width: 100%;
  }
  .leader-bio p {
    font-size: 1.2rem;
  }

  .leaders-section-title {
    font-size: 1.3rem;
  }
  .leaders-heading {
    font-size: 3rem;
  }
  .leadership-nav {
    flex-wrap: wrap;
    gap: 1rem 5rem;
    justify-content: start;
  }
  .leader-tab {
    font-size: 1.3rem;
  }
  .leader-image {
    width: 30rem;
    height: auto;
    opacity: 0;
    pointer-events: none;
    display: none;
  }
}