/* ------------------------------
   FONTS
------------------------------*/
@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700;800&display=swap');

/* ------------------------------
   LAYOUT
------------------------------*/
#job-board-layout {
    font-family: 'Poppins', Helvetica, Arial, sans-serif !important;
    display: grid;
    grid-template-columns: 300px 1fr;
    gap: 30px;
    max-width: 1200px;
    margin: 40px auto;
}

/* ------------------------------
   FILTERS COLUMN
------------------------------*/
#filters-column {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    height: fit-content;
}

.filter-block {
    border-bottom: 1px solid #eee;
    padding: 15px 0;
}

.filter-header {
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    font-weight: 600;
    font-size: 15px;
}

.adzuna-filter-list {
    list-style: none;
    padding: 10px 0 0 0;
    margin: 0;
}

.adz-filter-link {
    text-decoration: none;
    color: #666;
    font-size: 14px;
    display: block;
    padding: 5px 0;
}

/* Active filter color updated to #1c2252 */
.adz-filter-link.active {
    color: #1c2252;
    font-weight: 700;
}

.count {
    color: #999;
    font-size: 12px;
}

/* ------------------------------
   KEYWORD BAR
------------------------------*/
.keyword-input-group {
    display: flex;
    gap: 5px;
    max-width: 100%;          /* Prevents overflow in Firefox */
    box-sizing: border-box;   /* Ensure padding/border counted in width */
}

.keyword-input-group input {
    flex: 1;
    min-width: 0;             /* Critical for Firefox flex overflow fix */
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

/* GO button color updated to #1c2252 */
#keywordSearchBtn {
    background: #1c2252;
    color: white;
    border: none;
    padding: 0 15px;
    border-radius: 4px;
    cursor: pointer;
}

/* ------------------------------
   JOB CARDS (Full-width, no save column)
------------------------------*/
.job-card {
    background: #fff;
    padding: 25px;
    margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.04);
    display: block; /* No right-side column */
}

.job-title a {
    color: #1c2252 !important;
    text-decoration: none;
    font-size: 20px;
    font-weight: 700;
}

.job-title a:hover {
    text-decoration: underline;
}

.job-meta-row {
    margin: 10px 0;
    font-size: 14px;
    color: #666;
}

.job-meta-row span {
    margin-right: 15px;
}

.job-badges-container {
    margin: 10px 0 12px 0;
}

.job-badge {
    display: inline-block;
    background: #f1f5f9;
    padding: 4px 12px;
    border-radius: 6px;
    font-size: 12px;
    margin-right: 8px;
}

.salary-badge {
    background: #ecfdf5;
    color: #065f46;
}

.description {
    font-size: 14px;
    color: #444;
    line-height: 1.6;
    margin-bottom: 15px;
}

/* ------------------------------
   BUTTONS
------------------------------*/
.apply-btn-container {
    text-decoration: none;
    display: inline-block;
}

.view-btn {
    padding: 8px 25px;
    border-radius: 50px;
    font-family: 'Poppins', Helvetica, Arial, sans-serif !important;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    color: #2a2d52;
    background: white;
    border: 2px solid transparent;
    background-image: linear-gradient(white, white),
                      linear-gradient(to right, #1c2252, #9333ea); /* subtle brand tweak */
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.view-btn:hover {
    background-color: white;
}

/* Reset button: narrower, centered text & centered in sidebar */
#resetBtn {
    width: auto !important;
    padding: 10px 20px;
    text-align: center !important;
    display: block;
    margin: 10px auto 0 auto; /* horizontally center the button */
    color: #2a2d52;
    border: 2px solid transparent;
    background: white;
    border-radius: 50px;
    font-weight: 600;
    background-image: linear-gradient(white, white),
                      linear-gradient(to right, #1c2252, #9333ea);
    background-origin: border-box;
    background-clip: padding-box, border-box;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

/* ------------------------------
   PAGINATION
------------------------------*/
#pagination {
    margin-top: 20px;
    display: flex;
    align-items: center;
    gap: 10px;
}

#pagination button {
    background: #2563eb; /* Existing pagination color retained (you said other buttons are fine) */
    color: white;
    border: none;
    padding: 6px 15px;
    border-radius: 4px;
    cursor: pointer;
}

#pagination button[disabled] {
    background: #d0d0d0;
    cursor: not-allowed;
}

#pageSelector {
    padding: 6px;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* ------------------------------
   AUTOCOMPLETE
------------------------------*/
.autocomplete-list {
    list-style: none;
    margin: 5px 0 0 0;
    padding: 0;
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.08);
    border-radius: 8px;
    overflow: hidden;
    position: absolute;
    width: calc(100% - 25px);
    display: none;
}

.autocomplete-list.show {
    display: block;
}

.autocomplete-list li a {
    display: block;
    padding: 10px 12px;
    text-decoration: none;
    color: #333;
    font-size: 14px;
}

.autocomplete-list li a:hover {
    background: #f1f5f9;
}

/* ------------------------------
   SKELETON LOADERS
------------------------------*/
.skeleton-card {
    background: #fff;
    padding: 25px;
    border-radius: 12px;
    margin-bottom: 20px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}

.skeleton-line {
    height: 12px;
    background: #eaeaea;
    border-radius: 6px;
    margin-bottom: 10px;
}

.skeleton-line.long  { width: 90%; }
.skeleton-line.mid   { width: 60%; }
.skeleton-line.short { width: 40%; }

/* Remove any emoji/icon injected before the salary text */
.job-badge.salary-badge::before,
.salary-badge::before {
    content: "" !important;
}

/* Also ensure no ::after is injecting anything (defensive) */
.job-badge.salary-badge::after,
.salary-badge::after {
    content: "" !important;
}
/* ==============================
   CATEGORY TABS (Job Board)
============================== */

#adzunaCategoryTabs {
  display: flex;
  gap: 14px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 30px;
}

/* Base button */
#adzunaCategoryTabs .tab-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 16px;
  border: 1px solid #b7b9cc;
  background: #f3f4f8;
  color: #1c2252;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: none;
  transition: all 0.25s ease;
}

/* Icons */
#adzunaCategoryTabs .tab-button .icon {
  width: 26px;
  height: 26px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

#adzunaCategoryTabs .tab-button .icon img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  filter: grayscale(100%) brightness(0.6);
  transition: filter 0.25s ease;
}

/* Hover */
#adzunaCategoryTabs .tab-button:hover {
  background: #e9eaf3;
}

/* ACTIVE STATE */
#adzunaCategoryTabs .tab-button.active {
  color: #fff;
  border-color: transparent;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  transform: translateY(-3px);
}

#adzunaCategoryTabs .tab-button.active .icon img {
  filter: none;
}

/* ==============================
   CATEGORY COLOURS
============================== */

#adzunaCategoryTabs .tab-button[data-category="legal-jobs"].active {
  background: #e76f51;
}

#adzunaCategoryTabs .tab-button[data-category="accounting-finance-jobs"].active {
  background: #cc6f99;
}

#adzunaCategoryTabs .tab-button[data-category="it-jobs"].active {
  background: #6c63ff;
}

#adzunaCategoryTabs .tab-button[data-category="hr-jobs"].active {
  background: #4b4c87;
}

/* ==============================
   MOBILE TWEAKS
============================== */

@media (max-width: 768px) {
  #adzunaCategoryTabs .tab-button {
    padding: 12px 16px;
    font-size: 14px;
  }

  #adzunaCategoryTabs .tab-button .icon {
    width: 22px;
    height: 22px;
  }
}