@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;
}
.jobs-hero-badge{
    display: inline-block;
    background: #fabc57;
    color: #181c1f;
    font-size: 14px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 8px;
    margin-bottom: 16px;
}
.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 {
 
  background: linear-gradient(135deg, #ffd451 0%, #ffeaa6 50%, #ffdf81 100%);
    border-bottom: 1px solid var(--yp-eg-border);
    padding: 52px 0 34px;
}
.yp-cl-hero .yp-cl-container{
    text-align:center;
}
.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 1fr auto;
  gap: 12px;
  background: #ffffff;
  border: 1px solid #d3c5af;
  border-radius: 16px;
  padding: 8px;
  max-width: 896px;
  box-shadow: 0 1px 3px rgba(28, 33, 54, 0.06);
  margin: 0 auto;
}

@media (max-width: 768px) {
  .yp-cl-hero-search {
    grid-template-columns: 1fr;
  }
}

.yp-cl-field {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 12px;
  margin: 0;
  background: transparent;
  border: none;
}

.yp-cl-field i {
  color: #fabc57;
  font-size: 18px;
}

.yp-cl-field input,
.yp-cl-field select {
  width: 100%;
  border: none;
  background: transparent;
  font-size: 16px;
  padding: 8px 0;
  outline: none;
  box-shadow: none;
  color: #181c1f;
}

.yp-cl-field input::placeholder {
  color: #94a3b8;
  opacity: 1;
}

.yp-cl-hero-search button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: #ffc45c;
  color: #000000;
  font-weight: 600;
  font-size: 14px;
  border: none;
  border-radius: 12px;
  padding: 16px 32px;
  cursor: pointer;
  transition: opacity 0.15s ease;
  white-space: nowrap;
}

.yp-cl-hero-search button:hover {
  opacity: 0.92;
  background: #ffc45c;
  color: #000000;
}

.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:#ffc864;
}

.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: 32px;
  display: flex;
  justify-content: center;
  align-items: center;
}

.yp-cl-pagination > div {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 8px;
}

.yp-cl-page-btn {
  min-width: 40px;
  height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  border: 1px solid #e2e8f0;
  background: #ffffff;
  color: #1c2136;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}

.yp-cl-page-btn:hover:not(.is-disabled):not(.is-active) {
  background: #eceef2;
  color: #1c2136;
  text-decoration: none;
}

.yp-cl-page-btn.is-active {
  background: #fabc57;
  color: #1c2136;
  border-color: #fabc57;
}

.yp-cl-page-btn.is-disabled {
  opacity: 0.45;
  cursor: not-allowed;
  pointer-events: none;
}

.yp-cl-page-ellipsis {
  padding: 0 4px;
  color: #64748b;
}

/* 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: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  display: flex;
  flex-direction: column;
  gap: 16px;
  height: 100%;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.candidate-card:hover {
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.12);
  transform: translateY(-4px);
  border-color: #fabc57;
  text-decoration: none;
  color: inherit;
}

.candidate-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin: 0;
}

.candidate-avatar {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  flex-shrink: 0;
  background: #ffffff;
  border: 1.5px solid #eef0f5;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.04);
  display: flex;
  align-items: center;
  justify-content: center;
}

.candidate-avatar img {
  max-width: 100%;
  max-height: 100%;
  object-fit: cover;
  border-radius: 8px;
}

.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: 0;
  background: rgba(250, 188, 87, 0.18);
  color: #8f6010;
}

.candidate-card h3 {
  margin: 0;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 20px;
  font-weight: 600;
  color: var(--yp-cl-text);
  line-height: 1.3;
}

.candidate-card h3 a {
  color: inherit;
  text-decoration: none;
}

.candidate-card:hover h3 {
  color: #c78823;
}

.candidate-designation {
  font-size: 14px;
  font-weight: 500;
  color: #000;
  margin: 0;
}

.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;
}

.candidate-card,
.candidate-list-item {
  text-align: left !important;
}

@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;
  }
}

/* === YP_COMMON_FILTERS_START === */
/* ==========================================================================
   YellowPin Custom UI Select Component & Unified Filters
   ========================================================================== */
.yp-ui-select {
  position: relative;
  display: inline-block;
  user-select: none;
  font-family: inherit;
  vertical-align: middle;
}

.yp-ui-select-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 165px;
  height: 42px;
  padding: 0 16px;
  background: #ffffff;
  border: 1px solid #d8dfe8;
  border-radius: 12px;
  font-size: 14px;
  font-weight: 500;
  color: #1e293b;
  cursor: pointer;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  transition: all 0.2s ease;
  white-space: nowrap;
  outline: none;
}

