/* ============================================================
   TUYỂN DỤNG PAGE
   ============================================================ */

.tuyen-dung {
  background: #fdf8f0;
  padding: 3rem 0 5rem;
  padding-top: 250px;
  min-height: 80vh;
}

/* ---------- Container ---------- */
.tuyen-dung-container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 1.5rem;
}
/*  */
.method-headding {
  display: flex;
  justify-content: center;
  align-items: end;
  gap: 15px;
  margin-bottom: 12px;
}

.method-headding h2 {
  color: var(--color-text, #3a2a1a);
  text-align: center;
  font-family: "Baloo 2";
  font-size: 40px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
  text-transform: uppercase;
  white-space: nowrap;
}

.method-headding img {
  width: 229.904px;
  height: 118.059px;
}

.method-desc {
  color: var(--color-text, #3a2a1a);
  text-align: center;
  font-family: "Baloo 2";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: 24px;
  margin-bottom: 40px;
}
/* ---------- Search bar ---------- */
.tuyen-dung-search-wrap {
  margin-bottom: 48px;
}

.tuyen-dung-search-form {
  max-width: 1063px;
  margin: 0 auto;
  height: 60px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  border-radius: 40px;
  border: 1px solid rgba(51, 51, 51, 0.12);
  background: #fff;
  padding: 0.75rem 1.5rem;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

.tuyen-dung-search-icon {
  flex-shrink: 0;
}

.tuyen-dung-search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: "Baloo 2";
  font-size: 0.9375rem;
  color: #3a2a1a;
}

.tuyen-dung-search-input::placeholder {
  color: #b0a898;
}

/* ---------- Body layout ---------- */
.tuyen-dung-body {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 63px;
  align-items: start;
}

/* ============================================================
   SIDEBAR
   ============================================================ */
.tuyen-dung-sidebar {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  width: 325px;
}

/* --- Category list --- */
.tuyen-dung-sidebar-title {
  color: #2f1b08;
  font-size: 20px;
  font-style: normal;
  font-weight: 600;
  line-height: 28px; /* 140% */
  text-transform: uppercase;
  margin-bottom: 0.5rem;
}

.tuyen-dung-cat-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
}

.tuyen-dung-cat-item {
  border-bottom: 1px dashed #d6c9b8;
}

.tuyen-dung-cat-link {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.65rem 0;
  color: #2f1b08;
  font-family: "Baloo 2";
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: 28px; /* 175% */
  text-transform: uppercase;
  transition: color 0.2s;
}

.tuyen-dung-cat-link svg {
  color: #b0a898;
  flex-shrink: 0;
  transition: color 0.2s;
}

.tuyen-dung-cat-item.active .tuyen-dung-cat-link,
.tuyen-dung-cat-link:hover {
  color: #f89522;
}

.tuyen-dung-cat-item.active .tuyen-dung-cat-link svg,
.tuyen-dung-cat-link:hover svg {
  color: #f89522;
}

/* --- Quick-apply form --- */
.tuyen-dung-form-wrap {
  background: #fff;
  border-radius: 1rem;
  padding: 1.75rem 1.5rem;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.07);
}

.tuyen-dung-form-title {
  font-family: Poppins;
  color: #fbae17;
  text-align: center;
  font-size: 28px;
  font-style: normal;
  font-weight: 700;
  line-height: 36px; /* 128.571% */
  margin-bottom: 1.25rem;
}

.tuyen-dung-field {
  display: flex;
  flex-direction: column;
  gap: 0.375rem;
  margin-bottom: 1rem;
}

.tuyen-dung-field label {
  font-family: "Baloo 2";
  font-size: 0.8125rem;
  font-weight: 500;
  color: #3a2a1a;
}

.tuyen-dung-field .required {
  color: #e03e2d;
  margin-left: 0.125rem;
}

