.team {
  display: flex;
  flex-wrap: wrap !important;
  justify-content: center;
  gap: var(--wp--custom--spacing--35);
  padding-bottom: var(--wp--custom--spacing--64);
  .team-card {
    display: flex;
    flex: 0 0 31% !important;
    box-sizing: border-box;
    flex-direction: column;
    align-items: center;
    background-color: var(--wp--preset--color--white);
    & .team-card-image {
      width: 80%;
      height: auto;
      max-height: 350px;
      & img {
        border-radius: 8px;
        object-fit: cover;
        object-position: top center;
        width: 100%;
        height: 100%;
      }
    }
    & .team-card-text {
      margin-block-start: 0;
      text-align: center;
      & h3 {
        color: var(--wp--preset--color--black);
        margin: var(--wp--custom--spacing--12) 0 4px 0;
        font-size: 2rem;
      }
      & .team-title {
        margin-block-start: 0;
        font-family: var(--wp--preset--font-family--segoe);
        font-size: var(--wp--preset--font-size--small);
      }
      & .know-more-btn {
        margin-top: 12px;
        & a {
          color: var(--wp--preset--color--burrows-slate);
          font-size: 18px;
          font-style: normal;
          font-weight: 700;
          line-height: normal;
          text-decoration: none;
          &:after {
            content: "";
            display: inline-block;
            width: 8px;
            height: 8px;
            border-right: 2px solid #516474;
            border-bottom: 2px solid #516474;
            transform: rotate(-45deg);
            margin-left: 8px;
            vertical-align: middle;
            margin-top: -1px;
          }
        }
      }
    }
  }
}

.bc-overlay {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: rgba(0, 0, 0, 0.95); /* Semi-transparent dark overlay */
  backdrop-filter: blur(10px); /* Blur everything behind the overlay */
  z-index: 999999;
  max-width: none;
  margin: 0;
}

.single-team-card {
  display: none;
  position: fixed; /* Stay in place even when scrolling */
  top: 45%;
  left: 50%;
  transform: translate(-50%, -50%); /* Center horizontally and vertically */
  width: 50vw; /* 50% of viewport width */
  padding: 20px; /* Optional padding inside the popup */
  background-color: white; /* Background color */
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); /* Optional shadow for depth */
  border-radius: 8px; /* Rounded corners */
  z-index: 9999; /* Ensure it appears on top of other content */
  max-height: 90vh;
  overflow-y: auto;
  z-index: 1000000;
  & .login-close {
    position: absolute;
    right: 2rem;
    top: 2rem;
    cursor: pointer;
  }
  & .login-close::after {
    content: "\00d7";
    line-height: 1.5;
    font-size: var(--wp--preset--font-size--medium);
    box-sizing: border-box;
    margin-top: -10px;
    display: block;
    line-height: 1.5;
  }
  & .card-container {
    display: flex;
    flex-direction: row;
    & .card-image {
      display: flex;
      flex-basis: 35%;
      min-height: 100px;
      & img {
        width: 100%;
        height: auto;
        max-height: 350px;
        object-fit: cover;
        object-position: top center;
        border-radius: 8px;
        display: none;
      }
    }
    & .card-text {
      display: flex;
      flex-direction: column;
      flex-basis: 55%;
      padding: 0 0 0 2rem;
      justify-content: center;
      & .single-team-card-title {
        font-weight: 800;
      }
      & h2 {
        margin: 0.5rem 0;
      }
      & p {
        margin: 0.5rem 0;
      }
    }
  }
}

@media (max-width: 1000px) {
  .single-team-card {
    width: 80vw;
    top: 50%;
    & .card-container {
      flex-direction: column;
      & .card-image {
        img {
          width: 50%;
        }
      }
      & .card-text {
        padding: 0 !important;
        & h2 {
          font-size: 1.6rem !important;
          margin-top: 1rem;
          margin-bottom: 0;
          line-height: 1.2 !important;
        }
      }
    }
  }
}

@media (max-width: 620px) {
  .single-team-card {
    & .login-close::after {
      color: #fff;
      font-weight: 800;
    }
    & .card-container {
      & .card-image {
        max-height: 350px;
        img {
          width: 100%;
        }
      }
      & .card-text {
        & p {
          font-size: 0.9rem;
        }
      }
    }
  }
}

@media (max-width: 620px) {
  .single-team-card {
    & .card-container {
      & .card-image {
        max-height: 300px;
      }
    }
  }
}

@media (max-width: 375px) {
  .single-team-card {
    & .card-container {
      & .card-image {
        max-height: 250px;
      }
    }
  }
}

.load-more-animation,
.load-more-link {
  width: 100%;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-top: 2rem;
}

.load-more-link {
  flex-direction: column;
  & a {
    text-align: center;
  }
  & .load-more::before {
    display: block;
    font-weight: 800;
    color: var(--wp--preset--color--burrows-slate);
    font-family: var(--wp--preset--font-family--nunito);
    font-size: 0.9rem;
    content: "LOAD MORE";
  }
  padding-bottom: var(--wp--custom--spacing--35);
}

.hide-load-more {
  display: none !important;
}

.lds-dual-ring {
  color: var(--wp--preset--color--burrows-slate);
}
.lds-dual-ring,
.lds-dual-ring:after {
  box-sizing: border-box;
}
.lds-dual-ring {
  display: inline-block;
  width: 80px;
  height: 80px;
}
.lds-dual-ring:after {
  content: " ";
  display: block;
  width: 64px;
  height: 64px;
  margin: 8px;
  border-radius: 50%;
  border: 6.4px solid currentColor;
  border-color: currentColor transparent currentColor transparent;
  animation: lds-dual-ring 1.2s linear infinite;
}
@keyframes lds-dual-ring {
  0% {
    transform: rotate(0deg);
  }
  100% {
    transform: rotate(360deg);
  }
}
