:root {
  --asahi-color: #c92027;
  --asahi-rgb: 201, 32, 39;
  --text-color: #171725;
  --gray-color: #f7f7f7;
  --border-color: #b5b5be;
}

.job-listings,
.job-listings ul {
  margin: 0;
}

.job-listings li {
  list-style-type: none;
  margin: 0;
}

.job-listings ul {
  padding: 30px 20px 30px 0;
  border-bottom: 1px dashed lightgray;
}

.job-listings a {
  color: var(--text-color);
}

.job-listings a:hover {
  cursor: pointer;
  color: var(--asahi-color);
}
.col-inner ul.job-listings li.image-box {
    margin-left: 0;
}

.job-listings .image-box {
  display: inline-flex;
  align-items: center;
}

.job-listings .image-box img {
  width: 300px;
  height: auto;
  object-fit: cover;
}

.job-listings .info-box {
  flex: 1;
  flex-direction: column;
  font-size: 14px;
  padding: 0 0;
  align-items: flex-start;
}

.job-listings .info-box .job-title {
  font-size: 20px;
  margin: 0;
  text-align: left;
}

.job-listings .type-box {
  margin: 5px 0;
  align-items: center;
  gap: 10px;
}

.job-listings .type-box .job-type {
  line-height: 1;
  padding: 5px 10px;
  border-radius: 5px;
  font-size: 12px;
  color: #fff;
  display: inline;
}

.job-listings .type-box .job-type--full-time-en {
  background-color: #054444;
}
.job-listings .type-box .job-type--co-dinh {
  background-color: #054444;
}
.job-listings .type-box .job-type--ban-thoi-gian {
  background-color: #f08d3c;
}
.job-listings .type-box .job-type--part-time {
  background-color: #f08d3c;
}

.job-listings .type-box .job-type--freelance {
  background-color: #3399cc;
}

.job-listings .expires-box {
  display: inline-flex;
  flex-direction: column;
}
.job-asahi-filter-form ::placeholder {
    color: #222;
}
.job-listings .expires-box span:first-child {
  font-size: 14px;
  background: #b29785;
  color: #222;
  padding: 5px;
  border-radius: 5px;
  text-align: center;
}

.job-listings .expires-box span:last-child {
  font-size: 16px;
  font-weight: 700;
  margin: 30px 20px;
}

.section-field {
  border: 1px solid #ddd;
  border-radius: 5px;
  margin-bottom: 30px;
}

.section-field .field-heading {
  margin: 0;
  font-size: 18px;
  color: var(--text-color);
  padding: 10px 20px;
  background-color: var(--gray-color);
}

.section-field .content-box {
  margin: 15px 20px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.section-field .content-box * {
  font-size: 14px;
  margin: 0;
  color: var(--text-color);
}

.section-field .content-box img.aligncenter {
  margin: 0 auto;
}

.section-field .content-box ul {
  margin-left: 16px;
}

.job-action-button {
  display: inline-block;
  font-size: 18px;
  font-weight: 300;
  color: #054444;
  padding: 5px 15px;
  border: 1px solid #b29785;
  border-radius: 5px;
  transition: all 0.5s ease;
}

.job-action-button a {
  color: inherit;
}

.job-action-button a:hover {
  color: #fff;
}

.job-action-button:hover {
  cursor: pointer;
  background-color: #054444;
  color: #fff;
}

.job-action-button.aplly-button {
  margin-right: 20px;
}

.popup {
  position: fixed;
  z-index: 1200;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  top: -100%;
  opacity: 0;
  transition: opacity 0.5s ease, top 0s 0.5s ease;
}

.popup.open {
  opacity: 1;
  top: 0;
  transition: opacity 0.5s ease;
}

.popup.open .form-aplly-asahi-job {
  transform: translateY(0);
}

.popup.close .form-aplly-asahi-job {
  transform: translateY(-100px);
}

.form-aplly-asahi-job {
  width: calc(100% - 30px);
  max-width: 800px;
  margin: auto;
  padding: 30px 50px;
  background-color: #0b6c6a;
  transform: translateY(100px);
  transition: transform 0.5s ease;
}

.form-aplly-asahi-job h2 {
  color: #fff;
  font-size: 20px;
  margin-bottom: 20px;
  padding-bottom: 5px;
  border-bottom: 1px solid #b29785;
}

.form-aplly-asahi-job .wpcf7-form {
  margin: 0;
}

.form-aplly-asahi-job .all-field {
  flex-wrap: wrap;
  gap: 10px 40px;
  margin-bottom: 20px;
}

.form-aplly-asahi-job .all-field .input-field {
  width: calc(50% - 20px);
}

.form-aplly-asahi-job .all-field .input-field:last-child {
  width: 100%;
}

.form-aplly-asahi-job .all-field .input-field:last-child label:not(.input-file-mask) {
  display: block;
}

.form-aplly-asahi-job .all-field .input-field:last-child .wpcf7-not-valid-tip {
  display: inline;
}

.form-aplly-asahi-job .all-field .input-field label {
  font-size: 14px;
  width: auto;
}

.form-aplly-asahi-job .all-field .input-field required {
  color: var(--asahi-color);
}

.form-aplly-asahi-job .all-field .input-field input {
  margin: 0;
}

.form-aplly-asahi-job .all-field .input-field input:not(#file-attachment) {
  height: auto;
  line-height: 1;
  box-shadow: unset;
  border-radius: 5px;
  padding: 7px 12px;
}

.form-aplly-asahi-job .all-field .input-field input:not(#file-attachment):focus {
  box-shadow: 0 0 2px var(--asahi-color);
}

.form-aplly-asahi-job .all-field .input-field #file-attachment {
  display: none;
}

