.team-listing {
  display: -webkit-box;
  display: -webkit-flex;
  display: -ms-flexbox;
  display: flex;
  -webkit-flex-wrap: wrap;
  -ms-flex-wrap: wrap;
  flex-wrap: wrap;
  position: relative;
  margin: 0 -40px;
}
.team-wrapper {h
  padding: 0
}
.team-listing .team-item {
  overflow: hidden!important;
  cursor: pointer;
  -ms-flex: 0 0 33.333%;
  -webkit-flex: 0 0 33.333%;
  flex: 0 0 33.333%;
  max-width: 33.333%;
  padding: 0 40px;
  margin-bottom: 90px;
  -webkit-transition: margin-bottom .1s;
  -o-transition: margin-bottom .1s;
  transition: margin-bottom .1s;
}
.team-item-content-wrapper, .team-item-content-wrapper img {
    border-top-left-radius: 16px;
    border-top-right-radius: 16px;
}
.team-item-content-wrapper, .team-item-content-wrapper .img-desc-wrap, .team-item-content-wrapper .img-desc {
    border-bottom-left-radius: 16px;
    border-bottom-right-radius: 16px;
}
.team-listing .team-item.active {
  margin-bottom: 40px;
}

.team-item .team-item-content-wrapper .img-wrapper {
  position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    height: 100%;
}
.team-item .team-item-content-wrapper .img-wrapper img {
  width: 100%;
}
.team-item .team-item-content-wrapper .img-wrapper .img-desc-wrap {
    -webkit-box-align: center;
    -ms-flex-align: center;
    -webkit-align-items: center;
    align-items: center;
    background: #f5f8f9;
    bottom: 0;
    color: #041E42;
    display: -webkit-box;
    display: -webkit-flex;
    display: -ms-flexbox;
    display: flex;
  flex-grow: 1;
    position: relative;
    -webkit-transition: all .5s;
    -o-transition: all .5s;
    transition: all .5s;
    width: 100%;
}
.team-item .team-item-content-wrapper .img-wrapper .img-desc {
  width: 100%;
  height: 100%;
  padding: 20px;
}
.team-item .team-item-content-wrapper .img-wrapper .img-desc h3 {
  font-size: 20px;
  line-height: 1;
  color:#041E42;
  margin-bottom: 5px;
  position: relative;
  padding-right: 20px;
}
.team-item .team-item-content-wrapper .img-wrapper .img-desc h3.name:after {
  content: '\f107';
  font-size: 20px;
  position: absolute;
  right: 0;
  font-family: 'FontAwesome';
  color:#041E42;
  top: 0;
}
.team-item .team-item-content-wrapper .img-wrapper .img-desc h4 {
  margin: 0;
  font-size: 16px;
  color:#041E42;
  font-weight: 300!important;
}
.team-item .team-item-content-wrapper .desc-wrapper {
  position: absolute;
  left: 40px;
  background: #f5f8f9;
  margin-top: 30px;
  width: calc(100% - 80px);
  padding: 32px;
  color: #041E42;
  text-align: left;
  display: none;
  border-radius: 16px;
}
.team-item.active .team-item-content-wrapper .desc-wrapper {
  display: block;
}

.team-item .team-item-content-wrapper .desc-wrapper h3 {
  font-size: 24px;
  font-weight: 700;
  margin-bottom: 10px;
  line-height: 1;
}
.team-item .team-item-content-wrapper .desc-wrapper h4 {
  font-size: 24px;
  font-weight: 400;
  margin-bottom: 24px;
  font-style: italic;
}
.team-item .team-item-content-wrapper .desc-wrapper p {
  font-size: 16px;
  line-height: 1.5;
  margin-bottom: 50px;
  font-weight: 300;
}

.team-item .arrow-up {
  position: relative;
  width: 100%;
  margin-left: -6px;
  display: none;
}
.team-item.active .arrow-up {
  display: block;
}

.team-item .btn {
  border-color: #fff;
  color: #041E42;
  min-width: inherit;
  padding: 12px 20px;
}
.team-item .btn:hover {
  color:#009BD2!important;
}
.team-item .btn:hover svg {
  fill: #009BD2!important;
}

