/* =========================
   CSS VARIABLES
========================= */
:root {
  --gold: #b9a473;
  --dark: #242424;
  --text: #555555;
  --border: #e5e1d9;
}

/* =========================
   FILTER BAR
========================= */
.job-filter-bar {
  display: flex;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--border);
  margin-bottom: 20px;
  flex-wrap: wrap;
  align-items: center;
}

.job-filter-bar input,
.job-filter-bar select {
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 6px;
  min-width: 200px;
  flex: 1 1 200px;
}

/* =========================
   BUTTONS (GLOBAL)
========================= */
.job-filter-bar button,
.job-view-toggle button,
.page-btn {
  border: 1px solid var(--gold);
  background: #fff;
  color: var(--gold);
  padding: 12px 22px;
  border-radius: 6px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: all 0.3s ease;
  font-size: 14px;
}

/* ICONS INSIDE BUTTONS */
.job-filter-bar button i,
.job-view-toggle button i,
.page-btn i {
  color: var(--gold);
  font-size: 16px;
  transition: color 0.3s ease, transform 0.3s ease;
}

/* HOVER – REVERSE COLORS */
.job-filter-bar button:hover,
.job-view-toggle button:hover,
.page-btn:hover {
  background: var(--gold);
  color: #fff;
}

.job-filter-bar button:hover i,
.job-view-toggle button:hover i,
.page-btn:hover i {
  color: #fff;
}

/* ACTIVE / FOCUS FIX (ICON NEVER DISAPPEARS) */
.job-filter-bar button:active,
.job-filter-bar button:focus,
.job-view-toggle button:active,
.job-view-toggle button:focus,
.page-btn:active,
.page-btn:focus {
  background: var(--gold);
  outline: none;
}

.job-filter-bar button:active i,
.job-filter-bar button:focus i,
.job-view-toggle button:active i,
.job-view-toggle button:focus i,
.page-btn:active i,
.page-btn:focus i {
  color: #fff;
}

/* =========================
   SEARCH BUTTON
========================= */
#job-search-btn {
  font-weight: 600;
}

/* =========================
   RESET BUTTON (ICON ONLY FIX)
========================= */
#job-reset-btn {
  padding: 12px 16px;
  min-width: 44px;
}

#job-reset-btn:hover i {
  transform: rotate(180deg);
}

/* =========================
   VIEW TOGGLE
========================= */
.job-view-toggle {
  text-align: center;
  margin-bottom: 24px;
}

.job-view-toggle span {
  margin-right: 6px;
  color: var(--text);
}

.job-view-toggle button.active {
  background: var(--gold);
  color: #fff;
}

.job-view-toggle button.active i {
  color: #fff;
}

/* =========================
   JOB CARDS
========================= */
.job-card {
  border: 1px solid var(--border);
  padding: 22px;
  margin-bottom: 18px;
  background: #fff;
  border-radius: 6px;
}

.job-card h3 {
  font-size: 22px;
  color: var(--dark);
  margin-bottom: 10px;
}

.job-card a {
  color: var(--dark) !important;
  text-decoration: none;
}

.job-card p {
  color: var(--text);
  line-height: 1.7;
}

/* =========================
   JOB META (ICONS SAFE)
========================= */
.job-meta {
  display: flex;
  justify-content: space-between;
  margin-top: 14px;
  font-size: 14px;
  color: var(--text);
}

.job-meta span {
  display: inline-flex;
  align-items: center;
}

.job-meta i {
  color: var(--gold);
  margin-right: 6px;
  font-size: 16px;
}

/* =========================
   GRID VIEW
========================= */
.grid-view .job-grid-wrapper,
.job-grid-wrapper {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
}

/* =========================
   PAGINATION
========================= */
.job-pagination-controls {
  text-align: center;
  margin-top: 20px;
}

.page-btn {
  margin: 0 4px;
}

/* =========================
   MISC
========================= */
.loading,
.no-jobs {
  text-align: center;
  padding: 30px;
  font-size: 16px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 1024px) {
  .job-filter-bar input,
  .job-filter-bar select {
    min-width: 150px;
  }

  .job-card h3 {
    font-size: 20px;
  }

  .job-grid-wrapper {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 767px) {
  .job-filter-bar {
    flex-direction: column;
  }

  .job-filter-bar input,
  .job-filter-bar select,
  .job-filter-bar button {
    width: 100%;
  }

  .job-grid-wrapper {
    grid-template-columns: 1fr;
  }

  .job-meta {
    flex-direction: column;
    gap: 6px;
  }
}