.form-aplly-asahi-job .all-field .input-field .input-file-mask {
  margin: 0;
  display: inline-flex;
  width: auto;
}

.form-aplly-asahi-job .all-field .input-field .input-file-mask .input-file-button {
  padding: 5px 20px;
  color: var(--asahi-color);
  font-weight: 300;
  border-radius: 5px;
  border: 1px solid var(--asahi-color);
  transition: all 0.5s ease;
}

.form-aplly-asahi-job .all-field .input-field .input-file-mask .input-file-button:hover {
  cursor: pointer;
  background-color: var(--asahi-color);
  color: #fff;
}

.form-aplly-asahi-job .wpcf7-submit {
  margin: 0;
  min-height: 0;
  height: auto;
  line-height: 1.6;
  padding: 5px 20px;
  border-radius: 5px;
  background-color: var(--asahi-color);
  font-weight: 300;
  transition: all 0.5s ease;
}

.form-aplly-asahi-job .wpcf7-spinner {
  display: none;
}

.form-aplly-asahi-job .wpcf7 .wpcf7-not-valid-tip {
  background: #fff;
  line-height: 1;
  padding: 5px 0 0;
  font-size: 14px;
  font-style: italic;
  text-align: right;
  margin: 0;
}

.form-aplly-asahi-job .wpcf7 .wpcf7-not-valid-tip:after {
  display: none;
}

.form-aplly-asahi-job .close-popup {
  top: 15px;
  right: 15px;
  line-height: 0;
}

.form-aplly-asahi-job .close-popup i {
  font-size: 24px;
  color: #ccbcae;
}
.form-aplly-asahi-job .wpcf7 input[type="file"] {
    cursor: pointer;
    color: #ccbcae;
}

.form-aplly-asahi-job .close-popup i:hover {
  color: var(--asahi-color);
  cursor: pointer;
}

.section-job-info table {
  margin: 0;
}

.section-job-info tr:nth-child(even) {
  background-color: #f7f7f7;
}

.section-job-info td {
  padding: 10px;
  width: 50%;
  border: unset;
  color: var(--text-color);
}

.section-job-info td:last-child,
.section-job-info td:first-child {
  padding-left: 20px;
}

.job-asahi-filter-form .input-field {
  display: inline-flex;
  align-items: center;
  position: relative;
}

.job-asahi-filter-form .input-field + .input-field {
  margin-left: 20px;
}

.job-asahi-filter-form .input-field:first-child {
  width: 50%;
}

.job-asahi-filter-form .input-field.field-select {
  width: 200px;
}

.job-asahi-filter-form .input-field i {
  font-size: 20px;
  color: #0b6a6c;
  position: absolute;
  left: 15px;
}

.job-asahi-filter-form .input-field input {
  margin: 0;
  box-shadow: unset !important;
  border: 1px solid #054444;
  height: 46px;
  padding: 0 15px 0 50px;
  border-radius: 5px;
}

.job-asahi-filter-form .input-field input:focus {
  border-color: #ccbcae;
}

.job-asahi-filter-form .input-field.field-select.active input {
  border-radius: 5px 5px 0 0;
}

.job-asahi-filter-form .input-field.field-select .selector {
  position: absolute;
  top: 100%;
  width: 100%;
  max-height: 0;
  overflow-y: scroll;
  border-radius: 0 0 0 20px;
  text-align: left;
  border-style: solid;
  border-color: var(--border-color);
  border-width: 0px;
  border-top: unset;
}

.job-asahi-filter-form .input-field.field-select.active .selector {
  transition: max-height 0.5s ease;
  max-height: 40vh;
  border-width: 1px;
}

.job-asahi-filter-form .input-field.field-select .selector div {
  padding: 10px 0 10px 15px;
  border-bottom: 1px solid #d4d4d4;
}

.job-asahi-filter-form .input-field.field-select .selector div:hover {
  cursor: pointer;
  background-color: var(--gray-color);
}

.job-asahi-filter-form .input-field.field-select .selector div:last-child {
  border-bottom: unset;
}

