@import url("https://fonts.googleapis.com/css2?family=Oswald:wght@300&family=Teko:wght@300&display=swap");
@import url("https://fonts.googleapis.com/css2?family=Courgette&display=swap");
#team-mxt-popup {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  /* Shadowed background */
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 1000;
  margin: 0 !important;
  max-width: 100% !important;
  z-index: 9999999;
}

.popup-inner {
  background-color: white;
  max-width: 1100px;
  /* Adjusted for better layout */
  width: 100%;
  /* Responsive width */
  border-radius: 5px;
  position: relative;
  padding: 10px 0;
  color: #000;
}

.popup-photo-container {
  width: 50%;
  display: flex;
  /* Center the photo vertically and horizontally */
}

.popup-photo {
  max-width: 100%;
  height: auto;
  display: block;
  border-radius: 5px;
  width: 210px;
  float: left;
  display: flex;
  margin: 20px;
  border: 2px solid darkgray;
  border-radius: 15px;
  border-block-color: cornsilk;
  border-block-end-style: outset;
}

.popup-info-container {
  padding: 20px;
  width: 50%;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

#team-mxt-popup-close {
  position: absolute;
  top: 10px;
  right: 20px;
  border: none;
  background-color: transparent;
  color: #333;
  font-size: 15px;
  cursor: pointer;
  padding: 4px;
  border: 2px solid darkgray;
  border-radius: 4px;
  border-block-end-style: outset;
}

.popup-name {
  top: 40px;
  position: absolute;
  left: 40%;
  font-size: 20px;
  font-weight: bold;
  font-family: "Courgette", sans-serif;
  margin-bottom: 7px;
  color:#000;
}

.popup-designation {
  top: 10px;
  position: absolute;
  left: 40%;
  font-size: 16px;
  color: #0c203f;
  margin-bottom: 15px;
}

.popup-name,
.popup-designation,
.popup-phone,
.popup-email,
.popup-website,
.popup-description {
  margin: 2px;
  text-decoration: none !important;
}

p.popup-website a {
  text-decoration: none !important;
  color: #000;
}

.popup-email::before {
  content: "\f0e0";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}

.popup-phone::before {
  content: "\f095";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}

.popup-website::before {
  content: "\f57d";
  font-family: "Font Awesome 5 Free";
  font-weight: 900;
  display: inline-block;
  margin-right: 5px;
  vertical-align: middle;
}

.popup-description {
  top: 80px;
  position: absolute;
  left: 40%;
  padding: 10px 15px 0 0;
  word-break: break-word !important;
  margin-right: 10px;
  text-align: justify;
}

.popup-social-icons {
  display: flex;
  gap: 9px;
  margin-bottom: 2px;
  margin: 20px 0 -10px 0;
  text-decoration: none !important;
  font-size: 14px;
}
a .popup-facebook,
.popup-twitter,
.popup-linkedin {
  position: relative;
  width: 35px;
  height: 35px;
  color: #fff;
  font-size: 25px;
  border-radius: 5px;
  padding: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.popup-social-icons a {
  text-decoration: none !important;
}
.popup-facebook i.fab.fa-facebook {
  background-color: #3b5998;
  color: white;
  /* Sets the icon color */
  padding: 5px;
  /* Adds some space around the icon */
  border-radius: 5px;
  /* Makes the background circle */
  /* Adjust the size of the icon */
}

.popup-twitter i.fab.fa-twitter {
  background-color: #1da1f2;
  color: white;
  /* Sets the icon color */
  padding: 5px;
  /* Adds some space around the icon */
  border-radius: 5px;
}

.popup-linkedin i.fab.fa-linkedin {
  background-color: #0077b5;
  color: white;
  /* Sets the icon color */
  padding: 5px;
  /* Adds some space around the icon */
  border-radius: 5px;
}

.popup-linkedin i.fab.fa-facebook:hover {
  color: #3b5998;
  border: 2px solid #3b5998;
}

.popup-linkedin i.fab.fa-twitter:hover {
  color: #1da1f2;
  border: 2px solid #1da1f2;
}

.popup-linkedin i.fab.fa-linkedin:hover {
  color: #0077b5;
  border: 2px solid #0077b5;
}

@media screen and (max-width: 905px) {
  /* Adjust the max-width as needed for your design */
  .popup-inner {
    flex-direction: column;
    /* Stack the elements vertically */
    overflow: hidden !important;
  }

  .popup-photo-container,
  .popup-info-container {
    max-width: 100%;
    /* Full width on small screens */
  }

  .popup-info-container {
    width: 100%;
  }

  .popup-name,
  .popup-designation,
  .popup-description {
    left: 0;
    /* Adjust position for smaller screens */
    top: auto;
    /* Reset top position */
    position: relative;
    /* Change position context */
    margin-right: 10px;
    max-height: 40vh;

  }
.popup-description {
    overflow: scroll;
}
  .popup-social-icons {
    justify-content: left;
    /* Center social icons */
    flex-wrap: wrap;
    /* Allow wrapping of icons */
  }

  .popup-photo {
    max-width: 80%;
    /* Adjust photo size */
    margin: 10px auto;
    /* Center the photo with some margin */
  }

  #team-mxt-popup-close {
    top: 20px;
    /* Adjust close button position */
    right: 20px;
  }
}

/* WhatsApp Hover Effect */
.whatsapp-hover {
  position: relative;
  display: inline-block;
}

.whatsapp-hover .whatsapp-number {
  display: none;
  position: absolute;
  background-color: #25d366;
  color: white;
  text-align: center;
  border-radius: 5px;
  padding: 5px 10px;
  bottom: 100%;
  left: 50%;
  transform: translateX(-50%);
  white-space: nowrap;
  font-size: 0.8em;
  z-index: 2;
}

.whatsapp-hover:hover .whatsapp-number {
  display: block;
}
