/*
 * Worxogo Team Widget CSS
 *
 * Elementor Team Widget Styles
 */

/* ===== TEAM SECTION ===== */
.team-section {
  display: flex;
  flex-direction: column;
  gap: 40px;
  justify-content: space-between;
}

.team-row,
.team-row * {
  box-sizing: border-box;
}

.team-row {
  display: flex;
  flex-direction: row;
  gap: 60px;
  align-items: flex-start;
  justify-content: space-between;
  position: relative;
}

.team-row.team-first-row {
  align-items: flex-start;
}

.team-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 24px;
  width: 50%;
}

.team-title {
  color: #4000a9;
  text-align: left;
  font-family: "Albert Sans", sans-serif;
  font-size: 40px;
  line-height: 110%;
  letter-spacing: -0.02em;
  font-weight: 700;
  position: relative;
}

.team-description {
  color: #4b484e;
  text-align: left;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 150%;
  font-weight: 400;
  position: relative;
}

/* ===== TEAM MEMBER CARD ===== */
.team-member-card {
  background: #ffffff;
  border-radius: 8px;
  align-items: flex-end;
  display: flex;
  min-height: 201px;
  width: calc(50% - 30px);
  max-width: 100%;
  position: relative;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
  overflow: hidden;
}

.team-member-photo {
  background: linear-gradient(
    43.52deg,
    rgba(234, 234, 232, 0.5) 0%,
    rgba(132, 132, 131, 0.2) 100%
  );
  border-radius: 8px;
  border-style: solid;
  border-color: #ffffff;
  border-width: 4px;
  width: 200px;
  height: 200px;
  position: absolute;
  left: 0px;
  top: 0px;
  box-shadow: 4px 4px 30px 0px rgba(0, 0, 0, 0.16);
  overflow: hidden;
}

.team-member-photo img {
  width: 200px;
  height: 200px;
  position: absolute;
  left: 0.5px;
  top: 0px;
  object-fit: cover !important;
  aspect-ratio: 1;
}

.team-member-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: flex-start;
  justify-content: flex-start;
  width: 250px;
  position: absolute;
  left: 219.5px;
  top: 50%;
  transform: translateY(-50%);
}

.team-member-name {
  color: #4000a9;
  text-align: left;
  font-family: "Albert Sans", sans-serif;
  font-size: 20px;
  line-height: 110%;
  letter-spacing: -0.02em;
  font-weight: 700;
  position: relative;
  align-self: stretch;
}

.team-member-position {
  color: #494948;
  text-align: left;
  font-family: "Albert Sans", sans-serif;
  font-size: 16px;
  line-height: 110%;
  letter-spacing: -0.02em;
  font-weight: 400;
  position: relative;
  align-self: stretch;
}

.team-member-details {
  color: #494948;
  text-align: left;
  font-family: "Albert Sans", sans-serif;
  font-size: 14px;
  line-height: 140%;
  letter-spacing: -0.01em;
  font-weight: 400;
  position: relative;
  align-self: stretch;
}

/* ===== RESPONSIVE DESIGN ===== */
@media (max-width: 1024px) {
  .team-section {
    gap: 30px;
  }

  .team-title {
    font-size: 36px;
  }

  .team-description {
    font-size: 15px;
  }

  .team-member-card {
    min-height: 180px;
    width: calc(50% - 20px);
  }

  .team-member-photo {
    width: 180px;
    height: 180px;
  }

  .team-member-photo img {
    width: 180px;
    height: 180px;
  }

  .team-member-info {
    left: 200px;
    width: calc(100% - 200px);
  }

  .team-member-name {
    font-size: 18px;
  }

  .team-member-position {
    font-size: 15px;
  }

  .team-member-details {
    font-size: 13px;
  }
}

@media (max-width: 768px) {
  .team-section {
    gap: 25px;
  }
  .team-title br {
    display: none;
  }

  .team-row {
    flex-direction: column;
    gap: 30px;
    align-items: center;
  }

  .team-row.team-intro {
    align-items: center;
  }

  .team-content {
    width: 100%;
    text-align: center;
    max-width: 100%;
    align-items: center;
  }

  .team-title {
    text-align: center;
  }

  .team-description {
    text-align: left;
  }

  .team-member-card {
    max-width: 100%;
    width: 100%;
    min-height: 200px;
  }

  .team-member-photo {
    width: 200px;
    height: 200px;
  }

  .team-member-photo img {
    width: 200px;
    height: 200px;
  }

  .team-member-info {
    left: 225px;
    width: calc(100% - 225px);
  }

  .team-member-name {
    font-size: 20px;
  }

  .team-member-position {
    font-size: 16px;
  }

  .team-member-details {
    font-size: 14px;
  }
}

@media (max-width: 576px) {
  .team-row {
    flex-direction: column;
    gap: 30px;
    align-items: flex-start;
    padding: 10px;
  }

  .team-content {
    width: 100%;
    text-align: center;
    max-width: 100%;
  }

  .team-title {
    font-size: 28px;
    text-align: center;
    line-height: 120%;
  }

  .team-description {
    font-size: 14px;
    line-height: 140%;
  }

  .team-member-card {
    min-height: 140px;
    width: 100%;
  }

  .team-member-photo {
    width: 140px;
    height: 140px;
  }

  .team-member-photo img {
    width: 140px;
    height: 140px;
  }

  .team-member-info {
    left: 160px;
    width: calc(100% - 160px);
    gap: 8px;
  }

  .team-member-name {
    font-size: 14px;
    line-height: 120%;
  }

  .team-member-position {
    font-size: 12px;
    line-height: 120%;
  }

  .team-member-details {
    font-size: 11px;
    line-height: 130%;
  }
}
