

.careers-wrap {
  display: grid;
  grid-template-columns: 300px 1fr;
  gap: 30px;
  padding: 32px 20px 60px;
}

/* ── SIDEBAR ── */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.sidebar-card-job{
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(21,101,192,0.08);
}

.sidebar-head {
  background: var(--primary-dark);
  padding: 18px 22px;
}
.sidebar-head h4 {
  color: #fff;
  font-size: 1rem;
  font-weight: 700;
  margin: 0;
  font-family: 'Playfair Display', serif;
}

.sidebar-body { padding: 20px; display: flex; flex-direction: column; gap: 14px; }

.search-field {
  position: relative;
}
.search-field i {
  position: absolute;
  left: 13px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 15px;
}
.search-field input {
  width: 100%;
  border: 1.5px solid #d6e8f8;
  border-radius: 10px;
  padding: 11px 14px 11px 38px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg-light);
  outline: none;
  transition: all 0.3s;
}
.search-field input:focus {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(21,101,192,0.1);
  background: #fff;
}
.search-field input::placeholder { color: var(--text-muted); }

.sort-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: 0.5px;
  text-transform: uppercase;
  margin-bottom: 6px;
  display: block;
}
.sort-select {
  width: 100%;
  border: 1.5px solid #d6e8f8;
  border-radius: 10px;
  padding: 11px 16px;
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--bg-light);
  outline: none;
  cursor: pointer;
  transition: all 0.3s;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23607d8b' d='M1 1l5 5 5-5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
}
.sort-select:focus { border-color: var(--primary); }

.divider-label {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--text-muted);
  cursor: pointer;
  padding: 14px 22px;
  border-bottom: 1px solid #eef4fb;
  transition: background 0.2s;
}
.divider-label:hover { background: var(--bg-section); }
.divider-label i { margin-left: auto; font-size: 13px; }

.filter-group { padding: 12px 22px 16px; border-bottom: 1px solid #eef4fb; display: none; }
.filter-group.open { display: block; }
.filter-group label {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13.5px;
  color: var(--text);
  cursor: pointer;
  padding: 5px 0;
}
.filter-group input[type="checkbox"] {
  accent-color: var(--primary);
  width: 16px;
  height: 16px;
  cursor: pointer;
}
.filter-count {
  margin-left: auto;
  font-size: 11px;
  background: var(--bg-section);
  color: var(--text-muted);
  padding: 2px 8px;
  border-radius: 20px;
  font-weight: 600;
}

.btn-clear-filter {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  width: 100%;
  padding: 12px;
  background: transparent;
  border: 1.5px solid #e8d6d6;
  border-radius: 10px;
  color: #e53e3e;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
}
.btn-clear-filter:hover { background: #fff0f0; border-color: #e53e3e; }

/* AD card */
.ad-card {
  background: var(--white);
  border-radius: var(--card-radius);
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(21,101,192,0.08);
  padding: 28px 22px;
  border: 1.5px solid #e0ecf8;
  text-align: center;
  position: relative;
}
.ad-card-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
  font-size: 24px;
  color: var(--primary);
}
.ad-card h5 {
  font-size: 1rem;
  color: var(--text);
  margin-bottom: 8px;
}
.ad-card p { font-size: 13px; color: var(--text-muted); line-height: 1.6; margin-bottom: 16px; }
.btn-ad {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--primary);
  color: #fff;
  padding: 10px 22px;
  border-radius: 50px;
  font-size: 13px;
  font-weight: 700;
  border: 2px solid var(--primary);
  cursor: pointer;
  text-decoration: none;
  transition: all 0.3s;
  font-family: 'DM Sans', sans-serif;
}
.btn-ad:hover { background: transparent; color: var(--primary); }

/* ── MAIN CONTENT ── */
.main-content { display: flex; flex-direction: column; gap: 0; }

.results-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
  flex-wrap: wrap;
  gap: 10px;
}
.results-count {
  font-size: 14px;
  color: var(--text-muted);
}
.results-count strong { color: var(--text); font-weight: 700; }