.job-asahi-filter-form .input-field.field-submit button {
  margin: 0;
  height: 46px;
  font-weight: 300;
  color: #fff;
  background: linear-gradient(45deg, #054444, #0b6a6c);
  border-radius: 5px;
}

.job-paginate {
  margin-top: 15px;
}

.job-paginate .page-numbers {
  width: 25px;
  height: 25px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  border: 1px solid var(--border-color);
  border-radius: 5px;
  font-size: 14px;
  color: var(--text-color);
}

.job-paginate .page-numbers:hover {
  cursor: pointer;
  border-color: var(--asahi-color);
}

.job-paginate .page-numbers.current {
  border-color: var(--asahi-color);
  background-color: rgba(var(--asahi-rgb), 0.8);
  color: #fff;
  cursor: default;
}

.job-paginate .page-numbers + .page-numbers {
  margin-left: 5px;
}
span.title-strong {
    font-weight: 600;
    color: #850c0c;
}
form.job-asahi-filter-form.text-center {
    background: #b2978570;
    padding: 30px;
}
/* --- CSS cho các công việc đã hết hạn (Cập nhật) --- */
.job-listings ul.job-expired {
    position: relative; /* Rất quan trọng: Để các phần tử con định vị tương đối/tuyệt đối */
    opacity: 0.8; /* Mờ mặc định */
    /* LOẠI BỎ pointer-events: none; KHỎI ĐÂY */
    filter: grayscale(80%);
    cursor: default;
    transition: opacity 0.3s ease, filter 0.3s ease;
}

/* Các phần tử nội dung bên trong item hết hạn sẽ không tương tác */
.job-listings ul.job-expired > li {
    pointer-events: none; /* Chỉ vô hiệu hóa click trên các LI nội dung */
}

/* --- Thêm CSS cho lớp phủ bắt hover --- */
.job-expired-hover-target {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 10; /* Đảm bảo nó nằm trên nội dung để bắt hover */
    background: transparent; /* Hoàn toàn trong suốt */
    pointer-events: auto; /* Rất quan trọng: Cho phép bắt các sự kiện chuột trên lớp này */
    cursor: not-allowed; /* Con trỏ biểu thị không được phép click */
}


/* --- CSS cho Custom Tooltip (Điều chỉnh lại vị trí tương đối với .job-expired-hover-target) --- */
.custom-job-tooltip {
    position: absolute; /* Vẫn là absolute */
    bottom: 86%; /* Đặt tooltip phía trên phần tử cha .job-expired-hover-target */
    left: 50%;
    transform: translateX(-50%) translateY(-10px); /* Dịch chuyển để căn giữa và tạo khoảng cách */
    background-color: #333; /* Màu nền tooltip */
    color: #fff; /* Màu chữ tooltip */
    padding: 8px 12px;
    border-radius: 4px;
    white-space: nowrap; /* Ngăn không cho văn bản xuống dòng */
    z-index: 999; /* Đảm bảo tooltip nằm trên các phần tử khác */
    opacity: 0; /* Mặc định ẩn */
    visibility: hidden; /* Mặc định ẩn */
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease; /* Hiệu ứng chuyển động mượt */
    pointer-events: none; /* Rất quan trọng: Không chặn sự kiện click vào phần tử bên dưới (nếu có) */
}

/* Mũi tên tooltip (giữ nguyên) */
.custom-job-tooltip::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 100%; /* Đặt mũi tên ở phía dưới tooltip */
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent; /* Màu mũi tên */
}

/* Trạng thái hiển thị tooltip khi lớp phủ bắt hover được hover */
.job-expired-hover-target:hover .custom-job-tooltip {
    opacity: 1; /* Hiện tooltip */
    visibility: visible; /* Hiện tooltip */
    transform: translateX(-50%) translateY(0); /* Di chuyển về vị trí ban đầu (hiệu ứng trượt lên) */
}

/* --- CSS cho hiệu ứng làm mờ khi hover (Cập nhật) --- */
/* Di chuột vào .job-expired-hover-target để thay đổi opacity của .job-expired */
.job-expired-hover-target:hover {
    /* Đảm bảo không có hiệu ứng nền hoặc bóng đổ trên hover target */
    background-color: transparent;
    box-shadow: none;
}

.job-expired-hover-target:hover + li { /* Di chuột vào overlay, tác động đến li bên cạnh */
    /* Không cần điều chỉnh opacity ở đây nếu JS đã xử lý */
}

/*mobile*/
@media (max-width: 600px) {
	form.job-asahi-filter-form.text-center {
        display: flex;
        flex-wrap: wrap;
        gap: 10px;
		padding: 10px 0;
    }
	.job-asahi-filter-form .input-field:first-child {
       width: calc(50% - 25px);
       margin: 0 0px 0 20px;
    }
	.job-asahi-filter-form .input-field.field-select {
       width: calc(50% - 25px);
       margin: 0 20px 0 0px;
    }
	.job-asahi-filter-form .input-field.field-submit{
       margin: 0 20px;
       width: 100%;
       display: flex;
    }
	.job-asahi-filter-form .field-submit button {width: 100%;}
	.job-listings ul {
		display: block;
	}
	.job-listings .image-box img {
       width: 325px;
    }
	li.info-box.flex {
       margin-left: 0;
    }
	.job-listings .info-box .job-title {
      font-size: 16px;
    }
	.job-listings .expires-box {
       display: block;
       margin: auto;
       text-align: left;
    }
}