/** team-section **/

.team-section {
  position: relative;
}

.team-block-one .inner-box {
  position: relative;
  display: block;
  margin-bottom: 22px;
}

.team-block-one .inner-box .image-box {
  position: relative;
  display: block;
}

.team-block-one .inner-box .image-box .image {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
}

.team-block-one .inner-box .image-box .image img {
  width: 100%;
  border-radius: 12px;
  transition: all 500ms ease;
}

.team-block-one .inner-box:hover .image-box .image img {
  transform: scale(1.05);
}

.team-block-one .inner-box .image-box .image:before {
  position: absolute;
  content: "";
  background: -webkit-linear-gradient(
    -90deg,
    rgba(217, 217, 217, 0) 0%,
    rgba(44, 102, 189, 1) 100%
  );
  left: 0px;
  top: 0px;
  width: 100%;
  height: 100%;
  z-index: 1;
  opacity: 0;
  transition: all 500ms ease;
}

.team-block-one .inner-box:hover .image-box .image:before {
  opacity: 1;
}

.team-block-one .inner-box .image-box .social-links {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 100%;
  text-align: center;
  transform: translate(-50%, -50%) scale(0, 0);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 2;
  transition: all 500ms ease;
}

.team-block-one .inner-box:hover .image-box .social-links {
  transform: translate(-50%, -50%) scale(1, 1);
}

.team-block-one .inner-box .image-box .social-links li a {
  position: relative;
  display: inline-block;
  width: 40px;
  height: 40px;
  line-height: 42px;
  background: #fff;
  text-align: center;
  border-radius: 50%;
  font-size: 16px;
  color: var(--text-color);
}

.team-block-one .inner-box .image-box .social-links li a:hover {
  color: #fff;
  background: var(--theme-color);
}

.team-block-one .inner-box .image-box .share-icon {
  position: absolute;
  display: inline-block;
  width: 48px;
  height: 48px;
  line-height: 50px;
  background: #fff;
  text-align: center;
  border-radius: 50%;
  font-size: 18px;
  color: var(--theme-color);
  box-shadow: 0px 4px 45px 0px rgba(0, 0, 0, 0.05);
  cursor: pointer;
  z-index: 2;
  right: 42px;
  bottom: -24px;
  transition: all 500ms ease;
}

.team-block-one .inner-box:hover .image-box .share-icon {
  color: #fff;
  background: var(--theme-color);
}

.team-block-one .inner-box .lower-content {
  position: relative;
  display: block;
  padding-top: 40px;
}

.team-block-one .inner-box .lower-content h3 {
  position: relative;
  display: block;
  font-size: 22px;
  line-height: 31px;
  margin-bottom: 7px;
}

.team-block-one .inner-box .lower-content h3 a {
  display: inline-block;
  color: var(--title-color);
}

.team-block-one .inner-box .lower-content h3 a:hover {
  color: var(--theme-color);
}

.team-block-one .inner-box .lower-content .designation {
  position: relative;
  display: block;
  font-size: 14px;
  line-height: 25px;
}

.team-section .owl-nav {
  position: absolute;
  top: -120px;
  right: 0px;
}

/** team-style-two **/

.team-style-two {
  position: relative;
  border-bottom: 1px solid #d9d9d9;
}

.team-style-two .sec-title p {
  margin-bottom: 11px;
  color: #164782;
}

.team-slider {
  position: relative;
  overflow: hidden;
  padding: 0 50px; /* ✅ thêm dòng này */
}

.slider-track {
  display: flex;
  gap: 30px;
  transition: transform 0.6s cubic-bezier(0.77, 0, 0.18, 1);
}

.team-block-two {
  min-width: 260px;
  flex: 0 0 260px;
}

.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: #164782;
  color: #fff;
  border: none;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  cursor: pointer;
  z-index: 10;

  /* ✅ Thêm 3 dòng này để căn giữa ký tự */
  display: flex;
  align-items: center;
  justify-content: center;
  line-height: 1; /* reset line-height */
  font-size: 16px; /* điều chỉnh size mũi tên nếu cần */
}

.nav.prev {
  left: 0; /* ✅ sửa từ -20px */
}

.nav.next {
  right: 0; /* ✅ sửa từ -20px */
}

.nav:hover {
  background: #228b22;
}

.team-block-two .inner-box {
  position: relative;
  display: block;
  /* margin-bottom: 30px; */
  background: #fff; /* Màu nền nhẹ nếu ảnh chưa load kịp */
  height: 340px;
}

.team-block-two .inner-box .image-box {
  position: relative;
  display: block;
  /* height: 340px; */
}

.team-block-two .inner-box .image-box .social-links {
  position: absolute;
  left: 0px;
  bottom: 0px;
  width: 100%;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  z-index: 2;
  opacity: 0;
  transition: all 500ms ease;
}

.team-block-two .inner-box:hover .image-box .social-links {
  bottom: 30px;
  opacity: 1;
}

.team-block-two .inner-box .image-box .social-links li a {
  position: relative;
  display: inline-block;
  width: 32px;
  height: 32px;
  line-height: 34px;
  background: #fff;
  text-align: center;
  border-radius: 50%;
  font-size: 14px;
  color: var(--text-color);
}

