/* BG Team Module — standalone vanilla styles (bgteam- prefix) */

.bgteam-area,
.bgteam-area *,
.bgteam-area *::before,
.bgteam-area *::after {
  box-sizing: border-box;
}

.bgteam-area {
  --bgteam-white: #fff;
  --bgteam-black-1: #10302a;
  --bgteam-black-4: #405955;
  --bgteam-grey-5: #f3f1f2;
  --bgteam-accent: #e9fdff;
  --bgteam-social-bg: #ffffff;
  --bgteam-border: #e7eaea;
  --bgteam-gutter: 15px;
  --bgteam-font: "Inter", sans-serif;

  font-family: var(--bgteam-font);
  background-color: var(--bgteam-white);
  padding-bottom: 40px;
  overflow: visible;
}



.bgteam-container {
  width: 100%;
  max-width: 1524px;
  margin-right: auto;
  margin-left: auto;
  padding-right: 12px;
  padding-left: 12px;
}

.bgteam-row {
  display: flex;
  flex-wrap: wrap;
  margin-right: calc(var(--bgteam-gutter) * -0.5);
  margin-left: calc(var(--bgteam-gutter) * -0.5);
  align-items: flex-start;
  overflow: visible;
}

.bgteam-col {
  flex: 0 0 100%;
  max-width: 100%;
  padding-right: calc(var(--bgteam-gutter) * 0.5);
  padding-left: calc(var(--bgteam-gutter) * 0.5);
  margin-bottom: 90px;
  overflow: visible;
}

@media (max-width: 767.98px) {
  .bgteam-row {
    row-gap: 2.5rem;
  }

  .bgteam-col {
    margin-bottom: 0;
  }

  .bgteam-parallax {
    transform: none !important;
    will-change: auto;
  }
}

.bgteam-parallax {
  will-change: transform;
  backface-visibility: hidden;
  -webkit-backface-visibility: hidden;
}

@media (min-width: 768px) {
  .bgteam-col {
    flex: 0 0 50%;
    max-width: 50%;
  }
}

@media (min-width: 992px) {
  .bgteam-col {
    flex: 0 0 25%;
    max-width: 25%;
  }
}

.bgteam-item {
  border: 1px solid var(--bgteam-border);
  border-radius: 20px;
  margin-bottom: 0;
  position: relative;
}

.bgteam-card-link {
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: inherit;
  text-indent: -9999px;
  overflow: hidden;
  cursor: pointer;
}

@media (min-width: 576px) and (max-width: 767.98px),
  (max-width: 574.98px) {
  .bgteam-item {
    margin-top: 0;
  }
}

.bgteam-item:hover .bgteam-socials-icon {
  transform: none;
}

.bgteam-item:hover .bgteam-thumb::before {
  opacity: 1;
  visibility: visible;
}

.bgteam-thumb {
  background: var(--bgteam-grey-5);
  display: block;
  border-radius: 20px;
  position: relative;
}

