.job-container {
  max-width: 1200px;
  margin: auto;
  padding: 40px 16px;
}

.job-main {
  display: flex;
  flex-direction: column;
  row-gap: 25px;
}

.job-layout {
  display: grid;
  grid-template-columns: 400px 1fr;
  gap: 32px;
}

@media (max-width: 1024px) {
  .job-layout {
    grid-template-columns: 1fr;
  }
}

.job-chip {
  display: inline-block;
  padding: 6px 12px;
  background: var(--theme-palette-color-7);
  border: 1px solid var(--theme-palette-color-5);
  border-radius: 999px;
  font-size: 14px;
  font-weight: 500;
  margin-right: 6px;
}

.job-sidebar {
  background: var(--theme-palette-color-7);
  border: 1px solid var(--theme-palette-color-5);
  box-shadow: 0px 4px 44.2px 37px #4f6bc208 inset;
  height: fit-content;
  padding: 20px;
  border-radius: 15.73px;
  text-align: center;
  display: flex;
  flex-direction: column;
  gap: 25px;
}

.company-logo {
  width: 100px;
  height: 100px;
  margin: auto;
  background: #d9d9d9;
  padding: 25px;
  border-radius: 999px;
}

.job-meta {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 15px;
}

.job-meta-item {
  background-color: #3d3d40;
  padding: 5px 25px;
  font-size: 15px;
  border-radius: 9999px;
  color: var(--theme-palette-color-1);
  font-weight: 600;
}

.job-date {
  display: flex;
  justify-content: flex-start;
  align-items: center;
  gap: 29px;
  margin-bottom: 20px;
  width: fit-content;
  font-size: 15px;
}

.job-date .dashicons-calendar:before {
  background: var(--theme-palette-color-7);
  padding: 11px;
  border-radius: 999px;
}

.btn-apply {
  width: 200px;
  padding: 10px 25px;
  background: var(--theme-palette-color-6);
  color: var(--theme-palette-color-1);
  border: none;
  border-radius: 10px;
  font-weight: 600;
  cursor: pointer;
}

.job-sidebar .btn-apply {
  margin: auto;
}

.job-modal {
  position: fixed;
  inset: 0;
  display: none;
  z-index: 9999;
}

.job-modal[aria-hidden="false"] {
  display: block;
}

.job-modal-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
}

.job-modal-content {
  max-width: 520px;
  margin: 5vh auto;
  background: var(--theme-palette-color-7);
  border: 1px solid var(--theme-palette-color-5);
  padding: 24px;
  border-radius: 14px;
  position: relative;
  height: 100%;
  overflow-y: auto;
}

.job-modal-close {
  position: absolute;
  top: 10px;
  left: 14px;
  border-radius: 9999px;
  border: none;
  font-size: 26px;
  cursor: pointer;
  background: white;
  padding: 5px;
  width: 35px;
  height: 35px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.job-modal-content .forminator-field input {
  background: var(--theme-palette-color-5) !important;
  border-color: var(--theme-palette-color-3) !important;
  color: var(--theme-palette-color-1) !important;
  border-radius: 10px !important;
}

.job-modal-content .forminator-field .forminator-label {
  color: var(--theme-palette-color-3) !important;
  margin-bottom: 10px !important;
}

.job-modal-content .forminator-file-upload {
  background: white;
  border-radius: 10px !important;
}

.job-modal-content button.forminator-button.forminator-button-submit {
  width: 100% !important;
  background: var(--theme-palette-color-6) !important;
}

.job-modal-content div#html-1 {
  font-size: 14px;
}

.job-modal-content div#html-1 p {
  margin-bottom: 6px;
}

.job-modal-content::-webkit-scrollbar {
  width: 5px;
}

.job-modal-content::-webkit-scrollbar-track {
  background: #05061d;
}

.job-modal-content::-webkit-scrollbar-thumb {
  background: #29346c;
  border-radius: 5px;
}

.job-modal-content::-webkit-scrollbar-thumb:hover {
  background: #ffffff;
}

.apply-candidate {
  margin-top: 0.5rem;
}

.apply-candidate form#forminator-module-114 {
  justify-content: flex-end !important;
  flex-direction: row-reverse;
}

.apply-candidate form#forminator-module-114 .forminator-row {
  flex-basis: 50% !important;
}

.job-archive-title {
  font-size: 28px;
  margin-bottom: 16px;
}

/* ===== Top Filters ===== */
.job-filters--top {
  margin-bottom: 18px;
}

.job-filters-bar {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: transparent;
  border-radius: 50px;
  padding: 14px;
  width: fit-content;
  margin: auto;
  border: 1px solid var(--theme-border-color);
}

.job-filters-title {
  margin: 0;
  font-size: 16px;
}

