/* ============================================
   JOB LISTING — LIGHT THEME
   Font: Exo | Primary: #4338CA | Secondary: #CCFBF1
   BG: #F8FAFC | Card: #FFFFFF
   ============================================ */

@import url('https://fonts.googleapis.com/css2?family=Exo:ital,wght@0,300;0,400;0,500;0,600;0,700;0,800;1,300&display=swap');

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-page:       #F8FAFC;
  --bg-card:       #FFFFFF;
  --bg-sidebar:    #FFFFFF;
  --primary:       #4338CA;
  --primary-light: rgba(67, 56, 202, 0.08);
  --primary-mid:   rgba(67, 56, 202, 0.15);
  --secondary:     #CCFBF1;
  --secondary-dark:#0d9488;
  --border:        #e2e8f0;
  --border-hover:  #c7d2fe;
  --text-primary:  #1e1b4b;
  --text-secondary:#64748b;
  --text-muted:    #94a3b8;
  --tag-bg:        #ede9fe;
  --tag-text:      #4338CA;
  --success:       #0d9488;
  --success-bg:    #CCFBF1;
  --font:          'Exo', sans-serif;
  --radius-card:   16px;
  --radius-btn:    9px;
  --sidebar-w:     240px;
  --transition:    0.22s cubic-bezier(0.4, 0, 0.2, 1);
}

body {
  background: var(--bg-page);
  color: var(--text-primary);
  font-family: var(--font);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* ══════════════════════════════════════════════
   PAGE SHELL
══════════════════════════════════════════════ */
.page-shell {
  display: flex;
  align-items: flex-start;
  max-width: 1250px;
  margin: 0 auto;
  padding: 48px 24px 100px;
  gap: 24px;
}

/* ══════════════════════════════════════════════
   FILTER SIDEBAR
══════════════════════════════════════════════ */
.filter-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 24px 20px 28px;
  position: sticky;
  top: 24px;
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.05);
}

.sidebar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}

.sidebar-title {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.01em;
}

.sidebar-close {
  display: none;
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 16px;
  cursor: pointer;
  padding: 4px;
  transition: color var(--transition);
}
.sidebar-close:hover { color: var(--text-primary); }

.filter-group {
  margin-bottom: 20px;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
}
.filter-group:last-of-type { border-bottom: none; margin-bottom: 0; padding-bottom: 0; }

.filter-label {
  font-size: 10px;
  font-weight: 700;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.09em;
  margin-bottom: 10px;
}

.radio-row {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 7px 9px;
  border-radius: 9px;
  cursor: pointer;
  margin-bottom: 2px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 400;
  user-select: none;
  transition: background var(--transition), color var(--transition);
}
.radio-row:hover { background: var(--primary-light); color: var(--primary); }

.radio-row input[type="radio"] {
  -webkit-appearance: none;
  appearance: none;
  width: 15px;
  height: 15px;
  border: 2px solid var(--border-hover);
  border-radius: 50%;
  flex-shrink: 0;
  cursor: pointer;
  transition: border-color var(--transition), background var(--transition);
}
.radio-row input[type="radio"]:checked {
  border-color: var(--primary);
  background: var(--primary);
  box-shadow: inset 0 0 0 3px #fff;
}
.radio-row input[type="radio"]:checked + span {
  color: var(--primary);
  font-weight: 600;
}

.select-wrap { position: relative; }
.select-wrap select {
  width: 100%;
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: 9px;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  padding: 9px 30px 9px 11px;
  appearance: none;
  cursor: pointer;
  outline: none;
  transition: border-color var(--transition), color var(--transition);
}
.select-wrap select:hover,
.select-wrap select:focus { border-color: var(--primary); color: var(--text-primary); }
.select-arrow {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 13px;
  pointer-events: none;
}

.filter-actions { margin-top: 22px; display: flex; flex-direction: column; gap: 9px; }

.btn-apply {
  width: 100%;
  padding: 11px;
  background: var(--primary);
  color: #fff;
  font-family: var(--font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.02em;
  border: none;
  border-radius: var(--radius-btn);
  cursor: pointer;
  transition: opacity var(--transition), transform var(--transition);
}
.btn-apply:hover  { opacity: 0.88; }
.btn-apply:active { transform: scale(0.98); }

.btn-clear {
  width: 100%;
  padding: 11px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  cursor: pointer;
  text-align: center;
  text-decoration: none;
  display: block;
  transition: border-color var(--transition), color var(--transition);
}
.btn-clear:hover { border-color: var(--border-hover); color: var(--primary); }

/* ══════════════════════════════════════════════
   MAIN CONTENT
══════════════════════════════════════════════ */
.job-main { flex: 1; min-width: 0; }

.job-topbar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 22px;
}

