.gsc-team-item {
  text-align: center;
  position: relative;
  max-width: 400px;
  margin: 0 auto;
  margin-bottom: 35px;
}

.gsc-team-item .team-image {
  position: relative;
  overflow: hidden;
  text-align: center;
}

.gsc-team-item .team-image a.link-content {
  display: block;
  position: relative;
}

.gsc-team-item .team-image a.link-content:after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  -webkit-transition: all 0.35s;
  transition: all 0.35s;
}

.gsc-team-item .team-image .socials-team {
  position: absolute;
  right: 0;
  top: 0;
  width: 100%;
  margin-top: 15px;
  -webkit-transition: all 0.35s;
  transition: all 0.35s;
  -moz-transition: all 0.35s;
  -ms-transition: all 0.35s;
  z-index: 9;
  opacity: 0;
  filter: alpha(opacity=0);
  width: 46px;
  -webkit-box-shadow: 0px 5px 10px 0px rgba(22, 37, 66, 0.05);
  box-shadow: 0px 5px 10px 0px rgba(22, 37, 66, 0.05);
}

.gsc-team-item .team-image .socials-team a {
  display: block;
  color: #1b1f2e;
  margin-bottom: 10px;
  font-size: 15px;
  width: 46px;
  height: 46px;
  text-align: center;
  line-height: 46px;
  background: #fff;
  -webkit-transition: all 0.25s;
  transition: all 0.25s;
}

.gsc-team-item .team-image .socials-team a:last-child {
  margin-bottom: 0;
}

.gsc-team-item .team-image .socials-team a:hover {
  background: var(--e-global-color-primary);
  color: #fff;
}

.gsc-team-item .team-content {
  position: relative;
  text-align: center;
  -webkit-transition: all 0.35s;
  transition: all 0.35s;
  -moz-transition: all 0.35s;
  -ms-transition: all 0.35s;
  background: #fff;
  margin-top: -30px;
  margin-left: 15px;
  margin-right: 15px;
  z-index: 11;
  padding: 30px 20px 22px;
  -webkit-box-shadow: 0px 10px 20px 0px rgba(22, 37, 66, 0.1);
  box-shadow: 0px 10px 20px 0px rgba(22, 37, 66, 0.1);
}

.gsc-team-item .team-content .team-name {
  font-size: 20px;
  margin: 0 0 2px;
  line-height: 20px;
}

.gsc-team-item .team-content .team-job {
  font-size: 16px;
  font-weight: 500;
}

.gsc-team-item.active .team-image a.link-content:after,
.gsc-team-item:hover .team-image a.link-content:after {
  opacity: 1;
}

.gsc-team-item.active .team-image .socials-team,
.gsc-team-item:hover .team-image .socials-team {
  right: 15px;
  opacity: 1;
}

.team-item {
  background: #fff;
  position: relative;
  margin: 0 auto 30px;
  padding: 30px 30px;
  border: 1px solid #C9D5DB;
  display: -webkit-box;
  display: -ms-flexbox;
  display: flex;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  -webkit-box-align: center;
  -ms-flex-align: center;
  align-items: center;
  -webkit-transition: all 0.35s;
  transition: all 0.35s;
}

.team-item:not(.img-left) .team-image {
  position: relative;
  text-align: center;
  -webkit-box-flex: 0;
  /* -ms-flex: 0 0 180px; */
  flex: 0 0 100%;
}

@media (max-width: 520px) {
  .team-item .team-image {
    width: 100%;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
  }
}

.team-item .team-content::before {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 4px;
  background: var(--e-global-color-primary);
  opacity: 0;
  filter: alpha(opacity=0);
  -webkit-transition: all 0.35s;
  transition: all 0.35s;
  -moz-transition: all 0.35s;
  -ms-transition: all 0.35s;
}

.team-item.active .team-content::before,
.team-item:hover .team-content::before {
  width: 100%;
  opacity: 1;
  filter: alpha(opacity=100);
}

.gsc-team-item-2 .team-image .image-content {
  width: 100%;
  height: 290px;
  border-radius: 50%;
  position: relative;
}

.gsc-team-item-2 .team-image .image-content img {
  position: absolute;
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  object-position: center top;
  -webkit-transform: translate(-50%, -50%);
  transform: translate(-50%, -50%);
  top: 50%;
  left: 50%;
  border-radius: 12px;
}

.team-item .team-image a.link-content {
  display: block;
  position: relative;
  height: 100%;
}

.team-item .team-image a.link-content:after {
  content: '';
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  background: rgba(0, 0, 0, 0.3);
  opacity: 0;
  -webkit-transition: all 0.35s;
  transition: all 0.35s;
}

.team-item .team-content {
  position: relative;
  -webkit-transition: all 0.35s;
  transition: all 0.35s;
  -moz-transition: all 0.35s;
  -ms-transition: all 0.35s;
  z-index: 11;
  width: calc(100% - 180px);
  -webkit-box-flex: 0;
  -ms-flex: 0 0 calc(100% - 180px);
  flex: 0 0 calc(100% - 180px);
  background: transparent;
  box-shadow: none;
}

