*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --red: #B50000;
  --red-hover: #d00000;
  --red-light: #fdf0f0;
  --red-border: #fcd9d9;
  --text-dark: #222;
  --text-mid: #555;
  --text-light: #999;
  --white: #fff;
  --radius: 4px;
}


/* ===== SEARCH ===== */
.search-section {
  background: var(--white);
  padding: 32px 0 28px;
  border-bottom: 1px solid #eee;
}
.search-box {
  display: flex;
  justify-content: center;
  gap: 0;
}
.search-box input {
  width: 480px;
  height: 48px;
  border: 1.5px solid #ddd;
  border-right: none;
  padding: 0 20px;
  font-size: 15px;
  outline: none;
  border-radius: var(--radius) 0 0 var(--radius);
  color: var(--text-dark);
  transition: border-color 0.25s;
  background: #fafafa;
}
.search-box input:focus { border-color: var(--red); background: var(--white); }
.search-box input::placeholder { color: #bbb; }
.search-btn {
  width: 130px;
  height: 48px;
  background: var(--red);
  color: var(--white);
  border: none;
  font-size: 15px;
  cursor: pointer;
  border-radius: 0 var(--radius) var(--radius) 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: background 0.2s;
  letter-spacing: 1px;
}
.search-btn:hover { background: var(--red-hover); }
.search-btn svg { width: 18px; height: 18px; flex-shrink: 0; }

/* ===== JOB GRID ===== */
.jobs-grid-section {
  padding: 32px 0 60px;
}
.jobs-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ===== JOB CARD ===== */
.job-card {
  background: var(--white);
  border: 1.5px solid var(--red-border);
  border-radius: var(--radius);
  padding: 24px 28px 20px;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  cursor: pointer;
  transition: all 0.25s ease;
  text-decoration: none;
  color: inherit;
  position: relative;
  overflow: hidden;
}
.job-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 3px; height: 0;
  background: var(--red);
  transition: height 0.3s ease;
}
.job-card:hover {
  border-color: var(--red);
  box-shadow: 0 4px 20px rgba(181,0,0,0.08);
  transform: translateY(-2px);
}
.job-card:hover::before { height: 100%; }
.job-card.is-active {
  border-color: var(--red);
  background: var(--red-light);
}
.job-card.is-active::before { height: 100%; }

.job-card-left { flex: 1; min-width: 0; }

.job-card-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--text-dark);
  margin-bottom: 10px;
  line-height: 1.4;
  transition: color 0.2s;
}
.job-card:hover .job-card-title,
.job-card.is-active .job-card-title { color: var(--red); }

.job-card-date {
  font-size: 12px;
  color: var(--text-light);
  margin-bottom: 10px;
}

.job-card-tags {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.job-tag {
  display: inline-block;
  padding: 2px 10px;
  border-radius: 2px;
  font-size: 12px;
  background: #f0f0f0;
  color: var(--text-mid);
}
.job-tag.location { background: #e9dbff; color: #383636; }
.job-tag.type { background: #fde5e5; color: #383636; }

.job-card-desc {
  font-size: 13px;
  color: var(--text-light);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.job-card-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--red-light);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-left: 16px;
  margin-top: 2px;
  transition: background 0.2s, transform 0.2s;
}
.job-card-arrow svg {
  width: 16px; height: 16px;
  color: var(--red);
}
.job-card:hover .job-card-arrow,
.job-card.is-active .job-card-arrow {
  background: var(--red);
  transform: translateX(2px);
}
.job-card:hover .job-card-arrow svg,
.job-card.is-active .job-card-arrow svg { color: var(--white); }

/* ===== EMPTY ===== */
.empty-wrap {
  text-align: center;
  padding: 100px 0;
  color: var(--text-light);
  font-size: 15px;
}

/* ===== PAGINATION ===== */
.pagination-wrap {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 20px 0 10px;
}
.page-btn {
  width: 36px; height: 36px;
  border: 1px solid #ddd;
  border-radius: var(--radius);
  background: var(--white);
  cursor: pointer;
  font-size: 14px;
  color: var(--text-mid);
  display: flex; align-items: center; justify-content: center;
  transition: all 0.2s;
}
.page-btn:hover { border-color: var(--red); color: var(--red); }
.page-btn.active { background: var(--red); border-color: var(--red); color: var(--white); }

@media (max-width: 768px) {
  .jobs-grid { grid-template-columns: 1fr; }
  .search-box input { width: 68%; }
  .search-btn { width: 32%; font-size: 13px; }
}