.team-block-two .inner-box .image-box .social-links li a:hover {
  color: #fff;
  background: #228b22;
}

.team-block-two .inner-box .image-box .image {
  position: relative;
  display: block;
  border-radius: 12px;
  overflow: hidden;
  transition: all 500ms ease;
}

/* Cố định kích thước ô ảnh */
/* .team-block-two .inner-box .image-box .image {
  width: 300px;
  height: 348px;
  overflow: hidden;
} */

/* Ảnh fit đầy ô, không méo */
.team-block-two .inner-box .image-box .image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top; /* ✅ ưu tiên hiển thị phần đầu/mặt người */
}

.team-block-two .inner-box .image-box .image:before {
  position: absolute;
  content: "";
  background: -webkit-linear-gradient(
    -90deg,
    rgba(0, 0, 0, 0) 70%,
    rgba(0, 0, 0, 0.8) 100%
  );
  width: 100%;
  height: 100%;
  left: 0px;
  top: 0px;
  z-index: 1;
  opacity: 0;
  transition: all 500ms ease;
}

.team-block-two .inner-box:hover .image-box .image:before {
  opacity: 1;
}

.team-block-two .inner-box:hover .image-box .image {
  border-radius: 12px 0px 0px 12px;
}

.team-block-two:last-child .inner-box:hover .image-box .image {
  border-radius: 0px 12px 12px 0px;
}

.team-block-two .inner-box .image-box .image img {
  width: 100%;
}

.team-block-two .inner-box .content-box {
  position: absolute;
  left: 100%;
  background: #fff;
  top: 0px;
  box-shadow: 0px 4px 45px 0px rgba(0, 0, 0, 0.05);
  width: calc(100% + 30px);
  padding: 55px 30px 60px 30px;
  border-radius: 0px 12px 12px 0px;
  opacity: 0;
  transform: scaleX(0);
  z-index: 2;
  transform-origin: left center;
  transition: all 500ms ease;
}

.team-block-two .inner-box:hover .content-box {
  opacity: 1;
  transform: scaleX(1);
}

.team-block-two:last-child .inner-box .content-box {
  left: inherit;
  right: 100%;
  transform-origin: right center;
  border-radius: 12px 0px 0px 12px;
}

.team-block-two .inner-box .content-box h3 {
  display: block;
  font-size: 22px;
  line-height: 31px;
  margin-bottom: 2px;
}

.team-block-two .inner-box .content-box h3 a {
  display: inline-block;
  color: var(--title-color);
}

.team-block-two .inner-box .content-box h3 a:hover {
  color: var(--theme-color);
}

.team-block-two .inner-box .content-box .designation {
  position: relative;
  display: block;
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  color: #16407d;
  margin-bottom: 20px;
}

.team-block-two .inner-box .content-box p {
  margin-bottom: 30px;
}

.team-block-two .inner-box .content-box .info-list li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  line-height: 21px;
  font-weight: 500;
  margin-bottom: 12px;
}

.team-block-two .inner-box .content-box .info-list li:last-child {
  margin-bottom: 0px;
}

.team-block-two .inner-box .content-box .info-list li a {
  display: inline-block;
  color: var(--title-color);
}

.team-block-two .inner-box .content-box .info-list li a:hover {
  color: var(--theme-color);
}

.team-block-two .inner-box .content-box .info-list li i {
  font-size: 14px;
  color: #ffde2f;
}

.team-style-two .inner-container {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 30px;
  margin-top: 40px;
}

.team-section .outer-container {
  background: #fff2e7;
}

.team-section .outer-container .pattern-layer {
  position: absolute;
  right: 97px;
  top: 57px;
  width: 68px;
  height: 68px;
  background-repeat: no-repeat;
}

/** rtl-css **/

.rtl .team-section .owl-nav {
  right: inherit;
  left: 0px;
}

.rtl .team-block-one .inner-box {
  text-align: right;
}

.rtl .team-block-two .inner-box .content-box {
  text-align: right;
}

/** responsive-css **/

@media only screen and (max-width: 1600px) {
}

@media only screen and (max-width: 1200px) {
  .team-block-two {
    width: 33.333%;
    max-width: 300px;
  }

  .team-section.pl_40.pr_40 {
    padding: 0px !important;
  }
}

@media only screen and (max-width: 991px) {
  .team-block-two {
    width: 50%;
  }
}

@media only screen and (max-width: 767px) {
  .team-section {
    padding-bottom: 40px;
  }

  .team-section .owl-nav {
    display: none;
  }

  .team-block-two {
    width: 100%;
    margin: 0 auto;
    float: none;
  }

  .team-block-two .inner-box .content-box {
    left: 0px;
    width: 100%;
    height: 100%;
    left: 0px !important;
    transform-origin: left center !important;
  }

  .team-block-two .inner-box .image-box .social-links {
    display: none;
  }

  .team-block-two .inner-box .image-box .image {
    border-radius: 12px !important;
    overflow: hidden;
  }

  .team-style-two {
    padding: 65px 0px 40px 0px;
  }

  .team-section .outer-container {
    padding: 65px 0px 35px 0px;
  }

  .testimonial-section.pt_140 {
    padding-top: 65px;
  }
}

@media only screen and (max-width: 599px) {
}

@media only screen and (max-width: 499px) {
}