.job-filters-tabs {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

@media (max-width: 992px) {
  .job-filters-tabs {
    justify-content: center;
  }
  .job-filters-bar {
    border-radius: 28px;
    padding: 10px;
  }
}

/* ===== SELECT DROPDOWN STYLES ===== */
.filter-select-wrapper {
  position: relative;
}

.filter-select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  cursor: pointer;
  user-select: none;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 35px 8px 25px;
  border: 2px solid var(--theme-palette-color-5);
  border-radius: 50pc;
  background: transparent;
  font-size: 16px;
  color: inherit;
  font-family: inherit;
  min-width: 150px;
  transition: all 0.2s ease;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23666' d='M6 9L1 4h10z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: left 12px center;
  background-size: 12px;
}

.filter-select:hover {
  border-color: #4f6bc2;
}

.filter-select:focus {
  outline: none;
  border-color: #4f6bc2;
  box-shadow: 0 0 0 3px rgba(79, 107, 194, 0.1);
}

/* Style for options */
.filter-select option {
  padding: 8px;
  background: white;
  color: #111;
}

.filter-select option:first-child {
  color: #666;
}

/* Active state for select (when not default option) */
.filter-select:not([value=""]) {
  border-color: #4f6bc2;
  background-color: rgba(79, 107, 194, 0.05);
}

/* Chips */
.chip {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  border-radius: 999px;
  border: 1px solid #e5e5e5;
  background: #fff;
  color: #111;
  font-size: 13px;
  text-decoration: none;
  cursor: pointer;
  transition: all 0.2s ease;
}

.chip:hover {
  border-color: #4f6bc2;
}

.chip.is-active {
  background: #4f6bc2;
  color: #fff !important;
  border-color: #111;
}

.chip.small {
  font-size: 13px;
  padding: 5px 10px;
  background: #4f6bc2;
  border-color: #4f6bc2;
  color: white !important;
}

.clear-filters {
  display: inline-block;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: white !important;
  background: #4f6bc2;
  padding: 8px 25px;
  border-radius: 50px;
  transition: all 0.2s ease;
}

.clear-filters:hover {
  background: #3d5aa8;
  transform: translateY(-1px);
}

/* ===== Job List ===== */
.job-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Card */
.job-card {
  background: #fafafa;
  border: 1.31px solid #e4e4e4;
  margin-bottom: 15px;
  border-radius: 16px;
  padding: 18px;
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.job-card:hover {
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.06);
  transform: translateY(-2px);
}

.job-card-top {
  display: flex;
  flex-direction: row;
  justify-content: flex-start;
  align-items: flex-start;
  gap: 16px;
}

.job-card-title {
  font-size: 18px;
  margin: 0;
}

.job-card-title a {
  color: #111 !important;
  text-decoration: none;
}

.job-card-company {
  font-size: 14px;
  color: var(--theme-palette-color-6);
  font-weight: 500;
}

.top-card-chips {
  display: flex;
  gap: 10px;
}

span.job-location {
  color: black;
  font-size: 14px;
  font-weight: 500;
}

.job-card-summary {
  margin: 10px 0 12px;
  font-size: 14px;
  color: #333;
  line-height: 1.6;
}

.job-card-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.job-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #eee;
}

.job-card-date {
  font-size: 13px;
  color: #777;
}

.job-card-link {
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
  color: #111;
}

/* Pagination */
.job-pagination {
  margin-top: 20px;
}

.job-pagination .page-numbers {
  display: inline-block;
  padding: 6px 12px;
  margin: 0 4px;
  border-radius: 8px;
  border: 1px solid #e5e5e5;
  text-decoration: none;
  font-size: 14px;
  color: #fff;
}

.job-pagination .current {
  color: var(--theme-palette-color-1);
  border: 1px solid var(--theme-palette-color-4);
  background: var(--theme-palette-color-5);
}

.job-empty {
  padding: 40px;
  text-align: center;
  color: #666;
  background: #fafafa;
  border-radius: 12px;
}

/* AJAX Loading */
#jobs-results.is-loading {
  opacity: 0.55;
  pointer-events: none;
  filter: blur(0.4px);
}

.job-card-logo {
  width: 50px;
  height: 50px;
  background: #d9d9d9;
  padding: 9px;
  border-radius: 999px;
}



.jobs-related { margin-top: 3rem; }
.jobs-related__title { margin: 0 0 12px; font-size: 20px; }

.job-chips {
    display: flex;
    flex-wrap: wrap;
    row-gap: 11px;
}

.jobs-related__pager{
  display:flex;
  align-items:center;
  justify-content:center;
  gap: 12px;
  margin-top: 14px;
}

.pager-btn {
    border: 1px solid var(--theme-palette-color-4);
    background: var(--theme-palette-color-5);
    padding: 8px 12px;
    border-radius: 10px;
    cursor: pointer;
    color: white;
}

.pager-btn:disabled{
  opacity:.5;
  cursor:not-allowed;
}

