/* ===================================================
   portal.css — BombayTech Public Portal + Candidate UI
   =================================================== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --brand:      #1a56db;
  --brand-dark: #1047c0;
  --bg:         #f8faff;
  --card:       #ffffff;
  --border:     #e8ecf4;
  --text:       #111827;
  --muted:      #6b7280;
  --green:      #059669;
  --amber:      #d97706;
  --purple:     #7c3aed;
  --radius:     14px;
  --shadow:     0 2px 16px rgba(30,60,120,.08);
  --shadow-lg:  0 8px 40px rgba(30,60,120,.14);
}

body { font-family: 'Plus Jakarta Sans',sans-serif; background:var(--bg); color:var(--text); line-height:1.6; }

/* ─── TOP NAV ───────────────────────────────────── */
.pnav {
  position: sticky; top: 0; z-index: 100;
  background: rgba(255,255,255,.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border);
}
.pnav-inner { max-width: 1280px; margin: 0 auto; padding: 0 24px; height: 64px; display: flex; align-items: center; justify-content: space-between; }
.pnav-brand { display:flex; align-items:center; gap:10px; text-decoration:none; }
.pnav-logo { width:36px; height:36px; border-radius:10px; background:var(--brand); color:#fff; font-family:'Sora',sans-serif; font-weight:800; font-size:13px; display:flex; align-items:center; justify-content:center; }
.pnav-name { font-family:'Sora',sans-serif; font-weight:700; font-size:17px; color:var(--text); }
.pnav-tagline { font-size:10px; color:var(--muted); margin-top:-2px; }
.pnav-links { display:flex; align-items:center; gap:4px; }
.pnav-link { padding:8px 14px; border-radius:8px; text-decoration:none; color:var(--muted); font-size:14px; font-weight:500; transition:all .2s; }
.pnav-link:hover, .pnav-link.active { color:var(--brand); background:#eff4ff; }
.pnav-btn { padding:8px 18px; border-radius:10px; font-size:14px; font-weight:600; text-decoration:none; transition:all .2s; cursor:pointer; }
.pnav-btn-outline { border:1.5px solid var(--border); color:var(--text); background:transparent; margin-left:4px; }
.pnav-btn-outline:hover { border-color:var(--brand); color:var(--brand); }
.pnav-btn-primary { background:var(--brand); color:#fff; margin-left:4px; box-shadow:0 2px 8px rgba(26,86,219,.3); }
.pnav-btn-primary:hover { background:var(--brand-dark); transform:translateY(-1px); }
.pnav-ham { display:none; flex-direction:column; gap:5px; background:none; border:none; cursor:pointer; padding:4px; }
.pnav-ham span { display:block; width:22px; height:2px; background:var(--text); border-radius:2px; transition:.2s; }
.mobile-menu { display:none; flex-direction:column; background:#fff; border-top:1px solid var(--border); padding:12px 24px 16px; }
.mobile-menu.open { display:flex; }
.mobile-link { padding:10px 0; border-bottom:1px solid var(--border); color:var(--text); text-decoration:none; font-size:15px; }
.mobile-cta { color:var(--brand); font-weight:700; }

/* ─── HERO ─────────────────────────────────────── */
.hero { background:linear-gradient(135deg,#0f172a 0%,#1e3a8a 60%,#312e81 100%); color:#fff; padding:80px 24px 64px; }
.hero-inner { max-width:760px; margin:0 auto; text-align:center; }
.hero-pill { display:inline-block; background:rgba(255,255,255,.12); border:1px solid rgba(255,255,255,.2); border-radius:100px; padding:6px 18px; font-size:13px; font-weight:600; margin-bottom:24px; }
.hero-title { font-family:'Sora',sans-serif; font-size:clamp(32px,5vw,54px); font-weight:800; line-height:1.15; margin-bottom:16px; }
.hero-accent { background:linear-gradient(90deg,#60a5fa,#a78bfa); -webkit-background-clip:text; background-clip:text; color:transparent; -webkit-text-fill-color:transparent; }
.hero-desc { font-size:16px; color:rgba(255,255,255,.75); max-width:560px; margin:0 auto 36px; }

.hero-search-bar { display:flex; align-items:center; background:#fff; border-radius:14px; overflow:hidden; box-shadow:0 16px 48px rgba(0,0,0,.25); max-width:640px; margin:0 auto 36px; }
.hsb-field { display:flex; align-items:center; gap:10px; padding:0 20px; flex:1; }
.hsb-input { border:none; outline:none; font-size:14px; font-family:inherit; background:transparent; padding:16px 0; color:var(--text); width:100%; }
.hsb-input::placeholder { color:#9ca3af; }
.hsb-sep { width:1px; height:36px; background:var(--border); flex-shrink:0; }
.hsb-btn { background:var(--brand); color:#fff; border:none; padding:14px 28px; margin:6px 6px 6px 0; border-radius:10px; font-size:14px; font-weight:700; cursor:pointer; transition:.2s; white-space:nowrap; font-family:inherit; }
.hsb-btn:hover { background:var(--brand-dark); }

.hero-stats { display:flex; align-items:center; justify-content:center; gap:32px; flex-wrap:wrap; }
.hstat { text-align:center; }
.hstat-num { font-family:'Sora',sans-serif; font-size:28px; font-weight:800; display:block; }
.hstat-lbl { font-size:12px; color:rgba(255,255,255,.6); }
.hstat-div { width:1px; height:40px; background:rgba(255,255,255,.2); }

/* ─── QUICK FILTER STRIP ────────────────────────── */
.qf-strip { background:#fff; border-bottom:1px solid var(--border); padding:12px 0; }
.qf-inner { max-width:1280px; margin:0 auto; padding:0 24px; display:flex; flex-wrap:wrap; gap:8px; }
.qf-tag { padding:7px 16px; border-radius:100px; font-size:13px; font-weight:600; border:1.5px solid var(--border); color:var(--muted); text-decoration:none; transition:.15s; }
.qf-tag:hover { border-color:var(--brand); color:var(--brand); }
.qf-tag.active { background:var(--brand); color:#fff; border-color:var(--brand); }

/* ─── JOBS SECTION ──────────────────────────────── */
.jobs-section { max-width:1280px; margin:0 auto; padding:32px 24px; display:grid; grid-template-columns:1fr 300px; gap:32px; align-items:start; }
.js-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:20px; }
.js-title { font-family:'Sora',sans-serif; font-size:18px; font-weight:700; }
.sort-select { border:1px solid var(--border); border-radius:8px; padding:6px 12px; font-size:13px; font-family:inherit; background:#fff; cursor:pointer; }
.sort-label { font-size:13px; color:var(--muted); margin-right:6px; }

/* ─── JOB CARD ──────────────────────────────────── */
.jcard { background:var(--card); border:1.5px solid var(--border); border-radius:var(--radius); padding:20px; margin-bottom:14px; cursor:pointer; transition:all .2s; position:relative; overflow:hidden; }
.jcard:hover { border-color:var(--brand); box-shadow:var(--shadow); transform:translateY(-2px); }
.jcard-body { display:flex; gap:14px; align-items:flex-start; }
.jcard-logo { width:46px; height:46px; border-radius:10px; color:#fff; font-family:'Sora',sans-serif; font-weight:800; font-size:18px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.jcard-info { flex:1; min-width:0; }
.jcard-title { font-size:16px; font-weight:700; color:var(--text); margin-bottom:2px; }
.jcard-company { font-size:13px; color:var(--muted); margin-bottom:6px; font-weight:500; }
.jcard-code { font-size:11px; color:#9ca3af; margin-left:6px; }
.jcard-meta { display:flex; flex-wrap:wrap; gap:12px; font-size:12px; color:var(--muted); margin-bottom:8px; align-items:center; }
.jcard-salary { color:var(--green); font-weight:700; font-size:13px; }
.jcard-skills { display:flex; flex-wrap:wrap; gap:6px; }
.skill-chip { background:#eff4ff; color:var(--brand); border-radius:100px; padding:3px 10px; font-size:11px; font-weight:600; }
.jcard-right { text-align:right; flex-shrink:0; display:flex; flex-direction:column; align-items:flex-end; gap:8px; }
.jcard-apps { font-size:11px; color:var(--muted); }
.jcard-btn { display:inline-block; padding:8px 16px; border-radius:8px; font-size:13px; font-weight:600; text-decoration:none; border:1.5px solid var(--border); color:var(--text); transition:.15s; }
.jcard-btn:hover { border-color:var(--brand); color:var(--brand); }
.jcard-btn-apply { background:var(--brand); color:#fff; border-color:var(--brand); }
.jcard-btn-apply:hover { background:var(--brand-dark); }
.jcard-btn-done { background:#f0fdf4; color:var(--green); border-color:#bbf7d0; display:inline-block; padding:8px 14px; border-radius:8px; font-size:12px; font-weight:600; }
.jcard-featured-badge { position:absolute; top:12px; right:12px; background:linear-gradient(135deg,#fbbf24,#f59e0b); color:#fff; padding:3px 10px; border-radius:100px; font-size:11px; font-weight:700; }
.jcard-applied-badge { position:absolute; top:12px; right:12px; background:#d1fae5; color:var(--green); padding:3px 10px; border-radius:100px; font-size:11px; font-weight:700; }
.jcard.jcard-applied { border-color:#bbf7d0; }

/* work type badge */
.badge-wt { padding:3px 10px; border-radius:100px; font-size:11px; font-weight:700; }
.badge-wt-remote  { background:#d1fae5; color:var(--green); }
.badge-wt-hybrid  { background:#fef3c7; color:var(--amber); }
.badge-wt-onsite  { background:#eff4ff; color:var(--brand); }

/* ─── SIDEBAR ───────────────────────────────────── */
.jobs-sidebar { position:sticky; top:80px; }
.sidebar-cta { background:linear-gradient(135deg,#1e3a8a,#312e81); color:#fff; border-radius:var(--radius); padding:24px; text-align:center; margin-bottom:20px; }
.sidebar-cta-icon { font-size:32px; margin-bottom:10px; }
.sidebar-cta h3 { font-family:'Sora',sans-serif; font-size:18px; font-weight:700; margin-bottom:8px; }
.sidebar-cta p { font-size:13px; color:rgba(255,255,255,.8); margin-bottom:18px; line-height:1.5; }
.sidebar-cta-btn { display:block; background:#fff; color:var(--brand); padding:12px; border-radius:10px; font-weight:700; font-size:14px; text-decoration:none; margin-bottom:10px; transition:.2s; }
.sidebar-cta-btn:hover { transform:translateY(-1px); box-shadow:0 4px 16px rgba(0,0,0,.2); }
.sidebar-cta-login { font-size:12px; color:rgba(255,255,255,.7); text-decoration:none; }
.sidebar-cta-login:hover { color:#fff; }

.sidebar-widget { background:var(--card); border:1.5px solid var(--border); border-radius:var(--radius); padding:20px; margin-bottom:16px; }
.sw-title { font-size:13px; font-weight:700; text-transform:uppercase; letter-spacing:.5px; color:var(--muted); margin-bottom:14px; }
.sw-check { display:flex; align-items:center; gap:10px; padding:8px 0; border-bottom:1px solid var(--border); text-decoration:none; color:var(--text); font-size:14px; transition:.15s; }
.sw-check:last-child { border-bottom:none; }
.sw-check:hover, .sw-check.active { color:var(--brand); }
.swc-box { width:16px; height:16px; border-radius:4px; border:2px solid var(--border); flex-shrink:0; transition:.15s; }
.swc-box.on { background:var(--brand); border-color:var(--brand); }
.sw-count { margin-left:auto; color:var(--muted); font-size:12px; }
.sw-skills { display:flex; flex-wrap:wrap; gap:6px; }

/* how it works */
.hiw-step { display:flex; gap:12px; align-items:flex-start; padding:10px 0; border-bottom:1px solid var(--border); }
.hiw-step:last-child { border-bottom:none; }
.hiw-num { width:28px; height:28px; border-radius:50%; background:var(--brand); color:#fff; display:flex; align-items:center; justify-content:center; font-size:12px; font-weight:700; flex-shrink:0; }
.hiw-num.done { background:var(--green); }
.hiw-step strong { font-size:13px; display:block; margin-bottom:2px; }
.hiw-step p { font-size:12px; color:var(--muted); margin:0; }

/* ─── EMPTY STATE ───────────────────────────────── */
.empty-state { text-align:center; padding:60px 24px; }
.empty-icon { font-size:48px; margin-bottom:16px; }
.empty-state h3 { font-size:20px; font-weight:700; margin-bottom:8px; }
.empty-state p { color:var(--muted); margin-bottom:20px; }
.btn-reset { display:inline-block; background:var(--brand); color:#fff; padding:10px 24px; border-radius:10px; text-decoration:none; font-weight:600; }

/* ─── PAGINATION ─────────────────────────────────── */
.pagination-wrap { margin-top:24px; display:flex; justify-content:center; }
.pagination-wrap nav { display:flex; gap:4px; }
.pagination-wrap [aria-label] span, .pagination-wrap a { padding:8px 12px; border-radius:8px; border:1.5px solid var(--border); font-size:13px; color:var(--muted); text-decoration:none; display:inline-block; }
.pagination-wrap [aria-current] span { background:var(--brand); color:#fff; border-color:var(--brand); }

/* ─── FLASH MESSAGES ─────────────────────────────── */
.flash-success { background:#d1fae5; color:#065f46; border-left:4px solid var(--green); padding:14px 20px; margin:16px auto; max-width:1280px; border-radius:8px; font-weight:500; }
.flash-error   { background:#fee2e2; color:#991b1b; border-left:4px solid #ef4444; padding:14px 20px; margin:16px auto; max-width:1280px; border-radius:8px; font-weight:500; }

/* ─── FOOTER ─────────────────────────────────────── */
.portal-footer { background:#0f172a; color:rgba(255,255,255,.7); padding:40px 24px; margin-top:60px; }
.pf-inner { max-width:1280px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:20px; }
.pf-brand { display:flex; align-items:center; gap:10px; }
.pf-logo { width:34px; height:34px; background:var(--brand); border-radius:8px; font-family:'Sora',sans-serif; font-weight:800; font-size:12px; color:#fff; display:flex; align-items:center; justify-content:center; }
.pf-name { font-family:'Sora',sans-serif; font-weight:700; color:#fff; font-size:15px; }
.pf-sub { font-size:11px; color:rgba(255,255,255,.5); }
.pf-links { display:flex; gap:20px; }
.pf-links a { color:rgba(255,255,255,.6); text-decoration:none; font-size:13px; transition:.15s; }
.pf-links a:hover { color:#fff; }
.pf-copy { font-size:12px; color:rgba(255,255,255,.4); }

/* ─── PORTAL MAIN ─────────────────────────────────── */
.portal-main { min-height:60vh; }

/* ─── CANDIDATE DASHBOARD ─────────────────────────── */
.dash-hero { background:linear-gradient(135deg,#0f172a,#1e3a8a); padding:32px 24px; }
.dash-hero-inner { max-width:1280px; margin:0 auto; display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:16px; }
.dash-welcome { display:flex; align-items:center; gap:16px; }
.dash-av { width:52px; height:52px; border-radius:50%; color:#fff; font-family:'Sora',sans-serif; font-weight:800; font-size:18px; display:flex; align-items:center; justify-content:center; flex-shrink:0; border:2px solid rgba(255,255,255,.3); }
.dash-greeting { font-family:'Sora',sans-serif; font-size:22px; font-weight:700; color:#fff; }
.dash-role-note { font-size:13px; color:rgba(255,255,255,.6); margin-top:2px; }
.dash-quick-links { display:flex; gap:10px; }
.dql-btn { padding:9px 18px; border-radius:10px; font-size:13px; font-weight:600; text-decoration:none; border:1.5px solid rgba(255,255,255,.3); color:rgba(255,255,255,.85); transition:.2s; }
.dql-btn:hover { background:rgba(255,255,255,.1); }
.dql-primary { background:#fff; color:var(--brand); border-color:#fff; }
.dql-primary:hover { background:#eff4ff; }

.dash-stats-bar { background:#fff; border-bottom:1px solid var(--border); padding:20px 0; }
.dsb-inner { max-width:1280px; margin:0 auto; padding:0 24px; display:flex; gap:40px; flex-wrap:wrap; }
.dsb-stat { text-align:center; }
.dsb-num { font-family:'Sora',sans-serif; font-size:26px; font-weight:800; color:var(--brand); }
.dsb-lbl { font-size:12px; color:var(--muted); }

.dash-body { max-width:1280px; margin:0 auto; padding:28px 24px; display:grid; grid-template-columns:1fr 280px; gap:28px; align-items:start; }
.dash-sidebar { position:sticky; top:80px; }

.dash-section { margin-bottom:32px; }
.dash-section-header { display:flex; align-items:center; justify-content:space-between; margin-bottom:16px; flex-wrap:wrap; gap:10px; }
.dash-section-header h2 { font-family:'Sora',sans-serif; font-size:17px; font-weight:700; }
.see-all-link { font-size:13px; color:var(--brand); text-decoration:none; font-weight:600; }

/* Application cards row */
.app-cards { display:flex; flex-wrap:wrap; gap:10px; margin-bottom:8px; }
.app-card { display:flex; align-items:center; gap:12px; padding:14px; border:1.5px solid var(--border); border-radius:12px; text-decoration:none; color:var(--text); background:#fff; transition:.2s; flex:1; min-width:220px; }
.app-card:hover { border-color:var(--brand); background:#f8faff; }
.app-card-logo { width:38px; height:38px; border-radius:8px; color:#fff; font-weight:800; font-size:15px; display:flex; align-items:center; justify-content:center; flex-shrink:0; }
.app-card-title { font-size:13px; font-weight:700; margin-bottom:2px; }
.app-card-company { font-size:11px; color:var(--muted); }
.app-card-stage { padding:4px 10px; border-radius:100px; font-size:11px; font-weight:700; margin-left:auto; white-space:nowrap; }

/* mini search */
.mini-search-input { border:1.5px solid var(--border); border-radius:8px; padding:8px 14px; font-size:13px; font-family:inherit; outline:none; }
.mini-search-input:focus { border-color:var(--brand); }
.mini-search-btn { background:var(--brand); color:#fff; border:none; padding:8px 16px; border-radius:8px; font-size:13px; font-weight:600; cursor:pointer; font-family:inherit; }

/* Profile completion widget */
.profile-pct-bar { height:8px; background:#e5e7eb; border-radius:100px; margin-bottom:6px; overflow:hidden; }
.ppb-fill { height:100%; background:linear-gradient(90deg,var(--brand),#7c3aed); border-radius:100px; transition:.5s; }
.profile-pct-num { font-size:13px; font-weight:700; color:var(--brand); }
.profile-complete-link { display:inline-block; margin-top:10px; font-size:13px; color:var(--brand); text-decoration:none; font-weight:600; }

/* ─── RESPONSIVE ────────────────────────────────── */
@media(max-width:900px) {
  .jobs-section { grid-template-columns:1fr; }
  .jobs-sidebar { position:static; }
  .dash-body { grid-template-columns:1fr; }
  .dash-sidebar { position:static; }
  .dash-hero-inner { flex-direction:column; align-items:flex-start; }
}
@media(max-width:640px) {
  .pnav-links { display:none; }
  .pnav-ham { display:flex; }
  .hero { padding:48px 20px 40px; }
  .hero-search-bar { flex-direction:column; border-radius:18px; padding:8px; gap:4px; }
  .hsb-field { padding:10px 16px; border-bottom:1px solid #f1f5f9; }
  .hsb-field:nth-child(3) { border-bottom:none; }
  .hsb-sep { display:none; }
  .hsb-btn { width:100%; margin:4px 0 0 0; text-align:center; border-radius:12px; padding:16px; }
  .hstat-div { display:none; }
  .hero-stats { gap:20px; }
  .jcard-body { flex-direction:column; }
  .jcard-right { flex-direction:row; align-items:center; width:100%; justify-content:space-between; }
  .pf-links { flex-wrap:wrap; justify-content:center; }
}

/* ─── FOOTER GRID ────────────────────────────────── */
.footer-grid { display:grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap:48px; margin-bottom:64px; }
@media(max-width:1024px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr; }
}
@media(max-width:900px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap:40px; }
}
@media(max-width:600px) {
  .footer-grid { grid-template-columns: 1fr; gap:32px; text-align:center; }
  .footer-grid > div { display:flex; flex-direction:column; align-items:center; }
  .footer-grid p { margin-left:auto; margin-right:auto; }
  .footer-bottom { flex-direction:column; text-align:center; }
}
.footer-link-list { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; }
.footer-link-list a { color:#94a3b8; text-decoration:none; transition:.2s; font-size:14px; }
.footer-link-list a:hover { color:#fff; }
.footer-section-title { font-family:'Sora',sans-serif; font-size:14px; font-weight:700; color:#fff; margin-bottom:24px; text-transform:uppercase; letter-spacing:.05em; }
.footer-bottom { display:flex; justify-content:space-between; align-items:center; flex-wrap:wrap; gap:20px; padding-top:32px; border-top:1px solid rgba(255,255,255,.05); font-size:13px; color:#475569; }