.bgteam-thumb::before {
  position: absolute;
  content: "";
  width: 100%;
  height: 100%;
  background: linear-gradient(180deg, rgba(180, 231, 23, 0) 55.57%, #2f62a5 100%);
  bottom: 0;
  left: 0;
  border-radius: 20px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.4s ease;
  pointer-events: none;
}

.bgteam-thumb img {
  border-radius: 20px;
  width: 100%;
  display: block;
  height: auto;
}

.bgteam-content {
  padding: 40px 40px 32px;
  position: relative;
}

@media (max-width: 1199.98px),
  (max-width: 991.98px),
  (max-width: 767.98px),
  (max-width: 574.98px) {
  .bgteam-content {
    padding: 40px 30px 32px;
  }
}

.bgteam-socials {
  position: absolute;
  width: 104px;
  left: 5.5%;
  bottom: calc(100% - 3px);
  z-index: 2;
  text-align: center;
  pointer-events: none;
}

.bgteam-socials-share {
  height: 50px;
  width: 50px;
  line-height: 50px;
  font-size: 13px;
  margin: 8px 8px 0;
  border-radius: 50px;
  background: var(--bgteam-social-bg);
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.bgteam-brand-logo {
  width: 28px;
  height: 28px;
  object-fit: contain;
  display: block;
  pointer-events: none;
  user-select: none;
}

.bgteam-socials-trigger {
  display: block;
  position: absolute;
  bottom: 0;
  left: 0;
  margin: 0 19px;
  border-radius: 50px 50px 0 0;
  background: var(--bgteam-white);
}

.bgteam-socials-trigger::before {
  content: "";
  position: absolute;
  background-color: transparent;
  bottom: 3px;
  height: 40px;
  width: 20px;
  right: calc(100% - 1px);
  border-bottom-right-radius: 20px;
  box-shadow: 0 20px 0 0 var(--bgteam-white);
}

.bgteam-socials-trigger::after {
  content: "";
  position: absolute;
  background-color: transparent;
  bottom: 3px;
  height: 40px;
  width: 20px;
  left: calc(100% - 1px);
  border-bottom-left-radius: 20px;
  box-shadow: 0 20px 0 0 var(--bgteam-white);
}

.bgteam-socials-wrapper {
  display: none;
  border-radius: 50px;
  pointer-events: auto;
}

.bgteam-socials-icon {
  position: relative;
  max-width: 100%;
  margin: 0;
  padding: 14px 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  justify-content: flex-end;
  align-items: center;
  border-radius: inherit;
  transform: translateY(100%);
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.01, 0.98);
  background: var(--bgteam-social-bg);
}

.bgteam-socials-icon li {
  list-style: none;
}

.bgteam-socials-icon a {
  font-size: 20px;
  color: var(--bgteam-white);
  padding: 5px 4px;
  display: inline-block;
  text-decoration: none;
  transition: color 0.3s ease;
}

.bgteam-socials-icon a:hover {
  color: var(--bgteam-accent);
}

.bgteam-name {
  margin: 0;
  font-weight: 600;
  font-size: 28px;
  letter-spacing: -0.04em;
  color: var(--bgteam-black-1);
  line-height: 1.2;
}

@media (max-width: 1199.98px) {
  .bgteam-name {
    font-size: 25px;
  }
}

.bgteam-underline {
  background-image: linear-gradient(currentColor, currentColor),
    linear-gradient(currentColor, currentColor);
  background-size: 0 1px, 0 1px;
  background-position: 100% 100%, 0 100%;
  background-repeat: no-repeat;
  transition: background-size 0.3s linear, all 0.4s ease 0.3s;
}

.bgteam-item:hover .bgteam-underline {
  background-size: 0 1px, 100% 1px;
}

.bgteam-role,
.bgteam-contact {
  font-size: inherit;
  letter-spacing: -0.02em;
  color: var(--bgteam-black-4);
  line-height: 1.5;
}

.bgteam-contact-link {
  color: inherit;
  text-decoration: none;
  transition: color 0.3s ease;
}

.bgteam-contact-link:hover {
  color: var(--bgteam-black-1);
}

/* —— Team detail page —— */
.bgteam-area--detail {
  padding-bottom: 80px;
}

.bgteam-area--detail .container-1230 {
  width: 100%;
  margin-right: auto;
  margin-left: auto;
}

.bgteam-detail {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 40px 56px;
  width: 100%;
}

.bgteam-detail-card {
  flex: 0 0 100%;
  max-width: 100%;
}

.bgteam-detail-card .bgteam-item {
  max-width: 380px;
  margin-left: auto;
  margin-right: auto;
}

.bgteam-detail-info {
  flex: 1 1 100%;
  min-width: 0;
  padding-top: 8px;
}

.bgteam-detail-bio {
  margin: 0 0 28px;
  font-family: "Poppins", var(--bgteam-font), sans-serif;
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  letter-spacing: -0.01em;
  color: var(--bgteam-black-4);
}

.bgteam-detail-socials {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.bgteam-detail-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  border: 1px solid var(--bgteam-border);
  background: var(--bgteam-white);
  color: #134a98;
  font-size: 16px;
  text-decoration: none;
  transition: background-color 0.25s ease, border-color 0.25s ease, color 0.25s ease, transform 0.25s ease;
}

.bgteam-detail-social img {
  width: 20px;
  height: 20px;
  object-fit: contain;
  display: block;
}

.bgteam-detail-bio p {
  margin: 0 0 1em;
}

.bgteam-detail-bio p:last-child {
  margin-bottom: 0;
}

.bgteam-detail-social:hover {
  background: #134a98;
  border-color: #134a98;
  color: #ffffff;
  transform: translateY(-2px);
}

@media (min-width: 768px) {
  .bgteam-detail {
    flex-wrap: nowrap;
    gap: 48px 64px;
  }

  .bgteam-detail-card {
    flex: 0 0 340px;
    max-width: 340px;
  }

  .bgteam-detail-card .bgteam-item {
    margin-left: 0;
    margin-right: 0;
    max-width: none;
  }

  .bgteam-detail-info {
    flex: 1 1 auto;
    padding-top: 24px;
  }

  .bgteam-detail-bio {
    font-size: 18px;
    line-height: 1.8;
  }
}

@media (min-width: 992px) {
  .bgteam-detail {
    gap: 56px 72px;
  }

  .bgteam-detail-card {
    flex: 0 0 380px;
    max-width: 380px;
  }

  .bgteam-detail-info {
    padding-top: 40px;
    max-width: none;
  }

  .bgteam-detail-bio {
    font-size: 19px;
  }
}

@media (max-width: 767.98px) {
  .bgteam-area--detail {
    padding-bottom: 56px;
  }

  .bgteam-detail {
    gap: 28px;
  }

  .bgteam-detail-bio {
    font-size: 16px;
    text-align: left;
  }

  .bgteam-detail-info {
    padding-top: 0;
  }
}