.jobs-heading {
  font-family: var(--font);
  font-size: clamp(22px, 3.5vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  display: inline-block;
}
.jobs-heading::after {
  content: '';
  display: block;
  width: 38px;
  height: 3px;
  background: var(--primary);
  border-radius: 99px;
  margin-top: 7px;
}

.jobs-meta { font-size: 12px; color: var(--text-muted); font-weight: 400; margin-top: 3px; }

/* Active filter chips */
.active-filter-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  background: var(--secondary);
  color: var(--secondary-dark);
  font-size: 11px;
  font-weight: 600;
  border-radius: 20px;
  border: 1px solid rgba(13, 148, 136, 0.2);
}
.filter-chip button {
  background: none;
  border: none;
  color: var(--secondary-dark);
  cursor: pointer;
  padding: 0;
  font-size: 12px;
  line-height: 1;
  opacity: 0.65;
  transition: opacity var(--transition);
}
.filter-chip button:hover { opacity: 1; }

/* Mobile filter toggle */
.btn-filter-toggle {
  display: none;
  align-items: center;
  gap: 7px;
  padding: 9px 16px;
  background: var(--bg-card);
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: border-color var(--transition), color var(--transition);
}
.btn-filter-toggle:hover { border-color: var(--primary); color: var(--primary); }

/* ══════════════════════════════════════════════
   JOB CARDS
══════════════════════════════════════════════ */
.jobs-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }

@keyframes cardIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.job-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-card);
  padding: 22px 24px;
  display: flex;
  flex-direction: column;
  gap: 9px;
  position: relative;
  overflow: hidden;
  cursor: pointer;
  transition: border-color var(--transition), transform var(--transition), box-shadow var(--transition);
  animation: cardIn 0.4s ease both;
}
.job-card:nth-child(1){animation-delay:.05s} .job-card:nth-child(2){animation-delay:.10s}
.job-card:nth-child(3){animation-delay:.15s} .job-card:nth-child(4){animation-delay:.20s}
.job-card:nth-child(n+5){animation-delay:.24s}

.job-card::before {
  content: '';
  position: absolute;
  left: 0; top: 14px; bottom: 14px;
  width: 3px;
  background: var(--primary);
  border-radius: 0 3px 3px 0;
  opacity: 0;
  transition: opacity var(--transition);
}
.job-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-2px);
  box-shadow: 0 8px 28px rgba(67, 56, 202, 0.10), 0 1px 4px rgba(0,0,0,0.05);
}
.job-card:hover::before { opacity: 1; }

.job-card-header h3 {
  font-family: var(--font);
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
  letter-spacing: -0.02em;
  line-height: 1.3;
  transition: color var(--transition);
}
.job-card:hover h3 { color: var(--primary); }

