.leaderimg img {
  border-radius: 10px;
  width: 100%;
}
.leader-hover-img-content{
  display:none; 
}
.leader-list-outer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  padding-top: 32px;
  gap:32px;
}
.leader-list-inner {
  flex: 0 31%;
  border-radius: 10px;
}
.leader-list-inner:hover .leader-front-img-content{
  display:none;
}
.leader-list-inner:hover .leader-hover-img-content {
  display: block;
}
.leadercontent {
  padding-top: 13px;
  text-align: left;
}
.leader-details {
  display: none;
}
.leader-socialMedia {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-top: 32px;
}
.leader-image-grp {
  cursor: pointer;
}
/* POPUP */
/* Basic popup styles */
#popup-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(13, 57, 94, 0.8);
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
}

/* Popup content styling */
/* #popup-content {
background-color: #fff;
border-radius: 10px;
box-shadow: 0 2px 10px rgba(0,0,0,.1);
overflow-y:scroll ;
padding: 50px;
position: relative;
width: 900px;
top: 50px;
height:400px;
} */
#popup-content {
  background-color: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,.1);
  overflow-y:auto;
  padding: 50px;
  position: relative;
  width: 90%;
  top: 0px;
  height:fit-content;
  max-height:90%;
  max-width:1200px;
}

button.close-btn {
  background: none;
  border: none;
  color: #a6d5ff;
  font-size: 31px;
  right: 10px !important;
  top: 10px !important;
  padding: 0;
}
button.close-btn:hover {
  color: #FACF00;
}
/* Responsive adjustments */

@media (max-width: 1024px) {
  #popup-content {
    /*     height: 80%; */
    height:fit-content;
    max-height:90%;
    overflow-Y: scroll;
    padding: 50px 30px;
    top:0px;
    width: 80%;
  }
  button.close-btn {
    background: none;
    border: none;
    color: #a6d5ff;
    font-size: 20px !important;
    padding: 0;
    right: 10px !important;
    top: 10px !important;
  }
}

@media (max-width: 480px) {
  .close-btn {
    top: 5px;
    right: 5px;
    font-size: 16px; /* Smaller close button on very small screens */
  }

  .icons-list {
    flex-direction: column; /* Stack icons vertically on very small screens */
  }

  .icons-list svg {
    font-size: 18px; /* Further reduce icon size */
  }
}

.leader-content p span {
  color: #046FF1;
  font-weight: 800;
}


@media(max-width:991px){
  .leader-list-inner {
    border-radius: 10px;
    flex: 0 47%;
  }
}
@media(max-width:581px){
  .leader-list-inner {
    border-radius: 10px;
    flex: 0 100%;
  }
}
/* Media query for Mac devices with larger screens */
/* @media (min-device-width: 1024px) and (max-device-width: 2560px) and (-webkit-min-device-pixel-ratio: 1) {
#popup-content {
width: 70%;
height: 50%;
padding: 40px;
font-size: 16px; 
}
} */

/* Media query for iPads and smaller tablets */
@media (max-width: 1024px) {
  #popup-content {
    width: 90%;
    padding: 30px;
  }
}
/* Targeting Chrome on macOS with media queries */
/* @media screen and (-webkit-min-device-pixel-ratio: 1) {
@supports (-webkit-appearance: none) {
@media screen and (min-width: 1024px) {

#popup-content {
width: 100%;
height: 70%;
padding: 40px;
} 
}
}
} */


@media screen and (-webkit-min-device-pixel-ratio: 1) {
  @supports (-webkit-appearance: none) {
    @media screen and (min-width: 1024px) {
      body.mac-chrome #popup-content {
        width: 100%;
        /*         height: 70%; */
        height:fit-content;
        max-height:90%;
        padding: 40px;
      }
    }
  }
}


/* Safari-specific styles */
@media screen and (min-width: 2300px) and (max-width: 4000px) {
  body.safari-browser #popup-content  {
    width: 90%;
/*     height: 60%; */
    height:fit-content;
    max-height:80%;
    padding: 40px;
    font-size: 16px;
  }
}