/* ===== FILTER WRAPPER ===== */
.job-filter-wrapper {
  background: #ffffff;
  padding: 20px 24px;
  border-radius: 18px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  margin-bottom: 36px;
}

/* ===== FILTER ROW ===== */
.job-filter-row {
  display: flex;
  gap: 14px;
}

.job-filter-row+.job-filter-row {
  margin-top: 14px;
}

/* ===== INPUT & SELECT ===== */
.job-filter-row input,
.job-filter-row select {
  flex: 1;
  height: 48px;
  padding: 0 16px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #fff;
  font-size: 14px;
  color: #111827;
  transition: all 0.25s ease;
}

/* Placeholder */
.job-filter-row input::placeholder {
  color: #9ca3af;
}

/* Focus */
.job-filter-row input:focus,
.job-filter-row select:focus {
  outline: none;
  border-color: var(--fs-color-primary);
  box-shadow: 0 0 0 3px rgba(54, 11, 17, 0.12);
}

/* ===== SEARCH BUTTON ===== */
.btn-search {
  width: 56px;
  min-width: 56px;
  height: 48px;
  border-radius: 12px;
  border: none;
  background: var(--fs-color-primary);
  color: #ffffff;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.25s ease;
}

.btn-search:hover {
  background: var(--fs-color-primary);
  transform: translateY(-1px);
}

/* ===== DROPDOWN ICON FIX ===== */
.job-filter-row select {
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath fill='%239CA3AF' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
  background-size: 12px;
  padding-right: 40px;
}

/* ===== MOBILE ===== */
@media (max-width: 768px) {
  .job-filter-row {
    flex-wrap: wrap;
  }

  .job-filter-row input,
  .job-filter-row select,
  .btn-search {
    width: 100%;
  }

  .btn-search {
    height: 46px;
    font-size: 16px;
  }
}

.job-results {
  display: flex;
  justify-content: center;
  align-self: start;
}

/* GRID */
.job-results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}

/* CARD */
.job-card {
  background: #fff;
  border-radius: 20px;
  padding: 28px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, .08);
  border: 2px solid transparent;
  display: flex;
  flex-direction: column;
  height: 100%;
  transition: all .3s ease;
}

/* FEATURED (viền đỏ luôn) */
.job-card.is-featured {
  border-color: var(--fs-color-primary);
}

/* HOVER */
.job-card:hover {
  border-color: var(--fs-color-primary);
  transform: translateY(-4px);
  box-shadow: 0 18px 45px rgba(0, 0, 0, .12);
}

/* TITLE */
.job-title {
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 16px;
}

.job-title a {
  color: var(--fs-color-primary);
  text-decoration: none;
}

/* SALARY */
.job-salary {
  font-size: 16px;
  font-weight: 600;
  margin-bottom: 18px;
}

/* META */
.job-meta {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
}

.job-meta li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15px;
  color: #555;
  margin-bottom: 10px;
}

.job-meta img {
  width: 18px;
  height: 18px;
  opacity: .75;
}

/* CTA */
.job-link {
  margin-top: auto;
  font-size: 15px;
  font-weight: 600;
  color: var(--fs-color-primary);
  text-decoration: none;
}

.job-link:hover {
  text-decoration: underline;
}

.job-view-more {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px 0;
  a {
    background-color: var(--fs-color-primary);
    padding: 12px 24px;
    border-radius: 99px;
    color: #fff!important;
    text-decoration: none;
    font-weight: 600;
    transition: all .3s ease;
  }
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .job-results {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .job-results {
    grid-template-columns: 1fr;
    gap: 20px;
  }
}