.yp-ui-select-trigger:hover {
  border-color: #fabc57;
  background: #fffdfa;
}

.yp-ui-select.is-open .yp-ui-select-trigger {
  border-color: #fabc57;
  box-shadow: 0 0 0 3px rgba(250, 188, 87, 0.22);
  background: #ffffff;
}

.yp-ui-select-label {
  flex: 1;
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.yp-ui-select-arrow {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.yp-ui-select.is-open .yp-ui-select-arrow {
  transform: rotate(180deg);
  color: #fabc57;
}

.yp-ui-select-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  min-width: 100%;
  max-height: 280px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid #e8ecf1;
  border-radius: 12px;
  box-shadow: 0 12px 28px -4px rgba(15, 23, 42, 0.12), 0 4px 10px -2px rgba(15, 23, 42, 0.05);
  padding: 6px;
  z-index: 1060;
  display: none;
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 0.18s ease, transform 0.18s ease;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.yp-ui-select.align-right .yp-ui-select-menu {
  left: auto;
  right: 0;
}

.yp-ui-select.is-open .yp-ui-select-menu {
  display: block;
  opacity: 1;
  transform: translateY(0);
}

.yp-ui-select-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 13.5px;
  color: #334155;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}

.yp-ui-select-option:hover {
  background: #fff8eb;
  color: #8f6010;
}

.yp-ui-select-option.is-selected {
  background: #fff3de;
  color: #8f6010;
  font-weight: 600;
}

.yp-ui-select-check {
  font-size: 11px;
  color: #fabc57;
  opacity: 0;
  transition: opacity 0.15s ease;
}

.yp-ui-select-option.is-selected .yp-ui-select-check {
  opacity: 1;
}

/* Candidate Listing integration */
.yp-cl-side-field .yp-ui-select {
  width: 100%;
}
.yp-cl-side-field .yp-ui-select-trigger {
  width: 100%;
  border: none;
  box-shadow: none;
  background: transparent;
  padding: 0;
  height: 42px;
}
.yp-cl-side-field .yp-ui-select-trigger:hover {
  background: transparent;
}

/* ==========================================================================
   YellowPin Refined & Unified Filter Design System
   ========================================================================== */
.yp-jl-filters-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 20px;
}

.yp-jl-filters-head h3 {
  font-size: 20px;
  font-weight: 700;
  color: #1e293b;
  margin: 0;
  letter-spacing: -0.02em;
}

.yp-jl-filters-head p {
  font-size: 13px;
  color: #64748b;
  margin: 2px 0 0;
}

.yp-jl-clear-filters {
  font-size: 13px;
  font-weight: 600;
  color: #d97706;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  transition: color 0.15s ease;
}

.yp-jl-clear-filters:hover {
  color: #b45309;
  text-decoration: underline;
}

.yp-jl-filter-panels {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.yp-jl-filter-panel {
  background: #ffffff;
  border-radius: 12px;
  border: 1px solid #e8ecf1;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.yp-jl-filter-panel:hover {
  border-color: #fabc57;
  box-shadow: 0 4px 14px rgba(250, 188, 87, 0.1);
}

.yp-jl-filter-panel.is-active {
  background: #fffdfa;
  border-color: rgba(250, 188, 87, 0.5);
  box-shadow: 0 2px 8px rgba(250, 188, 87, 0.12);
}

.yp-jl-filter-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  color: inherit;
  transition: background 0.15s ease;
}

.yp-jl-filter-toggle:hover {
  background: #fafbfc;
}

.yp-jl-filter-panel.is-active .yp-jl-filter-toggle:hover {
  background: #fff9ee;
}

.yp-jl-filter-toggle-left {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: #1e293b;
  letter-spacing: -0.01em;
}

.yp-jl-filter-panel.is-active .yp-jl-filter-toggle-left {
  color: #8f6010;
  font-weight: 700;
}

.yp-jl-filter-toggle-left i {
  color: #fabc57;
  width: 18px;
  text-align: center;
  font-size: 15px;
}

.yp-jl-filter-chevron {
  font-size: 11px;
  color: #94a3b8;
  transition: transform 0.22s cubic-bezier(0.4, 0, 0.2, 1), color 0.2s ease;
}

.yp-jl-filter-panel.is-open .yp-jl-filter-chevron {
  transform: rotate(180deg);
  color: #fabc57;
}

.yp-jl-filter-body {
  display: none;
  padding: 4px 14px 14px 14px;
}

.yp-jl-filter-panel.is-open .yp-jl-filter-body {
  display: block;
}

.yp-jl-filter-search {
  width: 100%;
  height: 36px;
  padding: 0 12px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  font-size: 13px;
  color: #1e293b;
  margin-bottom: 10px;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  background: #ffffff;
}

.yp-jl-filter-search:focus {
  border-color: #fabc57;
  box-shadow: 0 0 0 2px rgba(250, 188, 87, 0.2);
}

.yp-jl-filter-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 230px;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-width: thin;
  scrollbar-color: #cbd5e1 transparent;
}