@media (max-width: 520px) {
  .team-item .team-content {
    width: 100%;
    -webkit-box-flex: 0;
    -ms-flex: 0 0 100%;
    flex: 0 0 100%;
    padding-left: 0;
    margin-top: 25px;
  }
}

.team-item .team-content .team-name {
  font-size: 22px;
  margin: 0 0 8px;
  line-height: 20px;
}

.team-item .team-content .team-job {
  color: var(--e-global-color-primary);
  font-size: 16px;
}

.team-item .team-content .team-desc {
  line-height: 1.3em;
  margin: 10px 0 0;
  padding-right: 12px;
}

.team-item .team-content .socials-team a {
  color: var(--conult-body-color);
  border: 1px solid #C9D5DB;
  margin-right: 8px;
  width: 38px;
  height: 38px;
  display: inline-block;
  line-height: 38px;
  border-radius: 50%;
  text-align: center;
  font-size: 14px;
}

.team-item .team-content .socials-team a:last-child {
  margin-right: 0;
}

.team-item .team-content .socials-team a:hover {
  background: var(--e-global-color-primary);
  color: #fff;
  border-color: var(--e-global-color-primary);
}

.team-item.active,
.team-item:hover {
  -webkit-box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.1);
  box-shadow: 0px 10px 30px 0px rgba(0, 0, 0, 0.1);
  border-color: transparent;
}

.team-item.active .team-image a.link-content:after,
.team-item:hover .team-image a.link-content:after {
  opacity: 1;
}

.gsc-team .team-item {
  background: #f1f1f1;
  justify-content: center;
  border: none;
  padding: 60px 30px;
  cursor: pointer;
}

.gsc-team .team-item .team-image {
  width: 100%;
}

.gsc-team .team-item .team-image .image-content {
  margin: 0 auto;
  background: transparent;
}

.gsc-team .team-item .team-content {
  width: 100%;
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  text-align: center;
  padding-left: 0;
  margin-bottom: 28px;
  background: #ffffff;
  border-radius: 9px;
  box-shadow: 0px 2px 2px 2px #e8e8e8;
}

.gsc-team .team-item.active,
.gsc-team .team-item:hover {
  -webkit-box-shadow: none;
  box-shadow: none;
  border-color: transparent;
  background-color: #ffcd00;
}

.team-desc.hide-desc {
  display: none;
}

/* Left Image */
.team-item.img-left {
  display: flex;
}

.team-item.img-left .team-content {
  flex: 1;
  /* This will make the content take up the remaining space */
}

.team-item.img-left .team-image {
  width: 40%;
  /* Adjust the width as needed */
  /* Add any other styles you need for the image container */
}

.team-item.img-left {
  max-width: 100%;
}

/* Styles for the body overlay */
body.overlay-active {
  overflow: hidden;
  /* Prevent scrolling when the popup is active */
}

body.overlay-active::before {
  content: "";
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: rgba(0, 0, 0, 0.7);
  z-index: 9999;
}

/* Styles for the popup container */
.popup-container {
  display: none;
  position: fixed;
  top: 0;
  right: 0;
  width: auto;
  height: 100%;
  background: #fff;
  z-index: 10000;
  overflow-y: auto;
  max-width: 500px;
}

/* Styles for the content inside the popup */
.popup-content {
  padding: 20px 20px 10px 20px;
  border-radius: 5px;
}

.popup-content .team-desc.hide-desc {
  display: block;
}

.popup-container .close {
  display: inline-block;
  position: absolute;
  right: 15px;
  background: red;
  width: 30px;
  height: 30px;
  z-index: 99;
  text-align: center;
  line-height: normal;
  cursor: pointer;
}

.popup-container .close i {
  padding: 6px 9px;
  color: #fff;
}

.popup-container .team-item.active,
.popup-container .team-item:hover {
  -webkit-box-shadow: none;
  box-shadow: none;
}

.popup-container .team-item .team-image .image-content img {
  position: relative;
  height: 100%;
  width: 100%;
  -o-object-fit: cover;
  object-fit: cover;
  object-position: center top;
  -webkit-transform: none;
  transform: none;
  top: auto;
  left: auto;
  max-width: 250px;
}

.popup-container .team-item .team-content .team-job {
  padding-bottom: 12px;
}

.popup-container .team-item .team-content .socials-team a {
  width: 28px;
  height: 28px;
  line-height: 28px;
}

.popup-container .team-item .team-image {
  position: relative;
  text-align: center;
  -webkit-box-flex: 0;
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
  width: 100%;
  margin-bottom: 20px;
}

.popup-container .team-item {
  padding: 0;
  border: none;
  margin-bottom: 0;
}

.popup-container .team-item .team-content {
  position: relative;
  padding-bottom: 12px;
  width: 100%;
  -ms-flex: 0 0 100%;
  flex: 0 0 100%;
}