.active-filters {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.filter-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg-section);
  border: 1px solid #d0e4f5;
  color: var(--primary);
  font-size: 12px;
  font-weight: 600;
  padding: 4px 12px;
  border-radius: 50px;
  cursor: pointer;
  transition: all 0.2s;
}
.filter-pill:hover { background: #fde8e8; border-color: #f99; color: #e53e3e; }
.filter-pill i { font-size: 10px; }

/* ── JOB CARDS ── */
.jobs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.job-card {
  background: var(--white);
  border-radius: var(--card-radius);
  padding: 26px 24px 22px;
  border: 1.5px solid #e0ecf8;
  box-shadow: 0 4px 20px rgba(21,101,192,0.06);
  display: flex;
  flex-direction: column;
  position: relative;
  overflow: hidden;
  transition: transform 0.35s cubic-bezier(0.34,1.56,0.64,1), box-shadow 0.35s ease, border-color 0.3s;
  cursor: pointer;
}
.job-card::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary), var(--accent));
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.4s;
}
.job-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 50px rgba(21,101,192,0.14);
  border-color: var(--primary);
}
.job-card:hover::after { transform: scaleX(1); }

.job-card-employer {
  font-size: 12px;
  color: var(--text-muted);
  font-weight: 500;
  margin-bottom: 10px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.job-card-employer i { color: var(--accent); font-size: 13px; }

.job-card-title {
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 10px;
  line-height: 1.35;
  transition: color 0.3s;
}
.job-card:hover .job-card-title { color: var(--primary); }

.job-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 12px;
}
.job-card-location i { color: var(--primary); font-size: 13px; }

.job-card-salary {
  font-size: 14px;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 16px;
}

.job-card-tags {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}
.job-tag {
  font-size: 11px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 50px;
  background: var(--bg-section);
  color: var(--primary);
  border: 1px solid #d0e4f5;
  letter-spacing: 0.3px;
}
.job-tag.urgent { background: #fff3e0; color: #f57c00; border-color: #ffe0b2; }
.job-tag.featured { background: #e8f5e9; color: #388e3c; border-color: #c8e6c9; }

.job-card-footer {
  margin-top: auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid #eef4fb;
  padding-top: 14px;
}
.job-card-date {
  font-size: 11px;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 5px;
}
.job-card-date i { font-size: 12px; }

.job-arrow {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-section);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  border: 1.5px solid #d0e4f5;
  font-size: 16px;
  transition: all 0.3s cubic-bezier(0.34,1.56,0.64,1);
}
.job-card:hover .job-arrow {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  transform: scale(1.15) translateX(3px);
  box-shadow: 0 4px 16px rgba(21,101,192,0.3);
}

.featured-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  background: var(--primary);
  color: #fff;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
  padding: 3px 10px;
  border-radius: 50px;
}

/* Empty state */
.empty-state {
  grid-column: 1/-1;
  text-align: center;
  padding: 60px 20px;
}
.empty-state i { font-size: 48px; color: #d0e4f5; margin-bottom: 16px; display: block; }
.empty-state h4 { font-size: 1.1rem; color: var(--text); margin-bottom: 8px; }
.empty-state p { font-size: 14px; color: var(--text-muted); }

/* Pagination */
.pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin-top: 36px;
}
.page-btn {
  width: 40px;
  height: 40px;
  border-radius: 10px;
  border: 1.5px solid #d0e4f5;
  background: var(--white);
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.3s;
  display: flex;
  align-items: center;
  justify-content: center;
}
.page-btn:hover, .page-btn.active {
  background: var(--primary);
  border-color: var(--primary);
  color: #fff;
}

/* Responsive */
@media (max-width: 900px) {
  .careers-wrap { grid-template-columns: 1fr; }
  .sidebar { order: 2; }
  .main-content { order: 1; }
  .jobs-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 580px) {
  .jobs-grid { grid-template-columns: 1fr; }
  .careers-wrap { padding: 16px 12px 40px; gap: 16px; }
}
