.recruit-section {
  text-align: center;
  padding: 40px 20px;
  font-family: "Noto Sans JP", sans-serif;
  position: relative;
}

.recruit-bg {
    position: absolute;
    top: -3%;
    right: 13%;
    width: 475px;
    height: 376px;
    background: url(../images/recruit-section-01.png) no-repeat;
    background-size: contain;
    z-index: 2;
    pointer-events: none;
}

.recruit-title {
  color: #339933;
  font-size: 42px;
  font-weight: bold;
  margin-bottom: 30px;
}

.recruit-container {
  display: flex;
  justify-content: center;
  align-items: stretch;
  gap: 100px;  
  padding: 70px 60px 60px 60px;
  border-radius: 10px;
  position: relative;
  max-width: 1300px;   
  margin: 0 auto;     
  background-color: #d1d1d1;  
  z-index: 1;
}

.recruit-box {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.recruit-header {
  color: #fff;
  font-weight: bold;
  padding: 14px;
  font-size: 28px;
  letter-spacing: 2.8px;
  border-radius: 6px;
  position: relative;
  margin-bottom: 32px;
}

.recruit-header::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -24px;
  transform: translateX(-50%);
  border-width: 24px 12px 0 12px;
  border-style: solid;
}

.recruit-header.green {
  background-color: #339933;
}
.recruit-header.green::after {
  border-color: #339933 transparent transparent transparent;
}

.recruit-header.blue {
  background-color: #0d90a4;
}
.recruit-header.blue::after {
  border-color: #0d90a4 transparent transparent transparent;
}

.recruit-content {
  background: #fff;
  flex: 1; 
  padding: 57px 40px 57px 52px;
  border-radius: 5px;
  text-align: left;
  display: flex;
  flex-direction: column;
  justify-content: center;
  max-height: 380px;
}

.recruit-content ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.recruit-content li {
  position: relative;
  padding-left: 28px;
  margin-bottom: 15px;
  font-size: 18px;
  font-weight: 700;
  color: #125A12;
  line-height: 1.6;
}

.recruit-content li::before {
  content: "";
  position: absolute;
  left: 0;
  background: url("../images/recruit-section-03.png") no-repeat;
  background-size: 20px 20px;
  width: 20px;
  height: 20px;
  top: 7px;
}

.recruit-avatars {
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  align-items: center;
  position: absolute;
  bottom: 0;
  z-index: 1;
}

.recruit-avatars img {
  width: 224px;
  height: auto;
}

/* Desktop lớn: ≥1440px */
@media (min-width: 1440px) {
  .recruit-title {
    font-size: 48px;
  }

  .recruit-header {
    font-size: 32px;
  }

  .recruit-content li {
    font-size: 20px;
  }
}

/* Desktop thường: 993px–1439px */
@media (max-width: 1439px) and (min-width: 993px) {
  .recruit-title {
    font-size: 40px;
  }

  .recruit-container {
    gap: 80px;
    padding: 60px 40px;
  }

  .recruit-header {
    font-size: 26px;
  }

  .recruit-content li {
    font-size: 18px;
  }

  .recruit-avatars img {
    width: 200px;
  }
}

/* Tablet ngang: 769px–992px */
@media (max-width: 992px) and (min-width: 769px) {
  .recruit-title {
    font-size: 34px;
  }

  .recruit-container {
    gap: 50px;
    padding: 40px 30px;
  }

  .recruit-header {
    font-size: 24px;
    text-align: center;
  }

  .recruit-content li {
    font-size: 16px;
  }

  .recruit-avatars img {
    width: 180px;
  }
}

/* Responsive cho tablet và mobile */
@media (max-width: 768px) {
  .recruit-container {
    flex-direction: column;   /* xếp dọc */
    gap: 40px;                /* khoảng cách giữa các phần */
    padding: 30px 20px;       
  }

  .recruit-box {
    width: 100%;              /* box full width */
  }

  .recruit-header {
    font-size: 22px;          /* chữ nhỏ lại */
    line-height: 1.4;
    text-align: center;
  }

  .recruit-content {
    padding: 30px 20px;
  }

  .recruit-content li {
    font-size: 16px;
    padding-left: 28px;
    margin-bottom: 12px;
  }

  /* Avatar chuyển ra giữa 2 box */
  .recruit-avatars {
    display: none;
  }

  .recruit-avatars img {
    width: 160px;   /* nhỏ lại cho mobile */
    height: auto;
  }

  /* Ảnh nền thu nhỏ lại */
  .recruit-bg {
    width: 141px;
    height: 141px;
    top: 20px;
    right: 0;
  }

  .recruit-title {
    font-size: 20px;
    margin-bottom: 20px;
    line-height: 1.4;
  }
}