.yp-jl-filter-list::-webkit-scrollbar {
  width: 5px;
}

.yp-jl-filter-list::-webkit-scrollbar-track {
  background: #f8fafc;
  border-radius: 4px;
}

.yp-jl-filter-list::-webkit-scrollbar-thumb {
  background: #fabc57;
  border-radius: 4px;
}

.yp-jl-filter-list li {
  margin-bottom: 3px;
}

.yp-jl-filter-list li:last-child {
  margin-bottom: 0;
}

.yp-jl-filter-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 8px;
  border-radius: 7px;
  font-size: 13.5px;
  color: #334155;
  cursor: pointer;
  margin: 0;
  font-weight: 500;
  transition: background 0.15s ease, color 0.15s ease;
}

.yp-jl-filter-list label:hover {
  background: #f8fafc;
  color: #0f172a;
}

.yp-jl-filter-list input[type="checkbox"] {
  width: 16px;
  height: 16px;
  accent-color: #fabc57;
  border-radius: 4px;
  cursor: pointer;
  margin: 0;
  flex-shrink: 0;
}

/* Polished Count Pill Badge */
.yp-jl-filter-list span.count,
.yp-jl-filter-list .count {
  margin-left: auto;
  min-width: 22px;
  text-align: center;
  background: #f1f5f9;
  color: #475569;
  border-radius: 9999px;
  padding: 2px 7.5px;
  font-size: 11px;
  font-weight: 600;
  line-height: 1.35;
  transition: all 0.15s ease;
}

.yp-jl-filter-list label:hover span.count,
.yp-jl-filter-list label:hover .count {
  background: #e2e8f0;
  color: #1e293b;
}

.yp-jl-filter-list input[type="checkbox"]:checked ~ span.count,
.yp-jl-filter-list input[type="checkbox"]:checked ~ .count {
  background: #fff3de;
  color: #8f6010;
}

.yp-jl-filter-list label:has(input[type="checkbox"]:checked) {
  color: #0f172a;
  font-weight: 600;
}

.yp-jl-filter-no-results {
  font-size: 13px;
  color: #94a3b8;
  padding: 10px 8px;
  text-align: center;
  font-style: italic;
}

/* === YP_COMMON_FILTERS_END === */

select[data-yp-ui-ready="1"] { display: none !important; }


/* ==========================================================================
   Sticky Filter Sidebar & Smooth Scroll Boundary
   ========================================================================== */
@media (min-width: 992px) {
  /* Parent containers: allow sticky items to slide and not stretch */
  .yp-jl-board-grid {
    display: grid !important;
    grid-template-columns: minmax(0, 280px) minmax(0, 1fr) !important;
    align-items: start !important;
  }

  .yp-cl-layout {
    display: grid !important;
    grid-template-columns: 300px minmax(0, 1fr) !important;
    align-items: start !important;
  }

  .yp-eg-layout {
    display: grid !important;
    grid-template-columns: 280px minmax(0, 1fr) !important;
    align-items: start !important;
  }

  .yp-events-page .row,
  .yp-courses-page .row,
  .yp-eg-page .row {
    align-items: flex-start !important;
  }

  /* Sticky Sidebars */
  .yp-jl-sidebar,
  .yp-events-sidebar,
  .yp-courses-sidebar,
  .yp-cl-sidebar,
  .yp-eg-sidebar {
    position: -webkit-sticky !important;
    position: sticky !important;
    align-self: flex-start !important;
    z-index: 20;
    transition: top 0.12s ease-out;
    will-change: top;
  }
}
