/* Team Section Styles */
.team-section {
  padding: 0 0 60px 0; /* Bỏ padding-top vì statistics section đã có padding-bottom */
  background: #fff;
  position: relative;
}

/* Team Header */
.team-header {
  text-align: center;
  margin-bottom: 30px;
}

.team-title-wrapper {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 15px;
  margin-bottom: 10px;
}

.team-title-icon {
  color: #ea7a2b;
  font-size: 20px;
  display: flex;
  align-items: center;
}

.team-title-icon i {
  transform: rotate(90deg); /* Xoay tam giác sang phải */
}

.team-title {
  font-size: 26px;
  font-weight: 700;
  color: #0f2264;
  margin: 0;
  line-height: 1.2;
}

.team-subtitle {
  font-size: 16px;
  color: #333;
  margin: 0;
}

/* Team Grid */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin-bottom: 40px;
}

/* Team Member Card */
.team-member {
  border: 1px solid #566392;
  border-radius: 8px;
  overflow: visible; /* Bỏ overflow hidden để ảnh không bị cắt góc */
  background: #fff;
  transition: all 0.3s ease;
  display: flex;
  flex-direction: column;
}

.team-member:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  transform: translateY(-4px);
}

/* Member Image */
.member-image-wrapper {
  width: 100%;
  padding: 15px 15px 0 15px; /* Padding để ảnh không full width */
  position: relative;
  overflow: visible;
  background: transparent;
  display: flex;
  justify-content: center;
  align-items: center;
}

.member-image {
  width: 200px;
  max-width: 100%;
  height: auto;
  aspect-ratio: 3 / 4; /* Tỷ lệ 1:1 cho ảnh vuông */
  object-fit: cover;
  object-position: top center; /* Hiển thị phần trên của ảnh, không cắt đầu */
  border-radius: 8px; /* Bo góc cho ảnh */
  display: block;
  transition: transform 0.3s ease;
}

/* Member Info */
.member-info {
  padding: 20px 15px;
  text-align: center;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.member-name {
  font-size: 16px;
  font-weight: 700;
  color: #0f2264;
  margin-bottom: 8px;
  line-height: 1.3;
}

.member-position {
  font-size: 14px;
  color: #333;
  margin-bottom: 15px;
  line-height: 1.4;
  flex-grow: 1;
}

/* Member Contacts */
.member-contacts {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-bottom: 15px;
}

.member-contact-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  transition: transform 0.3s ease;
}

.member-contact-icon:hover {
  transform: scale(1.1);
}

.member-contact-icon img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

/* Member Portfolio Button */
.btn-member-portfolio {
  display: inline-block;
  padding: 8px 20px;
  background: #0f2264;
  color: #fff;
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 6px;
  transition: all 0.3s ease;
  text-align: center;
  width: auto; /* Không full width */
  margin: 0 auto; /* Căn giữa */
}

.btn-member-portfolio:hover {
  background: #0a1a4d;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 8px rgba(15, 34, 100, 0.3);
}

/* Team Footer */
.team-footer {
  text-align: center;
}

.btn-view-all-members {
  display: inline-block;
  padding: 14px 40px;
  background: #ea7a2b;
  color: #fff;
  font-size: 16px;
  font-weight: 500;
  text-decoration: none;
  border-radius: 8px;
  transition: all 0.3s ease;
}

.btn-view-all-members:hover {
  background: #d66a1f;
  color: #fff;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(234, 122, 43, 0.3);
}

.btn-view-all-members i {
  margin-left: 5px;
  transition: transform 0.3s ease;
}

.btn-view-all-members:hover i {
  transform: translateX(4px);
}

/* Responsive */
@media (max-width: 991px) {
  .team-section {
    padding: 0 0 50px 0; /* Bỏ padding-top */
  }

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

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

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .team-header {
    margin-bottom: 25px;
  }
}

@media (max-width: 768px) {
  .team-section {
    padding: 0 0 40px 0; /* Bỏ padding-top */
  }
  
  .member-image-wrapper {
    padding: 12px 12px 0 12px;
  }

  .team-title-wrapper {
    gap: 12px;
  }

  .team-title-icon {
    font-size: 18px;
  }

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

  .team-subtitle {
    font-size: 14px;
  }

  .team-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 15px;
  }

  .team-header {
    margin-bottom: 25px;
  }

  .member-info {
    padding: 15px 12px;
  }

  .member-name {
    font-size: 15px;
  }

  .member-position {
    font-size: 13px;
  }

  .btn-member-portfolio {
    padding: 7px 18px;
    font-size: 13px;
  }

  .btn-view-all-members {
    padding: 12px 35px;
    font-size: 15px;
  }
}

@media (max-width: 576px) {
  .team-section {
    padding: 0 0 30px 0; /* Bỏ padding-top */
  }
  
  .member-image-wrapper {
    padding: 10px 10px 0 10px;
  }

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

  .team-subtitle {
    font-size: 13px;
  }

  .team-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .team-header {
    margin-bottom: 30px;
  }

  .btn-view-all-members {
    padding: 10px 30px;
    font-size: 14px;
  }
}

@media (max-width: 540px) {
  .team-title-wrapper {
    align-items: start;
  }
}