.close {
  display: inline-block;
  width: 28px;
  height: 28px;
  overflow: hidden;
  z-index: 2;
  position: absolute;
  top: 50%;
  right: 0%;
  -webkit-transform: translate(-50%,-50%);
  -ms-transform: translate(-50%,-50%);
  -o-transform: translate(-50%,-50%);
  transform: translate(-50%,-50%);
}
.close:before,
.close:after {
  content: "";
  position: absolute;
  height: 2.2px;
  width: 100%;
  top: 50%;
  left: 0;
  margin-top: -2px;
  background: #041E42;
}
.close:after {
  -webkit-transform: rotate(-45deg);
  -moz-transform: rotate(-45deg);
  -ms-transform: rotate(-45deg);
  -o-transform: rotate(-45deg);
  transform: rotate(-45deg);
}
.close::before {
  -webkit-transform: rotate(45deg);
  -moz-transform: rotate(45deg);
  -ms-transform: rotate(45deg);
  -o-transform: rotate(45deg);
  transform: rotate(45deg);
}
.font-icon svg { width: 14px; fill: #041E42; }
@media (max-width: 1700px) {
  .team-listing {
    margin: 0 -30px;
  }
  .team-listing .team-item {
    padding: 0 30px;
    margin-bottom: 60px;
  }
  .team-item .team-item-content-wrapper .desc-wrapper {
    width: calc(100% - 60px);
    left: 30px;
    padding: 50px 100px;
  }

}

@media (max-width: 1500px) {

}

@media (max-width: 1366px) {

  .team-wrapper {
    padding: 80px 60px;
  }

  .team-item .team-item-content-wrapper .desc-wrapper {
    width: calc(100% - 60px);
    left: 30px;
  }
}

@media (max-width: 1024px) {

  .team-listing .team-item {
    -ms-flex: 0 0 50%;
    -webkit-flex: 0 0 50%;
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 20px;
    margin-bottom: 40px;
  }
  .team-item .team-item-content-wrapper .desc-wrapper {
    width: calc(100% - 40px);
    left: 20px;
    padding: 50px 100px;
  }
  .team-item .team-item-content-wrapper .img-wrapper .img-desc-wrap {
    width: calc(100% + 10px);
  }
  .team-item .arrow-up:after {
    top: -20px;
  }
  .team-item .team-item-content-wrapper .desc-wrapper {
    padding: 30px;
  }
  .team-item .team-item-content-wrapper .desc-wrapper h3 {
    font-size: 38px;
  }
  .team-item .team-item-content-wrapper .desc-wrapper h4 {
    font-size: 20px;
  }
  .team-item .team-item-content-wrapper .img-wrapper .img-desc {
    padding: 15px;
  }

  .close {
    width: 20px;
    height: 20px;
    -webkit-transform: translate(-50%,0);
    -ms-transform: translate(-50%,0);
    -o-transform: translate(-50%,0);
    transform: translate(-50%,0);
  }
}
@media (max-width: 768px) {
  .team-wrapper {
    padding: 16px;
  }
  .team-item .team-item-content-wrapper .desc-wrapper {
    width: calc(100% - 40px);
    left: 20px;
  }
}
@media (max-width: 575px) {
  .team-wrapper {
    padding: 16px;
  }
  .team-listing .team-item {
    -ms-flex: 0 0 100%;
    -webkit-flex: 0 0 100%;
    flex: 0 0 100%;
    max-width: 100%;
    margin-bottom: 30px;
  }
  .team-item .team-item-content-wrapper .desc-wrapper {
    font-size: 16px;
    padding: 30px;
  }
  .team-item .team-item-content-wrapper .img-wrapper .img-desc h3 {
    font-size: 20px;
  }
}

/* ============================================================
   Carousel (Swiper) — overrides the grid layout above.
   Higher specificity (.team-wrapper .swiper ...) beats the
   .team-listing .team-item flex rules at every breakpoint.
   ============================================================ */
.team-carousel-outer {
  position: relative;
  padding: 16px 16px 48px;; /* room for pagination dots below the track */
}
.team-wrapper .team-carousel {
  position: relative;
  overflow: hidden;
  max-width: 1240px;
  margin: 0 auto;
}
.team-wrapper .team-carousel .swiper-wrapper {
  margin: 0;
  flex-wrap: nowrap;
  align-items: stretch;
}
.team-wrapper .team-carousel .swiper-slide.team-item {
  flex: 0 0 auto;          /* width is controlled by Swiper */
  max-width: none;
  height: auto;
  padding: 0;
  margin: 0 0 0 0;
}
.team-wrapper .team-carousel .swiper-slide.team-item.has-bio { cursor: pointer; }
.team-wrapper .team-carousel .team-item-content-wrapper { height: 100%; }

/* arrows — circular, sitting in the side gutters outside the track */
.team-wrapper .swiper-button-prev,
.team-wrapper .swiper-button-next {
  width: 40px; height: 40px; margin-top: 0; border-radius: 50%;
  background: #fff; border: 1px solid #E3E7EB; color: #041E42;
  box-shadow: 0 6px 18px rgba(4, 30, 66, .14);
  top: calc(50% - 22px); /* offset the dot padding so arrows center on the cards */
  transition: background .2s, color .2s, box-shadow .2s;
}
.team-wrapper .swiper-button-prev { left: -40px; right: auto; }
.team-wrapper .swiper-button-next { right: -40px; left: auto; }
.team-wrapper .swiper-button-prev:hover,
.team-wrapper .swiper-button-next:hover {
  background: #009BD2; color: #fff;
  box-shadow: 0 8px 22px rgba(0, 155, 210, .3);
}
.team-wrapper .swiper-button-prev:after,
.team-wrapper .swiper-button-next:after { font-size: 18px; font-weight: 700; }
.team-wrapper .swiper-button-disabled { opacity: .35; pointer-events: none; }

/* dots */
.team-wrapper .swiper-pagination { bottom: 4px; }
.team-wrapper .swiper-pagination-bullet { background: #98A4AE; opacity: .6; }
.team-wrapper .swiper-pagination-bullet-active { background: #009BD2; opacity: 1; }

/* tighten the outset as the gutter narrows, then drop arrows inside on small screens */
@media (max-width: 1366px) {
  .team-wrapper .swiper-button-prev { left: -60px; }
  .team-wrapper .swiper-button-next { right: -60px; }
}
@media (max-width: 1024px) {
  .team-wrapper .swiper-button-prev,
  .team-wrapper .swiper-button-next { width: 44px; height: 44px; top: calc(50% - 22px); }
  .team-wrapper .swiper-button-prev { left: 6px; }
  .team-wrapper .swiper-button-next { right: 6px; }
}

/* ---- bio modal ---- */
.team-modal {
  position: fixed; inset: 0; z-index: 9999;
  display: none; opacity: 0; transition: opacity .2s ease;
}
.team-modal.is-open { display: block; opacity: 1; }
.team-modal__overlay { position: absolute; inset: 0; background: rgba(4, 30, 66, .55); }
.team-modal__dialog {
  position: relative;
  width: calc(100% - 40px); max-width: 720px;
  margin: 6vh auto; max-height: 88vh; overflow: auto;
  background: #f5f8f9; color: #041E42; border-radius: 16px;
  padding: 56px 48px 48px; text-align: left;
}
.team-modal__close {
  position: absolute; top: 16px; right: 16px;
  width: 36px; height: 36px; padding: 0;
  background: none; border: 0; cursor: pointer;
}
.team-modal__content h3 { font-size: 24px; font-weight: 700; line-height: 1; margin: 0 0 10px; }
.team-modal__content h4 { font-size: 24px; font-weight: 400; font-style: italic; margin: 0 0 24px; }
.team-modal__content p  { font-size: 16px; line-height: 1.5; font-weight: 300; margin: 0 0 20px; }
.team-modal__content .btn {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid #041E42; border-radius: 999px;
  color: #041E42; padding: 12px 20px; text-decoration: none;
}
.team-modal__content .btn:hover { color: #009BD2 !important; border-color: #009BD2; }
.team-modal__content .btn:hover svg { fill: #009BD2 !important; }

@media (max-width: 575px) {
  .team-modal__dialog { padding: 48px 28px 32px; margin: 4vh auto; }
  .team-modal__content h3,
  .team-modal__content h4 { font-size: 20px; }
}