.popup-container .team-item .team-image .image-content {
  overflow: hidden;
  width: 180px;
  height: 180px;
  border-radius: 0;
  position: relative;
  margin: 0 auto;
}

.popup-container .team-item .team-image .image-content img {
  background: #d9d9d9;
}

.popup-content .team-desc {
  text-align: justify;
}

.popup-controls {
  text-align: right;
  padding: 0 20px 20px 20px;
  position: relative;
  bottom: 0;
  width: 100%;
  z-index: 99;
}

.popup-container .team-item .team-content .team-name,
.popup-container .team-item .team-content .team-job {
  text-align: center;
}

.btns {
  box-sizing: border-box;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-color: transparent;
  border: 2px solid #FFDE00;
  border-radius: 0.6em;
  color: #FFDE00;
  cursor: pointer;
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-align-self: center;
  -ms-flex-item-align: center;
  align-self: center;
  font-size: 1rem;
  font-weight: 400;
  line-height: 1;
  margin: 20px;
  padding: 1.2em 2.8em;
  text-decoration: none;
  text-align: center;
  text-transform: uppercase;
  font-weight: 700;
}

.btns:hover,
.popup-control .btns:focus {
  color: #fff;
  outline: 0;
}

.popup-controls .btns {
  display: inline-block !important;
  margin: 0 8px;
}

.second {
  margin: 0;
  padding: 0.5em 1.8em;
  border-radius: 0;
  border-color: #FFDE00;
  color: #172333;
  background-image: -webkit-linear-gradient(left, rgba(255, 222, 0, 0.6), rgba(255, 222, 0, 0.6) 5%, #FFDE00 5%, #FFDE00 10%, rgba(255, 222, 0, 0.6) 10%, rgba(255, 222, 0, 0.6) 15%, #FFDE00 15%, #FFDE00 20%, rgba(255, 222, 0, 0.6) 20%, rgba(255, 222, 0, 0.6) 25%, #FFDE00 25%, #FFDE00 30%, rgba(255, 222, 0, 0.6) 30%, rgba(255, 222, 0, 0.6) 35%, #FFDE00 35%, #FFDE00 40%, rgba(255, 222, 0, 0.6) 40%, rgba(255, 222, 0, 0.6) 45%, #FFDE00 45%, #FFDE00 50%, rgba(255, 222, 0, 0.6) 50%, rgba(255, 222, 0, 0.6) 55%, #FFDE00 55%, #FFDE00 60%, rgba(255, 222, 0, 0.6) 60%, rgba(255, 222, 0, 0.6) 65%, #FFDE00 65%, #FFDE00 70%, rgba(255, 222, 0, 0.6) 70%, rgba(255, 222, 0, 0.6) 75%, #FFDE00 75%, #FFDE00 80%, rgba(255, 222, 0, 0.6) 80%, rgba(255, 222, 0, 0.6) 85%, #FFDE00 85%, #FFDE00 90%, rgba(255, 222, 0, 0.6) 90%, rgba(255, 222, 0, 0.6) 95%, #FFDE00 95%, #FFDE00 100%);
  background-image: linear-gradient(to right, rgba(255, 222, 0, 0.6), rgba(255, 222, 0, 0.6) 5%, #FFDE00 5%, #FFDE00 10%, rgba(255, 222, 0, 0.6) 10%, rgba(255, 222, 0, 0.6) 15%, #FFDE00 15%, #FFDE00 20%, rgba(255, 222, 0, 0.6) 20%, rgba(255, 222, 0, 0.6) 25%, #FFDE00 25%, #FFDE00 30%, rgba(255, 222, 0, 0.6) 30%, rgba(255, 222, 0, 0.6) 35%, #FFDE00 35%, #FFDE00 40%, rgba(255, 222, 0, 0.6) 40%, rgba(255, 222, 0, 0.6) 45%, #FFDE00 45%, #FFDE00 50%, rgba(255, 222, 0, 0.6) 50%, rgba(255, 222, 0, 0.6) 55%, #FFDE00 55%, #FFDE00 60%, rgba(255, 222, 0, 0.6) 60%, rgba(255, 222, 0, 0.6) 65%, #FFDE00 65%, #FFDE00 70%, rgba(255, 222, 0, 0.6) 70%, rgba(255, 222, 0, 0.6) 75%, #FFDE00 75%, #FFDE00 80%, rgba(255, 222, 0, 0.6) 80%, rgba(255, 222, 0, 0.6) 85%, #FFDE00 85%, #FFDE00 90%, rgba(255, 222, 0, 0.6) 90%, rgba(255, 222, 0, 0.6) 95%, #FFDE00 95%, #FFDE00 100%);
  background-position: 0 0;
  background-size: 100%;
  -webkit-transition: background 300ms ease-in-out;
  transition: background 300ms ease-in-out;
}

.second:hover {
  background-position: 100px;
}