@import url("https://fonts.googleapis.com/css2?family=Montserrat:wght@600;700;800&family=Inter:wght@400;500;600&display=swap");

.yp-candidate-listing-page {
  --yp-cl-primary: #fabc57;
  --yp-cl-primary-dark: #d89f3f;
  --yp-cl-bg: #f8f9fa;
  --yp-cl-surface: #ffffff;
  --yp-cl-text: #1c2136;
  --yp-cl-muted: #64748b;
  --yp-cl-border: #e2e8f0;
  background: var(--yp-cl-bg);
  color: var(--yp-cl-text);
  font-family: "Inter", system-ui, sans-serif;
}

.yp-cl-container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 16px;
}

@media (min-width: 768px) {
  .yp-cl-container {
    padding: 0 40px;
  }
}

.yp-cl-hero {
  padding: 54px 0 36px;
  background: linear-gradient(135deg, #ffffff 0%, #fff9e6 50%, #ffffff 100%);
}

.yp-cl-hero h1 {
  margin: 0 0 10px;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 48px;
  line-height: 1.15;
}

.yp-cl-hero p {
  margin: 0 0 20px;
  color: var(--yp-cl-muted);
  max-width: 780px;
  font-size: 18px;
}

.yp-cl-hero-search {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr auto;
  gap: 10px;
  background: #fff;
  border: 1px solid #d9dee7;
  border-radius: 14px;
  padding: 8px;
  box-shadow: 0 4px 20px rgba(15, 23, 42, 0.08);
}

.yp-cl-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 12px;
}

.yp-cl-field i {
  color: #99a4b8;
}

.yp-cl-field input,
.yp-cl-field select {
  width: 100%;
  border: none;
  background: transparent;
  height: 46px;
  outline: none;
}

.yp-cl-hero-search button {
  border: none;
  border-radius: 10px;
  padding: 0 20px;
  background: var(--yp-cl-primary);
  color: #4c3504;
  font-weight: 700;
}

.yp-cl-hero-search button:hover {
  background: var(--yp-cl-primary-dark);
  color: #fff;
}

.yp-cl-main {
  padding: 30px 0 56px;
}

.yp-cl-layout {
  display: grid;
  grid-template-columns: 300px minmax(0, 1fr);
  gap: 24px;
}

.yp-cl-filter-card {
  background: var(--yp-cl-surface);
  border: 1px solid var(--yp-cl-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
}

.yp-cl-filter-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.yp-cl-filter-head h4 {
  margin: 0;
  font-size: 18px;
  font-family: "Montserrat", system-ui, sans-serif;
}

.yp-cl-side-field {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d8dfe8;
  border-radius: 10px;
  padding: 0 12px;
  margin-bottom: 10px;
  background: #fff;
}

.yp-cl-side-field i {
  color: #99a4b8;
}

.yp-cl-side-field input,
.yp-cl-side-field select {
  width: 100%;
  height: 42px;
  border: none;
  outline: none;
  background: transparent;
}

.yp-cl-apply-btn {
  width: 100%;
  border: none;
  border-radius: 10px;
  height: 42px;
  background: var(--yp-cl-primary);
  color: #4c3504;
  font-weight: 700;
}

.yp-cl-results-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.yp-cl-results-head h2 {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 30px;
}

.yp-cl-results-head p {
  margin: 4px 0 0;
  color: var(--yp-cl-muted);
}

.yp-cl-loading,
.yp-cl-empty {
  text-align: center;
  padding: 36px 12px;
  color: var(--yp-cl-muted);
}

.yp-cl-pagination {
  margin-top: 22px;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

/* cards from yellowpin-candidate-listing.js */
.candidate-card {
  background: #fff;
  border: 1px solid var(--yp-cl-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.05);
  transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease;
  height: 100%;
}

.candidate-card:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
  border-color: rgba(250, 188, 87, 0.6);
}

.candidate-card-header {
  display: flex;
  gap: 12px;
  margin-bottom: 12px;
}

.candidate-avatar {
  width: 64px;
  height: 64px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
}

.candidate-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.candidate-badge {
  display: inline-block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  border-radius: 999px;
  padding: 4px 10px;
  margin-bottom: 6px;
  background: rgba(250, 188, 87, 0.18);
  color: #8f6010;
}

.candidate-card h4 {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 24px;
}

.candidate-card h4 a {
  color: var(--yp-cl-text);
  text-decoration: none;
}

.candidate-card h4 a:hover {
  color: #c78823;
}

.candidate-card p {
  margin: 4px 0 0;
  color: var(--yp-cl-muted);
  font-size: 14px;
}

.candidate-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.candidate-tags span {
  background: #f1f5f9;
  color: #4f5d77;
  border-radius: 999px;
  padding: 4px 10px;
  font-size: 12px;
  font-weight: 500;
}

.candidate-location {
  color: #5f6f8e !important;
}

.candidate-card .btn-outline-primary {
  border: 2px solid #1f2937;
  color: #1f2937;
  border-radius: 9px;
  font-weight: 700;
}

.candidate-card .btn-outline-primary:hover {
  border-color: #1f2937;
  background: #1f2937;
  color: #fff;
}

@media (max-width: 992px) {
  .yp-cl-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .yp-cl-hero h1 {
    font-size: 34px;
  }

  .yp-cl-hero-search {
    grid-template-columns: 1fr;
  }
}