.job-meta-row { display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.job-company  { font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.job-meta-sep { width: 3px; height: 3px; background: var(--text-muted); border-radius: 50%; flex-shrink: 0; }
.job-location { font-size: 11px; color: var(--text-muted); font-weight: 400; }
.job-location::before { content: '◎ '; font-size: 9px; color: var(--primary); }

.job-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 1px; }
.job-tag {
  display: inline-flex;
  align-items: center;
  padding: 3px 10px;
  background: var(--tag-bg);
  color: var(--tag-text);
  font-size: 10px;
  font-weight: 600;
  border-radius: 20px;
  letter-spacing: 0.02em;
}
.job-tag.full-time  { background: var(--success-bg); color: var(--success); }
.job-tag.salary-tag { background: #fef3c7; color: #92400e; }

.job-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 4px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.btn-view {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 16px;
  background: var(--primary-light);
  color: var(--primary);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 700;
  border: 1.5px solid var(--primary-mid);
  border-radius: 8px;
  text-decoration: none;
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  white-space: nowrap;
}
.arr { transition: transform var(--transition); display: inline-block; }
.job-card:hover .btn-view { background: var(--primary); color: #fff; border-color: var(--primary); }
.job-card:hover .arr { transform: translateX(3px); }

.job-date { font-size: 10px; color: var(--text-muted); font-weight: 400; }

.jobs-empty { text-align: center; padding: 80px 24px; }
.jobs-empty-icon { font-size: 32px; opacity: 0.25; display: block; margin-bottom: 14px; }
.jobs-empty p { font-size: 15px; color: var(--text-secondary); }

/* ══════════════════════════════════════════════
   MOBILE OVERLAY
══════════════════════════════════════════════ */
.sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(30, 27, 75, 0.35);
  z-index: 40;
  opacity: 0;
  transition: opacity var(--transition);
  backdrop-filter: blur(2px);
}
.sidebar-overlay.open { opacity: 1; }

/* DEFAULT (DESKTOP) */

.top-sec {
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    width: 100%;
    margin: 60px auto;
    position: relative;
    padding: 20px;
    text-align: center;
    gap: 20px;
}

/* WATERMARK */
.water-mark img {
    max-width: 120px;
    opacity: 0.75;
}

/* TITLE */
.main-title {
    max-width: 700px;
}

.main-title h1 {
    font-size: 42px;
    font-weight: 700;
    color: #111827;
    margin-bottom: 15px;
}

.main-title p {
    font-size: 18px;
    color: #6b7280;
    line-height: 1.6;
}

select {
    appearance: none;        /* Chrome */
    -webkit-appearance: none; /* Safari */
    -moz-appearance: none;   /* Firefox */
    background: none;
}

/* Wrapper for arrow */
.select-wrap {
    position: relative;
}

/* Custom arrow */
.select-wrap::after {
    content: "▼";
    font-size: 12px;
    color: #555;
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
}
/* 🔥 TABLET */

@media (max-width: 992px) {

    .top-sec {
        gap: 10px;
    }

    .water-mark img {
        max-width: 90px;
    }

    .main-title h1 {
        font-size: 32px;
    }

    .main-title p {
        font-size: 16px;
    }
}


/* 🔥 MOBILE */

@media (max-width: 576px) {

    .top-sec {
        flex-direction: column;
        margin: 40px auto;
        padding: 10px;
    }

    .water-mark img {
        max-width: 70px;
        opacity: 0.5; /* lighter on mobile */
    }

    .main-title {
        max-width: 100%;
    }

    .main-title h1 {
        font-size: 24px;
        line-height: 1.3;
    }

    .main-title p {
        font-size: 14px;
    }
}

/* ================= SEARCH BAR ================= */

.search-container{
    width:100%;
    display:flex;
    justify-content:center;
    margin-top:30px;
}

.search-form{
    width:100%;
    display:flex;
    justify-content:center;
}

/* SEARCH BAR */

.search-bar{
    width:90%;
    max-width:1100px;
    background:#fff;
    border-radius:60px;
    display:flex;
    align-items:center;
    padding:8px;
    border:1px solid #e5e7eb;
    box-shadow:0 6px 20px rgba(0,0,0,0.08);
    transition:0.3s;
}

.search-bar:hover{
    box-shadow:0 8px 30px rgba(0,0,0,0.12);
}

/* INPUTS */

.search-bar input,
.search-bar select{
    flex:1;
    border:none;
    outline:none;
    padding:14px 18px;
    font-size:15px;
    background:transparent;
}

.search-bar input::placeholder{
    color:#9ca3af;
}

/* DIVIDER */

.search-bar select{
    border-left:1px solid #e5e7eb;
    border-right:1px solid #e5e7eb;
}

/* BUTTON */

.search-bar button{
    background:#facc15;
    border:none;
    padding:12px 30px;
    border-radius:40px;
    font-weight:600;
    cursor:pointer;
    transition:0.3s;
}

.search-bar button:hover{
    background:#fbbf24;
}

/* JOB RESULTS */

.job-results{
    width:90%;
    max-width:1100px;
    margin:40px auto;
}

/* JOB CARD */

.job-card{
    display:block;
    padding:20px;
    margin-bottom:18px;
    background:#fff;
    border-radius:12px;
    text-decoration:none;
    color:#111;
    border:1px solid #f1f5f9;
    box-shadow:0 4px 12px rgba(0,0,0,0.05);
    transition:0.3s;
}

.job-card:hover{
    transform:translateY(-4px);
    box-shadow:0 8px 25px rgba(0,0,0,0.12);
}

/* JOB TITLE */

.job-card h3{
    font-size:20px;
    margin-bottom:6px;
    color:#2563eb;
}

/* COMPANY */

.job-card p{
    font-size:14px;
    color:#6b7280;
    margin:3px 0;
}

/* RESPONSIVE */

@media (max-width:768px){

.search-bar{
    flex-direction:column;
    border-radius:20px;
}

.search-bar input,
.search-bar select{
    width:100%;
    border:none;
    border-bottom:1px solid #eee;
}

.search-bar button{
    width:100%;
    margin-top:10px;
}

}



/* ══════════════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════════════ */
@media (min-width: 640px) and (max-width: 900px) {
  .jobs-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 820px) {
  .page-shell { padding: 28px 16px 72px; }
  .sidebar-overlay { display: block; pointer-events: none; }
  .sidebar-overlay.open { pointer-events: all; }
  .filter-sidebar {
    position: fixed;
    top: 0; left: -100%;
    width: min(var(--sidebar-w), 85vw);
    height: 100dvh;
    border-radius: 0 18px 18px 0;
    overflow-y: auto;
    z-index: 50;
    transition: left var(--transition);
    padding-top: 32px;
  }
  .filter-sidebar.open { left: 0; }
  .sidebar-close { display: block; }
  .btn-filter-toggle { display: flex; }
}

@media (max-width: 480px) {
  .job-card { padding: 16px 16px; border-radius: 13px; }
  .job-card-footer { flex-direction: column; align-items: flex-start; }
  .btn-view { width: 100%; justify-content: center; }
  .jobs-heading { font-size: 20px; }
}





/* ══════════════════════════════════════════════
   RIGHT PROFILE SIDEBAR
══════════════════════════════════════════════ */
.profile-sidebar {
  width: 260px;
  flex-shrink: 0;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 22px 18px 20px;
  position: sticky;
  top: 24px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.05);
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-self: flex-start;
}

/* Avatar */
.ps-avatar-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.ps-avatar-img {
  width: 60px; height: 60px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--border-hover);
}

