/* ============================================================
   JobPortal Pro – Public Site Stylesheet
   ============================================================ */

:root {
  --primary:    #2563eb;
  --dark:       #0f172a;
  --gray-100:   #f1f5f9;
  --gray-200:   #e2e8f0;
  --gray-500:   #64748b;
  --radius:     12px;
  --radius-sm:  8px;
  --shadow:     0 4px 24px rgba(0,0,0,.08);
  --shadow-md:  0 8px 40px rgba(0,0,0,.12);
}

* { box-sizing: border-box; }
body { font-family: 'Plus Jakarta Sans', sans-serif; color: #334155; }

/* ── HERO ────────────────────────────────────────────────── */
.hero-section {
  background: linear-gradient(135deg, #0f172a 0%, #1e40af 55%, #0f172a 100%);
  padding: 72px 0 0;
  position: relative;
  overflow: hidden;
}
.hero-section::before {
  content: '';
  position: absolute; inset: 0;
  background: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none'%3E%3Cg fill='%23ffffff' fill-opacity='0.03'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}
.hero-content { position: relative; z-index: 2; padding-bottom: 56px; }
.hero-title   { font-size: clamp(2rem, 5vw, 3.4rem); font-weight: 800; color: #fff; line-height: 1.2; margin-bottom: 1rem; }
.hero-title span { color: #60a5fa; }
.hero-sub     { color: #94a3b8; font-size: 1.1rem; margin-bottom: 2rem; }

/* Hero search */
.hero-form .hero-search-box {
  background: #fff; border-radius: 14px; padding: 8px; box-shadow: var(--shadow-md);
  display: flex; align-items: center; gap: 4px;
}
.search-item  { position: relative; flex: 1; }
.search-item i{ position: absolute; left: 14px; top: 50%; transform: translateY(-50%); pointer-events: none; }
.search-item input, .search-item select {
  border: none !important; padding-left: 38px !important;
  background: transparent !important; height: 50px; box-shadow: none !important;
}
.search-sep   { width: 1px; height: 32px; background: var(--gray-200); flex-shrink: 0; }
.hero-btn     { height: 50px; padding: 0 24px; border-radius: 10px !important; font-weight: 700; background: #2563eb; color: #fff; border: none; }
.hero-btn:hover { background: #1d4ed8; color: #fff; }

.popular-tags a {
  display: inline-block; background: rgba(255,255,255,.12); color: #cbd5e1;
  padding: 4px 12px; border-radius: 100px; font-size: .82rem; text-decoration: none; margin: 2px;
}
.popular-tags a:hover { background: rgba(255,255,255,.22); color: #fff; }

/* Live search dropdown */
.live-dropdown {
  position: absolute; top: calc(100% + 4px); left: 0; right: 0;
  background: #fff; border: 1px solid var(--gray-200); border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md); z-index: 999; max-height: 260px; overflow-y: auto;
}
.live-item { display: block; padding: 10px 14px; text-decoration: none; color: #0f172a; border-bottom: 1px solid var(--gray-100); }
.live-item:hover { background: var(--gray-100); }

/* Stats bar */
.stats-bar-wrap { background: rgba(255,255,255,.05); border-top: 1px solid rgba(255,255,255,.1); }
.stats-bar      { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; padding: 18px 0; }
.stat-item      { display: flex; align-items: center; gap: 12px; padding: 10px 36px; }
.stat-item i    { font-size: 1.6rem; }
.stat-num       { font-size: 1.5rem; font-weight: 800; color: #fff; line-height: 1; }
.stat-lbl       { color: #94a3b8; font-size: .78rem; }
.stat-sep       { width: 1px; height: 36px; background: rgba(255,255,255,.15); }

/* ── SECTION HEADERS ─────────────────────────────────────── */
.section-badge {
  display: inline-block; background: rgba(37,99,235,.1); color: var(--primary);
  font-size: .8rem; font-weight: 600; padding: 4px 14px; border-radius: 100px; margin-bottom: 8px;
}
.section-title { font-size: clamp(1.5rem, 3vw, 2rem); font-weight: 800; color: var(--dark); }

/* ── CATEGORY CARDS ──────────────────────────────────────── */
.cat-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 22px 12px; background: #fff; border: 2px solid var(--gray-100);
  border-radius: var(--radius); transition: all .25s; color: inherit;
}
.cat-card:hover { border-color: var(--primary); transform: translateY(-4px); box-shadow: var(--shadow); }
.cat-icon  { font-size: 1.8rem; color: var(--primary); margin-bottom: 10px; }
.cat-name  { font-weight: 700; font-size: .88rem; color: var(--dark); margin-bottom: 4px; }
.cat-count { font-size: .78rem; color: var(--gray-500); }

/* ── JOB CARDS ───────────────────────────────────────────── */
.job-card {
  background: #fff; border: 1.5px solid var(--gray-200); border-radius: var(--radius);
  padding: 22px; position: relative; transition: all .25s; overflow: hidden; display: flex; flex-direction: column;
}
.job-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.jbadge       { position: absolute; top: 12px; right: 12px; font-size: .7rem; font-weight: 700; padding: 3px 10px; border-radius: 100px; }
.jbadge-feat  { background: #fef3c7; color: #92400e; }
.jbadge-urg   { background: #fee2e2; color: #991b1b; }

.jc-logo      { width: 48px; height: 48px; flex-shrink: 0; border-radius: 10px; overflow: hidden; border: 1.5px solid var(--gray-200); }
.jc-logo img  { width: 100%; height: 100%; object-fit: contain; }
.jc-logo-ph   { width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary), #60a5fa); color: #fff; font-weight: 800; font-size: .95rem; display: flex; align-items: center; justify-content: center; }

.jmeta        { display: inline-flex; align-items: center; gap: 4px; font-size: .76rem; color: var(--gray-500); background: var(--gray-100); padding: 3px 10px; border-radius: 100px; }
.jmeta-type   { background: #eff6ff; color: var(--primary); }
.jmeta i      { font-size: .7rem; }
.job-salary   { font-size: .84rem; font-weight: 600; color: #16a34a; }

/* List item */
.jlist-item   { background: #fff; border: 1.5px solid var(--gray-200); border-radius: var(--radius-sm); padding: 14px 18px; transition: all .2s; }
.jlist-item:hover { border-color: var(--primary); box-shadow: 0 4px 14px rgba(37,99,235,.08); }
.jc-logo-sm   { width: 42px; height: 42px; flex-shrink: 0; border-radius: 8px; overflow: hidden; border: 1px solid var(--gray-200); }
.jc-logo-sm img { width: 100%; height: 100%; object-fit: contain; }
.jc-logo-sm-ph{ width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary), #60a5fa); color: #fff; font-weight: 700; font-size: .82rem; display: flex; align-items: center; justify-content: center; }

/* ── COMPANY CARDS ───────────────────────────────────────── */
.company-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  padding: 22px 14px; background: #fff; border: 1.5px solid var(--gray-200);
  border-radius: var(--radius); transition: all .25s; color: inherit;
}
.company-card:hover { border-color: var(--primary); box-shadow: var(--shadow); transform: translateY(-3px); }
.company-logo-wrap { width: 68px; height: 68px; border-radius: 12px; overflow: hidden; border: 1px solid var(--gray-200); margin-bottom: 10px; }
.company-logo-wrap img { width: 100%; height: 100%; object-fit: contain; }
.company-logo-ph   { width: 100%; height: 100%; background: linear-gradient(135deg, var(--primary), #60a5fa); color: #fff; font-weight: 800; font-size: 1.1rem; display: flex; align-items: center; justify-content: center; }
.company-name      { font-weight: 700; font-size: .88rem; color: var(--dark); margin-bottom: 4px; }
.company-jobs      { font-size: .78rem; color: var(--primary); }

/* ── TESTIMONIALS ────────────────────────────────────────── */
.testimonial-card { background: #fff; border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); border: 1px solid var(--gray-100); }

/* ── HOVER CARD ──────────────────────────────────────────── */
.hover-card { transition: box-shadow .2s, transform .2s; }
.hover-card:hover { box-shadow: 0 6px 20px rgba(37,99,235,.1); transform: translateY(-2px); }

/* ── UTILITIES ───────────────────────────────────────────── */
.x-small { font-size: .74rem; }
.min-w-0 { min-width: 0; }

@media (max-width: 768px) {
  .hero-form .hero-search-box { flex-direction: column; }
  .search-sep { width: 100%; height: 1px; }
  .stat-item  { padding: 8px 16px; }
}
