/* Trang "Tuyển dụng" - archive-tuyen-dung.php + single-tuyen-dung.php
   Màu chủ đạo: Navy #17386C - Green #58AD40 - Trắng #FFFFFF */

.txd-archive {
  background: #f4f7ff;
}

.txd-archive__head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 48px auto;
}

.txd-archive__subtitle {
  display: inline-block;
  color: #58AD40;
  font-size: 14px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 2px;
}

.txd-archive__title {
  margin: 10px 0 0 0;
  font-size: 30px;
  font-weight: 800;
  color: #17386C;
}

@media (min-width: 1024px) {
  .txd-archive__title {
    font-size: 38px;
  }
}

.txd-archive__desc {
  margin: 14px 0 0 0;
  color: #475569;
  font-size: 16px;
  line-height: 1.6;
}

/* Lưới thẻ vị trí tuyển dụng */
.txd-archive__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 640px) {
  .txd-archive__grid {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 1024px) {
  .txd-archive__grid {
    grid-template-columns: 1fr 1fr 1fr;
    gap: 28px;
  }
}

.txd-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  background: #ffffff;
  border-radius: 20px;
  padding: 32px 28px;
  text-decoration: none !important;
  box-shadow: 0 10px 30px rgba(23, 56, 108, 0.08);
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.txd-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 16px 40px rgba(23, 56, 108, 0.16);
}

.txd-card__icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: linear-gradient(115deg, #58AD40, #17386C);
  color: #ffffff;
  margin-bottom: 20px;
  flex-shrink: 0;
  transition: transform 0.3s ease;
}

.txd-card:hover .txd-card__icon {
  transform: scale(1.08) rotate(-6deg);
}

.txd-card__title {
  margin: 0 0 14px 0;
  font-size: 19px;
  font-weight: 700;
  line-height: 1.4;
  color: #17181A;
  transition: color 0.2s ease;
}

.txd-card:hover .txd-card__title {
  color: #17386C;
}

.txd-card__tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.txd-card__tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #f4f7ff;
  color: #17386C;
  font-size: 12.5px;
  font-weight: 600;
}

.txd-card__desc {
  color: #64748b;
  font-size: 14.5px;
  line-height: 1.6;
  margin-bottom: 20px;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.txd-card__desc p {
  margin: 0;
}

.txd-card__link {
  margin-top: auto;
  color: #58AD40;
  font-weight: 700;
  font-size: 14.5px;
  transition: gap 0.2s ease, color 0.2s ease;
}

.txd-card:hover .txd-card__link {
  color: #17386C;
}

.txd-archive__empty {
  text-align: center;
  padding: 60px 24px;
  background: #ffffff;
  border-radius: 20px;
  box-shadow: 0 10px 30px rgba(23, 56, 108, 0.08);
}

.txd-archive__empty h3 {
  margin: 0 0 10px 0;
  color: #17386C;
  font-size: 20px;
  font-weight: 700;
}

.txd-archive__empty p {
  margin: 0;
  color: #64748b;
}

/* ===== Trang chi tiết 1 vị trí - single-tuyen-dung.php ===== */
.txd-single__tags {
  display: flex;
  margin-top: 26px;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 28px;
}

.txd-single__tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 16px;
  border-radius: 999px;
  background: #f4f7ff;
  color: #17386C;
  font-size: 14px;
  font-weight: 600;
}

.txd-single__apply {
  background: linear-gradient(115deg, #58AD40, #17386C);
  border-radius: 16px;
  padding: 28px 32px;
  color: #ffffff;
}

.txd-single__apply h3 {
  color: #ffffff !important;
  margin-top: 0;
}

.txd-single__apply p {
  color: rgba(255, 255, 255, 0.9) !important;
}

.txd-single__apply a.txd-single__apply-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: #17386C !important;
  font-weight: 700;
  padding: 12px 28px;
  border-radius: 999px;
  text-decoration: none !important;
  transition: transform 0.2s ease;
}

.txd-single__apply a.txd-single__apply-btn:hover {
  transform: translateY(-2px);
}

/* Form ứng tuyển (Caldera Forms) bên trong khung gradient - style lại input
   mặc định của trình duyệt cho đồng bộ giao diện Navy/Green của site. */
.txd-single__apply .form-group {
  margin-bottom: 16px;
}

.txd-single__apply .control-label {
  display: block;
  margin-bottom: 8px;
  color: #ffffff;
  font-weight: 600;
  font-size: 14.5px;
}

.txd-single__apply .field_required {
  color: #ffe27a !important;
}

.txd-single__apply input.form-control,
.txd-single__apply textarea.form-control {
  width: 100%;
  padding: 14px 16px;
  border: none;
  border-radius: 10px;
  background: #ffffff;
  color: #17386C;
  font-size: 15px;
  font-family: inherit;
  box-sizing: border-box;
  box-shadow: none;
  transition: box-shadow 0.2s ease;
}

.txd-single__apply input.form-control::placeholder,
.txd-single__apply textarea.form-control::placeholder {
  color: #94a3b8;
}

.txd-single__apply input.form-control:focus,
.txd-single__apply textarea.form-control:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.45);
}

.txd-single__apply textarea.form-control {
  resize: vertical;
  min-height: 110px;
}

/* Ô tải file CV - style lại nút "Choose File" mặc định của trình duyệt */
.txd-single__apply input[type="file"] {
  width: 100%;
  padding: 10px 14px;
  border: none;
  border-radius: 10px;
  background: #ffffff;
  color: #475569;
  font-size: 14px;
  box-sizing: border-box;
}

.txd-single__apply input[type="file"]::file-selector-button,
.txd-single__apply input[type="file"]::-webkit-file-upload-button {
  padding: 9px 18px;
  margin-right: 14px;
  border: none;
  border-radius: 999px;
  background: #17386C;
  color: #ffffff;
  font-weight: 700;
  font-size: 14px;
  cursor: pointer;
  transition: background 0.2s ease;
}

.txd-single__apply input[type="file"]:hover::file-selector-button,
.txd-single__apply input[type="file"]:hover::-webkit-file-upload-button {
  background: #58AD40;
}

.txd-single__apply .lh-form__submit,
.txd-single__apply button[type="submit"] {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 36px;
  background: #f87b1c;
  color: #ffffff;
  font-size: 16px;
  font-weight: 700;
  border: none;
  border-radius: 999px;
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.txd-single__apply .lh-form__submit:hover,
.txd-single__apply button[type="submit"]:hover {
  background: #ffffff;
  color: #17386C;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.25);
  transform: translateY(-2px);
}

/* Nút "Quay lại danh sách" */
.txd-single__back-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 12px 28px;
  background: #ffffff;
  color: #17386C !important;
  font-weight: 700;
  font-size: 15px;
  border: 2px solid #e2e8f0;
  border-radius: 999px;
  text-decoration: none !important;
  transition: all 0.25s ease;
  margin-top: 24px;
}

.txd-single__back-btn svg {
  transition: transform 0.25s ease;
}

.txd-single__back-btn:hover {
  background: #17386C;
  border-color: #17386C;
  color: #ffffff !important;
  box-shadow: 0 8px 20px rgba(23, 56, 108, 0.25);
  transform: translateY(-2px);
}

.txd-single__back-btn:hover svg {
  transform: translateX(-4px);
}

.content-body ul {
  padding-left: 24px;
  list-style-position: outside;
  margin-bottom: 20px;
}

.content-body li {
  margin-bottom: 8px;
}