.ps-avatar-placeholder {
  width: 60px; height: 60px;
  border-radius: 50%;
  background: var(--primary-light);
  border: 2px solid var(--border-hover);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  font-weight: 800;
  color: var(--primary);
  font-family: var(--font);
}

.ps-name {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-primary);
  margin-top: 4px;
}

.ps-role {
  font-size: 11.5px;
  color: var(--text-secondary);
}

/* Completion Ring */
.ps-completion-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.ps-ring-label {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  align-self: flex-start;
}

.ps-ring-row {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
}

.ps-ring {
  width: 72px;
  height: 72px;
  flex-shrink: 0;
}

.ps-strength-label {
  font-family: var(--font);
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.ps-strength-label.strong { color: #10b981; }
.ps-strength-label.medium { color: #f59e0b; }
.ps-strength-label.weak   { color: var(--primary); }

.ps-bar-track {
  width: 100%;
  height: 5px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.ps-bar-fill {
  height: 100%;
  border-radius: 99px;
  transition: width 1s ease;
}
.ps-bar-fill.green { background: #10b981; }
.ps-bar-fill.amber { background: #f59e0b; }
.ps-bar-fill.blue  { background: var(--primary); }

/* Checklist */
.ps-checklist {
  display: flex;
  flex-direction: column;
  gap: 5px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.ps-check-title {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-muted);
  margin-bottom: 6px;
}

.ps-check-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-muted);
  padding: 3px 0;
}

.ps-check-item.done {
  color: var(--text-secondary);
}

.ps-check-icon {
  font-size: 12px;
  width: 16px;
  text-align: center;
  color: var(--text-muted);
  flex-shrink: 0;
}

.ps-check-item.done .ps-check-icon {
  color: #10b981;
  font-weight: 700;
}

/* Quick info */
.ps-info {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.ps-info-row {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--text-secondary);
}

.ps-info-icon {
  font-size: 10px;
  color: var(--primary);
  width: 14px;
  flex-shrink: 0;
}

/* CTA buttons */
.ps-cta {
  display: block;
  width: 100%;
  padding: 10px;
  background: var(--primary);
  color: white;
  font-family: var(--font);
  font-size: 12.5px;
  font-weight: 700;
  border-radius: var(--radius-btn);
  text-align: center;
  text-decoration: none;
  letter-spacing: 0.02em;
  transition: opacity 0.2s;
}
.ps-cta:hover { opacity: 0.88; }

.ps-resume-btn {
  display: block;
  width: 100%;
  padding: 9px;
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font);
  font-size: 12px;
  font-weight: 600;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-btn);
  text-align: center;
  text-decoration: none;
  transition: border-color 0.2s, color 0.2s;
}
.ps-resume-btn:hover { border-color: var(--border-hover); color: var(--primary); }

/* Empty state */
.ps-empty {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}
.ps-empty-icon { font-size: 28px; color: var(--border-hover); }
.ps-empty p   { font-size: 12.5px; color: var(--text-muted); line-height: 1.5; }

/* ── RESPONSIVE: hide profile sidebar on small screens ── */
@media (max-width: 1050px) {
  .profile-sidebar { display: none; }
}