.tuyen-dung-field input,
.tuyen-dung-field textarea {
  width: 100%;
  border: 1px solid #e2dbd2;
  border-radius: 0.5rem;
  background: #f5f5f5;
  padding: 0.625rem 0.875rem;
  font-family: "Baloo 2";
  font-size: 0.875rem;
  color: #3a2a1a;
  outline: none;
  transition: border-color 0.2s;
  resize: none;
}
.tuyen-dung-field textarea {
  height: 150px;
}
.tuyen-dung-field input:focus,
.tuyen-dung-field textarea:focus {
  border-color: #f89522;
  background: #fff;
}

.tuyen-dung-field input::placeholder,
.tuyen-dung-field textarea::placeholder {
  color: #b0a898;
}

.tuyen-dung-form-btn {
  margin-top: 0.5rem;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  height: 48px;
  border-radius: 2.5rem;
  border: none;
  background: linear-gradient(87deg, #ae6a05 0%, #d68c0d 53%, #fbae17 97%);
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
  color: #fff;
  font-family: "Baloo 2";
  font-size: 0.9375rem;
  font-weight: 700;
  cursor: pointer;
  transition:
    background 0.25s,
    box-shadow 0.25s;
}

.tuyen-dung-form-btn:hover {
  background: linear-gradient(87deg, #fbae17 0%, #d68c0d 53%, #ae6a05 97%);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.16);
}

/* ============================================================
   MAIN — JOB LISTING
   ============================================================ */
.tuyen-dung-main-title {
  color: #2f1b08;
  font-size: 24px;
  font-style: normal;
  font-weight: 700;
  line-height: 32px; /* 133.333% */
  text-transform: uppercase;
  margin-bottom: 1.25rem;
}

.tuyen-dung-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  border-radius: 28px;
  background: #fff;
  padding: 40px;
}

/* --- Job item --- */
.tuyen-dung-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-bottom: 40px;
  text-decoration: none;
  transition: background 0.2s;
  border-radius: 0.25rem;
  border-bottom: 1px solid rgba(51, 51, 51, 0.06);
}
.tuyen-dung-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}
.tuyen-dung-item:hover {
  padding-left: 0.5rem;
  padding-right: 0.5rem;
  border-radius: 0.5rem;
}

.tuyen-dung-item-left {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.tuyen-dung-item-title {
  color: var(--color-text, #2f1b08);
  font-family: "Baloo 2";
  font-size: 24px;
  font-style: normal;
  font-weight: 600;
  line-height: normal;
}

.tuyen-dung-item:hover .tuyen-dung-item-title {
  color: #f89522;
}

.tuyen-dung-item-location {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Baloo 2";
  font-size: 0.8125rem;
  color: #838ca5;
}
.tuyen-dung-item-location span {
  color: var(--Text-color, #333);
  font-family: "Baloo 2";
  font-size: 18px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}
.tuyen-dung-item-location svg {
  width: 20px;
  height: 20px;
}
.tuyen-dung-item-right {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.125rem;
  flex-shrink: 0;
  margin-left: 1rem;
}

.tuyen-dung-item-deadline-label {
  color: var(--Text-color, #333);
  text-align: right;
  font-family: "Baloo 2";
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: normal;
}

.tuyen-dung-item-deadline-date {
  color: var(--Text-color, #333);
  font-family: "Baloo 2";
  font-size: 20px;
  font-style: normal;
  font-weight: 400;
  line-height: normal;
}

/* --- Empty state --- */
.tuyen-dung-empty {
  padding: 3rem 0;
  text-align: center;
  font-family: "Baloo 2";
  font-size: 1rem;
  color: #838ca5;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .tuyen-dung-body {
    grid-template-columns: 1fr;
  }

  .tuyen-dung-sidebar {
    order: 2;
  }

  .tuyen-dung-main {
    order: 1;
  }
}

@media (max-width: 600px) {
  .tuyen-dung {
    padding: 2rem 0 3rem;
  }

  .tuyen-dung-search-form {
    padding: 0.625rem 1rem;
  }

  .tuyen-dung-item {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
  }

  .tuyen-dung-item-right {
    align-items: flex-start;
    flex-direction: row;
    gap: 0.5rem;
    margin-left: 0;
  }
}
