.above-footermax {
  margin-top: 0;
}

.teambg {
  padding: 10px 0 100px 0;
  position: relative;
  background-color: #041322;
}

.teambg .mxwidth .team-filter {
  margin-bottom: 80px;
  position: relative;
}

.teambg .mxwidth .team-filter i {
  font-size: 30px;
  position: relative;
  cursor: pointer;
  color: #ffffff;
  display: inline-block;
  transition: color 0.3s ease;
}

.teambg .mxwidth .team-filter i:hover {
  color: #0973BA;
}

.teambg .mxwidth .team-filter i::after {
  content: " Filter";
  font-size: 16px;
  margin-left: 10px;
  font-family: Arial, sans-serif;
  font-weight: normal;
}

.teambg .mxwidth .team-filter .buttons {
  display: flex;
  flex-direction: column;
  width: fit-content;
  position: absolute;
  z-index: 999;
  gap: 10px;
  background-color: #fff;
  padding: 20px 15px;
  border: 1px solid rgba(0, 0, 0, 0.2);
  border-radius: 5px;
  top: 50px;
  left: 0;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
  animation: slideDown 0.3s ease;
}

@keyframes slideDown {
  from {
    opacity: 0;
    transform: translateY(-10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.teambg .mxwidth .team-filter .buttons .button-value {
  padding: 8px 20px;
  background-color: rgba(0, 0, 0, 0.0666666667);
  border-radius: 25px;
  user-select: none;
  cursor: pointer;
  border: none;
  transition: all 0.3s ease;
  font-size: 14px;
  white-space: nowrap;
}

.teambg .mxwidth .team-filter .buttons .button-value:hover {
  background-color: #0973BA;
  color: #fff;
  transform: translateY(-2px);
}

.teambg .mxwidth .team-filter .buttons .button-value.active {
  background-color: #0973BA;
  color: #fff;
}

.teambg .mxwidth .team-filter .buttons-hide {
  display: none !important;
}

.teambg .mxwidth .team-members {
  display: flex;
  flex-wrap: wrap;
  gap: 150px 50px;
  justify-content: center;
  min-height: 200px;
}

.teambg .mxwidth .team-members .team-card {
  border: none;
  background: #012a74;
  background: linear-gradient(90deg, #012a74 0%, #041322 80%);
  padding: 30px;
  border-radius: 10px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  box-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
  max-width: 300px;
  min-width: 280px;
  position: relative;
  transition: all 0.3s ease;
  animation: fadeIn 0.5s ease;
}

@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.teambg .mxwidth .team-members .team-card:hover {
  transform: translateY(-5px);
  box-shadow: 5px 5px 15px rgba(0, 0, 0, 0.3);
}

.teambg .mxwidth .team-members .team-card .profile-img {
  width: 200px;
  height: 200px;
  object-fit: cover;
  border-radius: 50%;
  position: absolute;
  top: -60px;
  filter: drop-shadow(0px 0px 10px rgba(0, 0, 0, 0.2666666667));
  transition: all 0.3s ease;
}

.teambg .mxwidth .team-members .team-card:hover .profile-img {
  transform: scale(1.05);
}

.teambg .mxwidth .team-members .team-card .img-style2 {
  width: 140px;
  height: 140px;
}

.teambg .mxwidth .team-members .team-card .team-name {
  margin-top: 80px;
  color: #fff;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
  text-align: center;
  font-size: 24px;
  font-weight: bold;
  margin-bottom: 10px;
}

.teambg .mxwidth .team-members .team-card .team-depart {
  color: #e7e7e7;
  text-align: center;
  text-shadow: 3px 3px 10px rgba(0, 0, 0, 0.2);
  font-size: 16px;
  margin-bottom: 15px;
}

.teambg .mxwidth .team-members .team-card .team-social-link {
  color: #ffffff;
  font-size: 25px;
  text-decoration: none;
  transition: all 0.3s ease;
  padding: 8px;
  border-radius: 50%;
}

.teambg .mxwidth .team-members .team-card .team-social-link:hover {
  color: #0973BA;
  background-color: rgba(255, 255, 255, 0.1);
  transform: scale(1.1);
}

.teambg .mxwidth .team-members .hide {
  display: none;
}

/* Loading and error states */
.loading {
  text-align: center;
  color: #fff;
  font-size: 18px;
  margin-top: 50px;
  padding: 20px;
}

.error {
  text-align: center;
  color: #ff6b6b;
  font-size: 18px;
  margin-top: 50px;
  padding: 20px;
}

/* Responsive Design */
@media (max-width: 768px) {
  .teambg .mxwidth .team-filter .buttons {
    left: 0;
    right: 0;
    width: 100%;
    max-width: 300px;
  }
  
  .teambg .mxwidth .team-members {
    gap: 120px 30px;
  }
}

@media (max-width: 611px) {
  .teambg .mxwidth .team-members {
    gap: 100px 30px;
  }
  
  .teambg .mxwidth .team-members .team-card {
    padding: 20px;
    width: 100%;
    min-width: auto;
    max-width: 350px;
  }
  
  .teambg .mxwidth .team-members .team-card .team-name {
    font-size: 22px;
  }
  
  .teambg .mxwidth .team-members .team-card .team-depart {
    font-size: 14px;
  }
  
  .teambg .mxwidth .team-members .team-card .profile-img {
    width: 160px;
    height: 160px;
    top: -50px;
  }
  
  .teambg .mxwidth .team-members .team-card .img-style2 {
    width: 120px;
    height: 120px;
  }
  
  .teambg .mxwidth .team-members .team-card .team-name {
    margin-top: 70px;
  }
}

@media (max-width: 480px) {
  .teambg .mxwidth .team-members {
    gap: 100px 20px;
  }
  
  .teambg .mxwidth .team-members .team-card {
    padding: 20px;
    width: 100%;
    margin: 0 10px;
  }
  
  .teambg .mxwidth .team-members .team-card .profile-img {
    width: 140px;
    height: 140px;
    top: -45px;
  }
  
  .teambg .mxwidth .team-members .team-card .img-style2 {
    width: 100px;
    height: 100px;
  }
  
  .teambg .mxwidth .team-members .team-card .team-name {
    margin-top: 60px;
    font-size: 20px;
  }
  
  .teambg .mxwidth .team-members .team-card .team-depart {
    font-size: 13px;
  }
  
  .teambg .mxwidth .team-filter i {
    font-size: 24px;
  }
  
  .teambg .mxwidth .team-filter i::after {
    font-size: 14px;
  }
}

@media (max-width: 360px) {
  .teambg .mxwidth .team-members .team-card {
    padding: 15px;
  }
  
  .teambg .mxwidth .team-members .team-card .profile-img {
    width: 120px;
    height: 120px;
    top: -40px;
  }
  
  .teambg .mxwidth .team-members .team-card .img-style2 {
    width: 85px;
    height: 85px;
  }
  
  .teambg .mxwidth .team-members .team-card .team-name {
    margin-top: 50px;
    font-size: 18px;
  }
  
  .teambg .mxwidth .team-members .team-card .team-depart {
    font-size: 12px;
  }
  
  .teambg .mxwidth .team-members .team-card .team-social-link {
    font-size: 20px;
  }
}

@media (max-width: 280px) {
  .teambg .mxwidth .team-members .team-card .profile-img {
    width: 100px;
    height: 100px;
    top: -35px;
  }
  
  .teambg .mxwidth .team-members .team-card .img-style2 {
    width: 70px;
    height: 70px;
  }
  
  .teambg .mxwidth .team-members .team-card .team-name {
    margin-top: 40px;
    font-size: 16px;
  }
}

@media (max-width: 270px) {
  .teambg .mxwidth .team-members .team-card .profile-img {
    width: 90px;
    height: 90px;
    top: -30px;
  }
  
  .teambg .mxwidth .team-members .team-card .img-style2 {
    width: 60px;
    height: 60px;
  }
  
  .teambg .mxwidth .team-members .team-card .team-name {
    margin-top: 35px;
    font-size: 15px;
  }
}